summary refs log tree commit diff
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-10-18 09:47:09 +0200
committerRory& <root@rory.gay>2025-10-18 09:52:00 +0200
commit72ac6c4c3e55d5005369bc51feb7ab806ebea04c (patch)
tree94972ef5376715edd06f327c0686bb1d11008ed0
parentchore: complete `MessageInteractionSchema` more (diff)
downloadserver-ts-72ac6c4c3e55d5005369bc51feb7ab806ebea04c.tar.xz
chore: regenerate `openapi.json` and `schemas.json`
-rw-r--r--assets/openapi.json47
-rw-r--r--assets/schemas.json217
2 files changed, 231 insertions, 33 deletions
diff --git a/assets/openapi.json b/assets/openapi.json

index d8592c32..ee4ddc96 100644 --- a/assets/openapi.json +++ b/assets/openapi.json
@@ -1058,14 +1058,49 @@ "id": { "type": "string" }, + "type": { + "$ref": "#/components/schemas/InteractionType" + }, "name": { "type": "string" }, - "type": { - "$ref": "#/components/schemas/InteractionType" + "command_type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ephemerality_reason": { + "type": "integer" }, "user": { "$ref": "#/components/schemas/PublicUser" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "original_response_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/components/schemas/Snowflake" + }, + "interacted_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/components/schemas/Snowflake" + }, + "triggering_interaction_metadata": { + "$ref": "#/components/schemas/MessageInteractionSchema" + }, + "target_user": { + "$ref": "#/components/schemas/PublicUser" + }, + "target_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/components/schemas/Snowflake" } }, "required": [ @@ -1147,6 +1182,10 @@ "username" ] }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object" + }, "InteractionCallbackSchema": { "type": "object", "properties": { @@ -11619,10 +11658,6 @@ } } }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object" - }, "SendableApplicationCommandDataSchema": { "type": "object", "properties": { diff --git a/assets/schemas.json b/assets/schemas.json
index f4e79f5c..353bdfc4 100644 --- a/assets/schemas.json +++ b/assets/schemas.json
@@ -1152,14 +1152,49 @@ "id": { "type": "string" }, + "type": { + "$ref": "#/definitions/InteractionType" + }, "name": { "type": "string" }, - "type": { - "$ref": "#/definitions/InteractionType" + "command_type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ephemerality_reason": { + "type": "integer" }, "user": { "$ref": "#/definitions/PublicUser" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "original_response_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "interacted_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "triggering_interaction_metadata": { + "$ref": "#/definitions/MessageInteractionSchema" + }, + "target_user": { + "$ref": "#/definitions/PublicUser" + }, + "target_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" } }, "additionalProperties": false, @@ -1242,6 +1277,11 @@ "public_flags", "username" ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false } }, "$schema": "http://json-schema.org/draft-07/schema#" @@ -109686,14 +109726,49 @@ "id": { "type": "string" }, + "type": { + "$ref": "#/definitions/InteractionType" + }, "name": { "type": "string" }, - "type": { - "$ref": "#/definitions/InteractionType" + "command_type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ephemerality_reason": { + "type": "integer" }, "user": { "$ref": "#/definitions/PublicUser" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "original_response_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "interacted_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "triggering_interaction_metadata": { + "$ref": "#/definitions/MessageInteractionSchema" + }, + "target_user": { + "$ref": "#/definitions/PublicUser" + }, + "target_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" } }, "additionalProperties": false, @@ -109776,6 +109851,11 @@ "public_flags", "username" ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false } }, "$schema": "http://json-schema.org/draft-07/schema#" @@ -109857,27 +109937,7 @@ "$schema": "http://json-schema.org/draft-07/schema#" }, "MessageInteractionSchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "user": { - "$ref": "#/definitions/PublicUser" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type" - ], + "$ref": "#/definitions/MessageInteractionSchema", "definitions": { "InteractionType": { "type": "number", @@ -109952,6 +110012,69 @@ "public_flags", "username" ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "MessageInteractionSchema": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "command_type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ephemerality_reason": { + "type": "integer" + }, + "user": { + "$ref": "#/definitions/PublicUser" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "original_response_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "interacted_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "triggering_interaction_metadata": { + "$ref": "#/definitions/MessageInteractionSchema" + }, + "target_user": { + "$ref": "#/definitions/PublicUser" + }, + "target_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type" + ] } }, "$schema": "http://json-schema.org/draft-07/schema#" @@ -110636,14 +110759,49 @@ "id": { "type": "string" }, + "type": { + "$ref": "#/definitions/InteractionType" + }, "name": { "type": "string" }, - "type": { - "$ref": "#/definitions/InteractionType" + "command_type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ephemerality_reason": { + "type": "integer" }, "user": { "$ref": "#/definitions/PublicUser" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "original_response_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "interacted_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "triggering_interaction_metadata": { + "$ref": "#/definitions/MessageInteractionSchema" + }, + "target_user": { + "$ref": "#/definitions/PublicUser" + }, + "target_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" } }, "additionalProperties": false, @@ -110726,6 +110884,11 @@ "public_flags", "username" ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false } }, "$schema": "http://json-schema.org/draft-07/schema#"