diff --git a/specs/openapi.json b/specs/openapi.json index 1587da5..3b03d9a 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -2923,6 +2923,50 @@ ] } }, + "/applications/{application_id}/activity-instance/{instance_id}": { + "parameters": [ + { + "name": "application_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "instance_id", + "in": "path", + "schema": { + "type": "string", + "maxLength": 152133 + }, + "required": true + } + ], + "get": { + "operationId": "applications_get_activity_instance", + "responses": { + "200": { + "description": "200 response for applications_get_activity_instance", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmbeddedActivityInstance" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/applications/{application_id}/entitlements/{entitlement_id}": { "parameters": [ { @@ -9483,6 +9527,21 @@ "attachment" ] }, + "ActivityLocationKinds": { + "type": "string", + "oneOf": [ + { + "title": "GUILD_CHANNEL", + "description": "guild channel", + "const": "gc" + }, + { + "title": "PRIVATE_CHANNEL", + "description": "private channel", + "const": "pc" + } + ] + }, "AfkTimeouts": { "type": "integer", "oneOf": [ @@ -16202,6 +16261,45 @@ "scopes" ] }, + "EmbeddedActivityInstance": { + "type": "object", + "properties": { + "application_id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "instance_id": { + "type": "string" + }, + "launch_id": { + "type": "string" + }, + "location": { + "oneOf": [ + { + "$ref": "#/components/schemas/GuildChannelLocation" + }, + { + "$ref": "#/components/schemas/PrivateChannelLocation" + }, + { + "type": "null" + } + ] + }, + "users": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SnowflakeType" + } + } + }, + "required": [ + "application_id", + "instance_id", + "launch_id", + "users" + ] + }, "Emoji": { "type": "object", "properties": { @@ -17928,6 +18026,37 @@ "user" ] }, + "GuildChannelLocation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "kind": { + "type": "string", + "enum": [ + "gc" + ], + "allOf": [ + { + "$ref": "#/components/schemas/ActivityLocationKinds" + } + ] + }, + "channel_id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "guild_id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "id", + "kind", + "channel_id", + "guild_id" + ] + }, "GuildChannelResponse": { "type": "object", "properties": { @@ -26344,6 +26473,33 @@ "explicit_content_filter" ] }, + "PrivateChannelLocation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "kind": { + "type": "string", + "enum": [ + "pc" + ], + "allOf": [ + { + "$ref": "#/components/schemas/ActivityLocationKinds" + } + ] + }, + "channel_id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "id", + "kind", + "channel_id" + ] + }, "PrivateChannelRequestPartial": { "type": "object", "properties": { diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index ab15077..bf1428a 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -2923,6 +2923,50 @@ ] } }, + "/applications/{application_id}/activity-instance/{instance_id}": { + "parameters": [ + { + "name": "application_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "instance_id", + "in": "path", + "schema": { + "type": "string", + "maxLength": 152133 + }, + "required": true + } + ], + "get": { + "operationId": "applications_get_activity_instance", + "responses": { + "200": { + "description": "200 response for applications_get_activity_instance", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmbeddedActivityInstance" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/applications/{application_id}/entitlements/{entitlement_id}": { "parameters": [ { @@ -9483,6 +9527,21 @@ "attachment" ] }, + "ActivityLocationKinds": { + "type": "string", + "oneOf": [ + { + "title": "GUILD_CHANNEL", + "description": "guild channel", + "const": "gc" + }, + { + "title": "PRIVATE_CHANNEL", + "description": "private channel", + "const": "pc" + } + ] + }, "AfkTimeouts": { "type": "integer", "oneOf": [ @@ -16253,6 +16312,45 @@ "scopes" ] }, + "EmbeddedActivityInstance": { + "type": "object", + "properties": { + "application_id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "instance_id": { + "type": "string" + }, + "launch_id": { + "type": "string" + }, + "location": { + "oneOf": [ + { + "$ref": "#/components/schemas/GuildChannelLocation" + }, + { + "$ref": "#/components/schemas/PrivateChannelLocation" + }, + { + "type": "null" + } + ] + }, + "users": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SnowflakeType" + } + } + }, + "required": [ + "application_id", + "instance_id", + "launch_id", + "users" + ] + }, "Emoji": { "type": "object", "properties": { @@ -18009,6 +18107,37 @@ "user" ] }, + "GuildChannelLocation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "kind": { + "type": "string", + "enum": [ + "gc" + ], + "allOf": [ + { + "$ref": "#/components/schemas/ActivityLocationKinds" + } + ] + }, + "channel_id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "guild_id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "id", + "kind", + "channel_id", + "guild_id" + ] + }, "GuildChannelResponse": { "type": "object", "properties": { @@ -26456,6 +26585,33 @@ "explicit_content_filter" ] }, + "PrivateChannelLocation": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "kind": { + "type": "string", + "enum": [ + "pc" + ], + "allOf": [ + { + "$ref": "#/components/schemas/ActivityLocationKinds" + } + ] + }, + "channel_id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "id", + "kind", + "channel_id" + ] + }, "PrivateChannelRequestPartial": { "type": "object", "properties": {