Skip to content

Commit

Permalink
update schemas.json and openapi.json
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyUnderStars committed Dec 20, 2023
1 parent 9a286e1 commit b0989ff
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 98 deletions.
141 changes: 91 additions & 50 deletions assets/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1203,9 +1210,6 @@
"default_auto_archive_duration": {
"type": "integer"
},
"position": {
"type": "integer"
},
"permission_overwrites": {
"type": "array",
"items": {
Expand Down Expand Up @@ -1272,6 +1276,10 @@
"type": "integer",
"default": 0
},
"position": {
"description": "Must be calculated Channel.calculatePosition",
"type": "integer"
},
"id": {
"type": "string"
}
Expand All @@ -1280,11 +1288,11 @@
"created_at",
"default_thread_rate_limit_per_user",
"flags",
"guild",
"id",
"nsfw",
"owner",
"parent_id",
"position",
"type"
]
},
Expand Down Expand Up @@ -2324,7 +2332,6 @@
}
},
"required": [
"avatar",
"banner",
"bio",
"communication_disabled_until",
Expand Down Expand Up @@ -3473,6 +3480,9 @@
"type": "string",
"format": "date-time"
},
"avatar": {
"type": "string"
},
"username": {
"type": "string"
},
Expand All @@ -3482,9 +3492,6 @@
"public_flags": {
"type": "integer"
},
"avatar": {
"type": "string"
},
"accent_color": {
"type": "integer"
},
Expand Down Expand Up @@ -3721,6 +3728,9 @@
"banner": {
"type": "string"
},
"description": {
"type": "string"
},
"unavailable": {
"type": "boolean"
},
Expand Down Expand Up @@ -3757,9 +3767,6 @@
"default_message_notifications": {
"type": "integer"
},
"description": {
"type": "string"
},
"discovery_splash": {
"type": "string"
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -5081,6 +5095,9 @@
"content": {
"type": "string"
},
"mobile_network_type": {
"type": "string"
},
"nonce": {
"type": "string"
},
Expand Down Expand Up @@ -5191,6 +5208,10 @@
"items": {
"type": "string"
}
},
"components": {
"type": "array",
"items": {}
}
}
},
Expand Down Expand Up @@ -5218,6 +5239,9 @@
"content": {
"type": "string"
},
"mobile_network_type": {
"type": "string"
},
"nonce": {
"type": "string"
},
Expand Down Expand Up @@ -5310,6 +5334,10 @@
"items": {
"type": "string"
}
},
"components": {
"type": "array",
"items": {}
}
}
},
Expand Down Expand Up @@ -5834,6 +5862,16 @@
"UserSettingsSchema": {
"type": "object",
"properties": {
"status": {
"enum": [
"dnd",
"idle",
"invisible",
"offline",
"online"
],
"type": "string"
},
"afk_timeout": {
"type": "integer"
},
Expand Down Expand Up @@ -5931,16 +5969,6 @@
"show_current_game": {
"type": "boolean"
},
"status": {
"enum": [
"dnd",
"idle",
"invisible",
"offline",
"online"
],
"type": "string"
},
"stream_notifications_enabled": {
"type": "boolean"
},
Expand Down Expand Up @@ -6960,6 +6988,9 @@
"type": "string",
"format": "date-time"
},
"avatar": {
"type": "string"
},
"verified": {
"type": "boolean"
},
Expand All @@ -6972,9 +7003,6 @@
"public_flags": {
"type": "integer"
},
"avatar": {
"type": "string"
},
"accent_color": {
"type": "integer"
},
Expand Down Expand Up @@ -7077,6 +7105,9 @@
"type": "string",
"format": "date-time"
},
"avatar": {
"type": "string"
},
"verified": {
"type": "boolean"
},
Expand All @@ -7089,9 +7120,6 @@
"public_flags": {
"type": "integer"
},
"avatar": {
"type": "string"
},
"accent_color": {
"type": "integer"
},
Expand Down Expand Up @@ -7305,6 +7333,9 @@
"premium_since": {
"type": "integer"
},
"avatar": {
"type": "string"
},
"user": {
"$ref": "#/components/schemas/PublicUser"
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -7737,6 +7775,9 @@
"premium_since": {
"type": "integer"
},
"avatar": {
"type": "string"
},
"user": {
"$ref": "#/components/schemas/PublicUser"
},
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down
Loading

0 comments on commit b0989ff

Please sign in to comment.