diff --git a/specs/openapi.json b/specs/openapi.json index a169817..f302bbe 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -12327,6 +12327,154 @@ ] } }, + "/invites/{code}/target-users/bulk-add": { + "parameters": [ + { + "name": "code", + "in": "path", + "schema": { + "type": "string", + "maxLength": 152133 + }, + "required": true + } + ], + "post": { + "description": "Add multiple target users to an existing invite.", + "operationId": "bulk_add_invite_target_users", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "user_ids": { + "type": "array", + "description": "The IDs of the users to target.", + "items": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "minItems": 1, + "maxItems": 1000 + } + }, + "required": [ + "user_ids" + ] + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "204 response for bulk_add_invite_target_users", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, + "/invites/{code}/target-users/bulk-delete": { + "parameters": [ + { + "name": "code", + "in": "path", + "schema": { + "type": "string", + "maxLength": 152133 + }, + "required": true + } + ], + "post": { + "description": "Remove multiple target users from an existing invite.", + "operationId": "bulk_remove_invite_target_users", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "user_ids": { + "type": "array", + "description": "The IDs of the users to stop targeting.", + "items": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "minItems": 1, + "maxItems": 1000 + } + }, + "required": [ + "user_ids" + ] + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "204 response for bulk_remove_invite_target_users", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/invites/{code}/target-users/job-status": { "parameters": [ { @@ -12384,6 +12532,101 @@ ] } }, + "/invites/{code}/target-users/{user_id}": { + "parameters": [ + { + "name": "code", + "in": "path", + "schema": { + "type": "string", + "maxLength": 152133 + }, + "required": true + }, + { + "name": "user_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "put": { + "description": "Add a target user to an existing invite.", + "operationId": "add_invite_target_user", + "responses": { + "204": { + "description": "204 response for add_invite_target_user", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "delete": { + "description": "Remove a target user from an existing invite.", + "operationId": "remove_invite_target_user", + "responses": { + "204": { + "description": "204 response for remove_invite_target_user", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/lobbies": { "put": { "operationId": "create_or_join_lobby", diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index 471e809..9c214fc 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -12339,6 +12339,154 @@ ] } }, + "/invites/{code}/target-users/bulk-add": { + "parameters": [ + { + "name": "code", + "in": "path", + "schema": { + "type": "string", + "maxLength": 152133 + }, + "required": true + } + ], + "post": { + "description": "Add multiple target users to an existing invite.", + "operationId": "bulk_add_invite_target_users", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "user_ids": { + "type": "array", + "description": "The IDs of the users to target.", + "items": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "minItems": 1, + "maxItems": 1000 + } + }, + "required": [ + "user_ids" + ] + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "204 response for bulk_add_invite_target_users", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, + "/invites/{code}/target-users/bulk-delete": { + "parameters": [ + { + "name": "code", + "in": "path", + "schema": { + "type": "string", + "maxLength": 152133 + }, + "required": true + } + ], + "post": { + "description": "Remove multiple target users from an existing invite.", + "operationId": "bulk_remove_invite_target_users", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "user_ids": { + "type": "array", + "description": "The IDs of the users to stop targeting.", + "items": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "minItems": 1, + "maxItems": 1000 + } + }, + "required": [ + "user_ids" + ] + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "204 response for bulk_remove_invite_target_users", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/invites/{code}/target-users/job-status": { "parameters": [ { @@ -12396,6 +12544,101 @@ ] } }, + "/invites/{code}/target-users/{user_id}": { + "parameters": [ + { + "name": "code", + "in": "path", + "schema": { + "type": "string", + "maxLength": 152133 + }, + "required": true + }, + { + "name": "user_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "put": { + "description": "Add a target user to an existing invite.", + "operationId": "add_invite_target_user", + "responses": { + "204": { + "description": "204 response for add_invite_target_user", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "delete": { + "description": "Remove a target user from an existing invite.", + "operationId": "remove_invite_target_user", + "responses": { + "204": { + "description": "204 response for remove_invite_target_user", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/lobbies": { "put": { "operationId": "create_or_join_lobby",