update schemas.json and openapi.json

This commit is contained in:
Madeline 2023-12-21 10:43:07 +11:00
parent 9a286e1f74
commit b0989ff88c
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47
2 changed files with 139 additions and 98 deletions

View File

@ -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": {

View File

@ -490966,29 +490966,35 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
"UserRelationshipsResponse": {
"type": "object",
"properties": {
"id": {
"type": "string"
"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"
}
},
"type": {
"$ref": "#/definitions/RelationshipType"
},
"nickname": {
"type": "null"
},
"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": [