From c7ed2454330b72d8d205456f47342e2f3af81754 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 3 Sep 2021 03:38:40 +0200 Subject: [PATCH] :arrow_up: update dependencies --- api/assets/openapi.json | 881 ++++++++++--------------- api/package-lock.json | Bin 777333 -> 777362 bytes api/package.json | 2 +- api/scripts/generate_openapi_schema.ts | 128 +--- bundle/package-lock.json | Bin 112469 -> 66635 bytes bundle/package.json | 2 +- cdn/package-lock.json | Bin 350423 -> 350423 bytes cdn/package.json | 2 +- gateway/package-lock.json | Bin 119032 -> 119032 bytes gateway/package.json | 2 +- util/package-lock.json | Bin 544874 -> 544874 bytes util/package.json | 2 +- 12 files changed, 390 insertions(+), 629 deletions(-) diff --git a/api/assets/openapi.json b/api/assets/openapi.json index a49e4165..5244da36 100644 --- a/api/assets/openapi.json +++ b/api/assets/openapi.json @@ -25,46 +25,26 @@ "operationId": "", "responses": { "200": { - "description": "user found", + "description": "User found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserPublic" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "User not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } - }, - "429": { - "description": "Rate limit exceeded", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } }, - "headers": { - "X-RateLimit-Bucket": { - "description": "A unique string denoting the rate limit being encountered (non-inclusive of major parameters in the route path)", - "schema": { "type": "string" } - }, - "X-Rate-Limit-Limit": { - "description": "The number of allowed requests in the current period", - "schema": { "type": "integer" } - }, - "X-Rate-Limit-Remaining": { - "description": "The number of remaining requests in the current period", - "schema": { "type": "integer" } - }, - "X-Rate-Limit-Reset": { - "description": "Date when current period is over in seconds since the Unix epoch", - "schema": { "type": "integer" } - }, - "X-Rate-Limit-Reset-After": { - "description": "Number of seconds when current period will reset (can have decimal)", - "schema": { "type": "number" } - }, - "Retry-After": { - "description": "Same as X-Rate-Limit-Reset-After but an integer", - "schema": { "type": "integer" } - }, - "X-RateLimit-Global": { - "description": "Indicates whether or not all requests from your ip are rate limited", - "schema": { "type": "boolean" } - } - } + } + } + } + }, + "/users/@me": { + "get": { + "summary": "", + "description": "", + "parameters": [], + "operationId": "", + "responses": { + "200": { + "description": "Authenticated user", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserPublic" } } } } } } @@ -542,6 +522,7 @@ "Member": { "type": "object", "properties": { + "user_id": { "type": "string" }, "user": { "$ref": "#/components/schemas/User" }, "guild_id": { "type": "string" }, "guild": { "$ref": "#/components/schemas/Guild" }, @@ -555,7 +536,7 @@ "settings": { "$ref": "#/components/schemas/UserGuildSettings" }, "id": { "type": "string" } }, - "required": ["deaf", "guild", "guild_id", "id", "joined_at", "mute", "pending", "roles", "settings", "user"] + "required": ["deaf", "guild", "guild_id", "id", "joined_at", "mute", "pending", "roles", "settings", "user", "user_id"] }, "Role": { "type": "object", @@ -1078,545 +1059,417 @@ "bot": { "type": "boolean" } }, "required": ["bio", "bot", "discriminator", "id", "public_flags", "username"] - } - }, - "requestBodies": { - "BanCreateSchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { "delete_message_days": { "type": "string" }, "reason": { "type": "string" } } - } - } + }, + "UserPrivate": { + "type": "object", + "properties": { + "locale": { "type": "string" }, + "disabled": { "type": "boolean" }, + "username": { "type": "string" }, + "discriminator": { "type": "string" }, + "id": { "type": "string" }, + "public_flags": { "type": "string" }, + "avatar": { "type": "string" }, + "accent_color": { "type": "integer" }, + "banner": { "type": "string" }, + "bio": { "type": "string" }, + "bot": { "type": "boolean" }, + "flags": { "type": "string" }, + "mfa_enabled": { "type": "boolean" }, + "email": { "type": "string" }, + "phone": { "type": "string" }, + "verified": { "type": "boolean" }, + "nsfw_allowed": { "type": "boolean" }, + "premium": { "type": "boolean" }, + "premium_type": { "type": "integer" } }, - "description": "" + "required": [ + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "locale", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_type", + "public_flags", + "username", + "verified" + ] + }, + "BanCreateSchema": { + "type": "object", + "properties": { "delete_message_days": { "type": "string" }, "reason": { "type": "string" } } }, "DmChannelCreateSchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { "type": "string" }, - "recipients": { "type": "array", "items": { "type": "string" } } - }, - "required": ["recipients"] - } - } - }, - "description": "" + "type": "object", + "properties": { "name": { "type": "string" }, "recipients": { "type": "array", "items": { "type": "string" } } }, + "required": ["recipients"] }, "ChannelModifySchema": { - "content": { - "application/json": { - "schema": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "type": { "type": "integer" }, + "topic": { "type": "string" }, + "bitrate": { "type": "integer" }, + "user_limit": { "type": "integer" }, + "rate_limit_per_user": { "type": "integer" }, + "position": { "type": "integer" }, + "permission_overwrites": { + "type": "array", + "items": { "type": "object", "properties": { - "name": { "type": "string" }, - "type": { "type": "integer" }, - "topic": { "type": "string" }, - "bitrate": { "type": "integer" }, - "user_limit": { "type": "integer" }, - "rate_limit_per_user": { "type": "integer" }, - "position": { "type": "integer" }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { "type": "string" }, - "type": { "type": "integer" }, - "allow": { "type": "number" }, - "deny": { "type": "number" } - }, - "additionalProperties": false, - "required": ["allow", "deny", "id", "type"] - } - }, - "parent_id": { "type": "string" }, "id": { "type": "string" }, - "nsfw": { "type": "boolean" }, - "rtc_region": { "type": "string" }, - "default_auto_archive_duration": { "type": "integer" } + "type": { "type": "integer" }, + "allow": { "type": "number" }, + "deny": { "type": "number" } }, - "required": ["name", "type"] + "additionalProperties": false, + "required": ["allow", "deny", "id", "type"] } - } + }, + "parent_id": { "type": "string" }, + "id": { "type": "string" }, + "nsfw": { "type": "boolean" }, + "rtc_region": { "type": "string" }, + "default_auto_archive_duration": { "type": "integer" } }, - "description": "" + "required": ["name", "type"] }, "ChannelGuildPositionUpdateSchema": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { "id": { "type": "string" }, "position": { "type": "integer" } }, - "additionalProperties": false, - "required": ["id"] - } - } - } - }, - "description": "" + "type": "array", + "items": { + "type": "object", + "properties": { "id": { "type": "string" }, "position": { "type": "integer" } }, + "additionalProperties": false, + "required": ["id"] + } }, "EmojiCreateSchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { "type": "string" }, - "image": { "type": "string" }, - "roles": { "type": "array", "items": { "type": "string" } } - }, - "required": ["image", "name"] - } - } + "type": "object", + "properties": { + "name": { "type": "string" }, + "image": { "type": "string" }, + "roles": { "type": "array", "items": { "type": "string" } } }, - "description": "" + "required": ["image", "name"] }, "GuildCreateSchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { "type": "string" }, - "region": { "type": "string" }, - "icon": { "type": "string" }, - "channels": { "type": "array", "items": { "$ref": "#/components/requestBodies/ChannelModifySchema" } }, - "guild_template_code": { "type": "string" }, - "system_channel_id": { "type": "string" }, - "rules_channel_id": { "type": "string" } - }, - "required": ["name"] - } - } + "type": "object", + "properties": { + "name": { "type": "string" }, + "region": { "type": "string" }, + "icon": { "type": "string" }, + "channels": { "type": "array", "items": { "$ref": "#/components/requestBodies/ChannelModifySchema" } }, + "guild_template_code": { "type": "string" }, + "system_channel_id": { "type": "string" }, + "rules_channel_id": { "type": "string" } }, - "description": "" + "required": ["name"] }, "GuildUpdateSchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "banner": { "type": "string" }, - "splash": { "type": "string" }, - "description": { "type": "string" }, - "features": { "type": "array", "items": { "type": "string" } }, - "verification_level": { "type": "integer" }, - "default_message_notifications": { "type": "integer" }, - "system_channel_flags": { "type": "integer" }, - "explicit_content_filter": { "type": "integer" }, - "public_updates_channel_id": { "type": "string" }, - "afk_timeout": { "type": "integer" }, - "afk_channel_id": { "type": "string" }, - "preferred_locale": { "type": "string" }, - "name": { "type": "string" }, - "region": { "type": "string" }, - "icon": { "type": "string" }, - "guild_template_code": { "type": "string" }, - "system_channel_id": { "type": "string" }, - "rules_channel_id": { "type": "string" } - }, - "required": ["name"] - } - } + "type": "object", + "properties": { + "banner": { "type": "string" }, + "splash": { "type": "string" }, + "description": { "type": "string" }, + "features": { "type": "array", "items": { "type": "string" } }, + "verification_level": { "type": "integer" }, + "default_message_notifications": { "type": "integer" }, + "system_channel_flags": { "type": "integer" }, + "explicit_content_filter": { "type": "integer" }, + "public_updates_channel_id": { "type": "string" }, + "afk_timeout": { "type": "integer" }, + "afk_channel_id": { "type": "string" }, + "preferred_locale": { "type": "string" }, + "name": { "type": "string" }, + "region": { "type": "string" }, + "icon": { "type": "string" }, + "guild_template_code": { "type": "string" }, + "system_channel_id": { "type": "string" }, + "rules_channel_id": { "type": "string" } }, - "description": "" + "required": ["name"] }, "GuildTemplateCreateSchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { "name": { "type": "string" }, "avatar": { "type": "string" } }, - "required": ["name"] - } - } - }, - "description": "" + "type": "object", + "properties": { "name": { "type": "string" }, "avatar": { "type": "string" } }, + "required": ["name"] }, "GuildUpdateWelcomeScreenSchema": { - "content": { - "application/json": { - "schema": { + "type": "object", + "properties": { + "welcome_channels": { + "type": "array", + "items": { "type": "object", "properties": { - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "channel_id": { "type": "string" }, - "description": { "type": "string" }, - "emoji_id": { "type": "string" }, - "emoji_name": { "type": "string" } - }, - "additionalProperties": false, - "required": ["channel_id", "description", "emoji_name"] - } - }, - "enabled": { "type": "boolean" }, - "description": { "type": "string" } - } + "channel_id": { "type": "string" }, + "description": { "type": "string" }, + "emoji_id": { "type": "string" }, + "emoji_name": { "type": "string" } + }, + "additionalProperties": false, + "required": ["channel_id", "description", "emoji_name"] } - } - }, - "description": "" + }, + "enabled": { "type": "boolean" }, + "description": { "type": "string" } + } }, - "Number": { "content": { "application/json": { "schema": { "type": "object" } } }, "description": "" }, - "Boolean": { "content": { "application/json": { "schema": { "type": "object" } } }, "description": "" }, "InviteCreateSchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "target_user_id": { "type": "string" }, - "target_type": { "type": "string" }, - "validate": { "type": "string" }, - "max_age": { "type": "integer" }, - "max_uses": { "type": "integer" }, - "temporary": { "type": "boolean" }, - "unique": { "type": "boolean" }, - "target_user": { "type": "string" }, - "target_user_type": { "type": "integer" } - } - } - } - }, - "description": "" + "type": "object", + "properties": { + "target_user_id": { "type": "string" }, + "target_type": { "type": "string" }, + "validate": { "type": "string" }, + "max_age": { "type": "integer" }, + "max_uses": { "type": "integer" }, + "temporary": { "type": "boolean" }, + "unique": { "type": "boolean" }, + "target_user": { "type": "string" }, + "target_user_type": { "type": "integer" } + } }, "MemberCreateSchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { "type": "string" }, - "nick": { "type": "string" }, - "guild_id": { "type": "string" }, - "joined_at": { "type": "string", "format": "date-time" } - }, - "required": ["guild_id", "id", "joined_at", "nick"] - } - } + "type": "object", + "properties": { + "id": { "type": "string" }, + "nick": { "type": "string" }, + "guild_id": { "type": "string" }, + "joined_at": { "type": "string", "format": "date-time" } }, - "description": "" - }, - "MemberNickChangeSchema": { - "content": { - "application/json": { - "schema": { "type": "object", "properties": { "nick": { "type": "string" } }, "required": ["nick"] } - } - }, - "description": "" - }, - "MemberChangeSchema": { - "content": { - "application/json": { - "schema": { "type": "object", "properties": { "roles": { "type": "array", "items": { "type": "string" } } } } - } - }, - "description": "" - }, - "EmbedType": { - "content": { - "application/json": { "schema": { "enum": ["article", "gifv", "image", "link", "rich", "video"], "type": "string" } } - }, - "description": "" - }, - "EmbedImage": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "url": { "type": "string" }, - "proxy_url": { "type": "string" }, - "height": { "type": "integer" }, - "width": { "type": "integer" } - } - } - } - }, - "description": "" + "required": ["guild_id", "id", "joined_at", "nick"] }, + "MemberNickChangeSchema": { "type": "object", "properties": { "nick": { "type": "string" } }, "required": ["nick"] }, + "MemberChangeSchema": { "type": "object", "properties": { "roles": { "type": "array", "items": { "type": "string" } } } }, "MessageCreateSchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "content": { "type": "string" }, - "nonce": { "type": "string" }, - "tts": { "type": "boolean" }, - "flags": { "type": "string" }, - "embed": { - "additionalProperties": false, - "type": "object", - "properties": { - "title": { "type": "string" }, - "type": { "$ref": "#/components/requestBodies/EmbedType" }, - "description": { "type": "string" }, - "url": { "type": "string" }, - "timestamp": { "type": "string" }, - "color": { "type": "integer" }, - "footer": { - "type": "object", - "properties": { - "text": { "type": "string" }, - "icon_url": { "type": "string" }, - "proxy_icon_url": { "type": "string" } - }, - "additionalProperties": false, - "required": ["text"] - }, - "image": { "$ref": "#/components/requestBodies/EmbedImage" }, - "thumbnail": { "$ref": "#/components/requestBodies/EmbedImage" }, - "video": { "$ref": "#/components/requestBodies/EmbedImage" }, - "provider": { - "type": "object", - "properties": { "name": { "type": "string" }, "url": { "type": "string" } }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { "type": "string" }, - "url": { "type": "string" }, - "icon_url": { "type": "string" }, - "proxy_icon_url": { "type": "string" } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { "type": "string" }, - "value": { "type": "string" }, - "inline": { "type": "boolean" } - }, - "additionalProperties": false, - "required": ["name", "value"] - } - } - } + "type": "object", + "properties": { + "content": { "type": "string" }, + "nonce": { "type": "string" }, + "tts": { "type": "boolean" }, + "flags": { "type": "string" }, + "embed": { + "additionalProperties": false, + "type": "object", + "properties": { + "title": { "type": "string" }, + "type": { "$ref": "#/components/requestBodies/EmbedType" }, + "description": { "type": "string" }, + "url": { "type": "string" }, + "timestamp": { "type": "string" }, + "color": { "type": "integer" }, + "footer": { + "type": "object", + "properties": { + "text": { "type": "string" }, + "icon_url": { "type": "string" }, + "proxy_icon_url": { "type": "string" } }, - "allowed_mentions": { - "type": "object", - "properties": { - "parse": { "type": "array", "items": { "type": "string" } }, - "roles": { "type": "array", "items": { "type": "string" } }, - "users": { "type": "array", "items": { "type": "string" } }, - "replied_user": { "type": "boolean" } - }, - "additionalProperties": false + "additionalProperties": false, + "required": ["text"] + }, + "image": { "$ref": "#/components/requestBodies/EmbedImage" }, + "thumbnail": { "$ref": "#/components/requestBodies/EmbedImage" }, + "video": { "$ref": "#/components/requestBodies/EmbedImage" }, + "provider": { + "type": "object", + "properties": { "name": { "type": "string" }, "url": { "type": "string" } }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "url": { "type": "string" }, + "icon_url": { "type": "string" }, + "proxy_icon_url": { "type": "string" } }, - "message_reference": { + "additionalProperties": false + }, + "fields": { + "type": "array", + "items": { "type": "object", "properties": { - "message_id": { "type": "string" }, - "channel_id": { "type": "string" }, - "guild_id": { "type": "string" }, - "fail_if_not_exists": { "type": "boolean" } + "name": { "type": "string" }, + "value": { "type": "string" }, + "inline": { "type": "boolean" } }, "additionalProperties": false, - "required": ["channel_id", "message_id"] - }, - "payload_json": { "type": "string" }, - "file": {} + "required": ["name", "value"] + } } } - } - }, - "description": "" + }, + "allowed_mentions": { + "type": "object", + "properties": { + "parse": { "type": "array", "items": { "type": "string" } }, + "roles": { "type": "array", "items": { "type": "string" } }, + "users": { "type": "array", "items": { "type": "string" } }, + "replied_user": { "type": "boolean" } + }, + "additionalProperties": false + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { "type": "string" }, + "channel_id": { "type": "string" }, + "guild_id": { "type": "string" }, + "fail_if_not_exists": { "type": "boolean" } + }, + "additionalProperties": false, + "required": ["channel_id", "message_id"] + }, + "payload_json": { "type": "string" }, + "file": {} + } }, "RoleModifySchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { "type": "string" }, - "permissions": { "type": "number" }, - "color": { "type": "integer" }, - "hoist": { "type": "boolean" }, - "mentionable": { "type": "boolean" }, - "position": { "type": "integer" } - } - } - } - }, - "description": "" + "type": "object", + "properties": { + "name": { "type": "string" }, + "permissions": { "type": "number" }, + "color": { "type": "integer" }, + "hoist": { "type": "boolean" }, + "mentionable": { "type": "boolean" }, + "position": { "type": "integer" } + } }, "TemplateCreateSchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { "name": { "type": "string" }, "description": { "type": "string" } }, - "required": ["name"] - } - } - }, - "description": "" + "type": "object", + "properties": { "name": { "type": "string" }, "description": { "type": "string" } }, + "required": ["name"] }, "TemplateModifySchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { "name": { "type": "string" }, "description": { "type": "string" } }, - "required": ["name"] - } - } - }, - "description": "" + "type": "object", + "properties": { "name": { "type": "string" }, "description": { "type": "string" } }, + "required": ["name"] }, "UserModifySchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "username": { "type": "string" }, - "avatar": { "type": "string" }, - "bio": { "type": "string" }, - "accent_color": { "type": "integer" }, - "banner": { "type": "string" }, - "password": { "type": "string" }, - "new_password": { "type": "string" }, - "code": { "type": "string" } - } - } - } - }, - "description": "" + "type": "object", + "properties": { + "username": { "type": "string" }, + "avatar": { "type": "string" }, + "bio": { "type": "string" }, + "accent_color": { "type": "integer" }, + "banner": { "type": "string" }, + "password": { "type": "string" }, + "new_password": { "type": "string" }, + "code": { "type": "string" } + } }, "UserSettingsSchema": { - "content": { - "application/json": { - "schema": { + "type": "object", + "properties": { + "afk_timeout": { "type": "integer" }, + "allow_accessibility_detection": { "type": "boolean" }, + "animate_emoji": { "type": "boolean" }, + "animate_stickers": { "type": "integer" }, + "contact_sync_enabled": { "type": "boolean" }, + "convert_emoticons": { "type": "boolean" }, + "custom_status": { + "type": "object", + "properties": { + "emoji_id": { "type": "string" }, + "emoji_name": { "type": "string" }, + "expires_at": { "type": "integer" }, + "text": { "type": "string" } + }, + "additionalProperties": false + }, + "default_guilds_restricted": { "type": "boolean" }, + "detect_platform_accounts": { "type": "boolean" }, + "developer_mode": { "type": "boolean" }, + "disable_games_tab": { "type": "boolean" }, + "enable_tts_command": { "type": "boolean" }, + "explicit_content_filter": { "type": "integer" }, + "friend_source_flags": { + "type": "object", + "properties": { "all": { "type": "boolean" } }, + "additionalProperties": false, + "required": ["all"] + }, + "gateway_connected": { "type": "boolean" }, + "gif_auto_play": { "type": "boolean" }, + "guild_folders": { + "type": "array", + "items": { "type": "object", "properties": { - "afk_timeout": { "type": "integer" }, - "allow_accessibility_detection": { "type": "boolean" }, - "animate_emoji": { "type": "boolean" }, - "animate_stickers": { "type": "integer" }, - "contact_sync_enabled": { "type": "boolean" }, - "convert_emoticons": { "type": "boolean" }, - "custom_status": { - "type": "object", - "properties": { - "emoji_id": { "type": "string" }, - "emoji_name": { "type": "string" }, - "expires_at": { "type": "integer" }, - "text": { "type": "string" } - }, - "additionalProperties": false - }, - "default_guilds_restricted": { "type": "boolean" }, - "detect_platform_accounts": { "type": "boolean" }, - "developer_mode": { "type": "boolean" }, - "disable_games_tab": { "type": "boolean" }, - "enable_tts_command": { "type": "boolean" }, - "explicit_content_filter": { "type": "integer" }, - "friend_source_flags": { - "type": "object", - "properties": { "all": { "type": "boolean" } }, - "additionalProperties": false, - "required": ["all"] - }, - "gateway_connected": { "type": "boolean" }, - "gif_auto_play": { "type": "boolean" }, - "guild_folders": { - "type": "array", - "items": { - "type": "object", - "properties": { - "color": { "type": "integer" }, - "guild_ids": { "type": "array", "items": { "type": "string" } }, - "id": { "type": "integer" }, - "name": { "type": "string" } - }, - "additionalProperties": false, - "required": ["color", "guild_ids", "id", "name"] - } - }, - "guild_positions": { "type": "array", "items": { "type": "string" } }, - "inline_attachment_media": { "type": "boolean" }, - "inline_embed_media": { "type": "boolean" }, - "locale": { "type": "string" }, - "message_display_compact": { "type": "boolean" }, - "native_phone_integration_enabled": { "type": "boolean" }, - "render_embeds": { "type": "boolean" }, - "render_reactions": { "type": "boolean" }, - "restricted_guilds": { "type": "array", "items": { "type": "string" } }, - "show_current_game": { "type": "boolean" }, - "status": { "enum": ["dnd", "idle", "offline", "online"], "type": "string" }, - "stream_notifications_enabled": { "type": "boolean" }, - "theme": { "enum": ["dark", "white"], "type": "string" }, - "timezone_offset": { "type": "integer" } + "color": { "type": "integer" }, + "guild_ids": { "type": "array", "items": { "type": "string" } }, + "id": { "type": "integer" }, + "name": { "type": "string" } }, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset" - ] + "additionalProperties": false, + "required": ["color", "guild_ids", "id", "name"] } - } + }, + "guild_positions": { "type": "array", "items": { "type": "string" } }, + "inline_attachment_media": { "type": "boolean" }, + "inline_embed_media": { "type": "boolean" }, + "locale": { "type": "string" }, + "message_display_compact": { "type": "boolean" }, + "native_phone_integration_enabled": { "type": "boolean" }, + "render_embeds": { "type": "boolean" }, + "render_reactions": { "type": "boolean" }, + "restricted_guilds": { "type": "array", "items": { "type": "string" } }, + "show_current_game": { "type": "boolean" }, + "status": { "enum": ["dnd", "idle", "offline", "online"], "type": "string" }, + "stream_notifications_enabled": { "type": "boolean" }, + "theme": { "enum": ["dark", "white"], "type": "string" }, + "timezone_offset": { "type": "integer" } }, - "description": "" + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset" + ] }, "WidgetModifySchema": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { "enabled": { "type": "boolean" }, "channel_id": { "type": "string" } }, - "required": ["channel_id", "enabled"] - } - } - }, - "description": "" + "type": "object", + "properties": { "enabled": { "type": "boolean" }, "channel_id": { "type": "string" } }, + "required": ["channel_id", "enabled"] } }, + "requestBodies": {}, "securitySchemes": {}, "links": {}, "callbacks": {} diff --git a/api/package-lock.json b/api/package-lock.json index 1242dc0687cf6c0e22b580442f99735b434efad2..da41d26d6e776661aa6c3658d57a479a6e96cbf1 100644 GIT binary patch delta 313 zcmeymLx0jv{Ru0lPuapGJ9z^;_r@)KOpKp2J7@cLPDUVR z+PjSH76&cIK@4?D%VXvIJhd( zFDN}KIXtk$$lu#t+tWC_%%Z^9JUb+@!qB*+D8#oUBP`q1KcmdA%)-|w$HdXZtK8eL zz{DuZV|w9T7OD2Fx0!*MW&76KtW&OlozxC=5)iWkF~|124V=f>=;EAqi5;9k%(Y!& I2Y0Lr090#qDF6Tf delta 314 zcmbQVQ~&D@{Rt~K9-GO;Xt+6nxtW#Gc(QD#%H)5{^3zvsU|ZXKg|qz%CnFFuZNI|F z%y@D7$19u$(^+pb+f5Hz%%~6=YH99Sob2c1V-lWjnV1rp?r7Z9@pF~{~*8#q_6(Zx;eraL%+m}|S~4(?bL E008TD7XSbN diff --git a/api/package.json b/api/package.json index bff625b2..497065cb 100644 --- a/api/package.json +++ b/api/package.json @@ -78,7 +78,7 @@ "i18next-node-fs-backend": "^2.1.3", "jsonwebtoken": "^8.5.1", "lambert-server": "^1.2.10", - "missing-native-js-functions": "^1.2.11", + "missing-native-js-functions": "^1.2.15", "mongoose": "^5.12.3", "mongoose-autopopulate": "^0.12.3", "mongoose-long": "^0.3.2", diff --git a/api/scripts/generate_openapi_schema.ts b/api/scripts/generate_openapi_schema.ts index c45a43eb..329aeaf4 100644 --- a/api/scripts/generate_openapi_schema.ts +++ b/api/scripts/generate_openapi_schema.ts @@ -19,41 +19,14 @@ const compilerOptions: TJS.CompilerOptions = { const openapiPath = path.join(__dirname, "..", "assets", "openapi.json"); var specification = JSON.parse(fs.readFileSync(openapiPath, { encoding: "utf8" })); -async function generateSchemas() { +async function utilSchemas() { const program = TJS.getProgramFromFiles([path.join(__dirname, "..", "..", "util", "src", "index.ts")], compilerOptions); const generator = TJS.buildGenerator(program, settings); - const schemas = [ - "Application", - "Attachment", - "Message", - "AuditLog", - "Ban", - "Channel", - "Emoji", - "Guild", - "Invite", - "ReadState", - "Recipient", - "Relationship", - "Role", - "Sticker", - "Team", - "TeamMember", - "Template", - "VoiceState", - "Webhook", - "User", - "UserPublic" - ]; + const schemas = ["UserPublic", "UserPrivate", "PublicConnectedAccount"]; // @ts-ignore - const definitions = combineSchemas({ schemas, generator, program }); - - for (const key in definitions) { - specification.components.schemas[key] = definitions[key]; - delete definitions[key].additionalProperties; - } + combineSchemas({ schemas, generator, program }); } function combineSchemas(opts: { program: TJS.Program; generator: TJS.JsonSchemaGenerator; schemas: string[] }) { @@ -63,13 +36,19 @@ function combineSchemas(opts: { program: TJS.Program; generator: TJS.JsonSchemaG const part = TJS.generateSchema(opts.program, name, settings, [], opts.generator as TJS.JsonSchemaGenerator); if (!part) continue; - definitions = { ...definitions, ...part.definitions, [name]: { ...part, definitions: undefined, $schema: undefined } }; + definitions = { ...definitions, [name]: { ...part, definitions: undefined, $schema: undefined } }; + } + + for (const key in definitions) { + specification.components.schemas[key] = definitions[key]; + delete definitions[key].additionalProperties; + delete definitions[key].$schema; } return definitions; } -function generateBodies() { +function apiSchemas() { const program = TJS.getProgramFromFiles([path.join(__dirname, "..", "src", "schema", "index.ts")], compilerOptions); const generator = TJS.buildGenerator(program, settings); @@ -94,97 +73,26 @@ function generateBodies() { "TemplateModifySchema", "UserModifySchema", "UserSettingsSchema", - "WidgetModifySchema" + "WidgetModifySchema", + "" ]; // @ts-ignore - const definitions = combineSchemas({ schemas, generator, program }); - - for (const key in definitions) { - specification.components.requestBodies[key] = { - content: { - "application/json": { schema: definitions[key] } - }, - description: "" - }; - - delete definitions[key].additionalProperties; - delete definitions[key].$schema; - } + combineSchemas({ schemas, generator, program }); } function addDefaultResponses() { - Object.values(specification.paths).forEach((path: any) => - Object.values(path).forEach((request: any) => { - if (!request.responses?.["401"]) { - request.responses["401"] = { - description: "Unauthorized", - content: { "application/json": { schema: { $ref: "#/components/schemas/Error" } } } - }; - } - if (!request.responses?.["429"]) { - request.responses["429"] = { - description: "Rate limit exceeded", - content: { "application/json": { schema: { $ref: "#/components/schemas/Error" } } }, - headers: { - "X-RateLimit-Bucket": { - description: - "A unique string denoting the rate limit being encountered (non-inclusive of major parameters in the route path)", - schema: { type: "string" } - }, - "X-Rate-Limit-Limit": { - description: "The number of allowed requests in the current period", - schema: { - type: "integer" - } - }, - "X-Rate-Limit-Remaining": { - description: "The number of remaining requests in the current period", - schema: { - type: "integer" - } - }, - "X-Rate-Limit-Reset": { - description: "Date when current period is over in seconds since the Unix epoch", - schema: { - type: "integer" - } - }, - "X-Rate-Limit-Reset-After": { - description: "Number of seconds when current period will reset (can have decimal)", - schema: { - type: "number" - } - }, - "Retry-After": { - description: "Same as X-Rate-Limit-Reset-After but an integer", - schema: { - type: "integer" - } - }, - "X-RateLimit-Global": { - description: "Indicates whether or not all requests from your ip are rate limited", - schema: { - type: "boolean" - } - } - } - }; - } - }) - ); + Object.values(specification.paths).forEach((path: any) => Object.values(path).forEach((request: any) => {})); } function main() { addDefaultResponses(); - generateSchemas(); - specification = JSON.parse(JSON.stringify(specification).replaceAll("#/definitions", "#/components/schemas")); - - generateBodies(); + utilSchemas(); + apiSchemas(); fs.writeFileSync( openapiPath, - JSON.stringify(specification, null, 4).replaceAll("#/definitions", "#/components/requestBodies").replaceAll("bigint", "number") + JSON.stringify(specification, null, 4).replaceAll("#/definitions", "#/components/schemas").replaceAll("bigint", "number") ); } diff --git a/bundle/package-lock.json b/bundle/package-lock.json index 59fd96ee5e8a0872e75ddbd748a9798c2d23f299..944570edeaf83b7cb599254a9639785456bcd2a8 100644 GIT binary patch delta 796 zcmcJMZAg=06oxs^KGGSPrIbrrS!8B4oRe*Yg2eo2IhPwcS1eqmv%Q8NLx;?0L?jZ$ zdaAc16-+8dq4S7OffhzZU_}^3sPu^zQj#T_tY+H}LFjkC&iQfQhr@Nfni3B+3A<+i z(lLSjAl|O6)VC`*hM&sjTbUq-XZFAA+jF=z-rf0j~}gitzK3WI*LmJD}}3A!vA+B&Obxk2wEn2jJ?7 zVFB%$oTUD*k5Kl#TD%mtL`w7K+>7)y^x#4yewZ5#10D!WhLLkIdvPXc53fsDvyhe9 z1om470TD|~hJN7xqyS@&aDkuP&T@g!9l}z*7w6Kbvu}GO`7jzOfmI-fw z@mbJLm_-XGM66c_4}e7(;1^-HOt1`yy_ClI*U;l-smx^tJ7Fp->?h1-gQtX-I-rk@ za9|Yjh8p-+g86?)D9^}9WL7tv2WIxb2=MAAm|~;Na0i&_92^z0>lYybn4gDSU=c0w n1(>D{u8H{ZPVn)X+c3+byWlP1eLc|4t9qeDEQxHCG)n#gfIT#7 delta 26694 zcmeHwd$1!{nP1&`+G8{JFwDy{Z}&N^)_HvAd;GrdCx7WT4*jR^9r^g5ZaheAJ#_4L@XuCHQ`=gT z_x8k|)}MGyu|E|1TW`I*^`w8B*rsMb+W5f%`(NJu*z6sLf91diW`F4DhwS6WFU_X6 z{pf)GufF)k*+=hq;J^m@+-+~49Y6lTgB$4VqbGjjAb9Y3J7Pccp?4l6wte=~??q-; zPXBQ8;Gn158`n;6;5HWUzX9AKUIhHti*Dog=I1tPzffgInIe+R7K%)})ArP*aI@s+ zbF#)Ka+VhE^%Ff~l&YnN0a1xi11#EN1f-{ut!R*rVX2NZ>PcM5rzaS;+hh48+L!DX z^n2`g`Hs#`2flmcwzjAaygX;x*qKu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wUB1uu{pQr$8ntF0|9Qo{l|YC*-e&_)qO+B*Fxj~f_w3a{bL3cl3O8g z?6nKmd(rF8-(c6n-*Bw-J+}T&j{G%);}_51cxX{au}H+;h`|Bu{$Kj6mAdAv)gBMd zDKq`}M-cD}j>l%|cc`_HG3d3BF`%uzZ<)Eg0U_g;K`fd-53!hi;D5cmaWf(XfI)9S zq;P_~2i?*K==khS~OmVOY$a zoGW`s7W)Tz>&yyzEzAmdOt0=ER_q(+P3RT%wa_ad=xAHt{j=B1tI*cLs{mUHm&J{1 zb`vOGZ*Ilx@$Y@%hMWrIhMbDkak}gYr-b*0%nEir%nJ9w68pFndj;(EV_1M+>0JZE zqW$pf>?^}VKLfvlT?@Zru4n!dQ!Hjr|Ec%2(ktp~p;y4TeD>iVRbC6Vf?f-?0xIR> zyO|ZUZ~dP?1HVmb{)J;neE%Dl9@;|!aEvmnj-B&CmRb|Screbs30s0)4_m_3Mdudy zt(&)5;Y-ZE`hWk$;h!(}0W98y>vJDm1!$ggZVAn&6a0h#B4mJIvcoBDi-?v&+O~Jg{MQ1$MLB2sg-bKFOu=o{nw*?k( zu7w%_eHzHtf(4x57b&)OHWbvc?a(AZ&%Rpz1yKU@?V%RTkN={WV-Bagj??Zp?OK96 z+yYie;Uk>_R=}wM{|g3)_OFRmu}I_1e+Op&H0I+wv9(fQ3wRUm9zC$ja-M1 z!LEmo;U4bOdl?yX&3W%nesVJ&Ms*!LjDK@{g?6*ryfMC>==SG3l|uh=!1 hTVh#UxB<(;!CFGAg`MzB-IQjrV?&RDJmk~I{y&A}5_tds diff --git a/bundle/package.json b/bundle/package.json index 29608663..a326a131 100644 --- a/bundle/package.json +++ b/bundle/package.json @@ -51,7 +51,7 @@ "@fosscord/util": "file:../util", "async-exit-hook": "^2.0.1", "express": "^4.17.1", - "missing-native-js-functions": "^1.2.13", + "missing-native-js-functions": "^1.2.15", "node-os-utils": "^1.3.5" } } diff --git a/cdn/package-lock.json b/cdn/package-lock.json index a94f14097c53aa0e257cce38b27abc9785d2da6d..ec638f862ebc52dfaee6683c92f5ae6f8e72db40 100644 GIT binary patch delta 268 zcmcbXO#JsS@;^|m^hkvm3tc&m>5NQOrAJJs(raU)Ar@^%pGEk YrtLsiY&S4t*;qjj+qWNC&mz1M0Obo?6aWAK delta 270 zcmcbb#}~i^vv>g&C3aN3J)nVH1~=~H1_w(GBTPxaf(#?a(Slh%jKCn a#25|Rfv(tYV8*hsf*!VSKeC=hcqIU_vsvf> diff --git a/cdn/package.json b/cdn/package.json index 1eb6b1a8..c2bdbd79 100644 --- a/cdn/package.json +++ b/cdn/package.json @@ -51,7 +51,7 @@ "jest": "^27.0.6", "lambert-db": "^1.2.3", "lambert-server": "^1.2.8", - "missing-native-js-functions": "^1.2.10", + "missing-native-js-functions": "^1.2.15", "multer": "^1.4.2", "node-fetch": "^2.6.1", "supertest": "^6.1.6", diff --git a/gateway/package-lock.json b/gateway/package-lock.json index 40606ecd950a9ac54f60da06458680ef66682415..fc5d3bf214dbc6ddf42e8a75a869ff25e4045b03 100644 GIT binary patch delta 261 zcmeydkp0I(_6@5U8BI5@VeDXLG}&y*S~6w2U^k<|V|3d)E1`4v|L1bgJU z8yQuk=Hx^ar?_WV<+|wy2UkV<1*JzNhXXO#JsS@;^|m^hkvm3tc&m>5NQq)%qNF1dNxtT)MwCX-EBKTJ1aVHB9`&BnEP V?*HEnXif;Fi4(S0H!{}x0{|IMTKE6} delta 255 zcmeydkp0I(_6@5U84WhCVeDXLG~8^;S~6vFps)Vq8#C=EKisPjR$Qo^?^v$yZ0uhW zTIro%;N$0?rmr1pVH)XIVV;s?mR4z+7nbH8=AGl7k{o7H5@BTGp5-5$og9_w?3m~1 zndR%6mlNm|9#Ujz?iG<}?C+IjWRyOc@w(*ZWwYKSGa61dW&JSSgoROHvNs#o=DGiW SHz3;|N)!9HS2r@&`U3#)JX_lU diff --git a/gateway/package.json b/gateway/package.json index e55ebe30..310e867e 100644 --- a/gateway/package.json +++ b/gateway/package.json @@ -32,7 +32,7 @@ "dotenv": "^8.2.0", "jsonwebtoken": "^8.5.1", "lambert-server": "^1.2.8", - "missing-native-js-functions": "^1.2.10", + "missing-native-js-functions": "^1.2.15", "mongoose-autopopulate": "^0.12.3", "node-fetch": "^2.6.1", "uuid": "^8.3.2", diff --git a/util/package-lock.json b/util/package-lock.json index 571fffbeda2908a362ff560c173ae1069a294fd5..1f4c1875ba04231b18c67792c2c442f8f29b364e 100644 GIT binary patch delta 260 zcmaF0K=IWA#SQlu8BLq-Gq&Gn1YxG__ZgWl`b;Cag%Cf#;);M^ zk34rHql(m=oQUES_w1@%H~rw?sz|?}^r+WZ+C4^T?7CC delta 260 zcmaF0K=IWA#SQlu8I7CoGq&Gn1YxG__ZgWl`b_`4okf58eLrUV$%$?Xp@u<@jzwvq z*+uTzS*Cu*6<%TCMy7^tMge7M0Y>>%j>#3pK0Yo%W~G^#j+qr90j7>g85UJl?!JjB zsRc=e>6sqR25#;-A;FHJen}aYiAjDY{>9TT-ei_)U+d2d#4JF}3dC&F*ZQ+xr-$v^ K(*xO={{sMgq+YfF diff --git a/util/package.json b/util/package.json index 38cd8d35..6490d754 100644 --- a/util/package.json +++ b/util/package.json @@ -44,7 +44,7 @@ "env-paths": "^2.2.1", "jsonwebtoken": "^8.5.1", "lambert-server": "^1.2.10", - "missing-native-js-functions": "^1.2.13", + "missing-native-js-functions": "^1.2.15", "node-fetch": "^2.6.1", "patch-package": "^6.4.7", "pg": "^8.7.1",