From 773c5207d0c56a17ea2f21f220e58ba540f60da9 Mon Sep 17 00:00:00 2001 From: "Nelly (automation bot)" <> Date: Wed, 26 Jul 2023 18:16:19 +0000 Subject: [PATCH] Automated spec update --- specs/openapi.json | 211 +++++++++++++++++++++++++++++++++++- specs/openapi_preview.json | 215 ++++++++++++++++++++++++++++++++++++- 2 files changed, 424 insertions(+), 2 deletions(-) diff --git a/specs/openapi.json b/specs/openapi.json index e1eb812..6375ba4 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -50,7 +50,20 @@ "operationId": "list_my_connections", "responses": { "200": { - "description": "200 response for list_my_connections" + "description": "200 response for list_my_connections", + "content": { + "application/json": { + "schema": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ConnectedAccountResponse" + } + } + } + } }, "4XX": { "$ref": "#/components/responses/ClientErrorResponse" @@ -13381,6 +13394,202 @@ "permissions" ] }, + "ConnectedAccountGuildResponse": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "snowflake" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "id", + "name" + ] + }, + "ConnectedAccountIntegrationResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/IntegrationTypes" + }, + "account": { + "$ref": "#/components/schemas/AccountResponse" + }, + "guild": { + "$ref": "#/components/schemas/ConnectedAccountGuildResponse" + } + }, + "required": [ + "id", + "type", + "account", + "guild" + ] + }, + "ConnectedAccountProviders": { + "type": "string", + "oneOf": [ + { + "title": "BATTLENET", + "const": "battlenet" + }, + { + "title": "EBAY", + "const": "ebay" + }, + { + "title": "EPIC_GAMES", + "const": "epicgames" + }, + { + "title": "FACEBOOK", + "const": "facebook" + }, + { + "title": "GITHUB", + "const": "github" + }, + { + "title": "INSTAGRAM", + "const": "instagram" + }, + { + "title": "LEAGUE_OF_LEGENDS", + "const": "leagueoflegends" + }, + { + "title": "PAYPAL", + "const": "paypal" + }, + { + "title": "PLAYSTATION", + "const": "playstation" + }, + { + "title": "REDDIT", + "const": "reddit" + }, + { + "title": "RIOT_GAMES", + "const": "riotgames" + }, + { + "title": "SKYPE", + "const": "skype" + }, + { + "title": "SPOTIFY", + "const": "spotify" + }, + { + "title": "STEAM", + "const": "steam" + }, + { + "title": "TIKTOK", + "const": "tiktok" + }, + { + "title": "TWITCH", + "const": "twitch" + }, + { + "title": "TWITTER", + "const": "twitter" + }, + { + "title": "XBOX", + "const": "xbox" + }, + { + "title": "YOUTUBE", + "const": "youtube" + } + ] + }, + "ConnectedAccountResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": [ + "string", + "null" + ] + }, + "type": { + "$ref": "#/components/schemas/ConnectedAccountProviders" + }, + "friend_sync": { + "type": "boolean" + }, + "integrations": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ConnectedAccountIntegrationResponse" + } + }, + "show_activity": { + "type": "boolean" + }, + "two_way_link": { + "type": "boolean" + }, + "verified": { + "type": "boolean" + }, + "visibility": { + "$ref": "#/components/schemas/ConnectedAccountVisibility" + }, + "revoked": { + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "id", + "type", + "friend_sync", + "show_activity", + "two_way_link", + "verified", + "visibility" + ] + }, + "ConnectedAccountVisibility": { + "type": "integer", + "oneOf": [ + { + "title": "NONE", + "const": 0 + }, + { + "title": "EVERYONE", + "const": 1 + } + ], + "format": "int32" + }, "CreateGroupDMInviteRequest": { "type": "object", "properties": { diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index 1806757..ac570e8 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -50,7 +50,20 @@ "operationId": "list_my_connections", "responses": { "200": { - "description": "200 response for list_my_connections" + "description": "200 response for list_my_connections", + "content": { + "application/json": { + "schema": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ConnectedAccountResponse" + } + } + } + } }, "4XX": { "$ref": "#/components/responses/ClientErrorResponse" @@ -13381,6 +13394,206 @@ "permissions" ] }, + "ConnectedAccountGuildResponse": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "snowflake" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "id", + "name" + ] + }, + "ConnectedAccountIntegrationResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/IntegrationTypes" + }, + "account": { + "$ref": "#/components/schemas/AccountResponse" + }, + "guild": { + "$ref": "#/components/schemas/ConnectedAccountGuildResponse" + } + }, + "required": [ + "id", + "type", + "account", + "guild" + ] + }, + "ConnectedAccountProviders": { + "type": "string", + "oneOf": [ + { + "title": "BATTLENET", + "const": "battlenet" + }, + { + "title": "EBAY", + "const": "ebay" + }, + { + "title": "EPIC_GAMES", + "const": "epicgames" + }, + { + "title": "FACEBOOK", + "const": "facebook" + }, + { + "title": "GITHUB", + "const": "github" + }, + { + "title": "INSTAGRAM", + "const": "instagram" + }, + { + "title": "LEAGUE_OF_LEGENDS", + "const": "leagueoflegends" + }, + { + "title": "PAYPAL", + "const": "paypal" + }, + { + "title": "PLAYSTATION", + "const": "playstation" + }, + { + "title": "REDDIT", + "const": "reddit" + }, + { + "title": "RIOT_GAMES", + "const": "riotgames" + }, + { + "title": "SKYPE", + "const": "skype" + }, + { + "title": "SPOTIFY", + "const": "spotify" + }, + { + "title": "STEAM", + "const": "steam" + }, + { + "title": "TIKTOK", + "const": "tiktok" + }, + { + "title": "TWITCH", + "const": "twitch" + }, + { + "title": "TWITTER", + "const": "twitter" + }, + { + "title": "XBOX", + "const": "xbox" + }, + { + "title": "YOUTUBE", + "const": "youtube" + }, + { + "title": "DOMAIN", + "const": "domain" + } + ] + }, + "ConnectedAccountResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": [ + "string", + "null" + ] + }, + "type": { + "$ref": "#/components/schemas/ConnectedAccountProviders" + }, + "friend_sync": { + "type": "boolean" + }, + "integrations": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ConnectedAccountIntegrationResponse" + } + }, + "show_activity": { + "type": "boolean" + }, + "two_way_link": { + "type": "boolean" + }, + "verified": { + "type": "boolean" + }, + "visibility": { + "$ref": "#/components/schemas/ConnectedAccountVisibility" + }, + "revoked": { + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "id", + "type", + "friend_sync", + "show_activity", + "two_way_link", + "verified", + "visibility" + ] + }, + "ConnectedAccountVisibility": { + "type": "integer", + "oneOf": [ + { + "title": "NONE", + "const": 0 + }, + { + "title": "EVERYONE", + "const": 1 + } + ], + "format": "int32" + }, "CreateGroupDMInviteRequest": { "type": "object", "properties": {