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", "type": "boolean",
"default": false "default": false
}, },
"channel_ordering": {
"type": "array",
"items": {
"type": "string"
}
},
"id": { "id": {
"type": "string" "type": "string"
} }
}, },
"required": [ "required": [
"bans", "bans",
"channel_ordering",
"channels", "channels",
"emojis", "emojis",
"features", "features",
@ -1203,9 +1210,6 @@
"default_auto_archive_duration": { "default_auto_archive_duration": {
"type": "integer" "type": "integer"
}, },
"position": {
"type": "integer"
},
"permission_overwrites": { "permission_overwrites": {
"type": "array", "type": "array",
"items": { "items": {
@ -1272,6 +1276,10 @@
"type": "integer", "type": "integer",
"default": 0 "default": 0
}, },
"position": {
"description": "Must be calculated Channel.calculatePosition",
"type": "integer"
},
"id": { "id": {
"type": "string" "type": "string"
} }
@ -1280,11 +1288,11 @@
"created_at", "created_at",
"default_thread_rate_limit_per_user", "default_thread_rate_limit_per_user",
"flags", "flags",
"guild",
"id", "id",
"nsfw", "nsfw",
"owner", "owner",
"parent_id", "parent_id",
"position",
"type" "type"
] ]
}, },
@ -2324,7 +2332,6 @@
} }
}, },
"required": [ "required": [
"avatar",
"banner", "banner",
"bio", "bio",
"communication_disabled_until", "communication_disabled_until",
@ -3473,6 +3480,9 @@
"type": "string", "type": "string",
"format": "date-time" "format": "date-time"
}, },
"avatar": {
"type": "string"
},
"username": { "username": {
"type": "string" "type": "string"
}, },
@ -3482,9 +3492,6 @@
"public_flags": { "public_flags": {
"type": "integer" "type": "integer"
}, },
"avatar": {
"type": "string"
},
"accent_color": { "accent_color": {
"type": "integer" "type": "integer"
}, },
@ -3721,6 +3728,9 @@
"banner": { "banner": {
"type": "string" "type": "string"
}, },
"description": {
"type": "string"
},
"unavailable": { "unavailable": {
"type": "boolean" "type": "boolean"
}, },
@ -3757,9 +3767,6 @@
"default_message_notifications": { "default_message_notifications": {
"type": "integer" "type": "integer"
}, },
"description": {
"type": "string"
},
"discovery_splash": { "discovery_splash": {
"type": "string" "type": "string"
}, },
@ -3852,12 +3859,19 @@
}, },
"premium_progress_bar_enabled": { "premium_progress_bar_enabled": {
"type": "boolean" "type": "boolean"
},
"channel_ordering": {
"type": "array",
"items": {
"type": "string"
}
} }
}, },
"required": [ "required": [
"_do_validate", "_do_validate",
"assign", "assign",
"bans", "bans",
"channel_ordering",
"channels", "channels",
"emojis", "emojis",
"features", "features",
@ -5081,6 +5095,9 @@
"content": { "content": {
"type": "string" "type": "string"
}, },
"mobile_network_type": {
"type": "string"
},
"nonce": { "nonce": {
"type": "string" "type": "string"
}, },
@ -5191,6 +5208,10 @@
"items": { "items": {
"type": "string" "type": "string"
} }
},
"components": {
"type": "array",
"items": {}
} }
} }
}, },
@ -5218,6 +5239,9 @@
"content": { "content": {
"type": "string" "type": "string"
}, },
"mobile_network_type": {
"type": "string"
},
"nonce": { "nonce": {
"type": "string" "type": "string"
}, },
@ -5310,6 +5334,10 @@
"items": { "items": {
"type": "string" "type": "string"
} }
},
"components": {
"type": "array",
"items": {}
} }
} }
}, },
@ -5834,6 +5862,16 @@
"UserSettingsSchema": { "UserSettingsSchema": {
"type": "object", "type": "object",
"properties": { "properties": {
"status": {
"enum": [
"dnd",
"idle",
"invisible",
"offline",
"online"
],
"type": "string"
},
"afk_timeout": { "afk_timeout": {
"type": "integer" "type": "integer"
}, },
@ -5931,16 +5969,6 @@
"show_current_game": { "show_current_game": {
"type": "boolean" "type": "boolean"
}, },
"status": {
"enum": [
"dnd",
"idle",
"invisible",
"offline",
"online"
],
"type": "string"
},
"stream_notifications_enabled": { "stream_notifications_enabled": {
"type": "boolean" "type": "boolean"
}, },
@ -6960,6 +6988,9 @@
"type": "string", "type": "string",
"format": "date-time" "format": "date-time"
}, },
"avatar": {
"type": "string"
},
"verified": { "verified": {
"type": "boolean" "type": "boolean"
}, },
@ -6972,9 +7003,6 @@
"public_flags": { "public_flags": {
"type": "integer" "type": "integer"
}, },
"avatar": {
"type": "string"
},
"accent_color": { "accent_color": {
"type": "integer" "type": "integer"
}, },
@ -7077,6 +7105,9 @@
"type": "string", "type": "string",
"format": "date-time" "format": "date-time"
}, },
"avatar": {
"type": "string"
},
"verified": { "verified": {
"type": "boolean" "type": "boolean"
}, },
@ -7089,9 +7120,6 @@
"public_flags": { "public_flags": {
"type": "integer" "type": "integer"
}, },
"avatar": {
"type": "string"
},
"accent_color": { "accent_color": {
"type": "integer" "type": "integer"
}, },
@ -7305,6 +7333,9 @@
"premium_since": { "premium_since": {
"type": "integer" "type": "integer"
}, },
"avatar": {
"type": "string"
},
"user": { "user": {
"$ref": "#/components/schemas/PublicUser" "$ref": "#/components/schemas/PublicUser"
}, },
@ -7533,12 +7564,19 @@
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"channel_ordering": {
"type": "array",
"items": {
"type": "string"
}
},
"id": { "id": {
"type": "string" "type": "string"
} }
}, },
"required": [ "required": [
"bans", "bans",
"channel_ordering",
"channels", "channels",
"emojis", "emojis",
"features", "features",
@ -7737,6 +7775,9 @@
"premium_since": { "premium_since": {
"type": "integer" "type": "integer"
}, },
"avatar": {
"type": "string"
},
"user": { "user": {
"$ref": "#/components/schemas/PublicUser" "$ref": "#/components/schemas/PublicUser"
}, },
@ -7792,29 +7833,6 @@
"user_profile" "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": { "UserRelationsResponse": {
"type": "array", "type": "array",
"items": { "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": { "WebAuthnCreateResponse": {
"type": "object", "type": "object",
"properties": { "properties": {

View File

@ -490966,29 +490966,35 @@
}, },
"$schema": "http://json-schema.org/draft-07/schema#" "$schema": "http://json-schema.org/draft-07/schema#"
}, },
"UserRelationshipsResponse": { "UserRelationsResponse": {
"type": "object", "type": "array",
"properties": { "items": {
"id": { "additionalProperties": false,
"type": "string" "type": "object",
"properties": {
"id": {
"type": "string"
},
"username": {
"type": "string"
},
"discriminator": {
"type": "string"
},
"avatar": {
"type": "string"
},
"public_flags": {
"type": "integer"
}
}, },
"type": { "required": [
"$ref": "#/definitions/RelationshipType" "discriminator",
}, "id",
"nickname": { "public_flags",
"type": "null" "username"
}, ]
"user": {
"$ref": "#/definitions/PublicUser"
}
}, },
"additionalProperties": false,
"required": [
"id",
"nickname",
"type",
"user"
],
"definitions": { "definitions": {
"ChannelPermissionOverwriteType": { "ChannelPermissionOverwriteType": {
"enum": [ "enum": [
@ -495185,35 +495191,29 @@
}, },
"$schema": "http://json-schema.org/draft-07/schema#" "$schema": "http://json-schema.org/draft-07/schema#"
}, },
"UserRelationsResponse": { "UserRelationshipsResponse": {
"type": "array", "type": "object",
"items": { "properties": {
"additionalProperties": false, "id": {
"type": "object", "type": "string"
"properties": {
"id": {
"type": "string"
},
"username": {
"type": "string"
},
"discriminator": {
"type": "string"
},
"avatar": {
"type": "string"
},
"public_flags": {
"type": "integer"
}
}, },
"required": [ "type": {
"discriminator", "$ref": "#/definitions/RelationshipType"
"id", },
"public_flags", "nickname": {
"username" "type": "null"
] },
"user": {
"$ref": "#/definitions/PublicUser"
}
}, },
"additionalProperties": false,
"required": [
"id",
"nickname",
"type",
"user"
],
"definitions": { "definitions": {
"ChannelPermissionOverwriteType": { "ChannelPermissionOverwriteType": {
"enum": [ "enum": [