add notification_settings
object to ready
This commit is contained in:
parent
2028b25902
commit
939d1bd8d5
@ -61,209 +61,110 @@
|
|||||||
"read_states"
|
"read_states"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"ConnectedAccountCommonOAuthTokenResponse": {
|
"DiagnosticsChannel.Response": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"access_token": {
|
"statusCode": {
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"token_type": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"scope": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"refresh_token": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"expires_in": {
|
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"required": [
|
"statusText": {
|
||||||
"access_token",
|
|
||||||
"scope",
|
|
||||||
"token_type"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"ApplicationAuthorizeSchema": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"authorize": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"guild_id": {
|
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"permissions": {
|
"headers": {
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"captcha_key": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"code": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"authorize",
|
|
||||||
"guild_id",
|
|
||||||
"permissions"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"ApplicationCreateSchema": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"name": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"team_id": {
|
|
||||||
"type": [
|
|
||||||
"string",
|
|
||||||
"integer"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"name"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"ApplicationModifySchema": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"description": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"icon": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"interactions_endpoint_url": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"max_participants": {
|
|
||||||
"type": "integer",
|
|
||||||
"nullable": true
|
|
||||||
},
|
|
||||||
"name": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"privacy_policy_url": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"role_connections_verification_url": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"tags": {
|
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "object",
|
||||||
}
|
"additionalProperties": false,
|
||||||
},
|
"patternProperties": {
|
||||||
"terms_of_service_url": {
|
"^[0-9]+$": {
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"bot_public": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"bot_require_code_grant": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"flags": {
|
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"BackupCodesChallengeSchema": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"password": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"password"
|
"headers",
|
||||||
|
"statusCode",
|
||||||
|
"statusText"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"BanCreateSchema": {
|
"Headers": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"delete_message_seconds": {
|
"append": {
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"delete_message_days": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"reason": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"BanModeratorSchema": {
|
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"additionalProperties": false
|
||||||
"id": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
},
|
||||||
"user_id": {
|
"delete": {
|
||||||
"type": "string"
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"guild_id": {
|
"get": {
|
||||||
"type": "string"
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"executor_id": {
|
"has": {
|
||||||
"type": "string"
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"reason": {
|
"set": {
|
||||||
"type": "string"
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"getSetCookie": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"forEach": {
|
||||||
|
"description": "Performs the specified action for each element in an array.",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"keys": {
|
||||||
|
"description": "Returns an array consisting of the keys of the object",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"values": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"entries": {
|
||||||
|
"description": "Returns an array consisting of the key value pairs of the object",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"__@iterator": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"executor_id",
|
"__@iterator",
|
||||||
"guild_id",
|
"append",
|
||||||
"id",
|
"delete",
|
||||||
"user_id"
|
"entries",
|
||||||
|
"forEach",
|
||||||
|
"get",
|
||||||
|
"getSetCookie",
|
||||||
|
"has",
|
||||||
|
"keys",
|
||||||
|
"set",
|
||||||
|
"values"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"BanRegistrySchema": {
|
"ResponseType": {
|
||||||
"type": "object",
|
"enum": [
|
||||||
"properties": {
|
"basic",
|
||||||
"id": {
|
"cors",
|
||||||
|
"default",
|
||||||
|
"error",
|
||||||
|
"opaque",
|
||||||
|
"opaqueredirect"
|
||||||
|
],
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"user_id": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"guild_id": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"executor_id": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"ip": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"reason": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"executor_id",
|
|
||||||
"guild_id",
|
|
||||||
"id",
|
|
||||||
"user_id"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"BotModifySchema": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"avatar": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"username": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ChannelPermissionOverwriteType": {
|
"ChannelPermissionOverwriteType": {
|
||||||
"enum": [
|
"enum": [
|
||||||
0,
|
0,
|
||||||
@ -2247,6 +2148,7 @@
|
|||||||
"required": [
|
"required": [
|
||||||
"channel",
|
"channel",
|
||||||
"embeds",
|
"embeds",
|
||||||
|
"flags",
|
||||||
"id",
|
"id",
|
||||||
"mention_channels",
|
"mention_channels",
|
||||||
"mention_roles",
|
"mention_roles",
|
||||||
@ -3641,14 +3543,14 @@
|
|||||||
"APIGuild": {
|
"APIGuild": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"reload": {
|
"reload": {
|
||||||
"description": "Reloads entity data from the database.",
|
"description": "Reloads entity data from the database.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"id": {
|
"id": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
@ -4361,6 +4263,372 @@
|
|||||||
"webauthn"
|
"webauthn"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"_Response": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"headers": {
|
||||||
|
"$ref": "#/components/schemas/Headers"
|
||||||
|
},
|
||||||
|
"ok": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"statusText": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"$ref": "#/components/schemas/ResponseType"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"redirected": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"body": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/ReadableStream<any>"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"bodyUsed": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"arrayBuffer": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"blob": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"formData": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"json": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"text": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"clone": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"arrayBuffer",
|
||||||
|
"blob",
|
||||||
|
"body",
|
||||||
|
"bodyUsed",
|
||||||
|
"clone",
|
||||||
|
"formData",
|
||||||
|
"headers",
|
||||||
|
"json",
|
||||||
|
"ok",
|
||||||
|
"redirected",
|
||||||
|
"status",
|
||||||
|
"statusText",
|
||||||
|
"text",
|
||||||
|
"type",
|
||||||
|
"url"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"global.Response": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"headers": {
|
||||||
|
"$ref": "#/components/schemas/Headers"
|
||||||
|
},
|
||||||
|
"ok": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"statusText": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"$ref": "#/components/schemas/ResponseType"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"redirected": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"body": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/ReadableStream<any>"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"bodyUsed": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"arrayBuffer": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"blob": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"formData": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"json": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"text": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"clone": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"arrayBuffer",
|
||||||
|
"blob",
|
||||||
|
"body",
|
||||||
|
"bodyUsed",
|
||||||
|
"clone",
|
||||||
|
"formData",
|
||||||
|
"headers",
|
||||||
|
"json",
|
||||||
|
"ok",
|
||||||
|
"redirected",
|
||||||
|
"status",
|
||||||
|
"statusText",
|
||||||
|
"text",
|
||||||
|
"type",
|
||||||
|
"url"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ConnectedAccountCommonOAuthTokenResponse": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"access_token": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"token_type": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"scope": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"refresh_token": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"expires_in": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"access_token",
|
||||||
|
"scope",
|
||||||
|
"token_type"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ExpressResponse": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"ApplicationAuthorizeSchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"authorize": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"guild_id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"permissions": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"captcha_key": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"code": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"authorize",
|
||||||
|
"guild_id",
|
||||||
|
"permissions"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ApplicationCreateSchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"team_id": {
|
||||||
|
"type": [
|
||||||
|
"string",
|
||||||
|
"integer"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ApplicationModifySchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"interactions_endpoint_url": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"max_participants": {
|
||||||
|
"type": "integer",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"privacy_policy_url": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"role_connections_verification_url": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"tags": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"terms_of_service_url": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"bot_public": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"bot_require_code_grant": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"flags": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"BackupCodesChallengeSchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"password": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"password"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"BanCreateSchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"delete_message_seconds": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"delete_message_days": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"BanModeratorSchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"user_id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"guild_id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"executor_id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"executor_id",
|
||||||
|
"guild_id",
|
||||||
|
"id",
|
||||||
|
"user_id"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"BanRegistrySchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"user_id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"guild_id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"executor_id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ip": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"executor_id",
|
||||||
|
"guild_id",
|
||||||
|
"id",
|
||||||
|
"user_id"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"BotModifySchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"avatar": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"username": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"ChannelPermissionOverwriteSchema": {
|
"ChannelPermissionOverwriteSchema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -5218,6 +5486,9 @@
|
|||||||
"MessageEditSchema": {
|
"MessageEditSchema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"embed": {
|
||||||
|
"$ref": "#/components/schemas/Embed"
|
||||||
|
},
|
||||||
"file": {
|
"file": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -5230,12 +5501,29 @@
|
|||||||
"filename"
|
"filename"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"embed": {
|
|
||||||
"$ref": "#/components/schemas/Embed"
|
|
||||||
},
|
|
||||||
"flags": {
|
"flags": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
"attachments": {
|
||||||
|
"description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"filename": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"filename",
|
||||||
|
"id"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"content": {
|
"content": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
@ -5309,26 +5597,6 @@
|
|||||||
"payload_json": {
|
"payload_json": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"attachments": {
|
|
||||||
"description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"id": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"filename": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"filename",
|
|
||||||
"id"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"sticker_ids": {
|
"sticker_ids": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
@ -10230,6 +10498,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "client_id",
|
||||||
|
"in": "query",
|
||||||
|
"schema": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"oauth2"
|
"oauth2"
|
||||||
]
|
]
|
||||||
@ -10306,6 +10583,30 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/oauth2/applications/@me/": {
|
||||||
|
"get": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"bearer": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/Application"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"oauth2"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"/invites/{code}": {
|
"/invites/{code}": {
|
||||||
"get": {
|
"get": {
|
||||||
"security": [
|
"security": [
|
||||||
@ -13935,71 +14236,6 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/guilds/{guild_id}/bans/@me": {
|
|
||||||
"put": {
|
|
||||||
"security": [
|
|
||||||
{
|
|
||||||
"bearer": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"requestBody": {
|
|
||||||
"required": true,
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/BanCreateSchema"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "",
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/Ban"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"400": {
|
|
||||||
"description": "",
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/APIErrorResponse"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"403": {
|
|
||||||
"description": "",
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/APIErrorResponse"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"name": "guild_id",
|
|
||||||
"in": "path",
|
|
||||||
"required": true,
|
|
||||||
"schema": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"description": "guild_id"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
"guilds"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/guilds/{guild_id}/audit-logs/": {
|
"/guilds/{guild_id}/audit-logs/": {
|
||||||
"get": {
|
"get": {
|
||||||
"security": [
|
"security": [
|
||||||
@ -16348,7 +16584,7 @@
|
|||||||
},
|
},
|
||||||
"/auth/generate-registration-tokens/": {
|
"/auth/generate-registration-tokens/": {
|
||||||
"get": {
|
"get": {
|
||||||
"x-right-required": "OPERATOR",
|
"x-right-required": "CREATE_REGISTRATION_TOKENS",
|
||||||
"security": [
|
"security": [
|
||||||
{
|
{
|
||||||
"bearer": []
|
"bearer": []
|
||||||
|
64701
assets/schemas.json
64701
assets/schemas.json
File diff suppressed because it is too large
Load Diff
@ -439,6 +439,10 @@ export async function onIdentify(this: WebSocket, data: Payload) {
|
|||||||
tutorial: null,
|
tutorial: null,
|
||||||
session_type: "normal", // TODO
|
session_type: "normal", // TODO
|
||||||
auth_session_id_hash: "", // TODO
|
auth_session_id_hash: "", // TODO
|
||||||
|
notification_settings: {
|
||||||
|
// ????
|
||||||
|
flags: 0,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// Send READY
|
// Send READY
|
||||||
|
@ -129,6 +129,9 @@ export interface ReadyEventData {
|
|||||||
| "REQUIRE_CAPTCHA" // TODO: allow these to be triggered
|
| "REQUIRE_CAPTCHA" // TODO: allow these to be triggered
|
||||||
| "TOS_UPDATE_ACKNOWLEDGMENT"
|
| "TOS_UPDATE_ACKNOWLEDGMENT"
|
||||||
| "AGREEMENTS";
|
| "AGREEMENTS";
|
||||||
|
notification_settings: {
|
||||||
|
flags: number;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ReadyEvent extends Event {
|
export interface ReadyEvent extends Event {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user