diff --git a/specs/openapi.json b/specs/openapi.json index 4670397..5877345 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -456,6 +456,34 @@ ] } }, + "/soundboard-default-sounds": { + "get": { + "operationId": "get_soundboard_default_sounds", + "responses": { + "200": { + "description": "200 response for get_soundboard_default_sounds", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SoundboardSoundResponse" + } + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/stage-instances": { "post": { "operationId": "create_stage_instance", @@ -4930,6 +4958,166 @@ ] } }, + "/guilds/{guild_id}/soundboard-sounds/{sound_id}": { + "parameters": [ + { + "name": "guild_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "sound_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "operationId": "get_guild_soundboard_sound", + "responses": { + "200": { + "description": "200 response for get_guild_soundboard_sound", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SoundboardSoundResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "delete": { + "operationId": "delete_guild_soundboard_sound", + "responses": { + "204": { + "description": "204 response for delete_guild_soundboard_sound" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "patch": { + "operationId": "update_guild_soundboard_sound", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SoundboardPatchRequestPartial" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "200 response for update_guild_soundboard_sound", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SoundboardSoundResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, + "/guilds/{guild_id}/soundboard-sounds": { + "parameters": [ + { + "name": "guild_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "operationId": "list_guild_soundboard_sounds", + "responses": { + "200": { + "description": "200 response for list_guild_soundboard_sounds", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListGuildSoundboardSoundsResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "post": { + "operationId": "create_guild_soundboard_sound", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SoundboardCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "201 response for create_guild_soundboard_sound", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SoundboardSoundResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}": { "parameters": [ { @@ -20615,6 +20803,20 @@ } } }, + "ListGuildSoundboardSoundsResponse": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SoundboardSoundResponse" + } + } + }, + "required": [ + "items" + ] + }, "MLSpamRuleResponse": { "type": "object", "properties": { @@ -25491,6 +25693,148 @@ "pattern": "^(0|[1-9][0-9]*)$", "format": "snowflake" }, + "SoundboardCreateRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 2, + "maxLength": 32 + }, + "volume": { + "type": [ + "number", + "null" + ], + "minimum": 0, + "maximum": 1, + "format": "double" + }, + "emoji_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "emoji_name": { + "type": [ + "string", + "null" + ], + "minLength": 1, + "maxLength": 32 + }, + "sound": { + "type": "string", + "contentEncoding": "base64" + } + }, + "required": [ + "name", + "sound" + ] + }, + "SoundboardPatchRequestPartial": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 2, + "maxLength": 32 + }, + "volume": { + "type": [ + "number", + "null" + ], + "minimum": 0, + "maximum": 1, + "format": "double" + }, + "emoji_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "emoji_name": { + "type": [ + "string", + "null" + ], + "minLength": 1, + "maxLength": 32 + } + } + }, + "SoundboardSoundResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "sound_id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "volume": { + "type": "number", + "format": "double" + }, + "emoji_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "emoji_name": { + "type": [ + "string", + "null" + ] + }, + "guild_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "available": { + "type": "boolean" + }, + "user": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/UserResponse" + } + ] + } + }, + "required": [ + "name", + "sound_id", + "volume", + "available" + ] + }, "SpamLinkRuleResponse": { "type": "object", "properties": { diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index 97d299f..9c0c367 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -456,6 +456,34 @@ ] } }, + "/soundboard-default-sounds": { + "get": { + "operationId": "get_soundboard_default_sounds", + "responses": { + "200": { + "description": "200 response for get_soundboard_default_sounds", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SoundboardSoundResponse" + } + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/stage-instances": { "post": { "operationId": "create_stage_instance", @@ -4930,6 +4958,166 @@ ] } }, + "/guilds/{guild_id}/soundboard-sounds/{sound_id}": { + "parameters": [ + { + "name": "guild_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "sound_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "operationId": "get_guild_soundboard_sound", + "responses": { + "200": { + "description": "200 response for get_guild_soundboard_sound", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SoundboardSoundResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "delete": { + "operationId": "delete_guild_soundboard_sound", + "responses": { + "204": { + "description": "204 response for delete_guild_soundboard_sound" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "patch": { + "operationId": "update_guild_soundboard_sound", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SoundboardPatchRequestPartial" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "200 response for update_guild_soundboard_sound", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SoundboardSoundResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, + "/guilds/{guild_id}/soundboard-sounds": { + "parameters": [ + { + "name": "guild_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "operationId": "list_guild_soundboard_sounds", + "responses": { + "200": { + "description": "200 response for list_guild_soundboard_sounds", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListGuildSoundboardSoundsResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "post": { + "operationId": "create_guild_soundboard_sound", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SoundboardCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "201 response for create_guild_soundboard_sound", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SoundboardSoundResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}": { "parameters": [ { @@ -20945,6 +21133,20 @@ } } }, + "ListGuildSoundboardSoundsResponse": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SoundboardSoundResponse" + } + } + }, + "required": [ + "items" + ] + }, "MLSpamRuleResponse": { "type": "object", "properties": { @@ -26286,6 +26488,148 @@ "pattern": "^(0|[1-9][0-9]*)$", "format": "snowflake" }, + "SoundboardCreateRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 2, + "maxLength": 32 + }, + "volume": { + "type": [ + "number", + "null" + ], + "minimum": 0, + "maximum": 1, + "format": "double" + }, + "emoji_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "emoji_name": { + "type": [ + "string", + "null" + ], + "minLength": 1, + "maxLength": 32 + }, + "sound": { + "type": "string", + "contentEncoding": "base64" + } + }, + "required": [ + "name", + "sound" + ] + }, + "SoundboardPatchRequestPartial": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 2, + "maxLength": 32 + }, + "volume": { + "type": [ + "number", + "null" + ], + "minimum": 0, + "maximum": 1, + "format": "double" + }, + "emoji_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "emoji_name": { + "type": [ + "string", + "null" + ], + "minLength": 1, + "maxLength": 32 + } + } + }, + "SoundboardSoundResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "sound_id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "volume": { + "type": "number", + "format": "double" + }, + "emoji_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "emoji_name": { + "type": [ + "string", + "null" + ] + }, + "guild_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "available": { + "type": "boolean" + }, + "user": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/UserResponse" + } + ] + } + }, + "required": [ + "name", + "sound_id", + "volume", + "available" + ] + }, "SpamLinkRuleResponse": { "type": "object", "properties": {