mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-05 18:32:33 +01:00
32946 lines
1.1 MiB
32946 lines
1.1 MiB
{
|
|
"SelectProtocolSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"protocol": {
|
|
"enum": [
|
|
"udp",
|
|
"webrtc"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"data": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"address": {
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"type": "integer"
|
|
},
|
|
"mode": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"address",
|
|
"mode",
|
|
"port"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"sdp": {
|
|
"type": "string"
|
|
},
|
|
"codecs": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"enum": [
|
|
"H264",
|
|
"VP8",
|
|
"VP9",
|
|
"opus"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"audio",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"priority": {
|
|
"type": "integer"
|
|
},
|
|
"payload_type": {
|
|
"type": "integer"
|
|
},
|
|
"rtx_payload_type": {
|
|
"type": [
|
|
"null",
|
|
"integer"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"payload_type",
|
|
"priority",
|
|
"type"
|
|
]
|
|
}
|
|
},
|
|
"rtc_connection_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data",
|
|
"protocol"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"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"
|
|
},
|
|
"promotional_email_opt_in": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"consent",
|
|
"username"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TotpSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"ticket": {
|
|
"type": "string"
|
|
},
|
|
"gift_code_sku_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"login_source": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"ticket"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"BackupCodesChallengeSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"password": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"password"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"InviteCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_type": {
|
|
"type": "string"
|
|
},
|
|
"validate": {
|
|
"type": "string"
|
|
},
|
|
"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,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"PurgeSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"before": {
|
|
"type": "string"
|
|
},
|
|
"after": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"after",
|
|
"before"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"WebhookCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 80,
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"avatar",
|
|
"name"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MessageCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"embed": {
|
|
"$ref": "#/definitions/Embed"
|
|
},
|
|
"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": {
|
|
"description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
|
|
"type": "array",
|
|
"items": {}
|
|
},
|
|
"sticker_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MessageAcknowledgeSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"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"
|
|
}
|
|
},
|
|
"guild_template_code": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"BanCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"delete_message_days": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$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"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"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"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"EmojiCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"image": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": [
|
|
"null",
|
|
"boolean"
|
|
]
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"image"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"EmojiModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ModifyGuildStickerSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"minLength": 2,
|
|
"maxLength": 30,
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"maxLength": 200,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"tags"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TemplateCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TemplateModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"VanityUrlSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"minLength": 1,
|
|
"maxLength": 20,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildUpdateWelcomeScreenSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"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"
|
|
]
|
|
}
|
|
},
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"WidgetModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"enabled"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MemberChangeSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$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"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildTemplateCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"DmChannelCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"recipients"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"minLength": 1,
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"bio": {
|
|
"maxLength": 1024,
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"new_password": {
|
|
"type": "string"
|
|
},
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"RelationshipPostSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"discriminator",
|
|
"username"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"RelationshipPutSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
"type": "number"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"CodesVerificationSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"regenerate": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"key",
|
|
"nonce"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MfaCodesSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"regenerate": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"password"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TotpDisableSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TotpEnableSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"secret": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"password"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"VoiceIdentifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"server_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"video": {
|
|
"type": "boolean"
|
|
},
|
|
"streams": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"rid": {
|
|
"type": "string"
|
|
},
|
|
"quality": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"quality",
|
|
"rid",
|
|
"type"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"server_id",
|
|
"session_id",
|
|
"token",
|
|
"user_id"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"VoiceStateUpdateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"preferred_region": {
|
|
"type": "string"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"self_deaf",
|
|
"self_mute"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"VoiceVideoSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"audio_ssrc": {
|
|
"type": "integer"
|
|
},
|
|
"video_ssrc": {
|
|
"type": "integer"
|
|
},
|
|
"rtx_ssrc": {
|
|
"type": "integer"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"streams": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"audio",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"rid": {
|
|
"type": "string"
|
|
},
|
|
"ssrc": {
|
|
"type": "integer"
|
|
},
|
|
"active": {
|
|
"type": "boolean"
|
|
},
|
|
"quality": {
|
|
"type": "integer"
|
|
},
|
|
"rtx_ssrc": {
|
|
"type": "integer"
|
|
},
|
|
"max_bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"max_framerate": {
|
|
"type": "integer"
|
|
},
|
|
"max_resolution": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"height",
|
|
"type",
|
|
"width"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"active",
|
|
"max_bitrate",
|
|
"max_framerate",
|
|
"max_resolution",
|
|
"quality",
|
|
"rid",
|
|
"rtx_ssrc",
|
|
"ssrc",
|
|
"type"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"audio_ssrc",
|
|
"video_ssrc"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"IdentifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"properties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"os_atch": {
|
|
"type": "string"
|
|
},
|
|
"browser": {
|
|
"type": "string"
|
|
},
|
|
"device": {
|
|
"type": "string"
|
|
},
|
|
"$os": {
|
|
"type": "string"
|
|
},
|
|
"$browser": {
|
|
"type": "string"
|
|
},
|
|
"$device": {
|
|
"type": "string"
|
|
},
|
|
"browser_user_agent": {
|
|
"type": "string"
|
|
},
|
|
"browser_version": {
|
|
"type": "string"
|
|
},
|
|
"os_version": {
|
|
"type": "string"
|
|
},
|
|
"referrer": {
|
|
"type": "string"
|
|
},
|
|
"referring_domain": {
|
|
"type": "string"
|
|
},
|
|
"referrer_current": {
|
|
"type": "string"
|
|
},
|
|
"referring_domain_current": {
|
|
"type": "string"
|
|
},
|
|
"release_channel": {
|
|
"enum": [
|
|
"canary",
|
|
"dev",
|
|
"ptb",
|
|
"stable"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"client_build_number": {
|
|
"type": "integer"
|
|
},
|
|
"client_event_source": {},
|
|
"client_version": {
|
|
"type": "string"
|
|
},
|
|
"system_locale": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"intents": {
|
|
"type": "bigint"
|
|
},
|
|
"presence": {
|
|
"$ref": "#/definitions/ActivitySchema"
|
|
},
|
|
"compress": {
|
|
"type": "boolean"
|
|
},
|
|
"large_threshold": {
|
|
"type": "integer"
|
|
},
|
|
"largeThreshold": {
|
|
"type": "integer"
|
|
},
|
|
"shard": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "bigint"
|
|
},
|
|
{
|
|
"type": "bigint"
|
|
}
|
|
],
|
|
"minItems": 2,
|
|
"maxItems": 2
|
|
},
|
|
"guild_subscriptions": {
|
|
"type": "boolean"
|
|
},
|
|
"capabilities": {
|
|
"type": "integer"
|
|
},
|
|
"client_state": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_hashes": {},
|
|
"highest_last_message_id": {
|
|
"type": [
|
|
"string",
|
|
"integer"
|
|
]
|
|
},
|
|
"read_state_version": {
|
|
"type": "integer"
|
|
},
|
|
"user_guild_settings_version": {
|
|
"type": "integer"
|
|
},
|
|
"user_settings_version": {
|
|
"type": "integer"
|
|
},
|
|
"useruser_guild_settings_version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"clientState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guildHashes": {},
|
|
"highestLastMessageId": {
|
|
"type": [
|
|
"string",
|
|
"integer"
|
|
]
|
|
},
|
|
"readStateVersion": {
|
|
"type": "integer"
|
|
},
|
|
"userGuildSettingsVersion": {
|
|
"type": "integer"
|
|
},
|
|
"useruserGuildSettingsVersion": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"v": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"properties",
|
|
"token"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ActivitySchema": {
|
|
"$ref": "#/definitions/ActivitySchema",
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"LazyRequestSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"channels": {
|
|
"$ref": "#/definitions/Record<string,[number,number][]>"
|
|
},
|
|
"activities": {
|
|
"type": "boolean"
|
|
},
|
|
"threads": {
|
|
"type": "boolean"
|
|
},
|
|
"typing": {
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {}
|
|
},
|
|
"thread_member_lists": {
|
|
"type": "array",
|
|
"items": {}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"guild_id"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"RouteResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"status": {
|
|
"type": "integer"
|
|
},
|
|
"body": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"headers": {
|
|
"$ref": "#/definitions/Record<string,string>"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"hcaptchaResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"success": {
|
|
"type": "boolean"
|
|
},
|
|
"challenge_ts": {
|
|
"type": "string"
|
|
},
|
|
"hostname": {
|
|
"type": "string"
|
|
},
|
|
"credit": {
|
|
"type": "boolean"
|
|
},
|
|
"error-codes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"score": {
|
|
"type": "integer"
|
|
},
|
|
"score_reason": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"challenge_ts",
|
|
"credit",
|
|
"error-codes",
|
|
"hostname",
|
|
"score",
|
|
"score_reason",
|
|
"success"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"recaptchaResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"success": {
|
|
"type": "boolean"
|
|
},
|
|
"score": {
|
|
"type": "integer"
|
|
},
|
|
"action": {
|
|
"type": "string"
|
|
},
|
|
"challenge_ts": {
|
|
"type": "string"
|
|
},
|
|
"hostname": {
|
|
"type": "string"
|
|
},
|
|
"error-codes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"action",
|
|
"challenge_ts",
|
|
"hostname",
|
|
"score",
|
|
"success"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ChannelPermissionOverwriteSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GatewayBotResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"shards": {
|
|
"type": "integer"
|
|
},
|
|
"session_start_limit": {
|
|
"type": "object",
|
|
"properties": {
|
|
"total": {
|
|
"type": "integer"
|
|
},
|
|
"remaining": {
|
|
"type": "integer"
|
|
},
|
|
"reset_after": {
|
|
"type": "integer"
|
|
},
|
|
"max_concurrency": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"max_concurrency",
|
|
"remaining",
|
|
"reset_after",
|
|
"total"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"session_start_limit",
|
|
"shards",
|
|
"url"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GatewayResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"url"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ChannelReorderSchema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"lock_permissions": {
|
|
"type": "boolean"
|
|
},
|
|
"parent_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id"
|
|
]
|
|
},
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildUpdateSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^[0-9]+$": {}
|
|
},
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"RolePositionUpdateSchema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"position"
|
|
]
|
|
},
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserProfileResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user": {
|
|
"$ref": "#/definitions/UserPublic"
|
|
},
|
|
"connected_accounts": {
|
|
"$ref": "#/definitions/PublicConnectedAccount"
|
|
},
|
|
"premium_guild_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"connected_accounts",
|
|
"user"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserRelationsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"object": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"object"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserSettingsSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean"
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean"
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer"
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean"
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean"
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean"
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean"
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean"
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"friend_source_flags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean"
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
}
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean"
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean"
|
|
},
|
|
"locale": {
|
|
"type": "string"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean"
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean"
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean"
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"white"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer"
|
|
},
|
|
"banner_color": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer"
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean"
|
|
},
|
|
"passwordless": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserGuildSettingsSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/Partial<ChannelOverride>"
|
|
}
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"enum": [
|
|
0
|
|
],
|
|
"type": "number"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TransportMakeRequestResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"statusCode": {
|
|
"type": "integer"
|
|
},
|
|
"headers": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"properties": {
|
|
"x-sentry-rate-limits": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"retry-after": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"retry-after",
|
|
"x-sentry-rate-limits"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"HttpResponse": {
|
|
"description": "Represents an HTTP message as received in reply to a request. Contains a\nnumeric status code in addition to standard message properties.",
|
|
"type": "object",
|
|
"properties": {
|
|
"statusCode": {
|
|
"type": "integer"
|
|
},
|
|
"headers": {
|
|
"$ref": "#/definitions/HeaderBag"
|
|
},
|
|
"body": {}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"headers",
|
|
"statusCode"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ResolvedHttpResponse": {
|
|
"description": "Represents HTTP message whose body has been resolved to a string. This is\nused in parsing http message.",
|
|
"type": "object",
|
|
"properties": {
|
|
"body": {
|
|
"type": "string"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer"
|
|
},
|
|
"headers": {
|
|
"$ref": "#/definitions/HeaderBag"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"body",
|
|
"headers",
|
|
"statusCode"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"BulkDeleteSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"messages"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MemberNickChangeSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"nick": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"nick"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"PruneSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"days": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"days"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"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": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"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"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk",
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
],
|
|
"type": "number"
|
|
},
|
|
"Record<string,[number,number][]>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UserPublic": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"verified"
|
|
]
|
|
},
|
|
"Partial<ChannelOverride>": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"HeaderBag": {
|
|
"description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
} |