diff --git a/deno/rest/v10/oauth2.ts b/deno/rest/v10/oauth2.ts index 323ae312..d42021ac 100644 --- a/deno/rest/v10/oauth2.ts +++ b/deno/rest/v10/oauth2.ts @@ -40,6 +40,14 @@ export interface RESTOAuth2AuthorizationQuery { prompt?: 'consent' | 'none'; } +/** + * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-token-revocation-example + */ +export interface RESTPostOAuth2TokenRevocationQuery { + token: string; + token_type_hint?: 'access_token' | 'refresh_token'; +} + /** * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-redirect-url-example */ diff --git a/deno/rest/v9/oauth2.ts b/deno/rest/v9/oauth2.ts index 22a7c063..38bf227d 100644 --- a/deno/rest/v9/oauth2.ts +++ b/deno/rest/v9/oauth2.ts @@ -40,6 +40,14 @@ export interface RESTOAuth2AuthorizationQuery { prompt?: 'consent' | 'none'; } +/** + * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-token-revocation-example + */ +export interface RESTPostOAuth2TokenRevocationQuery { + token: string; + token_type_hint?: 'access_token' | 'refresh_token'; +} + /** * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-redirect-url-example */ diff --git a/rest/v10/oauth2.ts b/rest/v10/oauth2.ts index e84c059a..17da5ecd 100644 --- a/rest/v10/oauth2.ts +++ b/rest/v10/oauth2.ts @@ -40,6 +40,14 @@ export interface RESTOAuth2AuthorizationQuery { prompt?: 'consent' | 'none'; } +/** + * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-token-revocation-example + */ +export interface RESTPostOAuth2TokenRevocationQuery { + token: string; + token_type_hint?: 'access_token' | 'refresh_token'; +} + /** * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-redirect-url-example */ diff --git a/rest/v9/oauth2.ts b/rest/v9/oauth2.ts index 97fd983b..4c00e085 100644 --- a/rest/v9/oauth2.ts +++ b/rest/v9/oauth2.ts @@ -40,6 +40,14 @@ export interface RESTOAuth2AuthorizationQuery { prompt?: 'consent' | 'none'; } +/** + * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-token-revocation-example + */ +export interface RESTPostOAuth2TokenRevocationQuery { + token: string; + token_type_hint?: 'access_token' | 'refresh_token'; +} + /** * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-redirect-url-example */