From 4dba545ab7e0f538c6f57be424e207b4daeebe2e Mon Sep 17 00:00:00 2001 From: Adversary Date: Wed, 20 Aug 2025 02:10:01 +0000 Subject: [PATCH] main - Automated spec update (140130) made at remote:2025-08-20T01:57:22 taken at now:2025-08-20T02:10:01 made by remote Nelly (automation bot) <> --- specs/openapi.json | 82 +++++++++++++++++++++++++++++++++++++- specs/openapi_preview.json | 82 +++++++++++++++++++++++++++++++++++++- 2 files changed, 160 insertions(+), 4 deletions(-) diff --git a/specs/openapi.json b/specs/openapi.json index f9cf5a5..14b603d 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -21845,12 +21845,16 @@ "base_mix": { "type": "integer", "format": "int32" + }, + "base_theme": { + "$ref": "#/components/schemas/MessageShareCustomUserThemeBaseTheme" } }, "required": [ "colors", "gradient_angle", - "base_mix" + "base_mix", + "base_theme" ] }, "CustomClientThemeShareRequest": { @@ -21877,6 +21881,16 @@ "minimum": 0, "maximum": 100, "format": "int32" + }, + "base_theme": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/MessageShareCustomUserThemeBaseTheme" + } + ] } }, "required": [ @@ -30802,6 +30816,37 @@ "is_renewal" ] }, + "MessageShareCustomUserThemeBaseTheme": { + "type": "integer", + "oneOf": [ + { + "title": "UNSET", + "description": "No base theme", + "const": 0 + }, + { + "title": "DARK", + "description": "Dark base theme", + "const": 1 + }, + { + "title": "LIGHT", + "description": "Light base theme", + "const": 2 + }, + { + "title": "DARKER", + "description": "Darker base theme", + "const": 3 + }, + { + "title": "MIDNIGHT", + "description": "Midnight base theme", + "const": 4 + } + ], + "format": "int32" + }, "MessageSnapshotResponse": { "type": "object", "properties": { @@ -31236,7 +31281,14 @@ "components": { "type": "array", "items": { - "$ref": "#/components/schemas/ActionRowComponentForModalRequest" + "oneOf": [ + { + "$ref": "#/components/schemas/ActionRowComponentForModalRequest" + }, + { + "$ref": "#/components/schemas/TextDisplayComponentForModalRequest" + } + ] }, "minItems": 1, "maxItems": 40 @@ -35352,6 +35404,32 @@ "content" ] }, + "TextDisplayComponentForModalRequest": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 10 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "content": { + "type": "string", + "minLength": 1, + "maxLength": 4000 + } + }, + "required": [ + "type", + "content" + ] + }, "TextDisplayComponentResponse": { "type": "object", "properties": { diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index eaa2ef6..0dee25b 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -22275,12 +22275,16 @@ "base_mix": { "type": "integer", "format": "int32" + }, + "base_theme": { + "$ref": "#/components/schemas/MessageShareCustomUserThemeBaseTheme" } }, "required": [ "colors", "gradient_angle", - "base_mix" + "base_mix", + "base_theme" ] }, "CustomClientThemeShareRequest": { @@ -22307,6 +22311,16 @@ "minimum": 0, "maximum": 100, "format": "int32" + }, + "base_theme": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/MessageShareCustomUserThemeBaseTheme" + } + ] } }, "required": [ @@ -31409,6 +31423,37 @@ "is_renewal" ] }, + "MessageShareCustomUserThemeBaseTheme": { + "type": "integer", + "oneOf": [ + { + "title": "UNSET", + "description": "No base theme", + "const": 0 + }, + { + "title": "DARK", + "description": "Dark base theme", + "const": 1 + }, + { + "title": "LIGHT", + "description": "Light base theme", + "const": 2 + }, + { + "title": "DARKER", + "description": "Darker base theme", + "const": 3 + }, + { + "title": "MIDNIGHT", + "description": "Midnight base theme", + "const": 4 + } + ], + "format": "int32" + }, "MessageSnapshotResponse": { "type": "object", "properties": { @@ -31843,7 +31888,14 @@ "components": { "type": "array", "items": { - "$ref": "#/components/schemas/ActionRowComponentForModalRequest" + "oneOf": [ + { + "$ref": "#/components/schemas/ActionRowComponentForModalRequest" + }, + { + "$ref": "#/components/schemas/TextDisplayComponentForModalRequest" + } + ] }, "minItems": 1, "maxItems": 40 @@ -36788,6 +36840,32 @@ "content" ] }, + "TextDisplayComponentForModalRequest": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 10 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "content": { + "type": "string", + "minLength": 1, + "maxLength": 4000 + } + }, + "required": [ + "type", + "content" + ] + }, "TextDisplayComponentResponse": { "type": "object", "properties": {