From 1f416b972c6aa0cd4fc43a5790da56f8da21e82c Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Mon, 26 Sep 2022 22:08:14 +1000 Subject: Move schemas to /src/util/schemas --- assets/schemas.json | 15607 ++++++++++--------- package-lock.json | 340 +- package.json | 9 +- scripts/schema.js | 1 - src/api/routes/auth/login.ts | 11 +- src/api/routes/auth/mfa/totp.ts | 9 +- src/api/routes/auth/register.ts | 31 +- .../auth/verify/view-backup-codes-challenge.ts | 6 +- src/api/routes/channels/#channel_id/index.ts | 33 +- src/api/routes/channels/#channel_id/invites.ts | 12 - .../#channel_id/messages/#message_id/ack.ts | 7 +- .../#channel_id/messages/#message_id/index.ts | 6 +- .../channels/#channel_id/messages/bulk-delete.ts | 5 - .../routes/channels/#channel_id/messages/index.ts | 35 +- src/api/routes/channels/#channel_id/purge.ts | 14 +- src/api/routes/channels/#channel_id/webhooks.ts | 11 +- src/api/routes/guilds/#guild_id/audit-logs.ts | 3 - src/api/routes/guilds/#guild_id/bans.ts | 24 +- src/api/routes/guilds/#guild_id/channels.ts | 3 +- src/api/routes/guilds/#guild_id/emojis.ts | 14 +- src/api/routes/guilds/#guild_id/index.ts | 4 +- src/api/routes/guilds/#guild_id/integrations.ts | 3 - .../guilds/#guild_id/members/#member_id/index.ts | 8 +- .../guilds/#guild_id/members/#member_id/nick.ts | 4 - src/api/routes/guilds/#guild_id/prune.ts | 7 - .../guilds/#guild_id/roles/#role_id/index.ts | 3 +- src/api/routes/guilds/#guild_id/roles/index.ts | 15 +- src/api/routes/guilds/#guild_id/stickers.ts | 20 +- src/api/routes/guilds/#guild_id/templates.ts | 10 - src/api/routes/guilds/#guild_id/vanity-url.ts | 10 +- .../#guild_id/voice-states/#user_id/index.ts | 12 +- src/api/routes/guilds/#guild_id/webhooks.ts | 3 - src/api/routes/guilds/#guild_id/welcome-screen.ts | 13 +- src/api/routes/guilds/#guild_id/widget.ts | 7 +- src/api/routes/guilds/index.ts | 16 +- src/api/routes/guilds/templates/index.ts | 7 +- src/api/routes/users/@me/channels.ts | 7 +- src/api/routes/users/@me/index.ts | 22 +- src/api/routes/users/@me/mfa/codes-verification.ts | 8 +- src/api/routes/users/@me/mfa/codes.ts | 7 +- src/api/routes/users/@me/mfa/totp/disable.ts | 6 +- src/api/routes/users/@me/mfa/totp/enable.ts | 9 +- src/api/routes/users/@me/relationships.ts | 9 - src/api/util/handlers/Message.ts | 2 +- src/gateway/events/Message.ts | 20 +- src/gateway/opcodes/Identify.ts | 2 +- src/gateway/opcodes/LazyRequest.ts | 7 +- src/gateway/opcodes/PresenceUpdate.ts | 3 +- src/gateway/opcodes/VoiceStateUpdate.ts | 2 +- src/gateway/schema/Activity.ts | 60 - src/gateway/schema/Identify.ts | 106 - src/gateway/schema/LazyRequest.ts | 19 - src/gateway/schema/VoiceStateUpdateSchema.ts | 17 - src/util/schemas/ActivitySchema.ts | 60 + src/util/schemas/BackupCodesChallengeSchema.ts | 3 + src/util/schemas/BanCreateSchema.ts | 4 + src/util/schemas/BanModeratorSchema.ts | 7 + src/util/schemas/BanRegistrySchema.ts | 8 + src/util/schemas/BulkDeleteSchema.ts | 3 + src/util/schemas/ChannelModifySchema.ts | 30 + src/util/schemas/CodesVerificationSchema.ts | 5 + src/util/schemas/DmChannelCreateSchema.ts | 4 + src/util/schemas/EmojiCreateSchema.ts | 6 + src/util/schemas/EmojiModifySchema.ts | 4 + src/util/schemas/GuildCreateSchema.ts | 14 + src/util/schemas/GuildTemplateCreateSchema.ts | 4 + src/util/schemas/GuildUpdateWelcomeScreenSchema.ts | 10 + src/util/schemas/IdentifySchema.ts | 106 + src/util/schemas/InviteCreateSchema.ts | 11 + src/util/schemas/LazyRequestSchema.ts | 19 + src/util/schemas/LoginSchema.ts | 8 + src/util/schemas/MemberChangeSchema.ts | 4 + src/util/schemas/MemberNickChangeSchema.ts | 3 + src/util/schemas/MessageAcknowledgeSchema.ts | 4 + src/util/schemas/MessageCreateSchema.ts | 33 + src/util/schemas/MfaCodesSchema.ts | 4 + src/util/schemas/ModifyGuildStickerSchema.ts | 15 + src/util/schemas/PruneSchema.ts | 6 + src/util/schemas/PurgeSchema.ts | 4 + src/util/schemas/RegisterSchema.ts | 27 + src/util/schemas/RelationshipPostSchema.ts | 4 + src/util/schemas/RelationshipPutSchema.ts | 5 + src/util/schemas/RoleModifySchema.ts | 10 + src/util/schemas/SelectProtocolSchema.ts | 19 + src/util/schemas/TemplateCreateSchema.ts | 4 + src/util/schemas/TemplateModifySchema.ts | 4 + src/util/schemas/TotpDisableSchema.ts | 3 + src/util/schemas/TotpEnableSchema.ts | 5 + src/util/schemas/TotpSchema.ts | 6 + src/util/schemas/UserModifySchema.ts | 19 + src/util/schemas/VanityUrlSchema.ts | 7 + src/util/schemas/VoiceIdentifySchema.ts | 12 + src/util/schemas/VoiceStateUpdateSchema.ts | 22 + src/util/schemas/VoiceVideoSchema.ts | 17 + src/util/schemas/WebhookCreateSchema.ts | 8 + src/util/schemas/WidgetModifySchema.ts | 4 + src/util/schemas/index.ts | 41 +- src/util/schemas/voice.ts | 69 - 98 files changed, 8589 insertions(+), 8705 deletions(-) delete mode 100644 src/gateway/schema/Activity.ts delete mode 100644 src/gateway/schema/Identify.ts delete mode 100644 src/gateway/schema/LazyRequest.ts delete mode 100644 src/gateway/schema/VoiceStateUpdateSchema.ts create mode 100644 src/util/schemas/ActivitySchema.ts create mode 100644 src/util/schemas/BackupCodesChallengeSchema.ts create mode 100644 src/util/schemas/BanCreateSchema.ts create mode 100644 src/util/schemas/BanModeratorSchema.ts create mode 100644 src/util/schemas/BanRegistrySchema.ts create mode 100644 src/util/schemas/BulkDeleteSchema.ts create mode 100644 src/util/schemas/ChannelModifySchema.ts create mode 100644 src/util/schemas/CodesVerificationSchema.ts create mode 100644 src/util/schemas/DmChannelCreateSchema.ts create mode 100644 src/util/schemas/EmojiCreateSchema.ts create mode 100644 src/util/schemas/EmojiModifySchema.ts create mode 100644 src/util/schemas/GuildCreateSchema.ts create mode 100644 src/util/schemas/GuildTemplateCreateSchema.ts create mode 100644 src/util/schemas/GuildUpdateWelcomeScreenSchema.ts create mode 100644 src/util/schemas/IdentifySchema.ts create mode 100644 src/util/schemas/InviteCreateSchema.ts create mode 100644 src/util/schemas/LazyRequestSchema.ts create mode 100644 src/util/schemas/LoginSchema.ts create mode 100644 src/util/schemas/MemberChangeSchema.ts create mode 100644 src/util/schemas/MemberNickChangeSchema.ts create mode 100644 src/util/schemas/MessageAcknowledgeSchema.ts create mode 100644 src/util/schemas/MessageCreateSchema.ts create mode 100644 src/util/schemas/MfaCodesSchema.ts create mode 100644 src/util/schemas/ModifyGuildStickerSchema.ts create mode 100644 src/util/schemas/PruneSchema.ts create mode 100644 src/util/schemas/PurgeSchema.ts create mode 100644 src/util/schemas/RegisterSchema.ts create mode 100644 src/util/schemas/RelationshipPostSchema.ts create mode 100644 src/util/schemas/RelationshipPutSchema.ts create mode 100644 src/util/schemas/RoleModifySchema.ts create mode 100644 src/util/schemas/SelectProtocolSchema.ts create mode 100644 src/util/schemas/TemplateCreateSchema.ts create mode 100644 src/util/schemas/TemplateModifySchema.ts create mode 100644 src/util/schemas/TotpDisableSchema.ts create mode 100644 src/util/schemas/TotpEnableSchema.ts create mode 100644 src/util/schemas/TotpSchema.ts create mode 100644 src/util/schemas/UserModifySchema.ts create mode 100644 src/util/schemas/VanityUrlSchema.ts create mode 100644 src/util/schemas/VoiceIdentifySchema.ts create mode 100644 src/util/schemas/VoiceStateUpdateSchema.ts create mode 100644 src/util/schemas/VoiceVideoSchema.ts create mode 100644 src/util/schemas/WebhookCreateSchema.ts create mode 100644 src/util/schemas/WidgetModifySchema.ts delete mode 100644 src/util/schemas/voice.ts diff --git a/assets/schemas.json b/assets/schemas.json index f0b47515..e545acb8 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -1,178 +1,4 @@ { - "VoiceVideoSchema": { - "type": "object", - "properties": { - "audio_ssrc": { - "type": "integer" - }, - "video_ssrc": { - "type": "integer" - }, - "rtx_ssrc": { - "type": "integer" - }, - "user_id": { - "type": "string" - }, - "streams": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "enum": [ - "audio", - "video" - ], - "type": "string" - }, - "rid": { - "type": "string" - }, - "ssrc": { - "type": "integer" - }, - "active": { - "type": "boolean" - }, - "quality": { - "type": "integer" - }, - "rtx_ssrc": { - "type": "integer" - }, - "max_bitrate": { - "type": "integer" - }, - "max_framerate": { - "type": "integer" - }, - "max_resolution": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "height", - "type", - "width" - ] - } - }, - "additionalProperties": false, - "required": [ - "active", - "max_bitrate", - "max_framerate", - "max_resolution", - "quality", - "rid", - "rtx_ssrc", - "ssrc", - "type" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "audio_ssrc", - "video_ssrc" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "VoiceStateUpdateSchema": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "self_mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "channel_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "VoiceIdentifySchema": { - "type": "object", - "properties": { - "server_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "video": { - "type": "boolean" - }, - "streams": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "rid": { - "type": "string" - }, - "quality": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "quality", - "rid", - "type" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "server_id", - "session_id", - "token", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, "SelectProtocolSchema": { "type": "object", "properties": { @@ -267,103 +93,245 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageCreateSchema": { + "LoginSchema": { "type": "object", "properties": { - "type": { - "type": "integer" + "login": { + "type": "string" }, - "content": { + "password": { "type": "string" }, - "nonce": { + "undelete": { + "type": "boolean" + }, + "captcha_key": { "type": "string" }, - "channel_id": { + "login_source": { "type": "string" }, - "tts": { + "gift_code_sku_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "login", + "password" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "RegisterSchema": { + "type": "object", + "properties": { + "username": { + "minLength": 2, + "maxLength": 32, + "type": "string" + }, + "password": { + "minLength": 1, + "maxLength": 72, + "type": "string" + }, + "consent": { "type": "boolean" }, - "flags": { + "email": { + "format": "email", "type": "string" }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } + "fingerprint": { + "type": "string" }, - "embed": { - "$ref": "#/definitions/Embed" + "invite": { + "type": "string" }, - "allowed_mentions": { - "type": "object", - "properties": { - "parse": { - "type": "array", - "items": { + "date_of_birth": { + "type": "string" + }, + "gift_code_sku_id": { + "type": "string" + }, + "captcha_key": { + "type": "string" + }, + "promotional_email_opt_in": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "consent", + "username" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TotpSchema": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "gift_code_sku_id": { + "type": [ + "null", + "string" + ] + }, + "login_source": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "code", + "ticket" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BackupCodesChallengeSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ChannelModifySchema": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "type": "string" + }, + "type": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "topic": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "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" - } - }, - "roles": { - "type": "array", - "items": { + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + }, + "allow": { "type": "string" - } - }, - "users": { - "type": "array", - "items": { + }, + "deny": { "type": "string" } }, - "replied_user": { - "type": "boolean" - } - }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + } }, - "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" - ] + "parent_id": { + "type": "string" }, - "payload_json": { + "id": { "type": "string" }, - "file": {}, - "attachments": { - "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", - "type": "array", - "items": {} + "nsfw": { + "type": "boolean" }, - "sticker_ids": { - "type": "array", - "items": { - "type": "string" - } + "rtc_region": { + "type": "string" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "default_reaction_emoji": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" } }, "additionalProperties": false, "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -494,18 +462,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -620,107 +576,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -900,29 +778,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -933,24 +897,47 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RouteResponse": { + "InviteCreateSchema": { "type": "object", "properties": { - "status": { + "target_user_id": { + "type": "string" + }, + "target_type": { + "type": "string" + }, + "validate": { + "type": "string" + }, + "max_age": { "type": "integer" }, - "body": { - "type": "array", - "items": { - "type": "string" - } + "max_uses": { + "type": "integer" }, - "headers": { - "$ref": "#/definitions/Record" + "temporary": { + "type": "boolean" + }, + "unique": { + "type": "boolean" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" } }, "additionalProperties": false, "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -1081,18 +1068,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -1207,107 +1182,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -1487,29 +1384,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -1520,48 +1503,30 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "hcaptchaResponse": { + "PurgeSchema": { "type": "object", "properties": { - "success": { - "type": "boolean" - }, - "challenge_ts": { + "before": { "type": "string" }, - "hostname": { + "after": { "type": "string" - }, - "credit": { - "type": "boolean" - }, - "error-codes": { - "type": "array", - "items": { - "type": "string" - } - }, - "score": { - "type": "integer" - }, - "score_reason": { - "type": "array", - "items": { - "type": "string" - } } }, "additionalProperties": false, "required": [ - "challenge_ts", - "credit", - "error-codes", - "hostname", - "score", - "score_reason", - "success" + "after", + "before" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -1692,18 +1657,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -1818,107 +1771,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -2098,29 +1973,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -2131,40 +2092,31 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "recaptchaResponse": { + "WebhookCreateSchema": { "type": "object", "properties": { - "success": { - "type": "boolean" - }, - "score": { - "type": "integer" - }, - "action": { - "type": "string" - }, - "challenge_ts": { + "name": { + "maxLength": 80, "type": "string" }, - "hostname": { + "avatar": { "type": "string" - }, - "error-codes": { - "type": "array", - "items": { - "type": "string" - } } }, "additionalProperties": false, "required": [ - "action", - "challenge_ts", - "hostname", - "score", - "success" + "avatar", + "name" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -2295,18 +2247,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -2421,107 +2361,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -2701,29 +2563,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -2734,34 +2682,111 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "LoginSchema": { + "MessageCreateSchema": { "type": "object", "properties": { - "login": { + "type": { + "type": "integer" + }, + "content": { "type": "string" }, - "password": { + "nonce": { "type": "string" }, - "undelete": { + "channel_id": { + "type": "string" + }, + "tts": { "type": "boolean" }, - "captcha_key": { + "flags": { "type": "string" }, - "login_source": { - "type": "string" + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } }, - "gift_code_sku_id": { + "embed": { + "$ref": "#/definitions/Embed" + }, + "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": {}, + "attachments": { + "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", + "type": "array", + "items": {} + }, + "sticker_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, - "required": [ - "login", - "password" - ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -2892,18 +2917,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -3018,107 +3031,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -3298,29 +3233,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -3331,51 +3352,26 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RegisterSchema": { + "MessageAcknowledgeSchema": { "type": "object", "properties": { - "username": { - "minLength": 2, - "maxLength": 32, - "type": "string" - }, - "password": { - "minLength": 1, - "maxLength": 72, - "type": "string" - }, - "consent": { + "manual": { "type": "boolean" }, - "email": { - "format": "email", - "type": "string" - }, - "fingerprint": { - "type": "string" - }, - "invite": { - "type": "string" - }, - "date_of_birth": { - "type": "string" - }, - "gift_code_sku_id": { - "type": "string" - }, - "captcha_key": { - "type": "string" - }, - "promotional_email_opt_in": { - "type": "boolean" + "mention_count": { + "type": "integer" } }, "additionalProperties": false, - "required": [ - "consent", - "username" - ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -3506,18 +3502,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -3632,107 +3616,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -3912,29 +3818,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -3945,34 +3937,48 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TotpSchema": { + "GuildCreateSchema": { "type": "object", "properties": { - "code": { + "name": { + "maxLength": 100, "type": "string" }, - "ticket": { + "region": { "type": "string" }, - "gift_code_sku_id": { + "icon": { "type": [ "null", "string" ] }, - "login_source": { - "type": [ - "null", - "string" - ] + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelModifySchema" + } + }, + "guild_template_code": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" } }, "additionalProperties": false, - "required": [ - "code", - "ticket" - ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -4103,18 +4109,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -4229,107 +4223,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -4509,29 +4425,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -4542,18 +4544,26 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "BackupCodesChallengeSchema": { + "BanCreateSchema": { "type": "object", "properties": { - "password": { + "delete_message_days": { + "type": "string" + }, + "reason": { "type": "string" } }, "additionalProperties": false, - "required": [ - "password" - ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -4684,18 +4694,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -4810,107 +4808,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -5090,29 +5010,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -5123,120 +5129,41 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ChannelModifySchema": { + "BanModeratorSchema": { "type": "object", "properties": { - "name": { - "maxLength": 100, + "id": { "type": "string" }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { + "user_id": { "type": "string" }, - "icon": { - "type": [ - "null", - "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": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { + "guild_id": { "type": "string" }, - "id": { + "executor_id": { "type": "string" }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { + "reason": { "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" } }, "additionalProperties": false, + "required": [ + "executor_id", + "guild_id", + "id", + "user_id" + ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -5367,18 +5294,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -5493,107 +5408,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -5773,29 +5610,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -5806,39 +5729,44 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InviteCreateSchema": { + "BanRegistrySchema": { "type": "object", "properties": { - "target_user_id": { + "id": { "type": "string" }, - "target_type": { + "user_id": { "type": "string" }, - "validate": { + "guild_id": { "type": "string" }, - "max_age": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "temporary": { - "type": "boolean" - }, - "unique": { - "type": "boolean" + "executor_id": { + "type": "string" }, - "target_user": { + "ip": { "type": "string" }, - "target_user_type": { - "type": "integer" + "reason": { + "type": "string" } }, "additionalProperties": false, + "required": [ + "executor_id", + "guild_id", + "id", + "user_id" + ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -5969,18 +5897,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -6095,107 +6011,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -6375,29 +6213,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -6408,30 +6332,41 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ChannelPermissionOverwriteSchema": { + "EmojiCreateSchema": { "type": "object", "properties": { - "allow": { + "name": { "type": "string" }, - "deny": { + "image": { "type": "string" }, - "id": { - "type": "string" + "require_colons": { + "type": [ + "null", + "boolean" + ] }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" + "roles": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "allow", - "deny", - "id", - "type" + "image" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -6562,18 +6497,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -6688,107 +6611,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -6968,29 +6813,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -7001,22 +6932,29 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "PurgeSchema": { + "EmojiModifySchema": { "type": "object", "properties": { - "before": { + "name": { "type": "string" }, - "after": { - "type": "string" + "roles": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, - "required": [ - "after", - "before" - ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -7147,18 +7085,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -7273,107 +7199,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -7553,29 +7401,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -7586,23 +7520,37 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebhookCreateSchema": { + "ModifyGuildStickerSchema": { "type": "object", "properties": { "name": { - "maxLength": 80, + "minLength": 2, + "maxLength": 30, "type": "string" }, - "avatar": { + "description": { + "maxLength": 100, + "type": "string" + }, + "tags": { + "maxLength": 200, "type": "string" } }, "additionalProperties": false, "required": [ - "avatar", - "name" + "name", + "tags" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -7733,18 +7681,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -7859,107 +7795,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -8139,29 +7997,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -8172,21 +8116,29 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "BulkDeleteSchema": { + "TemplateCreateSchema": { "type": "object", "properties": { - "messages": { - "type": "array", - "items": { - "type": "string" - } + "name": { + "type": "string" + }, + "description": { + "type": "string" } }, "additionalProperties": false, "required": [ - "messages" + "name" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -8317,18 +8269,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -8443,107 +8383,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -8723,29 +8585,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -8756,18 +8704,29 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageAcknowledgeSchema": { + "TemplateModifySchema": { "type": "object", "properties": { - "manual": { - "type": "boolean" + "name": { + "type": "string" }, - "mention_count": { - "type": "integer" + "description": { + "type": "string" } }, "additionalProperties": false, + "required": [ + "name" + ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -8898,18 +8857,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -9024,107 +8971,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -9304,80 +9173,144 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { - "type": "boolean" + "username": { + "type": "string" }, - "status": { - "$ref": "#/definitions/Status" + "discriminator": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "id": { + "type": "string" }, - "since": { + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_since": { + "type": "string", + "format": "date-time" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" ] }, - "HeaderBag": { - "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", + "PublicConnectedAccount": { "type": "object", - "additionalProperties": false - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GatewayBotResponse": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "shards": { - "type": "integer" + "properties": { + "type": { + "type": "string" + }, + "name": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] }, - "session_start_limit": { + "Partial": { "type": "object", "properties": { - "total": { + "message_notifications": { "type": "integer" }, - "remaining": { - "type": "integer" + "mute_config": { + "$ref": "#/definitions/MuteConfig" }, - "reset_after": { + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { "type": "integer" }, - "max_concurrency": { + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "max_concurrency", - "remaining", - "reset_after", - "total" + "end_time", + "selected_time_window" ] + }, + "HeaderBag": { + "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", + "type": "object", + "additionalProperties": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "VanityUrlSchema": { + "type": "object", + "properties": { + "code": { + "minLength": 1, + "maxLength": 20, + "type": "string" } }, "additionalProperties": false, - "required": [ - "session_start_limit", - "shards", - "url" - ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -9508,18 +9441,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -9634,107 +9555,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -9914,29 +9757,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -9947,18 +9876,51 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GatewayResponse": { + "GuildUpdateWelcomeScreenSchema": { "type": "object", "properties": { - "url": { + "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" + ] + } + }, + "enabled": { + "type": "boolean" + }, + "description": { "type": "string" } }, "additionalProperties": false, - "required": [ - "url" - ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -10089,18 +10051,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -10215,107 +10165,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -10495,29 +10367,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -10528,40 +10486,30 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildCreateSchema": { + "WidgetModifySchema": { "type": "object", "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "region": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelModifySchema" - } - }, - "guild_template_code": { - "type": "string" - }, - "system_channel_id": { - "type": "string" + "enabled": { + "type": "boolean" }, - "rules_channel_id": { + "channel_id": { "type": "string" } }, "additionalProperties": false, + "required": [ + "channel_id", + "enabled" + ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -10692,18 +10640,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -10818,107 +10754,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -11098,29 +10956,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -11131,18 +11075,29 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "BanCreateSchema": { + "MemberChangeSchema": { "type": "object", "properties": { - "delete_message_days": { - "type": "string" + "roles": { + "type": "array", + "items": { + "type": "string" + } }, - "reason": { + "nick": { "type": "string" } }, "additionalProperties": false, "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -11273,18 +11228,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -11399,107 +11342,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -11679,29 +11544,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -11712,36 +11663,44 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "BanRegistrySchema": { + "RoleModifySchema": { "type": "object", "properties": { - "id": { + "name": { "type": "string" }, - "user_id": { + "permissions": { "type": "string" }, - "guild_id": { - "type": "string" + "color": { + "type": "integer" }, - "executor_id": { - "type": "string" + "hoist": { + "type": "boolean" }, - "ip": { + "mentionable": { + "type": "boolean" + }, + "position": { + "type": "integer" + }, + "icon": { "type": "string" }, - "reason": { + "unicode_emoji": { "type": "string" } }, "additionalProperties": false, - "required": [ - "executor_id", - "guild_id", - "id", - "user_id" - ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -11872,18 +11831,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -11998,107 +11945,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -12278,29 +12147,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -12311,33 +12266,32 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "BanModeratorSchema": { + "GuildTemplateCreateSchema": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "executor_id": { + "name": { "type": "string" }, - "reason": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ - "executor_id", - "guild_id", - "id", - "user_id" + "name" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -12468,18 +12422,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -12594,107 +12536,29 @@ }, "additionalProperties": false }, - "UserPublic": { + "ActivitySchema": { "type": "object", "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { + "afk": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -12874,29 +12738,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -12907,30 +12857,32 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ChannelReorderSchema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "lock_permissions": { - "type": "boolean" - }, - "parent_id": { + "DmChannelCreateSchema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { "type": "string" } - }, - "additionalProperties": false, - "required": [ - "id" - ] + } }, + "additionalProperties": false, + "required": [ + "recipients" + ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -13061,18 +13013,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -13187,107 +13127,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -13467,29 +13329,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -13500,33 +13448,59 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "EmojiCreateSchema": { + "UserModifySchema": { "type": "object", "properties": { - "name": { + "username": { + "minLength": 1, + "maxLength": 100, "type": "string" }, - "image": { + "avatar": { + "type": [ + "null", + "string" + ] + }, + "bio": { + "maxLength": 1024, "type": "string" }, - "require_colons": { + "accent_color": { + "type": "integer" + }, + "banner": { "type": [ "null", - "boolean" + "string" ] }, - "roles": { - "type": "array", - "items": { - "type": "string" - } + "password": { + "type": "string" + }, + "new_password": { + "type": "string" + }, + "code": { + "type": "string" + }, + "email": { + "type": "string" + }, + "discriminator": { + "type": "string" } }, "additionalProperties": false, - "required": [ - "image" - ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -13657,18 +13631,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -13750,140 +13712,62 @@ ] } }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "type": { + "parent_id": { "type": "string" }, - "name": { + "id": { "type": "string" }, - "verified": { + "nsfw": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" + "rtc_region": { + "type": "string" }, - "muted": { - "type": "boolean" + "default_auto_archive_duration": { + "type": "integer" }, - "channel_id": { + "default_reaction_emoji": { "type": [ "null", "string" ] + }, + "flags": { + "type": "integer" + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" } }, "additionalProperties": false }, - "MuteConfig": { + "ActivitySchema": { "type": "object", "properties": { - "end_time": { - "type": "integer" + "afk": { + "type": "boolean" }, - "selected_time_window": { + "status": { + "$ref": "#/definitions/Status" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -14063,29 +13947,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -14096,21 +14066,30 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "EmojiModifySchema": { + "RelationshipPostSchema": { "type": "object", "properties": { - "name": { + "discriminator": { "type": "string" }, - "roles": { - "type": "array", - "items": { - "type": "string" - } + "username": { + "type": "string" } }, "additionalProperties": false, + "required": [ + "discriminator", + "username" + ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -14241,18 +14220,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -14367,107 +14334,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -14647,29 +14536,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -14680,82 +14655,29 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildUpdateSchema": { + "RelationshipPutSchema": { "type": "object", "properties": { - "banner": { - "type": [ - "null", - "string" - ] - }, - "splash": { - "type": [ - "null", - "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" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "name": { - "maxLength": 100, - "type": "string" - }, - "region": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "guild_template_code": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" } }, "additionalProperties": false, "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -14886,18 +14808,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -15012,107 +14922,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -15292,29 +15124,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -15325,18 +15243,33 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "PruneSchema": { + "CodesVerificationSchema": { "type": "object", "properties": { - "days": { - "type": "integer" + "key": { + "type": "string" + }, + "nonce": { + "type": "string" + }, + "regenerate": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "days" + "key", + "nonce" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -15467,18 +15400,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -15593,107 +15514,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -15873,29 +15716,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -15906,29 +15835,29 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ModifyGuildStickerSchema": { + "MfaCodesSchema": { "type": "object", "properties": { - "name": { - "minLength": 2, - "maxLength": 30, - "type": "string" - }, - "description": { - "maxLength": 100, + "password": { "type": "string" }, - "tags": { - "maxLength": 200, - "type": "string" + "regenerate": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "name", - "tags" + "password" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -16059,18 +15988,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -16185,107 +16102,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -16465,29 +16304,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -16498,21 +16423,26 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TemplateCreateSchema": { + "TotpDisableSchema": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "description": { + "code": { "type": "string" } }, "additionalProperties": false, "required": [ - "name" + "code" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -16643,18 +16573,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -16769,107 +16687,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -17049,29 +16889,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -17082,21 +17008,32 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TemplateModifySchema": { + "TotpEnableSchema": { "type": "object", "properties": { - "name": { + "password": { "type": "string" }, - "description": { + "code": { + "type": "string" + }, + "secret": { "type": "string" } }, "additionalProperties": false, "required": [ - "name" + "password" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -17227,18 +17164,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -17353,107 +17278,29 @@ }, "additionalProperties": false }, - "UserPublic": { + "ActivitySchema": { "type": "object", "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { + "afk": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -17633,29 +17480,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -17666,17 +17599,64 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VanityUrlSchema": { + "VoiceIdentifySchema": { "type": "object", "properties": { - "code": { - "minLength": 1, - "maxLength": 20, + "server_id": { + "type": "string" + }, + "user_id": { "type": "string" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "video": { + "type": "boolean" + }, + "streams": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "rid": { + "type": "string" + }, + "quality": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "quality", + "rid", + "type" + ] + } } }, "additionalProperties": false, + "required": [ + "server_id", + "session_id", + "token", + "user_id" + ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -17807,18 +17787,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -17933,107 +17901,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -18213,29 +18103,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -18246,43 +18222,49 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildUpdateWelcomeScreenSchema": { + "VoiceStateUpdateSchema": { "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" - ] - } + "guild_id": { + "type": "string" }, - "enabled": { + "channel_id": { + "type": "string" + }, + "self_mute": { "type": "boolean" }, - "description": { + "self_deaf": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "preferred_region": { "type": "string" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "suppress": { + "type": "boolean" } }, "additionalProperties": false, + "required": [ + "self_deaf", + "self_mute" + ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -18413,18 +18395,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -18512,134 +18482,56 @@ "id": { "type": "string" }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { + "nsfw": { "type": "boolean" }, - "channel_id": { + "rtc_region": { + "type": "string" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "default_reaction_emoji": { "type": [ "null", "string" ] + }, + "flags": { + "type": "integer" + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" } }, "additionalProperties": false }, - "MuteConfig": { + "ActivitySchema": { "type": "object", "properties": { - "end_time": { - "type": "integer" + "afk": { + "type": "boolean" }, - "selected_time_window": { + "status": { + "$ref": "#/definitions/Status" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -18819,29 +18711,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -18852,22 +18830,104 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WidgetModifySchema": { + "VoiceVideoSchema": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "audio_ssrc": { + "type": "integer" }, - "channel_id": { + "video_ssrc": { + "type": "integer" + }, + "rtx_ssrc": { + "type": "integer" + }, + "user_id": { "type": "string" + }, + "streams": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "enum": [ + "audio", + "video" + ], + "type": "string" + }, + "rid": { + "type": "string" + }, + "ssrc": { + "type": "integer" + }, + "active": { + "type": "boolean" + }, + "quality": { + "type": "integer" + }, + "rtx_ssrc": { + "type": "integer" + }, + "max_bitrate": { + "type": "integer" + }, + "max_framerate": { + "type": "integer" + }, + "max_resolution": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "height", + "type", + "width" + ] + } + }, + "additionalProperties": false, + "required": [ + "active", + "max_bitrate", + "max_framerate", + "max_resolution", + "quality", + "rid", + "rtx_ssrc", + "ssrc", + "type" + ] + } } }, "additionalProperties": false, "required": [ - "channel_id", - "enabled" + "audio_ssrc", + "video_ssrc" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -18998,18 +19058,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -19124,6 +19172,216 @@ }, "additionalProperties": false }, + "ActivitySchema": { + "type": "object", + "properties": { + "afk": { + "type": "boolean" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "since": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "afk", + "status" + ] + }, + "Status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "Activity": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ActivityType" + }, + "url": { + "type": "string" + }, + "created_at": { + "type": "integer" + }, + "timestamps": { + "type": "object", + "properties": { + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end", + "start" + ] + }, + "application_id": { + "type": "string" + }, + "details": { + "type": "string" + }, + "state": { + "type": "string" + }, + "emoji": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "name" + ] + }, + "party": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "size": { + "type": "array", + "items": [ + { + "type": "integer" + } + ], + "minItems": 1, + "maxItems": 1 + } + }, + "additionalProperties": false + }, + "assets": { + "type": "object", + "properties": { + "large_image": { + "type": "string" + }, + "large_text": { + "type": "string" + }, + "small_image": { + "type": "string" + }, + "small_text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "secrets": { + "type": "object", + "properties": { + "join": { + "type": "string" + }, + "spectate": { + "type": "string" + }, + "match": { + "type": "string" + } + }, + "additionalProperties": false + }, + "instance": { + "type": "boolean" + }, + "flags": { + "type": "string" + }, + "id": { + "type": "string" + }, + "sync_id": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "context_uri": { + "type": "string" + }, + "album_id": { + "type": "string" + }, + "artist_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "album_id", + "artist_ids" + ] + }, + "session_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "flags", + "name", + "session_id", + "type" + ] + }, + "ActivityType": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, "UserPublic": { "type": "object", "properties": { @@ -19227,231 +19485,186 @@ "selected_time_window" ] }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], + "HeaderBag": { + "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", + "type": "object", + "additionalProperties": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "IdentifySchema": { + "type": "object", + "properties": { + "token": { "type": "string" }, - "Activity": { + "properties": { "type": "object", "properties": { - "name": { + "os": { "type": "string" }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { + "os_atch": { "type": "string" }, - "created_at": { - "type": "integer" + "browser": { + "type": "string" }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] + "device": { + "type": "string" }, - "application_id": { + "$os": { "type": "string" }, - "details": { + "$browser": { "type": "string" }, - "state": { + "$device": { "type": "string" }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] + "browser_user_agent": { + "type": "string" }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": [ - { - "type": "integer" - } - ], - "minItems": 1, - "maxItems": 1 - } - }, - "additionalProperties": false + "browser_version": { + "type": "string" }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false + "os_version": { + "type": "string" }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false + "referrer": { + "type": "string" }, - "instance": { - "type": "boolean" + "referring_domain": { + "type": "string" }, - "flags": { + "referrer_current": { "type": "string" }, - "id": { + "referring_domain_current": { "type": "string" }, - "sync_id": { + "release_channel": { + "enum": [ + "canary", + "dev", + "ptb", + "stable" + ], "type": "string" }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] + "client_build_number": { + "type": "integer" }, - "session_id": { + "client_event_source": {}, + "client_version": { + "type": "string" + }, + "system_locale": { "type": "string" } }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] + "additionalProperties": false }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 + "intents": { + "type": "bigint" + }, + "presence": { + "$ref": "#/definitions/ActivitySchema" + }, + "compress": { + "type": "boolean" + }, + "large_threshold": { + "type": "integer" + }, + "largeThreshold": { + "type": "integer" + }, + "shard": { + "type": "array", + "items": [ + { + "type": "bigint" + }, + { + "type": "bigint" + } ], - "type": "number" + "minItems": 2, + "maxItems": 2 }, - "ActivitySchema": { + "guild_subscriptions": { + "type": "boolean" + }, + "capabilities": { + "type": "integer" + }, + "client_state": { "type": "object", "properties": { - "afk": { - "type": "boolean" + "guild_hashes": {}, + "highest_last_message_id": { + "type": [ + "string", + "integer" + ] }, - "status": { - "$ref": "#/definitions/Status" + "read_state_version": { + "type": "integer" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "user_guild_settings_version": { + "type": "integer" }, - "since": { + "user_settings_version": { + "type": "integer" + }, + "useruser_guild_settings_version": { "type": "integer" } }, - "additionalProperties": false, - "required": [ - "afk", - "status" - ] + "additionalProperties": false }, - "HeaderBag": { - "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", + "clientState": { "type": "object", + "properties": { + "guildHashes": {}, + "highestLastMessageId": { + "type": [ + "string", + "integer" + ] + }, + "readStateVersion": { + "type": "integer" + }, + "userGuildSettingsVersion": { + "type": "integer" + }, + "useruserGuildSettingsVersion": { + "type": "integer" + } + }, "additionalProperties": false - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MemberChangeSchema": { - "type": "object", - "properties": { - "roles": { - "type": "array", - "items": { - "type": "string" - } }, - "nick": { - "type": "string" + "v": { + "type": "integer" } }, "additionalProperties": false, + "required": [ + "properties", + "token" + ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -19582,18 +19795,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -19708,107 +19909,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -19988,29 +20111,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -20021,18 +20230,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MemberNickChangeSchema": { - "type": "object", - "properties": { - "nick": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "nick" - ], + "ActivitySchema": { + "$ref": "#/definitions/ActivitySchema", "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -20163,18 +20371,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -20289,107 +20485,29 @@ }, "additionalProperties": false }, - "UserPublic": { + "ActivitySchema": { "type": "object", "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { + "afk": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -20569,29 +20687,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -20602,36 +20806,49 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RoleModifySchema": { + "LazyRequestSchema": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "permissions": { + "guild_id": { "type": "string" }, - "color": { - "type": "integer" + "channels": { + "$ref": "#/definitions/Record" }, - "hoist": { + "activities": { "type": "boolean" }, - "mentionable": { + "threads": { "type": "boolean" }, - "position": { - "type": "integer" + "typing": { + "enum": [ + true + ], + "type": "boolean" }, - "icon": { - "type": "string" + "members": { + "type": "array", + "items": {} }, - "unicode_emoji": { - "type": "string" + "thread_member_lists": { + "type": "array", + "items": {} } }, "additionalProperties": false, + "required": [ + "guild_id" + ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -20762,18 +20979,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -20888,107 +21093,29 @@ }, "additionalProperties": false }, - "UserPublic": { + "ActivitySchema": { "type": "object", "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { + "afk": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -21168,29 +21295,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -21201,25 +21414,32 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RolePositionUpdateSchema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { + "RouteResponse": { + "type": "object", + "properties": { + "status": { + "type": "integer" + }, + "body": { + "type": "array", + "items": { "type": "string" - }, - "position": { - "type": "integer" } }, - "additionalProperties": false, - "required": [ - "id", - "position" - ] + "headers": { + "$ref": "#/definitions/Record" + } }, + "additionalProperties": false, "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -21350,18 +21570,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -21476,107 +21684,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -21756,29 +21886,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -21789,24 +22005,56 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildTemplateCreateSchema": { + "hcaptchaResponse": { "type": "object", "properties": { - "name": { + "success": { + "type": "boolean" + }, + "challenge_ts": { "type": "string" }, - "avatar": { - "type": [ - "null", - "string" - ] + "hostname": { + "type": "string" + }, + "credit": { + "type": "boolean" + }, + "error-codes": { + "type": "array", + "items": { + "type": "string" + } + }, + "score": { + "type": "integer" + }, + "score_reason": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "name" + "challenge_ts", + "credit", + "error-codes", + "hostname", + "score", + "score_reason", + "success" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -21937,18 +22185,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -22063,107 +22299,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -22343,29 +22501,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -22376,30 +22620,48 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserProfileResponse": { + "recaptchaResponse": { "type": "object", "properties": { - "user": { - "$ref": "#/definitions/UserPublic" + "success": { + "type": "boolean" }, - "connected_accounts": { - "$ref": "#/definitions/PublicConnectedAccount" + "score": { + "type": "integer" }, - "premium_guild_since": { - "type": "string", - "format": "date-time" + "action": { + "type": "string" }, - "premium_since": { - "type": "string", - "format": "date-time" + "challenge_ts": { + "type": "string" + }, + "hostname": { + "type": "string" + }, + "error-codes": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "connected_accounts", - "user" + "action", + "challenge_ts", + "hostname", + "score", + "success" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -22530,18 +22792,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -22656,107 +22906,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -22936,69 +23108,157 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { - "type": "boolean" + "username": { + "type": "string" }, - "status": { - "$ref": "#/definitions/Status" + "discriminator": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "id": { + "type": "string" }, - "since": { + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_since": { + "type": "string", + "format": "date-time" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" ] }, - "HeaderBag": { - "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", - "type": "object", - "additionalProperties": false - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserRelationsResponse": { - "type": "object", - "properties": { - "object": { + "PublicConnectedAccount": { "type": "object", "properties": { - "id": { + "type": { "type": "string" }, - "username": { + "name": { "type": "string" }, - "avatar": { - "type": "string" + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" }, - "discriminator": { - "type": "string" + "mute_config": { + "$ref": "#/definitions/MuteConfig" }, - "public_flags": { + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "HeaderBag": { + "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", + "type": "object", "additionalProperties": false } }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ChannelPermissionOverwriteSchema": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, "additionalProperties": false, "required": [ - "object" + "allow", + "deny", + "id", + "type" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -23129,18 +23389,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -23255,107 +23503,29 @@ }, "additionalProperties": false }, - "UserPublic": { + "ActivitySchema": { "type": "object", "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { + "afk": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -23535,29 +23705,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -23568,24 +23824,55 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "DmChannelCreateSchema": { + "GatewayBotResponse": { "type": "object", "properties": { - "name": { + "url": { "type": "string" }, - "recipients": { - "type": "array", - "items": { - "type": "string" - } + "shards": { + "type": "integer" + }, + "session_start_limit": { + "type": "object", + "properties": { + "total": { + "type": "integer" + }, + "remaining": { + "type": "integer" + }, + "reset_after": { + "type": "integer" + }, + "max_concurrency": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "max_concurrency", + "remaining", + "reset_after", + "total" + ] } }, "additionalProperties": false, "required": [ - "recipients" + "session_start_limit", + "shards", + "url" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -23716,18 +24003,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -23842,107 +24117,29 @@ }, "additionalProperties": false }, - "UserPublic": { + "ActivitySchema": { "type": "object", "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { + "afk": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -24122,29 +24319,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -24155,51 +24438,26 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserModifySchema": { + "GatewayResponse": { "type": "object", "properties": { - "username": { - "minLength": 1, - "maxLength": 100, - "type": "string" - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "bio": { - "maxLength": 1024, - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": [ - "null", - "string" - ] - }, - "password": { - "type": "string" - }, - "new_password": { - "type": "string" - }, - "code": { - "type": "string" - }, - "email": { - "type": "string" - }, - "discriminator": { + "url": { "type": "string" } }, "additionalProperties": false, + "required": [ + "url" + ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -24330,18 +24588,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -24456,107 +24702,29 @@ }, "additionalProperties": false }, - "UserPublic": { + "ActivitySchema": { "type": "object", "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { + "afk": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -24736,29 +24904,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -24769,21 +25023,38 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RelationshipPutSchema": { - "type": "object", - "properties": { - "type": { + "ChannelReorderSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "lock_permissions": { + "type": "boolean" + }, + "parent_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + }, + "definitions": { + "ChannelPermissionOverwriteType": { "enum": [ + 0, 1, - 2, - 3, - 4 + 2 ], "type": "number" - } - }, - "additionalProperties": false, - "definitions": { + }, "Embed": { "type": "object", "properties": { @@ -24914,18 +25185,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -25040,107 +25299,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -25320,29 +25501,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -25353,22 +25620,21 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RelationshipPostSchema": { + "GuildUpdateSchema": { "type": "object", - "properties": { - "discriminator": { - "type": "string" - }, - "username": { - "type": "string" - } - }, "additionalProperties": false, - "required": [ - "discriminator", - "username" - ], + "patternProperties": { + "^[0-9]+$": {} + }, "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -25499,18 +25765,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -25580,152 +25834,74 @@ "type": "string" }, "deny": { - "type": "string" - } - }, - "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" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + } }, - "banner": { + "parent_id": { "type": "string" }, - "bio": { + "id": { "type": "string" }, - "bot": { + "nsfw": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "name": { + "rtc_region": { "type": "string" }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { + "default_auto_archive_duration": { "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { + "default_reaction_emoji": { "type": [ "null", "string" ] + }, + "flags": { + "type": "integer" + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" } }, "additionalProperties": false }, - "MuteConfig": { + "ActivitySchema": { "type": "object", "properties": { - "end_time": { - "type": "integer" + "afk": { + "type": "boolean" }, - "selected_time_window": { + "status": { + "$ref": "#/definitions/Status" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -25905,228 +26081,152 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { - "type": "boolean" + "username": { + "type": "string" }, - "status": { - "$ref": "#/definitions/Status" + "discriminator": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "id": { + "type": "string" }, - "since": { + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_since": { + "type": "string", + "format": "date-time" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" ] }, - "HeaderBag": { - "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", + "PublicConnectedAccount": { "type": "object", - "additionalProperties": false - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserSettingsSchema": { - "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": { - "anyOf": [ - { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false + "properties": { + "type": { + "type": "string" }, - { - "type": "null" + "name": { + "type": "string" + }, + "verified": { + "type": "boolean" } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" ] }, - "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": { + "Partial": { "type": "object", "properties": { - "all": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "all" + "end_time", + "selected_time_window" ] }, - "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": { + "HeaderBag": { + "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", + "type": "object", + "additionalProperties": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "RolePositionUpdateSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "string" + }, + "position": { + "type": "integer" } }, - "show_current_game": { - "type": "boolean" - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "stream_notifications_enabled": { - "type": "boolean" - }, - "theme": { + "additionalProperties": false, + "required": [ + "id", + "position" + ] + }, + "definitions": { + "ChannelPermissionOverwriteType": { "enum": [ - "dark", - "white" + 0, + 1, + 2 ], - "type": "string" - }, - "timezone_offset": { - "type": "integer" - }, - "banner_color": { - "type": [ - "null", - "string" - ] - }, - "friend_discovery_flags": { - "type": "integer" - }, - "view_nsfw_guilds": { - "type": "boolean" + "type": "number" }, - "passwordless": { - "type": "boolean" - } - }, - "additionalProperties": false, - "definitions": { "Embed": { "type": "object", "properties": { @@ -26257,18 +26357,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -26383,107 +26471,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -26663,29 +26673,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -26696,70 +26792,38 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserGuildSettingsSchema": { + "UserProfileResponse": { "type": "object", "properties": { - "channel_overrides": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/Partial" - } - }, - "version": { - "type": "integer" - }, - "flags": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" + "user": { + "$ref": "#/definitions/UserPublic" }, - "mute_scheduled_events": { - "type": "boolean" + "connected_accounts": { + "$ref": "#/definitions/PublicConnectedAccount" }, - "hide_muted_channels": { - "type": "boolean" + "premium_guild_since": { + "type": "string", + "format": "date-time" }, - "notify_highlights": { - "enum": [ - 0 - ], - "type": "number" + "premium_since": { + "type": "string", + "format": "date-time" } }, "additionalProperties": false, "required": [ - "channel_overrides" + "connected_accounts", + "user" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -26890,18 +26954,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -27016,107 +27068,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -27280,45 +27254,131 @@ }, "additionalProperties": false, "required": [ - "flags", + "flags", + "name", + "session_id", + "type" + ] + }, + "ActivityType": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "name": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ "name", - "session_id", - "type" + "type", + "verified" ] }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "ActivitySchema": { + "Partial": { "type": "object", "properties": { - "afk": { - "type": "boolean" + "message_notifications": { + "type": "integer" }, - "status": { - "$ref": "#/definitions/Status" + "mute_config": { + "$ref": "#/definitions/MuteConfig" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "muted": { + "type": "boolean" }, - "since": { + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -27329,25 +27389,44 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "CodesVerificationSchema": { + "UserRelationsResponse": { "type": "object", "properties": { - "key": { - "type": "string" - }, - "nonce": { - "type": "string" - }, - "regenerate": { - "type": "boolean" + "object": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + } + }, + "additionalProperties": false } }, "additionalProperties": false, "required": [ - "key", - "nonce" + "object" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -27478,18 +27557,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -27604,107 +27671,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -27884,29 +27873,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -27917,21 +27992,203 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MfaCodesSchema": { + "UserSettingsSchema": { "type": "object", "properties": { - "password": { + "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": { + "anyOf": [ + { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ] + }, + "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" }, - "regenerate": { + "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", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "white" + ], + "type": "string" + }, + "timezone_offset": { + "type": "integer" + }, + "banner_color": { + "type": [ + "null", + "string" + ] + }, + "friend_discovery_flags": { + "type": "integer" + }, + "view_nsfw_guilds": { + "type": "boolean" + }, + "passwordless": { "type": "boolean" } }, "additionalProperties": false, - "required": [ - "password" - ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -28062,18 +28319,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -28188,107 +28433,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -28468,29 +28635,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -28501,18 +28754,78 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TotpDisableSchema": { + "UserGuildSettingsSchema": { "type": "object", "properties": { - "code": { - "type": "string" + "channel_overrides": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Partial" + } + }, + "version": { + "type": "integer" + }, + "flags": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "message_notifications": { + "type": "integer" + }, + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } + ] + }, + "muted": { + "type": "boolean" + }, + "suppress_everyone": { + "type": "boolean" + }, + "suppress_roles": { + "type": "boolean" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "enum": [ + 0 + ], + "type": "number" } }, "additionalProperties": false, "required": [ - "code" + "channel_overrides" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -28643,18 +28956,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -28769,107 +29070,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -29049,29 +29272,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -29082,24 +29391,50 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TotpEnableSchema": { + "TransportMakeRequestResponse": { "type": "object", "properties": { - "password": { - "type": "string" - }, - "code": { - "type": "string" + "statusCode": { + "type": "integer" }, - "secret": { - "type": "string" + "headers": { + "type": "object", + "additionalProperties": { + "type": [ + "null", + "string" + ] + }, + "properties": { + "x-sentry-rate-limits": { + "type": [ + "null", + "string" + ] + }, + "retry-after": { + "type": [ + "null", + "string" + ] + } + }, + "required": [ + "retry-after", + "x-sentry-rate-limits" + ] } }, "additionalProperties": false, - "required": [ - "password" - ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -29230,18 +29565,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -29356,107 +29679,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -29636,29 +29881,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -29669,31 +30000,32 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ActivitySchema": { + "HttpResponse": { + "description": "Represents an HTTP message as received in reply to a request. Contains a\nnumeric status code in addition to standard message properties.", "type": "object", "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" + "statusCode": { + "type": "integer" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "headers": { + "$ref": "#/definitions/HeaderBag" }, - "since": { - "type": "integer" - } + "body": {} }, "additionalProperties": false, "required": [ - "afk", - "status" + "headers", + "statusCode" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -29824,18 +30156,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -29950,107 +30270,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -30230,203 +30472,154 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "afk", - "status" - ] + "additionalProperties": false }, - "HeaderBag": { - "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", + "Record": { "type": "object", "additionalProperties": false - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "IdentifySchema": { - "type": "object", - "properties": { - "token": { - "type": "string" }, - "properties": { + "UserPublic": { "type": "object", "properties": { - "os": { - "type": "string" - }, - "os_atch": { - "type": "string" - }, - "browser": { - "type": "string" - }, - "device": { - "type": "string" - }, - "$os": { - "type": "string" - }, - "$browser": { + "username": { "type": "string" }, - "$device": { + "discriminator": { "type": "string" }, - "browser_user_agent": { + "id": { "type": "string" }, - "browser_version": { - "type": "string" + "public_flags": { + "type": "integer" }, - "os_version": { + "avatar": { "type": "string" }, - "referrer": { - "type": "string" + "accent_color": { + "type": "integer" }, - "referring_domain": { + "banner": { "type": "string" }, - "referrer_current": { + "bio": { "type": "string" }, - "referring_domain_current": { - "type": "string" + "bot": { + "type": "boolean" }, - "release_channel": { - "enum": [ - "canary", - "dev", - "ptb", - "stable" - ], + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { "type": "string" }, - "client_build_number": { - "type": "integer" - }, - "client_event_source": {}, - "client_version": { + "name": { "type": "string" }, - "system_locale": { - "type": "string" + "verified": { + "type": "boolean" } }, - "additionalProperties": false - }, - "intents": { - "type": "bigint" - }, - "presence": { - "$ref": "#/definitions/ActivitySchema" - }, - "compress": { - "type": "boolean" - }, - "large_threshold": { - "type": "integer" - }, - "largeThreshold": { - "type": "integer" - }, - "shard": { - "type": "array", - "items": [ - { - "type": "bigint" - }, - { - "type": "bigint" - } - ], - "minItems": 2, - "maxItems": 2 - }, - "guild_subscriptions": { - "type": "boolean" - }, - "capabilities": { - "type": "integer" + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] }, - "client_state": { + "Partial": { "type": "object", "properties": { - "guild_hashes": {}, - "highest_last_message_id": { - "type": [ - "string", - "integer" - ] - }, - "read_state_version": { + "message_notifications": { "type": "integer" }, - "user_guild_settings_version": { - "type": "integer" + "mute_config": { + "$ref": "#/definitions/MuteConfig" }, - "user_settings_version": { - "type": "integer" + "muted": { + "type": "boolean" }, - "useruser_guild_settings_version": { - "type": "integer" + "channel_id": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false }, - "clientState": { + "MuteConfig": { "type": "object", "properties": { - "guildHashes": {}, - "highestLastMessageId": { - "type": [ - "string", - "integer" - ] - }, - "readStateVersion": { - "type": "integer" - }, - "userGuildSettingsVersion": { + "end_time": { "type": "integer" }, - "useruserGuildSettingsVersion": { + "selected_time_window": { "type": "integer" } }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "HeaderBag": { + "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", + "type": "object", "additionalProperties": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ResolvedHttpResponse": { + "description": "Represents HTTP message whose body has been resolved to a string. This is\nused in parsing http message.", + "type": "object", + "properties": { + "body": { + "type": "string" }, - "v": { + "statusCode": { "type": "integer" + }, + "headers": { + "$ref": "#/definitions/HeaderBag" } }, "additionalProperties": false, "required": [ - "properties", - "token" + "body", + "headers", + "statusCode" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -30557,18 +30750,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -30683,107 +30864,29 @@ }, "additionalProperties": false }, - "UserPublic": { + "ActivitySchema": { "type": "object", "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { + "afk": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -30963,75 +31066,148 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { - "type": "boolean" + "username": { + "type": "string" }, - "status": { - "$ref": "#/definitions/Status" + "discriminator": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "id": { + "type": "string" }, - "since": { + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_since": { + "type": "string", + "format": "date-time" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" ] }, - "HeaderBag": { - "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", + "PublicConnectedAccount": { "type": "object", - "additionalProperties": false - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TransportMakeRequestResponse": { - "type": "object", - "properties": { - "statusCode": { - "type": "integer" + "properties": { + "type": { + "type": "string" + }, + "name": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] }, - "headers": { + "Partial": { "type": "object", - "additionalProperties": { - "type": [ - "null", - "string" - ] - }, "properties": { - "x-sentry-rate-limits": { - "type": [ - "null", - "string" - ] + "message_notifications": { + "type": "integer" }, - "retry-after": { + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { "type": [ "null", "string" ] } }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, "required": [ - "retry-after", - "x-sentry-rate-limits" + "end_time", + "selected_time_window" ] + }, + "HeaderBag": { + "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", + "type": "object", + "additionalProperties": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BulkDeleteSchema": { + "type": "object", + "properties": { + "messages": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, + "required": [ + "messages" + ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -31162,18 +31338,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -31288,107 +31452,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -31568,29 +31654,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -31601,24 +31773,26 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "HttpResponse": { - "description": "Represents an HTTP message as received in reply to a request. Contains a\nnumeric status code in addition to standard message properties.", + "MemberNickChangeSchema": { "type": "object", "properties": { - "statusCode": { - "type": "integer" - }, - "headers": { - "$ref": "#/definitions/HeaderBag" - }, - "body": {} + "nick": { + "type": "string" + } }, "additionalProperties": false, "required": [ - "headers", - "statusCode" + "nick" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -31749,18 +31923,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -31875,107 +32037,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -32155,29 +32239,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { @@ -32188,27 +32358,26 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ResolvedHttpResponse": { - "description": "Represents HTTP message whose body has been resolved to a string. This is\nused in parsing http message.", + "PruneSchema": { "type": "object", "properties": { - "body": { - "type": "string" - }, - "statusCode": { + "days": { "type": "integer" - }, - "headers": { - "$ref": "#/definitions/HeaderBag" } }, "additionalProperties": false, "required": [ - "body", - "headers", - "statusCode" + "days" ], "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, "Embed": { "type": "object", "properties": { @@ -32339,18 +32508,6 @@ }, "additionalProperties": false }, - "Record": { - "type": "object", - "additionalProperties": false - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, "ChannelModifySchema": { "type": "object", "properties": { @@ -32465,107 +32622,29 @@ }, "additionalProperties": false }, - "UserPublic": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "public_flags", - "username" - ] - }, - "PublicConnectedAccount": { + "ActivitySchema": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "verified": { + "afk": { "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type", - "verified" - ] - }, - "Partial": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" }, - "muted": { - "type": "boolean" + "status": { + "$ref": "#/definitions/Status" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "selected_time_window": { + "since": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "afk", + "status" ] }, "Status": { @@ -32745,29 +32824,115 @@ ], "type": "number" }, - "ActivitySchema": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "UserPublic": { "type": "object", "properties": { - "afk": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" + "premium_since": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "public_flags", + "username" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "name": { + "type": "string" }, - "since": { + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "verified" + ] + }, + "Partial": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { "type": "integer" } }, "additionalProperties": false, "required": [ - "afk", - "status" + "end_time", + "selected_time_window" ] }, "HeaderBag": { diff --git a/package-lock.json b/package-lock.json index 490bc442..fd43bef5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,12 @@ "hasInstallScript": true, "license": "AGPL-3.0-only", "dependencies": { + "@aws-sdk/client-s3": "^3.178.0", + "@sentry/node": "^7.13.0", + "@sentry/tracing": "^7.13.0", "ajv": "^8.6.2", "ajv-formats": "^2.1.1", + "amqplib": "^0.10.3", "bcrypt": "^5.0.1", "cheerio": "^1.0.0-rc.12", "cookie-parser": "^1.4.6", @@ -59,18 +63,13 @@ "typescript": "^4.8.3" }, "optionalDependencies": { - "@aws-sdk/client-s3": "^3.178.0", - "@sentry/node": "^7.13.0", - "@sentry/tracing": "^7.13.0", - "@yukikaze-bot/erlpack": "^1.0.1", - "amqplib": "^0.10.3" + "@yukikaze-bot/erlpack": "^1.0.1" } }, "node_modules/@acuminous/bitsyntax": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/@acuminous/bitsyntax/-/bitsyntax-0.1.2.tgz", "integrity": "sha512-29lUK80d1muEQqiUsSo+3A0yP6CdspgC95EnKBMi22Xlwt79i/En4Vr67+cXhU+cZjbti3TgGGC5wy1stIywVQ==", - "optional": true, "dependencies": { "buffer-more-ints": "~1.0.0", "debug": "^4.3.4", @@ -84,7 +83,6 @@ "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "optional": true, "dependencies": { "ms": "2.1.2" }, @@ -100,20 +98,17 @@ "node_modules/@acuminous/bitsyntax/node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "optional": true + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/@acuminous/bitsyntax/node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "optional": true + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "node_modules/@aws-crypto/crc32": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-2.0.0.tgz", "integrity": "sha512-TvE1r2CUueyXOuHdEigYjIZVesInd9KN+K/TFFNfkkxRThiNxO6i4ZqqAVMoEjAamZZ1AA8WXJkjCz7YShHPQA==", - "optional": true, "dependencies": { "@aws-crypto/util": "^2.0.0", "@aws-sdk/types": "^3.1.0", @@ -123,14 +118,12 @@ "node_modules/@aws-crypto/crc32/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/crc32c": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@aws-crypto/crc32c/-/crc32c-2.0.0.tgz", "integrity": "sha512-vF0eMdMHx3O3MoOXUfBZry8Y4ZDtcuskjjKgJz8YfIDjLStxTZrYXk+kZqtl6A0uCmmiN/Eb/JbC/CndTV1MHg==", - "optional": true, "dependencies": { "@aws-crypto/util": "^2.0.0", "@aws-sdk/types": "^3.1.0", @@ -140,14 +133,12 @@ "node_modules/@aws-crypto/crc32c/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/ie11-detection": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@aws-crypto/ie11-detection/-/ie11-detection-2.0.2.tgz", "integrity": "sha512-5XDMQY98gMAf/WRTic5G++jfmS/VLM0rwpiOpaainKi4L0nqWMSB1SzsrEG5rjFZGYN6ZAefO+/Yta2dFM0kMw==", - "optional": true, "dependencies": { "tslib": "^1.11.1" } @@ -155,14 +146,12 @@ "node_modules/@aws-crypto/ie11-detection/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/sha1-browser": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@aws-crypto/sha1-browser/-/sha1-browser-2.0.0.tgz", "integrity": "sha512-3fIVRjPFY8EG5HWXR+ZJZMdWNRpwbxGzJ9IH9q93FpbgCH8u8GHRi46mZXp3cYD7gealmyqpm3ThZwLKJjWJhA==", - "optional": true, "dependencies": { "@aws-crypto/ie11-detection": "^2.0.0", "@aws-crypto/supports-web-crypto": "^2.0.0", @@ -175,14 +164,12 @@ "node_modules/@aws-crypto/sha1-browser/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/sha256-browser": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-2.0.0.tgz", "integrity": "sha512-rYXOQ8BFOaqMEHJrLHul/25ckWH6GTJtdLSajhlqGMx0PmSueAuvboCuZCTqEKlxR8CQOwRarxYMZZSYlhRA1A==", - "optional": true, "dependencies": { "@aws-crypto/ie11-detection": "^2.0.0", "@aws-crypto/sha256-js": "^2.0.0", @@ -197,14 +184,12 @@ "node_modules/@aws-crypto/sha256-browser/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/sha256-js": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-2.0.0.tgz", "integrity": "sha512-VZY+mCY4Nmrs5WGfitmNqXzaE873fcIZDu54cbaDaaamsaTOP1DBImV9F4pICc3EHjQXujyE8jig+PFCaew9ig==", - "optional": true, "dependencies": { "@aws-crypto/util": "^2.0.0", "@aws-sdk/types": "^3.1.0", @@ -214,14 +199,12 @@ "node_modules/@aws-crypto/sha256-js/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/supports-web-crypto": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-2.0.2.tgz", "integrity": "sha512-6mbSsLHwZ99CTOOswvCRP3C+VCWnzBf+1SnbWxzzJ9lR0mA0JnY2JEAhp8rqmTE0GPFy88rrM27ffgp62oErMQ==", - "optional": true, "dependencies": { "tslib": "^1.11.1" } @@ -229,14 +212,12 @@ "node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/util": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-2.0.2.tgz", "integrity": "sha512-Lgu5v/0e/BcrZ5m/IWqzPUf3UYFTy/PpeED+uc9SWUR1iZQL8XXbGQg10UfllwwBryO3hFF5dizK+78aoXC1eA==", - "optional": true, "dependencies": { "@aws-sdk/types": "^3.110.0", "@aws-sdk/util-utf8-browser": "^3.0.0", @@ -246,14 +227,12 @@ "node_modules/@aws-crypto/util/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-sdk/abort-controller": { "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/abort-controller/-/abort-controller-3.178.0.tgz", "integrity": "sha512-ptDkCB06BJrYdhKzamM9yI15LxcGkPczY80hzKAY/aecm09alnW27uCt5HJJx2nCd18IUH28ZO1sc7DTLOWb3A==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -266,7 +245,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/chunked-blob-reader/-/chunked-blob-reader-3.170.0.tgz", "integrity": "sha512-73Fy1u9zR9ZMC59QobuCWg3LoYfcrFsrP8569vvqtlGqPuQUW+RW3gfx0omIDmxaSg8qq8REPLJFrAGfeL7VtQ==", - "optional": true, "dependencies": { "tslib": "^2.3.1" } @@ -275,7 +253,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/chunked-blob-reader-native/-/chunked-blob-reader-native-3.170.0.tgz", "integrity": "sha512-haJ7fdWaOgAM4trw2LBd1VIvRFzMMPz2jy9mu4rE+z1uHbPZHNMGytBo1FJO2DShzUCmJZi3t3CD/7aE3H38+w==", - "optional": true, "dependencies": { "@aws-sdk/util-base64-browser": "3.170.0", "tslib": "^2.3.1" @@ -285,7 +262,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.178.0.tgz", "integrity": "sha512-MyVmDj/eR/n5b8SRWKHK/U4c4HEppW+9uqaTLdYYlz9RpFyc3Pw1dWbwdvT65+Eb/ZOy4VkWPxzL+SAibvoFpw==", - "optional": true, "dependencies": { "@aws-crypto/sha1-browser": "2.0.0", "@aws-crypto/sha256-browser": "2.0.0", @@ -350,7 +326,6 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "optional": true, "funding": { "url": "https://github.com/fb55/entities?sponsor=1" } @@ -359,7 +334,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.178.0.tgz", "integrity": "sha512-3y7+/eD7VgByUu6IXIT0ICBNVJiDdkCKsck18OUzankICQsCsEg7RGeOlhdHkKBmDqGDJEJMuTWnGJQo1IVsgw==", - "optional": true, "dependencies": { "@aws-crypto/sha256-browser": "2.0.0", "@aws-crypto/sha256-js": "2.0.0", @@ -401,7 +375,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.178.0.tgz", "integrity": "sha512-r7LNxDhNpXmXxenHUcPROgwgpZLIuL3b8qWbRISp98YjT34G/MsxGseC8mhEPjuqcdc96xh+I2fknJ4JmeUKag==", - "optional": true, "dependencies": { "@aws-crypto/sha256-browser": "2.0.0", "@aws-crypto/sha256-js": "2.0.0", @@ -448,7 +421,6 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "optional": true, "funding": { "url": "https://github.com/fb55/entities?sponsor=1" } @@ -457,7 +429,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/config-resolver/-/config-resolver-3.178.0.tgz", "integrity": "sha512-8xL98TGMaVULIN7HRWV2q1o0Y2p38QuweehzM8yXCZrrLOyHgWo3waP2RNVeddOB7MrSwwU/gw9rXSv7YHLZ6w==", - "optional": true, "dependencies": { "@aws-sdk/signature-v4": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -473,7 +444,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.178.0.tgz", "integrity": "sha512-5CMswTJ188RuK9TmI5yAosIsyu4Mm9Cdq1068tRls5EqqwGK1PI7Q007b6rD7zqCb5IgeFBV0t2DxHkBmHRd3w==", - "optional": true, "dependencies": { "@aws-sdk/property-provider": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -487,7 +457,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-imds/-/credential-provider-imds-3.178.0.tgz", "integrity": "sha512-ZvqQTi3+S13LACVgaWNCOKBv5jROIz7rqyZh56QunAkaAUqPbpM4VFODgAGZYPCOSggZbEUUqXOVB9xSnshLnA==", - "optional": true, "dependencies": { "@aws-sdk/node-config-provider": "3.178.0", "@aws-sdk/property-provider": "3.178.0", @@ -503,7 +472,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.178.0.tgz", "integrity": "sha512-PhaJMzgg0I0WMD6i+t53Y7x0vCZQ5p6fTOQMOrbfJkAaCLZvUuDd2XfoCGpS53PPQKOg7hHQxMLJ5lfJ4qSIzg==", - "optional": true, "dependencies": { "@aws-sdk/credential-provider-env": "3.178.0", "@aws-sdk/credential-provider-imds": "3.178.0", @@ -522,7 +490,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.178.0.tgz", "integrity": "sha512-4yTP1ny0+D3fM7U4IdIp99EgveXxMSsxBr1jpCcZqTfP5MtfG9DK3i6QzkXGK4T6CQRU3o+DpD3yfcBChdjrww==", - "optional": true, "dependencies": { "@aws-sdk/credential-provider-env": "3.178.0", "@aws-sdk/credential-provider-imds": "3.178.0", @@ -543,7 +510,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.178.0.tgz", "integrity": "sha512-J4TldKrAnfayvRfxNEnLJUnTgkpTcct6rc7PwZlVSGSUgjglbcqfemUOP/pisLKbVNNL742lsUXmkUVH4km0Fw==", - "optional": true, "dependencies": { "@aws-sdk/property-provider": "3.178.0", "@aws-sdk/shared-ini-file-loader": "3.178.0", @@ -558,7 +524,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.178.0.tgz", "integrity": "sha512-fHgKYAve+nHKyr/j7njwfogLMZhlEWumTuZCmJjl19r0kM1X9c0MYStd1MvCDP3c+XG8vI17bQWNsD9eTJ86OQ==", - "optional": true, "dependencies": { "@aws-sdk/client-sso": "3.178.0", "@aws-sdk/property-provider": "3.178.0", @@ -574,7 +539,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.178.0.tgz", "integrity": "sha512-aei8o9ALtzwgYsZCAWdr+ItJyYTkYRmCoKstM4mkGtWNK9BjdISaVUAnndl6Pc/l/5eiK+2rlA+6Ujs4H8m+XQ==", - "optional": true, "dependencies": { "@aws-sdk/property-provider": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -588,7 +552,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-codec/-/eventstream-codec-3.178.0.tgz", "integrity": "sha512-x18waxfidmI9i4BLpnwV37rxHPyyviyWo5qRgYWX+gLxhN6Z6sB3/Pc/s8/yQmywMs6/DlMBYJUDTvYXR1cezA==", - "optional": true, "dependencies": { "@aws-crypto/crc32": "2.0.0", "@aws-sdk/types": "3.178.0", @@ -600,7 +563,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-serde-browser/-/eventstream-serde-browser-3.178.0.tgz", "integrity": "sha512-UMlCevpJoQ8oMlNKlQF0Ti5zIztLzx9zcrxfi4KK1A22qXamTA5kHloyq1mFwrTkbcr4uhQ9omDDx//hYQ+yNw==", - "optional": true, "dependencies": { "@aws-sdk/eventstream-serde-universal": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -614,7 +576,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-3.178.0.tgz", "integrity": "sha512-LmH5JuNCOvUI2g/7e2qlvHqRQW316J5iTawZQd233xUlmRO49kHc8HFvKPo98/V/S4MFsjlrZF9dcnly2txCxw==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -627,7 +588,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-serde-node/-/eventstream-serde-node-3.178.0.tgz", "integrity": "sha512-YsFoZ8MlVReGm7GKMjvo5vxLVo/ZPSDg6ckp7kff18zZMlbNtuK+zfgub3tX1f2hbDoV2bBVL3xuZJkeBELpHQ==", - "optional": true, "dependencies": { "@aws-sdk/eventstream-serde-universal": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -641,7 +601,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-serde-universal/-/eventstream-serde-universal-3.178.0.tgz", "integrity": "sha512-Rd8QjqzN2roSHsLn0y1iCt/KrEQL2qlNdunXRjBwXvjZGuODa6M8gpOvaPNpTWLiD+V6mO0zuPp+tWiLZxMndw==", - "optional": true, "dependencies": { "@aws-sdk/eventstream-codec": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -655,7 +614,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/fetch-http-handler/-/fetch-http-handler-3.178.0.tgz", "integrity": "sha512-T/LCNwCihdVNzGn39Dw7tk2U1fMlupFlCsAvDBbO+FOM3h+y9WLHzxmlAVsjPrFXlzdONKf9zd5cuQ+ZW93yAQ==", - "optional": true, "dependencies": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/querystring-builder": "3.178.0", @@ -668,7 +626,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/hash-blob-browser/-/hash-blob-browser-3.178.0.tgz", "integrity": "sha512-LgrKDNi56q3ayxcvbC0MMt/fgliKgMb8G2o1y6bUAKzlEtBHLFfTUjvzW1WsDfK8ZSrtz/bZNGECIjeFEdTggQ==", - "optional": true, "dependencies": { "@aws-sdk/chunked-blob-reader": "3.170.0", "@aws-sdk/chunked-blob-reader-native": "3.170.0", @@ -680,7 +637,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/hash-node/-/hash-node-3.178.0.tgz", "integrity": "sha512-mqYraRQlvPO5egUKTNZ1kP52sfwBlsz7woOewQTHOGomZBDXrh8bl1J+sgaDi1NAwXdZUgxuD3QKxxAKRs9a2Q==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "@aws-sdk/util-buffer-from": "3.170.0", @@ -694,7 +650,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/hash-stream-node/-/hash-stream-node-3.178.0.tgz", "integrity": "sha512-YzockpOajp5WOweB+/hIrQy9KNVXEgnbMDcuCmevYfoub+BJbjCs5eAZrhCJBkXpRKBz3X1U0vlYp7twFacPqw==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -707,7 +662,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/invalid-dependency/-/invalid-dependency-3.178.0.tgz", "integrity": "sha512-JJNaiLr3nbRYym6oUAAaoFFYtDnIZ9Scco2p4sG/thT2eyAfXcEdNl1cSD3E/R1J+Ml/YplqTiIY4u1KPAriRw==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -717,7 +671,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/is-array-buffer/-/is-array-buffer-3.170.0.tgz", "integrity": "sha512-yYXqgp8rilBckIvNRs22yAXHKcXb86/g+F+hsTZl38OJintTsLQB//O5v6EQTYhSW7T3wMe1NHDrjZ+hFjAy4Q==", - "optional": true, "dependencies": { "tslib": "^2.3.1" }, @@ -729,7 +682,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/md5-js/-/md5-js-3.178.0.tgz", "integrity": "sha512-o/F4QKjJL2gQdGq5eQnVGc9SlJ+/TjUBDJfn0Nyz4/OhDYVRvf4yJLT3+I9ZQN5M6DoFgqrLPH0MUHv4EmDPpw==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "@aws-sdk/util-utf8-browser": "3.170.0", @@ -741,7 +693,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.178.0.tgz", "integrity": "sha512-HCHonBmv5SWZMZqVNtWr73d6moZfcqTI87Xmi0Ofpra8tmu99WQpYgXmVLqK13wlPP2MJErBLkcDt15dsS0pJw==", - "optional": true, "dependencies": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -757,7 +708,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-content-length/-/middleware-content-length-3.178.0.tgz", "integrity": "sha512-p3n3IzU03eRzZivEoQn1HA83LbAKukZwRevsJpya1UfCUtWkXQO3v0jU8rhZE4deGa9k7zuCAEmJ8nCw3QxclQ==", - "optional": true, "dependencies": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -771,7 +721,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.178.0.tgz", "integrity": "sha512-4OJgVeN2fBRHpRBNq1cCkT02QmsIZmiqsCXDgoRRlHJdcrbE5vLVs/PG/B1LB5ugxLD8EzwgoTbnOxIk0R1Weg==", - "optional": true, "dependencies": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -785,7 +734,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.178.0.tgz", "integrity": "sha512-nd9mvl7uF3S3ok4u9O/Avlc5d9YL8/OMDnKBoGeIYuop5bAdcO1t/sEJWEex6YYgtj0e20fIosO7maCXs8/C1A==", - "optional": true, "dependencies": { "@aws-crypto/crc32": "2.0.0", "@aws-crypto/crc32c": "2.0.0", @@ -802,7 +750,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.178.0.tgz", "integrity": "sha512-EFc9S63iwCmudVpVSiVPiTnp6WCfsRYUmTrZJJouZzthEhJwcrunwu7Fa9lHYb0zcWLgVFLhzs1Z34J/Er4JoQ==", - "optional": true, "dependencies": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -816,7 +763,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.178.0.tgz", "integrity": "sha512-0Zrcdy75Q1CpAfjOFddiZSvK5iyeyh6fI7YRpUC8Fa3H+1kgW5sHESw0zyoC0NMAQkp1TgFrgxpaBuhAkdUzkg==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -829,7 +775,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.178.0.tgz", "integrity": "sha512-k4jnB+ryGiAhv6vyNFz2YoaVodldjkbz4mqDlVzhwEn77LT/TcwdBoown3cJD/45LEtiuPqeONoTcNCsuCkRFQ==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -842,7 +787,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.178.0.tgz", "integrity": "sha512-dVgSoP2Mer8A0JGaWgpC/f4vPyvHh7laES/u5sTy6RfwrR87oTx+uhKrc6eh+9NkMR2xdRyaNJAMIXwL5bsVzg==", - "optional": true, "dependencies": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -856,7 +800,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.178.0.tgz", "integrity": "sha512-glBXpAqt+4KQ7q8y2/kwDX2ujCvCSQok5rlAmUjaQjVPc3cX77QwATIRQTS2nBC4v9tfMc7yL64ZeRbx6n0RAQ==", - "optional": true, "dependencies": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/service-error-classification": "3.178.0", @@ -873,7 +816,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.178.0.tgz", "integrity": "sha512-/4IMPfSCsHZ3nFPPOFdNh+KlKkQE7LhesaxHEZA8f4qn/AnzBJUQLQ7iN4uvE+mD/WjNDUhNXX3ZqDRVaI2a+w==", - "optional": true, "dependencies": { "@aws-sdk/middleware-bucket-endpoint": "3.178.0", "@aws-sdk/protocol-http": "3.178.0", @@ -889,7 +831,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.178.0.tgz", "integrity": "sha512-5L29ElHmG2/i21tJVhwJOji/wvOlO5Ma2KGwbJgLywwcMov6VAm+0NIyAKhB5G96qEsexKenKj7swIDYtoEVHQ==", - "optional": true, "dependencies": { "@aws-sdk/middleware-signing": "3.178.0", "@aws-sdk/property-provider": "3.178.0", @@ -906,7 +847,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-serde/-/middleware-serde-3.178.0.tgz", "integrity": "sha512-TERiu/B4hYi5Jd4iQN9ECTWbt2IZweAgFB010MboM4CAPm6EcszEc/uCB4faLZNdJaksk1BhAR7koURcda8Sew==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -919,7 +859,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.178.0.tgz", "integrity": "sha512-593rKbGhgDmMxdgv6K1HruNteRm8uLaTde0HQkSXDyLw1xb7l2oeVcM7nmCt6WluQYJGKYoIBOWC9ePsisqDrg==", - "optional": true, "dependencies": { "@aws-sdk/property-provider": "3.178.0", "@aws-sdk/protocol-http": "3.178.0", @@ -935,7 +874,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.178.0.tgz", "integrity": "sha512-6TcOTv03X8ygg9XnGTN2nTC1gSNaSIPBFvvQntVGr08umIajtalnI+2a9F3/+DQkUk/3u/V5j39mL9m0oAiMVw==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -948,7 +886,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-stack/-/middleware-stack-3.178.0.tgz", "integrity": "sha512-ELYM5Imhlcz2zT1Z4OjVZwO564KvI4L9dMBxuUgO0fwommzjWqxR03yaRGhpGwpCP64d0Op5Koc/RKq5V92Wbw==", - "optional": true, "dependencies": { "tslib": "^2.3.1" }, @@ -960,7 +897,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.178.0.tgz", "integrity": "sha512-xkKBxrFbs+UwUPpfIGEPuHeBWS2Jgmcd+ipEJUQRR3lY4h1fJ6mPGeyyaVDvwaJp9KgESSI6QTp6V15l8GXXgQ==", - "optional": true, "dependencies": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -974,7 +910,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/node-config-provider/-/node-config-provider-3.178.0.tgz", "integrity": "sha512-yb5XJcC7SxkZ5oxu3zQ/foBdMkLBKryzx/CVg5BNSsKDjfbouf/ZYPcJDHhc2gzCtZcx18GjFBOnv8cpo/tyXQ==", - "optional": true, "dependencies": { "@aws-sdk/property-provider": "3.178.0", "@aws-sdk/shared-ini-file-loader": "3.178.0", @@ -989,7 +924,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/node-http-handler/-/node-http-handler-3.178.0.tgz", "integrity": "sha512-EtH6YiX1IX0QraQ/+kKBWAEtsFYBnFyxOimTBtlpDYwFpgDzIZ1GFn2wORYomEWALg10kphs8n3E5/7b5t5OWQ==", - "optional": true, "dependencies": { "@aws-sdk/abort-controller": "3.178.0", "@aws-sdk/protocol-http": "3.178.0", @@ -1005,7 +939,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.178.0.tgz", "integrity": "sha512-+Fh1aUANa+Gt/rh4SUHO0yHwKsibyZGk2LLDUcM1+9r0pUZT0qy3h0UCl5Kkj9HUcDJMD73wHTx4UB440xRobw==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -1018,7 +951,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.178.0.tgz", "integrity": "sha512-GsnANW60mVYMlE16UGNSOwYZ6TbkoODvmDQi95SEPjM7asf4vihEyDvhxiGS/JvC18UyxRVWT89l/V3hR/SF7w==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -1031,7 +963,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-builder/-/querystring-builder-3.178.0.tgz", "integrity": "sha512-vJXlExSshlHtGVvan/U6JihWvzf8t9QwH5I4F6HUY+exxMy5vFDYCnNqGAzbJwq7w/HME1gQWLoXq2k0uODz7g==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "@aws-sdk/util-uri-escape": "3.170.0", @@ -1045,7 +976,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-parser/-/querystring-parser-3.178.0.tgz", "integrity": "sha512-dp3pLnsOvAcIF7Yn2PY5CIVWX7GvC33nSlWDYeLeCMapccwTbe6zBqreWbScmIGJra4QJTdjccpwo2Yxwhr5QQ==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -1058,7 +988,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/service-error-classification/-/service-error-classification-3.178.0.tgz", "integrity": "sha512-tDKTBXxck2N4bhAnQaeokx9ps38V3G70lcDdHS/N9hmqcQQmH5x+1/AMwYWLjUZmOQPBW9sFoG4B3psnl+sefw==", - "optional": true, "engines": { "node": ">= 12.0.0" } @@ -1067,7 +996,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-3.178.0.tgz", "integrity": "sha512-nZGmuhGLDFbXsb7QYDg7PiPMAmsdlSshKJ+AhKSZF/J0SK94kdZgGnGXGUZe52S3G41E3CZIgnLnnsMXq0uErA==", - "optional": true, "dependencies": { "tslib": "^2.3.1" }, @@ -1079,7 +1007,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4/-/signature-v4-3.178.0.tgz", "integrity": "sha512-8oOx6o0uOqlCDPM0dszfR1WHqd0E1VuFqez8iNItp0DhmhaCuanEwKYYA6HOkVu/MA6CsG6zDIJaFr5ODU2NvQ==", - "optional": true, "dependencies": { "@aws-sdk/is-array-buffer": "3.170.0", "@aws-sdk/types": "3.178.0", @@ -1096,7 +1023,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.178.0.tgz", "integrity": "sha512-aSMu8j8llz7qXgWoojX2rpHE1LNAcA+X49A9gbwoeGIN9DxXotZO25DaW9Jgr7kVANP042+pwzAxluA15HYI8w==", - "optional": true, "dependencies": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/signature-v4": "3.178.0", @@ -1120,7 +1046,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/smithy-client/-/smithy-client-3.178.0.tgz", "integrity": "sha512-y2uAL3VMKIMZ/6kRAeL/vlIN4qrnmsfYhihm0yYhetdHtaXAN3WRsOpxOEjO3T92KmtQxMvtmRoAN05aVwtgoQ==", - "optional": true, "dependencies": { "@aws-sdk/middleware-stack": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -1134,7 +1059,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.178.0.tgz", "integrity": "sha512-CrHxHzXSEr/Z3NLFvJgSGHGcD9tYUZ0Rhp8tFCSpD3TpBo3/Y7RIvqaEPvECsL52UEloeBhQf65AO8590YkVmQ==", - "optional": true, "engines": { "node": ">= 12.0.0" } @@ -1143,7 +1067,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/url-parser/-/url-parser-3.178.0.tgz", "integrity": "sha512-+Ch29d+IZG6zD1gNDVgFC00huY8ytrPdijAuNJ4DtPBTGP4zbrImw3js0GfvfBjLrQYBnclcAvSx4J1Q/8tqBQ==", - "optional": true, "dependencies": { "@aws-sdk/querystring-parser": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -1154,7 +1077,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-arn-parser/-/util-arn-parser-3.170.0.tgz", "integrity": "sha512-2ivABL9GNsucfMMkgGjVdFidbDogtSr4FBVW12D4ltijOL82CAynGrnxHAczRGnmi5/1/Ir4ipkr9pAdRMGiGw==", - "optional": true, "dependencies": { "tslib": "^2.3.1" }, @@ -1166,7 +1088,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64-browser/-/util-base64-browser-3.170.0.tgz", "integrity": "sha512-uLP9Kp74+jc+UWI392LSWIaUj9eXZBhkAiSm8dXAyrr+5GFOKvmEdidFoZKKcFcZ2v3RMonDgFVcDBiZ33w7BQ==", - "optional": true, "dependencies": { "tslib": "^2.3.1" } @@ -1175,7 +1096,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64-node/-/util-base64-node-3.170.0.tgz", "integrity": "sha512-sjpOmfyW0RWCLXU8Du0ZtwgFoxIuKQIyVygXJ4qxByoa3jIUJXf4U33uSRMy47V3JoogdZuKSpND9hiNk2wU4w==", - "optional": true, "dependencies": { "@aws-sdk/util-buffer-from": "3.170.0", "tslib": "^2.3.1" @@ -1188,7 +1108,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-browser/-/util-body-length-browser-3.170.0.tgz", "integrity": "sha512-SqSWA++gsZgHw6tlcEXx9K6R6cVKNYzOq6bca+NR7jXvy1hfqiv9Gx5TZrG4oL4JziP8QA0fTklmI1uQJ4HBRA==", - "optional": true, "dependencies": { "tslib": "^2.3.1" } @@ -1197,7 +1116,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-node/-/util-body-length-node-3.170.0.tgz", "integrity": "sha512-sFb85ngsgfpamwDn22LC/+FkbDTNiddbMHptkajw+CAD2Rb4SJDp2PfXZ6k883BueJWhmxZ9+lApHZqYtgPdzw==", - "optional": true, "dependencies": { "tslib": "^2.3.1" }, @@ -1209,7 +1127,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-buffer-from/-/util-buffer-from-3.170.0.tgz", "integrity": "sha512-3ClE3wgN/Zw0ahfVAY5KQ/y3K2c+SYHwVUQaGSuVQlPOCDInGYjE/XEFwCeGJzncRPHIKDRPEsHCpm1uwgwEqQ==", - "optional": true, "dependencies": { "@aws-sdk/is-array-buffer": "3.170.0", "tslib": "^2.3.1" @@ -1222,7 +1139,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-config-provider/-/util-config-provider-3.170.0.tgz", "integrity": "sha512-VV6lfss6Go00TF2hRVJnN8Uf2FOwC++1e8glaeU7fMWluYCBjwl+116mPOPFaxvkJCg0dui2tFroXioslM/rvQ==", - "optional": true, "dependencies": { "tslib": "^2.3.1" }, @@ -1234,7 +1150,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-browser/-/util-defaults-mode-browser-3.178.0.tgz", "integrity": "sha512-XssMIemfTOA3Pat+xRtCPUF6Irh05HJ3H9VEI3CJSMEduM0DCDKf7hbc9rp8Y/s/WTSJpa2Ag3JJ50dy2YGCqA==", - "optional": true, "dependencies": { "@aws-sdk/property-provider": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -1249,7 +1164,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-node/-/util-defaults-mode-node-3.178.0.tgz", "integrity": "sha512-GChdZiWC1gLC2BY4pkyFLw6/3fgtCv1uUaCuA6fWLo8doDBKi1D4Rhgkg3sYgtC3M2C042zMNmyGdiSywT0SXg==", - "optional": true, "dependencies": { "@aws-sdk/config-resolver": "3.178.0", "@aws-sdk/credential-provider-imds": "3.178.0", @@ -1266,7 +1180,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-hex-encoding/-/util-hex-encoding-3.170.0.tgz", "integrity": "sha512-BDYyMqaxX4/N7rYOIYlqgpZaBuHw3kNXKgOkWtJdzndIZbQX8HnyJ+rF0Pr1aVsOpVDM+fY1prERleFh/ZRTCg==", - "optional": true, "dependencies": { "tslib": "^2.3.1" }, @@ -1278,7 +1191,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.170.0.tgz", "integrity": "sha512-uQvn3ZaAokWcNSY+tNR71RGXPPncv5ejrpGa/MGOCioeBjkU5n5OJp7BdaTGouZu4fffeVpdZJ/ZNld8LWMgLw==", - "optional": true, "dependencies": { "tslib": "^2.3.1" }, @@ -1290,7 +1202,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-middleware/-/util-middleware-3.178.0.tgz", "integrity": "sha512-93WgrJKuwtv3f2r1Q04emzjMiwpYR5hysOHKMkrGOvAVZdDqe1UTjmtuxQadVi3DBr1KOT/d5uP9MjV8LqaUUA==", - "optional": true, "dependencies": { "tslib": "^2.3.1" }, @@ -1302,7 +1213,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-stream-browser/-/util-stream-browser-3.178.0.tgz", "integrity": "sha512-CgXIJjDtkJPpig3/37xNzwPvtySN21m3nI/61CDjmQTFU9CfrfFplR/K3yBhB465AyINrLcDyuiBBcv78wqBzg==", - "optional": true, "dependencies": { "@aws-sdk/fetch-http-handler": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -1316,7 +1226,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-stream-node/-/util-stream-node-3.178.0.tgz", "integrity": "sha512-SarpMLzoG49Tosp+s+yMsE2rGwsDqa6NDP6umqo2HXX3D26I3uqaefoB0E+Jn/VAJZcKbwxRZUPKnwQEOn1xMA==", - "optional": true, "dependencies": { "@aws-sdk/node-http-handler": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -1331,7 +1240,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-uri-escape/-/util-uri-escape-3.170.0.tgz", "integrity": "sha512-Fof0urZ3Lx6z6LNKSEO6T4DNaNh6sLJaSWFaC6gtVDPux/C3R7wy2RQRDp0baHxE8m1KMB0XnKzHizJNrbDI1w==", - "optional": true, "dependencies": { "tslib": "^2.3.1" }, @@ -1343,7 +1251,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.178.0.tgz", "integrity": "sha512-LxOrn7Ai88n0i5J5rTb5Bt0TAycPvDYzjdCwmd2mahsPHZGSDLeCeh6KOIxZsEfnzYRl4HGWvIEXdHIYZ3RTug==", - "optional": true, "dependencies": { "@aws-sdk/types": "3.178.0", "bowser": "^2.11.0", @@ -1354,7 +1261,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.178.0.tgz", "integrity": "sha512-TrP6v+V4Qnv3E9CNgwR/G+1xiy8fa9j5LAm43qwp9PfJHchNyWOJ0FURD3Ne2sm/388Ybzjb1DRYRZ7B+xbnOw==", - "optional": true, "dependencies": { "@aws-sdk/node-config-provider": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -1376,7 +1282,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.170.0.tgz", "integrity": "sha512-tJby9krepSwDsBK+KQF5ACacZQ4LH1Aheh5Dy0pghxsN/9IRw7kMWTumuRCnSntLFFphDD7GM494/Dvnl1UCLA==", - "optional": true, "dependencies": { "tslib": "^2.3.1" } @@ -1385,7 +1290,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-node/-/util-utf8-node-3.170.0.tgz", "integrity": "sha512-52QWGNoNQoyT2CuoQz6LjBKxHQtN/ceMFLW+9J1E0I1ni8XTuTYP52BlMe5484KkmZKsHOm+EWe4xuwwVetTxg==", - "optional": true, "dependencies": { "@aws-sdk/util-buffer-from": "3.170.0", "tslib": "^2.3.1" @@ -1398,7 +1302,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-waiter/-/util-waiter-3.178.0.tgz", "integrity": "sha512-1VMh/3tCECT4GHx0nXfA8PE8QWvj6E7x+FxZfuWctS/DyeO8hxzhGz8SWQhOfKT1rdraCCKp+f2cTv+4Q6LO2w==", - "optional": true, "dependencies": { "@aws-sdk/abort-controller": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -1412,7 +1315,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.170.0.tgz", "integrity": "sha512-eN458rrukeI62yU1k4a+032IfpAS7aK30VEITzKanklMW6AxTpxUC6vGrP6bwtIpCFDN8yVaIiAwGXQg5l1X4g==", - "optional": true, "dependencies": { "tslib": "^2.3.1" }, @@ -1524,7 +1426,6 @@ "version": "7.13.0", "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.13.0.tgz", "integrity": "sha512-hB46fklmKrSDMEvZOF8qBHhys7PONBFyxQtbNDZUlv/kabs4gF3VEg1ftCaXnjx4lLNlsUl/ScFdM6194RvISg==", - "optional": true, "dependencies": { "@sentry/hub": "7.13.0", "@sentry/types": "7.13.0", @@ -1538,14 +1439,12 @@ "node_modules/@sentry/core/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@sentry/hub": { "version": "7.13.0", "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-7.13.0.tgz", "integrity": "sha512-88/GsD1BoyrBwRKJCmVHZtSH5rizOsImUHWEXc1AOa1aR8nanfn56JdAbd6tC55pA+nT4R4H4vN/PrUaomTbtg==", - "optional": true, "dependencies": { "@sentry/types": "7.13.0", "@sentry/utils": "7.13.0", @@ -1558,14 +1457,12 @@ "node_modules/@sentry/hub/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@sentry/node": { "version": "7.13.0", "resolved": "https://registry.npmjs.org/@sentry/node/-/node-7.13.0.tgz", "integrity": "sha512-uP3bPAIRHPilnOEiYGQQDLaQphc/c7d87wm91bZrTJ+WPnMW4D/NmT7fna5zGGDQIr/KTdQ/LEpDeZOILbkCqQ==", - "optional": true, "dependencies": { "@sentry/core": "7.13.0", "@sentry/hub": "7.13.0", @@ -1584,7 +1481,6 @@ "version": "0.4.2", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", - "optional": true, "engines": { "node": ">= 0.6" } @@ -1592,14 +1488,12 @@ "node_modules/@sentry/node/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@sentry/tracing": { "version": "7.13.0", "resolved": "https://registry.npmjs.org/@sentry/tracing/-/tracing-7.13.0.tgz", "integrity": "sha512-/MKSd25rGv6Pc0FPBLXJifkfvSaYVPA8XUOLzVeDN0gl07h8AXli4qG9amTh/4Wb5h4dFpbcscOvW2VC+pxkIA==", - "optional": true, "dependencies": { "@sentry/hub": "7.13.0", "@sentry/types": "7.13.0", @@ -1613,14 +1507,12 @@ "node_modules/@sentry/tracing/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@sentry/types": { "version": "7.13.0", "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.13.0.tgz", "integrity": "sha512-ttckM1XaeyHRLMdr79wmGA5PFbTGx2jio9DCD/mkEpSfk6OGfqfC7gpwy7BNstDH/VKyQj/lDCJPnwvWqARMoQ==", - "optional": true, "engines": { "node": ">=8" } @@ -1629,7 +1521,6 @@ "version": "7.13.0", "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.13.0.tgz", "integrity": "sha512-jnR85LgRLSk7IQe2OhKOPMY4fasJCNQNW0iCXsH+S2R1qnsF+N4ksNkQ+7JyyM9E7F03YpI2qd76bKY0VIn5iA==", - "optional": true, "dependencies": { "@sentry/types": "7.13.0", "tslib": "^1.9.3" @@ -1641,8 +1532,7 @@ "node_modules/@sentry/utils/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@sqltools/formatter": { "version": "1.2.3", @@ -2089,7 +1979,6 @@ "version": "0.10.3", "resolved": "https://registry.npmjs.org/amqplib/-/amqplib-0.10.3.tgz", "integrity": "sha512-UHmuSa7n8vVW/a5HGh2nFPqAEr8+cD4dEZ6u9GjP91nHfr1a54RyAKyra7Sb5NH7NBKOUlyQSMXIp0qAixKexw==", - "optional": true, "dependencies": { "@acuminous/bitsyntax": "^0.1.2", "buffer-more-ints": "~1.0.0", @@ -2355,8 +2244,7 @@ "node_modules/bowser": { "version": "2.11.0", "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", - "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", - "optional": true + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" }, "node_modules/brace-expansion": { "version": "1.1.11", @@ -2403,8 +2291,7 @@ "node_modules/buffer-more-ints": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/buffer-more-ints/-/buffer-more-ints-1.0.0.tgz", - "integrity": "sha512-EMetuGFz5SLsT0QTnXzINh4Ksr+oo4i+UGTXEshiGCQWnsgSs7ZhJ8fzlwQ+OzEMs0MpDAMr1hxnblp5a4vcHg==", - "optional": true + "integrity": "sha512-EMetuGFz5SLsT0QTnXzINh4Ksr+oo4i+UGTXEshiGCQWnsgSs7ZhJ8fzlwQ+OzEMs0MpDAMr1hxnblp5a4vcHg==" }, "node_modules/busboy": { "version": "1.6.0", @@ -3237,7 +3124,6 @@ "version": "3.19.0", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-3.19.0.tgz", "integrity": "sha512-4pXwmBplsCPv8FOY1WRakF970TjNGnGnfbOnLqjlYvMiF1SR3yOHyxMR/YCXpPTOspNF5gwudqktIP4VsWkvBg==", - "optional": true, "bin": { "xml2js": "cli.js" }, @@ -4013,8 +3899,7 @@ "node_modules/lru_map": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/lru_map/-/lru_map-0.3.3.tgz", - "integrity": "sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==", - "optional": true + "integrity": "sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==" }, "node_modules/lru-cache": { "version": "5.1.1", @@ -4944,8 +4829,7 @@ "node_modules/querystringify": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "optional": true + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" }, "node_modules/queue": { "version": "6.0.2", @@ -5067,8 +4951,7 @@ "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "optional": true + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" }, "node_modules/retry": { "version": "0.12.0", @@ -6002,7 +5885,6 @@ "version": "1.5.10", "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "optional": true, "dependencies": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" @@ -6233,7 +6115,6 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/@acuminous/bitsyntax/-/bitsyntax-0.1.2.tgz", "integrity": "sha512-29lUK80d1muEQqiUsSo+3A0yP6CdspgC95EnKBMi22Xlwt79i/En4Vr67+cXhU+cZjbti3TgGGC5wy1stIywVQ==", - "optional": true, "requires": { "buffer-more-ints": "~1.0.0", "debug": "^4.3.4", @@ -6244,7 +6125,6 @@ "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "optional": true, "requires": { "ms": "2.1.2" } @@ -6252,14 +6132,12 @@ "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "optional": true + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "optional": true + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" } } }, @@ -6267,7 +6145,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-2.0.0.tgz", "integrity": "sha512-TvE1r2CUueyXOuHdEigYjIZVesInd9KN+K/TFFNfkkxRThiNxO6i4ZqqAVMoEjAamZZ1AA8WXJkjCz7YShHPQA==", - "optional": true, "requires": { "@aws-crypto/util": "^2.0.0", "@aws-sdk/types": "^3.1.0", @@ -6277,8 +6154,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, @@ -6286,7 +6162,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/@aws-crypto/crc32c/-/crc32c-2.0.0.tgz", "integrity": "sha512-vF0eMdMHx3O3MoOXUfBZry8Y4ZDtcuskjjKgJz8YfIDjLStxTZrYXk+kZqtl6A0uCmmiN/Eb/JbC/CndTV1MHg==", - "optional": true, "requires": { "@aws-crypto/util": "^2.0.0", "@aws-sdk/types": "^3.1.0", @@ -6296,8 +6171,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, @@ -6305,7 +6179,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/@aws-crypto/ie11-detection/-/ie11-detection-2.0.2.tgz", "integrity": "sha512-5XDMQY98gMAf/WRTic5G++jfmS/VLM0rwpiOpaainKi4L0nqWMSB1SzsrEG5rjFZGYN6ZAefO+/Yta2dFM0kMw==", - "optional": true, "requires": { "tslib": "^1.11.1" }, @@ -6313,8 +6186,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, @@ -6322,7 +6194,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/@aws-crypto/sha1-browser/-/sha1-browser-2.0.0.tgz", "integrity": "sha512-3fIVRjPFY8EG5HWXR+ZJZMdWNRpwbxGzJ9IH9q93FpbgCH8u8GHRi46mZXp3cYD7gealmyqpm3ThZwLKJjWJhA==", - "optional": true, "requires": { "@aws-crypto/ie11-detection": "^2.0.0", "@aws-crypto/supports-web-crypto": "^2.0.0", @@ -6335,8 +6206,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, @@ -6344,7 +6214,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-2.0.0.tgz", "integrity": "sha512-rYXOQ8BFOaqMEHJrLHul/25ckWH6GTJtdLSajhlqGMx0PmSueAuvboCuZCTqEKlxR8CQOwRarxYMZZSYlhRA1A==", - "optional": true, "requires": { "@aws-crypto/ie11-detection": "^2.0.0", "@aws-crypto/sha256-js": "^2.0.0", @@ -6359,8 +6228,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, @@ -6368,7 +6236,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-2.0.0.tgz", "integrity": "sha512-VZY+mCY4Nmrs5WGfitmNqXzaE873fcIZDu54cbaDaaamsaTOP1DBImV9F4pICc3EHjQXujyE8jig+PFCaew9ig==", - "optional": true, "requires": { "@aws-crypto/util": "^2.0.0", "@aws-sdk/types": "^3.1.0", @@ -6378,8 +6245,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, @@ -6387,7 +6253,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-2.0.2.tgz", "integrity": "sha512-6mbSsLHwZ99CTOOswvCRP3C+VCWnzBf+1SnbWxzzJ9lR0mA0JnY2JEAhp8rqmTE0GPFy88rrM27ffgp62oErMQ==", - "optional": true, "requires": { "tslib": "^1.11.1" }, @@ -6395,8 +6260,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, @@ -6404,7 +6268,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-2.0.2.tgz", "integrity": "sha512-Lgu5v/0e/BcrZ5m/IWqzPUf3UYFTy/PpeED+uc9SWUR1iZQL8XXbGQg10UfllwwBryO3hFF5dizK+78aoXC1eA==", - "optional": true, "requires": { "@aws-sdk/types": "^3.110.0", "@aws-sdk/util-utf8-browser": "^3.0.0", @@ -6414,8 +6277,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, @@ -6423,7 +6285,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/abort-controller/-/abort-controller-3.178.0.tgz", "integrity": "sha512-ptDkCB06BJrYdhKzamM9yI15LxcGkPczY80hzKAY/aecm09alnW27uCt5HJJx2nCd18IUH28ZO1sc7DTLOWb3A==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -6433,7 +6294,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/chunked-blob-reader/-/chunked-blob-reader-3.170.0.tgz", "integrity": "sha512-73Fy1u9zR9ZMC59QobuCWg3LoYfcrFsrP8569vvqtlGqPuQUW+RW3gfx0omIDmxaSg8qq8REPLJFrAGfeL7VtQ==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -6442,7 +6302,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/chunked-blob-reader-native/-/chunked-blob-reader-native-3.170.0.tgz", "integrity": "sha512-haJ7fdWaOgAM4trw2LBd1VIvRFzMMPz2jy9mu4rE+z1uHbPZHNMGytBo1FJO2DShzUCmJZi3t3CD/7aE3H38+w==", - "optional": true, "requires": { "@aws-sdk/util-base64-browser": "3.170.0", "tslib": "^2.3.1" @@ -6452,7 +6311,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.178.0.tgz", "integrity": "sha512-MyVmDj/eR/n5b8SRWKHK/U4c4HEppW+9uqaTLdYYlz9RpFyc3Pw1dWbwdvT65+Eb/ZOy4VkWPxzL+SAibvoFpw==", - "optional": true, "requires": { "@aws-crypto/sha1-browser": "2.0.0", "@aws-crypto/sha256-browser": "2.0.0", @@ -6513,8 +6371,7 @@ "entities": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "optional": true + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" } } }, @@ -6522,7 +6379,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.178.0.tgz", "integrity": "sha512-3y7+/eD7VgByUu6IXIT0ICBNVJiDdkCKsck18OUzankICQsCsEg7RGeOlhdHkKBmDqGDJEJMuTWnGJQo1IVsgw==", - "optional": true, "requires": { "@aws-crypto/sha256-browser": "2.0.0", "@aws-crypto/sha256-js": "2.0.0", @@ -6561,7 +6417,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.178.0.tgz", "integrity": "sha512-r7LNxDhNpXmXxenHUcPROgwgpZLIuL3b8qWbRISp98YjT34G/MsxGseC8mhEPjuqcdc96xh+I2fknJ4JmeUKag==", - "optional": true, "requires": { "@aws-crypto/sha256-browser": "2.0.0", "@aws-crypto/sha256-js": "2.0.0", @@ -6604,8 +6459,7 @@ "entities": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "optional": true + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" } } }, @@ -6613,7 +6467,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/config-resolver/-/config-resolver-3.178.0.tgz", "integrity": "sha512-8xL98TGMaVULIN7HRWV2q1o0Y2p38QuweehzM8yXCZrrLOyHgWo3waP2RNVeddOB7MrSwwU/gw9rXSv7YHLZ6w==", - "optional": true, "requires": { "@aws-sdk/signature-v4": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -6626,7 +6479,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.178.0.tgz", "integrity": "sha512-5CMswTJ188RuK9TmI5yAosIsyu4Mm9Cdq1068tRls5EqqwGK1PI7Q007b6rD7zqCb5IgeFBV0t2DxHkBmHRd3w==", - "optional": true, "requires": { "@aws-sdk/property-provider": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -6637,7 +6489,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-imds/-/credential-provider-imds-3.178.0.tgz", "integrity": "sha512-ZvqQTi3+S13LACVgaWNCOKBv5jROIz7rqyZh56QunAkaAUqPbpM4VFODgAGZYPCOSggZbEUUqXOVB9xSnshLnA==", - "optional": true, "requires": { "@aws-sdk/node-config-provider": "3.178.0", "@aws-sdk/property-provider": "3.178.0", @@ -6650,7 +6501,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.178.0.tgz", "integrity": "sha512-PhaJMzgg0I0WMD6i+t53Y7x0vCZQ5p6fTOQMOrbfJkAaCLZvUuDd2XfoCGpS53PPQKOg7hHQxMLJ5lfJ4qSIzg==", - "optional": true, "requires": { "@aws-sdk/credential-provider-env": "3.178.0", "@aws-sdk/credential-provider-imds": "3.178.0", @@ -6666,7 +6516,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.178.0.tgz", "integrity": "sha512-4yTP1ny0+D3fM7U4IdIp99EgveXxMSsxBr1jpCcZqTfP5MtfG9DK3i6QzkXGK4T6CQRU3o+DpD3yfcBChdjrww==", - "optional": true, "requires": { "@aws-sdk/credential-provider-env": "3.178.0", "@aws-sdk/credential-provider-imds": "3.178.0", @@ -6684,7 +6533,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.178.0.tgz", "integrity": "sha512-J4TldKrAnfayvRfxNEnLJUnTgkpTcct6rc7PwZlVSGSUgjglbcqfemUOP/pisLKbVNNL742lsUXmkUVH4km0Fw==", - "optional": true, "requires": { "@aws-sdk/property-provider": "3.178.0", "@aws-sdk/shared-ini-file-loader": "3.178.0", @@ -6696,7 +6544,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.178.0.tgz", "integrity": "sha512-fHgKYAve+nHKyr/j7njwfogLMZhlEWumTuZCmJjl19r0kM1X9c0MYStd1MvCDP3c+XG8vI17bQWNsD9eTJ86OQ==", - "optional": true, "requires": { "@aws-sdk/client-sso": "3.178.0", "@aws-sdk/property-provider": "3.178.0", @@ -6709,7 +6556,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.178.0.tgz", "integrity": "sha512-aei8o9ALtzwgYsZCAWdr+ItJyYTkYRmCoKstM4mkGtWNK9BjdISaVUAnndl6Pc/l/5eiK+2rlA+6Ujs4H8m+XQ==", - "optional": true, "requires": { "@aws-sdk/property-provider": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -6720,7 +6566,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-codec/-/eventstream-codec-3.178.0.tgz", "integrity": "sha512-x18waxfidmI9i4BLpnwV37rxHPyyviyWo5qRgYWX+gLxhN6Z6sB3/Pc/s8/yQmywMs6/DlMBYJUDTvYXR1cezA==", - "optional": true, "requires": { "@aws-crypto/crc32": "2.0.0", "@aws-sdk/types": "3.178.0", @@ -6732,7 +6577,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-serde-browser/-/eventstream-serde-browser-3.178.0.tgz", "integrity": "sha512-UMlCevpJoQ8oMlNKlQF0Ti5zIztLzx9zcrxfi4KK1A22qXamTA5kHloyq1mFwrTkbcr4uhQ9omDDx//hYQ+yNw==", - "optional": true, "requires": { "@aws-sdk/eventstream-serde-universal": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -6743,7 +6587,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-3.178.0.tgz", "integrity": "sha512-LmH5JuNCOvUI2g/7e2qlvHqRQW316J5iTawZQd233xUlmRO49kHc8HFvKPo98/V/S4MFsjlrZF9dcnly2txCxw==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -6753,7 +6596,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-serde-node/-/eventstream-serde-node-3.178.0.tgz", "integrity": "sha512-YsFoZ8MlVReGm7GKMjvo5vxLVo/ZPSDg6ckp7kff18zZMlbNtuK+zfgub3tX1f2hbDoV2bBVL3xuZJkeBELpHQ==", - "optional": true, "requires": { "@aws-sdk/eventstream-serde-universal": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -6764,7 +6606,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-serde-universal/-/eventstream-serde-universal-3.178.0.tgz", "integrity": "sha512-Rd8QjqzN2roSHsLn0y1iCt/KrEQL2qlNdunXRjBwXvjZGuODa6M8gpOvaPNpTWLiD+V6mO0zuPp+tWiLZxMndw==", - "optional": true, "requires": { "@aws-sdk/eventstream-codec": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -6775,7 +6616,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/fetch-http-handler/-/fetch-http-handler-3.178.0.tgz", "integrity": "sha512-T/LCNwCihdVNzGn39Dw7tk2U1fMlupFlCsAvDBbO+FOM3h+y9WLHzxmlAVsjPrFXlzdONKf9zd5cuQ+ZW93yAQ==", - "optional": true, "requires": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/querystring-builder": "3.178.0", @@ -6788,7 +6628,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/hash-blob-browser/-/hash-blob-browser-3.178.0.tgz", "integrity": "sha512-LgrKDNi56q3ayxcvbC0MMt/fgliKgMb8G2o1y6bUAKzlEtBHLFfTUjvzW1WsDfK8ZSrtz/bZNGECIjeFEdTggQ==", - "optional": true, "requires": { "@aws-sdk/chunked-blob-reader": "3.170.0", "@aws-sdk/chunked-blob-reader-native": "3.170.0", @@ -6800,7 +6639,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/hash-node/-/hash-node-3.178.0.tgz", "integrity": "sha512-mqYraRQlvPO5egUKTNZ1kP52sfwBlsz7woOewQTHOGomZBDXrh8bl1J+sgaDi1NAwXdZUgxuD3QKxxAKRs9a2Q==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "@aws-sdk/util-buffer-from": "3.170.0", @@ -6811,7 +6649,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/hash-stream-node/-/hash-stream-node-3.178.0.tgz", "integrity": "sha512-YzockpOajp5WOweB+/hIrQy9KNVXEgnbMDcuCmevYfoub+BJbjCs5eAZrhCJBkXpRKBz3X1U0vlYp7twFacPqw==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -6821,7 +6658,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/invalid-dependency/-/invalid-dependency-3.178.0.tgz", "integrity": "sha512-JJNaiLr3nbRYym6oUAAaoFFYtDnIZ9Scco2p4sG/thT2eyAfXcEdNl1cSD3E/R1J+Ml/YplqTiIY4u1KPAriRw==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -6831,7 +6667,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/is-array-buffer/-/is-array-buffer-3.170.0.tgz", "integrity": "sha512-yYXqgp8rilBckIvNRs22yAXHKcXb86/g+F+hsTZl38OJintTsLQB//O5v6EQTYhSW7T3wMe1NHDrjZ+hFjAy4Q==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -6840,7 +6675,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/md5-js/-/md5-js-3.178.0.tgz", "integrity": "sha512-o/F4QKjJL2gQdGq5eQnVGc9SlJ+/TjUBDJfn0Nyz4/OhDYVRvf4yJLT3+I9ZQN5M6DoFgqrLPH0MUHv4EmDPpw==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "@aws-sdk/util-utf8-browser": "3.170.0", @@ -6852,7 +6686,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.178.0.tgz", "integrity": "sha512-HCHonBmv5SWZMZqVNtWr73d6moZfcqTI87Xmi0Ofpra8tmu99WQpYgXmVLqK13wlPP2MJErBLkcDt15dsS0pJw==", - "optional": true, "requires": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -6865,7 +6698,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-content-length/-/middleware-content-length-3.178.0.tgz", "integrity": "sha512-p3n3IzU03eRzZivEoQn1HA83LbAKukZwRevsJpya1UfCUtWkXQO3v0jU8rhZE4deGa9k7zuCAEmJ8nCw3QxclQ==", - "optional": true, "requires": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -6876,7 +6708,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.178.0.tgz", "integrity": "sha512-4OJgVeN2fBRHpRBNq1cCkT02QmsIZmiqsCXDgoRRlHJdcrbE5vLVs/PG/B1LB5ugxLD8EzwgoTbnOxIk0R1Weg==", - "optional": true, "requires": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -6887,7 +6718,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.178.0.tgz", "integrity": "sha512-nd9mvl7uF3S3ok4u9O/Avlc5d9YL8/OMDnKBoGeIYuop5bAdcO1t/sEJWEex6YYgtj0e20fIosO7maCXs8/C1A==", - "optional": true, "requires": { "@aws-crypto/crc32": "2.0.0", "@aws-crypto/crc32c": "2.0.0", @@ -6901,7 +6731,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.178.0.tgz", "integrity": "sha512-EFc9S63iwCmudVpVSiVPiTnp6WCfsRYUmTrZJJouZzthEhJwcrunwu7Fa9lHYb0zcWLgVFLhzs1Z34J/Er4JoQ==", - "optional": true, "requires": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -6912,7 +6741,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.178.0.tgz", "integrity": "sha512-0Zrcdy75Q1CpAfjOFddiZSvK5iyeyh6fI7YRpUC8Fa3H+1kgW5sHESw0zyoC0NMAQkp1TgFrgxpaBuhAkdUzkg==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -6922,7 +6750,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.178.0.tgz", "integrity": "sha512-k4jnB+ryGiAhv6vyNFz2YoaVodldjkbz4mqDlVzhwEn77LT/TcwdBoown3cJD/45LEtiuPqeONoTcNCsuCkRFQ==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -6932,7 +6759,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.178.0.tgz", "integrity": "sha512-dVgSoP2Mer8A0JGaWgpC/f4vPyvHh7laES/u5sTy6RfwrR87oTx+uhKrc6eh+9NkMR2xdRyaNJAMIXwL5bsVzg==", - "optional": true, "requires": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -6943,7 +6769,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.178.0.tgz", "integrity": "sha512-glBXpAqt+4KQ7q8y2/kwDX2ujCvCSQok5rlAmUjaQjVPc3cX77QwATIRQTS2nBC4v9tfMc7yL64ZeRbx6n0RAQ==", - "optional": true, "requires": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/service-error-classification": "3.178.0", @@ -6957,7 +6782,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.178.0.tgz", "integrity": "sha512-/4IMPfSCsHZ3nFPPOFdNh+KlKkQE7LhesaxHEZA8f4qn/AnzBJUQLQ7iN4uvE+mD/WjNDUhNXX3ZqDRVaI2a+w==", - "optional": true, "requires": { "@aws-sdk/middleware-bucket-endpoint": "3.178.0", "@aws-sdk/protocol-http": "3.178.0", @@ -6970,7 +6794,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.178.0.tgz", "integrity": "sha512-5L29ElHmG2/i21tJVhwJOji/wvOlO5Ma2KGwbJgLywwcMov6VAm+0NIyAKhB5G96qEsexKenKj7swIDYtoEVHQ==", - "optional": true, "requires": { "@aws-sdk/middleware-signing": "3.178.0", "@aws-sdk/property-provider": "3.178.0", @@ -6984,7 +6807,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-serde/-/middleware-serde-3.178.0.tgz", "integrity": "sha512-TERiu/B4hYi5Jd4iQN9ECTWbt2IZweAgFB010MboM4CAPm6EcszEc/uCB4faLZNdJaksk1BhAR7koURcda8Sew==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -6994,7 +6816,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.178.0.tgz", "integrity": "sha512-593rKbGhgDmMxdgv6K1HruNteRm8uLaTde0HQkSXDyLw1xb7l2oeVcM7nmCt6WluQYJGKYoIBOWC9ePsisqDrg==", - "optional": true, "requires": { "@aws-sdk/property-provider": "3.178.0", "@aws-sdk/protocol-http": "3.178.0", @@ -7007,7 +6828,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.178.0.tgz", "integrity": "sha512-6TcOTv03X8ygg9XnGTN2nTC1gSNaSIPBFvvQntVGr08umIajtalnI+2a9F3/+DQkUk/3u/V5j39mL9m0oAiMVw==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -7017,7 +6837,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-stack/-/middleware-stack-3.178.0.tgz", "integrity": "sha512-ELYM5Imhlcz2zT1Z4OjVZwO564KvI4L9dMBxuUgO0fwommzjWqxR03yaRGhpGwpCP64d0Op5Koc/RKq5V92Wbw==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7026,7 +6845,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.178.0.tgz", "integrity": "sha512-xkKBxrFbs+UwUPpfIGEPuHeBWS2Jgmcd+ipEJUQRR3lY4h1fJ6mPGeyyaVDvwaJp9KgESSI6QTp6V15l8GXXgQ==", - "optional": true, "requires": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -7037,7 +6855,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/node-config-provider/-/node-config-provider-3.178.0.tgz", "integrity": "sha512-yb5XJcC7SxkZ5oxu3zQ/foBdMkLBKryzx/CVg5BNSsKDjfbouf/ZYPcJDHhc2gzCtZcx18GjFBOnv8cpo/tyXQ==", - "optional": true, "requires": { "@aws-sdk/property-provider": "3.178.0", "@aws-sdk/shared-ini-file-loader": "3.178.0", @@ -7049,7 +6866,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/node-http-handler/-/node-http-handler-3.178.0.tgz", "integrity": "sha512-EtH6YiX1IX0QraQ/+kKBWAEtsFYBnFyxOimTBtlpDYwFpgDzIZ1GFn2wORYomEWALg10kphs8n3E5/7b5t5OWQ==", - "optional": true, "requires": { "@aws-sdk/abort-controller": "3.178.0", "@aws-sdk/protocol-http": "3.178.0", @@ -7062,7 +6878,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.178.0.tgz", "integrity": "sha512-+Fh1aUANa+Gt/rh4SUHO0yHwKsibyZGk2LLDUcM1+9r0pUZT0qy3h0UCl5Kkj9HUcDJMD73wHTx4UB440xRobw==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -7072,7 +6887,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.178.0.tgz", "integrity": "sha512-GsnANW60mVYMlE16UGNSOwYZ6TbkoODvmDQi95SEPjM7asf4vihEyDvhxiGS/JvC18UyxRVWT89l/V3hR/SF7w==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -7082,7 +6896,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-builder/-/querystring-builder-3.178.0.tgz", "integrity": "sha512-vJXlExSshlHtGVvan/U6JihWvzf8t9QwH5I4F6HUY+exxMy5vFDYCnNqGAzbJwq7w/HME1gQWLoXq2k0uODz7g==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "@aws-sdk/util-uri-escape": "3.170.0", @@ -7093,7 +6906,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-parser/-/querystring-parser-3.178.0.tgz", "integrity": "sha512-dp3pLnsOvAcIF7Yn2PY5CIVWX7GvC33nSlWDYeLeCMapccwTbe6zBqreWbScmIGJra4QJTdjccpwo2Yxwhr5QQ==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "tslib": "^2.3.1" @@ -7102,14 +6914,12 @@ "@aws-sdk/service-error-classification": { "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/service-error-classification/-/service-error-classification-3.178.0.tgz", - "integrity": "sha512-tDKTBXxck2N4bhAnQaeokx9ps38V3G70lcDdHS/N9hmqcQQmH5x+1/AMwYWLjUZmOQPBW9sFoG4B3psnl+sefw==", - "optional": true + "integrity": "sha512-tDKTBXxck2N4bhAnQaeokx9ps38V3G70lcDdHS/N9hmqcQQmH5x+1/AMwYWLjUZmOQPBW9sFoG4B3psnl+sefw==" }, "@aws-sdk/shared-ini-file-loader": { "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-3.178.0.tgz", "integrity": "sha512-nZGmuhGLDFbXsb7QYDg7PiPMAmsdlSshKJ+AhKSZF/J0SK94kdZgGnGXGUZe52S3G41E3CZIgnLnnsMXq0uErA==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7118,7 +6928,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4/-/signature-v4-3.178.0.tgz", "integrity": "sha512-8oOx6o0uOqlCDPM0dszfR1WHqd0E1VuFqez8iNItp0DhmhaCuanEwKYYA6HOkVu/MA6CsG6zDIJaFr5ODU2NvQ==", - "optional": true, "requires": { "@aws-sdk/is-array-buffer": "3.170.0", "@aws-sdk/types": "3.178.0", @@ -7132,7 +6941,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.178.0.tgz", "integrity": "sha512-aSMu8j8llz7qXgWoojX2rpHE1LNAcA+X49A9gbwoeGIN9DxXotZO25DaW9Jgr7kVANP042+pwzAxluA15HYI8w==", - "optional": true, "requires": { "@aws-sdk/protocol-http": "3.178.0", "@aws-sdk/signature-v4": "3.178.0", @@ -7145,7 +6953,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/smithy-client/-/smithy-client-3.178.0.tgz", "integrity": "sha512-y2uAL3VMKIMZ/6kRAeL/vlIN4qrnmsfYhihm0yYhetdHtaXAN3WRsOpxOEjO3T92KmtQxMvtmRoAN05aVwtgoQ==", - "optional": true, "requires": { "@aws-sdk/middleware-stack": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -7155,14 +6962,12 @@ "@aws-sdk/types": { "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.178.0.tgz", - "integrity": "sha512-CrHxHzXSEr/Z3NLFvJgSGHGcD9tYUZ0Rhp8tFCSpD3TpBo3/Y7RIvqaEPvECsL52UEloeBhQf65AO8590YkVmQ==", - "optional": true + "integrity": "sha512-CrHxHzXSEr/Z3NLFvJgSGHGcD9tYUZ0Rhp8tFCSpD3TpBo3/Y7RIvqaEPvECsL52UEloeBhQf65AO8590YkVmQ==" }, "@aws-sdk/url-parser": { "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/url-parser/-/url-parser-3.178.0.tgz", "integrity": "sha512-+Ch29d+IZG6zD1gNDVgFC00huY8ytrPdijAuNJ4DtPBTGP4zbrImw3js0GfvfBjLrQYBnclcAvSx4J1Q/8tqBQ==", - "optional": true, "requires": { "@aws-sdk/querystring-parser": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -7173,7 +6978,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-arn-parser/-/util-arn-parser-3.170.0.tgz", "integrity": "sha512-2ivABL9GNsucfMMkgGjVdFidbDogtSr4FBVW12D4ltijOL82CAynGrnxHAczRGnmi5/1/Ir4ipkr9pAdRMGiGw==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7182,7 +6986,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64-browser/-/util-base64-browser-3.170.0.tgz", "integrity": "sha512-uLP9Kp74+jc+UWI392LSWIaUj9eXZBhkAiSm8dXAyrr+5GFOKvmEdidFoZKKcFcZ2v3RMonDgFVcDBiZ33w7BQ==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7191,7 +6994,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64-node/-/util-base64-node-3.170.0.tgz", "integrity": "sha512-sjpOmfyW0RWCLXU8Du0ZtwgFoxIuKQIyVygXJ4qxByoa3jIUJXf4U33uSRMy47V3JoogdZuKSpND9hiNk2wU4w==", - "optional": true, "requires": { "@aws-sdk/util-buffer-from": "3.170.0", "tslib": "^2.3.1" @@ -7201,7 +7003,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-browser/-/util-body-length-browser-3.170.0.tgz", "integrity": "sha512-SqSWA++gsZgHw6tlcEXx9K6R6cVKNYzOq6bca+NR7jXvy1hfqiv9Gx5TZrG4oL4JziP8QA0fTklmI1uQJ4HBRA==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7210,7 +7011,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-node/-/util-body-length-node-3.170.0.tgz", "integrity": "sha512-sFb85ngsgfpamwDn22LC/+FkbDTNiddbMHptkajw+CAD2Rb4SJDp2PfXZ6k883BueJWhmxZ9+lApHZqYtgPdzw==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7219,7 +7019,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-buffer-from/-/util-buffer-from-3.170.0.tgz", "integrity": "sha512-3ClE3wgN/Zw0ahfVAY5KQ/y3K2c+SYHwVUQaGSuVQlPOCDInGYjE/XEFwCeGJzncRPHIKDRPEsHCpm1uwgwEqQ==", - "optional": true, "requires": { "@aws-sdk/is-array-buffer": "3.170.0", "tslib": "^2.3.1" @@ -7229,7 +7028,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-config-provider/-/util-config-provider-3.170.0.tgz", "integrity": "sha512-VV6lfss6Go00TF2hRVJnN8Uf2FOwC++1e8glaeU7fMWluYCBjwl+116mPOPFaxvkJCg0dui2tFroXioslM/rvQ==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7238,7 +7036,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-browser/-/util-defaults-mode-browser-3.178.0.tgz", "integrity": "sha512-XssMIemfTOA3Pat+xRtCPUF6Irh05HJ3H9VEI3CJSMEduM0DCDKf7hbc9rp8Y/s/WTSJpa2Ag3JJ50dy2YGCqA==", - "optional": true, "requires": { "@aws-sdk/property-provider": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -7250,7 +7047,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-node/-/util-defaults-mode-node-3.178.0.tgz", "integrity": "sha512-GChdZiWC1gLC2BY4pkyFLw6/3fgtCv1uUaCuA6fWLo8doDBKi1D4Rhgkg3sYgtC3M2C042zMNmyGdiSywT0SXg==", - "optional": true, "requires": { "@aws-sdk/config-resolver": "3.178.0", "@aws-sdk/credential-provider-imds": "3.178.0", @@ -7264,7 +7060,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-hex-encoding/-/util-hex-encoding-3.170.0.tgz", "integrity": "sha512-BDYyMqaxX4/N7rYOIYlqgpZaBuHw3kNXKgOkWtJdzndIZbQX8HnyJ+rF0Pr1aVsOpVDM+fY1prERleFh/ZRTCg==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7273,7 +7068,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.170.0.tgz", "integrity": "sha512-uQvn3ZaAokWcNSY+tNR71RGXPPncv5ejrpGa/MGOCioeBjkU5n5OJp7BdaTGouZu4fffeVpdZJ/ZNld8LWMgLw==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7282,7 +7076,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-middleware/-/util-middleware-3.178.0.tgz", "integrity": "sha512-93WgrJKuwtv3f2r1Q04emzjMiwpYR5hysOHKMkrGOvAVZdDqe1UTjmtuxQadVi3DBr1KOT/d5uP9MjV8LqaUUA==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7291,7 +7084,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-stream-browser/-/util-stream-browser-3.178.0.tgz", "integrity": "sha512-CgXIJjDtkJPpig3/37xNzwPvtySN21m3nI/61CDjmQTFU9CfrfFplR/K3yBhB465AyINrLcDyuiBBcv78wqBzg==", - "optional": true, "requires": { "@aws-sdk/fetch-http-handler": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -7305,7 +7097,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-stream-node/-/util-stream-node-3.178.0.tgz", "integrity": "sha512-SarpMLzoG49Tosp+s+yMsE2rGwsDqa6NDP6umqo2HXX3D26I3uqaefoB0E+Jn/VAJZcKbwxRZUPKnwQEOn1xMA==", - "optional": true, "requires": { "@aws-sdk/node-http-handler": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -7317,7 +7108,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-uri-escape/-/util-uri-escape-3.170.0.tgz", "integrity": "sha512-Fof0urZ3Lx6z6LNKSEO6T4DNaNh6sLJaSWFaC6gtVDPux/C3R7wy2RQRDp0baHxE8m1KMB0XnKzHizJNrbDI1w==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7326,7 +7116,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.178.0.tgz", "integrity": "sha512-LxOrn7Ai88n0i5J5rTb5Bt0TAycPvDYzjdCwmd2mahsPHZGSDLeCeh6KOIxZsEfnzYRl4HGWvIEXdHIYZ3RTug==", - "optional": true, "requires": { "@aws-sdk/types": "3.178.0", "bowser": "^2.11.0", @@ -7337,7 +7126,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.178.0.tgz", "integrity": "sha512-TrP6v+V4Qnv3E9CNgwR/G+1xiy8fa9j5LAm43qwp9PfJHchNyWOJ0FURD3Ne2sm/388Ybzjb1DRYRZ7B+xbnOw==", - "optional": true, "requires": { "@aws-sdk/node-config-provider": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -7348,7 +7136,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.170.0.tgz", "integrity": "sha512-tJby9krepSwDsBK+KQF5ACacZQ4LH1Aheh5Dy0pghxsN/9IRw7kMWTumuRCnSntLFFphDD7GM494/Dvnl1UCLA==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7357,7 +7144,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-node/-/util-utf8-node-3.170.0.tgz", "integrity": "sha512-52QWGNoNQoyT2CuoQz6LjBKxHQtN/ceMFLW+9J1E0I1ni8XTuTYP52BlMe5484KkmZKsHOm+EWe4xuwwVetTxg==", - "optional": true, "requires": { "@aws-sdk/util-buffer-from": "3.170.0", "tslib": "^2.3.1" @@ -7367,7 +7153,6 @@ "version": "3.178.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-waiter/-/util-waiter-3.178.0.tgz", "integrity": "sha512-1VMh/3tCECT4GHx0nXfA8PE8QWvj6E7x+FxZfuWctS/DyeO8hxzhGz8SWQhOfKT1rdraCCKp+f2cTv+4Q6LO2w==", - "optional": true, "requires": { "@aws-sdk/abort-controller": "3.178.0", "@aws-sdk/types": "3.178.0", @@ -7378,7 +7163,6 @@ "version": "3.170.0", "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.170.0.tgz", "integrity": "sha512-eN458rrukeI62yU1k4a+032IfpAS7aK30VEITzKanklMW6AxTpxUC6vGrP6bwtIpCFDN8yVaIiAwGXQg5l1X4g==", - "optional": true, "requires": { "tslib": "^2.3.1" } @@ -7472,7 +7256,6 @@ "version": "7.13.0", "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.13.0.tgz", "integrity": "sha512-hB46fklmKrSDMEvZOF8qBHhys7PONBFyxQtbNDZUlv/kabs4gF3VEg1ftCaXnjx4lLNlsUl/ScFdM6194RvISg==", - "optional": true, "requires": { "@sentry/hub": "7.13.0", "@sentry/types": "7.13.0", @@ -7483,8 +7266,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, @@ -7492,7 +7274,6 @@ "version": "7.13.0", "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-7.13.0.tgz", "integrity": "sha512-88/GsD1BoyrBwRKJCmVHZtSH5rizOsImUHWEXc1AOa1aR8nanfn56JdAbd6tC55pA+nT4R4H4vN/PrUaomTbtg==", - "optional": true, "requires": { "@sentry/types": "7.13.0", "@sentry/utils": "7.13.0", @@ -7502,8 +7283,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, @@ -7511,7 +7291,6 @@ "version": "7.13.0", "resolved": "https://registry.npmjs.org/@sentry/node/-/node-7.13.0.tgz", "integrity": "sha512-uP3bPAIRHPilnOEiYGQQDLaQphc/c7d87wm91bZrTJ+WPnMW4D/NmT7fna5zGGDQIr/KTdQ/LEpDeZOILbkCqQ==", - "optional": true, "requires": { "@sentry/core": "7.13.0", "@sentry/hub": "7.13.0", @@ -7526,14 +7305,12 @@ "cookie": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", - "optional": true + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==" }, "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, @@ -7541,7 +7318,6 @@ "version": "7.13.0", "resolved": "https://registry.npmjs.org/@sentry/tracing/-/tracing-7.13.0.tgz", "integrity": "sha512-/MKSd25rGv6Pc0FPBLXJifkfvSaYVPA8XUOLzVeDN0gl07h8AXli4qG9amTh/4Wb5h4dFpbcscOvW2VC+pxkIA==", - "optional": true, "requires": { "@sentry/hub": "7.13.0", "@sentry/types": "7.13.0", @@ -7552,22 +7328,19 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, "@sentry/types": { "version": "7.13.0", "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.13.0.tgz", - "integrity": "sha512-ttckM1XaeyHRLMdr79wmGA5PFbTGx2jio9DCD/mkEpSfk6OGfqfC7gpwy7BNstDH/VKyQj/lDCJPnwvWqARMoQ==", - "optional": true + "integrity": "sha512-ttckM1XaeyHRLMdr79wmGA5PFbTGx2jio9DCD/mkEpSfk6OGfqfC7gpwy7BNstDH/VKyQj/lDCJPnwvWqARMoQ==" }, "@sentry/utils": { "version": "7.13.0", "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.13.0.tgz", "integrity": "sha512-jnR85LgRLSk7IQe2OhKOPMY4fasJCNQNW0iCXsH+S2R1qnsF+N4ksNkQ+7JyyM9E7F03YpI2qd76bKY0VIn5iA==", - "optional": true, "requires": { "@sentry/types": "7.13.0", "tslib": "^1.9.3" @@ -7576,8 +7349,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "optional": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, @@ -7975,7 +7747,6 @@ "version": "0.10.3", "resolved": "https://registry.npmjs.org/amqplib/-/amqplib-0.10.3.tgz", "integrity": "sha512-UHmuSa7n8vVW/a5HGh2nFPqAEr8+cD4dEZ6u9GjP91nHfr1a54RyAKyra7Sb5NH7NBKOUlyQSMXIp0qAixKexw==", - "optional": true, "requires": { "@acuminous/bitsyntax": "^0.1.2", "buffer-more-ints": "~1.0.0", @@ -8178,8 +7949,7 @@ "bowser": { "version": "2.11.0", "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", - "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", - "optional": true + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" }, "brace-expansion": { "version": "1.1.11", @@ -8212,8 +7982,7 @@ "buffer-more-ints": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/buffer-more-ints/-/buffer-more-ints-1.0.0.tgz", - "integrity": "sha512-EMetuGFz5SLsT0QTnXzINh4Ksr+oo4i+UGTXEshiGCQWnsgSs7ZhJ8fzlwQ+OzEMs0MpDAMr1hxnblp5a4vcHg==", - "optional": true + "integrity": "sha512-EMetuGFz5SLsT0QTnXzINh4Ksr+oo4i+UGTXEshiGCQWnsgSs7ZhJ8fzlwQ+OzEMs0MpDAMr1hxnblp5a4vcHg==" }, "busboy": { "version": "1.6.0", @@ -8850,8 +8619,7 @@ "fast-xml-parser": { "version": "3.19.0", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-3.19.0.tgz", - "integrity": "sha512-4pXwmBplsCPv8FOY1WRakF970TjNGnGnfbOnLqjlYvMiF1SR3yOHyxMR/YCXpPTOspNF5gwudqktIP4VsWkvBg==", - "optional": true + "integrity": "sha512-4pXwmBplsCPv8FOY1WRakF970TjNGnGnfbOnLqjlYvMiF1SR3yOHyxMR/YCXpPTOspNF5gwudqktIP4VsWkvBg==" }, "fast-zlib": { "version": "2.0.1", @@ -9445,8 +9213,7 @@ "lru_map": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/lru_map/-/lru_map-0.3.3.tgz", - "integrity": "sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==", - "optional": true + "integrity": "sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==" }, "lru-cache": { "version": "5.1.1", @@ -10169,8 +9936,7 @@ "querystringify": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "optional": true + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" }, "queue": { "version": "6.0.2", @@ -10269,8 +10035,7 @@ "requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "optional": true + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" }, "retry": { "version": "0.12.0", @@ -10898,7 +10663,6 @@ "version": "1.5.10", "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "optional": true, "requires": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" diff --git a/package.json b/package.json index 57f4600b..8a737424 100644 --- a/package.json +++ b/package.json @@ -72,15 +72,16 @@ "sqlite3": "^5.1.1", "typeorm": "^0.3.10", "typescript-json-schema": "^0.50.1", - "ws": "^8.9.0" - }, - "optionalDependencies": { + "ws": "^8.9.0", + "@aws-sdk/client-s3": "^3.178.0", "@sentry/node": "^7.13.0", "@sentry/tracing": "^7.13.0", - "@yukikaze-bot/erlpack": "^1.0.1", "amqplib": "^0.10.3" }, + "optionalDependencies": { + "@yukikaze-bot/erlpack": "^1.0.1" + }, "_moduleAliases": { "@fosscord/api": "dist/api", "@fosscord/cdn": "dist/cdn", diff --git a/scripts/schema.js b/scripts/schema.js index 01dd2146..de062d63 100644 --- a/scripts/schema.js +++ b/scripts/schema.js @@ -3,7 +3,6 @@ const path = require("path"); const fs = require("fs"); const TJS = require("typescript-json-schema"); -require("missing-native-js-functions"); const schemaPath = path.join(__dirname, "..", "assets", "schemas.json"); const settings = { diff --git a/src/api/routes/auth/login.ts b/src/api/routes/auth/login.ts index bcaccb30..9bed5aab 100644 --- a/src/api/routes/auth/login.ts +++ b/src/api/routes/auth/login.ts @@ -1,21 +1,12 @@ import { Request, Response, Router } from "express"; import { route, getIpAdress, verifyCaptcha } from "@fosscord/api"; import bcrypt from "bcrypt"; -import { Config, User, generateToken, adjustEmail, FieldErrors } from "@fosscord/util"; +import { Config, User, generateToken, adjustEmail, FieldErrors, LoginSchema } from "@fosscord/util"; import crypto from "crypto"; const router: Router = Router(); export default router; -export interface LoginSchema { - login: string; - password: string; - undelete?: boolean; - captcha_key?: string; - login_source?: string; - gift_code_sku_id?: string; -} - router.post("/", route({ body: "LoginSchema" }), async (req: Request, res: Response) => { const { login, password, captcha_key, undelete } = req.body as LoginSchema; const email = adjustEmail(login); diff --git a/src/api/routes/auth/mfa/totp.ts b/src/api/routes/auth/mfa/totp.ts index 50b9e9c8..96a48b66 100644 --- a/src/api/routes/auth/mfa/totp.ts +++ b/src/api/routes/auth/mfa/totp.ts @@ -1,17 +1,10 @@ import { Router, Request, Response } from "express"; import { route } from "@fosscord/api"; -import { BackupCode, FieldErrors, generateToken, User } from "@fosscord/util"; +import { BackupCode, generateToken, User, TotpSchema } from "@fosscord/util"; import { verifyToken } from "node-2fa"; import { HTTPError } from "lambert-server"; const router = Router(); -export interface TotpSchema { - code: string, - ticket: string, - gift_code_sku_id?: string | null, - login_source?: string | null, -} - router.post("/", route({ body: "TotpSchema" }), async (req: Request, res: Response) => { const { code, ticket, gift_code_sku_id, login_source } = req.body as TotpSchema; diff --git a/src/api/routes/auth/register.ts b/src/api/routes/auth/register.ts index b7122dad..84f8f838 100644 --- a/src/api/routes/auth/register.ts +++ b/src/api/routes/auth/register.ts @@ -1,40 +1,11 @@ import { Request, Response, Router } from "express"; -import { Config, generateToken, Invite, FieldErrors, User, adjustEmail } from "@fosscord/util"; +import { Config, generateToken, Invite, FieldErrors, User, adjustEmail, RegisterSchema } from "@fosscord/util"; import { route, getIpAdress, IPAnalysis, isProxy, verifyCaptcha } from "@fosscord/api"; -import "missing-native-js-functions"; import bcrypt from "bcrypt"; import { HTTPError } from "lambert-server"; const router: Router = Router(); -export interface RegisterSchema { - /** - * @minLength 2 - * @maxLength 32 - */ - username: string; - /** - * @minLength 1 - * @maxLength 72 - */ - password?: string; - consent: boolean; - /** - * @TJS-format email - */ - email?: string; - fingerprint?: string; - invite?: string; - /** - * @TJS-type string - */ - date_of_birth?: Date; // "2000-04-03" - gift_code_sku_id?: string; - captcha_key?: string; - - promotional_email_opt_in?: boolean; -} - router.post("/", route({ body: "RegisterSchema" }), async (req: Request, res: Response) => { const body = req.body as RegisterSchema; const { register, security } = Config.get(); diff --git a/src/api/routes/auth/verify/view-backup-codes-challenge.ts b/src/api/routes/auth/verify/view-backup-codes-challenge.ts index 36bfeb0c..24de8ec5 100644 --- a/src/api/routes/auth/verify/view-backup-codes-challenge.ts +++ b/src/api/routes/auth/verify/view-backup-codes-challenge.ts @@ -1,13 +1,9 @@ import { Router, Request, Response } from "express"; import { route } from "@fosscord/api"; -import { FieldErrors, User } from "@fosscord/util"; +import { FieldErrors, User, BackupCodesChallengeSchema } from "@fosscord/util"; import bcrypt from "bcrypt"; const router = Router(); -export interface BackupCodesChallengeSchema { - password: string; -} - router.post("/", route({ body: "BackupCodesChallengeSchema" }), async (req: Request, res: Response) => { const { password } = req.body as BackupCodesChallengeSchema; diff --git a/src/api/routes/channels/#channel_id/index.ts b/src/api/routes/channels/#channel_id/index.ts index 0340a616..8dbefe1b 100644 --- a/src/api/routes/channels/#channel_id/index.ts +++ b/src/api/routes/channels/#channel_id/index.ts @@ -1,12 +1,12 @@ import { Channel, ChannelDeleteEvent, - ChannelPermissionOverwriteType, ChannelType, ChannelUpdateEvent, emitEvent, Recipient, - handleFile + handleFile, + ChannelModifySchema } from "@fosscord/util"; import { Request, Response, Router } from "express"; import { route } from "@fosscord/api"; @@ -47,35 +47,6 @@ router.delete("/", route({ permission: "MANAGE_CHANNELS" }), async (req: Request res.send(channel); }); -export interface ChannelModifySchema { - /** - * @maxLength 100 - */ - name?: string; - type?: ChannelType; - topic?: string; - icon?: string | null; - bitrate?: number; - user_limit?: number; - rate_limit_per_user?: number; - position?: number; - permission_overwrites?: { - id: string; - type: ChannelPermissionOverwriteType; - allow: string; - deny: string; - }[]; - parent_id?: string; - id?: string; // is not used (only for guild create) - nsfw?: boolean; - rtc_region?: string; - default_auto_archive_duration?: number; - default_reaction_emoji?: string | null; - flags?: number; - default_thread_rate_limit_per_user?: number; - video_quality_mode?: number; -} - router.patch("/", route({ body: "ChannelModifySchema", permission: "MANAGE_CHANNELS" }), async (req: Request, res: Response) => { var payload = req.body as ChannelModifySchema; const { channel_id } = req.params; diff --git a/src/api/routes/channels/#channel_id/invites.ts b/src/api/routes/channels/#channel_id/invites.ts index fd8339ad..246a2c69 100644 --- a/src/api/routes/channels/#channel_id/invites.ts +++ b/src/api/routes/channels/#channel_id/invites.ts @@ -7,18 +7,6 @@ import { isTextChannel } from "./messages"; const router: Router = Router(); -export interface InviteCreateSchema { - target_user_id?: string; - target_type?: string; - validate?: string; // ? what is this - max_age?: number; - max_uses?: number; - temporary?: boolean; - unique?: boolean; - target_user?: string; - target_user_type?: number; -} - router.post("/", route({ body: "InviteCreateSchema", permission: "CREATE_INSTANT_INVITE", right: "CREATE_INVITES" }), async (req: Request, res: Response) => { const { user_id } = req; diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts b/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts index 3abae7ce..bedd453c 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts @@ -1,4 +1,4 @@ -import { emitEvent, getPermission, MessageAckEvent, ReadState, Snowflake } from "@fosscord/util"; +import { emitEvent, getPermission, MessageAckEvent, ReadState } from "@fosscord/util"; import { Request, Response, Router } from "express"; import { route } from "@fosscord/api"; @@ -8,11 +8,6 @@ const router = Router(); // TODO: send read state event to all channel members // TODO: advance-only notification cursor -export interface MessageAcknowledgeSchema { - manual?: boolean; - mention_count?: number; -} - router.post("/", route({ body: "MessageAcknowledgeSchema" }), async (req: Request, res: Response) => { const { channel_id, message_id } = req.params; diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts b/src/api/routes/channels/#channel_id/messages/#message_id/index.ts index a02a9abe..46b0d6bd 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/index.ts @@ -1,8 +1,6 @@ import { Attachment, Channel, - Embed, - DiscordApiErrors, emitEvent, FosscordApiErrors, getPermission, @@ -12,13 +10,13 @@ import { MessageDeleteEvent, MessageUpdateEvent, Snowflake, - uploadFile + uploadFile, + MessageCreateSchema, } from "@fosscord/util"; import { Router, Response, Request } from "express"; import multer from "multer"; import { route } from "@fosscord/api"; import { handleMessage, postHandleMessage } from "@fosscord/api"; -import { MessageCreateSchema } from "../index"; import { HTTPError } from "lambert-server"; const router = Router(); diff --git a/src/api/routes/channels/#channel_id/messages/bulk-delete.ts b/src/api/routes/channels/#channel_id/messages/bulk-delete.ts index b6fd37f4..6493c16a 100644 --- a/src/api/routes/channels/#channel_id/messages/bulk-delete.ts +++ b/src/api/routes/channels/#channel_id/messages/bulk-delete.ts @@ -2,16 +2,11 @@ import { Router, Response, Request } from "express"; import { Channel, Config, emitEvent, getPermission, getRights, MessageDeleteBulkEvent, Message } from "@fosscord/util"; import { HTTPError } from "lambert-server"; import { route } from "@fosscord/api"; -import { In } from "typeorm"; const router: Router = Router(); export default router; -export interface BulkDeleteSchema { - messages: string[]; -} - // should users be able to bulk delete messages or only bots? ANSWER: all users // should this request fail, if you provide messages older than 14 days/invalid ids? ANSWER: NO // https://discord.com/developers/docs/resources/channel#bulk-delete-messages diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index 154dc8ed..bee93e80 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -5,16 +5,15 @@ import { ChannelType, Config, DmChannelDTO, - Embed, emitEvent, getPermission, - getRights, Message, MessageCreateEvent, Snowflake, uploadFile, Member, Role, + MessageCreateSchema, } from "@fosscord/util"; import { HTTPError } from "lambert-server"; import { handleMessage, postHandleMessage, route } from "@fosscord/api"; @@ -50,38 +49,6 @@ export function isTextChannel(type: ChannelType): boolean { } } -export interface MessageCreateSchema { - type?: number; - content?: string; - nonce?: string; - channel_id?: string; - tts?: boolean; - flags?: string; - embeds?: Embed[]; - embed?: Embed; - // TODO: ^ embed is deprecated in favor of embeds (https://discord.com/developers/docs/resources/channel#message-object) - allowed_mentions?: { - parse?: string[]; - roles?: string[]; - users?: string[]; - replied_user?: boolean; - }; - message_reference?: { - message_id: string; - channel_id: string; - guild_id?: string; - fail_if_not_exists?: boolean; - }; - payload_json?: string; - file?: any; - /** - TODO: we should create an interface for attachments - TODO: OpenWAAO<-->attachment-style metadata conversion - **/ - attachments?: any[]; - sticker_ids?: string[]; -} - // https://discord.com/developers/docs/resources/channel#create-message // get messages router.get("/", async (req: Request, res: Response) => { diff --git a/src/api/routes/channels/#channel_id/purge.ts b/src/api/routes/channels/#channel_id/purge.ts index bfac27ee..9fe6b658 100644 --- a/src/api/routes/channels/#channel_id/purge.ts +++ b/src/api/routes/channels/#channel_id/purge.ts @@ -3,33 +3,21 @@ import { route } from "@fosscord/api"; import { isTextChannel } from "./messages"; import { FindManyOptions, Between, Not } from "typeorm"; import { - Attachment, Channel, Config, - Embed, - DiscordApiErrors, emitEvent, - FosscordApiErrors, getPermission, getRights, Message, MessageDeleteBulkEvent, - Snowflake, - uploadFile + PurgeSchema, } from "@fosscord/util"; import { Router, Response, Request } from "express"; -import multer from "multer"; -import { handleMessage, postHandleMessage } from "@fosscord/api"; const router: Router = Router(); export default router; -export interface PurgeSchema { - before: string; - after: string; -} - /** TODO: apply the delete bit by bit to prevent client and database stress **/ diff --git a/src/api/routes/channels/#channel_id/webhooks.ts b/src/api/routes/channels/#channel_id/webhooks.ts index 93f70a41..99c104ca 100644 --- a/src/api/routes/channels/#channel_id/webhooks.ts +++ b/src/api/routes/channels/#channel_id/webhooks.ts @@ -1,19 +1,12 @@ import { Router, Response, Request } from "express"; import { route } from "@fosscord/api"; -import { Channel, Config, getPermission, trimSpecial, Webhook } from "@fosscord/util"; +import { Channel, Config, trimSpecial, Webhook } from "@fosscord/util"; import { HTTPError } from "lambert-server"; import { isTextChannel } from "./messages/index"; import { DiscordApiErrors } from "@fosscord/util"; const router: Router = Router(); -// TODO: webhooks -export interface WebhookCreateSchema { - /** - * @maxLength 80 - */ - name: string; - avatar: string; -} + //TODO: implement webhooks router.get("/", route({}), async (req: Request, res: Response) => { res.json([]); diff --git a/src/api/routes/guilds/#guild_id/audit-logs.ts b/src/api/routes/guilds/#guild_id/audit-logs.ts index a4f2f800..b54835fc 100644 --- a/src/api/routes/guilds/#guild_id/audit-logs.ts +++ b/src/api/routes/guilds/#guild_id/audit-logs.ts @@ -1,8 +1,5 @@ import { Router, Response, Request } from "express"; -import { Channel, ChannelUpdateEvent, getPermission, emitEvent } from "@fosscord/util"; -import { HTTPError } from "lambert-server"; import { route } from "@fosscord/api"; -import { ChannelModifySchema } from "../../channels/#channel_id"; const router = Router(); //TODO: implement audit logs diff --git a/src/api/routes/guilds/#guild_id/bans.ts b/src/api/routes/guilds/#guild_id/bans.ts index 51d3ca67..ed00f9c0 100644 --- a/src/api/routes/guilds/#guild_id/bans.ts +++ b/src/api/routes/guilds/#guild_id/bans.ts @@ -1,30 +1,8 @@ import { Request, Response, Router } from "express"; -import { DiscordApiErrors, emitEvent, GuildBanAddEvent, GuildBanRemoveEvent, Ban, User, Member } from "@fosscord/util"; +import { DiscordApiErrors, emitEvent, GuildBanAddEvent, GuildBanRemoveEvent, Ban, User, Member, BanRegistrySchema, BanModeratorSchema } from "@fosscord/util"; import { HTTPError } from "lambert-server"; import { getIpAdress, route } from "@fosscord/api"; -export interface BanCreateSchema { - delete_message_days?: string; - reason?: string; -}; - -export interface BanRegistrySchema { - id: string; - user_id: string; - guild_id: string; - executor_id: string; - ip?: string; - reason?: string | undefined; -}; - -export interface BanModeratorSchema { - id: string; - user_id: string; - guild_id: string; - executor_id: string; - reason?: string | undefined; -}; - const router: Router = Router(); /* TODO: Deleting the secrets is just a temporary go-around. Views should be implemented for both safety and better handling. */ diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts index 11f727fc..7a5b50d1 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.ts @@ -1,8 +1,7 @@ import { Router, Response, Request } from "express"; -import { Channel, ChannelUpdateEvent, getPermission, emitEvent } from "@fosscord/util"; +import { Channel, ChannelUpdateEvent, emitEvent, ChannelModifySchema } from "@fosscord/util"; import { HTTPError } from "lambert-server"; import { route } from "@fosscord/api"; -import { ChannelModifySchema } from "../../channels/#channel_id"; const router = Router(); router.get("/", route({}), async (req: Request, res: Response) => { diff --git a/src/api/routes/guilds/#guild_id/emojis.ts b/src/api/routes/guilds/#guild_id/emojis.ts index 75998e04..cf9d742a 100644 --- a/src/api/routes/guilds/#guild_id/emojis.ts +++ b/src/api/routes/guilds/#guild_id/emojis.ts @@ -1,21 +1,9 @@ import { Router, Request, Response } from "express"; -import { Config, DiscordApiErrors, emitEvent, Emoji, GuildEmojisUpdateEvent, handleFile, Member, Snowflake, User } from "@fosscord/util"; +import { Config, DiscordApiErrors, emitEvent, Emoji, GuildEmojisUpdateEvent, handleFile, Member, Snowflake, User, EmojiCreateSchema, EmojiModifySchema } from "@fosscord/util"; import { route } from "@fosscord/api"; const router = Router(); -export interface EmojiCreateSchema { - name?: string; - image: string; - require_colons?: boolean | null; - roles?: string[]; -} - -export interface EmojiModifySchema { - name?: string; - roles?: string[]; -} - router.get("/", route({}), async (req: Request, res: Response) => { const { guild_id } = req.params; diff --git a/src/api/routes/guilds/#guild_id/index.ts b/src/api/routes/guilds/#guild_id/index.ts index 45bbe348..afeb0938 100644 --- a/src/api/routes/guilds/#guild_id/index.ts +++ b/src/api/routes/guilds/#guild_id/index.ts @@ -1,9 +1,7 @@ import { Request, Response, Router } from "express"; -import { DiscordApiErrors, emitEvent, getPermission, getRights, Guild, GuildUpdateEvent, handleFile, Member } from "@fosscord/util"; +import { DiscordApiErrors, emitEvent, getPermission, getRights, Guild, GuildUpdateEvent, handleFile, Member, GuildCreateSchema } from "@fosscord/util"; import { HTTPError } from "lambert-server"; import { route } from "@fosscord/api"; -import "missing-native-js-functions"; -import { GuildCreateSchema } from "../index"; const router = Router(); diff --git a/src/api/routes/guilds/#guild_id/integrations.ts b/src/api/routes/guilds/#guild_id/integrations.ts index abf997c9..a8e78062 100644 --- a/src/api/routes/guilds/#guild_id/integrations.ts +++ b/src/api/routes/guilds/#guild_id/integrations.ts @@ -1,8 +1,5 @@ import { Router, Response, Request } from "express"; -import { Channel, ChannelUpdateEvent, getPermission, emitEvent } from "@fosscord/util"; -import { HTTPError } from "lambert-server"; import { route } from "@fosscord/api"; -import { ChannelModifySchema } from "../../channels/#channel_id"; const router = Router(); //TODO: implement integrations list diff --git a/src/api/routes/guilds/#guild_id/members/#member_id/index.ts b/src/api/routes/guilds/#guild_id/members/#member_id/index.ts index d785eb00..407619d3 100644 --- a/src/api/routes/guilds/#guild_id/members/#member_id/index.ts +++ b/src/api/routes/guilds/#guild_id/members/#member_id/index.ts @@ -1,15 +1,9 @@ import { Request, Response, Router } from "express"; -import { Member, getPermission, getRights, Role, GuildMemberUpdateEvent, emitEvent, Sticker, Emoji, Rights, Guild } from "@fosscord/util"; -import { HTTPError } from "lambert-server"; +import { Member, getPermission, getRights, Role, GuildMemberUpdateEvent, emitEvent, Sticker, Emoji, Guild, MemberChangeSchema } from "@fosscord/util"; import { route } from "@fosscord/api"; const router = Router(); -export interface MemberChangeSchema { - roles?: string[]; - nick?: string; -} - router.get("/", route({}), async (req: Request, res: Response) => { const { guild_id, member_id } = req.params; await Member.IsInGuildOrFail(req.user_id, guild_id); diff --git a/src/api/routes/guilds/#guild_id/members/#member_id/nick.ts b/src/api/routes/guilds/#guild_id/members/#member_id/nick.ts index 27f7f65d..edd47605 100644 --- a/src/api/routes/guilds/#guild_id/members/#member_id/nick.ts +++ b/src/api/routes/guilds/#guild_id/members/#member_id/nick.ts @@ -4,10 +4,6 @@ import { Request, Response, Router } from "express"; const router = Router(); -export interface MemberNickChangeSchema { - nick: string; -} - router.patch("/", route({ body: "MemberNickChangeSchema" }), async (req: Request, res: Response) => { var { guild_id, member_id } = req.params; var permissionString: PermissionResolvable = "MANAGE_NICKNAMES"; diff --git a/src/api/routes/guilds/#guild_id/prune.ts b/src/api/routes/guilds/#guild_id/prune.ts index cf3466f1..2e674349 100644 --- a/src/api/routes/guilds/#guild_id/prune.ts +++ b/src/api/routes/guilds/#guild_id/prune.ts @@ -62,13 +62,6 @@ router.get("/", route({}), async (req: Request, res: Response) => { res.send({ pruned: members.length }); }); -export interface PruneSchema { - /** - * @min 0 - */ - days: number; -} - router.post("/", route({ permission: "KICK_MEMBERS", right: "KICK_BAN_MEMBERS" }), async (req: Request, res: Response) => { const days = parseInt(req.body.days); diff --git a/src/api/routes/guilds/#guild_id/roles/#role_id/index.ts b/src/api/routes/guilds/#guild_id/roles/#role_id/index.ts index a01068c0..87cf5261 100644 --- a/src/api/routes/guilds/#guild_id/roles/#role_id/index.ts +++ b/src/api/routes/guilds/#guild_id/roles/#role_id/index.ts @@ -1,8 +1,7 @@ import { Router, Request, Response } from "express"; -import { Role, Member, GuildRoleUpdateEvent, GuildRoleDeleteEvent, emitEvent, handleFile } from "@fosscord/util"; +import { Role, Member, GuildRoleUpdateEvent, GuildRoleDeleteEvent, emitEvent, handleFile, RoleModifySchema } from "@fosscord/util"; import { route } from "@fosscord/api"; import { HTTPError } from "lambert-server"; -import { RoleModifySchema } from "../"; const router = Router(); diff --git a/src/api/routes/guilds/#guild_id/roles/index.ts b/src/api/routes/guilds/#guild_id/roles/index.ts index 7e839f08..c5a86400 100644 --- a/src/api/routes/guilds/#guild_id/roles/index.ts +++ b/src/api/routes/guilds/#guild_id/roles/index.ts @@ -5,28 +5,15 @@ import { Member, GuildRoleCreateEvent, GuildRoleUpdateEvent, - GuildRoleDeleteEvent, emitEvent, Config, DiscordApiErrors, - handleFile + RoleModifySchema, } from "@fosscord/util"; -import { HTTPError } from "lambert-server"; import { route } from "@fosscord/api"; const router: Router = Router(); -export interface RoleModifySchema { - name?: string; - permissions?: string; - color?: number; - hoist?: boolean; // whether the role should be displayed separately in the sidebar - mentionable?: boolean; // whether the role should be mentionable - position?: number; - icon?: string; - unicode_emoji?: string; -} - export type RolePositionUpdateSchema = { id: string; position: number; diff --git a/src/api/routes/guilds/#guild_id/stickers.ts b/src/api/routes/guilds/#guild_id/stickers.ts index 7a4e71ee..fc0f49ab 100644 --- a/src/api/routes/guilds/#guild_id/stickers.ts +++ b/src/api/routes/guilds/#guild_id/stickers.ts @@ -1,13 +1,13 @@ import { emitEvent, GuildStickersUpdateEvent, - handleFile, Member, Snowflake, Sticker, StickerFormatType, StickerType, - uploadFile + uploadFile, + ModifyGuildStickerSchema, } from "@fosscord/util"; import { Router, Request, Response } from "express"; import { route } from "@fosscord/api"; @@ -82,22 +82,6 @@ router.get("/:sticker_id", route({}), async (req: Request, res: Response) => { res.json(await Sticker.findOneOrFail({ where: { guild_id, id: sticker_id } })); }); -export interface ModifyGuildStickerSchema { - /** - * @minLength 2 - * @maxLength 30 - */ - name: string; - /** - * @maxLength 100 - */ - description?: string; - /** - * @maxLength 200 - */ - tags: string; -} - router.patch( "/:sticker_id", route({ body: "ModifyGuildStickerSchema", permission: "MANAGE_EMOJIS_AND_STICKERS" }), diff --git a/src/api/routes/guilds/#guild_id/templates.ts b/src/api/routes/guilds/#guild_id/templates.ts index 0444c402..628321f5 100644 --- a/src/api/routes/guilds/#guild_id/templates.ts +++ b/src/api/routes/guilds/#guild_id/templates.ts @@ -23,16 +23,6 @@ const TemplateGuildProjection: (keyof Guild)[] = [ "icon" ]; -export interface TemplateCreateSchema { - name: string; - description?: string; -} - -export interface TemplateModifySchema { - name: string; - description?: string; -} - router.get("/", route({}), async (req: Request, res: Response) => { const { guild_id } = req.params; diff --git a/src/api/routes/guilds/#guild_id/vanity-url.ts b/src/api/routes/guilds/#guild_id/vanity-url.ts index 040bc1fd..d1fe4726 100644 --- a/src/api/routes/guilds/#guild_id/vanity-url.ts +++ b/src/api/routes/guilds/#guild_id/vanity-url.ts @@ -1,4 +1,4 @@ -import { Channel, ChannelType, getPermission, Guild, Invite, trimSpecial } from "@fosscord/util"; +import { Channel, ChannelType, Guild, Invite, VanityUrlSchema } from "@fosscord/util"; import { Router, Request, Response } from "express"; import { route } from "@fosscord/api"; import { HTTPError } from "lambert-server"; @@ -24,14 +24,6 @@ router.get("/", route({ permission: "MANAGE_GUILD" }), async (req: Request, res: } }); -export interface VanityUrlSchema { - /** - * @minLength 1 - * @maxLength 20 - */ - code?: string; -} - router.patch("/", route({ body: "VanityUrlSchema", permission: "MANAGE_GUILD" }), async (req: Request, res: Response) => { const { guild_id } = req.params; const body = req.body as VanityUrlSchema; diff --git a/src/api/routes/guilds/#guild_id/voice-states/#user_id/index.ts b/src/api/routes/guilds/#guild_id/voice-states/#user_id/index.ts index b7fdfecd..006e997f 100644 --- a/src/api/routes/guilds/#guild_id/voice-states/#user_id/index.ts +++ b/src/api/routes/guilds/#guild_id/voice-states/#user_id/index.ts @@ -1,20 +1,10 @@ -import { Channel, ChannelType, DiscordApiErrors, emitEvent, getPermission, VoiceState, VoiceStateUpdateEvent } from "@fosscord/util"; +import { Channel, ChannelType, DiscordApiErrors, emitEvent, getPermission, VoiceState, VoiceStateUpdateEvent, VoiceStateUpdateSchema } from "@fosscord/util"; import { route } from "@fosscord/api"; import { Request, Response, Router } from "express"; const router = Router(); //TODO need more testing when community guild and voice stage channel are working -export interface VoiceStateUpdateSchema { - channel_id: string; - guild_id?: string; - suppress?: boolean; - request_to_speak_timestamp?: Date; - self_mute?: boolean; - self_deaf?: boolean; - self_video?: boolean; -} - router.patch("/", route({ body: "VoiceStateUpdateSchema" }), async (req: Request, res: Response) => { const body = req.body as VoiceStateUpdateSchema; var { guild_id, user_id } = req.params; diff --git a/src/api/routes/guilds/#guild_id/webhooks.ts b/src/api/routes/guilds/#guild_id/webhooks.ts index 8b2febea..9c4e8a8d 100644 --- a/src/api/routes/guilds/#guild_id/webhooks.ts +++ b/src/api/routes/guilds/#guild_id/webhooks.ts @@ -1,8 +1,5 @@ import { Router, Response, Request } from "express"; -import { Channel, ChannelUpdateEvent, getPermission, emitEvent } from "@fosscord/util"; -import { HTTPError } from "lambert-server"; import { route } from "@fosscord/api"; -import { ChannelModifySchema } from "../../channels/#channel_id"; const router = Router(); //TODO: implement webhooks diff --git a/src/api/routes/guilds/#guild_id/welcome-screen.ts b/src/api/routes/guilds/#guild_id/welcome-screen.ts index a57255f0..57da062d 100644 --- a/src/api/routes/guilds/#guild_id/welcome-screen.ts +++ b/src/api/routes/guilds/#guild_id/welcome-screen.ts @@ -1,21 +1,10 @@ import { Request, Response, Router } from "express"; -import { Guild, getPermission, Snowflake, Member } from "@fosscord/util"; +import { Guild, Member, GuildUpdateWelcomeScreenSchema } from "@fosscord/util"; import { HTTPError } from "lambert-server"; import { route } from "@fosscord/api"; const router: Router = Router(); -export interface GuildUpdateWelcomeScreenSchema { - welcome_channels?: { - channel_id: string; - description: string; - emoji_id?: string; - emoji_name?: string; - }[]; - enabled?: boolean; - description?: string; -} - router.get("/", route({}), async (req: Request, res: Response) => { const guild_id = req.params.guild_id; diff --git a/src/api/routes/guilds/#guild_id/widget.ts b/src/api/routes/guilds/#guild_id/widget.ts index 103f84a3..dbb4cc0c 100644 --- a/src/api/routes/guilds/#guild_id/widget.ts +++ b/src/api/routes/guilds/#guild_id/widget.ts @@ -1,12 +1,7 @@ import { Request, Response, Router } from "express"; -import { Guild } from "@fosscord/util"; +import { Guild, WidgetModifySchema } from "@fosscord/util"; import { route } from "@fosscord/api"; -export interface WidgetModifySchema { - enabled: boolean; // whether the widget is enabled - channel_id: string; // the widget channel id -} - const router: Router = Router(); // https://discord.com/developers/docs/resources/guild#get-guild-widget-settings diff --git a/src/api/routes/guilds/index.ts b/src/api/routes/guilds/index.ts index d44cd735..0807cb96 100644 --- a/src/api/routes/guilds/index.ts +++ b/src/api/routes/guilds/index.ts @@ -1,23 +1,9 @@ import { Router, Request, Response } from "express"; -import { Role, Guild, Snowflake, Config, getRights, Member, Channel, DiscordApiErrors, handleFile } from "@fosscord/util"; +import { Role, Guild, Config, getRights, Member, DiscordApiErrors, GuildCreateSchema } from "@fosscord/util"; import { route } from "@fosscord/api"; -import { ChannelModifySchema } from "../channels/#channel_id"; const router: Router = Router(); -export interface GuildCreateSchema { - /** - * @maxLength 100 - */ - name?: string; - region?: string; - icon?: string | null; - channels?: ChannelModifySchema[]; - guild_template_code?: string; - system_channel_id?: string; - rules_channel_id?: string; -} - //TODO: create default channel router.post("/", route({ body: "GuildCreateSchema", right: "CREATE_GUILDS" }), async (req: Request, res: Response) => { diff --git a/src/api/routes/guilds/templates/index.ts b/src/api/routes/guilds/templates/index.ts index e281214f..4e7abcc5 100644 --- a/src/api/routes/guilds/templates/index.ts +++ b/src/api/routes/guilds/templates/index.ts @@ -1,15 +1,10 @@ import { Request, Response, Router } from "express"; -import { Template, Guild, Role, Snowflake, Config, User, Member } from "@fosscord/util"; +import { Template, Guild, Role, Snowflake, Config, Member, GuildTemplateCreateSchema } from "@fosscord/util"; import { route } from "@fosscord/api"; import { DiscordApiErrors } from "@fosscord/util"; import fetch from "node-fetch"; const router: Router = Router(); -export interface GuildTemplateCreateSchema { - name: string; - avatar?: string | null; -} - router.get("/:code", route({}), async (req: Request, res: Response) => { const { allowDiscordTemplates, allowRaws, enabled } = Config.get().templates; if (!enabled) res.json({ code: 403, message: "Template creation & usage is disabled on this instance." }).sendStatus(403); diff --git a/src/api/routes/users/@me/channels.ts b/src/api/routes/users/@me/channels.ts index 78f531e1..ad483529 100644 --- a/src/api/routes/users/@me/channels.ts +++ b/src/api/routes/users/@me/channels.ts @@ -1,5 +1,5 @@ import { Request, Response, Router } from "express"; -import { Recipient, DmChannelDTO, Channel } from "@fosscord/util"; +import { Recipient, DmChannelDTO, Channel, DmChannelCreateSchema } from "@fosscord/util"; import { route } from "@fosscord/api"; const router: Router = Router(); @@ -12,11 +12,6 @@ router.get("/", route({}), async (req: Request, res: Response) => { res.json(await Promise.all(recipients.map((r) => DmChannelDTO.from(r.channel, [req.user_id])))); }); -export interface DmChannelCreateSchema { - name?: string; - recipients: string[]; -} - router.post("/", route({ body: "DmChannelCreateSchema" }), async (req: Request, res: Response) => { const body = req.body as DmChannelCreateSchema; res.json(await Channel.createDMChannel(body.recipients, req.user_id, body.name)); diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index 36b62b55..e849b72a 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -1,31 +1,11 @@ import { Router, Request, Response } from "express"; -import { User, PrivateUserProjection, emitEvent, UserUpdateEvent, handleFile, FieldErrors, adjustEmail, Config } from "@fosscord/util"; +import { User, PrivateUserProjection, emitEvent, UserUpdateEvent, handleFile, FieldErrors, adjustEmail, Config, UserModifySchema } from "@fosscord/util"; import { route } from "@fosscord/api"; import bcrypt from "bcrypt"; import { HTTPError } from "lambert-server"; const router: Router = Router(); -export interface UserModifySchema { - /** - * @minLength 1 - * @maxLength 100 - */ - username?: string; - avatar?: string | null; - /** - * @maxLength 1024 - */ - bio?: string; - accent_color?: number; - banner?: string | null; - password?: string; - new_password?: string; - code?: string; - email?: string; - discriminator?: string; -} - router.get("/", route({}), async (req: Request, res: Response) => { res.json(await User.findOne({ select: PrivateUserProjection, where: { id: req.user_id } })); }); diff --git a/src/api/routes/users/@me/mfa/codes-verification.ts b/src/api/routes/users/@me/mfa/codes-verification.ts index 09000d07..071c71fa 100644 --- a/src/api/routes/users/@me/mfa/codes-verification.ts +++ b/src/api/routes/users/@me/mfa/codes-verification.ts @@ -1,15 +1,9 @@ import { Router, Request, Response } from "express"; import { route } from "@fosscord/api"; -import { BackupCode, generateMfaBackupCodes, User } from "@fosscord/util"; +import { BackupCode, generateMfaBackupCodes, User, CodesVerificationSchema } from "@fosscord/util"; const router = Router(); -export interface CodesVerificationSchema { - key: string; - nonce: string; - regenerate?: boolean; -} - router.post("/", route({ body: "CodesVerificationSchema" }), async (req: Request, res: Response) => { const { key, nonce, regenerate } = req.body as CodesVerificationSchema; diff --git a/src/api/routes/users/@me/mfa/codes.ts b/src/api/routes/users/@me/mfa/codes.ts index 67bd3d5b..58466b9c 100644 --- a/src/api/routes/users/@me/mfa/codes.ts +++ b/src/api/routes/users/@me/mfa/codes.ts @@ -1,15 +1,10 @@ import { Router, Request, Response } from "express"; import { route } from "@fosscord/api"; -import { BackupCode, FieldErrors, generateMfaBackupCodes, User } from "@fosscord/util"; +import { BackupCode, FieldErrors, generateMfaBackupCodes, User, MfaCodesSchema } from "@fosscord/util"; import bcrypt from "bcrypt"; const router = Router(); -export interface MfaCodesSchema { - password: string; - regenerate?: boolean; -} - // TODO: This route is replaced with users/@me/mfa/codes-verification in newer clients router.post("/", route({ body: "MfaCodesSchema" }), async (req: Request, res: Response) => { diff --git a/src/api/routes/users/@me/mfa/totp/disable.ts b/src/api/routes/users/@me/mfa/totp/disable.ts index 2d385fda..2fe9355c 100644 --- a/src/api/routes/users/@me/mfa/totp/disable.ts +++ b/src/api/routes/users/@me/mfa/totp/disable.ts @@ -2,14 +2,10 @@ import { Router, Request, Response } from "express"; import { route } from "@fosscord/api"; import { verifyToken } from 'node-2fa'; import { HTTPError } from "lambert-server"; -import { User, generateToken, BackupCode } from "@fosscord/util"; +import { User, generateToken, BackupCode, TotpDisableSchema } from "@fosscord/util"; const router = Router(); -export interface TotpDisableSchema { - code: string; -} - router.post("/", route({ body: "TotpDisableSchema" }), async (req: Request, res: Response) => { const body = req.body as TotpDisableSchema; diff --git a/src/api/routes/users/@me/mfa/totp/enable.ts b/src/api/routes/users/@me/mfa/totp/enable.ts index e4ce9ce0..adafe180 100644 --- a/src/api/routes/users/@me/mfa/totp/enable.ts +++ b/src/api/routes/users/@me/mfa/totp/enable.ts @@ -1,19 +1,12 @@ import { Router, Request, Response } from "express"; -import { User, generateToken, BackupCode, generateMfaBackupCodes } from "@fosscord/util"; +import { User, generateToken, generateMfaBackupCodes, TotpEnableSchema } from "@fosscord/util"; import { route } from "@fosscord/api"; import bcrypt from "bcrypt"; import { HTTPError } from "lambert-server"; import { verifyToken } from 'node-2fa'; -import crypto from "crypto"; const router = Router(); -export interface TotpEnableSchema { - password: string; - code?: string; - secret?: string; -} - router.post("/", route({ body: "TotpEnableSchema" }), async (req: Request, res: Response) => { const body = req.body as TotpEnableSchema; diff --git a/src/api/routes/users/@me/relationships.ts b/src/api/routes/users/@me/relationships.ts index 00d4da0b..cd33704d 100644 --- a/src/api/routes/users/@me/relationships.ts +++ b/src/api/routes/users/@me/relationships.ts @@ -37,10 +37,6 @@ router.get("/", route({}), async (req: Request, res: Response) => { return res.json(related_users); }); -export interface RelationshipPutSchema { - type?: RelationshipType; -} - router.put("/:id", route({ body: "RelationshipPutSchema" }), async (req: Request, res: Response) => { return await updateRelationship( req, @@ -50,11 +46,6 @@ router.put("/:id", route({ body: "RelationshipPutSchema" }), async (req: Request ); }); -export interface RelationshipPostSchema { - discriminator: string; - username: string; -} - router.post("/", route({ body: "RelationshipPostSchema" }), async (req: Request, res: Response) => { return await updateRelationship( req, diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 7e91fb7b..0d29c2e6 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -22,11 +22,11 @@ import { Attachment, Config, Sticker, + MessageCreateSchema, } from "@fosscord/util"; import { HTTPError } from "lambert-server"; import fetch from "node-fetch"; import cheerio from "cheerio"; -import { MessageCreateSchema } from "../../routes/channels/#channel_id/messages"; import { In } from "typeorm"; const allow_empty = false; // TODO: check webhook, application, system author, stickers diff --git a/src/gateway/events/Message.ts b/src/gateway/events/Message.ts index db7dbad2..4699f1af 100644 --- a/src/gateway/events/Message.ts +++ b/src/gateway/events/Message.ts @@ -36,7 +36,7 @@ export async function Message(this: WebSocket, buffer: WS.Data) { data = bigIntJson.parse(buffer as string); } else if (typeof buffer == "string") { - data = bigIntJson.parse(buffer as string) + data = bigIntJson.parse(buffer as string); } else return; @@ -51,14 +51,14 @@ export async function Message(this: WebSocket, buffer: WS.Data) { return; } - // const transaction = Sentry.startTransaction({ - // op: OPCODES[data.op], - // name: `GATEWAY ${OPCODES[data.op]}`, - // data: { - // ...data.d, - // token: data?.d?.token ? "[Redacted]" : undefined, - // }, - // }); + const transaction = Sentry.startTransaction({ + op: OPCODES[data.op], + name: `GATEWAY ${OPCODES[data.op]}`, + data: { + ...data.d, + token: data?.d?.token ? "[Redacted]" : undefined, + }, + }); try { var ret = await OPCodeHandler.call(this, data); @@ -66,7 +66,7 @@ export async function Message(this: WebSocket, buffer: WS.Data) { return ret; } catch (error) { Sentry.captureException(error); - // transaction.finish(); + transaction.finish(); console.error(`Error: Op ${data.op}`, error); // if (!this.CLOSED && this.CLOSING) return this.close(CLOSECODES.Unknown_error); diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 3c40962c..b4b36075 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -20,12 +20,12 @@ import { PresenceUpdateEvent, DefaultUserGuildSettings, UserGuildSettings, + IdentifySchema, } from "@fosscord/util"; import { Send } from "../util/Send"; import { CLOSECODES, OPCODES } from "../util/Constants"; import { genSessionId } from "../util/SessionUtils"; import { setupListener } from "../listener/listener"; -import { IdentifySchema } from "../schema/Identify"; // import experiments from "./experiments.json"; const experiments: any = []; import { check } from "./instanceOf"; diff --git a/src/gateway/opcodes/LazyRequest.ts b/src/gateway/opcodes/LazyRequest.ts index 82342224..0f21d087 100644 --- a/src/gateway/opcodes/LazyRequest.ts +++ b/src/gateway/opcodes/LazyRequest.ts @@ -1,6 +1,5 @@ -import { getDatabase, getPermission, listenEvent, Member, Role, Session } from "@fosscord/util"; +import { getDatabase, getPermission, listenEvent, Member, Role, Session, LazyRequestSchema } from "@fosscord/util"; import { WebSocket, Payload, handlePresenceUpdate, OPCODES, Send } from "@fosscord/gateway"; -import { LazyRequest } from "../schema/LazyRequest"; import { check } from "./instanceOf"; // TODO: only show roles/members that have access to this channel @@ -137,8 +136,8 @@ async function getMembers(guild_id: string, range: [number, number]) { export async function onLazyRequest(this: WebSocket, { d }: Payload) { // TODO: check data - check.call(this, LazyRequest, d); - const { guild_id, typing, channels, activities } = d as LazyRequest; + check.call(this, LazyRequestSchema, d); + const { guild_id, typing, channels, activities } = d as LazyRequestSchema; const channel_id = Object.keys(channels || {}).first(); if (!channel_id) return; diff --git a/src/gateway/opcodes/PresenceUpdate.ts b/src/gateway/opcodes/PresenceUpdate.ts index 415df6ee..d17b7dd7 100644 --- a/src/gateway/opcodes/PresenceUpdate.ts +++ b/src/gateway/opcodes/PresenceUpdate.ts @@ -1,6 +1,5 @@ import { WebSocket, Payload } from "@fosscord/gateway"; -import { emitEvent, PresenceUpdateEvent, Session, User } from "@fosscord/util"; -import { ActivitySchema } from "../schema/Activity"; +import { emitEvent, PresenceUpdateEvent, Session, User, ActivitySchema } from "@fosscord/util"; import { check } from "./instanceOf"; export async function onPresenceUpdate(this: WebSocket, { d }: Payload) { diff --git a/src/gateway/opcodes/VoiceStateUpdate.ts b/src/gateway/opcodes/VoiceStateUpdate.ts index fa63f7fc..8e1585ec 100644 --- a/src/gateway/opcodes/VoiceStateUpdate.ts +++ b/src/gateway/opcodes/VoiceStateUpdate.ts @@ -1,4 +1,3 @@ -import { VoiceStateUpdateSchema } from "../schema/VoiceStateUpdateSchema"; import { Payload, WebSocket } from "@fosscord/gateway"; import { genVoiceToken } from "../util/SessionUtils"; import { check } from "./instanceOf"; @@ -11,6 +10,7 @@ import { VoiceServerUpdateEvent, VoiceState, VoiceStateUpdateEvent, + VoiceStateUpdateSchema, } from "@fosscord/util"; // TODO: check if a voice server is setup // Notice: Bot users respect the voice channel's user limit, if set. When the voice channel is full, you will not receive the Voice State Update or Voice Server Update events in response to your own Voice State Update. Having MANAGE_CHANNELS permission bypasses this limit and allows you to join regardless of the channel being full or not. diff --git a/src/gateway/schema/Activity.ts b/src/gateway/schema/Activity.ts deleted file mode 100644 index f58b0fa9..00000000 --- a/src/gateway/schema/Activity.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { Activity, Status } from "@fosscord/util"; - -export const ActivitySchema = { - afk: Boolean, - status: String, - $activities: [ - { - name: String, - type: Number, - $url: String, - $created_at: Date, - $timestamps: { - $start: Number, - $end: Number, - }, - $application_id: String, - $details: String, - $state: String, - $emoji: { - $name: String, - $id: String, - $animated: Boolean, - }, - $party: { - $id: String, - $size: [Number, Number], - }, - $assets: { - $large_image: String, - $large_text: String, - $small_image: String, - $small_text: String, - }, - $secrets: { - $join: String, - $spectate: String, - $match: String, - }, - $instance: Boolean, - $flags: String, - - $id: String, - $sync_id: String, - $metadata: { // spotify - $context_uri: String, - album_id: String, - artist_ids: [String], - }, - $session_id: String, - }, - ], - $since: Number, // unix time (in milliseconds) of when the client went idle, or null if the client is not idle -}; - -export interface ActivitySchema { - afk: boolean; - status: Status; - activities?: Activity[]; - since?: number; // unix time (in milliseconds) of when the client went idle, or null if the client is not idle -} diff --git a/src/gateway/schema/Identify.ts b/src/gateway/schema/Identify.ts deleted file mode 100644 index 6f68b515..00000000 --- a/src/gateway/schema/Identify.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { ActivitySchema } from "./Activity"; - -export const IdentifySchema = { - token: String, - $intents: BigInt, // discord uses a Integer for bitfields we use bigints tho. | instanceOf will automatically convert the Number to a BigInt - $properties: Object, - // { - // // discord uses $ in the property key for bots, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key - // $os: String, - // $os_arch: String, - // $browser: String, - // $device: String, - // $$os: String, - // $$browser: String, - // $$device: String, - // $browser_user_agent: String, - // $browser_version: String, - // $os_version: String, - // $referrer: String, - // $$referrer: String, - // $referring_domain: String, - // $$referring_domain: String, - // $referrer_current: String, - // $referring_domain_current: String, - // $release_channel: String, - // $client_build_number: Number, - // $client_event_source: String, - // $client_version: String, - // $system_locale: String, - // $window_manager: String, - // $distro: String, - // }, - $presence: ActivitySchema, - $compress: Boolean, - $large_threshold: Number, - $shard: [BigInt, BigInt], - $guild_subscriptions: Boolean, - $capabilities: Number, - $client_state: { - $guild_hashes: Object, - $highest_last_message_id: String || Number, - $read_state_version: Number, - $user_guild_settings_version: Number, - $user_settings_version: undefined, - $useruser_guild_settings_version: undefined, - }, - $clientState: { - $guildHashes: Object, - $highestLastMessageId: String || Number, - $readStateVersion: Number, - $useruserGuildSettingsVersion: undefined, - $userGuildSettingsVersion: undefined, - }, - $v: Number, - $version: Number, -}; - -export interface IdentifySchema { - token: string; - properties: { - // bruh discord really uses $ in the property key, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key - os?: string; - os_atch?: string; - browser?: string; - device?: string; - $os?: string; - $browser?: string; - $device?: string; - browser_user_agent?: string; - browser_version?: string; - os_version?: string; - referrer?: string; - referring_domain?: string; - referrer_current?: string; - referring_domain_current?: string; - release_channel?: "stable" | "dev" | "ptb" | "canary"; - client_build_number?: number; - client_event_source?: any; - client_version?: string; - system_locale?: string; - }; - intents?: bigint; // discord uses a Integer for bitfields we use bigints tho. | instanceOf will automatically convert the Number to a BigInt - presence?: ActivitySchema; - compress?: boolean; - large_threshold?: number; - largeThreshold?: number; - shard?: [bigint, bigint]; - guild_subscriptions?: boolean; - capabilities?: number; - client_state?: { - guild_hashes?: any; - highest_last_message_id?: string | number; - read_state_version?: number; - user_guild_settings_version?: number; - user_settings_version?: number; - useruser_guild_settings_version?: number; - }; - clientState?: { - guildHashes?: any; - highestLastMessageId?: string | number; - readStateVersion?: number; - userGuildSettingsVersion?: number; - useruserGuildSettingsVersion?: number; - }; - v?: number; -} diff --git a/src/gateway/schema/LazyRequest.ts b/src/gateway/schema/LazyRequest.ts deleted file mode 100644 index 1fe658bb..00000000 --- a/src/gateway/schema/LazyRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -export interface LazyRequest { - guild_id: string; - channels?: Record; - activities?: boolean; - threads?: boolean; - typing?: true; - members?: any[]; - thread_member_lists?: any[]; -} - -export const LazyRequest = { - guild_id: String, - $activities: Boolean, - $channels: Object, - $typing: Boolean, - $threads: Boolean, - $members: [] as any[], - $thread_member_lists: [] as any[], -}; diff --git a/src/gateway/schema/VoiceStateUpdateSchema.ts b/src/gateway/schema/VoiceStateUpdateSchema.ts deleted file mode 100644 index f6480414..00000000 --- a/src/gateway/schema/VoiceStateUpdateSchema.ts +++ /dev/null @@ -1,17 +0,0 @@ -export const VoiceStateUpdateSchema = { - $guild_id: String, - $channel_id: String, - self_mute: Boolean, - self_deaf: Boolean, - $self_video: Boolean, //required in docs but bots don't always send it - $preferred_region: String, -}; - -export interface VoiceStateUpdateSchema { - guild_id?: string; - channel_id?: string; - self_mute: boolean; - self_deaf: boolean; - self_video?: boolean; - preferred_region?: string; -} \ No newline at end of file diff --git a/src/util/schemas/ActivitySchema.ts b/src/util/schemas/ActivitySchema.ts new file mode 100644 index 00000000..d316420e --- /dev/null +++ b/src/util/schemas/ActivitySchema.ts @@ -0,0 +1,60 @@ +import { Activity, Status } from "@fosscord/util"; + +export const ActivitySchema = { + afk: Boolean, + status: String, + $activities: [ + { + name: String, + type: Number, + $url: String, + $created_at: Date, + $timestamps: { + $start: Number, + $end: Number, + }, + $application_id: String, + $details: String, + $state: String, + $emoji: { + $name: String, + $id: String, + $animated: Boolean, + }, + $party: { + $id: String, + $size: [Number, Number], + }, + $assets: { + $large_image: String, + $large_text: String, + $small_image: String, + $small_text: String, + }, + $secrets: { + $join: String, + $spectate: String, + $match: String, + }, + $instance: Boolean, + $flags: String, + + $id: String, + $sync_id: String, + $metadata: { // spotify + $context_uri: String, + album_id: String, + artist_ids: [String], + }, + $session_id: String, + }, + ], + $since: Number, // unix time (in milliseconds) of when the client went idle, or null if the client is not idle +}; + +export interface ActivitySchema { + afk: boolean; + status: Status; + activities?: Activity[]; + since?: number; // unix time (in milliseconds) of when the client went idle, or null if the client is not idle +} \ No newline at end of file diff --git a/src/util/schemas/BackupCodesChallengeSchema.ts b/src/util/schemas/BackupCodesChallengeSchema.ts new file mode 100644 index 00000000..d6b519b7 --- /dev/null +++ b/src/util/schemas/BackupCodesChallengeSchema.ts @@ -0,0 +1,3 @@ +export interface BackupCodesChallengeSchema { + password: string; +} \ No newline at end of file diff --git a/src/util/schemas/BanCreateSchema.ts b/src/util/schemas/BanCreateSchema.ts new file mode 100644 index 00000000..876b2a89 --- /dev/null +++ b/src/util/schemas/BanCreateSchema.ts @@ -0,0 +1,4 @@ +export interface BanCreateSchema { + delete_message_days?: string; + reason?: string; +}; \ No newline at end of file diff --git a/src/util/schemas/BanModeratorSchema.ts b/src/util/schemas/BanModeratorSchema.ts new file mode 100644 index 00000000..8efa2402 --- /dev/null +++ b/src/util/schemas/BanModeratorSchema.ts @@ -0,0 +1,7 @@ +export interface BanModeratorSchema { + id: string; + user_id: string; + guild_id: string; + executor_id: string; + reason?: string | undefined; +}; \ No newline at end of file diff --git a/src/util/schemas/BanRegistrySchema.ts b/src/util/schemas/BanRegistrySchema.ts new file mode 100644 index 00000000..8680d3db --- /dev/null +++ b/src/util/schemas/BanRegistrySchema.ts @@ -0,0 +1,8 @@ +export interface BanRegistrySchema { + id: string; + user_id: string; + guild_id: string; + executor_id: string; + ip?: string; + reason?: string | undefined; +}; \ No newline at end of file diff --git a/src/util/schemas/BulkDeleteSchema.ts b/src/util/schemas/BulkDeleteSchema.ts new file mode 100644 index 00000000..6a71e052 --- /dev/null +++ b/src/util/schemas/BulkDeleteSchema.ts @@ -0,0 +1,3 @@ +export interface BulkDeleteSchema { + messages: string[]; +} \ No newline at end of file diff --git a/src/util/schemas/ChannelModifySchema.ts b/src/util/schemas/ChannelModifySchema.ts new file mode 100644 index 00000000..835ea2d7 --- /dev/null +++ b/src/util/schemas/ChannelModifySchema.ts @@ -0,0 +1,30 @@ +import { ChannelPermissionOverwriteType, ChannelType } from "@fosscord/util"; + +export interface ChannelModifySchema { + /** + * @maxLength 100 + */ + name?: string; + type?: ChannelType; + topic?: string; + icon?: string | null; + bitrate?: number; + user_limit?: number; + rate_limit_per_user?: number; + position?: number; + permission_overwrites?: { + id: string; + type: ChannelPermissionOverwriteType; + allow: string; + deny: string; + }[]; + parent_id?: string; + id?: string; // is not used (only for guild create) + nsfw?: boolean; + rtc_region?: string; + default_auto_archive_duration?: number; + default_reaction_emoji?: string | null; + flags?: number; + default_thread_rate_limit_per_user?: number; + video_quality_mode?: number; +} \ No newline at end of file diff --git a/src/util/schemas/CodesVerificationSchema.ts b/src/util/schemas/CodesVerificationSchema.ts new file mode 100644 index 00000000..e8e2e7b4 --- /dev/null +++ b/src/util/schemas/CodesVerificationSchema.ts @@ -0,0 +1,5 @@ +export interface CodesVerificationSchema { + key: string; + nonce: string; + regenerate?: boolean; +} \ No newline at end of file diff --git a/src/util/schemas/DmChannelCreateSchema.ts b/src/util/schemas/DmChannelCreateSchema.ts new file mode 100644 index 00000000..04b8ff69 --- /dev/null +++ b/src/util/schemas/DmChannelCreateSchema.ts @@ -0,0 +1,4 @@ +export interface DmChannelCreateSchema { + name?: string; + recipients: string[]; +} \ No newline at end of file diff --git a/src/util/schemas/EmojiCreateSchema.ts b/src/util/schemas/EmojiCreateSchema.ts new file mode 100644 index 00000000..8e2a2307 --- /dev/null +++ b/src/util/schemas/EmojiCreateSchema.ts @@ -0,0 +1,6 @@ +export interface EmojiCreateSchema { + name?: string; + image: string; + require_colons?: boolean | null; + roles?: string[]; +} \ No newline at end of file diff --git a/src/util/schemas/EmojiModifySchema.ts b/src/util/schemas/EmojiModifySchema.ts new file mode 100644 index 00000000..cd5b7e3e --- /dev/null +++ b/src/util/schemas/EmojiModifySchema.ts @@ -0,0 +1,4 @@ +export interface EmojiModifySchema { + name?: string; + roles?: string[]; +} \ No newline at end of file diff --git a/src/util/schemas/GuildCreateSchema.ts b/src/util/schemas/GuildCreateSchema.ts new file mode 100644 index 00000000..9b5f7dc2 --- /dev/null +++ b/src/util/schemas/GuildCreateSchema.ts @@ -0,0 +1,14 @@ +import { ChannelModifySchema } from "."; + +export interface GuildCreateSchema { + /** + * @maxLength 100 + */ + name?: string; + region?: string; + icon?: string | null; + channels?: ChannelModifySchema[]; + guild_template_code?: string; + system_channel_id?: string; + rules_channel_id?: string; +} \ No newline at end of file diff --git a/src/util/schemas/GuildTemplateCreateSchema.ts b/src/util/schemas/GuildTemplateCreateSchema.ts new file mode 100644 index 00000000..7caefcb8 --- /dev/null +++ b/src/util/schemas/GuildTemplateCreateSchema.ts @@ -0,0 +1,4 @@ +export interface GuildTemplateCreateSchema { + name: string; + avatar?: string | null; +} \ No newline at end of file diff --git a/src/util/schemas/GuildUpdateWelcomeScreenSchema.ts b/src/util/schemas/GuildUpdateWelcomeScreenSchema.ts new file mode 100644 index 00000000..0022da6e --- /dev/null +++ b/src/util/schemas/GuildUpdateWelcomeScreenSchema.ts @@ -0,0 +1,10 @@ +export interface GuildUpdateWelcomeScreenSchema { + welcome_channels?: { + channel_id: string; + description: string; + emoji_id?: string; + emoji_name?: string; + }[]; + enabled?: boolean; + description?: string; +} \ No newline at end of file diff --git a/src/util/schemas/IdentifySchema.ts b/src/util/schemas/IdentifySchema.ts new file mode 100644 index 00000000..409a03da --- /dev/null +++ b/src/util/schemas/IdentifySchema.ts @@ -0,0 +1,106 @@ +import { ActivitySchema } from "@fosscord/util"; + +export const IdentifySchema = { + token: String, + $intents: BigInt, // discord uses a Integer for bitfields we use bigints tho. | instanceOf will automatically convert the Number to a BigInt + $properties: Object, + // { + // // discord uses $ in the property key for bots, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key + // $os: String, + // $os_arch: String, + // $browser: String, + // $device: String, + // $$os: String, + // $$browser: String, + // $$device: String, + // $browser_user_agent: String, + // $browser_version: String, + // $os_version: String, + // $referrer: String, + // $$referrer: String, + // $referring_domain: String, + // $$referring_domain: String, + // $referrer_current: String, + // $referring_domain_current: String, + // $release_channel: String, + // $client_build_number: Number, + // $client_event_source: String, + // $client_version: String, + // $system_locale: String, + // $window_manager: String, + // $distro: String, + // }, + $presence: ActivitySchema, + $compress: Boolean, + $large_threshold: Number, + $shard: [BigInt, BigInt], + $guild_subscriptions: Boolean, + $capabilities: Number, + $client_state: { + $guild_hashes: Object, + $highest_last_message_id: String || Number, + $read_state_version: Number, + $user_guild_settings_version: Number, + $user_settings_version: undefined, + $useruser_guild_settings_version: undefined, + }, + $clientState: { + $guildHashes: Object, + $highestLastMessageId: String || Number, + $readStateVersion: Number, + $useruserGuildSettingsVersion: undefined, + $userGuildSettingsVersion: undefined, + }, + $v: Number, + $version: Number, +}; + +export interface IdentifySchema { + token: string; + properties: { + // bruh discord really uses $ in the property key, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key + os?: string; + os_atch?: string; + browser?: string; + device?: string; + $os?: string; + $browser?: string; + $device?: string; + browser_user_agent?: string; + browser_version?: string; + os_version?: string; + referrer?: string; + referring_domain?: string; + referrer_current?: string; + referring_domain_current?: string; + release_channel?: "stable" | "dev" | "ptb" | "canary"; + client_build_number?: number; + client_event_source?: any; + client_version?: string; + system_locale?: string; + }; + intents?: bigint; // discord uses a Integer for bitfields we use bigints tho. | instanceOf will automatically convert the Number to a BigInt + presence?: ActivitySchema; + compress?: boolean; + large_threshold?: number; + largeThreshold?: number; + shard?: [bigint, bigint]; + guild_subscriptions?: boolean; + capabilities?: number; + client_state?: { + guild_hashes?: any; + highest_last_message_id?: string | number; + read_state_version?: number; + user_guild_settings_version?: number; + user_settings_version?: number; + useruser_guild_settings_version?: number; + }; + clientState?: { + guildHashes?: any; + highestLastMessageId?: string | number; + readStateVersion?: number; + userGuildSettingsVersion?: number; + useruserGuildSettingsVersion?: number; + }; + v?: number; +} diff --git a/src/util/schemas/InviteCreateSchema.ts b/src/util/schemas/InviteCreateSchema.ts new file mode 100644 index 00000000..83ae22dd --- /dev/null +++ b/src/util/schemas/InviteCreateSchema.ts @@ -0,0 +1,11 @@ +export interface InviteCreateSchema { + target_user_id?: string; + target_type?: string; + validate?: string; // ? what is this + max_age?: number; + max_uses?: number; + temporary?: boolean; + unique?: boolean; + target_user?: string; + target_user_type?: number; +} \ No newline at end of file diff --git a/src/util/schemas/LazyRequestSchema.ts b/src/util/schemas/LazyRequestSchema.ts new file mode 100644 index 00000000..e9f2df20 --- /dev/null +++ b/src/util/schemas/LazyRequestSchema.ts @@ -0,0 +1,19 @@ +export interface LazyRequestSchema { + guild_id: string; + channels?: Record; + activities?: boolean; + threads?: boolean; + typing?: true; + members?: any[]; + thread_member_lists?: any[]; +} + +export const LazyRequestSchema = { + guild_id: String, + $activities: Boolean, + $channels: Object, + $typing: Boolean, + $threads: Boolean, + $members: [] as any[], + $thread_member_lists: [] as any[], +}; diff --git a/src/util/schemas/LoginSchema.ts b/src/util/schemas/LoginSchema.ts new file mode 100644 index 00000000..543d236c --- /dev/null +++ b/src/util/schemas/LoginSchema.ts @@ -0,0 +1,8 @@ +export interface LoginSchema { + login: string; + password: string; + undelete?: boolean; + captcha_key?: string; + login_source?: string; + gift_code_sku_id?: string; +} \ No newline at end of file diff --git a/src/util/schemas/MemberChangeSchema.ts b/src/util/schemas/MemberChangeSchema.ts new file mode 100644 index 00000000..566d7e20 --- /dev/null +++ b/src/util/schemas/MemberChangeSchema.ts @@ -0,0 +1,4 @@ +export interface MemberChangeSchema { + roles?: string[]; + nick?: string; +} \ No newline at end of file diff --git a/src/util/schemas/MemberNickChangeSchema.ts b/src/util/schemas/MemberNickChangeSchema.ts new file mode 100644 index 00000000..ed9fdb7b --- /dev/null +++ b/src/util/schemas/MemberNickChangeSchema.ts @@ -0,0 +1,3 @@ +export interface MemberNickChangeSchema { + nick: string; +} \ No newline at end of file diff --git a/src/util/schemas/MessageAcknowledgeSchema.ts b/src/util/schemas/MessageAcknowledgeSchema.ts new file mode 100644 index 00000000..1e7fb80d --- /dev/null +++ b/src/util/schemas/MessageAcknowledgeSchema.ts @@ -0,0 +1,4 @@ +export interface MessageAcknowledgeSchema { + manual?: boolean; + mention_count?: number; +} \ No newline at end of file diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts new file mode 100644 index 00000000..9d77c485 --- /dev/null +++ b/src/util/schemas/MessageCreateSchema.ts @@ -0,0 +1,33 @@ +import { Embed } from "@fosscord/util"; + +export interface MessageCreateSchema { + type?: number; + content?: string; + nonce?: string; + channel_id?: string; + tts?: boolean; + flags?: string; + embeds?: Embed[]; + embed?: Embed; + // TODO: ^ embed is deprecated in favor of embeds (https://discord.com/developers/docs/resources/channel#message-object) + allowed_mentions?: { + parse?: string[]; + roles?: string[]; + users?: string[]; + replied_user?: boolean; + }; + message_reference?: { + message_id: string; + channel_id: string; + guild_id?: string; + fail_if_not_exists?: boolean; + }; + payload_json?: string; + file?: any; + /** + TODO: we should create an interface for attachments + TODO: OpenWAAO<-->attachment-style metadata conversion + **/ + attachments?: any[]; + sticker_ids?: string[]; +} \ No newline at end of file diff --git a/src/util/schemas/MfaCodesSchema.ts b/src/util/schemas/MfaCodesSchema.ts new file mode 100644 index 00000000..226c43f1 --- /dev/null +++ b/src/util/schemas/MfaCodesSchema.ts @@ -0,0 +1,4 @@ +export interface MfaCodesSchema { + password: string; + regenerate?: boolean; +} \ No newline at end of file diff --git a/src/util/schemas/ModifyGuildStickerSchema.ts b/src/util/schemas/ModifyGuildStickerSchema.ts new file mode 100644 index 00000000..06bf4ffe --- /dev/null +++ b/src/util/schemas/ModifyGuildStickerSchema.ts @@ -0,0 +1,15 @@ +export interface ModifyGuildStickerSchema { + /** + * @minLength 2 + * @maxLength 30 + */ + name: string; + /** + * @maxLength 100 + */ + description?: string; + /** + * @maxLength 200 + */ + tags: string; +} \ No newline at end of file diff --git a/src/util/schemas/PruneSchema.ts b/src/util/schemas/PruneSchema.ts new file mode 100644 index 00000000..60601d81 --- /dev/null +++ b/src/util/schemas/PruneSchema.ts @@ -0,0 +1,6 @@ +export interface PruneSchema { + /** + * @min 0 + */ + days: number; +} \ No newline at end of file diff --git a/src/util/schemas/PurgeSchema.ts b/src/util/schemas/PurgeSchema.ts new file mode 100644 index 00000000..8916be92 --- /dev/null +++ b/src/util/schemas/PurgeSchema.ts @@ -0,0 +1,4 @@ +export interface PurgeSchema { + before: string; + after: string; +} \ No newline at end of file diff --git a/src/util/schemas/RegisterSchema.ts b/src/util/schemas/RegisterSchema.ts new file mode 100644 index 00000000..c0cc3805 --- /dev/null +++ b/src/util/schemas/RegisterSchema.ts @@ -0,0 +1,27 @@ +export interface RegisterSchema { + /** + * @minLength 2 + * @maxLength 32 + */ + username: string; + /** + * @minLength 1 + * @maxLength 72 + */ + password?: string; + consent: boolean; + /** + * @TJS-format email + */ + email?: string; + fingerprint?: string; + invite?: string; + /** + * @TJS-type string + */ + date_of_birth?: Date; // "2000-04-03" + gift_code_sku_id?: string; + captcha_key?: string; + + promotional_email_opt_in?: boolean; +} \ No newline at end of file diff --git a/src/util/schemas/RelationshipPostSchema.ts b/src/util/schemas/RelationshipPostSchema.ts new file mode 100644 index 00000000..3ff6eade --- /dev/null +++ b/src/util/schemas/RelationshipPostSchema.ts @@ -0,0 +1,4 @@ +export interface RelationshipPostSchema { + discriminator: string; + username: string; +} \ No newline at end of file diff --git a/src/util/schemas/RelationshipPutSchema.ts b/src/util/schemas/RelationshipPutSchema.ts new file mode 100644 index 00000000..455f854e --- /dev/null +++ b/src/util/schemas/RelationshipPutSchema.ts @@ -0,0 +1,5 @@ +import { RelationshipType } from "@fosscord/util"; + +export interface RelationshipPutSchema { + type?: RelationshipType; +} \ No newline at end of file diff --git a/src/util/schemas/RoleModifySchema.ts b/src/util/schemas/RoleModifySchema.ts new file mode 100644 index 00000000..adb0c1a6 --- /dev/null +++ b/src/util/schemas/RoleModifySchema.ts @@ -0,0 +1,10 @@ +export interface RoleModifySchema { + name?: string; + permissions?: string; + color?: number; + hoist?: boolean; // whether the role should be displayed separately in the sidebar + mentionable?: boolean; // whether the role should be mentionable + position?: number; + icon?: string; + unicode_emoji?: string; +} \ No newline at end of file diff --git a/src/util/schemas/SelectProtocolSchema.ts b/src/util/schemas/SelectProtocolSchema.ts new file mode 100644 index 00000000..92958e97 --- /dev/null +++ b/src/util/schemas/SelectProtocolSchema.ts @@ -0,0 +1,19 @@ +export interface SelectProtocolSchema { + protocol: "webrtc" | "udp"; + data: + | string + | { + address: string; + port: number; + mode: string; + }; + sdp?: string; + codecs?: { + name: "opus" | "VP8" | "VP9" | "H264"; + type: "audio" | "video"; + priority: number; + payload_type: number; + rtx_payload_type?: number | null; + }[]; + rtc_connection_id?: string; // uuid +} \ No newline at end of file diff --git a/src/util/schemas/TemplateCreateSchema.ts b/src/util/schemas/TemplateCreateSchema.ts new file mode 100644 index 00000000..3f98f692 --- /dev/null +++ b/src/util/schemas/TemplateCreateSchema.ts @@ -0,0 +1,4 @@ +export interface TemplateCreateSchema { + name: string; + description?: string; +} \ No newline at end of file diff --git a/src/util/schemas/TemplateModifySchema.ts b/src/util/schemas/TemplateModifySchema.ts new file mode 100644 index 00000000..3e6efb74 --- /dev/null +++ b/src/util/schemas/TemplateModifySchema.ts @@ -0,0 +1,4 @@ +export interface TemplateModifySchema { + name: string; + description?: string; +} \ No newline at end of file diff --git a/src/util/schemas/TotpDisableSchema.ts b/src/util/schemas/TotpDisableSchema.ts new file mode 100644 index 00000000..05192bfa --- /dev/null +++ b/src/util/schemas/TotpDisableSchema.ts @@ -0,0 +1,3 @@ +export interface TotpDisableSchema { + code: string; +} \ No newline at end of file diff --git a/src/util/schemas/TotpEnableSchema.ts b/src/util/schemas/TotpEnableSchema.ts new file mode 100644 index 00000000..7f6fb5a9 --- /dev/null +++ b/src/util/schemas/TotpEnableSchema.ts @@ -0,0 +1,5 @@ +export interface TotpEnableSchema { + password: string; + code?: string; + secret?: string; +} \ No newline at end of file diff --git a/src/util/schemas/TotpSchema.ts b/src/util/schemas/TotpSchema.ts new file mode 100644 index 00000000..889cb443 --- /dev/null +++ b/src/util/schemas/TotpSchema.ts @@ -0,0 +1,6 @@ +export interface TotpSchema { + code: string, + ticket: string, + gift_code_sku_id?: string | null, + login_source?: string | null, +} \ No newline at end of file diff --git a/src/util/schemas/UserModifySchema.ts b/src/util/schemas/UserModifySchema.ts new file mode 100644 index 00000000..34e0f135 --- /dev/null +++ b/src/util/schemas/UserModifySchema.ts @@ -0,0 +1,19 @@ +export interface UserModifySchema { + /** + * @minLength 1 + * @maxLength 100 + */ + username?: string; + avatar?: string | null; + /** + * @maxLength 1024 + */ + bio?: string; + accent_color?: number; + banner?: string | null; + password?: string; + new_password?: string; + code?: string; + email?: string; + discriminator?: string; +} \ No newline at end of file diff --git a/src/util/schemas/VanityUrlSchema.ts b/src/util/schemas/VanityUrlSchema.ts new file mode 100644 index 00000000..28bf7f2b --- /dev/null +++ b/src/util/schemas/VanityUrlSchema.ts @@ -0,0 +1,7 @@ +export interface VanityUrlSchema { + /** + * @minLength 1 + * @maxLength 20 + */ + code?: string; +} \ No newline at end of file diff --git a/src/util/schemas/VoiceIdentifySchema.ts b/src/util/schemas/VoiceIdentifySchema.ts new file mode 100644 index 00000000..d48de347 --- /dev/null +++ b/src/util/schemas/VoiceIdentifySchema.ts @@ -0,0 +1,12 @@ +export interface VoiceIdentifySchema { + server_id: string; + user_id: string; + session_id: string; + token: string; + video?: boolean; + streams?: { + type: string; + rid: string; + quality: number; + }[]; +} \ No newline at end of file diff --git a/src/util/schemas/VoiceStateUpdateSchema.ts b/src/util/schemas/VoiceStateUpdateSchema.ts new file mode 100644 index 00000000..5f805f4d --- /dev/null +++ b/src/util/schemas/VoiceStateUpdateSchema.ts @@ -0,0 +1,22 @@ +//TODO need more testing when community guild and voice stage channel are working +export interface VoiceStateUpdateSchema { + guild_id?: string; + channel_id?: string; + self_mute: boolean; + self_deaf: boolean; + self_video?: boolean; + preferred_region?: string; + request_to_speak_timestamp?: Date; + suppress?: boolean; +} + +export const VoiceStateUpdateSchema = { + $guild_id: String, + $channel_id: String, + self_mute: Boolean, + self_deaf: Boolean, + $self_video: Boolean, //required in docs but bots don't always send it + $preferred_region: String, + $request_to_speak_timestamp: Date, + $suppress: Boolean, +}; \ No newline at end of file diff --git a/src/util/schemas/VoiceVideoSchema.ts b/src/util/schemas/VoiceVideoSchema.ts new file mode 100644 index 00000000..837ee1e7 --- /dev/null +++ b/src/util/schemas/VoiceVideoSchema.ts @@ -0,0 +1,17 @@ +export interface VoiceVideoSchema { + audio_ssrc: number; + video_ssrc: number; + rtx_ssrc?: number; + user_id?: string; + streams?: { + type: "video" | "audio"; + rid: string; + ssrc: number; + active: boolean; + quality: number; + rtx_ssrc: number; + max_bitrate: number; + max_framerate: number; + max_resolution: { type: string; width: number; height: number; }; + }[]; +} \ No newline at end of file diff --git a/src/util/schemas/WebhookCreateSchema.ts b/src/util/schemas/WebhookCreateSchema.ts new file mode 100644 index 00000000..c32b642d --- /dev/null +++ b/src/util/schemas/WebhookCreateSchema.ts @@ -0,0 +1,8 @@ +// TODO: webhooks +export interface WebhookCreateSchema { + /** + * @maxLength 80 + */ + name: string; + avatar: string; +} \ No newline at end of file diff --git a/src/util/schemas/WidgetModifySchema.ts b/src/util/schemas/WidgetModifySchema.ts new file mode 100644 index 00000000..3c84b3a1 --- /dev/null +++ b/src/util/schemas/WidgetModifySchema.ts @@ -0,0 +1,4 @@ +export interface WidgetModifySchema { + enabled: boolean; // whether the widget is enabled + channel_id: string; // the widget channel id +} \ No newline at end of file diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts index 662152dc..f86552f3 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts @@ -1,2 +1,41 @@ export * from "./Validator"; -export * from "./voice"; \ No newline at end of file +export * from "./SelectProtocolSchema"; +export * from "./LoginSchema"; +export * from "./RegisterSchema"; +export * from "./TotpSchema"; +export * from "./BackupCodesChallengeSchema"; +export * from "./ChannelModifySchema"; +export * from "./InviteCreateSchema"; +export * from "./PurgeSchema"; +export * from "./WebhookCreateSchema"; +export * from "./MessageCreateSchema"; +export * from "./MessageAcknowledgeSchema"; +export * from "./GuildCreateSchema"; +export * from "./BanCreateSchema"; +export * from "./BanModeratorSchema"; +export * from "./BanRegistrySchema"; +export * from "./EmojiCreateSchema"; +export * from "./EmojiModifySchema"; +export * from "./ModifyGuildStickerSchema"; +export * from "./TemplateCreateSchema"; +export * from "./TemplateModifySchema"; +export * from "./VanityUrlSchema"; +export * from "./GuildUpdateWelcomeScreenSchema"; +export * from "./WidgetModifySchema"; +export * from "./MemberChangeSchema"; +export * from "./RoleModifySchema"; +export * from "./GuildTemplateCreateSchema"; +export * from "./DmChannelCreateSchema"; +export * from "./UserModifySchema"; +export * from "./RelationshipPostSchema"; +export * from "./RelationshipPutSchema"; +export * from "./CodesVerificationSchema"; +export * from "./MfaCodesSchema"; +export * from "./TotpDisableSchema"; +export * from "./TotpEnableSchema"; +export * from "./VoiceIdentifySchema"; +export * from "./VoiceStateUpdateSchema"; +export * from "./VoiceVideoSchema"; +export * from "./IdentifySchema"; +export * from "./ActivitySchema"; +export * from "./LazyRequestSchema"; \ No newline at end of file diff --git a/src/util/schemas/voice.ts b/src/util/schemas/voice.ts deleted file mode 100644 index 61c12f92..00000000 --- a/src/util/schemas/voice.ts +++ /dev/null @@ -1,69 +0,0 @@ -export interface VoiceVideoSchema { - audio_ssrc: number; - video_ssrc: number; - rtx_ssrc?: number; - user_id?: string; - streams?: { - type: "video" | "audio"; - rid: string; - ssrc: number; - active: boolean; - quality: number; - rtx_ssrc: number; - max_bitrate: number; - max_framerate: number; - max_resolution: { type: string; width: number; height: number; }; - }[]; -} - -export const VoiceStateUpdateSchema = { - $guild_id: String, - $channel_id: String, - self_mute: Boolean, - self_deaf: Boolean, - self_video: Boolean -}; - -//TODO need more testing when community guild and voice stage channel are working -export interface VoiceStateUpdateSchema { - channel_id: string; - guild_id?: string; - suppress?: boolean; - request_to_speak_timestamp?: Date; - self_mute?: boolean; - self_deaf?: boolean; - self_video?: boolean; -} - -export interface VoiceIdentifySchema { - server_id: string; - user_id: string; - session_id: string; - token: string; - video?: boolean; - streams?: { - type: string; - rid: string; - quality: number; - }[]; -} - -export interface SelectProtocolSchema { - protocol: "webrtc" | "udp"; - data: - | string - | { - address: string; - port: number; - mode: string; - }; - sdp?: string; - codecs?: { - name: "opus" | "VP8" | "VP9" | "H264"; - type: "audio" | "video"; - priority: number; - payload_type: number; - rtx_payload_type?: number | null; - }[]; - rtc_connection_id?: string; // uuid -} \ No newline at end of file -- cgit 1.4.1