mirror of
https://github.com/discord/discord-api-spec.git
synced 2024-12-22 00:21:23 -05:00
Automated spec update (42459)
This commit is contained in:
parent
cf529032c3
commit
d7a01b1e55
2 changed files with 160 additions and 0 deletions
|
@ -274,6 +274,32 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/oauth2/keys": {
|
||||
"get": {
|
||||
"operationId": "get_public_keys",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "200 response for get_public_keys",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/OAuth2GetKeys"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"4XX": {
|
||||
"$ref": "#/components/responses/ClientErrorResponse"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{},
|
||||
{
|
||||
"BotToken": []
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/oauth2/@me": {
|
||||
"get": {
|
||||
"operationId": "get_my_oauth2_authorization",
|
||||
|
@ -317,6 +343,7 @@
|
|||
"guilds.members.read",
|
||||
"identify",
|
||||
"messages.read",
|
||||
"openid",
|
||||
"relationships.read",
|
||||
"role_connections.write",
|
||||
"rpc",
|
||||
|
@ -23013,6 +23040,51 @@
|
|||
"scopes"
|
||||
]
|
||||
},
|
||||
"OAuth2GetKeys": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"keys": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/OAuth2Key"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"keys"
|
||||
]
|
||||
},
|
||||
"OAuth2Key": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"kty": {
|
||||
"type": "string"
|
||||
},
|
||||
"use": {
|
||||
"type": "string"
|
||||
},
|
||||
"kid": {
|
||||
"type": "string"
|
||||
},
|
||||
"n": {
|
||||
"type": "string"
|
||||
},
|
||||
"e": {
|
||||
"type": "string"
|
||||
},
|
||||
"alg": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"kty",
|
||||
"use",
|
||||
"kid",
|
||||
"n",
|
||||
"e",
|
||||
"alg"
|
||||
]
|
||||
},
|
||||
"OAuth2Scopes": {
|
||||
"type": "string",
|
||||
"oneOf": [
|
||||
|
@ -23175,6 +23247,11 @@
|
|||
"title": "ROLE_CONNECTIONS_WRITE",
|
||||
"description": "allows your app to update a user's connection and metadata for the app",
|
||||
"const": "role_connections.write"
|
||||
},
|
||||
{
|
||||
"title": "OPENID",
|
||||
"description": "for OpenID Connect, this allows your app to receive user id and basic profile information",
|
||||
"const": "openid"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -27763,6 +27840,7 @@
|
|||
"guilds.members.read": "allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild",
|
||||
"identify": "allows /users/@me without email",
|
||||
"messages.read": "for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates)",
|
||||
"openid": "for OpenID Connect, this allows your app to receive user id and basic profile information",
|
||||
"relationships.read": "allows your app to know a user's friends and implicit relationships - requires Discord approval",
|
||||
"rpc": "for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval",
|
||||
"rpc.activities.write": "for local rpc server access, this allows you to update a user's activity - requires Discord approval",
|
||||
|
@ -27800,6 +27878,7 @@
|
|||
"guilds.members.read": "allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild",
|
||||
"identify": "allows /users/@me without email",
|
||||
"messages.read": "for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates)",
|
||||
"openid": "for OpenID Connect, this allows your app to receive user id and basic profile information",
|
||||
"relationships.read": "allows your app to know a user's friends and implicit relationships - requires Discord approval",
|
||||
"rpc": "for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval",
|
||||
"rpc.activities.write": "for local rpc server access, this allows you to update a user's activity - requires Discord approval",
|
||||
|
@ -27837,6 +27916,7 @@
|
|||
"guilds.members.read": "allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild",
|
||||
"identify": "allows /users/@me without email",
|
||||
"messages.read": "for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates)",
|
||||
"openid": "for OpenID Connect, this allows your app to receive user id and basic profile information",
|
||||
"relationships.read": "allows your app to know a user's friends and implicit relationships - requires Discord approval",
|
||||
"role_connections.write": "allows your app to update a user's connection and metadata for the app",
|
||||
"rpc": "for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval",
|
||||
|
|
|
@ -274,6 +274,32 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/oauth2/keys": {
|
||||
"get": {
|
||||
"operationId": "get_public_keys",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "200 response for get_public_keys",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/OAuth2GetKeys"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"4XX": {
|
||||
"$ref": "#/components/responses/ClientErrorResponse"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{},
|
||||
{
|
||||
"BotToken": []
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/oauth2/@me": {
|
||||
"get": {
|
||||
"operationId": "get_my_oauth2_authorization",
|
||||
|
@ -317,6 +343,7 @@
|
|||
"guilds.members.read",
|
||||
"identify",
|
||||
"messages.read",
|
||||
"openid",
|
||||
"relationships.read",
|
||||
"role_connections.write",
|
||||
"rpc",
|
||||
|
@ -23468,6 +23495,51 @@
|
|||
"scopes"
|
||||
]
|
||||
},
|
||||
"OAuth2GetKeys": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"keys": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/OAuth2Key"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"keys"
|
||||
]
|
||||
},
|
||||
"OAuth2Key": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"kty": {
|
||||
"type": "string"
|
||||
},
|
||||
"use": {
|
||||
"type": "string"
|
||||
},
|
||||
"kid": {
|
||||
"type": "string"
|
||||
},
|
||||
"n": {
|
||||
"type": "string"
|
||||
},
|
||||
"e": {
|
||||
"type": "string"
|
||||
},
|
||||
"alg": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"kty",
|
||||
"use",
|
||||
"kid",
|
||||
"n",
|
||||
"e",
|
||||
"alg"
|
||||
]
|
||||
},
|
||||
"OAuth2Scopes": {
|
||||
"type": "string",
|
||||
"oneOf": [
|
||||
|
@ -23630,6 +23702,11 @@
|
|||
"title": "ROLE_CONNECTIONS_WRITE",
|
||||
"description": "allows your app to update a user's connection and metadata for the app",
|
||||
"const": "role_connections.write"
|
||||
},
|
||||
{
|
||||
"title": "OPENID",
|
||||
"description": "for OpenID Connect, this allows your app to receive user id and basic profile information",
|
||||
"const": "openid"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -28605,6 +28682,7 @@
|
|||
"guilds.members.read": "allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild",
|
||||
"identify": "allows /users/@me without email",
|
||||
"messages.read": "for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates)",
|
||||
"openid": "for OpenID Connect, this allows your app to receive user id and basic profile information",
|
||||
"relationships.read": "allows your app to know a user's friends and implicit relationships - requires Discord approval",
|
||||
"rpc": "for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval",
|
||||
"rpc.activities.write": "for local rpc server access, this allows you to update a user's activity - requires Discord approval",
|
||||
|
@ -28642,6 +28720,7 @@
|
|||
"guilds.members.read": "allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild",
|
||||
"identify": "allows /users/@me without email",
|
||||
"messages.read": "for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates)",
|
||||
"openid": "for OpenID Connect, this allows your app to receive user id and basic profile information",
|
||||
"relationships.read": "allows your app to know a user's friends and implicit relationships - requires Discord approval",
|
||||
"rpc": "for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval",
|
||||
"rpc.activities.write": "for local rpc server access, this allows you to update a user's activity - requires Discord approval",
|
||||
|
@ -28679,6 +28758,7 @@
|
|||
"guilds.members.read": "allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild",
|
||||
"identify": "allows /users/@me without email",
|
||||
"messages.read": "for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates)",
|
||||
"openid": "for OpenID Connect, this allows your app to receive user id and basic profile information",
|
||||
"relationships.read": "allows your app to know a user's friends and implicit relationships - requires Discord approval",
|
||||
"role_connections.write": "allows your app to update a user's connection and metadata for the app",
|
||||
"rpc": "for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval",
|
||||
|
|
Loading…
Reference in a new issue