summary refs log tree commit diff
path: root/assets/schemas.json
diff options
context:
space:
mode:
Diffstat (limited to 'assets/schemas.json')
-rw-r--r--assets/schemas.json535
1 files changed, 390 insertions, 145 deletions
diff --git a/assets/schemas.json b/assets/schemas.json

index a7d759fa..6883f0ba 100644 --- a/assets/schemas.json +++ b/assets/schemas.json
@@ -1636,6 +1636,9 @@ "discriminator": { "type": "string" }, + "global_name": { + "type": "string" + }, "id": { "type": "string" }, @@ -1732,13 +1735,13 @@ "region": { "type": "string" }, - "icon": { + "banner": { "type": [ "null", "string" ] }, - "banner": { + "icon": { "type": [ "null", "string" @@ -2052,6 +2055,12 @@ "username": { "type": "string" }, + "global_name": { + "type": [ + "null", + "string" + ] + }, "discriminator": { "type": "string" }, @@ -2073,6 +2082,7 @@ "avatar", "avatar_url", "discriminator", + "global_name", "id", "status", "username" @@ -2627,6 +2637,9 @@ "id": { "type": "string" }, + "banner": { + "type": "string" + }, "icon": { "type": "string" }, @@ -2663,9 +2676,6 @@ "$ref": "#/definitions/Role" } }, - "banner": { - "type": "string" - }, "channels": { "type": "array", "items": { @@ -2847,29 +2857,10 @@ "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { + "username": { "type": "string" }, - "username": { + "global_name": { "type": "string" }, "discriminator": { @@ -2878,15 +2869,37 @@ "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" + }, "premium_type": { "type": "integer" }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, "badge_ids": { "type": "array", "items": { @@ -2920,22 +2933,40 @@ "flags": { "type": "integer" }, - "verified": { - "type": "boolean" + "username": { + "type": "string" }, - "premium_since": { - "type": "string", - "format": "date-time" + "global_name": { + "type": "string" + }, + "discriminator": { + "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" + }, + "premium_type": { + "type": "integer" + }, "theme_colors": { "type": "array", "items": { @@ -2945,24 +2976,9 @@ "pronouns": { "type": "string" }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "bot": { + "verified": { "type": "boolean" }, - "premium_type": { - "type": "integer" - }, "badge_ids": { "type": "array", "items": { @@ -3036,12 +3052,9 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserUpdateResponse": { + "PrivateUserResponse": { "type": "object", "properties": { - "newToken": { - "type": "string" - }, "email": { "type": "string" }, @@ -3052,22 +3065,145 @@ "flags": { "type": "integer" }, - "verified": { + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "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" }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "mfa_enabled": { + "type": "boolean" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserSettingsSchema" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PublicUserResponse": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "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" + }, + "premium_type": { + "type": "integer" + }, "theme_colors": { "type": "array", "items": { @@ -3077,24 +3213,88 @@ "pronouns": { "type": "string" }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserUpdateResponse": { + "type": "object", + "properties": { + "newToken": { + "type": "string" + }, + "email": { + "type": "string" + }, + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "flags": { + "type": "integer" + }, "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "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" + }, "premium_type": { "type": "integer" }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, "badge_ids": { "type": "array", "items": { @@ -3266,6 +3466,10 @@ "autoCreateBotUsers": { "type": "boolean", "default": false + }, + "uniqueUsernames": { + "type": "boolean", + "default": false } }, "additionalProperties": false, @@ -3279,7 +3483,8 @@ "instanceId", "instanceName", "serverName", - "tosPage" + "tosPage", + "uniqueUsernames" ], "$schema": "http://json-schema.org/draft-07/schema#" }, @@ -3314,25 +3519,6 @@ "guild_id": { "type": "string" }, - "mute": { - "type": "boolean" - }, - "deaf": { - "type": "boolean" - }, - "nick": { - "type": "string" - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "pending": { - "type": "boolean" - }, - "premium_since": { - "type": "integer" - }, "avatar": { "type": "string" }, @@ -3342,6 +3528,9 @@ "bio": { "type": "string" }, + "premium_since": { + "type": "integer" + }, "theme_colors": { "type": "array", "items": { @@ -3351,6 +3540,22 @@ "pronouns": { "type": "string" }, + "mute": { + "type": "boolean" + }, + "deaf": { + "type": "boolean" + }, + "nick": { + "type": "string" + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "pending": { + "type": "boolean" + }, "communication_disabled_until": { "anyOf": [ { @@ -3456,13 +3661,13 @@ "region": { "type": "string" }, - "icon": { + "banner": { "type": [ "null", "string" ] }, - "banner": { + "icon": { "type": [ "null", "string" @@ -3800,6 +4005,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -6343,6 +6551,19 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, + "UniqueUsernameAttemptSchema": { + "type": "object", + "properties": { + "username": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "username" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, "UserDeleteSchema": { "type": "object", "properties": { @@ -6420,7 +6641,8 @@ "type": "object", "properties": { "username": { - "minLength": 2, + "minLength": 1, + "maxLength": 100, "type": "string" }, "avatar": { @@ -6430,6 +6652,7 @@ ] }, "bio": { + "maxLength": 1024, "type": "string" }, "accent_color": { @@ -6442,28 +6665,24 @@ ] }, "password": { - "minLength": 1, - "maxLength": 72, "type": "string" }, "new_password": { - "minLength": 1, - "maxLength": 72, "type": "string" }, "code": { - "minLength": 6, - "maxLength": 6, "type": "string" }, "email": { - "format": "email", "type": "string" }, "discriminator": { "minLength": 4, "maxLength": 4, "type": "string" + }, + "global_name": { + "type": "string" } }, "additionalProperties": false, @@ -7250,6 +7469,19 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, + "UniqueUsernameAttemptResponse": { + "type": "object", + "properties": { + "taken": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "taken" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, "ApplicationCommandOption": { "type": "object", "properties": { @@ -7930,6 +8162,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -8097,6 +8335,9 @@ "type": "string" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -8129,6 +8370,7 @@ "security_keys", "sessions", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -11226,25 +11468,6 @@ "guild_id": { "type": "string" }, - "mute": { - "type": "boolean" - }, - "deaf": { - "type": "boolean" - }, - "nick": { - "type": "string" - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "pending": { - "type": "boolean" - }, - "premium_since": { - "type": "integer" - }, "avatar": { "type": "string" }, @@ -11254,6 +11477,9 @@ "bio": { "type": "string" }, + "premium_since": { + "type": "integer" + }, "theme_colors": { "type": "array", "items": { @@ -11263,6 +11489,22 @@ "pronouns": { "type": "string" }, + "mute": { + "type": "boolean" + }, + "deaf": { + "type": "boolean" + }, + "nick": { + "type": "string" + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "pending": { + "type": "boolean" + }, "communication_disabled_until": { "anyOf": [ { @@ -11306,29 +11548,10 @@ "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { + "username": { "type": "string" }, - "username": { + "global_name": { "type": "string" }, "discriminator": { @@ -11337,15 +11560,37 @@ "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" + }, "premium_type": { "type": "integer" }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, "badge_ids": { "type": "array", "items": { @@ -13219,41 +13464,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } + "avatar": { + "type": [ + "null", + "string" ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -13324,6 +13564,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -13342,7 +13586,8 @@ "maxBio", "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ], "$schema": "http://json-schema.org/draft-07/schema#" }, @@ -13617,6 +13862,9 @@ "UserProfile": { "type": "object", "properties": { + "accent_color": { + "type": "integer" + }, "banner": { "type": "string" }, @@ -13631,9 +13879,6 @@ }, "pronouns": { "type": "string" - }, - "accent_color": { - "type": "integer" } }, "additionalProperties": false,