From b0989ff88cf2ba5edc4f560b7e15aedcfaae9b49 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Thu, 21 Dec 2023 10:43:07 +1100 Subject: update schemas.json and openapi.json --- assets/openapi.json | 141 +++++++++++++++++++++++++++++++++------------------- assets/schemas.json | 96 +++++++++++++++++------------------ 2 files changed, 139 insertions(+), 98 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index 19686c59..da2b20f1 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -1127,12 +1127,19 @@ "type": "boolean", "default": false }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } }, "required": [ "bans", + "channel_ordering", "channels", "emojis", "features", @@ -1203,9 +1210,6 @@ "default_auto_archive_duration": { "type": "integer" }, - "position": { - "type": "integer" - }, "permission_overwrites": { "type": "array", "items": { @@ -1272,6 +1276,10 @@ "type": "integer", "default": 0 }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, "id": { "type": "string" } @@ -1280,11 +1288,11 @@ "created_at", "default_thread_rate_limit_per_user", "flags", - "guild", "id", "nsfw", "owner", "parent_id", + "position", "type" ] }, @@ -2324,7 +2332,6 @@ } }, "required": [ - "avatar", "banner", "bio", "communication_disabled_until", @@ -3473,6 +3480,9 @@ "type": "string", "format": "date-time" }, + "avatar": { + "type": "string" + }, "username": { "type": "string" }, @@ -3482,9 +3492,6 @@ "public_flags": { "type": "integer" }, - "avatar": { - "type": "string" - }, "accent_color": { "type": "integer" }, @@ -3721,6 +3728,9 @@ "banner": { "type": "string" }, + "description": { + "type": "string" + }, "unavailable": { "type": "boolean" }, @@ -3757,9 +3767,6 @@ "default_message_notifications": { "type": "integer" }, - "description": { - "type": "string" - }, "discovery_splash": { "type": "string" }, @@ -3852,12 +3859,19 @@ }, "premium_progress_bar_enabled": { "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } } }, "required": [ "_do_validate", "assign", "bans", + "channel_ordering", "channels", "emojis", "features", @@ -5081,6 +5095,9 @@ "content": { "type": "string" }, + "mobile_network_type": { + "type": "string" + }, "nonce": { "type": "string" }, @@ -5191,6 +5208,10 @@ "items": { "type": "string" } + }, + "components": { + "type": "array", + "items": {} } } }, @@ -5218,6 +5239,9 @@ "content": { "type": "string" }, + "mobile_network_type": { + "type": "string" + }, "nonce": { "type": "string" }, @@ -5310,6 +5334,10 @@ "items": { "type": "string" } + }, + "components": { + "type": "array", + "items": {} } } }, @@ -5834,6 +5862,16 @@ "UserSettingsSchema": { "type": "object", "properties": { + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, "afk_timeout": { "type": "integer" }, @@ -5931,16 +5969,6 @@ "show_current_game": { "type": "boolean" }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, "stream_notifications_enabled": { "type": "boolean" }, @@ -6960,6 +6988,9 @@ "type": "string", "format": "date-time" }, + "avatar": { + "type": "string" + }, "verified": { "type": "boolean" }, @@ -6972,9 +7003,6 @@ "public_flags": { "type": "integer" }, - "avatar": { - "type": "string" - }, "accent_color": { "type": "integer" }, @@ -7077,6 +7105,9 @@ "type": "string", "format": "date-time" }, + "avatar": { + "type": "string" + }, "verified": { "type": "boolean" }, @@ -7089,9 +7120,6 @@ "public_flags": { "type": "integer" }, - "avatar": { - "type": "string" - }, "accent_color": { "type": "integer" }, @@ -7305,6 +7333,9 @@ "premium_since": { "type": "integer" }, + "avatar": { + "type": "string" + }, "user": { "$ref": "#/components/schemas/PublicUser" }, @@ -7533,12 +7564,19 @@ "type": "boolean", "default": false }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } }, "required": [ "bans", + "channel_ordering", "channels", "emojis", "features", @@ -7737,6 +7775,9 @@ "premium_since": { "type": "integer" }, + "avatar": { + "type": "string" + }, "user": { "$ref": "#/components/schemas/PublicUser" }, @@ -7792,29 +7833,6 @@ "user_profile" ] }, - "UserRelationshipsResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/RelationshipType" - }, - "nickname": { - "type": "null" - }, - "user": { - "$ref": "#/components/schemas/PublicUser" - } - }, - "required": [ - "id", - "nickname", - "type", - "user" - ] - }, "UserRelationsResponse": { "type": "array", "items": { @@ -7845,6 +7863,29 @@ ] } }, + "UserRelationshipsResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/RelationshipType" + }, + "nickname": { + "type": "null" + }, + "user": { + "$ref": "#/components/schemas/PublicUser" + } + }, + "required": [ + "id", + "nickname", + "type", + "user" + ] + }, "WebAuthnCreateResponse": { "type": "object", "properties": { diff --git a/assets/schemas.json b/assets/schemas.json index a0ab1697..ab8e0a3f 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -490966,29 +490966,35 @@ }, "$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" + }, + "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": [ @@ -495185,35 +495191,29 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserRelationsResponse": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "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": [ -- cgit 1.4.1