Compare commits

..

2 commits

Author SHA1 Message Date
Nelly (automation bot)
63b1e0f1ef Automated spec update (35128) 2024-03-18 21:11:14 +00:00
Nelly (automation bot)
60ead5abe3 Automated spec update (35118) 2024-03-18 20:41:55 +00:00
2 changed files with 372 additions and 18 deletions

View file

@ -12672,24 +12672,22 @@
"type": "object", "type": "object",
"properties": { "properties": {
"banned_users": { "banned_users": {
"type": [ "type": "array",
"array",
"null"
],
"items": { "items": {
"$ref": "#/components/schemas/SnowflakeType" "$ref": "#/components/schemas/SnowflakeType"
} }
}, },
"failed_users": { "failed_users": {
"type": [ "type": "array",
"array",
"null"
],
"items": { "items": {
"$ref": "#/components/schemas/SnowflakeType" "$ref": "#/components/schemas/SnowflakeType"
} }
} }
} },
"required": [
"banned_users",
"failed_users"
]
}, },
"Button": { "Button": {
"type": "object", "type": "object",

View file

@ -8986,6 +8986,28 @@
"null" "null"
] ]
}, },
"contexts": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/InteractionContextType"
},
"minItems": 1,
"uniqueItems": true
},
"integration_types": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationIntegrationType"
},
"minItems": 1,
"uniqueItems": true
},
"type": { "type": {
"oneOf": [ "oneOf": [
{ {
@ -9198,6 +9220,51 @@
"description" "description"
] ]
}, },
"ApplicationCommandInteractionMetadataResponse": {
"type": "object",
"properties": {
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"type": {
"type": "integer",
"enum": [
2
],
"allOf": [
{
"$ref": "#/components/schemas/InteractionTypes"
}
],
"format": "int32"
},
"user_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"authorizing_integration_owners": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
"original_response_message_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
}
},
"required": [
"id",
"type",
"user_id",
"authorizing_integration_owners"
]
},
"ApplicationCommandMentionableOption": { "ApplicationCommandMentionableOption": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -9846,6 +9913,28 @@
"boolean", "boolean",
"null" "null"
] ]
},
"contexts": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/InteractionContextType"
},
"minItems": 1,
"uniqueItems": true
},
"integration_types": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationIntegrationType"
},
"minItems": 1,
"uniqueItems": true
} }
} }
}, },
@ -9962,6 +10051,26 @@
"null" "null"
] ]
}, },
"contexts": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/InteractionContextType"
},
"uniqueItems": true
},
"integration_types": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationIntegrationType"
},
"uniqueItems": true
},
"options": { "options": {
"type": [ "type": [
"array", "array",
@ -10798,6 +10907,28 @@
"null" "null"
] ]
}, },
"contexts": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/InteractionContextType"
},
"minItems": 1,
"uniqueItems": true
},
"integration_types": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationIntegrationType"
},
"minItems": 1,
"uniqueItems": true
},
"type": { "type": {
"oneOf": [ "oneOf": [
{ {
@ -11070,6 +11201,24 @@
], ],
"maxLength": 2048, "maxLength": 2048,
"format": "uri" "format": "uri"
},
"integration_types_config": {
"type": [
"object",
"null"
],
"additionalProperties": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ApplicationIntegrationTypeConfiguration"
}
]
},
"minProperties": 1,
"maxProperties": 2
} }
} }
}, },
@ -11147,6 +11296,41 @@
"type" "type"
] ]
}, },
"ApplicationIntegrationType": {
"type": "integer",
"oneOf": [
{
"title": "GUILD_INSTALL",
"description": "For Guild install.",
"const": 0
},
{
"title": "USER_INSTALL",
"description": "For User install.",
"const": 1
}
],
"format": "int32"
},
"ApplicationIntegrationTypeConfiguration": {
"type": "object",
"properties": {
"oauth2_install_params": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ApplicationOAuth2InstallParams"
}
]
}
}
},
"ApplicationIntegrationTypeConfigurationResponse": {
"type": "object",
"properties": {}
},
"ApplicationOAuth2InstallParams": { "ApplicationOAuth2InstallParams": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -12551,6 +12735,22 @@
"$ref": "#/components/schemas/ResolvedObjectsResponse" "$ref": "#/components/schemas/ResolvedObjectsResponse"
} }
] ]
},
"interaction_metadata": {
"oneOf": [
{
"$ref": "#/components/schemas/ApplicationCommandInteractionMetadataResponse"
},
{
"$ref": "#/components/schemas/MessageComponentInteractionMetadataResponse"
},
{
"$ref": "#/components/schemas/ModalSubmitInteractionMetadataResponse"
},
{
"type": "null"
}
]
} }
}, },
"required": [ "required": [
@ -12672,24 +12872,22 @@
"type": "object", "type": "object",
"properties": { "properties": {
"banned_users": { "banned_users": {
"type": [ "type": "array",
"array",
"null"
],
"items": { "items": {
"$ref": "#/components/schemas/SnowflakeType" "$ref": "#/components/schemas/SnowflakeType"
} }
}, },
"failed_users": { "failed_users": {
"type": [ "type": "array",
"array",
"null"
],
"items": { "items": {
"$ref": "#/components/schemas/SnowflakeType" "$ref": "#/components/schemas/SnowflakeType"
} }
} }
} },
"required": [
"banned_users",
"failed_users"
]
}, },
"Button": { "Button": {
"type": "object", "type": "object",
@ -19567,6 +19765,27 @@
], ],
"format": "int32" "format": "int32"
}, },
"InteractionContextType": {
"type": "integer",
"oneOf": [
{
"title": "GUILD",
"description": "This command can be used within a Guild.",
"const": 0
},
{
"title": "BOT_DM",
"description": "This command can be used within a DM with this application's bot.",
"const": 1
},
{
"title": "PRIVATE_CHANNEL",
"description": "This command can be used within DMs and Group DMs with users.",
"const": 2
}
],
"format": "int32"
},
"InteractionTypes": { "InteractionTypes": {
"type": "integer", "type": "integer",
"oneOf": [ "oneOf": [
@ -21401,6 +21620,55 @@
"style" "style"
] ]
}, },
"MessageComponentInteractionMetadataResponse": {
"type": "object",
"properties": {
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"type": {
"type": "integer",
"enum": [
3
],
"allOf": [
{
"$ref": "#/components/schemas/InteractionTypes"
}
],
"format": "int32"
},
"user_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"authorizing_integration_owners": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
"original_response_message_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"interacted_message_id": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
"required": [
"id",
"type",
"user_id",
"authorizing_integration_owners",
"interacted_message_id"
]
},
"MessageComponentMentionableSelectResponse": { "MessageComponentMentionableSelectResponse": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -22634,6 +22902,22 @@
} }
] ]
}, },
"interaction_metadata": {
"oneOf": [
{
"$ref": "#/components/schemas/ApplicationCommandInteractionMetadataResponse"
},
{
"$ref": "#/components/schemas/MessageComponentInteractionMetadataResponse"
},
{
"$ref": "#/components/schemas/ModalSubmitInteractionMetadataResponse"
},
{
"type": "null"
}
]
},
"reactions": { "reactions": {
"type": [ "type": [
"array", "array",
@ -22979,6 +23263,62 @@
"data" "data"
] ]
}, },
"ModalSubmitInteractionMetadataResponse": {
"type": "object",
"properties": {
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"type": {
"type": "integer",
"enum": [
5
],
"allOf": [
{
"$ref": "#/components/schemas/InteractionTypes"
}
],
"format": "int32"
},
"user_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"authorizing_integration_owners": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
"original_response_message_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"triggering_interaction_metadata": {
"oneOf": [
{
"$ref": "#/components/schemas/ApplicationCommandInteractionMetadataResponse"
},
{
"$ref": "#/components/schemas/MessageComponentInteractionMetadataResponse"
}
]
}
},
"required": [
"id",
"type",
"user_id",
"authorizing_integration_owners",
"triggering_interaction_metadata"
]
},
"MyGuildResponse": { "MyGuildResponse": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -23836,6 +24176,22 @@
"$ref": "#/components/schemas/TeamResponse" "$ref": "#/components/schemas/TeamResponse"
} }
] ]
},
"integration_types_config": {
"type": [
"object",
"null"
],
"additionalProperties": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ApplicationIntegrationTypeConfigurationResponse"
}
]
}
} }
}, },
"required": [ "required": [