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": { "/users/@me/connections": {
"get": { "get": {
"operationId": "list_my_connections", "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": { "/oauth2/@me": {
"get": { "get": {
"operationId": "get_my_oauth2_authorization", "operationId": "get_my_oauth2_authorization",
"responses": { "responses": {
"200": { "200": {
"description": "200 response for get_my_oauth2_authorization", "description": "200 response for get_my_oauth2_authorization"
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OAuth2GetAuthorizationResponse"
}
}
}
}, },
"4XX": { "4XX": {
"$ref": "#/components/responses/ClientErrorResponse" "$ref": "#/components/responses/ClientErrorResponse"
@ -11507,163 +11538,6 @@
"permissions" "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": { "ApplicationRoleConnectionsMetadataItemRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -22737,40 +22611,6 @@
], ],
"format": "int32" "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": { "OAuth2Scopes": {
"type": "string", "type": "string",
"oneOf": [ "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": { "/users/@me/connections": {
"get": { "get": {
"operationId": "list_my_connections", "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": { "/oauth2/@me": {
"get": { "get": {
"operationId": "get_my_oauth2_authorization", "operationId": "get_my_oauth2_authorization",
"responses": { "responses": {
"200": { "200": {
"description": "200 response for get_my_oauth2_authorization", "description": "200 response for get_my_oauth2_authorization"
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OAuth2GetAuthorizationResponse"
}
}
}
}, },
"4XX": { "4XX": {
"$ref": "#/components/responses/ClientErrorResponse" "$ref": "#/components/responses/ClientErrorResponse"
@ -11507,163 +11538,6 @@
"permissions" "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": { "ApplicationRoleConnectionsMetadataItemRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -22743,40 +22617,6 @@
], ],
"format": "int32" "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": { "OAuth2Scopes": {
"type": "string", "type": "string",
"oneOf": [ "oneOf": [