diff --git a/assets/openapi.json b/assets/openapi.json index 1344125..726022e 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -30,6 +30,1045 @@ } }, "schemas": { + "ApplicationCommandOption": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ApplicationCommandOptionType" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "required": { + "type": "boolean" + }, + "choices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationCommandOptionChoice" + } + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationCommandOption" + } + } + }, + "required": [ + "description", + "name", + "type" + ] + }, + "ApplicationCommandOptionType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8 + ] + }, + "ApplicationCommandOptionChoice": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": [ + "string", + "integer" + ] + } + }, + "required": [ + "name", + "value" + ] + }, + "ApplicationCommandIndexPermissions": { + "type": "object", + "properties": { + "user": { + "type": "boolean" + }, + "roles": { + "$ref": "#/components/schemas/Record" + }, + "channels": { + "$ref": "#/components/schemas/Record" + } + } + }, + "ApplicationIntegrationType": { + "type": "number", + "enum": [ + 0, + 1 + ] + }, + "InteractionContextType": { + "type": "number", + "enum": [ + 0, + 1, + 2 + ] + }, + "ApplicationCommandSchema": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "application_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "guild_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "name": { + "type": "string" + }, + "name_localizations": { + "$ref": "#/components/schemas/Record" + }, + "name_localized": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string" + }, + "description_localizations": { + "$ref": "#/components/schemas/Record" + }, + "description_localized": { + "type": "string", + "nullable": true + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationCommandOption" + } + }, + "default_member_permissions": { + "type": "string", + "nullable": true + }, + "dm_permission": { + "type": "boolean" + }, + "permissions": { + "$ref": "#/components/schemas/ApplicationCommandIndexPermissions" + }, + "nsfw": { + "type": "boolean" + }, + "integration_types": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationIntegrationType" + } + }, + "global_popularity_rank": { + "type": "integer" + }, + "contexts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InteractionContextType" + } + }, + "version": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "handler": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + } + }, + "required": [ + "application_id", + "default_member_permissions", + "description", + "name", + "version" + ] + }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, + "InteractionData": { + "type": "object", + "properties": { + "application_command": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadAttachmentRequestSchema" + } + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationCommandOption" + } + }, + "type": { + "type": "integer" + }, + "version": { + "type": "string" + } + }, + "required": [ + "application_command", + "attachments", + "id", + "name", + "options", + "type", + "version" + ] + }, + "UploadAttachmentRequestSchema": { + "type": "object", + "properties": { + "files": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadAttachmentRequest" + } + } + }, + "required": [ + "files" + ] + }, + "UploadAttachmentRequest": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "file_size": { + "type": "integer" + }, + "is_clip": { + "type": "boolean" + }, + "original_content_type": { + "type": "string" + } + }, + "required": [ + "file_size", + "filename" + ] + }, + "InteractionSchema": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/ApplicationCommandType" + }, + "application_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "guild_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "channel_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "message_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "message_flags": { + "type": "integer" + }, + "session_id": { + "type": "string" + }, + "data": { + "$ref": "#/components/schemas/InteractionData" + }, + "files": { + "type": "array", + "items": { + "type": "object", + "properties": {}, + "additionalProperties": true + } + }, + "nonce": { + "type": "string" + }, + "analytics_location": { + "type": "string" + }, + "section_name": { + "type": "string" + }, + "source": { + "type": "string" + } + }, + "required": [ + "application_id", + "channel_id", + "data", + "type" + ] + }, + "InteractionCallbackType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12 + ] + }, + "MessageCreateSchema": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "content": { + "type": "string" + }, + "mobile_network_type": { + "type": "string" + }, + "nonce": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "tts": { + "type": "boolean" + }, + "flags": { + "type": "integer" + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Embed" + } + }, + "embed": { + "$ref": "#/components/schemas/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": [ + "message_id" + ] + }, + "payload_json": { + "type": "string" + }, + "file": { + "type": "object", + "properties": { + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename" + ] + }, + "attachments": { + "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "uploaded_filename": { + "type": "string" + }, + "original_content_type": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "uploaded_filename" + ] + } + ] + } + }, + "sticker_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "components": { + "anyOf": [ + { + "type": "array", + "items": { + "$ref": "#/components/schemas/ActionRowComponent" + } + }, + { + "type": "null" + } + ] + }, + "poll": { + "$ref": "#/components/schemas/PollCreationSchema" + }, + "enforce_nonce": { + "type": "boolean" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "thread_name": { + "type": "string" + }, + "avatar_url": { + "type": "string" + } + } + }, + "Embed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "type": { + "enum": [ + "article", + "gifv", + "image", + "link", + "rich", + "video" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "color": { + "type": "integer" + }, + "footer": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "text" + ] + }, + "image": { + "$ref": "#/components/schemas/EmbedImage" + }, + "thumbnail": { + "$ref": "#/components/schemas/EmbedImage" + }, + "video": { + "$ref": "#/components/schemas/EmbedImage" + }, + "provider": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "inline": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + } + } + }, + "EmbedImage": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + } + } + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/ButtonComponent" + }, + { + "$ref": "#/components/schemas/SelectMenuComponent" + }, + { + "$ref": "#/components/schemas/StringSelectMenuComponent" + }, + { + "$ref": "#/components/schemas/TextInputComponent" + } + ] + } + } + }, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "const": 1 + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.Button" + }, + "style": { + "$ref": "#/components/schemas/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/components/schemas/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "const": 2 + }, + "ButtonStyle": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "const": 3 + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/components/schemas/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/components/schemas/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "const": 4 + }, + "TextInputStyle": { + "type": "number", + "enum": [ + 1, + 2 + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/components/schemas/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/components/schemas/PartialEmoji" + } + } + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/components/schemas/PollMedia" + } + }, + "required": [ + "poll_media" + ] + }, + "InteractionCallbackSchema": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/InteractionCallbackType" + }, + "data": { + "$ref": "#/components/schemas/MessageCreateSchema" + } + }, + "required": [ + "data", + "type" + ] + }, "ConnectedAccountCommonOAuthTokenResponse": { "type": "object", "properties": { @@ -4277,7 +5316,7 @@ "sending_dns_records": { "type": "array", "items": { - "$ref": "#/components/schemas/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/Domains\",{with:{\"resolution-mode\":\"import\"}}).DNSRecord" + "$ref": "#/components/schemas/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Domains/Domains\",{with:{\"resolution-mode\":\"import\"}}).DNSRecord" } } }, @@ -7800,7 +8839,7 @@ "type": "string" }, "template": { - "$ref": "#/components/schemas/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" + "$ref": "#/components/schemas/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "additionalProperties": false, @@ -7827,7 +8866,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" + "$ref": "#/components/schemas/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "paging": { @@ -7877,7 +8916,7 @@ "type": "object", "properties": { "template": { - "$ref": "#/components/schemas/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" + "$ref": "#/components/schemas/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "additionalProperties": false, @@ -7965,7 +9004,7 @@ "type": "string" }, "template": { - "$ref": "#/components/schemas/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" + "$ref": "#/components/schemas/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "additionalProperties": false, @@ -9019,7 +10058,7 @@ "type": "object", "properties": { "body": { - "$ref": "#/components/schemas/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Suppressions/Suppressions\",{with:{\"resolution-mode\":\"import\"}}).SuppressionDataType" + "$ref": "#/components/schemas/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Suppressions/Suppressions\",{with:{\"resolution-mode\":\"import\"}}).SuppressionDataType" }, "status": { "type": "integer" @@ -10487,6 +11526,132 @@ } } }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object" + }, + "SendableApplicationCommandDataSchema": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/Snowflake" + }, + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "name": { + "type": "string" + }, + "version": { + "$ref": "#/components/schemas/Snowflake" + }, + "application_command": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationCommandOption" + } + }, + "target_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/components/schemas/Snowflake" + }, + "attachments": { + "type": "array", + "items": { + "type": "object", + "properties": {}, + "additionalProperties": true + } + } + }, + "required": [ + "id", + "name", + "version" + ] + }, + "SendableMessageComponentDataSchema": { + "type": "object", + "properties": { + "component_type": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "values": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/Snowflake" + } + } + ] + } + }, + "required": [ + "custom_id" + ] + }, + "SendableModalSubmitDataSchema": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/Snowflake" + }, + "custom_id": { + "type": "string" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadAttachmentRequestSchema" + } + } + }, + "required": [ + "custom_id", + "id" + ] + }, "GameActivity": { "type": "object", "properties": { @@ -13611,15 +14776,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/components/schemas/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -14430,134 +15625,6 @@ "url" ] }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/components/schemas/EmbedImage" - }, - "thumbnail": { - "$ref": "#/components/schemas/EmbedImage" - }, - "video": { - "$ref": "#/components/schemas/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - } - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - } - }, "Reaction": { "type": "object", "properties": { @@ -14580,23 +15647,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "required": [ - "name" - ] - }, "MessageType": { "type": "number", "enum": [ @@ -14635,278 +15685,6 @@ 2 ] }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/ButtonComponent" - }, - { - "$ref": "#/components/schemas/SelectMenuComponent" - }, - { - "$ref": "#/components/schemas/StringSelectMenuComponent" - }, - { - "$ref": "#/components/schemas/TextInputComponent" - } - ] - } - } - }, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "const": 1 - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/MessageComponentType.Button" - }, - "style": { - "$ref": "#/components/schemas/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/components/schemas/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "const": 2 - }, - "ButtonStyle": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "const": 3 - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/components/schemas/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/components/schemas/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "const": 4 - }, - "TextInputStyle": { - "type": "number", - "enum": [ - 1, - 2 - ] - }, "Poll": { "type": "object", "properties": { @@ -14937,31 +15715,6 @@ "question" ] }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/components/schemas/PartialEmoji" - } - } - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/components/schemas/PollMedia" - } - }, - "required": [ - "poll_media" - ] - }, "PollResult": { "type": "object", "properties": { @@ -16447,10 +17200,6 @@ "presence_count" ] }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object" - }, "GuildWidgetSettingsResponse": { "type": "object", "properties": { @@ -20336,221 +21085,6 @@ } } }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/components/schemas/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "required": [ - "answers", - "question" - ] - }, - "MessageCreateSchema": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "content": { - "type": "string" - }, - "mobile_network_type": { - "type": "string" - }, - "nonce": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "tts": { - "type": "boolean" - }, - "flags": { - "type": "integer" - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Embed" - } - }, - "embed": { - "$ref": "#/components/schemas/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": [ - "message_id" - ] - }, - "payload_json": { - "type": "string" - }, - "file": { - "type": "object", - "properties": { - "filename": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename" - ] - }, - "attachments": { - "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", - "type": "array", - "items": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "filename": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "filename": { - "type": "string" - }, - "uploaded_filename": { - "type": "string" - }, - "original_content_type": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "uploaded_filename" - ] - } - ] - } - }, - "sticker_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "components": { - "anyOf": [ - { - "type": "array", - "items": { - "$ref": "#/components/schemas/ActionRowComponent" - } - }, - { - "type": "null" - } - ] - }, - "poll": { - "$ref": "#/components/schemas/PollCreationSchema" - }, - "enforce_nonce": { - "type": "boolean" - }, - "applied_tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "thread_name": { - "type": "string" - }, - "avatar_url": { - "type": "string" - } - } - }, "MessageEditSchema": { "type": "object", "properties": { @@ -21259,44 +21793,6 @@ "ticket" ] }, - "UploadAttachmentRequest": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "filename": { - "type": "string" - }, - "file_size": { - "type": "integer" - }, - "is_clip": { - "type": "boolean" - }, - "original_content_type": { - "type": "string" - } - }, - "required": [ - "file_size", - "filename" - ] - }, - "UploadAttachmentRequestSchema": { - "type": "object", - "properties": { - "files": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UploadAttachmentRequest" - } - } - }, - "required": [ - "files" - ] - }, "UserDeleteSchema": { "type": "object", "properties": { @@ -21899,109 +22395,10 @@ "video_ssrc" ] }, - "ApplicationCommandOption": { + "ApplicationCommandCreateSchema": { "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ApplicationCommandOptionType" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "required": { - "type": "boolean" - }, - "choices": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ApplicationCommandOptionChoice" - } - }, - "options": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ApplicationCommandOption" - } - } - }, - "required": [ - "description", - "name", - "type" - ] - }, - "ApplicationCommandOptionType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8 - ] - }, - "ApplicationCommandOptionChoice": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": [ - "string", - "integer" - ] - } - }, - "required": [ - "name", - "value" - ] - }, - "ApplicationCommandIndexPermissions": { - "type": "object", - "properties": { - "user": { - "type": "boolean" - }, - "roles": { - "$ref": "#/components/schemas/Record" - }, - "channels": { - "$ref": "#/components/schemas/Record" - } - } - }, - "ApplicationIntegrationType": { - "type": "number", - "enum": [ - 0, - 1 - ] - }, - "InteractionContextType": { - "type": "number", - "enum": [ - 0, - 1, - 2 - ] - }, - "ApplicationCommandSchema": { - "type": "object", - "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "format": "snowflake", - "type": "string" - }, - "type": { "enum": [ 1, 2, @@ -22010,36 +22407,18 @@ ], "type": "number" }, - "application_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "format": "snowflake", - "type": "string" - }, - "guild_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "format": "snowflake", - "type": "string" - }, "name": { "type": "string" }, "name_localizations": { "$ref": "#/components/schemas/Record" }, - "name_localized": { - "type": "string", - "nullable": true - }, "description": { "type": "string" }, "description_localizations": { "$ref": "#/components/schemas/Record" }, - "description_localized": { - "type": "string", - "nullable": true - }, "options": { "type": "array", "items": { @@ -22047,15 +22426,11 @@ } }, "default_member_permissions": { - "type": "string", - "nullable": true + "type": "string" }, "dm_permission": { "type": "boolean" }, - "permissions": { - "$ref": "#/components/schemas/ApplicationCommandIndexPermissions" - }, "nsfw": { "type": "boolean" }, @@ -22065,20 +22440,12 @@ "$ref": "#/components/schemas/ApplicationIntegrationType" } }, - "global_popularity_rank": { - "type": "integer" - }, "contexts": { "type": "array", "items": { "$ref": "#/components/schemas/InteractionContextType" } }, - "version": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "format": "snowflake", - "type": "string" - }, "handler": { "enum": [ 1, @@ -22089,11 +22456,7 @@ } }, "required": [ - "application_id", - "default_member_permissions", - "description", - "name", - "version" + "name" ] } } @@ -22157,6 +22520,9 @@ "name": "hub-waitlist" }, { + "name": "interactions" + }, + { "name": "invites" }, { @@ -25756,6 +26122,60 @@ ] } }, + "/interactions/": { + "post": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "default": { + "description": "No description available" + } + }, + "tags": [ + "interactions" + ] + } + }, + "/interactions/{interaction_id}/{interaction_token}/callback/": { + "post": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "interaction_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "interaction_id" + }, + { + "name": "interaction_token", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "interaction_token" + } + ], + "tags": [ + "interactions" + ] + } + }, "/hub-waitlist/signup": { "post": { "security": [ @@ -29780,6 +30200,34 @@ ] } }, + "/guilds/{guild_id}/application-command-index/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "guild_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "guild_id" + } + ], + "tags": [ + "guilds" + ] + } + }, "/guild-recommendations/": { "get": { "security": [ @@ -33162,6 +33610,350 @@ ] } }, + "/applications/{application_id}/guilds/{guild_id}/commands/permissions/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + }, + { + "name": "guild_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "guild_id" + } + ], + "tags": [ + "applications" + ] + } + }, + "/applications/{application_id}/guilds/{guild_id}/commands/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + }, + { + "name": "guild_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "guild_id" + } + ], + "tags": [ + "applications" + ] + }, + "post": { + "security": [ + { + "bearer": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApplicationCommandCreateSchema" + } + } + } + }, + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + }, + { + "name": "guild_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "guild_id" + } + ], + "tags": [ + "applications" + ] + }, + "put": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + }, + { + "name": "guild_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "guild_id" + } + ], + "tags": [ + "applications" + ] + } + }, + "/applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + }, + { + "name": "guild_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "guild_id" + }, + { + "name": "command_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "command_id" + } + ], + "tags": [ + "applications" + ] + }, + "put": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + }, + { + "name": "guild_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "guild_id" + }, + { + "name": "command_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "command_id" + } + ], + "tags": [ + "applications" + ] + } + }, + "/applications/{application_id}/guilds/{guild_id}/commands/{command_id}/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + }, + { + "name": "guild_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "guild_id" + }, + { + "name": "command_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "command_id" + } + ], + "tags": [ + "applications" + ] + }, + "patch": { + "security": [ + { + "bearer": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApplicationCommandCreateSchema" + } + } + } + }, + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + }, + { + "name": "guild_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "guild_id" + }, + { + "name": "command_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "command_id" + } + ], + "tags": [ + "applications" + ] + } + }, "/applications/{application_id}/entitlements/": { "get": { "security": [ @@ -33197,6 +33989,178 @@ ] } }, + "/applications/{application_id}/commands/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + } + ], + "tags": [ + "applications" + ] + }, + "post": { + "security": [ + { + "bearer": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApplicationCommandCreateSchema" + } + } + } + }, + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + } + ], + "tags": [ + "applications" + ] + }, + "put": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + } + ], + "tags": [ + "applications" + ] + } + }, + "/applications/{application_id}/commands/{command_id}/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + }, + { + "name": "command_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "command_id" + } + ], + "tags": [ + "applications" + ] + }, + "patch": { + "security": [ + { + "bearer": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApplicationCommandCreateSchema" + } + } + } + }, + "responses": { + "default": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "application_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "application_id" + }, + { + "name": "command_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "command_id" + } + ], + "tags": [ + "applications" + ] + } + }, "/applications/{application_id}/bot/": { "post": { "security": [ diff --git a/assets/schemas.json b/assets/schemas.json index f0abe32..495adfb 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -1,4 +1,1156 @@ { + "ApplicationCommandSchema": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "application_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "guild_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "name": { + "type": "string" + }, + "name_localizations": { + "$ref": "#/definitions/Record" + }, + "name_localized": { + "type": [ + "null", + "string" + ] + }, + "description": { + "type": "string" + }, + "description_localizations": { + "$ref": "#/definitions/Record" + }, + "description_localized": { + "type": [ + "null", + "string" + ] + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationCommandOption" + } + }, + "default_member_permissions": { + "type": [ + "null", + "string" + ] + }, + "dm_permission": { + "type": "boolean" + }, + "permissions": { + "$ref": "#/definitions/ApplicationCommandIndexPermissions" + }, + "nsfw": { + "type": "boolean" + }, + "integration_types": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationIntegrationType" + } + }, + "global_popularity_rank": { + "type": "integer" + }, + "contexts": { + "type": "array", + "items": { + "$ref": "#/definitions/InteractionContextType" + } + }, + "version": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "handler": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + } + }, + "additionalProperties": false, + "required": [ + "application_id", + "default_member_permissions", + "description", + "name", + "version" + ], + "definitions": { + "Record": { + "type": "object", + "additionalProperties": false + }, + "ApplicationCommandOption": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/ApplicationCommandOptionType" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "required": { + "type": "boolean" + }, + "choices": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationCommandOptionChoice" + } + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationCommandOption" + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "name", + "type" + ] + }, + "ApplicationCommandOptionType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8 + ] + }, + "ApplicationCommandOptionChoice": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": [ + "string", + "integer" + ] + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + }, + "ApplicationCommandIndexPermissions": { + "type": "object", + "properties": { + "user": { + "type": "boolean" + }, + "roles": { + "$ref": "#/definitions/Record" + }, + "channels": { + "$ref": "#/definitions/Record" + } + }, + "additionalProperties": false + }, + "Record": { + "type": "object", + "additionalProperties": false + }, + "ApplicationIntegrationType": { + "type": "number", + "enum": [ + 0, + 1 + ] + }, + "InteractionContextType": { + "type": "number", + "enum": [ + 0, + 1, + 2 + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionSchema": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/ApplicationCommandType" + }, + "application_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "guild_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "channel_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "message_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "format": "snowflake", + "type": "string" + }, + "message_flags": { + "type": "integer" + }, + "session_id": { + "type": "string" + }, + "data": { + "$ref": "#/definitions/InteractionData" + }, + "files": { + "type": "array", + "items": { + "type": "object", + "properties": {}, + "additionalProperties": true + } + }, + "nonce": { + "type": "string" + }, + "analytics_location": { + "type": "string" + }, + "section_name": { + "type": "string" + }, + "source": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application_id", + "channel_id", + "data", + "type" + ], + "definitions": { + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, + "InteractionData": { + "type": "object", + "properties": { + "application_command": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/UploadAttachmentRequestSchema" + } + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationCommandOption" + } + }, + "type": { + "type": "integer" + }, + "version": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application_command", + "attachments", + "id", + "name", + "options", + "type", + "version" + ] + }, + "UploadAttachmentRequestSchema": { + "type": "object", + "properties": { + "files": { + "type": "array", + "items": { + "$ref": "#/definitions/UploadAttachmentRequest" + } + } + }, + "additionalProperties": false, + "required": [ + "files" + ] + }, + "UploadAttachmentRequest": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "file_size": { + "type": "integer" + }, + "is_clip": { + "type": "boolean" + }, + "original_content_type": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "file_size", + "filename" + ] + }, + "ApplicationCommandOption": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/ApplicationCommandOptionType" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "required": { + "type": "boolean" + }, + "choices": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationCommandOptionChoice" + } + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationCommandOption" + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "name", + "type" + ] + }, + "ApplicationCommandOptionType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8 + ] + }, + "ApplicationCommandOptionChoice": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": [ + "string", + "integer" + ] + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCallbackSchema": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/InteractionCallbackType" + }, + "data": { + "$ref": "#/definitions/MessageCreateSchema" + } + }, + "additionalProperties": false, + "required": [ + "data", + "type" + ], + "definitions": { + "InteractionCallbackType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12 + ] + }, + "MessageCreateSchema": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "content": { + "type": "string" + }, + "mobile_network_type": { + "type": "string" + }, + "nonce": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "tts": { + "type": "boolean" + }, + "flags": { + "type": "integer" + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "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": [ + "message_id" + ] + }, + "payload_json": { + "type": "string" + }, + "file": { + "type": "object", + "properties": { + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename" + ] + }, + "attachments": { + "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "uploaded_filename": { + "type": "string" + }, + "original_content_type": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "uploaded_filename" + ] + } + ] + } + }, + "sticker_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "components": { + "anyOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + { + "type": "null" + } + ] + }, + "poll": { + "$ref": "#/definitions/PollCreationSchema" + }, + "enforce_nonce": { + "type": "boolean" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "thread_name": { + "type": "string" + }, + "avatar_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Embed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "type": { + "enum": [ + "article", + "gifv", + "image", + "link", + "rich", + "video" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "color": { + "type": "integer" + }, + "footer": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "text" + ] + }, + "image": { + "$ref": "#/definitions/EmbedImage" + }, + "thumbnail": { + "$ref": "#/definitions/EmbedImage" + }, + "video": { + "$ref": "#/definitions/EmbedImage" + }, + "provider": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "inline": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + } + }, + "additionalProperties": false + }, + "EmbedImage": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "const": 1 + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "const": 2 + }, + "ButtonStyle": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "const": 3 + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "const": 4 + }, + "TextInputStyle": { + "type": "number", + "enum": [ + 1, + 2 + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, "ConnectedAccountCommonOAuthTokenResponse": { "type": "object", "properties": { @@ -10485,7 +11637,7 @@ "sending_dns_records": { "type": "array", "items": { - "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/Domains\",{with:{\"resolution-mode\":\"import\"}}).DNSRecord" + "$ref": "#/definitions/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Domains/Domains\",{with:{\"resolution-mode\":\"import\"}}).DNSRecord" } } }, @@ -10506,7 +11658,7 @@ "status" ], "definitions": { - "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/Domains\",{with:{\"resolution-mode\":\"import\"}}).DNSRecord": { + "import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Domains/Domains\",{with:{\"resolution-mode\":\"import\"}}).DNSRecord": { "type": "object", "properties": { "cached": { @@ -14108,7 +15260,7 @@ "type": "string" }, "template": { - "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" + "$ref": "#/definitions/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "additionalProperties": false, @@ -14124,7 +15276,7 @@ "status" ], "definitions": { - "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate": { + "import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate": { "type": "object", "properties": { "name": { @@ -14151,7 +15303,7 @@ "type": "string" }, "version": { - "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion" + "$ref": "#/definitions/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion" }, "versions": { "type": "array", @@ -14210,7 +15362,7 @@ "name" ] }, - "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion": { + "import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion": { "additionalProperties": false, "type": "object", "properties": { @@ -14288,7 +15440,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" + "$ref": "#/definitions/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "paging": { @@ -14329,7 +15481,7 @@ "status" ], "definitions": { - "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate": { + "import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate": { "type": "object", "properties": { "name": { @@ -14356,7 +15508,7 @@ "type": "string" }, "version": { - "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion" + "$ref": "#/definitions/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion" }, "versions": { "type": "array", @@ -14415,7 +15567,7 @@ "name" ] }, - "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion": { + "import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion": { "additionalProperties": false, "type": "object", "properties": { @@ -14491,7 +15643,7 @@ "type": "object", "properties": { "template": { - "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" + "$ref": "#/definitions/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "additionalProperties": false, @@ -14506,7 +15658,7 @@ "status" ], "definitions": { - "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate": { + "import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate": { "type": "object", "properties": { "name": { @@ -14533,7 +15685,7 @@ "type": "string" }, "version": { - "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion" + "$ref": "#/definitions/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion" }, "versions": { "type": "array", @@ -14592,7 +15744,7 @@ "name" ] }, - "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion": { + "import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion": { "additionalProperties": false, "type": "object", "properties": { @@ -14736,7 +15888,7 @@ "type": "string" }, "template": { - "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" + "$ref": "#/definitions/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "additionalProperties": false, @@ -14752,7 +15904,7 @@ "status" ], "definitions": { - "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate": { + "import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate": { "type": "object", "properties": { "name": { @@ -14779,7 +15931,7 @@ "type": "string" }, "version": { - "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion" + "$ref": "#/definitions/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion" }, "versions": { "type": "array", @@ -14838,7 +15990,7 @@ "name" ] }, - "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion": { + "import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion": { "additionalProperties": false, "type": "object", "properties": { @@ -15971,7 +17123,7 @@ "type": "object", "properties": { "body": { - "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Suppressions/Suppressions\",{with:{\"resolution-mode\":\"import\"}}).SuppressionDataType" + "$ref": "#/definitions/import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Suppressions/Suppressions\",{with:{\"resolution-mode\":\"import\"}}).SuppressionDataType" }, "status": { "type": "integer" @@ -15983,7 +17135,7 @@ "status" ], "definitions": { - "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Suppressions/Suppressions\",{with:{\"resolution-mode\":\"import\"}}).SuppressionDataType": { + "import(\"/home/cyber/Dokumenty/git-projects/private/spacebar-test-station/server/node_modules/mailgun.js/Types/Types/Suppressions/Suppressions\",{with:{\"resolution-mode\":\"import\"}}).SuppressionDataType": { "anyOf": [ { "type": "object", @@ -16876,13 +18028,13 @@ "Promise": { "type": "object", "properties": { - "__@toStringTag@1273": { + "__@toStringTag@1311": { "type": "string" } }, "additionalProperties": false, "required": [ - "__@toStringTag@1273" + "__@toStringTag@1311" ] }, "Cancel": { @@ -18185,6 +19337,262 @@ "additionalProperties": false, "$schema": "http://json-schema.org/draft-07/schema#" }, + "SendableApplicationCommandDataSchema": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/Snowflake" + }, + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "name": { + "type": "string" + }, + "version": { + "$ref": "#/definitions/Snowflake" + }, + "application_command": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationCommandOption" + } + }, + "target_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "attachments": { + "type": "array", + "items": { + "type": "object", + "properties": {}, + "additionalProperties": true + } + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "version" + ], + "definitions": { + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "ApplicationCommandOption": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/ApplicationCommandOptionType" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "required": { + "type": "boolean" + }, + "choices": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationCommandOptionChoice" + } + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationCommandOption" + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "name", + "type" + ] + }, + "ApplicationCommandOptionType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8 + ] + }, + "ApplicationCommandOptionChoice": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": [ + "string", + "integer" + ] + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SendableMessageComponentDataSchema": { + "type": "object", + "properties": { + "component_type": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "values": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/Snowflake" + } + } + ] + } + }, + "additionalProperties": false, + "required": [ + "custom_id" + ], + "definitions": { + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SendableModalSubmitDataSchema": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/Snowflake" + }, + "custom_id": { + "type": "string" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/UploadAttachmentRequestSchema" + } + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "id" + ], + "definitions": { + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "UploadAttachmentRequestSchema": { + "type": "object", + "properties": { + "files": { + "type": "array", + "items": { + "$ref": "#/definitions/UploadAttachmentRequest" + } + } + }, + "additionalProperties": false, + "required": [ + "files" + ] + }, + "UploadAttachmentRequest": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "file_size": { + "type": "integer" + }, + "is_clip": { + "type": "boolean" + }, + "original_content_type": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "file_size", + "filename" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, "GuildProfileResponse": { "type": "object", "properties": { @@ -22141,15 +23549,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -23187,6 +24625,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -25915,15 +27362,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -26961,6 +28438,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -29479,15 +30965,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -30525,6 +32041,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -32035,15 +33560,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -34813,6 +36368,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -36890,15 +38454,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -37936,6 +39530,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -40542,15 +42145,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -41588,6 +43221,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -44434,15 +46076,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -45480,6 +47152,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -46286,15 +47967,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -49139,6 +50850,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -54371,15 +56091,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -55417,6 +57167,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -58465,15 +60224,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -59511,6 +61300,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -63447,15 +65245,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -64247,6 +66075,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -66766,15 +68603,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -67812,6 +69679,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -68709,15 +70585,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -71562,6 +73468,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -73683,15 +75598,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -74646,6 +76591,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -78150,15 +80104,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -78451,6 +80435,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -80603,15 +82596,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -81649,6 +83672,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -84052,15 +86084,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -84880,6 +86942,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -87790,15 +89861,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -88741,6 +90842,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -91217,15 +93327,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -92160,6 +94300,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -94603,15 +96752,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -95649,6 +97828,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -98390,15 +100578,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -99333,6 +101551,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -102365,15 +104592,45 @@ }, "name": { "type": "string" - }, - "user_id": { - "type": "string" } }, "additionalProperties": false, "required": [ "id", "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", "type", "user_id" ] @@ -103328,6 +105585,15 @@ 2 ] }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, "ActionRowComponent": { "type": "object", "properties": { @@ -109636,14 +111902,9 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationCommandSchema": { + "ApplicationCommandCreateSchema": { "type": "object", "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "format": "snowflake", - "type": "string" - }, "type": { "enum": [ 1, @@ -109653,40 +111914,18 @@ ], "type": "number" }, - "application_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "format": "snowflake", - "type": "string" - }, - "guild_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "format": "snowflake", - "type": "string" - }, "name": { "type": "string" }, "name_localizations": { "$ref": "#/definitions/Record" }, - "name_localized": { - "type": [ - "null", - "string" - ] - }, "description": { "type": "string" }, "description_localizations": { "$ref": "#/definitions/Record" }, - "description_localized": { - "type": [ - "null", - "string" - ] - }, "options": { "type": "array", "items": { @@ -109694,17 +111933,11 @@ } }, "default_member_permissions": { - "type": [ - "null", - "string" - ] + "type": "string" }, "dm_permission": { "type": "boolean" }, - "permissions": { - "$ref": "#/definitions/ApplicationCommandIndexPermissions" - }, "nsfw": { "type": "boolean" }, @@ -109714,20 +111947,12 @@ "$ref": "#/definitions/ApplicationIntegrationType" } }, - "global_popularity_rank": { - "type": "integer" - }, "contexts": { "type": "array", "items": { "$ref": "#/definitions/InteractionContextType" } }, - "version": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "format": "snowflake", - "type": "string" - }, "handler": { "enum": [ 1, @@ -109739,11 +111964,7 @@ }, "additionalProperties": false, "required": [ - "application_id", - "default_member_permissions", - "description", - "name", - "version" + "name" ], "definitions": { "Record": { @@ -109817,25 +112038,6 @@ "value" ] }, - "ApplicationCommandIndexPermissions": { - "type": "object", - "properties": { - "user": { - "type": "boolean" - }, - "roles": { - "$ref": "#/definitions/Record" - }, - "channels": { - "$ref": "#/definitions/Record" - } - }, - "additionalProperties": false - }, - "Record": { - "type": "object", - "additionalProperties": false - }, "ApplicationIntegrationType": { "type": "number", "enum": [