Automated spec update

This commit is contained in:
Nelly (automation bot) 2023-07-15 01:46:20 +00:00
parent 3ef40998f1
commit d2a18810a5
2 changed files with 78 additions and 398 deletions

View File

@ -45,6 +45,25 @@
]
}
},
"/oauth2/token/revoke": {
"post": {
"operationId": "revoke_access_token",
"responses": {
"200": {
"description": "200 response for revoke_access_token"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/users/@me/connections": {
"get": {
"operationId": "list_my_connections",
@ -281,19 +300,31 @@
]
}
},
"/oauth2/token": {
"post": {
"operationId": "create_access_token",
"responses": {
"200": {
"description": "200 response for create_access_token"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/oauth2/@me": {
"get": {
"operationId": "get_my_oauth2_authorization",
"responses": {
"200": {
"description": "200 response for get_my_oauth2_authorization",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OAuth2GetAuthorizationResponse"
}
}
}
"description": "200 response for get_my_oauth2_authorization"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
@ -11507,163 +11538,6 @@
"permissions"
]
},
"ApplicationResponse": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "snowflake"
},
"name": {
"type": "string"
},
"icon": {
"type": [
"string",
"null"
]
},
"description": {
"type": "string"
},
"type": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ApplicationTypes"
}
]
},
"cover_image": {
"type": [
"string",
"null"
]
},
"primary_sku_id": {
"type": [
"string",
"null"
],
"format": "snowflake"
},
"bot": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/UserResponse"
}
]
},
"slug": {
"type": [
"string",
"null"
]
},
"guild_id": {
"type": [
"string",
"null"
],
"format": "snowflake"
},
"rpc_origins": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
},
"bot_public": {
"type": [
"boolean",
"null"
]
},
"bot_require_code_grant": {
"type": [
"boolean",
"null"
]
},
"terms_of_service_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"privacy_policy_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"custom_install_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"install_params": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ApplicationOAuth2ParamsResponse"
}
]
},
"verify_key": {
"type": "string"
},
"flags": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647,
"format": "int32"
},
"max_participants": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"format": "int32"
},
"tags": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"uniqueItems": true
}
},
"required": [
"id",
"name",
"description",
"verify_key",
"flags"
]
},
"ApplicationRoleConnectionsMetadataItemRequest": {
"type": "object",
"properties": {
@ -22737,40 +22611,6 @@
],
"format": "int32"
},
"OAuth2GetAuthorizationResponse": {
"type": "object",
"properties": {
"application": {
"$ref": "#/components/schemas/ApplicationResponse"
},
"expires": {
"type": "string",
"format": "date-time"
},
"scopes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OAuth2Scopes"
},
"uniqueItems": true
},
"user": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/UserResponse"
}
]
}
},
"required": [
"application",
"expires",
"scopes"
]
},
"OAuth2Scopes": {
"type": "string",
"oneOf": [

View File

@ -45,6 +45,25 @@
]
}
},
"/oauth2/token/revoke": {
"post": {
"operationId": "revoke_access_token",
"responses": {
"200": {
"description": "200 response for revoke_access_token"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/users/@me/connections": {
"get": {
"operationId": "list_my_connections",
@ -281,19 +300,31 @@
]
}
},
"/oauth2/token": {
"post": {
"operationId": "create_access_token",
"responses": {
"200": {
"description": "200 response for create_access_token"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/oauth2/@me": {
"get": {
"operationId": "get_my_oauth2_authorization",
"responses": {
"200": {
"description": "200 response for get_my_oauth2_authorization",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OAuth2GetAuthorizationResponse"
}
}
}
"description": "200 response for get_my_oauth2_authorization"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
@ -11507,163 +11538,6 @@
"permissions"
]
},
"ApplicationResponse": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "snowflake"
},
"name": {
"type": "string"
},
"icon": {
"type": [
"string",
"null"
]
},
"description": {
"type": "string"
},
"type": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ApplicationTypes"
}
]
},
"cover_image": {
"type": [
"string",
"null"
]
},
"primary_sku_id": {
"type": [
"string",
"null"
],
"format": "snowflake"
},
"bot": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/UserResponse"
}
]
},
"slug": {
"type": [
"string",
"null"
]
},
"guild_id": {
"type": [
"string",
"null"
],
"format": "snowflake"
},
"rpc_origins": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
},
"bot_public": {
"type": [
"boolean",
"null"
]
},
"bot_require_code_grant": {
"type": [
"boolean",
"null"
]
},
"terms_of_service_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"privacy_policy_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"custom_install_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"install_params": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ApplicationOAuth2ParamsResponse"
}
]
},
"verify_key": {
"type": "string"
},
"flags": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647,
"format": "int32"
},
"max_participants": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"format": "int32"
},
"tags": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"uniqueItems": true
}
},
"required": [
"id",
"name",
"description",
"verify_key",
"flags"
]
},
"ApplicationRoleConnectionsMetadataItemRequest": {
"type": "object",
"properties": {
@ -22743,40 +22617,6 @@
],
"format": "int32"
},
"OAuth2GetAuthorizationResponse": {
"type": "object",
"properties": {
"application": {
"$ref": "#/components/schemas/ApplicationResponse"
},
"expires": {
"type": "string",
"format": "date-time"
},
"scopes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OAuth2Scopes"
},
"uniqueItems": true
},
"user": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/UserResponse"
}
]
}
},
"required": [
"application",
"expires",
"scopes"
]
},
"OAuth2Scopes": {
"type": "string",
"oneOf": [