2021-09-12 21:21:08 +02:00
|
|
|
{
|
2022-04-22 17:07:59 +02:00
|
|
|
"LoginSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"login": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"undelete": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"captcha_key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"login_source": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"gift_code_sku_id": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"login",
|
|
|
|
"password"
|
|
|
|
],
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"RegisterSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"username": {
|
|
|
|
"minLength": 2,
|
|
|
|
"maxLength": 32,
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"minLength": 1,
|
|
|
|
"maxLength": 72,
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"consent": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"format": "email",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"fingerprint": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"invite": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"date_of_birth": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"gift_code_sku_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"captcha_key": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"consent",
|
|
|
|
"username"
|
|
|
|
],
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"ChannelModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"topic": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"MessageCreateSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"content": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nonce": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"tts": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"flags": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"embeds": {
|
|
|
|
"type": "array",
|
2022-07-02 10:37:20 +02:00
|
|
|
"items": {}
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"embed": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"allowed_mentions": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"parse": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"roles": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"users": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"replied_user": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
},
|
|
|
|
"message_reference": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"message_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"channel_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"guild_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"fail_if_not_exists": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"channel_id",
|
|
|
|
"message_id"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"payload_json": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"file": {},
|
|
|
|
"attachments": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {}
|
|
|
|
},
|
|
|
|
"sticker_ids": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
2022-07-02 10:37:20 +02:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"InviteCreateSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"target_user_id": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"target_type": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"validate": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
|
|
|
"max_age": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"max_uses": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"temporary": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"unique": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"target_user": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"target_user_type": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
2022-07-02 10:37:20 +02:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"MessageAcknowledgeSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"manual": {
|
|
|
|
"type": "boolean"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"mention_count": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"BulkDeleteSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"messages": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"messages"
|
|
|
|
],
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"ChannelPermissionOverwriteSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"PurgeSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"before": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"after": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"after",
|
|
|
|
"before"
|
|
|
|
],
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"WebhookCreateSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 80,
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"avatar": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"avatar",
|
|
|
|
"name"
|
2022-04-22 17:07:59 +02:00
|
|
|
],
|
2022-07-02 10:37:20 +02:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"GatewayBotResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"url": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"shards": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"session_start_limit": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"total": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"remaining": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"reset_after": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"max_concurrency": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"max_concurrency",
|
|
|
|
"remaining",
|
|
|
|
"reset_after",
|
|
|
|
"total"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"session_start_limit",
|
|
|
|
"shards",
|
|
|
|
"url"
|
|
|
|
],
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"GatewayResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"url": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"url"
|
|
|
|
],
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"BanCreateSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"delete_message_days": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"reason": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"executor_id",
|
|
|
|
"guild_id",
|
|
|
|
"id",
|
|
|
|
"user_id"
|
|
|
|
],
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"BanModeratorSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"user_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"guild_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"executor_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"reason": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"executor_id",
|
|
|
|
"guild_id",
|
|
|
|
"id",
|
|
|
|
"user_id"
|
|
|
|
],
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"ChannelReorderSchema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"lock_permissions": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"id"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"EmojiCreateSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"image": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"require_colons": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"boolean"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
2022-07-02 10:37:20 +02:00
|
|
|
},
|
|
|
|
"roles": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"image"
|
|
|
|
],
|
2022-04-22 17:07:59 +02:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"EmojiModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"roles": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"GuildCreateSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"channels": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/ChannelModifySchema"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"guild_template_code": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"system_channel_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"rules_channel_id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
2022-07-02 10:37:20 +02:00
|
|
|
"required": [
|
|
|
|
"name"
|
|
|
|
],
|
2022-04-22 17:07:59 +02:00
|
|
|
"definitions": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"ChannelModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"topic": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"permission_overwrites": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"allow": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
}
|
2022-07-02 10:37:20 +02:00
|
|
|
},
|
|
|
|
"parent_id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"default_auto_archive_duration": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"GuildUpdateSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"banner": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"splash": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"features": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"verification_level": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"default_message_notifications": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"system_channel_flags": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"explicit_content_filter": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"public_updates_channel_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"afk_timeout": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"afk_channel_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"preferred_locale": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"guild_template_code": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"system_channel_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"rules_channel_id": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"name"
|
|
|
|
],
|
|
|
|
"definitions": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"ChannelModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"topic": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"MemberChangeSchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"roles": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"definitions": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"ChannelModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"topic": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"permission_overwrites": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"allow": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
}
|
2022-07-02 10:37:20 +02:00
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"default_auto_archive_duration": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"MemberNickChangeSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"nick": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"nick"
|
|
|
|
],
|
|
|
|
"definitions": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"ChannelModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"topic": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"PruneSchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"days": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"days"
|
2022-04-22 17:07:59 +02:00
|
|
|
],
|
|
|
|
"definitions": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"ChannelModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"topic": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"permission_overwrites": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"allow": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
}
|
2022-07-02 10:37:20 +02:00
|
|
|
},
|
|
|
|
"parent_id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"default_auto_archive_duration": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"RoleModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"permissions": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"color": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"hoist": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"mentionable": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"unicode_emoji": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"definitions": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"ChannelModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"topic": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"RolePositionUpdateSchema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"position"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"definitions": {
|
|
|
|
"ChannelModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"topic": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"bitrate": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"user_limit": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {},
|
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"nsfw": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "boolean"
|
2022-07-02 10:37:20 +02:00
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"additionalProperties": false
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"ModifyGuildStickerSchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"minLength": 2,
|
|
|
|
"maxLength": 30,
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"description": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"tags": {
|
|
|
|
"maxLength": 200,
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"name",
|
|
|
|
"tags"
|
2022-04-22 17:07:59 +02:00
|
|
|
],
|
|
|
|
"definitions": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"ChannelModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"topic": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"permission_overwrites": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"allow": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
}
|
2022-07-02 10:37:20 +02:00
|
|
|
},
|
|
|
|
"parent_id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"default_auto_archive_duration": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"TemplateCreateSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"name"
|
|
|
|
],
|
|
|
|
"definitions": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"ChannelModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"topic": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"TemplateModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"name"
|
2022-04-22 17:07:59 +02:00
|
|
|
],
|
|
|
|
"definitions": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"ChannelModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"topic": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"permission_overwrites": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"allow": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
}
|
2022-07-02 10:37:20 +02:00
|
|
|
},
|
|
|
|
"parent_id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"default_auto_archive_duration": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"VanityUrlSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"code": {
|
|
|
|
"minLength": 1,
|
|
|
|
"maxLength": 20,
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"definitions": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"ChannelModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"topic": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"VoiceStateUpdateSchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"channel_id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"guild_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"suppress": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"request_to_speak_timestamp": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
|
|
|
"self_mute": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"self_deaf": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"self_video": {
|
|
|
|
"type": "boolean"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"channel_id"
|
2022-04-22 17:07:59 +02:00
|
|
|
],
|
|
|
|
"definitions": {
|
|
|
|
"ChannelModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"topic": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"GuildUpdateWelcomeScreenSchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"welcome_channels": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"channel_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"emoji_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"emoji_name": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"channel_id",
|
|
|
|
"description",
|
|
|
|
"emoji_name"
|
|
|
|
]
|
|
|
|
}
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"description": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"additionalProperties": false,
|
2022-04-22 17:07:59 +02:00
|
|
|
"definitions": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"ChannelModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"topic": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"permission_overwrites": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"allow": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
}
|
2022-07-02 10:37:20 +02:00
|
|
|
},
|
|
|
|
"parent_id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"default_auto_archive_duration": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"WidgetModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"channel_id": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"channel_id",
|
|
|
|
"enabled"
|
|
|
|
],
|
|
|
|
"definitions": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"ChannelModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"topic": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"GuildTemplateCreateSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"avatar": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"name"
|
|
|
|
],
|
|
|
|
"definitions": {
|
|
|
|
"ChannelModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"topic": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"bitrate": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"position": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {},
|
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"nsfw": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "boolean"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"rtc_region": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"additionalProperties": false
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"UserProfileResponse": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"user": {},
|
|
|
|
"connected_accounts": {},
|
|
|
|
"premium_guild_since": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
|
|
|
"premium_since": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
2022-07-02 10:37:20 +02:00
|
|
|
"required": [
|
|
|
|
"connected_accounts",
|
|
|
|
"user"
|
|
|
|
],
|
2022-04-22 17:07:59 +02:00
|
|
|
"definitions": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"ChannelModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"topic": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"permission_overwrites": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"allow": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
}
|
2022-07-02 10:37:20 +02:00
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"UserRelationsResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"object": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"username": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"avatar": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"discriminator": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"public_flags": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"object"
|
|
|
|
],
|
|
|
|
"definitions": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"ChannelModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"topic": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"DmChannelCreateSchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"recipients": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"recipients"
|
2022-04-22 17:07:59 +02:00
|
|
|
],
|
|
|
|
"definitions": {
|
|
|
|
"ChannelModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"topic": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"UserModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"username": {
|
|
|
|
"minLength": 1,
|
|
|
|
"maxLength": 100,
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"avatar": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"bio": {
|
|
|
|
"maxLength": 1024,
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"accent_color": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"banner": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"password": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"new_password": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"code": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"email": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"definitions": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"ChannelModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"topic": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"permission_overwrites": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"allow": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
2022-07-02 10:37:20 +02:00
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
2022-04-22 17:07:59 +02:00
|
|
|
]
|
|
|
|
}
|
2022-07-02 10:37:20 +02:00
|
|
|
},
|
|
|
|
"parent_id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"default_auto_archive_duration": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"RelationshipPutSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"type": {}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"definitions": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"ChannelModifySchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"topic": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
2022-04-22 17:07:59 +02:00
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nsfw": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"RelationshipPostSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"discriminator": {
|
|
|
|
"type": "string"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"username": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"discriminator",
|
|
|
|
"username"
|
|
|
|
],
|
|
|
|
"definitions": {
|
|
|
|
"ChannelModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"name": {
|
|
|
|
"maxLength": 100,
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"type": {},
|
|
|
|
"topic": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"bitrate": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"position": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {},
|
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"nsfw": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "boolean"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
},
|
|
|
|
"UserSettingsSchema": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"definitions": {
|
|
|
|
"ChannelModifySchema": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
2022-07-02 10:37:20 +02:00
|
|
|
"maxLength": 100,
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {},
|
|
|
|
"topic": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"icon": {
|
|
|
|
"type": [
|
|
|
|
"null",
|
|
|
|
"string"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bitrate": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user_limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"rate_limit_per_user": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"position": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"permission_overwrites": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {},
|
|
|
|
"allow": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deny": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"allow",
|
|
|
|
"deny",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parent_id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"id": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "string"
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"nsfw": {
|
2022-04-22 17:07:59 +02:00
|
|
|
"type": "boolean"
|
2022-07-02 10:37:20 +02:00
|
|
|
},
|
|
|
|
"rtc_region": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default_auto_archive_duration": {
|
|
|
|
"type": "integer"
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
2022-07-02 10:37:20 +02:00
|
|
|
"additionalProperties": false
|
2022-04-22 17:07:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
|
|
}
|
2022-07-02 10:37:20 +02:00
|
|
|
}
|