From 9f4f7cac6512330481ea3e2de0633fc893788c33 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 5 May 2023 11:09:05 -0400 Subject: [PATCH 01/16] initial pomelo implementation --- assets/openapi.json | 87 +- assets/schemas.json | 5552 +++++++++++++---- src/api/routes/auth/forgot.ts | 2 +- .../messages/#message_id/crosspost.ts | 1 + .../channels/#channel_id/messages/index.ts | 5 +- src/api/routes/guilds/#guild_id/bans.ts | 2 + .../guilds/#guild_id/messages/search.ts | 2 + src/api/routes/oauth2/authorize.ts | 6 + src/api/routes/users/#id/relationships.ts | 2 + src/api/routes/users/@me/index.ts | 2 + src/api/routes/users/@me/relationships.ts | 21 +- src/connections/Discord/index.ts | 3 + src/util/config/types/GeneralConfiguration.ts | 1 + src/util/dtos/UserDTO.ts | 16 +- src/util/entities/User.ts | 47 +- src/util/schemas/RelationshipPostSchema.ts | 1 + .../schemas/responses/GuildBansResponse.ts | 2 + .../responses/GuildWidgetJsonResponse.ts | 2 + .../responses/UserRelationsResponse.ts | 2 + src/util/util/email/index.ts | 3 + 20 files changed, 4573 insertions(+), 1186 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index da2b20f10..d1796bbde 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -1359,6 +1359,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -1524,6 +1530,9 @@ "$ref": "#/components/schemas/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -1541,6 +1550,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -3486,6 +3497,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -3521,6 +3538,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -3946,25 +3964,32 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": "string", - "nullable": true + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": "string", + "nullable": true } }, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -6355,6 +6380,15 @@ "discriminator": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": [ + "null", + "string" + ] + }, "id": { "type": "string" }, @@ -6372,6 +6406,8 @@ "required": [ "avatar", "discriminator", + "display_name", + "global_name", "id", "public_flags", "username" @@ -6615,6 +6651,15 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": [ + "null", + "string" + ] + }, "discriminator": { "type": "string" }, @@ -6636,6 +6681,8 @@ "avatar", "avatar_url", "discriminator", + "display_name", + "global_name", "id", "status", "username" @@ -6997,6 +7044,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -7058,6 +7111,7 @@ "disabled", "discriminator", "flags", + "global_name", "id", "mfa_enabled", "nsfw_allowed", @@ -7114,6 +7168,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -7175,6 +7235,7 @@ "disabled", "discriminator", "flags", + "global_name", "id", "mfa_enabled", "nsfw_allowed", @@ -7273,6 +7334,10 @@ "autoCreateBotUsers": { "type": "boolean", "default": false + }, + "pomeloEnabled": { + "type": "boolean", + "default": false } }, "required": [ @@ -7284,6 +7349,7 @@ "instanceDescription", "instanceId", "instanceName", + "pomeloEnabled", "tosPage" ] }, @@ -7845,6 +7911,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -7857,6 +7929,7 @@ }, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" diff --git a/assets/schemas.json b/assets/schemas.json index ab8e0a3f4..682c7bb5e 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -1490,6 +1490,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -1655,6 +1661,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -1673,6 +1682,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -3650,6 +3661,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -3686,6 +3703,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -4127,28 +4145,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -5709,6 +5734,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -5874,6 +5905,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -5892,6 +5926,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -7869,6 +7905,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -7905,6 +7947,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -8346,28 +8389,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -9928,6 +9978,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -10093,6 +10149,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -10111,6 +10170,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -12088,6 +12149,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -12124,6 +12191,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -12565,28 +12633,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -14142,6 +14217,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -14307,6 +14388,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -14325,6 +14409,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -16302,6 +16388,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -16338,6 +16430,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -16779,28 +16872,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -18392,6 +18492,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -18557,6 +18663,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -18575,6 +18684,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -20552,6 +20663,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -20588,6 +20705,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -21029,28 +21147,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -22611,6 +22736,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -22776,6 +22907,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -22794,6 +22928,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -24771,6 +24907,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -24807,6 +24949,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -25248,28 +25391,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -26821,6 +26971,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -26986,6 +27142,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -27004,6 +27163,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -28981,6 +29142,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -29017,6 +29184,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -29458,28 +29626,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -31034,6 +31209,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -31199,6 +31380,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -31217,6 +31401,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -33194,6 +33380,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -33230,6 +33422,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -33671,28 +33864,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -35256,6 +35456,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -35421,6 +35627,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -35439,6 +35648,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -37416,6 +37627,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -37452,6 +37669,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -37893,28 +38111,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -39466,6 +39691,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -39631,6 +39862,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -39649,6 +39883,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -41626,6 +41862,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -41662,6 +41904,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -42103,28 +42346,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -43676,6 +43926,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -43841,6 +44097,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -43859,6 +44118,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -45836,6 +46097,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -45872,6 +46139,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -46313,28 +46581,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -47905,6 +48180,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -48070,6 +48351,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -48088,6 +48372,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -50065,6 +50351,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -50101,6 +50393,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -50542,28 +50835,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -52118,6 +52418,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -52283,6 +52589,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -52301,6 +52610,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -54278,6 +54589,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -54314,6 +54631,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -54755,28 +55073,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -56391,6 +56716,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -56556,6 +56887,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -56574,6 +56908,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -58551,6 +58887,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -58587,6 +58929,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -59028,28 +59371,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -60623,6 +60973,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -60788,6 +61144,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -60806,6 +61165,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -62783,6 +63144,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -62819,6 +63186,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -63260,28 +63628,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -64996,6 +65371,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -65161,6 +65542,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -65179,6 +65563,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -67156,6 +67542,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -67192,6 +67584,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -67633,28 +68026,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -69227,6 +69627,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -69392,6 +69798,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -69410,6 +69819,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -71387,6 +71798,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -71423,6 +71840,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -71864,28 +72282,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -73468,6 +73893,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -73633,6 +74064,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -73651,6 +74085,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -75628,6 +76064,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -75664,6 +76106,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -76105,28 +76548,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -77691,6 +78141,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -77856,6 +78312,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -77874,6 +78333,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -79851,6 +80312,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -79887,6 +80354,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -80328,28 +80796,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -81920,6 +82395,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -82085,6 +82566,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -82103,6 +82587,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -84080,6 +84566,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -84116,6 +84608,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -84557,28 +85050,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -86139,6 +86639,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -86304,6 +86810,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -86322,6 +86831,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -88299,6 +88810,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -88335,6 +88852,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -88776,28 +89294,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -90346,6 +90871,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -90511,6 +91042,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -90529,6 +91063,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -92506,6 +93042,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -92542,6 +93084,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -92983,28 +93526,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -94671,6 +95221,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -94836,6 +95392,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -94854,6 +95413,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -96831,6 +97392,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -96867,6 +97434,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -97308,28 +97876,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -98993,6 +99568,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -99158,6 +99739,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -99176,6 +99760,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -101153,6 +101739,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -101189,6 +101781,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -101630,28 +102223,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -103203,6 +103803,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -103368,6 +103974,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -103386,6 +103995,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -105363,6 +105974,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -105399,6 +106016,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -105840,28 +106458,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -107421,6 +108046,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -107586,6 +108217,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -107604,6 +108238,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -109581,6 +110217,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -109617,6 +110259,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -110058,28 +110701,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -111632,6 +112282,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -111797,6 +112453,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -111815,6 +112474,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -113792,6 +114453,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -113828,6 +114495,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -114269,28 +114937,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -115843,6 +116518,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -116008,6 +116689,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -116026,6 +116710,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -118003,6 +118689,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -118039,6 +118731,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -118480,28 +119173,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -120089,6 +120789,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -120254,6 +120960,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -120272,6 +120981,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -122249,6 +122960,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -122285,6 +123002,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -122726,28 +123444,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -124300,6 +125025,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -124465,6 +125196,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -124483,6 +125217,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -126460,6 +127196,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -126496,6 +127238,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -126937,28 +127680,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -128510,6 +129260,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -128675,6 +129431,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -128693,6 +129452,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -130670,6 +131431,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -130706,6 +131473,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -131147,28 +131915,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -132735,6 +133510,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -132900,6 +133681,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -132918,6 +133702,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -134895,6 +135681,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -134931,6 +135723,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -135372,28 +136165,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -136949,6 +137749,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -137114,6 +137920,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -137132,6 +137941,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -139109,6 +139920,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -139145,6 +139962,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -139586,28 +140404,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -141237,6 +142062,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -141402,6 +142233,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -141420,6 +142254,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -143397,6 +144233,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -143433,6 +144275,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -143874,28 +144717,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -145447,6 +146297,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -145612,6 +146468,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -145630,6 +146489,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -147607,6 +148468,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -147643,6 +148510,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -148084,28 +148952,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -149657,6 +150532,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -149822,6 +150703,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -149840,6 +150724,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -151817,6 +152703,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -151853,6 +152745,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -152294,28 +153187,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -153864,6 +154764,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -154029,6 +154935,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -154047,6 +154956,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -156024,6 +156935,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -156060,6 +156977,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -156501,28 +157419,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -158077,6 +159002,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -158242,6 +159173,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -158260,6 +159194,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -160237,6 +161173,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -160273,6 +161215,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -160714,28 +161657,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -162300,6 +163250,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -162465,6 +163421,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -162483,6 +163442,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -164460,6 +165421,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -164496,6 +165463,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -164937,28 +165905,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -166507,6 +167482,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -166672,6 +167653,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -166690,6 +167674,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -168667,6 +169653,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -168703,6 +169695,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -169144,28 +170137,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -170763,6 +171763,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -170928,6 +171934,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -170946,6 +171955,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -172923,6 +173934,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -172959,6 +173976,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -173400,28 +174418,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -175005,6 +176030,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -175170,6 +176201,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -175188,6 +176222,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -177165,6 +178201,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -177201,6 +178243,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -177642,28 +178685,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -179212,6 +180262,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -179377,6 +180433,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -179395,6 +180454,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -181372,6 +182433,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -181408,6 +182475,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -181849,28 +182917,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -183444,6 +184519,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -183609,6 +184690,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -183627,6 +184711,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -185604,6 +186690,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -185640,6 +186732,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -186081,28 +187174,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -187765,6 +188865,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -187930,6 +189036,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -187948,6 +189057,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -189925,6 +191036,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -189961,6 +191078,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -190402,28 +191520,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -191971,6 +193096,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -192136,6 +193267,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -192154,6 +193288,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -194131,6 +195267,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -194167,6 +195309,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -194608,28 +195751,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -196216,6 +197366,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -196381,6 +197537,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -196399,6 +197558,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -198376,6 +199537,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -198412,6 +199579,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -198853,28 +200021,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -200449,6 +201624,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -200614,6 +201795,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -200632,6 +201816,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -202609,6 +203795,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -202645,6 +203837,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -203086,28 +204279,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -204734,6 +205934,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -204899,6 +206105,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -204917,6 +206126,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -206894,6 +208105,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -206930,6 +208147,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -207371,28 +208589,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -208941,6 +210166,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -209106,6 +210337,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -209124,6 +210358,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -211101,6 +212337,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -211137,6 +212379,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -211578,28 +212821,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -213156,6 +214406,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -213321,6 +214577,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -213339,6 +214598,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -215316,6 +216577,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -215352,6 +216619,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -215793,28 +217061,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -217361,6 +218636,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -217526,6 +218807,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -217544,6 +218828,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -219521,6 +220807,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -219557,6 +220849,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -219998,28 +221291,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -221572,6 +222872,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -221737,6 +223043,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -221755,6 +223064,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -223732,6 +225043,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -223768,6 +225085,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -224209,28 +225527,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -225783,6 +227108,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -225948,6 +227279,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -225966,6 +227300,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -227943,6 +229279,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -227979,6 +229321,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -228420,28 +229763,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -229994,6 +231344,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -230159,6 +231515,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -230177,6 +231536,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -232154,6 +233515,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -232190,6 +233557,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -232631,28 +233999,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -234237,6 +235612,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -234402,6 +235783,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -234420,6 +235804,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -236397,6 +237783,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -236433,6 +237825,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -236874,28 +238267,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -238452,6 +239852,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -238617,6 +240023,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -238635,6 +240044,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -240612,6 +242023,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -240648,6 +242065,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -241089,28 +242507,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -242657,6 +244082,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -242822,6 +244253,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -242840,6 +244274,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -244817,6 +246253,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -244853,6 +246295,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -245294,28 +246737,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -246868,6 +248318,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -247033,6 +248489,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -247051,6 +248510,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -249028,6 +250489,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -249064,6 +250531,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -249505,28 +250973,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -251090,6 +252565,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -251255,6 +252736,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -251273,6 +252757,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -253250,6 +254736,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -253286,6 +254778,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -253727,28 +255220,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -255326,6 +256826,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -255491,6 +256997,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -255509,6 +257018,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -257486,6 +258997,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -257522,6 +259039,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -257963,28 +259481,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -259533,6 +261058,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -259698,6 +261229,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -259716,6 +261250,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -261693,6 +263229,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -261729,6 +263271,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -262170,28 +263713,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -263743,6 +265293,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -263908,6 +265464,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -263926,6 +265485,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -265903,6 +267464,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -265939,6 +267506,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -266380,28 +267948,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -266832,6 +268407,15 @@ "discriminator": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": [ + "null", + "string" + ] + }, "id": { "type": "string" }, @@ -266849,6 +268433,8 @@ "required": [ "avatar", "discriminator", + "display_name", + "global_name", "id", "public_flags", "username" @@ -267982,6 +269568,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -268147,6 +269739,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -268165,6 +269760,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -270142,6 +271739,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -270178,6 +271781,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -270619,28 +272223,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -272189,6 +273800,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -272354,6 +273971,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -272372,6 +273992,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -274349,6 +275971,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -274385,6 +276013,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -274826,28 +276455,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -276475,6 +278111,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -276640,6 +278282,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -276658,6 +278303,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -278635,6 +280282,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -278671,6 +280324,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -279112,28 +280766,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -280689,6 +282350,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -280854,6 +282521,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -280872,6 +282542,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -282849,6 +284521,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -282885,6 +284563,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -283326,28 +285005,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -284896,6 +286582,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -285061,6 +286753,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -285079,6 +286774,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -287056,6 +288753,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -287092,6 +288795,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -287533,28 +289237,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -289103,6 +290814,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -289268,6 +290985,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -289286,6 +291006,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -291263,6 +292985,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -291299,6 +293027,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -291740,28 +293469,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -293317,6 +295053,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -293482,6 +295224,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -293500,6 +295245,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -295477,6 +297224,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -295513,6 +297266,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -295954,28 +297708,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -297528,6 +299289,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -297693,6 +299460,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -297711,6 +299481,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -299688,6 +301460,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -299724,6 +301502,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -300165,28 +301944,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -301735,6 +303521,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -301900,6 +303692,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -301918,6 +303713,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -303895,6 +305692,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -303931,6 +305734,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -304372,28 +306176,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -304855,6 +306666,15 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": [ + "null", + "string" + ] + }, "discriminator": { "type": "string" }, @@ -304876,6 +306696,8 @@ "avatar", "avatar_url", "discriminator", + "display_name", + "global_name", "id", "status", "username" @@ -306017,6 +307839,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -306182,6 +308010,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -306200,6 +308031,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -308177,6 +310010,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -308213,6 +310052,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -308654,28 +310494,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -310235,6 +312082,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -310400,6 +312253,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -310418,6 +312274,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -312395,6 +314253,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -312431,6 +314295,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -312872,28 +314737,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -314454,6 +316326,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -314619,6 +316497,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -314637,6 +316518,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -316614,6 +318497,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -316650,6 +318539,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -317091,28 +318981,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -318723,6 +320620,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -318888,6 +320791,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -318906,6 +320812,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -320883,6 +322791,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -320919,6 +322833,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -321360,28 +323275,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -322951,6 +324873,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -323116,6 +325044,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -323134,6 +325065,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -325111,6 +327044,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -325147,6 +327086,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -325588,28 +327528,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -327185,6 +329132,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -327350,6 +329303,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -327368,6 +329324,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -329345,6 +331303,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -329381,6 +331345,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -329822,28 +331787,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -331413,6 +333385,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -331578,6 +333556,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -331596,6 +333577,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -333573,6 +335556,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -333609,6 +335598,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -334050,28 +336040,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -335620,6 +337617,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -335785,6 +337788,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -335803,6 +337809,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -337780,6 +339788,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -337816,6 +339830,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -338257,28 +340272,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -339855,6 +341877,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -340020,6 +342048,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -340038,6 +342069,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -342015,6 +344048,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -342051,6 +344090,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -342492,28 +344532,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -344102,6 +346149,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -344267,6 +346320,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -344285,6 +346341,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -346262,6 +348320,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -346298,6 +348362,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -346739,28 +348804,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -348303,6 +350375,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -348468,6 +350546,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -348486,6 +350567,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -350463,6 +352546,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -350499,6 +352588,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -350940,28 +353030,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -352514,6 +354611,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -352679,6 +354782,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -352697,6 +354803,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -354674,6 +356782,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -354710,6 +356824,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -355151,28 +357266,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -356721,6 +358843,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -356886,6 +359014,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -356904,6 +359035,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -358881,6 +361014,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -358917,6 +361056,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -359358,28 +361498,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -360935,6 +363082,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -361100,6 +363253,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -361118,6 +363274,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -363095,6 +365253,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -363131,6 +365295,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -363572,28 +365737,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -365353,6 +367525,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -365518,6 +367696,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -365536,6 +367717,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -367513,6 +369696,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -367549,6 +369738,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -367990,28 +370180,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -369551,6 +371748,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -369716,6 +371919,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -369734,6 +371940,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -371711,6 +373919,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -371747,6 +373961,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -372188,28 +374403,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -372647,6 +374869,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -372709,6 +374937,7 @@ "disabled", "discriminator", "flags", + "global_name", "id", "mfa_enabled", "nsfw_allowed", @@ -373843,6 +376072,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -374008,6 +376243,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -374026,6 +376264,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -376003,6 +378243,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -376039,6 +378285,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -376480,28 +378727,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -378044,6 +380298,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -378209,6 +380469,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -378227,6 +380490,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -380204,6 +382469,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -380240,6 +382511,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -380681,28 +382953,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -382245,6 +384524,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -382410,6 +384695,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -382428,6 +384716,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -384405,6 +386695,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -384441,6 +386737,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -384882,28 +387179,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -386446,6 +388750,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -386611,6 +388921,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -386629,6 +388942,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -388606,6 +390921,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -388642,6 +390963,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -389083,28 +391405,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -389545,6 +391874,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -389607,6 +391942,7 @@ "disabled", "discriminator", "flags", + "global_name", "id", "mfa_enabled", "nsfw_allowed", @@ -390741,6 +393077,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -390906,6 +393248,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -390924,6 +393269,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -392901,6 +395248,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -392937,6 +395290,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -393378,28 +395732,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -394940,6 +397301,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -395105,6 +397472,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -395123,6 +397493,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -397100,6 +399472,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -397136,6 +399514,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -397577,28 +399956,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -399139,6 +401525,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -399304,6 +401696,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -399322,6 +401717,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -401299,6 +403696,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -401335,6 +403738,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -401776,28 +404180,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -403338,6 +405749,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -403503,6 +405920,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -403521,6 +405941,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -405498,6 +407920,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -405534,6 +407962,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -405975,28 +408404,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -407539,6 +409975,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -407704,6 +410146,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -407722,6 +410167,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -409699,6 +412146,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -409735,6 +412188,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -410176,28 +412630,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -411740,6 +414201,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -411905,6 +414372,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -411923,6 +414393,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -413900,6 +416372,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -413936,6 +416414,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -414377,28 +416856,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -415941,6 +418427,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -416106,6 +418598,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -416124,6 +418619,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -418101,6 +420598,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -418137,6 +420640,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -418578,28 +421082,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -420142,6 +422653,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -420307,6 +422824,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -420325,6 +422845,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -422302,6 +424824,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -422338,6 +424866,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -422779,28 +425308,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -424343,6 +426879,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -424508,6 +427050,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -424526,6 +427071,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -426503,6 +429050,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -426539,6 +429092,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -426980,28 +429534,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -427472,6 +430033,10 @@ "autoCreateBotUsers": { "type": "boolean", "default": false + }, + "pomeloEnabled": { + "type": "boolean", + "default": false } }, "additionalProperties": false, @@ -427484,6 +430049,7 @@ "instanceDescription", "instanceId", "instanceName", + "pomeloEnabled", "tosPage" ], "definitions": { @@ -428608,6 +431174,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -428773,6 +431345,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -428791,6 +431366,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -430768,6 +433345,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -430804,6 +433387,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -431245,28 +433829,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -432809,6 +435400,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -432974,6 +435571,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -432992,6 +435592,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -434969,6 +437571,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -435005,6 +437613,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -435446,28 +438055,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -437010,6 +439626,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -437175,6 +439797,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -437193,6 +439818,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -439170,6 +441797,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -439206,6 +441839,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -439647,28 +442281,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -441211,6 +443852,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -441376,6 +444023,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -441394,6 +444044,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -443371,6 +446023,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -443407,6 +446065,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -443848,28 +446507,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -445459,6 +448125,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -445624,6 +448296,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -445642,6 +448317,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -447619,6 +450296,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -447655,6 +450338,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -448096,28 +450780,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -449896,6 +452587,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -450061,6 +452758,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -450079,6 +452779,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -452056,6 +454758,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -452092,6 +454800,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -452533,28 +455242,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -454097,6 +456813,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -454262,6 +456984,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -454280,6 +457005,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -456257,6 +458984,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -456293,6 +459026,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -456734,28 +459468,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -458298,6 +461039,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -458463,6 +461210,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -458481,6 +461231,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -460458,6 +463210,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -460494,6 +463252,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -460935,28 +463694,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -462499,6 +465265,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -462664,6 +465436,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -462682,6 +465457,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -464659,6 +467436,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -464695,6 +467478,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -465136,28 +467920,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -466700,6 +469491,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -466865,6 +469662,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -466883,6 +469683,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -468860,6 +471662,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -468896,6 +471704,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -469337,28 +472146,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -470927,6 +473743,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -471092,6 +473914,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -471110,6 +473935,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -473087,6 +475914,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -473123,6 +475956,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -473564,28 +476398,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -475128,6 +477969,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -475293,6 +478140,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -475311,6 +478161,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -477288,6 +480140,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -477324,6 +480182,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -477765,28 +480624,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -479350,6 +482216,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -479515,6 +482387,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -479533,6 +482408,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -481510,6 +484387,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -481546,6 +484429,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -481987,28 +484871,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -483565,6 +486456,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -483730,6 +486627,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -483748,6 +486648,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -485725,6 +488627,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -485761,6 +488669,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -486202,28 +489111,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -487892,6 +490808,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -488057,6 +490979,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -488075,6 +491000,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -490052,6 +492979,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -490088,6 +493021,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -490529,28 +493463,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -490978,6 +493919,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -490990,6 +493937,7 @@ }, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -492117,6 +495065,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -492282,6 +495236,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -492300,6 +495257,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -494277,6 +497236,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -494313,6 +497278,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -494754,28 +497720,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -496336,6 +499309,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -496501,6 +499480,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -496519,6 +499501,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -498496,6 +501480,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -498532,6 +501522,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -498973,28 +501964,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -500547,6 +503545,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -500712,6 +503716,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -500730,6 +503737,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -502707,6 +505716,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -502743,6 +505758,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -503184,28 +506200,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -504758,6 +507781,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -504923,6 +507952,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -504941,6 +507973,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -506918,6 +509952,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -506954,6 +509994,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -507395,28 +510436,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -508956,6 +512004,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -509121,6 +512175,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -509139,6 +512196,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -511116,6 +514175,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -511152,6 +514217,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -511593,28 +514659,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -513166,6 +516239,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -513331,6 +516410,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -513349,6 +516431,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -515326,6 +518410,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -515362,6 +518452,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -515803,28 +518894,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -517391,6 +520489,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -517556,6 +520660,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -517574,6 +520681,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -519551,6 +522660,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -519587,6 +522702,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -520028,28 +523144,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -521620,6 +524743,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -521785,6 +524914,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -521803,6 +524935,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -523780,6 +526914,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -523816,6 +526956,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -524257,28 +527398,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -525828,6 +528976,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -525993,6 +529147,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -526011,6 +529168,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -527988,6 +531147,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -528024,6 +531189,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -528465,28 +531631,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -530035,6 +533208,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -530200,6 +533379,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -530218,6 +533400,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -532195,6 +535379,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -532231,6 +535421,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -532672,28 +535863,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -534242,6 +537440,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -534407,6 +537611,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -534425,6 +537632,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -536402,6 +539611,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -536438,6 +539653,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -536879,28 +540095,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -538455,6 +541678,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -538620,6 +541849,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "handle": { + "type": "string" + }, "id": { "type": "string" } @@ -538638,6 +541870,8 @@ "extended_settings", "fingerprints", "flags", + "global_name", + "handle", "id", "mfa_enabled", "mobile", @@ -540615,6 +543849,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -540651,6 +543891,7 @@ "bio", "bot", "discriminator", + "global_name", "id", "premium_since", "premium_type", @@ -541092,28 +544333,35 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { - "type": [ - "null", - "string" - ] + "id": { + "type": "string" }, - "discriminator": { + "username": { "type": "string" }, - "id": { + "global_name": { + "type": "string" + }, + "display_name": { + "type": "string" + }, + "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts index 6fa86021c..7a7911644 100644 --- a/src/api/routes/auth/forgot.ts +++ b/src/api/routes/auth/forgot.ts @@ -111,7 +111,7 @@ router.post( }) .catch((e) => { console.error( - `Failed to send password reset email to ${user.username}#${user.discriminator}: ${e}`, + `Failed to send password reset email to ${user.handle}: ${e}`, ); throw new HTTPError("Failed to send password reset email", 500); }); diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts b/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts index 5ca645c00..ed2670ca1 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts @@ -43,6 +43,7 @@ router.post( username: "", avatar: "", discriminator: "", + global_name: "", public_flags: 64, }, attachments: [], diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index a5bfcfd73..8b028f431 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -171,11 +171,14 @@ router.get( if ((y.user_ids || []).includes(req.user_id)) y.me = true; delete y.user_ids; }); + const { pomeloEnabled } = Config.get().general; if (!x.author) x.author = User.create({ id: "4", - discriminator: "0000", + discriminator: pomeloEnabled ? "0" : "0000", username: "Spacebar Ghost", + global_name: "spacebarghost", + display_name: "Spacebar Ghost", public_flags: 0, }); x.attachments?.forEach((y: Attachment) => { diff --git a/src/api/routes/guilds/#guild_id/bans.ts b/src/api/routes/guilds/#guild_id/bans.ts index 9aeb27f0e..ede9f4bde 100644 --- a/src/api/routes/guilds/#guild_id/bans.ts +++ b/src/api/routes/guilds/#guild_id/bans.ts @@ -70,6 +70,8 @@ router.get( user: { username: user.username, discriminator: user.discriminator, + global_name: user.global_name, + display_name: user.display_name, id: user.id, avatar: user.avatar, public_flags: user.public_flags, diff --git a/src/api/routes/guilds/#guild_id/messages/search.ts b/src/api/routes/guilds/#guild_id/messages/search.ts index 637d1e438..bf5fc4cd4 100644 --- a/src/api/routes/guilds/#guild_id/messages/search.ts +++ b/src/api/routes/guilds/#guild_id/messages/search.ts @@ -149,6 +149,8 @@ router.get( avatar: x.author?.avatar, avatar_decoration: null, discriminator: x.author?.discriminator, + global_name: x.author?.global_name, + display_name: x.author?.display_name, public_flags: x.author?.public_flags, }, attachments: x.attachments, diff --git a/src/api/routes/oauth2/authorize.ts b/src/api/routes/oauth2/authorize.ts index 2f2351f38..11255b98f 100644 --- a/src/api/routes/oauth2/authorize.ts +++ b/src/api/routes/oauth2/authorize.ts @@ -89,6 +89,8 @@ router.get( "username", "avatar", "discriminator", + "global_name", + "display_name", "public_flags", ], }); @@ -137,6 +139,8 @@ router.get( avatar: user.avatar, avatar_decoration: null, // TODO discriminator: user.discriminator, + global_name: user.global_name, + display_name: user.display_name, public_flags: user.public_flags, }, application: { @@ -159,6 +163,8 @@ router.get( avatar: bot.avatar, avatar_decoration: null, // TODO discriminator: bot.discriminator, + global_name: bot.global_name, + display_name: bot.display_name, public_flags: bot.public_flags, bot: true, approximated_guild_count: 0, // TODO diff --git a/src/api/routes/users/#id/relationships.ts b/src/api/routes/users/#id/relationships.ts index 3737ca004..0008e75d0 100644 --- a/src/api/routes/users/#id/relationships.ts +++ b/src/api/routes/users/#id/relationships.ts @@ -58,6 +58,8 @@ router.get( username: relation_user.username, avatar: relation_user.avatar, discriminator: relation_user.discriminator, + global_name: relation_user.global_name, + display_name: relation_user.display_name, public_flags: relation_user.public_flags, }); } diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index ad11a4281..1d2095427 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -140,6 +140,7 @@ router.patch( newToken = (await generateToken(user.id)) as string; } + // TODO: pomelo: disallow if pomelo is enabled if (body.username) { const check_username = body?.username?.replace(/\s/g, ""); if (!check_username) { @@ -162,6 +163,7 @@ router.patch( } } + // TODO: pomelo: disallow if pomelo is enabled if (body.discriminator) { if ( await User.findOne({ diff --git a/src/api/routes/users/@me/relationships.ts b/src/api/routes/users/@me/relationships.ts index bce0a6549..083426020 100644 --- a/src/api/routes/users/@me/relationships.ts +++ b/src/api/routes/users/@me/relationships.ts @@ -114,19 +114,26 @@ router.post( }, }), async (req: Request, res: Response) => { + const { pomeloEnabled } = Config.get().general; + const where = pomeloEnabled + ? { + // TODO: pomelo: should we use username or add global_name property to the request? + global_name: req.body.username, + } + : { + discriminator: String(req.body.discriminator).padStart( + 4, + "0", + ), //Discord send the discriminator as integer, we need to add leading zeroes + username: req.body.username, + }; return await updateRelationship( req, res, await User.findOneOrFail({ relations: ["relationships", "relationships.to"], select: userProjection, - where: { - discriminator: String(req.body.discriminator).padStart( - 4, - "0", - ), //Discord send the discriminator as integer, we need to add leading zeroes - username: req.body.username, - }, + where, }), req.body.type, ); diff --git a/src/connections/Discord/index.ts b/src/connections/Discord/index.ts index 731086f1a..206aa6719 100644 --- a/src/connections/Discord/index.ts +++ b/src/connections/Discord/index.ts @@ -31,6 +31,8 @@ interface UserResponse { id: string; username: string; discriminator: string; + global_name: string; + display_name?: string; avatar_url: string | null; } @@ -128,6 +130,7 @@ export default class DiscordConnection extends Connection { if (exists) return null; + // TODO: pomelo return await this.createConnection({ user_id: userId, external_id: userInfo.id, diff --git a/src/util/config/types/GeneralConfiguration.ts b/src/util/config/types/GeneralConfiguration.ts index cff8c527b..df3dfbcdc 100644 --- a/src/util/config/types/GeneralConfiguration.ts +++ b/src/util/config/types/GeneralConfiguration.ts @@ -29,4 +29,5 @@ export class GeneralConfiguration { image: string | null = null; instanceId: string = Snowflake.generate(); autoCreateBotUsers: boolean = false; + pomeloEnabled: boolean = false; } diff --git a/src/util/dtos/UserDTO.ts b/src/util/dtos/UserDTO.ts index a24c8d960..5687bcefb 100644 --- a/src/util/dtos/UserDTO.ts +++ b/src/util/dtos/UserDTO.ts @@ -19,17 +19,21 @@ import { User } from "../entities"; export class MinimalPublicUserDTO { - avatar?: string | null; - discriminator: string; id: string; - public_flags: number; username: string; + global_name: string; + display_name?: string; + discriminator: string; + public_flags: number; + avatar?: string | null; constructor(user: User) { - this.avatar = user.avatar; - this.discriminator = user.discriminator; this.id = user.id; - this.public_flags = user.public_flags; this.username = user.username; + this.global_name = user.global_name; + this.display_name = user.display_name; + this.discriminator = user.discriminator; + this.public_flags = user.public_flags; + this.avatar = user.avatar; } } diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index c6582b00a..0620640bf 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -37,6 +37,8 @@ import { UserSettings } from "./UserSettings"; export enum PublicUserEnum { username, + global_name, + display_name, discriminator, id, public_flags, @@ -90,8 +92,14 @@ export class User extends BaseClass { @Column() username: string; // username max length 32, min 2 (should be configurable) + @Column({nullable: true}) + global_name: string; // puyo: pomelo + + @Column({nullable: true}) + display_name?: string; // puyo: pomelo + @Column() - discriminator: string; // opaque string: 4 digits on discord.com + discriminator: string; // opaque string: 4 digits on discord.com, 0 for pomelo @Column({ nullable: true }) avatar?: string; // hash of the user avatar @@ -323,6 +331,13 @@ export class User extends BaseClass { } } + public get handle(): string { + const {pomeloEnabled} = Config.get().general; + + // if pomelo is enabled, global_name should be set + return pomeloEnabled ? this.global_name as string : `${this.username}#${this.discriminator}`; + } + static async register({ email, username, @@ -337,19 +352,25 @@ export class User extends BaseClass { id?: string; req?: Request; }) { + const {pomeloEnabled} = Config.get().general; + // trim special uf8 control characters -> Backspace, Newline, ... username = trimSpecial(username); - const discriminator = await User.generateDiscriminator(username); - if (!discriminator) { - // We've failed to generate a valid and unused discriminator - throw FieldErrors({ - username: { - code: "USERNAME_TOO_MANY_USERS", - message: - req?.t("auth:register.USERNAME_TOO_MANY_USERS") || "", - }, - }); + let discriminator: string | undefined; + if(pomeloEnabled) discriminator = "0"; + else { + discriminator = await User.generateDiscriminator(username); + if (!discriminator) { + // We've failed to generate a valid and unused discriminator + throw FieldErrors({ + username: { + code: "USERNAME_TOO_MANY_USERS", + message: + req?.t("auth:register.USERNAME_TOO_MANY_USERS") || "", + }, + }); + } } // TODO: save date_of_birth @@ -364,6 +385,8 @@ export class User extends BaseClass { const user = User.create({ username: username, + global_name: username, // TODO: convert to lowercase, strip special characters,etc??? + // display_name: username, // TODO: how should we do this? discriminator, id: id || Snowflake.generate(), email: email, @@ -391,7 +414,7 @@ export class User extends BaseClass { if (!Config.get().defaults.user.verified && email) { await Email.sendVerifyEmail(user, email).catch((e) => { console.error( - `Failed to send verification email to ${user.username}#${user.discriminator}: ${e}`, + `Failed to send verification email to ${user.handle}: ${e}`, ); }); } diff --git a/src/util/schemas/RelationshipPostSchema.ts b/src/util/schemas/RelationshipPostSchema.ts index 066ecfd8e..f0a5fc32a 100644 --- a/src/util/schemas/RelationshipPostSchema.ts +++ b/src/util/schemas/RelationshipPostSchema.ts @@ -16,6 +16,7 @@ along with this program. If not, see . */ +// TODO: pomelo? export interface RelationshipPostSchema { discriminator: string; username: string; diff --git a/src/util/schemas/responses/GuildBansResponse.ts b/src/util/schemas/responses/GuildBansResponse.ts index 77c95a48d..aa53105d2 100644 --- a/src/util/schemas/responses/GuildBansResponse.ts +++ b/src/util/schemas/responses/GuildBansResponse.ts @@ -21,6 +21,8 @@ export interface GuildBansResponse { user: { username: string; discriminator: string; + global_name: string; + display_name: string | null; id: string; avatar: string | null; public_flags: number; diff --git a/src/util/schemas/responses/GuildWidgetJsonResponse.ts b/src/util/schemas/responses/GuildWidgetJsonResponse.ts index bd6923041..60e8e7cc7 100644 --- a/src/util/schemas/responses/GuildWidgetJsonResponse.ts +++ b/src/util/schemas/responses/GuildWidgetJsonResponse.ts @@ -30,6 +30,8 @@ export interface GuildWidgetJsonResponse { members: { id: string; username: string; + global_name: string; + display_name: string | null; discriminator: string; avatar: string | null; status: ClientStatus; diff --git a/src/util/schemas/responses/UserRelationsResponse.ts b/src/util/schemas/responses/UserRelationsResponse.ts index 808dd3d33..59db277f6 100644 --- a/src/util/schemas/responses/UserRelationsResponse.ts +++ b/src/util/schemas/responses/UserRelationsResponse.ts @@ -19,6 +19,8 @@ import { User } from "@spacebar/util"; export type UserRelationsResponse = (Pick & Pick & + Pick & + Pick & Pick & Pick & Pick)[]; diff --git a/src/util/util/email/index.ts b/src/util/util/email/index.ts index 619cc5c3f..6d34e2349 100644 --- a/src/util/util/email/index.ts +++ b/src/util/util/email/index.ts @@ -112,9 +112,12 @@ export const Email: { ) { const { instanceName } = Config.get().general; + // TODO: pomelo: display_name should take precedence over username if pomelo is enabled. maybe we should use global_name as the username? const replacements = [ ["{instanceName}", instanceName], ["{userUsername}", user.username], + ["{userGlobalName}", user.global_name], + ["{userDisplayName}", user.display_name], ["{userDiscriminator}", user.discriminator], ["{userId}", user.id], ["{phoneNumber}", user.phone?.slice(-4)], From cfd8dc0141b2756afcb3e4270399c1000fc9bb3b Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 5 May 2023 11:24:17 -0400 Subject: [PATCH 02/16] lint --- src/util/entities/User.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index 0620640bf..f658c286c 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -92,10 +92,10 @@ export class User extends BaseClass { @Column() username: string; // username max length 32, min 2 (should be configurable) - @Column({nullable: true}) + @Column({ nullable: true }) global_name: string; // puyo: pomelo - @Column({nullable: true}) + @Column({ nullable: true }) display_name?: string; // puyo: pomelo @Column() @@ -332,10 +332,12 @@ export class User extends BaseClass { } public get handle(): string { - const {pomeloEnabled} = Config.get().general; + const { pomeloEnabled } = Config.get().general; // if pomelo is enabled, global_name should be set - return pomeloEnabled ? this.global_name as string : `${this.username}#${this.discriminator}`; + return pomeloEnabled + ? (this.global_name as string) + : `${this.username}#${this.discriminator}`; } static async register({ @@ -352,13 +354,13 @@ export class User extends BaseClass { id?: string; req?: Request; }) { - const {pomeloEnabled} = Config.get().general; + const { pomeloEnabled } = Config.get().general; // trim special uf8 control characters -> Backspace, Newline, ... username = trimSpecial(username); let discriminator: string | undefined; - if(pomeloEnabled) discriminator = "0"; + if (pomeloEnabled) discriminator = "0"; else { discriminator = await User.generateDiscriminator(username); if (!discriminator) { @@ -367,7 +369,8 @@ export class User extends BaseClass { username: { code: "USERNAME_TOO_MANY_USERS", message: - req?.t("auth:register.USERNAME_TOO_MANY_USERS") || "", + req?.t("auth:register.USERNAME_TOO_MANY_USERS") || + "", }, }); } From adfee03829e2956226c77fb8996d87165f3176ef Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 5 May 2023 16:41:24 -0400 Subject: [PATCH 03/16] rename handle to tag --- src/api/routes/auth/forgot.ts | 2 +- src/util/entities/User.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts index 7a7911644..f832721f0 100644 --- a/src/api/routes/auth/forgot.ts +++ b/src/api/routes/auth/forgot.ts @@ -111,7 +111,7 @@ router.post( }) .catch((e) => { console.error( - `Failed to send password reset email to ${user.handle}: ${e}`, + `Failed to send password reset email to ${user.tag}: ${e}`, ); throw new HTTPError("Failed to send password reset email", 500); }); diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index f658c286c..85dc56ee2 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -331,7 +331,7 @@ export class User extends BaseClass { } } - public get handle(): string { + public get tag(): string { const { pomeloEnabled } = Config.get().general; // if pomelo is enabled, global_name should be set @@ -417,7 +417,7 @@ export class User extends BaseClass { if (!Config.get().defaults.user.verified && email) { await Email.sendVerifyEmail(user, email).catch((e) => { console.error( - `Failed to send verification email to ${user.handle}: ${e}`, + `Failed to send verification email to ${user.tag}: ${e}`, ); }); } From 0939236cc0aed4449621040d00a917c05efb3cef Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 6 May 2023 01:11:37 -0400 Subject: [PATCH 04/16] remove display_name --- assets/openapi.json | 43 +- assets/schemas.json | 2712 ++++++----------- .../channels/#channel_id/messages/index.ts | 5 +- src/api/routes/guilds/#guild_id/bans.ts | 1 - .../guilds/#guild_id/messages/search.ts | 1 - src/api/routes/oauth2/authorize.ts | 3 - src/api/routes/users/#id/relationships.ts | 1 - src/connections/Discord/index.ts | 10 +- src/util/dtos/UserDTO.ts | 7 +- src/util/entities/User.ts | 8 +- .../schemas/responses/GuildBansResponse.ts | 3 +- .../responses/GuildWidgetJsonResponse.ts | 3 +- .../responses/UserRelationsResponse.ts | 1 - src/util/util/email/index.ts | 2 - 14 files changed, 915 insertions(+), 1885 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index d1796bbde..7132ad932 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -1362,9 +1362,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -1530,7 +1527,7 @@ "$ref": "#/components/schemas/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -1550,8 +1547,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -1568,6 +1563,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -3500,9 +3496,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -3538,7 +3531,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -3971,10 +3963,9 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": "string", + "default": null, + "nullable": true }, "discriminator": { "type": "string" @@ -6383,12 +6374,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": [ - "null", - "string" - ] - }, "id": { "type": "string" }, @@ -6406,8 +6391,6 @@ "required": [ "avatar", "discriminator", - "display_name", - "global_name", "id", "public_flags", "username" @@ -6652,9 +6635,6 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { "type": [ "null", "string" @@ -6681,7 +6661,6 @@ "avatar", "avatar_url", "discriminator", - "display_name", "global_name", "id", "status", @@ -7047,9 +7026,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -7111,7 +7087,6 @@ "disabled", "discriminator", "flags", - "global_name", "id", "mfa_enabled", "nsfw_allowed", @@ -7171,9 +7146,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -7235,7 +7207,6 @@ "disabled", "discriminator", "flags", - "global_name", "id", "mfa_enabled", "nsfw_allowed", @@ -7914,9 +7885,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -7929,7 +7897,6 @@ }, "required": [ "discriminator", - "global_name", "id", "public_flags", "username" diff --git a/assets/schemas.json b/assets/schemas.json index 682c7bb5e..24c016c24 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -1493,9 +1493,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -1661,7 +1658,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -1682,8 +1679,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -1700,6 +1695,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -3664,9 +3660,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -3703,7 +3696,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -4152,10 +4144,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -5737,9 +5730,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -5905,7 +5895,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -5926,8 +5916,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -5944,6 +5932,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -7908,9 +7897,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -7947,7 +7933,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -8396,10 +8381,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -9981,9 +9967,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -10149,7 +10132,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -10170,8 +10153,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -10188,6 +10169,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -12152,9 +12134,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -12191,7 +12170,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -12640,10 +12618,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -14220,9 +14199,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -14388,7 +14364,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -14409,8 +14385,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -14427,6 +14401,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -16391,9 +16366,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -16430,7 +16402,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -16879,10 +16850,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -18495,9 +18467,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -18663,7 +18632,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -18684,8 +18653,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -18702,6 +18669,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -20666,9 +20634,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -20705,7 +20670,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -21154,10 +21118,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -22739,9 +22704,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -22907,7 +22869,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -22928,8 +22890,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -22946,6 +22906,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -24910,9 +24871,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -24949,7 +24907,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -25398,10 +25355,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -26974,9 +26932,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -27142,7 +27097,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -27163,8 +27118,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -27181,6 +27134,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -29145,9 +29099,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -29184,7 +29135,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -29633,10 +29583,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -31212,9 +31163,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -31380,7 +31328,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -31401,8 +31349,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -31419,6 +31365,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -33383,9 +33330,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -33422,7 +33366,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -33871,10 +33814,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -35459,9 +35403,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -35627,7 +35568,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -35648,8 +35589,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -35666,6 +35605,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -37630,9 +37570,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -37669,7 +37606,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -38118,10 +38054,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -39694,9 +39631,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -39862,7 +39796,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -39883,8 +39817,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -39901,6 +39833,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -41865,9 +41798,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -41904,7 +41834,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -42353,10 +42282,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -43929,9 +43859,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -44097,7 +44024,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -44118,8 +44045,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -44136,6 +44061,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -46100,9 +46026,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -46139,7 +46062,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -46588,10 +46510,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -48183,9 +48106,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -48351,7 +48271,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -48372,8 +48292,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -48390,6 +48308,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -50354,9 +50273,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -50393,7 +50309,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -50842,10 +50757,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -52421,9 +52337,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -52589,7 +52502,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -52610,8 +52523,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -52628,6 +52539,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -54592,9 +54504,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -54631,7 +54540,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -55080,10 +54988,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -56719,9 +56628,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -56887,7 +56793,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -56908,8 +56814,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -56926,6 +56830,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -58890,9 +58795,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -58929,7 +58831,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -59378,10 +59279,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -60976,9 +60878,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -61144,7 +61043,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -61165,8 +61064,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -61183,6 +61080,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -63147,9 +63045,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -63186,7 +63081,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -63635,10 +63529,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -65374,9 +65269,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -65542,7 +65434,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -65563,8 +65455,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -65581,6 +65471,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -67545,9 +67436,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -67584,7 +67472,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -68033,10 +67920,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -69630,9 +69518,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -69798,7 +69683,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -69819,8 +69704,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -69837,6 +69720,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -71801,9 +71685,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -71840,7 +71721,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -72289,10 +72169,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -73896,9 +73777,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -74064,7 +73942,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -74085,8 +73963,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -74103,6 +73979,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -76067,9 +75944,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -76106,7 +75980,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -76555,10 +76428,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -78144,9 +78018,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -78312,7 +78183,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -78333,8 +78204,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -78351,6 +78220,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -80315,9 +80185,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -80354,7 +80221,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -80803,10 +80669,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -82398,9 +82265,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -82566,7 +82430,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -82587,8 +82451,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -82605,6 +82467,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -84569,9 +84432,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -84608,7 +84468,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -85057,10 +84916,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -86642,9 +86502,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -86810,7 +86667,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -86831,8 +86688,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -86849,6 +86704,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -88813,9 +88669,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -88852,7 +88705,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -89301,10 +89153,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -90874,9 +90727,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -91042,7 +90892,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -91063,8 +90913,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -91081,6 +90929,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -93045,9 +92894,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -93084,7 +92930,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -93533,10 +93378,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -95224,9 +95070,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -95392,7 +95235,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -95413,8 +95256,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -95431,6 +95272,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -97395,9 +97237,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -97434,7 +97273,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -97883,10 +97721,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -99571,9 +99410,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -99739,7 +99575,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -99760,8 +99596,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -99778,6 +99612,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -101742,9 +101577,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -101781,7 +101613,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -102230,10 +102061,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -103806,9 +103638,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -103974,7 +103803,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -103995,8 +103824,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -104013,6 +103840,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -105977,9 +105805,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -106016,7 +105841,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -106465,10 +106289,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -108049,9 +107874,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -108217,7 +108039,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -108238,8 +108060,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -108256,6 +108076,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -110220,9 +110041,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -110259,7 +110077,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -110708,10 +110525,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -112285,9 +112103,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -112453,7 +112268,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -112474,8 +112289,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -112492,6 +112305,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -114456,9 +114270,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -114495,7 +114306,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -114944,10 +114754,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -116521,9 +116332,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -116689,7 +116497,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -116710,8 +116518,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -116728,6 +116534,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -118692,9 +118499,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -118731,7 +118535,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -119180,10 +118983,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -120792,9 +120596,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -120960,7 +120761,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -120981,8 +120782,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -120999,6 +120798,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -122963,9 +122763,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -123002,7 +122799,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -123451,10 +123247,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -125028,9 +124825,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -125196,7 +124990,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -125217,8 +125011,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -125235,6 +125027,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -127199,9 +126992,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -127238,7 +127028,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -127687,10 +127476,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -129263,9 +129053,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -129431,7 +129218,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -129452,8 +129239,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -129470,6 +129255,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -131434,9 +131220,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -131473,7 +131256,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -131922,10 +131704,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -133513,9 +133296,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -133681,7 +133461,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -133702,8 +133482,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -133720,6 +133498,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -135684,9 +135463,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -135723,7 +135499,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -136172,10 +135947,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -137752,9 +137528,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -137920,7 +137693,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -137941,8 +137714,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -137959,6 +137730,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -139923,9 +139695,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -139962,7 +139731,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -140411,10 +140179,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -142065,9 +141834,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -142233,7 +141999,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -142254,8 +142020,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -142272,6 +142036,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -144236,9 +144001,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -144275,7 +144037,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -144724,10 +144485,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -146300,9 +146062,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -146468,7 +146227,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -146489,8 +146248,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -146507,6 +146264,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -148471,9 +148229,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -148510,7 +148265,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -148959,10 +148713,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -150535,9 +150290,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -150703,7 +150455,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -150724,8 +150476,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -150742,6 +150492,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -152706,9 +152457,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -152745,7 +152493,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -153194,10 +152941,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -154767,9 +154515,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -154935,7 +154680,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -154956,8 +154701,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -154974,6 +154717,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -156938,9 +156682,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -156977,7 +156718,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -157426,10 +157166,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -159005,9 +158746,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -159173,7 +158911,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -159194,8 +158932,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -159212,6 +158948,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -161176,9 +160913,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -161215,7 +160949,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -161664,10 +161397,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -163253,9 +162987,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -163421,7 +163152,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -163442,8 +163173,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -163460,6 +163189,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -165424,9 +165154,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -165463,7 +165190,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -165912,10 +165638,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -167485,9 +167212,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -167653,7 +167377,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -167674,8 +167398,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -167692,6 +167414,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -169656,9 +169379,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -169695,7 +169415,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -170144,10 +169863,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -171766,9 +171486,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -171934,7 +171651,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -171955,8 +171672,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -171973,6 +171688,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -173937,9 +173653,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -173976,7 +173689,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -174425,10 +174137,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -176033,9 +175746,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -176201,7 +175911,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -176222,8 +175932,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -176240,6 +175948,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -178204,9 +177913,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -178243,7 +177949,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -178692,10 +178397,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -180265,9 +179971,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -180433,7 +180136,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -180454,8 +180157,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -180472,6 +180173,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -182436,9 +182138,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -182475,7 +182174,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -182924,10 +182622,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -184522,9 +184221,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -184690,7 +184386,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -184711,8 +184407,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -184729,6 +184423,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -186693,9 +186388,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -186732,7 +186424,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -187181,10 +186872,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -188868,9 +188560,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -189036,7 +188725,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -189057,8 +188746,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -189075,6 +188762,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -191039,9 +190727,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -191078,7 +190763,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -191527,10 +191211,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -193099,9 +192784,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -193267,7 +192949,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -193288,8 +192970,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -193306,6 +192986,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -195270,9 +194951,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -195309,7 +194987,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -195758,10 +195435,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -197369,9 +197047,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -197537,7 +197212,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -197558,8 +197233,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -197576,6 +197249,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -199540,9 +199214,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -199579,7 +199250,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -200028,10 +199698,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -201627,9 +201298,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -201795,7 +201463,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -201816,8 +201484,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -201834,6 +201500,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -203798,9 +203465,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -203837,7 +203501,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -204286,10 +203949,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -205937,9 +205601,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -206105,7 +205766,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -206126,8 +205787,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -206144,6 +205803,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -208108,9 +207768,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -208147,7 +207804,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -208596,10 +208252,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -210169,9 +209826,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -210337,7 +209991,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -210358,8 +210012,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -210376,6 +210028,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -212340,9 +211993,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -212379,7 +212029,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -212828,10 +212477,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -214409,9 +214059,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -214577,7 +214224,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -214598,8 +214245,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -214616,6 +214261,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -216580,9 +216226,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -216619,7 +216262,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -217068,10 +216710,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -218639,9 +218282,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -218807,7 +218447,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -218828,8 +218468,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -218846,6 +218484,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -220810,9 +220449,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -220849,7 +220485,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -221298,10 +220933,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -222875,9 +222511,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -223043,7 +222676,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -223064,8 +222697,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -223082,6 +222713,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -225046,9 +224678,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -225085,7 +224714,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -225534,10 +225162,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -227111,9 +226740,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -227279,7 +226905,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -227300,8 +226926,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -227318,6 +226942,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -229282,9 +228907,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -229321,7 +228943,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -229770,10 +229391,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -231347,9 +230969,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -231515,7 +231134,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -231536,8 +231155,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -231554,6 +231171,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -233518,9 +233136,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -233557,7 +233172,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -234006,10 +233620,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -235615,9 +235230,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -235783,7 +235395,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -235804,8 +235416,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -235822,6 +235432,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -237786,9 +237397,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -237825,7 +237433,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -238274,10 +237881,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -239855,9 +239463,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -240023,7 +239628,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -240044,8 +239649,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -240062,6 +239665,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -242026,9 +241630,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -242065,7 +241666,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -242514,10 +242114,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -244085,9 +243686,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -244253,7 +243851,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -244274,8 +243872,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -244292,6 +243888,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -246256,9 +245853,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -246295,7 +245889,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -246744,10 +246337,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -248321,9 +247915,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -248489,7 +248080,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -248510,8 +248101,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -248528,6 +248117,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -250492,9 +250082,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -250531,7 +250118,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -250980,10 +250566,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -252568,9 +252155,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -252736,7 +252320,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -252757,8 +252341,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -252775,6 +252357,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -254739,9 +254322,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -254778,7 +254358,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -255227,10 +254806,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -256829,9 +256409,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -256997,7 +256574,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -257018,8 +256595,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -257036,6 +256611,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -259000,9 +258576,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -259039,7 +258612,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -259488,10 +259060,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -261061,9 +260634,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -261229,7 +260799,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -261250,8 +260820,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -261268,6 +260836,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -263232,9 +262801,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -263271,7 +262837,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -263720,10 +263285,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -265296,9 +264862,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -265464,7 +265027,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -265485,8 +265048,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -265503,6 +265064,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -267467,9 +267029,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -267506,7 +267065,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -267955,10 +267513,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -268410,12 +267969,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": [ - "null", - "string" - ] - }, "id": { "type": "string" }, @@ -268433,8 +267986,6 @@ "required": [ "avatar", "discriminator", - "display_name", - "global_name", "id", "public_flags", "username" @@ -269571,9 +269122,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -269739,7 +269287,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -269760,8 +269308,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -269778,6 +269324,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -271742,9 +271289,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -271781,7 +271325,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -272230,10 +271773,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -273803,9 +273347,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -273971,7 +273512,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -273992,8 +273533,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -274010,6 +273549,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -275974,9 +275514,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -276013,7 +275550,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -276462,10 +275998,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -278114,9 +277651,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -278282,7 +277816,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -278303,8 +277837,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -278321,6 +277853,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -280285,9 +279818,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -280324,7 +279854,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -280773,10 +280302,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -282353,9 +281883,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -282521,7 +282048,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -282542,8 +282069,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -282560,6 +282085,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -284524,9 +284050,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -284563,7 +284086,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -285012,10 +284534,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -286585,9 +286108,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -286753,7 +286273,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -286774,8 +286294,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -286792,6 +286310,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -288756,9 +288275,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -288795,7 +288311,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -289244,10 +288759,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -290817,9 +290333,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -290985,7 +290498,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -291006,8 +290519,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -291024,6 +290535,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -292988,9 +292500,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -293027,7 +292536,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -293476,10 +292984,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -295056,9 +294565,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -295224,7 +294730,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -295245,8 +294751,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -295263,6 +294767,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -297227,9 +296732,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -297266,7 +296768,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -297715,10 +297216,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -299292,9 +298794,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -299460,7 +298959,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -299481,8 +298980,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -299499,6 +298996,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -301463,9 +300961,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -301502,7 +300997,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -301951,10 +301445,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -303524,9 +303019,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -303692,7 +303184,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -303713,8 +303205,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -303731,6 +303221,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -305695,9 +305186,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -305734,7 +305222,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -306183,10 +305670,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -306667,9 +306155,6 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { "type": [ "null", "string" @@ -306696,7 +306181,6 @@ "avatar", "avatar_url", "discriminator", - "display_name", "global_name", "id", "status", @@ -307842,9 +307326,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -308010,7 +307491,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -308031,8 +307512,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -308049,6 +307528,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -310013,9 +309493,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -310052,7 +309529,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -310501,10 +309977,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -312085,9 +311562,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -312253,7 +311727,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -312274,8 +311748,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -312292,6 +311764,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -314256,9 +313729,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -314295,7 +313765,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -314744,10 +314213,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -316329,9 +315799,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -316497,7 +315964,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -316518,8 +315985,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -316536,6 +316001,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -318500,9 +317966,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -318539,7 +318002,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -318988,10 +318450,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -320623,9 +320086,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -320791,7 +320251,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -320812,8 +320272,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -320830,6 +320288,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -322794,9 +322253,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -322833,7 +322289,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -323282,10 +322737,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -324876,9 +324332,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -325044,7 +324497,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -325065,8 +324518,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -325083,6 +324534,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -327047,9 +326499,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -327086,7 +326535,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -327535,10 +326983,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -329135,9 +328584,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -329303,7 +328749,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -329324,8 +328770,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -329342,6 +328786,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -331306,9 +330751,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -331345,7 +330787,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -331794,10 +331235,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -333388,9 +332830,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -333556,7 +332995,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -333577,8 +333016,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -333595,6 +333032,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -335559,9 +334997,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -335598,7 +335033,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -336047,10 +335481,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -337620,9 +337055,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -337788,7 +337220,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -337809,8 +337241,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -337827,6 +337257,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -339791,9 +339222,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -339830,7 +339258,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -340279,10 +339706,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -341880,9 +341308,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -342048,7 +341473,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -342069,8 +341494,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -342087,6 +341510,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -344051,9 +343475,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -344090,7 +343511,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -344539,10 +343959,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -346152,9 +345573,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -346320,7 +345738,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -346341,8 +345759,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -346359,6 +345775,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -348323,9 +347740,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -348362,7 +347776,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -348811,10 +348224,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -350378,9 +349792,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -350546,7 +349957,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -350567,8 +349978,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -350585,6 +349994,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -352549,9 +351959,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -352588,7 +351995,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -353037,10 +352443,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -354614,9 +354021,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -354782,7 +354186,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -354803,8 +354207,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -354821,6 +354223,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -356785,9 +356188,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -356824,7 +356224,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -357273,10 +356672,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -358846,9 +358246,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -359014,7 +358411,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -359035,8 +358432,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -359053,6 +358448,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -361017,9 +360413,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -361056,7 +360449,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -361505,10 +360897,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -363085,9 +362478,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -363253,7 +362643,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -363274,8 +362664,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -363292,6 +362680,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -365256,9 +364645,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -365295,7 +364681,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -365744,10 +365129,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -367528,9 +366914,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -367696,7 +367079,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -367717,8 +367100,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -367735,6 +367116,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -369699,9 +369081,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -369738,7 +369117,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -370187,10 +369565,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -371751,9 +371130,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -371919,7 +371295,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -371940,8 +371316,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -371958,6 +371332,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -373922,9 +373297,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -373961,7 +373333,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -374410,10 +373781,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -374872,9 +374244,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -374937,7 +374306,6 @@ "disabled", "discriminator", "flags", - "global_name", "id", "mfa_enabled", "nsfw_allowed", @@ -376075,9 +375443,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -376243,7 +375608,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -376264,8 +375629,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -376282,6 +375645,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -378246,9 +377610,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -378285,7 +377646,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -378734,10 +378094,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -380301,9 +379662,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -380469,7 +379827,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -380490,8 +379848,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -380508,6 +379864,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -382472,9 +381829,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -382511,7 +381865,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -382960,10 +382313,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -384527,9 +383881,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -384695,7 +384046,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -384716,8 +384067,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -384734,6 +384083,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -386698,9 +386048,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -386737,7 +386084,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -387186,10 +386532,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -388753,9 +388100,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -388921,7 +388265,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -388942,8 +388286,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -388960,6 +388302,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -390924,9 +390267,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -390963,7 +390303,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -391412,10 +390751,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -391877,9 +391217,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -391942,7 +391279,6 @@ "disabled", "discriminator", "flags", - "global_name", "id", "mfa_enabled", "nsfw_allowed", @@ -393080,9 +392416,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -393248,7 +392581,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -393269,8 +392602,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -393287,6 +392618,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -395251,9 +394583,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -395290,7 +394619,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -395739,10 +395067,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -397304,9 +396633,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -397472,7 +396798,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -397493,8 +396819,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -397511,6 +396835,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -399475,9 +398800,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -399514,7 +398836,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -399963,10 +399284,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -401528,9 +400850,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -401696,7 +401015,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -401717,8 +401036,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -401735,6 +401052,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -403699,9 +403017,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -403738,7 +403053,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -404187,10 +403501,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -405752,9 +405067,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -405920,7 +405232,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -405941,8 +405253,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -405959,6 +405269,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -407923,9 +407234,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -407962,7 +407270,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -408411,10 +407718,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -409978,9 +409286,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -410146,7 +409451,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -410167,8 +409472,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -410185,6 +409488,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -412149,9 +411453,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -412188,7 +411489,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -412637,10 +411937,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -414204,9 +413505,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -414372,7 +413670,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -414393,8 +413691,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -414411,6 +413707,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -416375,9 +415672,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -416414,7 +415708,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -416863,10 +416156,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -418430,9 +417724,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -418598,7 +417889,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -418619,8 +417910,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -418637,6 +417926,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -420601,9 +419891,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -420640,7 +419927,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -421089,10 +420375,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -422656,9 +421943,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -422824,7 +422108,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -422845,8 +422129,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -422863,6 +422145,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -424827,9 +424110,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -424866,7 +424146,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -425315,10 +424594,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -426882,9 +426162,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -427050,7 +426327,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -427071,8 +426348,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -427089,6 +426364,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -429053,9 +428329,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -429092,7 +428365,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -429541,10 +428813,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -431177,9 +430450,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -431345,7 +430615,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -431366,8 +430636,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -431384,6 +430652,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -433348,9 +432617,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -433387,7 +432653,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -433836,10 +433101,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -435403,9 +434669,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -435571,7 +434834,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -435592,8 +434855,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -435610,6 +434871,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -437574,9 +436836,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -437613,7 +436872,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -438062,10 +437320,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -439629,9 +438888,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -439797,7 +439053,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -439818,8 +439074,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -439836,6 +439090,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -441800,9 +441055,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -441839,7 +441091,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -442288,10 +441539,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -443855,9 +443107,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -444023,7 +443272,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -444044,8 +443293,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -444062,6 +443309,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -446026,9 +445274,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -446065,7 +445310,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -446514,10 +445758,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -448128,9 +447373,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -448296,7 +447538,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -448317,8 +447559,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -448335,6 +447575,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -450299,9 +449540,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -450338,7 +449576,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -450787,10 +450024,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -452590,9 +451828,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -452758,7 +451993,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -452779,8 +452014,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -452797,6 +452030,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -454761,9 +453995,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -454800,7 +454031,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -455249,10 +454479,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -456816,9 +456047,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -456984,7 +456212,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -457005,8 +456233,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -457023,6 +456249,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -458987,9 +458214,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -459026,7 +458250,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -459475,10 +458698,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -461042,9 +460266,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -461210,7 +460431,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -461231,8 +460452,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -461249,6 +460468,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -463213,9 +462433,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -463252,7 +462469,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -463701,10 +462917,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -465268,9 +464485,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -465436,7 +464650,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -465457,8 +464671,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -465475,6 +464687,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -467439,9 +466652,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -467478,7 +466688,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -467927,10 +467136,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -469494,9 +468704,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -469662,7 +468869,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -469683,8 +468890,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -469701,6 +468906,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -471665,9 +470871,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -471704,7 +470907,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -472153,10 +471355,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -473746,9 +472949,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -473914,7 +473114,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -473935,8 +473135,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -473953,6 +473151,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -475917,9 +475116,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -475956,7 +475152,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -476405,10 +475600,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -477972,9 +477168,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -478140,7 +477333,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -478161,8 +477354,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -478179,6 +477370,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -480143,9 +479335,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -480182,7 +479371,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -480631,10 +479819,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -482219,9 +481408,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -482387,7 +481573,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -482408,8 +481594,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -482426,6 +481610,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -484390,9 +483575,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -484429,7 +483611,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -484878,10 +484059,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -486459,9 +485641,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -486627,7 +485806,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -486648,8 +485827,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -486666,6 +485843,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -488630,9 +487808,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -488669,7 +487844,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -489118,10 +488292,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -490811,9 +489986,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -490979,7 +490151,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -491000,8 +490172,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -491018,6 +490188,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -492982,9 +492153,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -493021,7 +492189,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -493470,10 +492637,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -493922,9 +493090,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -493937,7 +493102,6 @@ }, "required": [ "discriminator", - "global_name", "id", "public_flags", "username" @@ -495068,9 +494232,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -495236,7 +494397,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -495257,8 +494418,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -495275,6 +494434,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -497239,9 +496399,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -497278,7 +496435,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -497727,10 +496883,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -499312,9 +498469,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -499480,7 +498634,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -499501,8 +498655,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -499519,6 +498671,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -501483,9 +500636,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -501522,7 +500672,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -501971,10 +501120,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -503548,9 +502698,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -503716,7 +502863,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -503737,8 +502884,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -503755,6 +502900,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -505719,9 +504865,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -505758,7 +504901,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -506207,10 +505349,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -507784,9 +506927,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -507952,7 +507092,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -507973,8 +507113,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -507991,6 +507129,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -509955,9 +509094,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -509994,7 +509130,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -510443,10 +509578,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -512007,9 +511143,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -512175,7 +511308,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -512196,8 +511329,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -512214,6 +511345,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -514178,9 +513310,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -514217,7 +513346,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -514666,10 +513794,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -516242,9 +515371,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -516410,7 +515536,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -516431,8 +515557,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -516449,6 +515573,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -518413,9 +517538,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -518452,7 +517574,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -518901,10 +518022,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -520492,9 +519614,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -520660,7 +519779,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -520681,8 +519800,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -520699,6 +519816,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -522663,9 +521781,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -522702,7 +521817,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -523151,10 +522265,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -524746,9 +523861,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -524914,7 +524026,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -524935,8 +524047,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -524953,6 +524063,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -526917,9 +526028,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -526956,7 +526064,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -527405,10 +526512,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -528979,9 +528087,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -529147,7 +528252,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -529168,8 +528273,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -529186,6 +528289,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -531150,9 +530254,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -531189,7 +530290,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -531638,10 +530738,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -533211,9 +532312,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -533379,7 +532477,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -533400,8 +532498,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -533418,6 +532514,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -535382,9 +534479,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -535421,7 +534515,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -535870,10 +534963,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -537443,9 +536537,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -537611,7 +536702,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -537632,8 +536723,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -537650,6 +536739,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -539614,9 +538704,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -539653,7 +538740,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -540102,10 +539188,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" @@ -541681,9 +540768,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -541849,7 +540933,7 @@ "$ref": "#/definitions/SecurityKey" } }, - "handle": { + "tag": { "type": "string" }, "id": { @@ -541870,8 +540954,6 @@ "extended_settings", "fingerprints", "flags", - "global_name", - "handle", "id", "mfa_enabled", "mobile", @@ -541888,6 +540970,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -543852,9 +542935,6 @@ "global_name": { "type": "string" }, - "display_name": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -543891,7 +542971,6 @@ "bio", "bot", "discriminator", - "global_name", "id", "premium_since", "premium_type", @@ -544340,10 +543419,11 @@ "type": "string" }, "global_name": { - "type": "string" - }, - "display_name": { - "type": "string" + "type": [ + "null", + "string" + ], + "default": null }, "discriminator": { "type": "string" diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index 8b028f431..1fe6d0ee1 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -176,9 +176,8 @@ router.get( x.author = User.create({ id: "4", discriminator: pomeloEnabled ? "0" : "0000", - username: "Spacebar Ghost", - global_name: "spacebarghost", - display_name: "Spacebar Ghost", + username: "spacebarghost", + global_name: "Spacebar Ghost", public_flags: 0, }); x.attachments?.forEach((y: Attachment) => { diff --git a/src/api/routes/guilds/#guild_id/bans.ts b/src/api/routes/guilds/#guild_id/bans.ts index ede9f4bde..87fcc7f17 100644 --- a/src/api/routes/guilds/#guild_id/bans.ts +++ b/src/api/routes/guilds/#guild_id/bans.ts @@ -71,7 +71,6 @@ router.get( username: user.username, discriminator: user.discriminator, global_name: user.global_name, - display_name: user.display_name, id: user.id, avatar: user.avatar, public_flags: user.public_flags, diff --git a/src/api/routes/guilds/#guild_id/messages/search.ts b/src/api/routes/guilds/#guild_id/messages/search.ts index bf5fc4cd4..158c83f31 100644 --- a/src/api/routes/guilds/#guild_id/messages/search.ts +++ b/src/api/routes/guilds/#guild_id/messages/search.ts @@ -150,7 +150,6 @@ router.get( avatar_decoration: null, discriminator: x.author?.discriminator, global_name: x.author?.global_name, - display_name: x.author?.display_name, public_flags: x.author?.public_flags, }, attachments: x.attachments, diff --git a/src/api/routes/oauth2/authorize.ts b/src/api/routes/oauth2/authorize.ts index 11255b98f..b7d1cb71b 100644 --- a/src/api/routes/oauth2/authorize.ts +++ b/src/api/routes/oauth2/authorize.ts @@ -90,7 +90,6 @@ router.get( "avatar", "discriminator", "global_name", - "display_name", "public_flags", ], }); @@ -140,7 +139,6 @@ router.get( avatar_decoration: null, // TODO discriminator: user.discriminator, global_name: user.global_name, - display_name: user.display_name, public_flags: user.public_flags, }, application: { @@ -164,7 +162,6 @@ router.get( avatar_decoration: null, // TODO discriminator: bot.discriminator, global_name: bot.global_name, - display_name: bot.display_name, public_flags: bot.public_flags, bot: true, approximated_guild_count: 0, // TODO diff --git a/src/api/routes/users/#id/relationships.ts b/src/api/routes/users/#id/relationships.ts index 0008e75d0..323ce44b5 100644 --- a/src/api/routes/users/#id/relationships.ts +++ b/src/api/routes/users/#id/relationships.ts @@ -59,7 +59,6 @@ router.get( avatar: relation_user.avatar, discriminator: relation_user.discriminator, global_name: relation_user.global_name, - display_name: relation_user.display_name, public_flags: relation_user.public_flags, }); } diff --git a/src/connections/Discord/index.ts b/src/connections/Discord/index.ts index 206aa6719..a88a38ce2 100644 --- a/src/connections/Discord/index.ts +++ b/src/connections/Discord/index.ts @@ -17,6 +17,7 @@ */ import { + Config, ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, Connection, @@ -31,8 +32,7 @@ interface UserResponse { id: string; username: string; discriminator: string; - global_name: string; - display_name?: string; + global_name: string | null; avatar_url: string | null; } @@ -130,12 +130,14 @@ export default class DiscordConnection extends Connection { if (exists) return null; - // TODO: pomelo + const { pomeloEnabled } = Config.get().general; return await this.createConnection({ user_id: userId, external_id: userInfo.id, friend_sync: params.friend_sync, - name: `${userInfo.username}#${userInfo.discriminator}`, + name: pomeloEnabled + ? userInfo.username + : `${userInfo.username}#${userInfo.discriminator}`, type: this.id, }); } diff --git a/src/util/dtos/UserDTO.ts b/src/util/dtos/UserDTO.ts index 5687bcefb..063490fa4 100644 --- a/src/util/dtos/UserDTO.ts +++ b/src/util/dtos/UserDTO.ts @@ -21,8 +21,7 @@ import { User } from "../entities"; export class MinimalPublicUserDTO { id: string; username: string; - global_name: string; - display_name?: string; + global_name: string | null = null; discriminator: string; public_flags: number; avatar?: string | null; @@ -30,10 +29,10 @@ export class MinimalPublicUserDTO { constructor(user: User) { this.id = user.id; this.username = user.username; - this.global_name = user.global_name; - this.display_name = user.display_name; this.discriminator = user.discriminator; this.public_flags = user.public_flags; this.avatar = user.avatar; + + if (user.global_name) this.global_name = user.global_name; } } diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index 85dc56ee2..c1a05e516 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -38,7 +38,6 @@ import { UserSettings } from "./UserSettings"; export enum PublicUserEnum { username, global_name, - display_name, discriminator, id, public_flags, @@ -93,10 +92,7 @@ export class User extends BaseClass { username: string; // username max length 32, min 2 (should be configurable) @Column({ nullable: true }) - global_name: string; // puyo: pomelo - - @Column({ nullable: true }) - display_name?: string; // puyo: pomelo + global_name?: string; // puyo: pomelo @Column() discriminator: string; // opaque string: 4 digits on discord.com, 0 for pomelo @@ -388,8 +384,6 @@ export class User extends BaseClass { const user = User.create({ username: username, - global_name: username, // TODO: convert to lowercase, strip special characters,etc??? - // display_name: username, // TODO: how should we do this? discriminator, id: id || Snowflake.generate(), email: email, diff --git a/src/util/schemas/responses/GuildBansResponse.ts b/src/util/schemas/responses/GuildBansResponse.ts index aa53105d2..0505327a5 100644 --- a/src/util/schemas/responses/GuildBansResponse.ts +++ b/src/util/schemas/responses/GuildBansResponse.ts @@ -21,8 +21,7 @@ export interface GuildBansResponse { user: { username: string; discriminator: string; - global_name: string; - display_name: string | null; + global_name?: string; id: string; avatar: string | null; public_flags: number; diff --git a/src/util/schemas/responses/GuildWidgetJsonResponse.ts b/src/util/schemas/responses/GuildWidgetJsonResponse.ts index 60e8e7cc7..320f14dde 100644 --- a/src/util/schemas/responses/GuildWidgetJsonResponse.ts +++ b/src/util/schemas/responses/GuildWidgetJsonResponse.ts @@ -30,8 +30,7 @@ export interface GuildWidgetJsonResponse { members: { id: string; username: string; - global_name: string; - display_name: string | null; + global_name: string | null; discriminator: string; avatar: string | null; status: ClientStatus; diff --git a/src/util/schemas/responses/UserRelationsResponse.ts b/src/util/schemas/responses/UserRelationsResponse.ts index 59db277f6..586c8fac9 100644 --- a/src/util/schemas/responses/UserRelationsResponse.ts +++ b/src/util/schemas/responses/UserRelationsResponse.ts @@ -20,7 +20,6 @@ import { User } from "@spacebar/util"; export type UserRelationsResponse = (Pick & Pick & Pick & - Pick & Pick & Pick & Pick)[]; diff --git a/src/util/util/email/index.ts b/src/util/util/email/index.ts index 6d34e2349..b7df5cb94 100644 --- a/src/util/util/email/index.ts +++ b/src/util/util/email/index.ts @@ -112,12 +112,10 @@ export const Email: { ) { const { instanceName } = Config.get().general; - // TODO: pomelo: display_name should take precedence over username if pomelo is enabled. maybe we should use global_name as the username? const replacements = [ ["{instanceName}", instanceName], ["{userUsername}", user.username], ["{userGlobalName}", user.global_name], - ["{userDisplayName}", user.display_name], ["{userDiscriminator}", user.discriminator], ["{userId}", user.id], ["{phoneNumber}", user.phone?.slice(-4)], From 84a69a8a6884ebd4975167f993d8d2614d038ee5 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 19 May 2023 15:14:40 -0400 Subject: [PATCH 05/16] rename pomeloEnabled to uniqueUsernames --- assets/openapi.json | 6 +++--- assets/schemas.json | 6 +++--- .../routes/channels/#channel_id/messages/index.ts | 4 ++-- src/api/routes/users/@me/index.ts | 4 ++-- src/api/routes/users/@me/relationships.ts | 6 +++--- src/connections/Discord/index.ts | 4 ++-- src/util/config/types/GeneralConfiguration.ts | 2 +- src/util/entities/User.ts | 14 +++++++------- src/util/schemas/RelationshipPostSchema.ts | 2 +- 9 files changed, 24 insertions(+), 24 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index 7132ad932..131e370b2 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -7306,7 +7306,7 @@ "type": "boolean", "default": false }, - "pomeloEnabled": { + "uniqueUsernames": { "type": "boolean", "default": false } @@ -7320,8 +7320,8 @@ "instanceDescription", "instanceId", "instanceName", - "pomeloEnabled", - "tosPage" + "tosPage", + "uniqueUsernames" ] }, "APIChannelArray": { diff --git a/assets/schemas.json b/assets/schemas.json index 24c016c24..7f74d353a 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -429307,7 +429307,7 @@ "type": "boolean", "default": false }, - "pomeloEnabled": { + "uniqueUsernames": { "type": "boolean", "default": false } @@ -429322,8 +429322,8 @@ "instanceDescription", "instanceId", "instanceName", - "pomeloEnabled", - "tosPage" + "tosPage", + "uniqueUsernames" ], "definitions": { "ChannelPermissionOverwriteType": { diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index 1fe6d0ee1..6741790c8 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -171,11 +171,11 @@ router.get( if ((y.user_ids || []).includes(req.user_id)) y.me = true; delete y.user_ids; }); - const { pomeloEnabled } = Config.get().general; + const { uniqueUsernames } = Config.get().general; if (!x.author) x.author = User.create({ id: "4", - discriminator: pomeloEnabled ? "0" : "0000", + discriminator: uniqueUsernames ? "0" : "0000", username: "spacebarghost", global_name: "Spacebar Ghost", public_flags: 0, diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index 1d2095427..fc44e17e9 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -140,7 +140,7 @@ router.patch( newToken = (await generateToken(user.id)) as string; } - // TODO: pomelo: disallow if pomelo is enabled + // TODO: uniqueUsernames: disallow if uniqueUsernames is enabled if (body.username) { const check_username = body?.username?.replace(/\s/g, ""); if (!check_username) { @@ -163,7 +163,7 @@ router.patch( } } - // TODO: pomelo: disallow if pomelo is enabled + // TODO: uniqueUsernames: disallow if uniqueUsernames is enabled if (body.discriminator) { if ( await User.findOne({ diff --git a/src/api/routes/users/@me/relationships.ts b/src/api/routes/users/@me/relationships.ts index 083426020..5fc55e585 100644 --- a/src/api/routes/users/@me/relationships.ts +++ b/src/api/routes/users/@me/relationships.ts @@ -114,10 +114,10 @@ router.post( }, }), async (req: Request, res: Response) => { - const { pomeloEnabled } = Config.get().general; - const where = pomeloEnabled + const { uniqueUsernames } = Config.get().general; + const where = uniqueUsernames ? { - // TODO: pomelo: should we use username or add global_name property to the request? + // TODO: uniqueUsernames: should we use username or add global_name property to the request? global_name: req.body.username, } : { diff --git a/src/connections/Discord/index.ts b/src/connections/Discord/index.ts index a88a38ce2..35bae5149 100644 --- a/src/connections/Discord/index.ts +++ b/src/connections/Discord/index.ts @@ -130,12 +130,12 @@ export default class DiscordConnection extends Connection { if (exists) return null; - const { pomeloEnabled } = Config.get().general; + const { uniqueUsernames } = Config.get().general; return await this.createConnection({ user_id: userId, external_id: userInfo.id, friend_sync: params.friend_sync, - name: pomeloEnabled + name: uniqueUsernames ? userInfo.username : `${userInfo.username}#${userInfo.discriminator}`, type: this.id, diff --git a/src/util/config/types/GeneralConfiguration.ts b/src/util/config/types/GeneralConfiguration.ts index df3dfbcdc..b5c8b2729 100644 --- a/src/util/config/types/GeneralConfiguration.ts +++ b/src/util/config/types/GeneralConfiguration.ts @@ -29,5 +29,5 @@ export class GeneralConfiguration { image: string | null = null; instanceId: string = Snowflake.generate(); autoCreateBotUsers: boolean = false; - pomeloEnabled: boolean = false; + uniqueUsernames: boolean = false; } diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index c1a05e516..fea8ad498 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -92,10 +92,10 @@ export class User extends BaseClass { username: string; // username max length 32, min 2 (should be configurable) @Column({ nullable: true }) - global_name?: string; // puyo: pomelo + global_name?: string; // puyo: uniqueUsernames @Column() - discriminator: string; // opaque string: 4 digits on discord.com, 0 for pomelo + discriminator: string; // opaque string: 4 digits on discord.com, 0 for uniqueUsernames @Column({ nullable: true }) avatar?: string; // hash of the user avatar @@ -328,10 +328,10 @@ export class User extends BaseClass { } public get tag(): string { - const { pomeloEnabled } = Config.get().general; + const { uniqueUsernames } = Config.get().general; - // if pomelo is enabled, global_name should be set - return pomeloEnabled + // if uniqueUsernames is enabled, global_name should be set + return uniqueUsernames ? (this.global_name as string) : `${this.username}#${this.discriminator}`; } @@ -350,13 +350,13 @@ export class User extends BaseClass { id?: string; req?: Request; }) { - const { pomeloEnabled } = Config.get().general; + const { uniqueUsernames } = Config.get().general; // trim special uf8 control characters -> Backspace, Newline, ... username = trimSpecial(username); let discriminator: string | undefined; - if (pomeloEnabled) discriminator = "0"; + if (uniqueUsernames) discriminator = "0"; else { discriminator = await User.generateDiscriminator(username); if (!discriminator) { diff --git a/src/util/schemas/RelationshipPostSchema.ts b/src/util/schemas/RelationshipPostSchema.ts index f0a5fc32a..8b9f8611d 100644 --- a/src/util/schemas/RelationshipPostSchema.ts +++ b/src/util/schemas/RelationshipPostSchema.ts @@ -16,7 +16,7 @@ along with this program. If not, see . */ -// TODO: pomelo? +// TODO: uniqueUsernames? export interface RelationshipPostSchema { discriminator: string; username: string; From a7ea2d3d1cd8dc3479f47066fb551c023de03bb3 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 19 May 2023 15:46:52 -0400 Subject: [PATCH 06/16] add legacy_username user field --- assets/openapi.json | 12 + assets/schemas.json | 774 ++++++++++++++++++++++++++++ src/api/routes/users/#id/profile.ts | 1 + src/util/entities/User.ts | 6 +- 4 files changed, 792 insertions(+), 1 deletion(-) diff --git a/assets/openapi.json b/assets/openapi.json index 131e370b2..4c9006c29 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -1362,6 +1362,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -3496,6 +3499,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -7026,6 +7032,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -7146,6 +7155,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, diff --git a/assets/schemas.json b/assets/schemas.json index 7f74d353a..9a00e6132 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -1493,6 +1493,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -3660,6 +3663,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -5730,6 +5736,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -7897,6 +7906,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -9967,6 +9979,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -12134,6 +12149,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -14199,6 +14217,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -16366,6 +16387,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -18467,6 +18491,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -20634,6 +20661,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -22704,6 +22734,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -24871,6 +24904,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -26932,6 +26968,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -29099,6 +29138,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -31163,6 +31205,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -33330,6 +33375,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -35403,6 +35451,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -37570,6 +37621,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -39631,6 +39685,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -41798,6 +41855,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -43859,6 +43919,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -46026,6 +46089,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -48106,6 +48172,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -50273,6 +50342,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -52337,6 +52409,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -54504,6 +54579,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -56628,6 +56706,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -58795,6 +58876,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -60878,6 +60962,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -63045,6 +63132,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -65269,6 +65359,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -67436,6 +67529,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -69518,6 +69614,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -71685,6 +71784,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -73777,6 +73879,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -75944,6 +76049,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -78018,6 +78126,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -80185,6 +80296,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -82265,6 +82379,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -84432,6 +84549,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -86502,6 +86622,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -88669,6 +88792,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -90727,6 +90853,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -92894,6 +93023,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -95070,6 +95202,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -97237,6 +97372,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -99410,6 +99548,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -101577,6 +101718,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -103638,6 +103782,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -105805,6 +105952,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -107874,6 +108024,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -110041,6 +110194,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -112103,6 +112259,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -114270,6 +114429,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -116332,6 +116494,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -118499,6 +118664,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -120596,6 +120764,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -122763,6 +122934,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -124825,6 +124999,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -126992,6 +127169,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -129053,6 +129233,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -131220,6 +131403,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -133296,6 +133482,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -135463,6 +135652,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -137528,6 +137720,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -139695,6 +139890,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -141834,6 +142032,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -144001,6 +144202,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -146062,6 +146266,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -148229,6 +148436,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -150290,6 +150500,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -152457,6 +152670,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -154515,6 +154731,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -156682,6 +156901,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -158746,6 +158968,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -160913,6 +161138,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -162987,6 +163215,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -165154,6 +165385,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -167212,6 +167446,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -169379,6 +169616,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -171486,6 +171726,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -173653,6 +173896,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -175746,6 +175992,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -177913,6 +178162,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -179971,6 +180223,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -182138,6 +182393,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -184221,6 +184479,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -186388,6 +186649,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -188560,6 +188824,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -190727,6 +190994,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -192784,6 +193054,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -194951,6 +195224,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -197047,6 +197323,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -199214,6 +199493,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -201298,6 +201580,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -203465,6 +203750,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -205601,6 +205889,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -207768,6 +208059,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -209826,6 +210120,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -211993,6 +212290,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -214059,6 +214359,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -216226,6 +216529,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -218282,6 +218588,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -220449,6 +220758,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -222511,6 +222823,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -224678,6 +224993,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -226740,6 +227058,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -228907,6 +229228,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -230969,6 +231293,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -233136,6 +233463,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -235230,6 +235560,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -237397,6 +237730,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -239463,6 +239799,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -241630,6 +241969,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -243686,6 +244028,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -245853,6 +246198,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -247915,6 +248263,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -250082,6 +250433,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -252155,6 +252509,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -254322,6 +254679,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -256409,6 +256769,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -258576,6 +258939,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -260634,6 +261000,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -262801,6 +263170,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -264862,6 +265234,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -267029,6 +267404,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -269122,6 +269500,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -271289,6 +271670,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -273347,6 +273731,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -275514,6 +275901,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -277651,6 +278041,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -279818,6 +280211,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -281883,6 +282279,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -284050,6 +284449,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -286108,6 +286510,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -288275,6 +288680,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -290333,6 +290741,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -292500,6 +292911,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -294565,6 +294979,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -296732,6 +297149,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -298794,6 +299214,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -300961,6 +301384,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -303019,6 +303445,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -305186,6 +305615,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -307326,6 +307758,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -309493,6 +309928,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -311562,6 +312000,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -313729,6 +314170,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -315799,6 +316243,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -317966,6 +318413,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -320086,6 +320536,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -322253,6 +322706,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -324332,6 +324788,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -326499,6 +326958,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -328584,6 +329046,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -330751,6 +331216,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -332830,6 +333298,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -334997,6 +335468,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -337055,6 +337529,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -339222,6 +339699,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -341308,6 +341788,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -343475,6 +343958,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -345573,6 +346059,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -347740,6 +348229,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -349792,6 +350284,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -351959,6 +352454,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -354021,6 +354519,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -356188,6 +356689,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -358246,6 +358750,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -360413,6 +360920,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -362478,6 +362988,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -364645,6 +365158,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -366914,6 +367430,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -369081,6 +369600,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -371130,6 +371652,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -373297,6 +373822,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -374244,6 +374772,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -375443,6 +375974,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -377610,6 +378144,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -379662,6 +380199,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -381829,6 +382369,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -383881,6 +384424,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -386048,6 +386594,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -388100,6 +388649,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -390267,6 +390819,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -391217,6 +391772,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -392416,6 +392974,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -394583,6 +395144,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -396633,6 +397197,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -398800,6 +399367,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -400850,6 +401420,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -403017,6 +403590,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -405067,6 +405643,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -407234,6 +407813,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -409286,6 +409868,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -411453,6 +412038,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -413505,6 +414093,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -415672,6 +416263,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -417724,6 +418318,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -419891,6 +420488,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -421943,6 +422543,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -424110,6 +424713,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -426162,6 +426768,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -428329,6 +428938,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -430450,6 +431062,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -432617,6 +433232,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -434669,6 +435287,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -436836,6 +437457,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -438888,6 +439512,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -441055,6 +441682,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -443107,6 +443737,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -445274,6 +445907,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -447373,6 +448009,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -449540,6 +450179,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -451828,6 +452470,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -453995,6 +454640,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -456047,6 +456695,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -458214,6 +458865,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -460266,6 +460920,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -462433,6 +463090,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -464485,6 +465145,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -466652,6 +467315,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -468704,6 +469370,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -470871,6 +471540,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -472949,6 +473621,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -475116,6 +475791,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -477168,6 +477846,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -479335,6 +480016,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -481408,6 +482092,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -483575,6 +484262,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -485641,6 +486331,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -487808,6 +488501,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -489986,6 +490682,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -492153,6 +492852,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -494232,6 +494934,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -496399,6 +497104,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -498469,6 +499177,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -500636,6 +501347,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -502698,6 +503412,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -504865,6 +505582,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -506927,6 +507647,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -509094,6 +509817,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -511143,6 +511869,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -513310,6 +514039,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -515371,6 +516103,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -517538,6 +518273,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -519614,6 +520352,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -521781,6 +522522,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -523861,6 +524605,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -526028,6 +526775,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -528087,6 +528837,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -530254,6 +531007,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -532312,6 +533068,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -534479,6 +535238,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -536537,6 +537299,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -538704,6 +539469,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -540768,6 +541536,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -542935,6 +543706,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, diff --git a/src/api/routes/users/#id/profile.ts b/src/api/routes/users/#id/profile.ts index eecec0f35..4639b84cd 100644 --- a/src/api/routes/users/#id/profile.ts +++ b/src/api/routes/users/#id/profile.ts @@ -111,6 +111,7 @@ router.get( user_profile: userProfile, guild_member: guild_member?.toPublicMember(), guild_member_profile: guild_id && guildMemberProfile, + legacy_username: user.legacy_username, // part of the uniqueUsernames feature, only used for migrated accounts }); }, ); diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index fea8ad498..acd2ea748 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -38,6 +38,7 @@ import { UserSettings } from "./UserSettings"; export enum PublicUserEnum { username, global_name, + legacy_username, discriminator, id, public_flags, @@ -92,7 +93,10 @@ export class User extends BaseClass { username: string; // username max length 32, min 2 (should be configurable) @Column({ nullable: true }) - global_name?: string; // puyo: uniqueUsernames + global_name?: string; // puyo: part of the uniqueUsernames feature, this is the users "nickname" + + @Column({ nullable: true }) + legacy_username?: string; // puyo: part of the uniqueUsernames feature, shows the users old username (only used for migrated accounts) @Column() discriminator: string; // opaque string: 4 digits on discord.com, 0 for uniqueUsernames From 07569328b14d346eb45bf865e9f610dc3f689ee6 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Wed, 14 Jun 2023 11:37:17 -0400 Subject: [PATCH 07/16] update user modify for unique usernames --- assets/locales/en/common.json | 6 +- assets/locales/ur/auth.json | 4 +- assets/openapi.json | 10 +- assets/schemas.json | 10063 +++++++++++++++- src/api/routes/users/@me/index.ts | 63 +- .../subconfigurations/limits/UserLimits.ts | 1 + src/util/entities/User.ts | 9 +- src/util/schemas/UserModifySchema.ts | 1 + 8 files changed, 9771 insertions(+), 386 deletions(-) diff --git a/assets/locales/en/common.json b/assets/locales/en/common.json index edcafa1da..dcb97ec0b 100644 --- a/assets/locales/en/common.json +++ b/assets/locales/en/common.json @@ -13,7 +13,11 @@ "BASE_TYPE_CONSTANT": "This field must be {{value}}", "EMAIL_TYPE_INVALID_EMAIL": "Not a well-formed email address", "DATE_TYPE_PARSE": "Could not parse {{date}}. Should be ISO8601", - "BASE_TYPE_BAD_LENGTH": "Must be between {{length}} in length" + "BASE_TYPE_BAD_LENGTH": "Must be between {{length}} in length", + "PASSWORD_DOES_NOT_MATCH": "Password does not match.", + "DISCRIMINATOR_UPDATE_BLOCKED": "This discriminator cannot be updated", + "USERNAME_ALREADY_TAKEN": "Username is unavailable. Try adding numbers, letters, underscores _ , or periods.", + "INVALID_DISCRIMINATOR": "This discriminator is already in use." }, "body": { "INVALID_BODY": "Invalid Body", diff --git a/assets/locales/ur/auth.json b/assets/locales/ur/auth.json index 1dac24744..93631abcf 100644 --- a/assets/locales/ur/auth.json +++ b/assets/locales/ur/auth.json @@ -10,8 +10,8 @@ "EMAIL_INVALID": "Invalid Email", "EMAIL_ALREADY_REGISTERED": "Email is already registered", "DATE_OF_BIRTH_UNDERAGE": "You need to be {{years}} years or older", - "PASSWORD_REQUIREMENTS_MIN_LENGTH": "Must be at least {{min}} characters long.", - "CONSENT_REQUIRED": "You must agree to the Terms of Service and Privacy Policy.", + "PASSWORD_REQUIREMENTS_MIN_LENGTH": "Must be at least {{min}} characters long.", + "CONSENT_REQUIRED": "You must agree to the Terms of Service and Privacy Policy.", "USERNAME_TOO_MANY_USERS": "Too many users have this username, please try another" } } diff --git a/assets/openapi.json b/assets/openapi.json index 4c9006c29..7b2243e9c 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -4049,6 +4049,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -4061,7 +4065,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -5835,6 +5840,9 @@ "minLength": 4, "maxLength": 4, "type": "string" + }, + "global_name": { + "type": "string" } } }, diff --git a/assets/schemas.json b/assets/schemas.json index 9a00e6132..0f2602f71 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -4237,6 +4237,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -4250,7 +4254,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -8480,6 +8485,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -8493,7 +8502,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -12723,6 +12733,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -12736,7 +12750,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -16961,6 +16976,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -16974,7 +16993,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -21235,6 +21255,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -21248,7 +21272,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -25478,6 +25503,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -25491,7 +25520,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -29712,6 +29742,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -29725,7 +29759,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -33949,6 +33984,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -33962,7 +34001,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -38195,6 +38235,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -38208,7 +38252,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -42429,6 +42474,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -42442,7 +42491,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -46663,6 +46713,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -46676,7 +46730,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -50916,6 +50971,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -50929,7 +50988,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -55153,6 +55213,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -55166,7 +55230,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -59450,6 +59515,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -59463,7 +59532,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -63706,6 +63776,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -63719,7 +63793,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -68103,6 +68178,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -68116,7 +68195,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -72358,6 +72438,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -72371,7 +72455,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -76623,6 +76708,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -76636,7 +76725,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -80870,6 +80960,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -80883,7 +80977,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -85123,6 +85218,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -85136,7 +85235,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -89366,6 +89466,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -89379,7 +89483,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -93597,6 +93702,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -93610,7 +93719,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -97946,6 +98056,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -97959,7 +98073,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -102292,6 +102407,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -102305,7 +102424,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -106526,6 +106646,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -106539,7 +106663,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -110768,6 +110893,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -110781,7 +110910,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -115003,6 +115133,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -115016,7 +115150,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -119238,6 +119373,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -119251,7 +119390,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -123508,6 +123648,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -123521,7 +123665,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -127743,6 +127888,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -127756,7 +127905,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -131977,6 +132127,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -131990,7 +132144,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -136226,6 +136381,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -136239,7 +136398,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -140464,6 +140624,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -140477,7 +140641,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -144776,6 +144941,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -144789,7 +144958,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -149010,6 +149180,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -149023,7 +149197,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -153244,6 +153419,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -153257,7 +153436,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -157475,6 +157655,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -157488,7 +157672,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -161712,6 +161897,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -161725,7 +161914,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -165959,6 +166149,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -165972,7 +166166,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -170190,6 +170385,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -170203,7 +170402,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -174470,6 +174670,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -174483,7 +174687,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -174864,6 +175069,9 @@ "minLength": 4, "maxLength": 4, "type": "string" + }, + "global_name": { + "type": "string" } }, "additionalProperties": false, @@ -178736,6 +178944,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -178749,7 +178961,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -182967,6 +183180,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -182980,7 +183197,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -187223,6 +187441,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -187236,7 +187458,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -191568,6 +191791,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -191581,7 +191808,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -195798,6 +196026,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -195811,7 +196043,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -200067,6 +200300,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -200080,7 +200317,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -204324,6 +204562,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -204337,7 +204579,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -208633,6 +208876,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -208646,7 +208893,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -212864,6 +213112,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -212877,7 +213129,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -217103,6 +217356,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -217116,7 +217373,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -221332,6 +221590,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -221345,7 +221607,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -225567,6 +225830,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -225580,7 +225847,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -229802,6 +230070,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -229815,7 +230087,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -234037,6 +234310,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -234050,7 +234327,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -238304,6 +238582,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -238317,7 +238599,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -242543,6 +242826,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -242556,7 +242843,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -246772,6 +247060,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -246785,7 +247077,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -251007,6 +251300,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -251020,7 +251317,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -255253,6 +255551,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -255266,7 +255568,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -259513,6 +259816,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -259526,7 +259833,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -263744,6 +264052,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -263757,7 +264069,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -267978,6 +268291,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -267991,7 +268308,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -272244,6 +272562,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -272257,7 +272579,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -276475,6 +276798,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -276488,7 +276815,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -280785,6 +281113,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -280798,7 +281130,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -285023,6 +285356,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -285036,7 +285373,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -289254,6 +289592,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -289267,7 +289609,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -293485,6 +293828,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -293498,7 +293845,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -297723,6 +298071,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -297736,7 +298088,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -301958,6 +302311,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -301971,7 +302328,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -306189,6 +306547,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -306202,7 +306564,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -310502,6 +310865,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -310515,7 +310882,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -314744,6 +315112,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -314757,7 +315129,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -318987,6 +319360,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -319000,7 +319377,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -323280,6 +323658,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -323293,7 +323675,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -327532,6 +327915,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -327545,7 +327932,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -331790,6 +332178,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -331803,7 +332195,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -336042,6 +336435,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -336055,7 +336452,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -340273,6 +340671,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -340286,7 +340688,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -344532,6 +344935,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -344545,7 +344952,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -348803,6 +349211,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -348816,7 +349228,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -353028,6 +353441,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -353041,7 +353458,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -357263,6 +357681,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -357276,7 +357698,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -361494,6 +361917,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -361507,7 +361934,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -365732,6 +366160,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -365745,7 +366177,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -370174,6 +370607,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -370187,7 +370624,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -374396,6 +374834,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -374409,7 +374851,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -378718,6 +379161,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -378731,7 +379178,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -382943,6 +383391,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -382956,7 +383408,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -387168,6 +387621,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -387181,7 +387638,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -391393,6 +391851,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -391406,7 +391868,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -395718,6 +396181,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -395731,7 +396198,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -399941,6 +400409,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -399954,7 +400426,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -404164,6 +404637,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -404177,7 +404654,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -408387,6 +408865,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -408400,7 +408882,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -412612,6 +413095,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -412625,7 +413112,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -416837,6 +417325,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -416850,7 +417342,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -421062,6 +421555,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -421075,7 +421572,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -425287,6 +425785,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -425300,7 +425802,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -429512,6 +430015,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -429525,7 +430032,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -433806,6 +434314,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -433819,7 +434331,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -438031,6 +438544,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -438044,7 +438561,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -442256,6 +442774,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -442269,7 +442791,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -446481,6 +447004,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -446494,7 +447021,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -447921,10 +448449,8 @@ "type": "integer", "default": 0 }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, +<<<<<<< HEAD +======= "id": { "type": "string" } @@ -447938,7 +448464,6 @@ "nsfw", "owner", "parent_id", - "position", "type" ] }, @@ -448999,6 +449524,7 @@ }, "additionalProperties": false, "required": [ + "avatar", "banner", "bio", "communication_disabled_until", @@ -449043,9 +449569,13 @@ "permissions": { "type": "string" }, +>>>>>>> 99963e1b (update user modify for unique usernames) "position": { + "description": "Must be calculated Channel.calculatePosition", "type": "integer" }, +<<<<<<< HEAD +======= "icon": { "type": "string" }, @@ -450170,9 +450700,6 @@ "type": "string", "format": "date-time" }, - "avatar": { - "type": "string" - }, "username": { "type": "string" }, @@ -450188,6 +450715,9 @@ "public_flags": { "type": "integer" }, + "avatar": { + "type": "string" + }, "accent_color": { "type": "integer" }, @@ -450562,12 +451092,6 @@ }, "premium_progress_bar_enabled": { "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } } }, "additionalProperties": false, @@ -450575,7 +451099,6 @@ "_do_validate", "assign", "bans", - "channel_ordering", "channels", "emojis", "features", @@ -450753,6 +451276,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -450766,7 +451293,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -451311,12 +451839,6 @@ "type": "boolean", "default": false }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, "id": { "type": "string" } @@ -451324,7 +451846,6 @@ "additionalProperties": false, "required": [ "bans", - "channel_ordering", "channels", "emojis", "features", @@ -452230,12 +452751,6 @@ "type": "boolean", "default": false }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, "id": { "type": "string" } @@ -452243,7 +452758,6 @@ "additionalProperties": false, "required": [ "bans", - "channel_ordering", "channels", "emojis", "features", @@ -452316,6 +452830,9 @@ "default_auto_archive_duration": { "type": "integer" }, + "position": { + "type": "integer" + }, "permission_overwrites": { "type": "array", "items": { @@ -452382,10 +452899,7 @@ "type": "integer", "default": 0 }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, +>>>>>>> 99963e1b (update user modify for unique usernames) "id": { "type": "string" } @@ -455565,11 +456079,247 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIRoleArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" + "APIGuildWithJoinedAt": { + "type": "object", + "properties": { + "joined_at": { + "type": "string" + }, + "afk_channel_id": { + "type": "string" + }, + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "id", + "invites", + "joined_at", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -459439,6 +460189,8470 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + } + }, + "additionalProperties": false, + "required": [ + "maxFriends", + "maxGuilds", + "maxUsername", + "minUsername" + ] + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles" + ] + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxReactions", + "maxTTSCharacters" + ] + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + } + }, + "additionalProperties": false, + "required": [ + "maxPins", + "maxTopic", + "maxWebhooks" + ] + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/definitions/RateLimitOptions" + }, + "global": { + "$ref": "#/definitions/RateLimitOptions" + }, + "error": { + "$ref": "#/definitions/RateLimitOptions" + }, + "routes": { + "$ref": "#/definitions/RouteRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ] + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "window" + ] + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/RateLimitOptions" + }, + "webhook": { + "$ref": "#/definitions/RateLimitOptions" + }, + "channel": { + "$ref": "#/definitions/RateLimitOptions" + }, + "auth": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "register", + "sendMessage" + ] + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "limit", + "window" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "UserProfile": { + "type": "object", + "properties": { + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIRoleArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + }, + "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "ConnectedAccountTokenData": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "expires_at": { + "type": "integer" + }, + "fetched_at": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ] + }, + "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": [ + "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" + } + } + }, + "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" + }, + "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 + }, + "ChannelOverride": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ] + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "all" + ] + }, + "GuildFolder": { + "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" + ] + }, + "GenerateWebAuthnCredentialsSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ] + }, + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ticket": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" + ] + }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string" + }, + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "type": { + "$ref": "#/definitions/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/Recipient" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "parent_id": { + "type": "string" + }, + "parent": { + "$ref": "#/definitions/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "last_pin_timestamp": { + "type": "integer" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "created_at", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ] + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/definitions/UserSettings" + }, + "extended_settings": { + "type": "string", + "default": "{}" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } + }, + "tag": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "tag", + "username", + "verified", + "webauthn_enabled" + ] + }, + "Session": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "session_id": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "client": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "client", + "os", + "version" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/definitions/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/definitions/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ] + }, + "RelationshipType": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/definitions/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ] + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + } + }, + "additionalProperties": false, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ] + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned": { + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type", + "user_id" + ] + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "embeds", + "id", + "mention_channels", + "mention_roles", + "mentions", + "reactions", + "timestamp", + "type" + ] + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ] + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "UserGuildSettings": { + "type": "object", + "properties": { + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } + }, + { + "type": "null" + } + ] + }, + "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" + }, + "version": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "number", + "enum": [ + 0 + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_overrides", + "flags", + "guild_id", + "hide_muted_channels", + "message_notifications", + "mobile_push", + "mute_config", + "mute_scheduled_events", + "muted", + "notify_highlights", + "suppress_everyone", + "suppress_roles", + "version" + ] + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "channel", + "channel_id", + "guild", + "guild_id", + "id", + "source_guild", + "source_guild_id", + "type", + "user", + "user_id" + ] + }, + "WebhookType": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/definitions/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ] + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ] + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/definitions/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "membership_state", + "permissions", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "Sticker": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { + "type": "boolean" + }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/definitions/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ] + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "Attachment_1": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "count", + "emoji", + "user_ids" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "public_ack": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "mention_count": { + "type": "integer" + }, + "manual": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "id", + "last_message_id", + "manual", + "mention_count", + "notifications_cursor", + "public_ack", + "user", + "user_id" + ] + }, + "Ban": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "executor_id": { + "type": "string" + }, + "executor": { + "$ref": "#/definitions/User" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "ip", + "user", + "user_id" + ] + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "serialized_source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ] + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "enabled", + "welcome_channels" + ] + }, + "GuildMessagesSearchMessage": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "content": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/PublicUser" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicUser" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, + "timestamp": { + "type": "string" + }, + "edited_timestamp": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": {} + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ] + }, + "GuildVanityUrl": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "code", + "uses" + ] + }, + "GuildVanityUrlNoInvite": { + "type": "object", + "properties": { + "code": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "code" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ] + }, + "BackupCode": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "code": { + "type": "string" + }, + "consumed": { + "type": "boolean" + }, + "expired": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "consumed", + "expired", + "id", + "user" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "toJSON": { + "type": "object", + "additionalProperties": false + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "assign": { + "type": "object", + "additionalProperties": false + }, + "hasId": { + "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", + "type": "object", + "additionalProperties": false + }, + "save": { + "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", + "type": "object", + "additionalProperties": false + }, + "remove": { + "description": "Removes current entity from the database.", + "type": "object", + "additionalProperties": false + }, + "softRemove": { + "description": "Records the delete date of current entity.", + "type": "object", + "additionalProperties": false + }, + "recover": { + "description": "Recovers a given entity in the database.", + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_channel_id": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ] + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ], + "default": null + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "global_name", + "id", + "public_flags", + "username" + ] + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "string" + }, + "is_primary": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ] + }, + "GuildVoiceRegion": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { + "type": "boolean" + }, + "optimal": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal" + ] + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "minUsername": { + "type": "integer", + "default": 2 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + } + }, + "additionalProperties": false, + "required": [ + "maxFriends", + "maxGuilds", + "maxUsername", + "minUsername" + ] + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles" + ] + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxReactions", + "maxTTSCharacters" + ] + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + } + }, + "additionalProperties": false, + "required": [ + "maxPins", + "maxTopic", + "maxWebhooks" + ] + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/definitions/RateLimitOptions" + }, + "global": { + "$ref": "#/definitions/RateLimitOptions" + }, + "error": { + "$ref": "#/definitions/RateLimitOptions" + }, + "routes": { + "$ref": "#/definitions/RouteRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ] + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "window" + ] + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/RateLimitOptions" + }, + "webhook": { + "$ref": "#/definitions/RateLimitOptions" + }, + "channel": { + "$ref": "#/definitions/RateLimitOptions" + }, + "auth": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "register", + "sendMessage" + ] + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "limit", + "window" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "UserProfile": { + "type": "object", + "properties": { + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIStickerArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + }, + "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "ConnectedAccountTokenData": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "expires_at": { + "type": "integer" + }, + "fetched_at": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ] + }, + "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": [ + "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" + } + } + }, + "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" + }, + "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 + }, + "ChannelOverride": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ] + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "all" + ] + }, + "GuildFolder": { + "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" + ] + }, + "GenerateWebAuthnCredentialsSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ] + }, + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ticket": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" + ] + }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string" + }, + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "type": { + "$ref": "#/definitions/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/Recipient" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "parent_id": { + "type": "string" + }, + "parent": { + "$ref": "#/definitions/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "last_pin_timestamp": { + "type": "integer" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "created_at", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ] + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/definitions/UserSettings" + }, + "extended_settings": { + "type": "string", + "default": "{}" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } + }, + "tag": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "tag", + "username", + "verified", + "webauthn_enabled" + ] + }, + "Session": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "session_id": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "client": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "client", + "os", + "version" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/definitions/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/definitions/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ] + }, + "RelationshipType": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/definitions/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ] + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + } + }, + "additionalProperties": false, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ] + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned": { + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type", + "user_id" + ] + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "embeds", + "id", + "mention_channels", + "mention_roles", + "mentions", + "reactions", + "timestamp", + "type" + ] + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ] + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "UserGuildSettings": { + "type": "object", + "properties": { + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } + }, + { + "type": "null" + } + ] + }, + "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" + }, + "version": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "number", + "enum": [ + 0 + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_overrides", + "flags", + "guild_id", + "hide_muted_channels", + "message_notifications", + "mobile_push", + "mute_config", + "mute_scheduled_events", + "muted", + "notify_highlights", + "suppress_everyone", + "suppress_roles", + "version" + ] + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "channel", + "channel_id", + "guild", + "guild_id", + "id", + "source_guild", + "source_guild_id", + "type", + "user", + "user_id" + ] + }, + "WebhookType": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/definitions/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ] + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ] + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/definitions/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "membership_state", + "permissions", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "Sticker": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { + "type": "boolean" + }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/definitions/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ] + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "Attachment_1": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "count", + "emoji", + "user_ids" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "public_ack": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "mention_count": { + "type": "integer" + }, + "manual": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "id", + "last_message_id", + "manual", + "mention_count", + "notifications_cursor", + "public_ack", + "user", + "user_id" + ] + }, + "Ban": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "executor_id": { + "type": "string" + }, + "executor": { + "$ref": "#/definitions/User" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "ip", + "user", + "user_id" + ] + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "serialized_source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ] + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "enabled", + "welcome_channels" + ] + }, + "GuildMessagesSearchMessage": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "content": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/PublicUser" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicUser" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, + "timestamp": { + "type": "string" + }, + "edited_timestamp": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": {} + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ] + }, + "GuildVanityUrl": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "code", + "uses" + ] + }, + "GuildVanityUrlNoInvite": { + "type": "object", + "properties": { + "code": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "code" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ] + }, + "BackupCode": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "code": { + "type": "string" + }, + "consumed": { + "type": "boolean" + }, + "expired": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "consumed", + "expired", + "id", + "user" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "toJSON": { + "type": "object", + "additionalProperties": false + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "assign": { + "type": "object", + "additionalProperties": false + }, + "hasId": { + "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", + "type": "object", + "additionalProperties": false + }, + "save": { + "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", + "type": "object", + "additionalProperties": false + }, + "remove": { + "description": "Removes current entity from the database.", + "type": "object", + "additionalProperties": false + }, + "softRemove": { + "description": "Records the delete date of current entity.", + "type": "object", + "additionalProperties": false + }, + "recover": { + "description": "Recovers a given entity in the database.", + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_channel_id": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ] + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ], + "default": null + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "global_name", + "id", + "public_flags", + "username" + ] + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "string" + }, + "is_primary": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ] + }, + "GuildVoiceRegion": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { + "type": "boolean" + }, + "optimal": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal" + ] + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -459452,7 +468666,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -459790,10 +469005,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIStickerArray": { + "APITemplateArray": { "type": "array", "items": { - "$ref": "#/definitions/Sticker" + "$ref": "#/definitions/Template" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -463664,6 +472879,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -463677,7 +472896,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -464015,10 +473235,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APITemplateArray": { + "APIGuildVoiceRegion": { "type": "array", "items": { - "$ref": "#/definitions/Template" + "$ref": "#/definitions/GuildVoiceRegion" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -467889,6 +477109,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -467902,7 +477126,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -468240,11 +477465,37 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuildVoiceRegion": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildVoiceRegion" + "APILimitsConfiguration": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/UserLimits" + }, + "guild": { + "$ref": "#/definitions/GuildLimits" + }, + "message": { + "$ref": "#/definitions/MessageLimits" + }, + "channel": { + "$ref": "#/definitions/ChannelLimits" + }, + "rate": { + "$ref": "#/definitions/RateLimits" + }, + "absoluteRate": { + "$ref": "#/definitions/GlobalRateLimits" + } }, + "additionalProperties": false, + "required": [ + "absoluteRate", + "channel", + "guild", + "message", + "rate", + "user" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -472114,6 +481365,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -472127,7 +481382,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -472465,37 +481721,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APILimitsConfiguration": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/UserLimits" - }, - "guild": { - "$ref": "#/definitions/GuildLimits" - }, - "message": { - "$ref": "#/definitions/MessageLimits" - }, - "channel": { - "$ref": "#/definitions/ChannelLimits" - }, - "rate": { - "$ref": "#/definitions/RateLimits" - }, - "absoluteRate": { - "$ref": "#/definitions/GlobalRateLimits" - } + "APIStickerPackArray": { + "type": "array", + "items": { + "$ref": "#/definitions/StickerPack" }, - "additionalProperties": false, - "required": [ - "absoluteRate", - "channel", - "guild", - "message", - "rate", - "user" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -476365,6 +485595,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -476378,7 +485612,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -476716,11 +485951,32 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIStickerPackArray": { - "type": "array", - "items": { - "$ref": "#/definitions/StickerPack" + "UpdatesResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "pub_date": { + "type": "string" + }, + "url": { + "type": "string" + }, + "notes": { + "type": [ + "null", + "string" + ] + } }, + "additionalProperties": false, + "required": [ + "name", + "notes", + "pub_date", + "url" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -480590,6 +489846,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -480603,7 +489863,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -480941,31 +490202,24 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UpdatesResponse": { + "UserNoteResponse": { "type": "object", "properties": { - "name": { + "note": { "type": "string" }, - "pub_date": { + "note_user_id": { "type": "string" }, - "url": { + "user_id": { "type": "string" - }, - "notes": { - "type": [ - "null", - "string" - ] } }, "additionalProperties": false, "required": [ - "name", - "notes", - "pub_date", - "url" + "note", + "note_user_id", + "user_id" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -484836,6 +494090,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -484849,7 +494107,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -485187,24 +494446,136 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserNoteResponse": { + "UserProfileResponse": { "type": "object", "properties": { - "note": { - "type": "string" + "user": { + "$ref": "#/definitions/PublicUser" }, - "note_user_id": { - "type": "string" + "connected_accounts": { + "$ref": "#/definitions/PublicConnectedAccount" }, - "user_id": { - "type": "string" + "premium_guild_since": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "mutual_guilds": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "nick": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + "premium_type": { + "type": "integer" + }, + "profile_themes_experiment_bucket": { + "type": "integer" + }, + "user_profile": { + "$ref": "#/definitions/UserProfile" + }, + "guild_member": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "nick": { + "type": "string" + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "pending": { + "type": "boolean" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "premium_since": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/PublicUser" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "deaf", + "guild_id", + "id", + "joined_at", + "mute", + "pending", + "roles", + "user" + ] + }, + "guild_member_profile": { + "additionalProperties": false, + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "accent_color": { + "type": "null" + } + }, + "required": [ + "accent_color", + "banner", + "bio", + "guild_id" + ] } }, "additionalProperties": false, "required": [ - "note", - "note_user_id", - "user_id" + "connected_accounts", + "mutual_guilds", + "premium_type", + "profile_themes_experiment_bucket", + "user", + "user_profile" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -488510,6 +497881,11 @@ "public_flags": { "type": "integer" }, +<<<<<<< HEAD +======= + "avatar": { + "type": "string" + }, "accent_color": { "type": "integer" }, @@ -488884,12 +498260,6 @@ }, "premium_progress_bar_enabled": { "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } } }, "additionalProperties": false, @@ -488897,7 +498267,6 @@ "_do_validate", "assign", "bans", - "channel_ordering", "channels", "emojis", "features", @@ -489075,6 +498444,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -489088,7 +498461,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -489426,136 +498800,28 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserProfileResponse": { + "UserRelationshipsResponse": { "type": "object", "properties": { - "user": { - "$ref": "#/definitions/PublicUser" - }, - "connected_accounts": { - "$ref": "#/definitions/PublicConnectedAccount" - }, - "premium_guild_since": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "mutual_guilds": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "nick": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - }, - "premium_type": { - "type": "integer" - }, - "profile_themes_experiment_bucket": { - "type": "integer" + "id": { + "type": "string" }, - "user_profile": { - "$ref": "#/definitions/UserProfile" + "type": { + "$ref": "#/definitions/RelationshipType" }, - "guild_member": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "nick": { - "type": "string" - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "pending": { - "type": "boolean" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "premium_since": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/PublicUser" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "deaf", - "guild_id", - "id", - "joined_at", - "mute", - "pending", - "roles", - "user" - ] + "nickname": { + "type": "null" }, - "guild_member_profile": { - "additionalProperties": false, - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "accent_color": { - "type": "null" - } - }, - "required": [ - "accent_color", - "banner", - "bio", - "guild_id" - ] + "user": { + "$ref": "#/definitions/PublicUser" } }, "additionalProperties": false, "required": [ - "connected_accounts", - "mutual_guilds", - "premium_type", - "profile_themes_experiment_bucket", - "user", - "user_profile" + "id", + "nickname", + "type", + "user" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -490442,12 +499708,6 @@ "type": "boolean", "default": false }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, "id": { "type": "string" } @@ -490455,7 +499715,6 @@ "additionalProperties": false, "required": [ "bans", - "channel_ordering", "channels", "emojis", "features", @@ -490528,6 +499787,9 @@ "default_auto_archive_duration": { "type": "integer" }, + "position": { + "type": "integer" + }, "permission_overwrites": { "type": "array", "items": { @@ -490594,10 +499856,6 @@ "type": "integer", "default": 0 }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, "id": { "type": "string" } @@ -490611,7 +499869,6 @@ "nsfw", "owner", "parent_id", - "position", "type" ] }, @@ -491672,6 +500929,7 @@ }, "additionalProperties": false, "required": [ + "avatar", "banner", "bio", "communication_disabled_until", @@ -492843,9 +502101,6 @@ "type": "string", "format": "date-time" }, - "avatar": { - "type": "string" - }, "username": { "type": "string" }, @@ -492861,6 +502116,10 @@ "public_flags": { "type": "integer" }, + "avatar": { + "type": "string" + }, +>>>>>>> 99963e1b (update user modify for unique usernames) "accent_color": { "type": "integer" }, @@ -493426,6 +502685,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -493439,7 +502702,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -501921,6 +511185,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -501934,7 +511202,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -506156,6 +515425,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -506169,7 +515442,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -510391,6 +519665,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -510404,7 +519682,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -514613,6 +523892,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -514626,7 +523909,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -518847,6 +528131,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -518860,7 +528148,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -523096,6 +532385,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -523109,7 +532402,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -527349,6 +536643,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -527362,7 +536660,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -531581,6 +540880,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -531594,7 +540897,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -535812,6 +545116,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -535825,7 +545133,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -540043,6 +549352,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -540056,7 +549369,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -544280,6 +553594,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -544293,7 +553611,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index fc44e17e9..f4578126c 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -70,6 +70,8 @@ router.patch( }), async (req: Request, res: Response) => { const body = req.body as UserModifySchema; + const { uniqueUsernames } = Config.get().general; + const { minUsername, maxUsername } = Config.get().limits.user; const user = await User.findOneOrFail({ where: { id: req.user_id }, @@ -140,8 +142,52 @@ router.patch( newToken = (await generateToken(user.id)) as string; } - // TODO: uniqueUsernames: disallow if uniqueUsernames is enabled if (body.username) { + // password is required to update username + if (!body.password) + throw FieldErrors({ + password: { + message: req.t("common:field.PASSWORD_DOES_NOT_MATCH"), + code: "PASSWORD_DOES_NOT_MATCH", + }, + }); + + // handle username changes (pomelo) + if (uniqueUsernames) { + body.username = body.username.toLowerCase(); + // validate username length + if ( + body.username.length < minUsername || + body.username.length > maxUsername + ) { + throw FieldErrors({ + username: { + code: "BASE_TYPE_BAD_LENGTH", + message: req.t( + "common:field.BASE_TYPE_BAD_LENGTH", + { length: `${minUsername} and ${maxUsername}` }, + ), + }, + }); + } + + // check if username is already taken (pomelo only) + const userCount = await User.count({ + where: { username: body.username }, + }); + if (userCount > 0) { + throw FieldErrors({ + username: { + code: "USERNAME_ALREADY_TAKEN", + message: req.t( + "common:field.USERNAME_ALREADY_TAKEN", + ), + }, + }); + } + } + + // handle username changes (old username system) const check_username = body?.username?.replace(/\s/g, ""); if (!check_username) { throw FieldErrors({ @@ -152,7 +198,6 @@ router.patch( }); } - const { maxUsername } = Config.get().limits.user; if (check_username.length > maxUsername) { throw FieldErrors({ username: { @@ -163,8 +208,18 @@ router.patch( } } - // TODO: uniqueUsernames: disallow if uniqueUsernames is enabled if (body.discriminator) { + if (uniqueUsernames) { + throw FieldErrors({ + username: { + code: "DISCRIMINATOR_UPDATE_BLOCKED", + message: req.t( + "common:field.DISCRIMINATOR_UPDATE_BLOCKED", + ), + }, + }); + } + if ( await User.findOne({ where: { @@ -176,7 +231,7 @@ router.patch( throw FieldErrors({ discriminator: { code: "INVALID_DISCRIMINATOR", - message: "This discriminator is already in use.", + message: req.t("common.field.INVALID_DISCRIMINATOR"), }, }); } diff --git a/src/util/config/types/subconfigurations/limits/UserLimits.ts b/src/util/config/types/subconfigurations/limits/UserLimits.ts index 8f9b1a97f..77092344c 100644 --- a/src/util/config/types/subconfigurations/limits/UserLimits.ts +++ b/src/util/config/types/subconfigurations/limits/UserLimits.ts @@ -18,6 +18,7 @@ export class UserLimits { maxGuilds: number = 1048576; + minUsername: number = 2; maxUsername: number = 32; maxFriends: number = 5000; } diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index acd2ea748..d1fbb5c2b 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -38,7 +38,6 @@ import { UserSettings } from "./UserSettings"; export enum PublicUserEnum { username, global_name, - legacy_username, discriminator, id, public_flags, @@ -241,7 +240,7 @@ export class User extends BaseClass { // TODO: I don't like this method? validate() { - if (this.discriminator) { + if (this.discriminator && this.discriminator !== "0") { const discrim = Number(this.discriminator); if ( isNaN(discrim) || @@ -334,9 +333,8 @@ export class User extends BaseClass { public get tag(): string { const { uniqueUsernames } = Config.get().general; - // if uniqueUsernames is enabled, global_name should be set return uniqueUsernames - ? (this.global_name as string) + ? this.username : `${this.username}#${this.discriminator}`; } @@ -387,7 +385,7 @@ export class User extends BaseClass { }); const user = User.create({ - username: username, + username: uniqueUsernames ? username.toLowerCase() : username, discriminator, id: id || Snowflake.generate(), email: email, @@ -397,7 +395,6 @@ export class User extends BaseClass { }, extended_settings: "{}", settings: settings, - premium_since: Config.get().defaults.user.premium ? new Date() : undefined, diff --git a/src/util/schemas/UserModifySchema.ts b/src/util/schemas/UserModifySchema.ts index e155b9af4..72d15dcb6 100644 --- a/src/util/schemas/UserModifySchema.ts +++ b/src/util/schemas/UserModifySchema.ts @@ -38,4 +38,5 @@ export interface UserModifySchema { * @maxLength 4 */ discriminator?: string; + global_name?: string; } From 4d027a424e442f10371d205e68aa3bf63d0eba0e Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 8 Sep 2023 21:33:04 -0400 Subject: [PATCH 08/16] Implement Pomelo Registration --- assets/locales/en/auth.json | 3 +- assets/openapi.json | 213 +- assets/schemas.json | 3734 +++++++---------- src/api/routes/auth/register.ts | 11 +- .../username-attempt-unauthed.ts | 33 + .../username-suggestions-unauthed.ts | 37 + src/api/routes/users/@me/index.ts | 6 +- src/util/entities/User.ts | 40 + .../schemas/UsernameAttemptUnauthedSchema.ts | 3 + src/util/schemas/index.ts | 1 + .../responses/UsernameAttemptResponse.ts | 3 + 11 files changed, 1835 insertions(+), 2249 deletions(-) create mode 100644 src/api/routes/unique-username/username-attempt-unauthed.ts create mode 100644 src/api/routes/unique-username/username-suggestions-unauthed.ts create mode 100644 src/util/schemas/UsernameAttemptUnauthedSchema.ts create mode 100644 src/util/schemas/responses/UsernameAttemptResponse.ts diff --git a/assets/locales/en/auth.json b/assets/locales/en/auth.json index 2415c657c..a4595662b 100644 --- a/assets/locales/en/auth.json +++ b/assets/locales/en/auth.json @@ -15,7 +15,8 @@ "CONSENT_REQUIRED": "You must agree to the Terms of Service and Privacy Policy.", "USERNAME_TOO_MANY_USERS": "Too many users have this username, please try another", "GUESTS_DISABLED": "Guest users are disabled", - "TOO_MANY_REGISTRATIONS": "Too many registrations, please try again later" + "TOO_MANY_REGISTRATIONS": "Too many registrations, please try again later", + "UNIQUE_USERNAMES_DISABLED": "The Unique Usernames feature is disabled on this instance" }, "password_reset": { "EMAIL_DOES_NOT_EXIST": "Email does not exist.", diff --git a/assets/openapi.json b/assets/openapi.json index 7b2243e9c..c3e1419dd 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -3499,9 +3499,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -6014,6 +6011,17 @@ } } }, + "UsernameAttemptUnauthedSchema": { + "type": "object", + "properties": { + "username": { + "type": "string" + } + }, + "required": [ + "username" + ] + }, "VanityUrlSchema": { "type": "object", "properties": { @@ -7040,9 +7048,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -7163,9 +7168,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -8025,6 +8027,17 @@ "days" ] }, + "UsernameAttemptResponse": { + "type": "object", + "properties": { + "taken": { + "type": "boolean" + } + }, + "required": [ + "taken" + ] + }, "VerifyEmailSchema": { "type": "object", "properties": { @@ -8130,6 +8143,9 @@ { "name": "track" }, + { + "name": "unique-username" + }, { "name": "updates" }, @@ -9775,6 +9791,85 @@ ] } }, + "/unique-username/username-suggestions-unauthed/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "parameters": [ + { + "name": "global_name", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "tags": [ + "unique-username" + ] + } + }, + "/unique-username/username-attempt-unauthed/": { + "post": { + "security": [ + { + "bearer": [] + } + ], + "description": "Check if a username is available", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsernameAttemptUnauthedSchema" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsernameAttemptResponse" + } + } + } + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "tags": [ + "unique-username" + ] + } + }, "/track/": { "post": { "responses": { @@ -10290,6 +10385,15 @@ } } }, + "parameters": [ + { + "name": "client_id", + "in": "query", + "schema": { + "type": "string" + } + } + ], "tags": [ "oauth2" ] @@ -10366,6 +10470,30 @@ ] } }, + "/oauth2/applications/@me/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Application" + } + } + } + } + }, + "tags": [ + "oauth2" + ] + } + }, "/invites/{code}": { "get": { "security": [ @@ -13995,71 +14123,6 @@ ] } }, - "/guilds/{guild_id}/bans/@me": { - "put": { - "security": [ - { - "bearer": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BanCreateSchema" - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Ban" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIErrorResponse" - } - } - } - }, - "403": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIErrorResponse" - } - } - } - } - }, - "parameters": [ - { - "name": "guild_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "description": "guild_id" - } - ], - "tags": [ - "guilds" - ] - } - }, "/guilds/{guild_id}/audit-logs/": { "get": { "security": [ @@ -16408,7 +16471,7 @@ }, "/auth/generate-registration-tokens/": { "get": { - "x-right-required": "OPERATOR", + "x-right-required": "CREATE_REGISTRATION_TOKENS", "security": [ { "bearer": [] diff --git a/assets/schemas.json b/assets/schemas.json index 0f2602f71..b12357ca7 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -3663,9 +3663,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -7911,9 +7908,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -12159,9 +12153,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -16402,9 +16393,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -20681,9 +20669,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -24929,9 +24914,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -29168,9 +29150,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -33410,9 +33389,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -37661,9 +37637,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -41900,9 +41873,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -46139,9 +46109,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -50397,9 +50364,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -54639,9 +54603,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -58941,9 +58902,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -63202,9 +63160,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -67604,9 +67559,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -71864,9 +71816,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -76134,9 +76083,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -80386,9 +80332,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -84644,9 +84587,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -88892,9 +88832,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -93128,9 +93065,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -97482,9 +97416,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -101833,9 +101764,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -106072,9 +106000,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -110319,9 +110244,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -114559,9 +114481,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -118799,9 +118718,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -123074,9 +122990,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -127314,9 +127227,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -131553,9 +131463,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -135807,9 +135714,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -140050,9 +139954,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -144367,9 +144268,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -148606,9 +148504,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -152845,9 +152740,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -157081,9 +156973,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -161323,9 +161212,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -165575,9 +165461,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -169811,9 +169694,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -174096,9 +173976,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -178370,9 +178247,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -182606,9 +182480,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -186867,9 +186738,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -191217,9 +191085,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -192147,16 +192012,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VanityUrlSchema": { + "UsernameAttemptUnauthedSchema": { "type": "object", "properties": { - "code": { - "minLength": 1, - "maxLength": 20, + "username": { "type": "string" } }, "additionalProperties": false, + "required": [ + "username" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -195452,9 +195318,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -196382,55 +196245,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceIdentifySchema": { + "VanityUrlSchema": { "type": "object", "properties": { - "server_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "session_id": { - "type": "string" - }, - "token": { + "code": { + "minLength": 1, + "maxLength": 20, "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": [ @@ -199726,9 +199550,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -200656,42 +200477,54 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceStateUpdateSchema": { + "VoiceIdentifySchema": { "type": "object", "properties": { - "guild_id": { + "server_id": { "type": "string" }, - "channel_id": { + "user_id": { "type": "string" }, - "self_mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "preferred_region": { + "session_id": { "type": "string" }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" + "token": { + "type": "string" }, - "suppress": { + "video": { "type": "boolean" }, - "flags": { - "type": "integer" + "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": [ - "self_deaf", - "self_mute" + "server_id", + "session_id", + "token", + "user_id" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -203988,9 +203821,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -204918,94 +204748,42 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceVideoSchema": { + "VoiceStateUpdateSchema": { "type": "object", "properties": { - "audio_ssrc": { - "type": "integer" + "guild_id": { + "type": "string" }, - "video_ssrc": { - "type": "integer" + "channel_id": { + "type": "string" }, - "rtx_ssrc": { - "type": "integer" + "self_mute": { + "type": "boolean" }, - "user_id": { + "self_deaf": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "preferred_region": { "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" - ] - } + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "suppress": { + "type": "boolean" + }, + "flags": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "audio_ssrc", - "video_ssrc" + "self_deaf", + "self_mute" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -208302,9 +208080,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -209232,16 +209007,94 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GenerateWebAuthnCredentialsSchema": { + "VoiceVideoSchema": { "type": "object", "properties": { - "password": { + "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": [ - "password" + "audio_ssrc", + "video_ssrc" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -212538,9 +212391,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -213468,24 +213318,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "CreateWebAuthnCredentialSchema": { + "GenerateWebAuthnCredentialsSchema": { "type": "object", "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { + "password": { "type": "string" } }, "additionalProperties": false, "required": [ - "credential", - "name", - "ticket" + "password" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -216782,9 +216624,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -217712,14 +217551,24 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnPostSchema": { - "anyOf": [ - { - "$ref": "#/definitions/GenerateWebAuthnCredentialsSchema" + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" }, - { - "$ref": "#/definitions/CreateWebAuthnCredentialSchema" + "name": { + "type": "string" + }, + "ticket": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -221016,9 +220865,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -221946,20 +221792,14 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnTotpSchema": { - "type": "object", - "properties": { - "code": { - "type": "string" + "WebAuthnPostSchema": { + "anyOf": [ + { + "$ref": "#/definitions/GenerateWebAuthnCredentialsSchema" }, - "ticket": { - "type": "string" + { + "$ref": "#/definitions/CreateWebAuthnCredentialSchema" } - }, - "additionalProperties": false, - "required": [ - "code", - "ticket" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -225256,9 +225096,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -226186,20 +226023,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebhookCreateSchema": { + "WebAuthnTotpSchema": { "type": "object", "properties": { - "name": { - "maxLength": 80, + "code": { "type": "string" }, - "avatar": { + "ticket": { "type": "string" } }, "additionalProperties": false, "required": [ - "name" + "code", + "ticket" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -229496,9 +229333,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -230426,20 +230260,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WidgetModifySchema": { + "WebhookCreateSchema": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "name": { + "maxLength": 80, + "type": "string" }, - "channel_id": { + "avatar": { "type": "string" } }, "additionalProperties": false, "required": [ - "channel_id", - "enabled" + "name" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -233736,9 +233570,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -234666,52 +234497,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIErrorResponse": { + "WidgetModifySchema": { "type": "object", "properties": { - "code": { - "type": "integer" + "enabled": { + "type": "boolean" }, - "message": { + "channel_id": { "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } } }, "additionalProperties": false, "required": [ - "code", - "errors", - "message" + "channel_id", + "enabled" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -238008,9 +237807,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -238938,24 +238734,52 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "CaptchaRequiredResponse": { + "APIErrorResponse": { "type": "object", "properties": { - "captcha_key": { - "type": "string" + "code": { + "type": "integer" }, - "captcha_sitekey": { + "message": { "type": "string" }, - "captcha_service": { - "type": "string" + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } } }, "additionalProperties": false, "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" + "code", + "errors", + "message" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -242252,9 +242076,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -243182,14 +243003,24 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIErrorOrCaptchaResponse": { - "anyOf": [ - { - "$ref": "#/definitions/APIErrorResponse" + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" }, - { - "$ref": "#/definitions/CaptchaRequiredResponse" + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -246486,9 +246317,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -247416,20 +247244,14 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "BackupCodesChallengeResponse": { - "type": "object", - "properties": { - "nonce": { - "type": "string" + "APIErrorOrCaptchaResponse": { + "anyOf": [ + { + "$ref": "#/definitions/APIErrorResponse" }, - "regenerate_nonce": { - "type": "string" + { + "$ref": "#/definitions/CaptchaRequiredResponse" } - }, - "additionalProperties": false, - "required": [ - "nonce", - "regenerate_nonce" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -250726,9 +250548,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -251656,31 +251475,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "DiscoverableGuildsResponse": { + "BackupCodesChallengeResponse": { "type": "object", "properties": { - "total": { - "type": "integer" - }, - "guilds": { - "type": "array", - "items": { - "$ref": "#/definitions/Guild" - } - }, - "offset": { - "type": "integer" + "nonce": { + "type": "string" }, - "limit": { - "type": "integer" + "regenerate_nonce": { + "type": "string" } }, "additionalProperties": false, "required": [ - "guilds", - "limit", - "offset", - "total" + "nonce", + "regenerate_nonce" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -254977,9 +254785,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -255907,45 +255712,31 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GatewayBotResponse": { + "DiscoverableGuildsResponse": { "type": "object", "properties": { - "url": { - "type": "string" + "total": { + "type": "integer" }, - "shards": { + "guilds": { + "type": "array", + "items": { + "$ref": "#/definitions/Guild" + } + }, + "offset": { "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" - ] + "limit": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "session_start_limit", - "shards", - "url" + "guilds", + "limit", + "offset", + "total" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -259242,9 +259033,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -260172,15 +259960,44 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GatewayResponse": { + "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": { @@ -263478,9 +263295,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -264408,19 +264222,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GenerateRegistrationTokensResponse": { + "GatewayResponse": { "type": "object", "properties": { - "tokens": { - "type": "array", - "items": { - "type": "string" - } + "url": { + "type": "string" } }, "additionalProperties": false, "required": [ - "tokens" + "url" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -267717,9 +267528,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -268647,51 +268455,19 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildBansResponse": { + "GenerateRegistrationTokensResponse": { "type": "object", "properties": { - "reason": { - "type": "string" - }, - "user": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "global_name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "public_flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "avatar", - "discriminator", - "id", - "public_flags", - "username" - ] + "tokens": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "reason", - "user" + "tokens" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -271988,9 +271764,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -272918,16 +272691,51 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildCreateResponse": { + "GuildBansResponse": { "type": "object", "properties": { - "id": { + "reason": { "type": "string" + }, + "user": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "public_flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "discriminator", + "id", + "public_flags", + "username" + ] } }, "additionalProperties": false, "required": [ - "id" + "reason", + "user" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -276224,9 +276032,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -277154,95 +276959,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildDiscoveryRequirementsResponse": { + "GuildCreateResponse": { "type": "object", "properties": { - "uild_id": { + "id": { "type": "string" - }, - "safe_environment": { - "type": "boolean" - }, - "healthy": { - "type": "boolean" - }, - "health_score_pending": { - "type": "boolean" - }, - "size": { - "type": "boolean" - }, - "nsfw_properties": {}, - "protected": { - "type": "boolean" - }, - "sufficient": { - "type": "boolean" - }, - "sufficient_without_grace_period": { - "type": "boolean" - }, - "valid_rules_channel": { - "type": "boolean" - }, - "retention_healthy": { - "type": "boolean" - }, - "engagement_healthy": { - "type": "boolean" - }, - "age": { - "type": "boolean" - }, - "minimum_age": { - "type": "integer" - }, - "health_score": { - "type": "object", - "properties": { - "avg_nonnew_participators": { - "type": "integer" - }, - "avg_nonnew_communicators": { - "type": "integer" - }, - "num_intentful_joiners": { - "type": "integer" - }, - "perc_ret_w1_intentful": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "avg_nonnew_communicators", - "avg_nonnew_participators", - "num_intentful_joiners", - "perc_ret_w1_intentful" - ] - }, - "minimum_size": { - "type": "integer" } }, "additionalProperties": false, "required": [ - "age", - "engagement_healthy", - "health_score", - "health_score_pending", - "healthy", - "minimum_age", - "minimum_size", - "nsfw_properties", - "protected", - "retention_healthy", - "safe_environment", - "size", - "sufficient", - "sufficient_without_grace_period", - "uild_id", - "valid_rules_channel" + "id" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -280539,9 +280265,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -281469,23 +281192,95 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildMessagesSearchResponse": { + "GuildDiscoveryRequirementsResponse": { "type": "object", "properties": { - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildMessagesSearchMessage" - } + "uild_id": { + "type": "string" }, - "total_results": { + "safe_environment": { + "type": "boolean" + }, + "healthy": { + "type": "boolean" + }, + "health_score_pending": { + "type": "boolean" + }, + "size": { + "type": "boolean" + }, + "nsfw_properties": {}, + "protected": { + "type": "boolean" + }, + "sufficient": { + "type": "boolean" + }, + "sufficient_without_grace_period": { + "type": "boolean" + }, + "valid_rules_channel": { + "type": "boolean" + }, + "retention_healthy": { + "type": "boolean" + }, + "engagement_healthy": { + "type": "boolean" + }, + "age": { + "type": "boolean" + }, + "minimum_age": { + "type": "integer" + }, + "health_score": { + "type": "object", + "properties": { + "avg_nonnew_participators": { + "type": "integer" + }, + "avg_nonnew_communicators": { + "type": "integer" + }, + "num_intentful_joiners": { + "type": "integer" + }, + "perc_ret_w1_intentful": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avg_nonnew_communicators", + "avg_nonnew_participators", + "num_intentful_joiners", + "perc_ret_w1_intentful" + ] + }, + "minimum_size": { "type": "integer" } }, "additionalProperties": false, "required": [ - "messages", - "total_results" + "age", + "engagement_healthy", + "health_score", + "health_score_pending", + "healthy", + "minimum_age", + "minimum_size", + "nsfw_properties", + "protected", + "retention_healthy", + "safe_environment", + "size", + "sufficient", + "sufficient_without_grace_period", + "uild_id", + "valid_rules_channel" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -284782,9 +284577,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -285712,16 +285504,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildPruneResponse": { + "GuildMessagesSearchResponse": { "type": "object", "properties": { - "pruned": { + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildMessagesSearchMessage" + } + }, + "total_results": { "type": "integer" } }, "additionalProperties": false, "required": [ - "pruned" + "messages", + "total_results" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -289018,9 +288817,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -289948,16 +289744,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildPurgeResponse": { + "GuildPruneResponse": { "type": "object", "properties": { - "purged": { + "pruned": { "type": "integer" } }, "additionalProperties": false, "required": [ - "purged" + "pruned" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -293254,9 +293050,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -294184,23 +293977,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildRecommendationsResponse": { + "GuildPurgeResponse": { "type": "object", "properties": { - "recommended_guilds": { - "type": "array", - "items": { - "$ref": "#/definitions/Guild" - } - }, - "load_id": { - "type": "string" + "purged": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "load_id", - "recommended_guilds" + "purged" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -297497,9 +297283,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -298427,20 +298210,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildVanityUrlResponse": { - "anyOf": [ - { - "$ref": "#/definitions/GuildVanityUrl" - }, - { - "$ref": "#/definitions/GuildVanityUrlNoInvite" - }, - { + "GuildRecommendationsResponse": { + "type": "object", + "properties": { + "recommended_guilds": { "type": "array", "items": { - "$ref": "#/definitions/GuildVanityUrl" + "$ref": "#/definitions/Guild" } + }, + "load_id": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "load_id", + "recommended_guilds" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -301737,9 +301523,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -302667,16 +302450,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildVanityUrlCreateResponse": { - "type": "object", - "properties": { - "code": { - "type": "string" + "GuildVanityUrlResponse": { + "anyOf": [ + { + "$ref": "#/definitions/GuildVanityUrl" + }, + { + "$ref": "#/definitions/GuildVanityUrlNoInvite" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/GuildVanityUrl" + } } - }, - "additionalProperties": false, - "required": [ - "code" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -305973,9 +305760,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -306903,98 +306687,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildWidgetJsonResponse": { + "GuildVanityUrlCreateResponse": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "instant_invite": { + "code": { "type": "string" - }, - "channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "position": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "position" - ] - } - }, - "members": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "global_name": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "status": { - "$ref": "#/definitions/ClientStatus" - }, - "avatar_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "avatar", - "avatar_url", - "discriminator", - "global_name", - "id", - "status", - "username" - ] - } - }, - "presence_count": { - "type": "integer" } }, "additionalProperties": false, "required": [ - "channels", - "id", - "instant_invite", - "members", - "name", - "presence_count" + "code" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -310291,9 +309993,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -311221,27 +310920,98 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildWidgetSettingsResponse": { + "GuildWidgetJsonResponse": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "id": { + "type": "string" }, - "channel_id": { - "anyOf": [ - { - "$ref": "#/definitions/Snowflake" + "name": { + "type": "string" + }, + "instant_invite": { + "type": "string" + }, + "channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "position": { + "type": "integer" + } }, - { - "type": "null" - } - ] + "additionalProperties": false, + "required": [ + "id", + "name", + "position" + ] + } + }, + "members": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ] + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "status": { + "$ref": "#/definitions/ClientStatus" + }, + "avatar_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "avatar_url", + "discriminator", + "global_name", + "id", + "status", + "username" + ] + } + }, + "presence_count": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "channel_id", - "enabled" + "channels", + "id", + "instant_invite", + "members", + "name", + "presence_count" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -314538,9 +314308,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -315468,28 +315235,27 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstanceDomainsResponse": { + "GuildWidgetSettingsResponse": { "type": "object", "properties": { - "cdn": { - "type": "string" - }, - "gateway": { - "type": "string" - }, - "defaultApiVersion": { - "type": "string" + "enabled": { + "type": "boolean" }, - "apiEndpoint": { - "type": "string" + "channel_id": { + "anyOf": [ + { + "$ref": "#/definitions/Snowflake" + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, "required": [ - "apiEndpoint", - "cdn", - "defaultApiVersion", - "gateway" + "channel_id", + "enabled" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -318786,9 +318552,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -319716,78 +319479,28 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstancePingResponse": { + "InstanceDomainsResponse": { "type": "object", "properties": { - "ping": { - "type": "string", - "enum": [ - "pong!" - ] + "cdn": { + "type": "string" }, - "instance": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": [ - "null", - "string" - ] - }, - "image": { - "type": [ - "null", - "string" - ] - }, - "correspondenceEmail": { - "type": [ - "null", - "string" - ] - }, - "correspondenceUserID": { - "type": [ - "null", - "string" - ] - }, - "frontPage": { - "type": [ - "null", - "string" - ] - }, - "tosPage": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "correspondenceEmail", - "correspondenceUserID", - "description", - "frontPage", - "id", - "image", - "name", - "tosPage" - ] + "gateway": { + "type": "string" + }, + "defaultApiVersion": { + "type": "string" + }, + "apiEndpoint": { + "type": "string" } }, "additionalProperties": false, "required": [ - "instance", - "ping" + "apiEndpoint", + "cdn", + "defaultApiVersion", + "gateway" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -323084,9 +322797,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -324014,37 +323724,78 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstanceStatsResponse": { + "InstancePingResponse": { "type": "object", "properties": { - "counts": { + "ping": { + "type": "string", + "enum": [ + "pong!" + ] + }, + "instance": { "type": "object", "properties": { - "user": { - "type": "integer" + "id": { + "type": "string" }, - "guild": { - "type": "integer" + "name": { + "type": "string" }, - "message": { - "type": "integer" + "description": { + "type": [ + "null", + "string" + ] }, - "members": { - "type": "integer" + "image": { + "type": [ + "null", + "string" + ] + }, + "correspondenceEmail": { + "type": [ + "null", + "string" + ] + }, + "correspondenceUserID": { + "type": [ + "null", + "string" + ] + }, + "frontPage": { + "type": [ + "null", + "string" + ] + }, + "tosPage": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ - "guild", - "members", - "message", - "user" + "correspondenceEmail", + "correspondenceUserID", + "description", + "frontPage", + "id", + "image", + "name", + "tosPage" ] } }, "additionalProperties": false, "required": [ - "counts" + "instance", + "ping" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -327341,9 +327092,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -328271,43 +328019,37 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "LocationMetadataResponse": { + "InstanceStatsResponse": { "type": "object", "properties": { - "consent_required": { - "type": "boolean" - }, - "country_code": { - "type": "string" - }, - "promotional_email_opt_in": { + "counts": { "type": "object", "properties": { - "required": { - "type": "boolean", - "enum": [ - true - ] + "user": { + "type": "integer" }, - "pre_checked": { - "type": "boolean", - "enum": [ - false - ] + "guild": { + "type": "integer" + }, + "message": { + "type": "integer" + }, + "members": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "pre_checked", - "required" + "guild", + "members", + "message", + "user" ] } }, "additionalProperties": false, "required": [ - "consent_required", - "country_code", - "promotional_email_opt_in" + "counts" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -331604,9 +331346,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -332534,37 +332273,43 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MemberJoinGuildResponse": { + "LocationMetadataResponse": { "type": "object", "properties": { - "guild": { - "$ref": "#/definitions/Guild" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } + "consent_required": { + "type": "boolean" }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } + "country_code": { + "type": "string" }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } + "promotional_email_opt_in": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "enum": [ + true + ] + }, + "pre_checked": { + "type": "boolean", + "enum": [ + false + ] + } + }, + "additionalProperties": false, + "required": [ + "pre_checked", + "required" + ] } }, "additionalProperties": false, "required": [ - "emojis", - "guild", - "roles", - "stickers" + "consent_required", + "country_code", + "promotional_email_opt_in" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -335861,9 +335606,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -336791,16 +336533,37 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "OAuthAuthorizeResponse": { + "MemberJoinGuildResponse": { "type": "object", "properties": { - "location": { - "type": "string" + "guild": { + "$ref": "#/definitions/Guild" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } } }, "additionalProperties": false, "required": [ - "location" + "emojis", + "guild", + "roles", + "stickers" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -340097,9 +339860,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -341027,44 +340787,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TenorGifResponse": { + "OAuthAuthorizeResponse": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { + "location": { "type": "string" } }, "additionalProperties": false, "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" + "location" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -344361,9 +344093,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -345291,56 +345020,44 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TenorTrendingResponse": { + "TenorGifResponse": { "type": "object", "properties": { - "categories": { - "type": "object", - "properties": { - "tags": { - "type": "array", - "items": { - "type": "object", - "properties": { - "searchterm": { - "type": "string" - }, - "path": { - "type": "string" - }, - "image": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "image", - "name", - "path", - "searchterm" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "tags" - ] + "id": { + "type": "string" }, - "gifs": { - "type": "array", - "items": { - "$ref": "#/definitions/TenorGifResponse" - } + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" } }, "additionalProperties": false, "required": [ - "categories", - "gifs" + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -348637,9 +348354,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -349567,11 +349281,57 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TenorGifsResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/TenorGifResponse" + "TenorTrendingResponse": { + "type": "object", + "properties": { + "categories": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "type": "object", + "properties": { + "searchterm": { + "type": "string" + }, + "path": { + "type": "string" + }, + "image": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "image", + "name", + "path", + "searchterm" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "tags" + ] + }, + "gifs": { + "type": "array", + "items": { + "$ref": "#/definitions/TenorGifResponse" + } + } }, + "additionalProperties": false, + "required": [ + "categories", + "gifs" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -352867,9 +352627,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -353797,21 +353554,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } + "TenorGifsResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/TenorGifResponse" }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -357107,9 +356854,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -358037,15 +357781,19 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TokenOnlyResponse": { + "TokenResponse": { "type": "object", "properties": { "token": { "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" } }, "additionalProperties": false, "required": [ + "settings", "token" ], "definitions": { @@ -361343,9 +361091,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -362273,22 +362018,15 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TokenWithBackupCodesResponse": { + "TokenOnlyResponse": { "type": "object", "properties": { "token": { "type": "string" - }, - "backup_codes": { - "type": "array", - "items": { - "$ref": "#/definitions/BackupCode" - } } }, "additionalProperties": false, "required": [ - "backup_codes", "token" ], "definitions": { @@ -365586,9 +365324,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -366516,227 +366251,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuild": { + "TokenWithBackupCodesResponse": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { + "token": { "type": "string" }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { + "backup_codes": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/BackupCode" } } }, "additionalProperties": false, "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" + "backup_codes", + "token" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -370033,9 +369564,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -370963,8 +370491,228 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPublicUser": { - "$ref": "#/definitions/PublicUser", + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -374260,9 +374008,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -375190,108 +374935,8 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPrivateUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "flags": { - "type": "integer" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "global_name": { - "type": "string" - }, - "legacy_username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "mfa_enabled": { - "type": "boolean" - }, - "email": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "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" - ], + "APIPublicUser": { + "$ref": "#/definitions/PublicUser", "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -378587,9 +378232,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -379517,11 +379159,105 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuildArray": { - "type": "array", - "items": { - "$ref": "#/definitions/APIGuild" + "APIPrivateUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "flags": { + "type": "integer" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "mfa_enabled": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } }, + "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" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -382817,9 +382553,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -383747,10 +383480,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIDMChannelArray": { + "APIGuildArray": { "type": "array", "items": { - "$ref": "#/definitions/DmChannelDTO" + "$ref": "#/definitions/APIGuild" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -387047,9 +386780,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -387977,10 +387707,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIBackupCodeArray": { + "APIDMChannelArray": { "type": "array", "items": { - "$ref": "#/definitions/BackupCode" + "$ref": "#/definitions/DmChannelDTO" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -391277,9 +391007,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -392207,111 +391934,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserUpdateResponse": { - "type": "object", - "properties": { - "newToken": { - "type": "string" - }, - "id": { - "type": "string" - }, - "flags": { - "type": "integer" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "global_name": { - "type": "string" - }, - "legacy_username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "mfa_enabled": { - "type": "boolean" - }, - "email": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } + "APIBackupCodeArray": { + "type": "array", + "items": { + "$ref": "#/definitions/BackupCode" }, - "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" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -395607,9 +395234,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -396537,9 +396161,108 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationDetectableResponse": { - "type": "array", - "items": {}, + "UserUpdateResponse": { + "type": "object", + "properties": { + "newToken": { + "type": "string" + }, + "id": { + "type": "string" + }, + "flags": { + "type": "integer" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "mfa_enabled": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "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" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -399835,9 +399558,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -400765,7 +400485,7 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationEntitlementsResponse": { + "ApplicationDetectableResponse": { "type": "array", "items": {}, "definitions": { @@ -404063,9 +403783,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -404993,7 +404710,7 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationSkusResponse": { + "ApplicationEntitlementsResponse": { "type": "array", "items": {}, "definitions": { @@ -408291,9 +408008,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -409221,11 +408935,9 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIApplicationArray": { + "ApplicationSkusResponse": { "type": "array", - "items": { - "$ref": "#/definitions/Application" - }, + "items": {}, "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -412521,9 +412233,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -413451,10 +413160,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIInviteArray": { + "APIApplicationArray": { "type": "array", "items": { - "$ref": "#/definitions/Invite" + "$ref": "#/definitions/Application" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -416751,9 +416460,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -417681,10 +417387,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIMessageArray": { + "APIInviteArray": { "type": "array", "items": { - "$ref": "#/definitions/Message" + "$ref": "#/definitions/Invite" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -420981,9 +420687,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -421911,10 +421614,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIWebhookArray": { + "APIMessageArray": { "type": "array", "items": { - "$ref": "#/definitions/Webhook" + "$ref": "#/definitions/Message" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -425211,9 +424914,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -426141,10 +425841,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIDiscoveryCategoryArray": { + "APIWebhookArray": { "type": "array", "items": { - "$ref": "#/definitions/Categories" + "$ref": "#/definitions/Webhook" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -429441,9 +429141,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -430371,80 +430068,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGeneralConfiguration": { - "type": "object", - "properties": { - "instanceName": { - "type": "string", - "default": "Spacebar Instance" - }, - "instanceDescription": { - "type": [ - "null", - "string" - ], - "default": "This is a Spacebar instance made in the pre-release days" - }, - "frontPage": { - "type": [ - "null", - "string" - ], - "default": null - }, - "tosPage": { - "type": [ - "null", - "string" - ], - "default": null - }, - "correspondenceEmail": { - "type": [ - "null", - "string" - ], - "default": null - }, - "correspondenceUserID": { - "type": [ - "null", - "string" - ], - "default": null - }, - "image": { - "type": [ - "null", - "string" - ], - "default": null - }, - "instanceId": { - "type": "string" - }, - "autoCreateBotUsers": { - "type": "boolean", - "default": false - }, - "uniqueUsernames": { - "type": "boolean", - "default": false - } + "APIDiscoveryCategoryArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Categories" }, - "additionalProperties": false, - "required": [ - "autoCreateBotUsers", - "correspondenceEmail", - "correspondenceUserID", - "frontPage", - "image", - "instanceDescription", - "instanceId", - "instanceName", - "tosPage", - "uniqueUsernames" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -433740,9 +433368,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -434670,11 +434295,80 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIChannelArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" + "APIGeneralConfiguration": { + "type": "object", + "properties": { + "instanceName": { + "type": "string", + "default": "Spacebar Instance" + }, + "instanceDescription": { + "type": [ + "null", + "string" + ], + "default": "This is a Spacebar instance made in the pre-release days" + }, + "frontPage": { + "type": [ + "null", + "string" + ], + "default": null + }, + "tosPage": { + "type": [ + "null", + "string" + ], + "default": null + }, + "correspondenceEmail": { + "type": [ + "null", + "string" + ], + "default": null + }, + "correspondenceUserID": { + "type": [ + "null", + "string" + ], + "default": null + }, + "image": { + "type": [ + "null", + "string" + ], + "default": null + }, + "instanceId": { + "type": "string" + }, + "autoCreateBotUsers": { + "type": "boolean", + "default": false + }, + "uniqueUsernames": { + "type": "boolean", + "default": false + } }, + "additionalProperties": false, + "required": [ + "autoCreateBotUsers", + "correspondenceEmail", + "correspondenceUserID", + "frontPage", + "image", + "instanceDescription", + "instanceId", + "instanceName", + "tosPage", + "uniqueUsernames" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -437970,9 +437664,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -438900,10 +438591,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIEmojiArray": { + "APIChannelArray": { "type": "array", "items": { - "$ref": "#/definitions/Emoji" + "$ref": "#/definitions/Channel" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -442200,9 +441891,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -443130,10 +442818,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIMemberArray": { + "APIEmojiArray": { "type": "array", "items": { - "$ref": "#/definitions/Member" + "$ref": "#/definitions/Emoji" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -446430,9 +446118,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -447360,58 +447045,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPublicMember": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "nick": { - "type": "string" - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "pending": { - "type": "boolean" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "premium_since": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/PublicUser" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } + "APIMemberArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" }, - "required": [ - "deaf", - "guild_id", - "id", - "joined_at", - "mute", - "pending", - "roles", - "user" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -448449,8 +448087,10 @@ "type": "integer", "default": 0 }, -<<<<<<< HEAD -======= + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, "id": { "type": "string" } @@ -448464,6 +448104,7 @@ "nsfw", "owner", "parent_id", + "position", "type" ] }, @@ -449524,7 +449165,6 @@ }, "additionalProperties": false, "required": [ - "avatar", "banner", "bio", "communication_disabled_until", @@ -449569,13 +449209,9 @@ "permissions": { "type": "string" }, ->>>>>>> 99963e1b (update user modify for unique usernames) "position": { - "description": "Must be calculated Channel.calculatePosition", "type": "integer" }, -<<<<<<< HEAD -======= "icon": { "type": "string" }, @@ -450700,13 +450336,13 @@ "type": "string", "format": "date-time" }, - "username": { + "avatar": { "type": "string" }, - "global_name": { + "username": { "type": "string" }, - "legacy_username": { + "global_name": { "type": "string" }, "discriminator": { @@ -450715,9 +450351,6 @@ "public_flags": { "type": "integer" }, - "avatar": { - "type": "string" - }, "accent_color": { "type": "integer" }, @@ -451092,6 +450725,12 @@ }, "premium_progress_bar_enabled": { "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -451099,6 +450738,7 @@ "_do_validate", "assign", "bans", + "channel_ordering", "channels", "emojis", "features", @@ -451632,239 +451272,57 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuildWithJoinedAt": { + "APIPublicMember": { + "additionalProperties": false, "type": "object", "properties": { - "joined_at": { - "type": "string" - }, - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { + "id": { "type": "string" }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { + "guild_id": { "type": "string" }, - "icon": { + "nick": { "type": "string" }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" + "joined_at": { + "type": "string", + "format": "date-time" }, - "max_presences": { - "type": "integer" + "pending": { + "type": "boolean" }, - "max_video_channel_users": { - "type": "integer" + "deaf": { + "type": "boolean" }, - "member_count": { - "type": "integer" + "mute": { + "type": "boolean" }, - "presence_count": { + "premium_since": { "type": "integer" }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { + "avatar": { "type": "string" }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } + "user": { + "$ref": "#/definitions/PublicUser" }, - "webhooks": { + "roles": { "type": "array", "items": { - "$ref": "#/definitions/Webhook" + "type": "string" } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "id": { - "type": "string" } }, - "additionalProperties": false, "required": [ - "bans", - "channels", - "emojis", - "features", + "deaf", + "guild_id", "id", - "invites", "joined_at", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", + "mute", + "pending", "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" + "user" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -452751,6 +452209,12 @@ "type": "boolean", "default": false }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -452758,6 +452222,7 @@ "additionalProperties": false, "required": [ "bans", + "channel_ordering", "channels", "emojis", "features", @@ -452830,9 +452295,6 @@ "default_auto_archive_duration": { "type": "integer" }, - "position": { - "type": "integer" - }, "permission_overwrites": { "type": "array", "items": { @@ -452899,7 +452361,10 @@ "type": "integer", "default": 0 }, ->>>>>>> 99963e1b (update user modify for unique usernames) + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, "id": { "type": "string" } @@ -455154,9 +454619,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -455728,6 +455190,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -455741,7 +455207,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -459615,9 +459082,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -463845,9 +463309,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -468075,9 +467536,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -472305,9 +471763,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -476535,9 +475990,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -480791,9 +480243,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -485021,9 +484470,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -489272,9 +488718,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -493516,9 +492959,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -497872,20 +497312,12 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, "public_flags": { "type": "integer" }, -<<<<<<< HEAD -======= - "avatar": { - "type": "string" - }, "accent_color": { "type": "integer" }, @@ -498260,6 +497692,12 @@ }, "premium_progress_bar_enabled": { "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -498267,6 +497705,7 @@ "_do_validate", "assign", "bans", + "channel_ordering", "channels", "emojis", "features", @@ -498800,29 +498239,38 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserRelationshipsResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "nickname": { - "type": "null" + "UserRelationsResponse": { + "type": "array", + "items": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "public_flags": { + "type": "integer" + } }, - "user": { - "$ref": "#/definitions/PublicUser" - } + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] }, - "additionalProperties": false, - "required": [ - "id", - "nickname", - "type", - "user" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -499708,6 +499156,12 @@ "type": "boolean", "default": false }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -499715,6 +499169,7 @@ "additionalProperties": false, "required": [ "bans", + "channel_ordering", "channels", "emojis", "features", @@ -499787,9 +499242,6 @@ "default_auto_archive_duration": { "type": "integer" }, - "position": { - "type": "integer" - }, "permission_overwrites": { "type": "array", "items": { @@ -499856,6 +499308,10 @@ "type": "integer", "default": 0 }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, "id": { "type": "string" } @@ -499869,6 +499325,7 @@ "nsfw", "owner", "parent_id", + "position", "type" ] }, @@ -500929,7 +500386,6 @@ }, "additionalProperties": false, "required": [ - "avatar", "banner", "bio", "communication_disabled_until", @@ -502101,13 +501557,13 @@ "type": "string", "format": "date-time" }, - "username": { + "avatar": { "type": "string" }, - "global_name": { + "username": { "type": "string" }, - "legacy_username": { + "global_name": { "type": "string" }, "discriminator": { @@ -502116,10 +501572,6 @@ "public_flags": { "type": "integer" }, - "avatar": { - "type": "string" - }, ->>>>>>> 99963e1b (update user modify for unique usernames) "accent_color": { "type": "integer" }, @@ -503041,38 +502493,29 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserRelationsResponse": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "global_name": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "public_flags": { - "type": "integer" - } + "UserRelationshipsResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" }, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "nickname": { + "type": "null" + }, + "user": { + "$ref": "#/definitions/PublicUser" + } }, + "additionalProperties": false, + "required": [ + "id", + "nickname", + "type", + "user" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -506368,9 +505811,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -506942,6 +506382,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -506955,7 +506399,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -507293,28 +506738,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserRelationshipsResponse": { + "WebAuthnCreateResponse": { "type": "object", "properties": { - "id": { + "name": { "type": "string" }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "nickname": { - "type": "null" - }, - "user": { - "$ref": "#/definitions/PublicUser" + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ "id", - "nickname", - "type", - "user" + "name" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -510611,9 +510048,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -511541,20 +510975,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnCreateResponse": { + "WebhookCreateResponse": { "type": "object", "properties": { - "name": { - "type": "string" + "user": { + "$ref": "#/definitions/User" }, - "id": { - "type": "string" + "hook": { + "$ref": "#/definitions/Webhook" } }, "additionalProperties": false, "required": [ - "id", - "name" + "hook", + "user" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -514851,9 +514285,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -515781,21 +515212,8 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebhookCreateResponse": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "hook": { - "$ref": "#/definitions/Webhook" - } - }, - "additionalProperties": false, - "required": [ - "hook", - "user" - ], + "ActivitySchema": { + "$ref": "#/definitions/ActivitySchema", "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -519091,9 +518509,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -520021,8 +519436,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ActivitySchema": { - "$ref": "#/definitions/ActivitySchema", + "BulkDeleteSchema": { + "type": "object", + "properties": { + "messages": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "messages" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -523318,9 +522745,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -524248,19 +523672,34 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "BulkDeleteSchema": { + "MFAResponse": { "type": "object", "properties": { - "messages": { - "type": "array", - "items": { - "type": "string" - } + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" } }, "additionalProperties": false, "required": [ - "messages" + "mfa", + "sms", + "ticket", + "token" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -527557,9 +526996,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -528487,9 +527923,12 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MFAResponse": { + "WebAuthnResponse": { "type": "object", "properties": { + "webauthn": { + "type": "string" + }, "ticket": { "type": "string" }, @@ -528514,7 +527953,8 @@ "mfa", "sms", "ticket", - "token" + "token", + "webauthn" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -531811,9 +531251,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -532741,38 +532178,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] + "LoginResponse": { + "anyOf": [ + { + "$ref": "#/definitions/TokenResponse" }, - "sms": { - "type": "boolean", - "enum": [ - false - ] + { + "$ref": "#/definitions/MFAResponse" }, - "token": { - "type": "null" + { + "$ref": "#/definitions/WebAuthnResponse" } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -536069,9 +535485,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -536999,17 +536412,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "LoginResponse": { - "anyOf": [ - { - "$ref": "#/definitions/TokenResponse" - }, - { - "$ref": "#/definitions/MFAResponse" - }, - { - "$ref": "#/definitions/WebAuthnResponse" + "MemberNickChangeSchema": { + "type": "object", + "properties": { + "nick": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "nick" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -540306,9 +539718,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -541236,16 +540645,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MemberNickChangeSchema": { + "PruneSchema": { "type": "object", "properties": { - "nick": { - "type": "string" + "days": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "nick" + "days" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -544542,9 +543951,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -545472,16 +544878,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "PruneSchema": { + "UsernameAttemptResponse": { "type": "object", "properties": { - "days": { - "type": "integer" + "taken": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "days" + "taken" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -548778,9 +548184,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, @@ -553020,9 +552423,6 @@ "global_name": { "type": "string" }, - "legacy_username": { - "type": "string" - }, "discriminator": { "type": "string" }, diff --git a/src/api/routes/auth/register.ts b/src/api/routes/auth/register.ts index de1cbd3d8..33fc60620 100644 --- a/src/api/routes/auth/register.ts +++ b/src/api/routes/auth/register.ts @@ -50,9 +50,18 @@ router.post( }), async (req: Request, res: Response) => { const body = req.body as RegisterSchema; - const { register, security, limits } = Config.get(); + const { register, security, limits, general } = Config.get(); const ip = getIpAdress(req); + if (!general.uniqueUsernames && body.unique_username_registration) { + throw FieldErrors({ + unique_username_registration: { + code: "UNIQUE_USERNAMES_DISABLED", + message: req.t("auth:register.UNIQUE_USERNAMES_DISABLED"), + }, + }); + } + // Reg tokens // They're a one time use token that bypasses registration limits ( rates, disabled reg, etc ) let regTokenUsed = false; diff --git a/src/api/routes/unique-username/username-attempt-unauthed.ts b/src/api/routes/unique-username/username-attempt-unauthed.ts new file mode 100644 index 000000000..a1f63a691 --- /dev/null +++ b/src/api/routes/unique-username/username-attempt-unauthed.ts @@ -0,0 +1,33 @@ +import { route } from "@spacebar/api"; +import { Config, User, UsernameAttemptUnauthedSchema } from "@spacebar/util"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; +const router = Router(); + +router.post( + "/", + route({ + requestBody: "UsernameAttemptUnauthedSchema", + responses: { + 200: { body: "UsernameAttemptResponse" }, + 400: { body: "APIErrorResponse" }, + }, + description: "Check if a username is available", + }), + async (req: Request, res: Response) => { + const body = req.body as UsernameAttemptUnauthedSchema; + const { uniqueUsernames } = Config.get().general; + if (!uniqueUsernames) { + throw new HTTPError( + "Unique Usernames feature is not enabled on this instance.", + 400, + ); + } + + res.json({ + taken: !User.isUsernameAvailable(body.username), + }); + }, +); + +export default router; diff --git a/src/api/routes/unique-username/username-suggestions-unauthed.ts b/src/api/routes/unique-username/username-suggestions-unauthed.ts new file mode 100644 index 000000000..9b112b558 --- /dev/null +++ b/src/api/routes/unique-username/username-suggestions-unauthed.ts @@ -0,0 +1,37 @@ +import { route } from "@spacebar/api"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; +import { Config } from "../../../util"; +const router = Router(); + +router.get( + "/", + route({ + query: { + global_name: { + type: "string", + required: false, + }, + }, + responses: { + 400: { body: "APIErrorResponse" }, + }, + }), + async (req: Request, res: Response) => { + const globalName = req.query.globalName as string | undefined; + const { uniqueUsernames } = Config.get().general; + if (!uniqueUsernames) { + throw new HTTPError( + "Unique Usernames feature is not enabled on this instance.", + 400, + ); + } + + // return a random suggestion + if (!globalName) return res.json({ username: "" }); + // return a suggestion based on the globalName + return res.json({ username: globalName }); + }, +); + +export default router; diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index f4578126c..55d2ce122 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -172,10 +172,7 @@ router.patch( } // check if username is already taken (pomelo only) - const userCount = await User.count({ - where: { username: body.username }, - }); - if (userCount > 0) { + if (!User.isUsernameAvailable(body.username)) throw FieldErrors({ username: { code: "USERNAME_ALREADY_TAKEN", @@ -184,7 +181,6 @@ router.patch( ), }, }); - } } // handle username changes (old username system) diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index d1fbb5c2b..5ec9862e4 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -344,6 +344,7 @@ export class User extends BaseClass { password, id, req, + global_name, }: { username: string; password?: string; @@ -351,8 +352,10 @@ export class User extends BaseClass { date_of_birth?: Date; // "2000-04-03" id?: string; req?: Request; + global_name?: string; }) { const { uniqueUsernames } = Config.get().general; + const { minUsername, maxUsername } = Config.get().limits.user; // trim special uf8 control characters -> Backspace, Newline, ... username = trimSpecial(username); @@ -374,6 +377,34 @@ export class User extends BaseClass { } } + if (uniqueUsernames) { + // check if there is already an account with this username + if (!User.isUsernameAvailable(username)) + throw FieldErrors({ + username: { + code: "USERNAME_ALREADY_TAKEN", + message: + req?.t("common:field.USERNAME_ALREADY_TAKEN") || "", + }, + }); + + // validate username length + if ( + username.length < minUsername || + username.length > maxUsername + ) { + throw FieldErrors({ + username: { + code: "BASE_TYPE_BAD_LENGTH", + message: + req?.t("common:field.BASE_TYPE_BAD_LENGTH", { + length: `${minUsername} and ${maxUsername}`, + }) || "", + }, + }); + } + } + // TODO: save date_of_birth // appearently discord doesn't save the date of birth and just calculate if nsfw is allowed // if nsfw_allowed is null/undefined it'll require date_of_birth to set it to true/false @@ -386,6 +417,7 @@ export class User extends BaseClass { const user = User.create({ username: uniqueUsernames ? username.toLowerCase() : username, + global_name: uniqueUsernames ? global_name : undefined, discriminator, id: id || Snowflake.generate(), email: email, @@ -429,6 +461,14 @@ export class User extends BaseClass { return user; } + + static async isUsernameAvailable(username: string) { + const user = await User.findOne({ + where: { username }, + select: ["id"], + }); + return !user; + } } export const CUSTOM_USER_FLAG_OFFSET = BigInt(1) << BigInt(32); diff --git a/src/util/schemas/UsernameAttemptUnauthedSchema.ts b/src/util/schemas/UsernameAttemptUnauthedSchema.ts new file mode 100644 index 000000000..0ac83dd0e --- /dev/null +++ b/src/util/schemas/UsernameAttemptUnauthedSchema.ts @@ -0,0 +1,3 @@ +export interface UsernameAttemptUnauthedSchema { + username: string; +} diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts index 44a504cda..bb449e450 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts @@ -72,6 +72,7 @@ export * from "./UserModifySchema"; export * from "./UserNoteUpdateSchema"; export * from "./UserProfileModifySchema"; export * from "./UserSettingsSchema"; +export * from "./UsernameAttemptUnauthedSchema"; export * from "./Validator"; export * from "./VanityUrlSchema"; export * from "./VoiceIdentifySchema"; diff --git a/src/util/schemas/responses/UsernameAttemptResponse.ts b/src/util/schemas/responses/UsernameAttemptResponse.ts new file mode 100644 index 000000000..864a3bb00 --- /dev/null +++ b/src/util/schemas/responses/UsernameAttemptResponse.ts @@ -0,0 +1,3 @@ +export interface UsernameAttemptResponse { + taken: boolean; +} From 3fed9797d8d72fb145cfbe0696fa6e1f71e31b3a Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 8 Sep 2023 22:21:28 -0400 Subject: [PATCH 09/16] Send experiment required to enable pomelo UI in discord client --- src/api/routes/experiments.ts | 18 +++++++++++++-- src/util/interfaces/Experiments.ts | 36 ++++++++++++++++++++++++++++++ src/util/interfaces/index.ts | 1 + 3 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 src/util/interfaces/Experiments.ts diff --git a/src/api/routes/experiments.ts b/src/api/routes/experiments.ts index cd206d79f..0cad7342c 100644 --- a/src/api/routes/experiments.ts +++ b/src/api/routes/experiments.ts @@ -16,14 +16,28 @@ along with this program. If not, see . */ -import { Router, Response, Request } from "express"; import { route } from "@spacebar/api"; +import { Config, Experiments } from "@spacebar/util"; +import { Request, Response, Router } from "express"; const router = Router(); router.get("/", route({}), (req: Request, res: Response) => { // TODO: - res.send({ fingerprint: "", assignments: [], guild_experiments: [] }); + const { uniqueUsernames } = Config.get().general; + + const data: Experiments = { + fingerprint: "fingerprint", + assignments: [], + guild_experiments: [], + }; + // this enables the pomelo/unique usernames UI in the official clients + if (uniqueUsernames) { + // hash, revision, bucket, override, population, hash_result, as_mode + // bucket 4 is used by the official client, and enables live checking and suggestions, 3 is only live checking + data.assignments.push([2476969328, 0, 3, -1, 0, 9267, 0, 0]); + } + res.send(data); }); export default router; diff --git a/src/util/interfaces/Experiments.ts b/src/util/interfaces/Experiments.ts new file mode 100644 index 000000000..48c53276a --- /dev/null +++ b/src/util/interfaces/Experiments.ts @@ -0,0 +1,36 @@ +/* + Spacebar: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Spacebar and Spacebar Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +export type GuildExperiment = [ + number, + string | null, + number, + unknown[], + unknown[], + unknown[], + unknown | null, + unknown | null, + number, + number, +]; + +export interface Experiments { + fingerprint: string; + assignments: number[][]; + guild_experiments: GuildExperiment[]; +} diff --git a/src/util/interfaces/index.ts b/src/util/interfaces/index.ts index 6620ba32d..e669e49ec 100644 --- a/src/util/interfaces/index.ts +++ b/src/util/interfaces/index.ts @@ -19,6 +19,7 @@ export * from "./Activity"; export * from "./ConnectedAccount"; export * from "./Event"; +export * from "./Experiments"; export * from "./GuildWelcomeScreen"; export * from "./Interaction"; export * from "./Presence"; From 56c283d4ce8e19db8605ce535d7f507f4d66996d Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 8 Sep 2023 22:28:43 -0400 Subject: [PATCH 10/16] add unique-username routes to unauthenticated list --- src/api/middlewares/Authentication.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts index 9e41b453f..e3af8bf71 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts @@ -54,6 +54,7 @@ export const NO_AUTHORIZATION_ROUTES = [ /\/guilds\/\d+\/widget\.(json|png)/, // Connections /\/connections\/\w+\/callback/, + "/unique-username/", ]; export const API_PREFIX = /^\/api(\/v\d+)?/; From d88e9273ffcc95477e560e7b1a3bd32011e24f6c Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 8 Sep 2023 22:38:56 -0400 Subject: [PATCH 11/16] fix being able to register with taken username --- src/api/routes/experiments.ts | 2 +- .../unique-username/username-attempt-unauthed.ts | 2 +- src/api/routes/users/@me/index.ts | 2 +- src/util/entities/User.ts | 13 ++++++++----- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/api/routes/experiments.ts b/src/api/routes/experiments.ts index 0cad7342c..24fd3ef1e 100644 --- a/src/api/routes/experiments.ts +++ b/src/api/routes/experiments.ts @@ -35,7 +35,7 @@ router.get("/", route({}), (req: Request, res: Response) => { if (uniqueUsernames) { // hash, revision, bucket, override, population, hash_result, as_mode // bucket 4 is used by the official client, and enables live checking and suggestions, 3 is only live checking - data.assignments.push([2476969328, 0, 3, -1, 0, 9267, 0, 0]); + data.assignments.push([2476969328, 0, 4, -1, 0, 9267, 0, 0]); } res.send(data); }); diff --git a/src/api/routes/unique-username/username-attempt-unauthed.ts b/src/api/routes/unique-username/username-attempt-unauthed.ts index a1f63a691..3af1fa883 100644 --- a/src/api/routes/unique-username/username-attempt-unauthed.ts +++ b/src/api/routes/unique-username/username-attempt-unauthed.ts @@ -25,7 +25,7 @@ router.post( } res.json({ - taken: !User.isUsernameAvailable(body.username), + taken: !(await User.isUsernameAvailable(body.username)), }); }, ); diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index 55d2ce122..5c3cfb29c 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -172,7 +172,7 @@ router.patch( } // check if username is already taken (pomelo only) - if (!User.isUsernameAvailable(body.username)) + if (!(await User.isUsernameAvailable(body.username))) throw FieldErrors({ username: { code: "USERNAME_ALREADY_TAKEN", diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index 5ec9862e4..07b68b6d8 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -379,7 +379,7 @@ export class User extends BaseClass { if (uniqueUsernames) { // check if there is already an account with this username - if (!User.isUsernameAvailable(username)) + if (!(await User.isUsernameAvailable(username))) throw FieldErrors({ username: { code: "USERNAME_ALREADY_TAKEN", @@ -463,11 +463,14 @@ export class User extends BaseClass { } static async isUsernameAvailable(username: string) { - const user = await User.findOne({ - where: { username }, - select: ["id"], + // TODO: implement regex check? + const count = await User.count({ + where: { + username: username.toLowerCase(), + }, }); - return !user; + + return count === 0; } } From 2acf80acb6953a8f034bc767e371cac79b52b309 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 23 Dec 2023 17:10:55 -0500 Subject: [PATCH 12/16] send disclosure for pomelo --- src/gateway/opcodes/Identify.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 330ce5610..74bc6ab15 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -464,6 +464,10 @@ export async function onIdentify(this: WebSocket, data: Payload) { ); // TODO: ready supplemental + const disclosures = []; + // this tells the client the user can migrate + if (Config.get().general.uniqueUsernames) disclosures.push("pomelo"); + await Send(this, { op: OPCodes.DISPATCH, t: EVENTEnum.ReadySupplemental, @@ -478,7 +482,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { lazy_private_channels: [], guilds: [], // { voice_states: [], id: string, embedded_activities: [] } // embedded_activities are users currently in an activity? - disclose: [], // Config.get().general.uniqueUsernames ? ["pomelo"] : [] + disclose: disclosures, }, }); From 5c220b4bdf65de42617cd701fbc4a6b1873e2f47 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 23 Dec 2023 17:11:14 -0500 Subject: [PATCH 13/16] update pomelo experiment --- src/api/routes/experiments.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/api/routes/experiments.ts b/src/api/routes/experiments.ts index 24fd3ef1e..019ee2c58 100644 --- a/src/api/routes/experiments.ts +++ b/src/api/routes/experiments.ts @@ -23,7 +23,6 @@ import { Request, Response, Router } from "express"; const router = Router(); router.get("/", route({}), (req: Request, res: Response) => { - // TODO: const { uniqueUsernames } = Config.get().general; const data: Experiments = { @@ -34,8 +33,7 @@ router.get("/", route({}), (req: Request, res: Response) => { // this enables the pomelo/unique usernames UI in the official clients if (uniqueUsernames) { // hash, revision, bucket, override, population, hash_result, as_mode - // bucket 4 is used by the official client, and enables live checking and suggestions, 3 is only live checking - data.assignments.push([2476969328, 0, 4, -1, 0, 9267, 0, 0]); + data.assignments.push([268309827, 0, 1, -1, 7, 8062, 0, 0]); } res.send(data); }); From cf34ab167477a1fd86f017f2aee7ec1e849e8a05 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 23 Dec 2023 17:31:31 -0500 Subject: [PATCH 14/16] rename unique uesrname response and schema --- assets/openapi.json | 258 +- assets/schemas.json | 11095 ++++++++++++++-- .../username-attempt-unauthed.ts | 11 +- .../username-suggestions-unauthed.ts | 4 +- .../schemas/UniqueUsernameAttemptSchema.ts | 3 + .../schemas/UsernameAttemptUnauthedSchema.ts | 3 - src/util/schemas/index.ts | 2 +- src/util/schemas/responses/TypedResponses.ts | 3 + .../UniqueUsernameAttemptResponse.ts | 3 + .../responses/UsernameAttemptResponse.ts | 3 - 10 files changed, 10072 insertions(+), 1313 deletions(-) create mode 100644 src/util/schemas/UniqueUsernameAttemptSchema.ts delete mode 100644 src/util/schemas/UsernameAttemptUnauthedSchema.ts create mode 100644 src/util/schemas/responses/UniqueUsernameAttemptResponse.ts delete mode 100644 src/util/schemas/responses/UsernameAttemptResponse.ts diff --git a/assets/openapi.json b/assets/openapi.json index c3e1419dd..0705f4ffe 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -5729,6 +5729,17 @@ "ticket" ] }, + "UniqueUsernameAttemptSchema": { + "type": "object", + "properties": { + "username": { + "type": "string" + } + }, + "required": [ + "username" + ] + }, "UserDeleteSchema": { "type": "object", "properties": { @@ -6011,17 +6022,6 @@ } } }, - "UsernameAttemptUnauthedSchema": { - "type": "object", - "properties": { - "username": { - "type": "string" - } - }, - "required": [ - "username" - ] - }, "VanityUrlSchema": { "type": "object", "properties": { @@ -7140,6 +7140,108 @@ "$ref": "#/components/schemas/BackupCode" } }, + "PrivateUserResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "flags": { + "type": "integer" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "mfa_enabled": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "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" + ] + }, + "PublicUserResponse": { + "$ref": "#/components/schemas/PublicUser" + }, "UserUpdateResponse": { "type": "object", "properties": { @@ -8027,7 +8129,7 @@ "days" ] }, - "UsernameAttemptResponse": { + "UniqueUsernameAttemptResponse": { "type": "object", "properties": { "taken": { @@ -8450,6 +8552,121 @@ ] } }, + "/users/@me/pomelo/": { + "post": { + "security": [ + { + "bearer": [] + } + ], + "description": "Claims a unique username for the user. Returns the updated user object on success. Fires a User Update Gateway event.", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UniqueUsernameAttemptSchema" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PrivateUserResponse" + } + } + } + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "tags": [ + "users" + ] + } + }, + "/users/@me/pomelo-suggestions/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "description": "Returns a suggested unique username string based on the current user's username.", + "responses": { + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "tags": [ + "users" + ] + } + }, + "/users/@me/pomelo-attempt/": { + "post": { + "security": [ + { + "bearer": [] + } + ], + "description": "Checks whether a unique username is available for the user to claim.", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UniqueUsernameAttemptSchema" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UniqueUsernameAttemptResponse" + } + } + } + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "tags": [ + "users" + ] + } + }, "/users/@me/notes/{id}": { "get": { "security": [ @@ -9793,11 +10010,7 @@ }, "/unique-username/username-suggestions-unauthed/": { "get": { - "security": [ - { - "bearer": [] - } - ], + "description": "Returns a suggested unique username string based on the current user's username.", "responses": { "400": { "description": "", @@ -9827,18 +10040,13 @@ }, "/unique-username/username-attempt-unauthed/": { "post": { - "security": [ - { - "bearer": [] - } - ], - "description": "Check if a username is available", + "description": "Checks whether a unique username is available for the user to claim.", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UsernameAttemptUnauthedSchema" + "$ref": "#/components/schemas/UniqueUsernameAttemptSchema" } } } @@ -9849,7 +10057,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UsernameAttemptResponse" + "$ref": "#/components/schemas/UniqueUsernameAttemptResponse" } } } diff --git a/assets/schemas.json b/assets/schemas.json index b12357ca7..b27dc2c78 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -166388,16 +166388,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserDeleteSchema": { + "UniqueUsernameAttemptSchema": { "type": "object", "properties": { - "user_id": { + "username": { "type": "string" } }, "additionalProperties": false, "required": [ - "user_id" + "username" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -170621,66 +170621,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserGuildSettingsSchema": { + "UserDeleteSchema": { "type": "object", "properties": { - "channel_overrides": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - "version": { - "type": "integer" - }, - "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" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "enum": [ - 0 - ], - "type": "number" + "user_id": { + "type": "string" } }, "additionalProperties": false, + "required": [ + "user_id" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -174903,52 +174854,63 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserModifySchema": { + "UserGuildSettingsSchema": { "type": "object", "properties": { - "username": { - "minLength": 1, - "maxLength": 100, - "type": "string" + "channel_overrides": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } }, - "avatar": { - "type": [ - "null", - "string" + "version": { + "type": "integer" + }, + "message_notifications": { + "type": "integer" + }, + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } ] }, - "bio": { - "maxLength": 1024, - "type": "string" + "muted": { + "type": "boolean" }, - "accent_color": { - "type": "integer" + "suppress_everyone": { + "type": "boolean" }, - "banner": { + "suppress_roles": { + "type": "boolean" + }, + "guild_id": { "type": [ "null", "string" ] }, - "password": { - "type": "string" - }, - "new_password": { - "type": "string" - }, - "code": { - "type": "string" + "flags": { + "type": "integer" }, - "email": { - "type": "string" + "mute_scheduled_events": { + "type": "boolean" }, - "discriminator": { - "minLength": 4, - "maxLength": 4, - "type": "string" + "hide_muted_channels": { + "type": "boolean" }, - "global_name": { - "type": "string" + "notify_highlights": { + "enum": [ + 0 + ], + "type": "number" } }, "additionalProperties": false, @@ -179174,17 +179136,55 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserNoteUpdateSchema": { + "UserModifySchema": { "type": "object", "properties": { - "note": { + "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": { + "minLength": 4, + "maxLength": 4, + "type": "string" + }, + "global_name": { "type": "string" } }, "additionalProperties": false, - "required": [ - "note" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -183407,42 +183407,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserProfileModifySchema": { + "UserNoteUpdateSchema": { "type": "object", "properties": { - "bio": { - "type": "string" - }, - "accent_color": { - "type": [ - "null", - "integer" - ] - }, - "banner": { - "type": [ - "null", - "string" - ] - }, - "pronouns": { + "note": { "type": "string" - }, - "theme_colors": { - "items": [ - { - "type": "integer" - }, - { - "type": "integer" - } - ], - "type": "array", - "minItems": 2, - "maxItems": 2 } }, "additionalProperties": false, + "required": [ + "note" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -187665,128 +187640,39 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserSettingsSchema": { + "UserProfileModifySchema": { "type": "object", "properties": { - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], + "bio": { "type": "string" }, - "afk_timeout": { - "type": "integer" - }, - "allow_accessibility_detection": { - "type": "boolean" - }, - "animate_emoji": { - "type": "boolean" - }, - "animate_stickers": { - "type": "integer" + "accent_color": { + "type": [ + "null", + "integer" + ] }, - "contact_sync_enabled": { - "type": "boolean" + "banner": { + "type": [ + "null", + "string" + ] }, - "convert_emoticons": { - "type": "boolean" + "pronouns": { + "type": "string" }, - "custom_status": { - "anyOf": [ + "theme_colors": { + "items": [ { - "$ref": "#/definitions/CustomStatus" + "type": "integer" }, { - "type": "null" + "type": "integer" } - ] - }, - "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": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean" - }, - "gif_auto_play": { - "type": "boolean" - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - } - }, - "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" - }, - "stream_notifications_enabled": { - "type": "boolean" - }, - "theme": { - "enum": [ - "dark", - "light" ], - "type": "string" - }, - "timezone_offset": { - "type": "integer" + "type": "array", + "minItems": 2, + "maxItems": 2 } }, "additionalProperties": false, @@ -192012,17 +191898,131 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UsernameAttemptUnauthedSchema": { + "UserSettingsSchema": { "type": "object", "properties": { - "username": { + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "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": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "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": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean" + }, + "gif_auto_play": { + "type": "boolean" + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + } + }, + "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" + }, + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "light" + ], "type": "string" + }, + "timezone_offset": { + "type": "integer" } }, "additionalProperties": false, - "required": [ - "username" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -209007,94 +209007,8568 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceVideoSchema": { + "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" + }, + "ConnectedAccountTokenData": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "expires_at": { + "type": "integer" + }, + "fetched_at": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ] + }, + "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": [ + "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" + } + } + }, + "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" + }, + "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 + }, + "ChannelOverride": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ] + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "all" + ] + }, + "GuildFolder": { + "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" + ] + }, + "GenerateWebAuthnCredentialsSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ] + }, + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ticket": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" + ] + }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string" + }, + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "type": { + "$ref": "#/definitions/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/Recipient" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "parent_id": { + "type": "string" + }, + "parent": { + "$ref": "#/definitions/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "last_pin_timestamp": { + "type": "integer" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "created_at", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ] + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/definitions/UserSettings" + }, + "extended_settings": { + "type": "string", + "default": "{}" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } + }, + "tag": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "tag", + "username", + "verified", + "webauthn_enabled" + ] + }, + "Session": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "session_id": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "client": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "client", + "os", + "version" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/definitions/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/definitions/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ] + }, + "RelationshipType": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/definitions/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ] + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + } + }, + "additionalProperties": false, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ] + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned": { + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type", + "user_id" + ] + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "embeds", + "id", + "mention_channels", + "mention_roles", + "mentions", + "reactions", + "timestamp", + "type" + ] + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ] + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "UserGuildSettings": { + "type": "object", + "properties": { + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } + }, + { + "type": "null" + } + ] + }, + "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" + }, + "version": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "number", + "enum": [ + 0 + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_overrides", + "flags", + "guild_id", + "hide_muted_channels", + "message_notifications", + "mobile_push", + "mute_config", + "mute_scheduled_events", + "muted", + "notify_highlights", + "suppress_everyone", + "suppress_roles", + "version" + ] + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "channel", + "channel_id", + "guild", + "guild_id", + "id", + "source_guild", + "source_guild_id", + "type", + "user", + "user_id" + ] + }, + "WebhookType": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/definitions/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ] + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ] + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/definitions/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "membership_state", + "permissions", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "Sticker": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { + "type": "boolean" + }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/definitions/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ] + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "Attachment_1": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "count", + "emoji", + "user_ids" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "public_ack": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "mention_count": { + "type": "integer" + }, + "manual": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "id", + "last_message_id", + "manual", + "mention_count", + "notifications_cursor", + "public_ack", + "user", + "user_id" + ] + }, + "Ban": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "executor_id": { + "type": "string" + }, + "executor": { + "$ref": "#/definitions/User" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "ip", + "user", + "user_id" + ] + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "serialized_source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ] + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "enabled", + "welcome_channels" + ] + }, + "GuildMessagesSearchMessage": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "content": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/PublicUser" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicUser" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, + "timestamp": { + "type": "string" + }, + "edited_timestamp": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": {} + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ] + }, + "GuildVanityUrl": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "code", + "uses" + ] + }, + "GuildVanityUrlNoInvite": { + "type": "object", + "properties": { + "code": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "code" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ] + }, + "BackupCode": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "code": { + "type": "string" + }, + "consumed": { + "type": "boolean" + }, + "expired": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "consumed", + "expired", + "id", + "user" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "toJSON": { + "type": "object", + "additionalProperties": false + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "assign": { + "type": "object", + "additionalProperties": false + }, + "hasId": { + "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", + "type": "object", + "additionalProperties": false + }, + "save": { + "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", + "type": "object", + "additionalProperties": false + }, + "remove": { + "description": "Removes current entity from the database.", + "type": "object", + "additionalProperties": false + }, + "softRemove": { + "description": "Records the delete date of current entity.", + "type": "object", + "additionalProperties": false + }, + "recover": { + "description": "Recovers a given entity in the database.", + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_channel_id": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ] + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ], + "default": null + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "global_name", + "id", + "public_flags", + "username" + ] + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "string" + }, + "is_primary": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ] + }, + "GuildVoiceRegion": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { + "type": "boolean" + }, + "optimal": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal" + ] + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "minUsername": { + "type": "integer", + "default": 2 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + } + }, + "additionalProperties": false, + "required": [ + "maxFriends", + "maxGuilds", + "maxUsername", + "minUsername" + ] + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles" + ] + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxReactions", + "maxTTSCharacters" + ] + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + } + }, + "additionalProperties": false, + "required": [ + "maxPins", + "maxTopic", + "maxWebhooks" + ] + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/definitions/RateLimitOptions" + }, + "global": { + "$ref": "#/definitions/RateLimitOptions" + }, + "error": { + "$ref": "#/definitions/RateLimitOptions" + }, + "routes": { + "$ref": "#/definitions/RouteRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ] + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "window" + ] + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/RateLimitOptions" + }, + "webhook": { + "$ref": "#/definitions/RateLimitOptions" + }, + "channel": { + "$ref": "#/definitions/RateLimitOptions" + }, + "auth": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "register", + "sendMessage" + ] + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "limit", + "window" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "UserProfile": { + "type": "object", + "properties": { + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GenerateWebAuthnCredentialsSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ], + "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "ConnectedAccountTokenData": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "expires_at": { + "type": "integer" + }, + "fetched_at": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ] + }, + "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": [ + "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" + } + } + }, + "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" + }, + "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 + }, + "ChannelOverride": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ] + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "all" + ] + }, + "GuildFolder": { + "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" + ] + }, + "GenerateWebAuthnCredentialsSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ] + }, + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ticket": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" + ] + }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string" + }, + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "type": { + "$ref": "#/definitions/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/Recipient" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "parent_id": { + "type": "string" + }, + "parent": { + "$ref": "#/definitions/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "last_pin_timestamp": { + "type": "integer" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "created_at", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ] + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/definitions/UserSettings" + }, + "extended_settings": { + "type": "string", + "default": "{}" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } + }, + "tag": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "tag", + "username", + "verified", + "webauthn_enabled" + ] + }, + "Session": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "session_id": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "client": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "client", + "os", + "version" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/definitions/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/definitions/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ] + }, + "RelationshipType": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/definitions/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ] + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + } + }, + "additionalProperties": false, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ] + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned": { + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type", + "user_id" + ] + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "embeds", + "id", + "mention_channels", + "mention_roles", + "mentions", + "reactions", + "timestamp", + "type" + ] + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ] + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "UserGuildSettings": { + "type": "object", + "properties": { + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } + }, + { + "type": "null" + } + ] + }, + "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" + }, + "version": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "number", + "enum": [ + 0 + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_overrides", + "flags", + "guild_id", + "hide_muted_channels", + "message_notifications", + "mobile_push", + "mute_config", + "mute_scheduled_events", + "muted", + "notify_highlights", + "suppress_everyone", + "suppress_roles", + "version" + ] + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "channel", + "channel_id", + "guild", + "guild_id", + "id", + "source_guild", + "source_guild_id", + "type", + "user", + "user_id" + ] + }, + "WebhookType": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/definitions/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ] + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ] + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/definitions/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "membership_state", + "permissions", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "Sticker": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { + "type": "boolean" + }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/definitions/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ] + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "Attachment_1": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "count", + "emoji", + "user_ids" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "public_ack": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "mention_count": { + "type": "integer" + }, + "manual": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "id", + "last_message_id", + "manual", + "mention_count", + "notifications_cursor", + "public_ack", + "user", + "user_id" + ] + }, + "Ban": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "executor_id": { + "type": "string" + }, + "executor": { + "$ref": "#/definitions/User" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "ip", + "user", + "user_id" + ] + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "serialized_source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ] + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "enabled", + "welcome_channels" + ] + }, + "GuildMessagesSearchMessage": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "content": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/PublicUser" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicUser" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, + "timestamp": { + "type": "string" + }, + "edited_timestamp": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": {} + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ] + }, + "GuildVanityUrl": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "code", + "uses" + ] + }, + "GuildVanityUrlNoInvite": { + "type": "object", + "properties": { + "code": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "code" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ] + }, + "BackupCode": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "code": { + "type": "string" + }, + "consumed": { + "type": "boolean" + }, + "expired": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "consumed", + "expired", + "id", + "user" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "toJSON": { + "type": "object", + "additionalProperties": false + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "assign": { + "type": "object", + "additionalProperties": false + }, + "hasId": { + "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", + "type": "object", + "additionalProperties": false + }, + "save": { + "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", + "type": "object", + "additionalProperties": false + }, + "remove": { + "description": "Removes current entity from the database.", + "type": "object", + "additionalProperties": false + }, + "softRemove": { + "description": "Records the delete date of current entity.", + "type": "object", + "additionalProperties": false + }, + "recover": { + "description": "Recovers a given entity in the database.", + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_channel_id": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ] + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ], + "default": null + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "global_name", + "id", + "public_flags", + "username" + ] + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "string" + }, + "is_primary": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ] + }, + "GuildVoiceRegion": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { + "type": "boolean" + }, + "optimal": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal" + ] + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "minUsername": { + "type": "integer", + "default": 2 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + } + }, + "additionalProperties": false, + "required": [ + "maxFriends", + "maxGuilds", + "maxUsername", + "minUsername" + ] + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles" + ] + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxReactions", + "maxTTSCharacters" + ] + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + } + }, + "additionalProperties": false, + "required": [ + "maxPins", + "maxTopic", + "maxWebhooks" + ] + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/definitions/RateLimitOptions" + }, + "global": { + "$ref": "#/definitions/RateLimitOptions" + }, + "error": { + "$ref": "#/definitions/RateLimitOptions" + }, + "routes": { + "$ref": "#/definitions/RouteRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ] + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "window" + ] + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/RateLimitOptions" + }, + "webhook": { + "$ref": "#/definitions/RateLimitOptions" + }, + "channel": { + "$ref": "#/definitions/RateLimitOptions" + }, + "auth": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "register", + "sendMessage" + ] + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "limit", + "window" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "UserProfile": { + "type": "object", + "properties": { + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CreateWebAuthnCredentialSchema": { "type": "object", "properties": { - "audio_ssrc": { - "type": "integer" - }, - "video_ssrc": { - "type": "integer" - }, - "rtx_ssrc": { - "type": "integer" + "credential": { + "type": "string" }, - "user_id": { + "name": { "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" - ] - } + "ticket": { + "type": "string" } }, "additionalProperties": false, "required": [ - "audio_ssrc", - "video_ssrc" + "credential", + "name", + "ticket" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -213318,16 +221792,14 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" + "WebAuthnPostSchema": { + "anyOf": [ + { + "$ref": "#/definitions/GenerateWebAuthnCredentialsSchema" + }, + { + "$ref": "#/definitions/CreateWebAuthnCredentialSchema" } - }, - "additionalProperties": false, - "required": [ - "password" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -217551,13 +226023,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "CreateWebAuthnCredentialSchema": { + "WebAuthnTotpSchema": { "type": "object", "properties": { - "credential": { - "type": "string" - }, - "name": { + "code": { "type": "string" }, "ticket": { @@ -217566,8 +226035,7 @@ }, "additionalProperties": false, "required": [ - "credential", - "name", + "code", "ticket" ], "definitions": { @@ -221792,14 +230260,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnPostSchema": { - "anyOf": [ - { - "$ref": "#/definitions/GenerateWebAuthnCredentialsSchema" + "WebhookCreateSchema": { + "type": "object", + "properties": { + "name": { + "maxLength": 80, + "type": "string" }, - { - "$ref": "#/definitions/CreateWebAuthnCredentialSchema" + "avatar": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "name" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -226023,20 +234497,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnTotpSchema": { + "WidgetModifySchema": { "type": "object", "properties": { - "code": { - "type": "string" + "enabled": { + "type": "boolean" }, - "ticket": { + "channel_id": { "type": "string" } }, "additionalProperties": false, "required": [ - "code", - "ticket" + "channel_id", + "enabled" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -230260,20 +238734,52 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebhookCreateSchema": { + "APIErrorResponse": { "type": "object", "properties": { - "name": { - "maxLength": 80, - "type": "string" + "code": { + "type": "integer" }, - "avatar": { + "message": { "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } } }, "additionalProperties": false, "required": [ - "name" + "code", + "errors", + "message" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -234497,20 +243003,24 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WidgetModifySchema": { + "CaptchaRequiredResponse": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "captcha_key": { + "type": "string" }, - "channel_id": { + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { "type": "string" } }, "additionalProperties": false, "required": [ - "channel_id", - "enabled" + "captcha_key", + "captcha_service", + "captcha_sitekey" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -238734,52 +247244,14 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" + "APIErrorOrCaptchaResponse": { + "anyOf": [ + { + "$ref": "#/definitions/APIErrorResponse" }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } + { + "$ref": "#/definitions/CaptchaRequiredResponse" } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -243003,24 +251475,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "CaptchaRequiredResponse": { + "BackupCodesChallengeResponse": { "type": "object", "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { + "nonce": { "type": "string" }, - "captcha_service": { + "regenerate_nonce": { "type": "string" } }, "additionalProperties": false, "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" + "nonce", + "regenerate_nonce" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -247244,14 +255712,31 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIErrorOrCaptchaResponse": { - "anyOf": [ - { - "$ref": "#/definitions/APIErrorResponse" + "DiscoverableGuildsResponse": { + "type": "object", + "properties": { + "total": { + "type": "integer" }, - { - "$ref": "#/definitions/CaptchaRequiredResponse" + "guilds": { + "type": "array", + "items": { + "$ref": "#/definitions/Guild" + } + }, + "offset": { + "type": "integer" + }, + "limit": { + "type": "integer" } + }, + "additionalProperties": false, + "required": [ + "guilds", + "limit", + "offset", + "total" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -251475,20 +259960,45 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "BackupCodesChallengeResponse": { + "GatewayBotResponse": { "type": "object", "properties": { - "nonce": { + "url": { "type": "string" }, - "regenerate_nonce": { - "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": [ - "nonce", - "regenerate_nonce" + "session_start_limit", + "shards", + "url" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -255712,31 +264222,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "DiscoverableGuildsResponse": { + "GatewayResponse": { "type": "object", "properties": { - "total": { - "type": "integer" - }, - "guilds": { - "type": "array", - "items": { - "$ref": "#/definitions/Guild" - } - }, - "offset": { - "type": "integer" - }, - "limit": { - "type": "integer" + "url": { + "type": "string" } }, "additionalProperties": false, "required": [ - "guilds", - "limit", - "offset", - "total" + "url" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -259960,45 +268455,19 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GatewayBotResponse": { + "GenerateRegistrationTokensResponse": { "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" - ] + "tokens": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "session_start_limit", - "shards", - "url" + "tokens" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -264222,16 +272691,51 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GatewayResponse": { + "GuildBansResponse": { "type": "object", "properties": { - "url": { + "reason": { "type": "string" + }, + "user": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "public_flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "discriminator", + "id", + "public_flags", + "username" + ] } }, "additionalProperties": false, "required": [ - "url" + "reason", + "user" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -268455,19 +276959,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GenerateRegistrationTokensResponse": { + "GuildCreateResponse": { "type": "object", "properties": { - "tokens": { - "type": "array", - "items": { - "type": "string" - } + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "tokens" + "id" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -272691,51 +281192,95 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildBansResponse": { + "GuildDiscoveryRequirementsResponse": { "type": "object", "properties": { - "reason": { + "uild_id": { "type": "string" }, - "user": { + "safe_environment": { + "type": "boolean" + }, + "healthy": { + "type": "boolean" + }, + "health_score_pending": { + "type": "boolean" + }, + "size": { + "type": "boolean" + }, + "nsfw_properties": {}, + "protected": { + "type": "boolean" + }, + "sufficient": { + "type": "boolean" + }, + "sufficient_without_grace_period": { + "type": "boolean" + }, + "valid_rules_channel": { + "type": "boolean" + }, + "retention_healthy": { + "type": "boolean" + }, + "engagement_healthy": { + "type": "boolean" + }, + "age": { + "type": "boolean" + }, + "minimum_age": { + "type": "integer" + }, + "health_score": { "type": "object", "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "global_name": { - "type": "string" + "avg_nonnew_participators": { + "type": "integer" }, - "id": { - "type": "string" + "avg_nonnew_communicators": { + "type": "integer" }, - "avatar": { - "type": [ - "null", - "string" - ] + "num_intentful_joiners": { + "type": "integer" }, - "public_flags": { + "perc_ret_w1_intentful": { "type": "integer" } }, "additionalProperties": false, "required": [ - "avatar", - "discriminator", - "id", - "public_flags", - "username" + "avg_nonnew_communicators", + "avg_nonnew_participators", + "num_intentful_joiners", + "perc_ret_w1_intentful" ] + }, + "minimum_size": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "reason", - "user" + "age", + "engagement_healthy", + "health_score", + "health_score_pending", + "healthy", + "minimum_age", + "minimum_size", + "nsfw_properties", + "protected", + "retention_healthy", + "safe_environment", + "size", + "sufficient", + "sufficient_without_grace_period", + "uild_id", + "valid_rules_channel" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -276959,16 +285504,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildCreateResponse": { + "GuildMessagesSearchResponse": { "type": "object", "properties": { - "id": { - "type": "string" + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildMessagesSearchMessage" + } + }, + "total_results": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "id" + "messages", + "total_results" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -281192,95 +289744,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildDiscoveryRequirementsResponse": { + "GuildPruneResponse": { "type": "object", "properties": { - "uild_id": { - "type": "string" - }, - "safe_environment": { - "type": "boolean" - }, - "healthy": { - "type": "boolean" - }, - "health_score_pending": { - "type": "boolean" - }, - "size": { - "type": "boolean" - }, - "nsfw_properties": {}, - "protected": { - "type": "boolean" - }, - "sufficient": { - "type": "boolean" - }, - "sufficient_without_grace_period": { - "type": "boolean" - }, - "valid_rules_channel": { - "type": "boolean" - }, - "retention_healthy": { - "type": "boolean" - }, - "engagement_healthy": { - "type": "boolean" - }, - "age": { - "type": "boolean" - }, - "minimum_age": { - "type": "integer" - }, - "health_score": { - "type": "object", - "properties": { - "avg_nonnew_participators": { - "type": "integer" - }, - "avg_nonnew_communicators": { - "type": "integer" - }, - "num_intentful_joiners": { - "type": "integer" - }, - "perc_ret_w1_intentful": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "avg_nonnew_communicators", - "avg_nonnew_participators", - "num_intentful_joiners", - "perc_ret_w1_intentful" - ] - }, - "minimum_size": { + "pruned": { "type": "integer" } }, "additionalProperties": false, "required": [ - "age", - "engagement_healthy", - "health_score", - "health_score_pending", - "healthy", - "minimum_age", - "minimum_size", - "nsfw_properties", - "protected", - "retention_healthy", - "safe_environment", - "size", - "sufficient", - "sufficient_without_grace_period", - "uild_id", - "valid_rules_channel" + "pruned" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -285504,23 +293977,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildMessagesSearchResponse": { + "GuildPurgeResponse": { "type": "object", "properties": { - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildMessagesSearchMessage" - } - }, - "total_results": { + "purged": { "type": "integer" } }, "additionalProperties": false, "required": [ - "messages", - "total_results" + "purged" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -289744,16 +298210,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildPruneResponse": { + "GuildRecommendationsResponse": { "type": "object", "properties": { - "pruned": { - "type": "integer" + "recommended_guilds": { + "type": "array", + "items": { + "$ref": "#/definitions/Guild" + } + }, + "load_id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "pruned" + "load_id", + "recommended_guilds" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -293977,16 +302450,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildPurgeResponse": { - "type": "object", - "properties": { - "purged": { - "type": "integer" + "GuildVanityUrlResponse": { + "anyOf": [ + { + "$ref": "#/definitions/GuildVanityUrl" + }, + { + "$ref": "#/definitions/GuildVanityUrlNoInvite" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/GuildVanityUrl" + } } - }, - "additionalProperties": false, - "required": [ - "purged" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -298210,23 +306687,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildRecommendationsResponse": { + "GuildVanityUrlCreateResponse": { "type": "object", "properties": { - "recommended_guilds": { - "type": "array", - "items": { - "$ref": "#/definitions/Guild" - } - }, - "load_id": { + "code": { "type": "string" } }, "additionalProperties": false, "required": [ - "load_id", - "recommended_guilds" + "code" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -302450,20 +310920,98 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildVanityUrlResponse": { - "anyOf": [ - { - "$ref": "#/definitions/GuildVanityUrl" + "GuildWidgetJsonResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" }, - { - "$ref": "#/definitions/GuildVanityUrlNoInvite" + "name": { + "type": "string" }, - { + "instant_invite": { + "type": "string" + }, + "channels": { "type": "array", "items": { - "$ref": "#/definitions/GuildVanityUrl" + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "position" + ] + } + }, + "members": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ] + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "status": { + "$ref": "#/definitions/ClientStatus" + }, + "avatar_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "avatar_url", + "discriminator", + "global_name", + "id", + "status", + "username" + ] } + }, + "presence_count": { + "type": "integer" } + }, + "additionalProperties": false, + "required": [ + "channels", + "id", + "instant_invite", + "members", + "name", + "presence_count" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -306687,16 +315235,27 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildVanityUrlCreateResponse": { + "GuildWidgetSettingsResponse": { "type": "object", "properties": { - "code": { - "type": "string" + "enabled": { + "type": "boolean" + }, + "channel_id": { + "anyOf": [ + { + "$ref": "#/definitions/Snowflake" + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, "required": [ - "code" + "channel_id", + "enabled" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -310920,98 +319479,28 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildWidgetJsonResponse": { + "InstanceDomainsResponse": { "type": "object", "properties": { - "id": { + "cdn": { "type": "string" }, - "name": { + "gateway": { "type": "string" }, - "instant_invite": { + "defaultApiVersion": { "type": "string" }, - "channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "position": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "position" - ] - } - }, - "members": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "global_name": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "status": { - "$ref": "#/definitions/ClientStatus" - }, - "avatar_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "avatar", - "avatar_url", - "discriminator", - "global_name", - "id", - "status", - "username" - ] - } - }, - "presence_count": { - "type": "integer" + "apiEndpoint": { + "type": "string" } }, "additionalProperties": false, "required": [ - "channels", - "id", - "instant_invite", - "members", - "name", - "presence_count" + "apiEndpoint", + "cdn", + "defaultApiVersion", + "gateway" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -315235,27 +323724,78 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildWidgetSettingsResponse": { + "InstancePingResponse": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "ping": { + "type": "string", + "enum": [ + "pong!" + ] }, - "channel_id": { - "anyOf": [ - { - "$ref": "#/definitions/Snowflake" + "instance": { + "type": "object", + "properties": { + "id": { + "type": "string" }, - { - "type": "null" + "name": { + "type": "string" + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "image": { + "type": [ + "null", + "string" + ] + }, + "correspondenceEmail": { + "type": [ + "null", + "string" + ] + }, + "correspondenceUserID": { + "type": [ + "null", + "string" + ] + }, + "frontPage": { + "type": [ + "null", + "string" + ] + }, + "tosPage": { + "type": [ + "null", + "string" + ] } + }, + "additionalProperties": false, + "required": [ + "correspondenceEmail", + "correspondenceUserID", + "description", + "frontPage", + "id", + "image", + "name", + "tosPage" ] } }, "additionalProperties": false, "required": [ - "channel_id", - "enabled" + "instance", + "ping" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -319479,28 +328019,37 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstanceDomainsResponse": { + "InstanceStatsResponse": { "type": "object", "properties": { - "cdn": { - "type": "string" - }, - "gateway": { - "type": "string" - }, - "defaultApiVersion": { - "type": "string" - }, - "apiEndpoint": { - "type": "string" + "counts": { + "type": "object", + "properties": { + "user": { + "type": "integer" + }, + "guild": { + "type": "integer" + }, + "message": { + "type": "integer" + }, + "members": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "guild", + "members", + "message", + "user" + ] } }, "additionalProperties": false, "required": [ - "apiEndpoint", - "cdn", - "defaultApiVersion", - "gateway" + "counts" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -323724,78 +332273,43 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstancePingResponse": { + "LocationMetadataResponse": { "type": "object", "properties": { - "ping": { - "type": "string", - "enum": [ - "pong!" - ] + "consent_required": { + "type": "boolean" }, - "instance": { + "country_code": { + "type": "string" + }, + "promotional_email_opt_in": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": [ - "null", - "string" - ] - }, - "image": { - "type": [ - "null", - "string" - ] - }, - "correspondenceEmail": { - "type": [ - "null", - "string" - ] - }, - "correspondenceUserID": { - "type": [ - "null", - "string" - ] - }, - "frontPage": { - "type": [ - "null", - "string" + "required": { + "type": "boolean", + "enum": [ + true ] }, - "tosPage": { - "type": [ - "null", - "string" + "pre_checked": { + "type": "boolean", + "enum": [ + false ] } }, "additionalProperties": false, "required": [ - "correspondenceEmail", - "correspondenceUserID", - "description", - "frontPage", - "id", - "image", - "name", - "tosPage" + "pre_checked", + "required" ] } }, "additionalProperties": false, "required": [ - "instance", - "ping" + "consent_required", + "country_code", + "promotional_email_opt_in" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -328019,37 +336533,37 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstanceStatsResponse": { + "MemberJoinGuildResponse": { "type": "object", "properties": { - "counts": { - "type": "object", - "properties": { - "user": { - "type": "integer" - }, - "guild": { - "type": "integer" - }, - "message": { - "type": "integer" - }, - "members": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "guild", - "members", - "message", - "user" - ] + "guild": { + "$ref": "#/definitions/Guild" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } } }, "additionalProperties": false, "required": [ - "counts" + "emojis", + "guild", + "roles", + "stickers" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -332273,43 +340787,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "LocationMetadataResponse": { + "OAuthAuthorizeResponse": { "type": "object", "properties": { - "consent_required": { - "type": "boolean" - }, - "country_code": { + "location": { "type": "string" - }, - "promotional_email_opt_in": { - "type": "object", - "properties": { - "required": { - "type": "boolean", - "enum": [ - true - ] - }, - "pre_checked": { - "type": "boolean", - "enum": [ - false - ] - } - }, - "additionalProperties": false, - "required": [ - "pre_checked", - "required" - ] } }, "additionalProperties": false, "required": [ - "consent_required", - "country_code", - "promotional_email_opt_in" + "location" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -336533,37 +345020,44 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MemberJoinGuildResponse": { + "TenorGifResponse": { "type": "object", "properties": { - "guild": { - "$ref": "#/definitions/Guild" + "id": { + "type": "string" }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } + "title": { + "type": "string" }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } + "url": { + "type": "string" }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" } }, "additionalProperties": false, "required": [ - "emojis", - "guild", - "roles", - "stickers" + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -340787,16 +349281,56 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "OAuthAuthorizeResponse": { + "TenorTrendingResponse": { "type": "object", "properties": { - "location": { - "type": "string" + "categories": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "type": "object", + "properties": { + "searchterm": { + "type": "string" + }, + "path": { + "type": "string" + }, + "image": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "image", + "name", + "path", + "searchterm" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "tags" + ] + }, + "gifs": { + "type": "array", + "items": { + "$ref": "#/definitions/TenorGifResponse" + } } }, "additionalProperties": false, "required": [ - "location" + "categories", + "gifs" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -345020,45 +353554,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } + "TenorGifsResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/TenorGifResponse" }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -349281,56 +357781,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TenorTrendingResponse": { + "TokenResponse": { "type": "object", "properties": { - "categories": { - "type": "object", - "properties": { - "tags": { - "type": "array", - "items": { - "type": "object", - "properties": { - "searchterm": { - "type": "string" - }, - "path": { - "type": "string" - }, - "image": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "image", - "name", - "path", - "searchterm" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "tags" - ] + "token": { + "type": "string" }, - "gifs": { - "type": "array", - "items": { - "$ref": "#/definitions/TenorGifResponse" - } + "settings": { + "$ref": "#/definitions/UserSettings" } }, "additionalProperties": false, "required": [ - "categories", - "gifs" + "settings", + "token" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -353554,11 +362018,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TenorGifsResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/TenorGifResponse" + "TokenOnlyResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + } }, + "additionalProperties": false, + "required": [ + "token" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -357781,19 +366251,22 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TokenResponse": { + "TokenWithBackupCodesResponse": { "type": "object", "properties": { "token": { "type": "string" }, - "settings": { - "$ref": "#/definitions/UserSettings" + "backup_codes": { + "type": "array", + "items": { + "$ref": "#/definitions/BackupCode" + } } }, "additionalProperties": false, "required": [ - "settings", + "backup_codes", "token" ], "definitions": { @@ -362018,16 +370491,227 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TokenOnlyResponse": { + "APIGuild": { "type": "object", "properties": { - "token": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "token" + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -366251,24 +374935,8 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TokenWithBackupCodesResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "backup_codes": { - "type": "array", - "items": { - "$ref": "#/definitions/BackupCode" - } - } - }, - "additionalProperties": false, - "required": [ - "backup_codes", - "token" - ], + "APIPublicUser": { + "$ref": "#/definitions/PublicUser", "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -370491,227 +379159,104 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuild": { + "APIPrivateUser": { "type": "object", "properties": { - "name": { - "type": "string" - }, "id": { "type": "string" }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } + "flags": { + "type": "integer" }, - "banner": { - "type": "string" + "premium_since": { + "type": "string", + "format": "date-time" }, - "description": { + "avatar": { "type": "string" }, - "unavailable": { + "verified": { "type": "boolean" }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { + "username": { "type": "string" }, - "system_channel_id": { + "global_name": { "type": "string" }, - "rules_channel_id": { + "discriminator": { "type": "string" }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { + "public_flags": { "type": "integer" }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { + "accent_color": { "type": "integer" }, - "discovery_splash": { + "banner": { "type": "string" }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { + "bio": { "type": "string" }, - "large": { + "bot": { "type": "boolean" }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { + "premium_type": { "type": "integer" }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { + "theme_colors": { "type": "array", "items": { - "$ref": "#/definitions/Sticker" + "type": "integer" } }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { + "pronouns": { "type": "string" }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" + "mfa_enabled": { + "type": "boolean" }, - "public_updates_channel_id": { + "email": { "type": "string" }, - "splash": { + "phone": { "type": "string" }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" + "nsfw_allowed": { + "type": "boolean" }, - "widget_enabled": { + "premium": { "type": "boolean" }, - "nsfw_level": { + "purchased_flags": { "type": "integer" }, - "permissions": { + "premium_usage_flags": { "type": "integer" }, - "premium_progress_bar_enabled": { + "disabled": { "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } } }, "additionalProperties": false, "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", + "bio", + "bot", + "disabled", + "discriminator", + "flags", "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -374935,8 +383480,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPublicUser": { - "$ref": "#/definitions/PublicUser", + "APIGuildArray": { + "type": "array", + "items": { + "$ref": "#/definitions/APIGuild" + }, "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -379159,105 +387707,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPrivateUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "flags": { - "type": "integer" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "global_name": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "mfa_enabled": { - "type": "boolean" - }, - "email": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } + "APIDMChannelArray": { + "type": "array", + "items": { + "$ref": "#/definitions/DmChannelDTO" }, - "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" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -383480,10 +391934,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuildArray": { + "APIBackupCodeArray": { "type": "array", "items": { - "$ref": "#/definitions/APIGuild" + "$ref": "#/definitions/BackupCode" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -387707,11 +396161,105 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIDMChannelArray": { - "type": "array", - "items": { - "$ref": "#/definitions/DmChannelDTO" + "PrivateUserResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "flags": { + "type": "integer" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "mfa_enabled": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } }, + "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" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -391934,11 +400482,8 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIBackupCodeArray": { - "type": "array", - "items": { - "$ref": "#/definitions/BackupCode" - }, + "PublicUserResponse": { + "$ref": "#/definitions/PublicUser", "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -544878,7 +553423,7 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UsernameAttemptResponse": { + "UniqueUsernameAttemptResponse": { "type": "object", "properties": { "taken": { diff --git a/src/api/routes/unique-username/username-attempt-unauthed.ts b/src/api/routes/unique-username/username-attempt-unauthed.ts index 3af1fa883..b225a2996 100644 --- a/src/api/routes/unique-username/username-attempt-unauthed.ts +++ b/src/api/routes/unique-username/username-attempt-unauthed.ts @@ -1,5 +1,5 @@ import { route } from "@spacebar/api"; -import { Config, User, UsernameAttemptUnauthedSchema } from "@spacebar/util"; +import { Config, UniqueUsernameAttemptSchema, User } from "@spacebar/util"; import { Request, Response, Router } from "express"; import { HTTPError } from "lambert-server"; const router = Router(); @@ -7,15 +7,16 @@ const router = Router(); router.post( "/", route({ - requestBody: "UsernameAttemptUnauthedSchema", + requestBody: "UniqueUsernameAttemptSchema", responses: { - 200: { body: "UsernameAttemptResponse" }, + 200: { body: "UniqueUsernameAttemptResponse" }, 400: { body: "APIErrorResponse" }, }, - description: "Check if a username is available", + description: + "Checks whether a unique username is available for the user to claim.", }), async (req: Request, res: Response) => { - const body = req.body as UsernameAttemptUnauthedSchema; + const body = req.body as UniqueUsernameAttemptSchema; const { uniqueUsernames } = Config.get().general; if (!uniqueUsernames) { throw new HTTPError( diff --git a/src/api/routes/unique-username/username-suggestions-unauthed.ts b/src/api/routes/unique-username/username-suggestions-unauthed.ts index 9b112b558..2ce09285b 100644 --- a/src/api/routes/unique-username/username-suggestions-unauthed.ts +++ b/src/api/routes/unique-username/username-suggestions-unauthed.ts @@ -1,12 +1,14 @@ import { route } from "@spacebar/api"; +import { Config } from "@spacebar/util"; import { Request, Response, Router } from "express"; import { HTTPError } from "lambert-server"; -import { Config } from "../../../util"; const router = Router(); router.get( "/", route({ + description: + "Returns a suggested unique username string based on the current user's username.", query: { global_name: { type: "string", diff --git a/src/util/schemas/UniqueUsernameAttemptSchema.ts b/src/util/schemas/UniqueUsernameAttemptSchema.ts new file mode 100644 index 000000000..39ebb25f2 --- /dev/null +++ b/src/util/schemas/UniqueUsernameAttemptSchema.ts @@ -0,0 +1,3 @@ +export interface UniqueUsernameAttemptSchema { + username: string; +} diff --git a/src/util/schemas/UsernameAttemptUnauthedSchema.ts b/src/util/schemas/UsernameAttemptUnauthedSchema.ts deleted file mode 100644 index 0ac83dd0e..000000000 --- a/src/util/schemas/UsernameAttemptUnauthedSchema.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface UsernameAttemptUnauthedSchema { - username: string; -} diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts index bb449e450..f8fd5365f 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts @@ -66,13 +66,13 @@ export * from "./TemplateModifySchema"; export * from "./TotpDisableSchema"; export * from "./TotpEnableSchema"; export * from "./TotpSchema"; +export * from "./UniqueUsernameAttemptSchema"; export * from "./UserDeleteSchema"; export * from "./UserGuildSettingsSchema"; export * from "./UserModifySchema"; export * from "./UserNoteUpdateSchema"; export * from "./UserProfileModifySchema"; export * from "./UserSettingsSchema"; -export * from "./UsernameAttemptUnauthedSchema"; export * from "./Validator"; export * from "./VanityUrlSchema"; export * from "./VoiceIdentifySchema"; diff --git a/src/util/schemas/responses/TypedResponses.ts b/src/util/schemas/responses/TypedResponses.ts index fa169c253..0f4f9c79f 100644 --- a/src/util/schemas/responses/TypedResponses.ts +++ b/src/util/schemas/responses/TypedResponses.ts @@ -60,6 +60,9 @@ export type APIDMChannelArray = DmChannelDTO[]; export type APIBackupCodeArray = BackupCode[]; +export type PrivateUserResponse = APIPrivateUser; +export type PublicUserResponse = APIPublicUser; + export interface UserUpdateResponse extends APIPrivateUser { newToken?: string; } diff --git a/src/util/schemas/responses/UniqueUsernameAttemptResponse.ts b/src/util/schemas/responses/UniqueUsernameAttemptResponse.ts new file mode 100644 index 000000000..b9804f9cc --- /dev/null +++ b/src/util/schemas/responses/UniqueUsernameAttemptResponse.ts @@ -0,0 +1,3 @@ +export interface UniqueUsernameAttemptResponse { + taken: boolean; +} diff --git a/src/util/schemas/responses/UsernameAttemptResponse.ts b/src/util/schemas/responses/UsernameAttemptResponse.ts deleted file mode 100644 index 864a3bb00..000000000 --- a/src/util/schemas/responses/UsernameAttemptResponse.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface UsernameAttemptResponse { - taken: boolean; -} From 83fa03e3927dc4b9979b13bbb85a05c51253f229 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 23 Dec 2023 17:31:56 -0500 Subject: [PATCH 15/16] implement authed pomelo routes --- src/api/routes/users/@me/pomelo-attempt.ts | 35 +++++++++++ .../routes/users/@me/pomelo-suggestions.ts | 37 +++++++++++ src/api/routes/users/@me/pomelo.ts | 61 +++++++++++++++++++ 3 files changed, 133 insertions(+) create mode 100644 src/api/routes/users/@me/pomelo-attempt.ts create mode 100644 src/api/routes/users/@me/pomelo-suggestions.ts create mode 100644 src/api/routes/users/@me/pomelo.ts diff --git a/src/api/routes/users/@me/pomelo-attempt.ts b/src/api/routes/users/@me/pomelo-attempt.ts new file mode 100644 index 000000000..d4327f618 --- /dev/null +++ b/src/api/routes/users/@me/pomelo-attempt.ts @@ -0,0 +1,35 @@ +import { route } from "@spacebar/api"; +import { Config, UniqueUsernameAttemptSchema, User } from "@spacebar/util"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; +const router = Router(); + +// https://discord-userdoccers.vercel.app/resources/user#get-pomelo-eligibility +router.post( + "/", + route({ + requestBody: "UniqueUsernameAttemptSchema", + responses: { + 200: { body: "UniqueUsernameAttemptResponse" }, + 400: { body: "APIErrorResponse" }, + }, + description: + "Checks whether a unique username is available for the user to claim.", + }), + async (req: Request, res: Response) => { + const body = req.body as UniqueUsernameAttemptSchema; + const { uniqueUsernames } = Config.get().general; + if (!uniqueUsernames) { + throw new HTTPError( + "Unique Usernames feature is not enabled on this instance.", + 400, + ); + } + + res.json({ + taken: !(await User.isUsernameAvailable(body.username)), + }); + }, +); + +export default router; diff --git a/src/api/routes/users/@me/pomelo-suggestions.ts b/src/api/routes/users/@me/pomelo-suggestions.ts new file mode 100644 index 000000000..c70336bf1 --- /dev/null +++ b/src/api/routes/users/@me/pomelo-suggestions.ts @@ -0,0 +1,37 @@ +import { route } from "@spacebar/api"; +import { Config, User } from "@spacebar/util"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; +const router = Router(); + +// https://discord-userdoccers.vercel.app/resources/user#get-pomelo-suggestions +router.get( + "/", + route({ + description: + "Returns a suggested unique username string based on the current user's username.", + responses: { + 400: { body: "APIErrorResponse" }, + }, + }), + async (req: Request, res: Response) => { + const { uniqueUsernames } = Config.get().general; + if (!uniqueUsernames) { + throw new HTTPError( + "Unique Usernames feature is not enabled on this instance.", + 400, + ); + } + + const user = await User.findOneOrFail({ + where: { + id: req.user_id, + }, + }); + + // TODO: return a suggestion based on the users current username + return res.json({ username: user.username.toString() }); + }, +); + +export default router; diff --git a/src/api/routes/users/@me/pomelo.ts b/src/api/routes/users/@me/pomelo.ts new file mode 100644 index 000000000..e10beaa41 --- /dev/null +++ b/src/api/routes/users/@me/pomelo.ts @@ -0,0 +1,61 @@ +import { route } from "@spacebar/api"; +import { + Config, + FieldErrors, + UniqueUsernameAttemptSchema, + User, +} from "@spacebar/util"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; +const router = Router(); + +// https://discord-userdoccers.vercel.app/resources/user#create-pomelo-migration +router.post( + "/", + route({ + description: + "Claims a unique username for the user. Returns the updated user object on success. Fires a User Update Gateway event.", + requestBody: "UniqueUsernameAttemptSchema", + responses: { + 200: { body: "PrivateUserResponse" }, + 400: { body: "APIErrorResponse" }, + }, + }), + async (req: Request, res: Response) => { + const body = req.body as UniqueUsernameAttemptSchema; + const { uniqueUsernames } = Config.get().general; + if (!uniqueUsernames) { + throw new HTTPError( + "Unique Usernames feature is not enabled on this instance.", + 400, + ); + } + + const isAvailable = await User.isUsernameAvailable(body.username); + + if (!isAvailable) { + throw FieldErrors({ + username: { + code: "USERNAME_TOO_MANY_USERS", + message: + req?.t("auth:register.USERNAME_TOO_MANY_USERS") || "", + }, + }); + } + + const user = await User.findOneOrFail({ + where: { + id: req.user_id, + }, + }); + + user.legacy_username = user.username; + user.username = body.username; + user.discriminator = "0"; + const newUser = await user.save(); + + res.json(newUser.toPrivateUser()); + }, +); + +export default router; From 56680f670b3a425a6a5f0815501c06e61d0d30bc Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 23 Dec 2023 17:36:30 -0500 Subject: [PATCH 16/16] Update username-suggestions-unauthed.ts --- .../routes/unique-username/username-suggestions-unauthed.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/routes/unique-username/username-suggestions-unauthed.ts b/src/api/routes/unique-username/username-suggestions-unauthed.ts index 2ce09285b..554586af8 100644 --- a/src/api/routes/unique-username/username-suggestions-unauthed.ts +++ b/src/api/routes/unique-username/username-suggestions-unauthed.ts @@ -29,9 +29,9 @@ router.get( ); } - // return a random suggestion + // TODO: return a random suggestion if (!globalName) return res.json({ username: "" }); - // return a suggestion based on the globalName + // TODO: return a suggestion based on the globalName return res.json({ username: globalName }); }, );