fix(openapi): incorrect types on some fields
This commit is contained in:
parent
d5abd1a7e4
commit
2db02ec255
@ -68463,11 +68463,25 @@
|
|||||||
"description": "The name of the application"
|
"description": "The name of the application"
|
||||||
},
|
},
|
||||||
"icon": {
|
"icon": {
|
||||||
"type": "null",
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
],
|
||||||
"description": "The icon hash of the application"
|
"description": "The icon hash of the application"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "null",
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
],
|
||||||
"description": "The description of the application"
|
"description": "The description of the application"
|
||||||
},
|
},
|
||||||
"bot_public": {
|
"bot_public": {
|
||||||
@ -77063,11 +77077,25 @@
|
|||||||
"description": "The name of the application"
|
"description": "The name of the application"
|
||||||
},
|
},
|
||||||
"icon": {
|
"icon": {
|
||||||
"type": "null",
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
],
|
||||||
"description": "The icon hash of the application"
|
"description": "The icon hash of the application"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "null",
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
],
|
||||||
"description": "The description of the application"
|
"description": "The description of the application"
|
||||||
},
|
},
|
||||||
"bot_public": {
|
"bot_public": {
|
||||||
@ -77239,7 +77267,14 @@
|
|||||||
"description": "The icon hash of the application"
|
"description": "The icon hash of the application"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "null",
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
],
|
||||||
"description": "The description of the application"
|
"description": "The description of the application"
|
||||||
},
|
},
|
||||||
"bot_public": {
|
"bot_public": {
|
||||||
@ -77585,7 +77620,14 @@
|
|||||||
"description": "The icon hash of the application"
|
"description": "The icon hash of the application"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "null",
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
],
|
||||||
"description": "The description of the application"
|
"description": "The description of the application"
|
||||||
},
|
},
|
||||||
"redirect_uris": {
|
"redirect_uris": {
|
||||||
|
|||||||
@ -267,8 +267,8 @@ export const OAuth2MeResponse = z.object({
|
|||||||
.object({
|
.object({
|
||||||
id: SnowflakeStringType.describe('The unique identifier of the application'),
|
id: SnowflakeStringType.describe('The unique identifier of the application'),
|
||||||
name: z.string().describe('The name of the application'),
|
name: z.string().describe('The name of the application'),
|
||||||
icon: z.null().describe('The icon hash of the application'),
|
icon: z.string().nullable().describe('The icon hash of the application'),
|
||||||
description: z.null().describe('The description of the application'),
|
description: z.string().nullable().describe('The description of the application'),
|
||||||
bot_public: z.boolean().describe('Whether the bot can be invited by anyone'),
|
bot_public: z.boolean().describe('Whether the bot can be invited by anyone'),
|
||||||
bot_require_code_grant: z.boolean().describe('Whether the bot requires OAuth2 code grant'),
|
bot_require_code_grant: z.boolean().describe('Whether the bot requires OAuth2 code grant'),
|
||||||
flags: createBitflagInt32Type(ApplicationFlags, 'The application flags', undefined, 'ApplicationFlags'),
|
flags: createBitflagInt32Type(ApplicationFlags, 'The application flags', undefined, 'ApplicationFlags'),
|
||||||
@ -300,7 +300,7 @@ export const ApplicationPublicResponse = z.object({
|
|||||||
id: SnowflakeStringType.describe('The unique identifier of the application'),
|
id: SnowflakeStringType.describe('The unique identifier of the application'),
|
||||||
name: z.string().describe('The name of the application'),
|
name: z.string().describe('The name of the application'),
|
||||||
icon: z.string().nullable().describe('The icon hash of the application'),
|
icon: z.string().nullable().describe('The icon hash of the application'),
|
||||||
description: z.null().describe('The description of the application'),
|
description: z.string().nullable().describe('The description of the application'),
|
||||||
redirect_uris: z.array(z.string()).max(20).describe('The registered redirect URIs for OAuth2'),
|
redirect_uris: z.array(z.string()).max(20).describe('The registered redirect URIs for OAuth2'),
|
||||||
scopes: z.array(z.string()).max(50).describe('The available OAuth2 scopes'),
|
scopes: z.array(z.string()).max(50).describe('The available OAuth2 scopes'),
|
||||||
bot_public: z.boolean().describe('Whether the bot can be invited by anyone'),
|
bot_public: z.boolean().describe('Whether the bot can be invited by anyone'),
|
||||||
@ -312,8 +312,8 @@ export type ApplicationPublicResponse = z.infer<typeof ApplicationPublicResponse
|
|||||||
export const ApplicationsMeResponse = z.object({
|
export const ApplicationsMeResponse = z.object({
|
||||||
id: SnowflakeStringType.describe('The unique identifier of the application'),
|
id: SnowflakeStringType.describe('The unique identifier of the application'),
|
||||||
name: z.string().describe('The name of the application'),
|
name: z.string().describe('The name of the application'),
|
||||||
icon: z.null().describe('The icon hash of the application'),
|
icon: z.string().nullable().describe('The icon hash of the application'),
|
||||||
description: z.null().describe('The description of the application'),
|
description: z.string().nullable().describe('The description of the application'),
|
||||||
bot_public: z.boolean().describe('Whether the bot can be invited by anyone'),
|
bot_public: z.boolean().describe('Whether the bot can be invited by anyone'),
|
||||||
bot_require_code_grant: z.boolean().describe('Whether the bot requires OAuth2 code grant'),
|
bot_require_code_grant: z.boolean().describe('Whether the bot requires OAuth2 code grant'),
|
||||||
flags: createBitflagInt32Type(ApplicationFlags, 'The application flags', undefined, 'ApplicationFlags'),
|
flags: createBitflagInt32Type(ApplicationFlags, 'The application flags', undefined, 'ApplicationFlags'),
|
||||||
@ -328,7 +328,7 @@ export const OAuth2AuthorizationResponse = z.object({
|
|||||||
id: SnowflakeStringType.describe('The unique identifier of the application'),
|
id: SnowflakeStringType.describe('The unique identifier of the application'),
|
||||||
name: z.string().describe('The name of the application'),
|
name: z.string().describe('The name of the application'),
|
||||||
icon: z.string().nullable().describe('The icon hash of the application'),
|
icon: z.string().nullable().describe('The icon hash of the application'),
|
||||||
description: z.null().describe('The description of the application'),
|
description: z.string().nullable().describe('The description of the application'),
|
||||||
bot_public: z.boolean().describe('Whether the bot can be invited by anyone'),
|
bot_public: z.boolean().describe('Whether the bot can be invited by anyone'),
|
||||||
})
|
})
|
||||||
.describe('The application that was authorized'),
|
.describe('The application that was authorized'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user