diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-28 16:39:05 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-28 16:39:05 +1000 |
commit | 1bde83635c8ab8d751d44c60876ac47eb828ccc0 (patch) | |
tree | f74e7f7bf1c12d06816568bd6531884adb27f55c | |
parent | Use PrimaryIdColumn instead of PrimaryColumn in Invite and Category (diff) | |
download | server-1bde83635c8ab8d751d44c60876ac47eb828ccc0.tar.xz |
Missed some schemas
-rw-r--r-- | assets/schemas.json | 4983 | ||||
-rw-r--r-- | src/api/routes/channels/#channel_id/permissions.ts | 6 | ||||
-rw-r--r-- | src/api/routes/guilds/#guild_id/index.ts | 18 | ||||
-rw-r--r-- | src/api/routes/users/@me/settings.ts | 2 | ||||
-rw-r--r-- | src/gateway/events/Message.ts | 21 | ||||
-rw-r--r-- | src/util/schemas/ChannelPermissionOverwriteSchema.ts | 4 | ||||
-rw-r--r-- | src/util/schemas/GatewayPayloadSchema.ts | 8 | ||||
-rw-r--r-- | src/util/schemas/GuildUpdateSchema.ts | 17 | ||||
-rw-r--r-- | src/util/schemas/UserGuildSettingsSchema.ts | 9 | ||||
-rw-r--r-- | src/util/schemas/UserSettingsSchema.ts | 3 | ||||
-rw-r--r-- | src/util/schemas/index.ts | 4 |
11 files changed, 2580 insertions, 2495 deletions
diff --git a/assets/schemas.json b/assets/schemas.json index e545acb8..a79ac852 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -782,6 +782,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -852,43 +889,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -1388,6 +1388,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -1458,43 +1495,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -1977,6 +1977,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -2047,43 +2084,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -2567,6 +2567,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -2637,43 +2674,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -3237,6 +3237,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -3307,43 +3344,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -3822,6 +3822,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -3892,43 +3929,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -4429,6 +4429,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -4499,43 +4536,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -5014,6 +5014,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -5084,43 +5121,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -5614,6 +5614,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -5684,43 +5721,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -6217,6 +6217,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -6287,43 +6324,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -6817,6 +6817,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -6887,43 +6924,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -7405,6 +7405,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -7475,43 +7512,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -8001,6 +8001,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -8071,43 +8108,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -8589,6 +8589,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -8659,43 +8696,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -9177,6 +9177,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -9247,43 +9284,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -9761,6 +9761,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -9831,43 +9868,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -10371,6 +10371,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -10441,43 +10478,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -10960,6 +10960,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -11030,43 +11067,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -11548,6 +11548,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -11618,43 +11655,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -12151,6 +12151,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -12221,43 +12258,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -12742,6 +12742,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -12812,43 +12849,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -13333,6 +13333,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -13403,43 +13440,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -13951,6 +13951,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -14021,43 +14058,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -14540,6 +14540,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -14610,43 +14647,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -15128,6 +15128,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -15198,43 +15235,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -15720,6 +15720,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -15790,43 +15827,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -16308,6 +16308,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -16378,43 +16415,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -16893,6 +16893,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -16963,43 +17000,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -17484,6 +17484,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -17554,43 +17591,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -18107,6 +18107,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -18177,43 +18214,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -18715,6 +18715,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -18785,43 +18822,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -19378,6 +19378,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -19448,43 +19485,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -20115,6 +20115,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -20185,43 +20222,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -20691,6 +20691,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -20761,43 +20798,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -21299,6 +21299,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -21369,43 +21406,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -21414,20 +21414,78 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RouteResponse": { + "GuildUpdateSchema": { "type": "object", "properties": { - "status": { - "type": "integer" + "banner": { + "type": [ + "null", + "string" + ] }, - "body": { + "splash": { + "type": [ + "null", + "string" + ] + }, + "description": { + "type": "string" + }, + "features": { "type": "array", "items": { "type": "string" } }, - "headers": { - "$ref": "#/definitions/Record<string,string>" + "verification_level": { + "type": "integer" + }, + "default_message_notifications": { + "type": "integer" + }, + "system_channel_flags": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "preferred_locale": { + "type": "string" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "name": { + "maxLength": 100, + "type": "string" + }, + "region": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "guild_template_code": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" } }, "additionalProperties": false, @@ -21890,6 +21948,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -21960,43 +22055,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -22005,46 +22063,28 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "hcaptchaResponse": { + "ChannelPermissionOverwriteSchema": { "type": "object", "properties": { - "success": { - "type": "boolean" - }, - "challenge_ts": { + "allow": { "type": "string" }, - "hostname": { + "deny": { "type": "string" }, - "credit": { - "type": "boolean" - }, - "error-codes": { - "type": "array", - "items": { - "type": "string" - } - }, - "score": { - "type": "integer" + "id": { + "type": "string" }, - "score_reason": { - "type": "array", - "items": { - "type": "string" - } + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" } }, "additionalProperties": false, "required": [ - "challenge_ts", - "credit", - "error-codes", - "hostname", - "score", - "score_reason", - "success" + "allow", + "deny", + "id", + "type" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -22505,6 +22545,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -22575,43 +22652,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -22620,38 +22660,68 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "recaptchaResponse": { + "UserGuildSettingsSchema": { "type": "object", "properties": { - "success": { - "type": "boolean" + "channel_overrides": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Partial<ChannelOverride>" + } }, - "score": { + "version": { "type": "integer" }, - "action": { - "type": "string" + "flags": { + "type": "integer" }, - "challenge_ts": { - "type": "string" + "guild_id": { + "type": [ + "null", + "string" + ] }, - "hostname": { - "type": "string" + "message_notifications": { + "type": "integer" }, - "error-codes": { - "type": "array", - "items": { - "type": "string" - } + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } + ] + }, + "muted": { + "type": "boolean" + }, + "suppress_everyone": { + "type": "boolean" + }, + "suppress_roles": { + "type": "boolean" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "enum": [ + 0 + ], + "type": "number" } }, "additionalProperties": false, "required": [ - "action", - "challenge_ts", - "hostname", - "score", - "success" + "channel_overrides" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -23112,6 +23182,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -23182,43 +23289,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -23227,29 +23297,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ChannelPermissionOverwriteSchema": { + "RouteResponse": { "type": "object", "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" + "status": { + "type": "integer" }, - "id": { - "type": "string" + "body": { + "type": "array", + "items": { + "type": "string" + } }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" + "headers": { + "$ref": "#/definitions/Record<string,string>" } }, "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -23709,6 +23773,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -23779,43 +23880,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -23824,45 +23888,46 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GatewayBotResponse": { + "hcaptchaResponse": { "type": "object", "properties": { - "url": { + "success": { + "type": "boolean" + }, + "challenge_ts": { "type": "string" }, - "shards": { + "hostname": { + "type": "string" + }, + "credit": { + "type": "boolean" + }, + "error-codes": { + "type": "array", + "items": { + "type": "string" + } + }, + "score": { "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" - ] + "score_reason": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "session_start_limit", - "shards", - "url" + "challenge_ts", + "credit", + "error-codes", + "hostname", + "score", + "score_reason", + "success" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -24323,6 +24388,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -24393,43 +24495,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -24438,16 +24503,38 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GatewayResponse": { + "recaptchaResponse": { "type": "object", "properties": { - "url": { + "success": { + "type": "boolean" + }, + "score": { + "type": "integer" + }, + "action": { + "type": "string" + }, + "challenge_ts": { + "type": "string" + }, + "hostname": { "type": "string" + }, + "error-codes": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "url" + "action", + "challenge_ts", + "hostname", + "score", + "success" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -24908,6 +24995,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -24978,74 +25102,54 @@ "verified" ] }, - "Partial<ChannelOverride>": { + "HeaderBag": { + "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, "additionalProperties": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GatewayBotResponse": { + "type": "object", + "properties": { + "url": { + "type": "string" }, - "MuteConfig": { + "shards": { + "type": "integer" + }, + "session_start_limit": { "type": "object", "properties": { - "end_time": { + "total": { "type": "integer" }, - "selected_time_window": { + "remaining": { + "type": "integer" + }, + "reset_after": { + "type": "integer" + }, + "max_concurrency": { "type": "integer" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "max_concurrency", + "remaining", + "reset_after", + "total" ] - }, - "HeaderBag": { - "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", - "type": "object", - "additionalProperties": false } }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ChannelReorderSchema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "lock_permissions": { - "type": "boolean" - }, - "parent_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - }, + "additionalProperties": false, + "required": [ + "session_start_limit", + "shards", + "url" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -25505,6 +25609,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -25575,43 +25716,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -25620,12 +25724,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildUpdateSchema": { + "GatewayResponse": { "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": {} + "properties": { + "url": { + "type": "string" + } }, + "additionalProperties": false, + "required": [ + "url" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -26085,6 +26194,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -26155,43 +26301,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -26200,7 +26309,7 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RolePositionUpdateSchema": { + "ChannelReorderSchema": { "type": "array", "items": { "type": "object", @@ -26210,12 +26319,17 @@ }, "position": { "type": "integer" + }, + "lock_permissions": { + "type": "boolean" + }, + "parent_id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "id", - "position" + "id" ] }, "definitions": { @@ -26677,6 +26791,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -26747,43 +26898,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -26792,29 +26906,24 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserProfileResponse": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/UserPublic" - }, - "connected_accounts": { - "$ref": "#/definitions/PublicConnectedAccount" - }, - "premium_guild_since": { - "type": "string", - "format": "date-time" + "RolePositionUpdateSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "position": { + "type": "integer" + } }, - "premium_since": { - "type": "string", - "format": "date-time" - } + "additionalProperties": false, + "required": [ + "id", + "position" + ] }, - "additionalProperties": false, - "required": [ - "connected_accounts", - "user" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -27274,6 +27383,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -27344,43 +27490,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -27389,34 +27498,28 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserRelationsResponse": { + "UserProfileResponse": { "type": "object", "properties": { - "object": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - } - }, - "additionalProperties": false + "user": { + "$ref": "#/definitions/UserPublic" + }, + "connected_accounts": { + "$ref": "#/definitions/PublicConnectedAccount" + }, + "premium_guild_since": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" } }, "additionalProperties": false, "required": [ - "object" + "connected_accounts", + "user" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -27877,6 +27980,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -27947,43 +28087,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -27992,194 +28095,35 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserSettingsSchema": { + "UserRelationsResponse": { "type": "object", "properties": { - "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": [ - { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - { - "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": { + "object": { "type": "object", "properties": { - "all": { - "type": "boolean" + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" } }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "gateway_connected": { - "type": "boolean" - }, - "gif_auto_play": { - "type": "boolean" - }, - "guild_folders": { - "type": "array", - "items": { - "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" - ] - } - }, - "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" - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "stream_notifications_enabled": { - "type": "boolean" - }, - "theme": { - "enum": [ - "dark", - "white" - ], - "type": "string" - }, - "timezone_offset": { - "type": "integer" - }, - "banner_color": { - "type": [ - "null", - "string" - ] - }, - "friend_discovery_flags": { - "type": "integer" - }, - "view_nsfw_guilds": { - "type": "boolean" - }, - "passwordless": { - "type": "boolean" + "additionalProperties": false } }, "additionalProperties": false, + "required": [ + "object" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -28639,6 +28583,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -28709,43 +28690,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -28754,69 +28698,41 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserGuildSettingsSchema": { + "TransportMakeRequestResponse": { "type": "object", "properties": { - "channel_overrides": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/Partial<ChannelOverride>" - } - }, - "version": { - "type": "integer" - }, - "flags": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "message_notifications": { + "statusCode": { "type": "integer" }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" + "headers": { + "type": "object", + "additionalProperties": { + "type": [ + "null", + "string" + ] + }, + "properties": { + "x-sentry-rate-limits": { + "type": [ + "null", + "string" + ] }, - { - "type": "null" + "retry-after": { + "type": [ + "null", + "string" + ] } + }, + "required": [ + "retry-after", + "x-sentry-rate-limits" ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "enum": [ - 0 - ], - "type": "number" } }, "additionalProperties": false, - "required": [ - "channel_overrides" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -29276,6 +29192,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -29346,43 +29299,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -29391,41 +29307,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TransportMakeRequestResponse": { + "HttpResponse": { + "description": "Represents an HTTP message as received in reply to a request. Contains a\nnumeric status code in addition to standard message properties.", "type": "object", "properties": { "statusCode": { "type": "integer" }, "headers": { - "type": "object", - "additionalProperties": { - "type": [ - "null", - "string" - ] - }, - "properties": { - "x-sentry-rate-limits": { - "type": [ - "null", - "string" - ] - }, - "retry-after": { - "type": [ - "null", - "string" - ] - } - }, - "required": [ - "retry-after", - "x-sentry-rate-limits" - ] - } + "$ref": "#/definitions/HeaderBag" + }, + "body": {} }, "additionalProperties": false, + "required": [ + "headers", + "statusCode" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -29885,6 +29783,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -29955,43 +29890,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -30000,20 +29898,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "HttpResponse": { - "description": "Represents an HTTP message as received in reply to a request. Contains a\nnumeric status code in addition to standard message properties.", + "ResolvedHttpResponse": { + "description": "Represents HTTP message whose body has been resolved to a string. This is\nused in parsing http message.", "type": "object", "properties": { + "body": { + "type": "string" + }, "statusCode": { "type": "integer" }, "headers": { "$ref": "#/definitions/HeaderBag" - }, - "body": {} + } }, "additionalProperties": false, "required": [ + "body", "headers", "statusCode" ], @@ -30476,6 +30377,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -30546,43 +30484,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -30591,25 +30492,19 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ResolvedHttpResponse": { - "description": "Represents HTTP message whose body has been resolved to a string. This is\nused in parsing http message.", + "BulkDeleteSchema": { "type": "object", "properties": { - "body": { - "type": "string" - }, - "statusCode": { - "type": "integer" - }, - "headers": { - "$ref": "#/definitions/HeaderBag" + "messages": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "body", - "headers", - "statusCode" + "messages" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -31070,6 +30965,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -31140,43 +31072,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -31185,19 +31080,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "BulkDeleteSchema": { + "MemberNickChangeSchema": { "type": "object", "properties": { - "messages": { - "type": "array", - "items": { - "type": "string" - } + "nick": { + "type": "string" } }, "additionalProperties": false, "required": [ - "messages" + "nick" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -31658,6 +31550,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -31728,43 +31657,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", @@ -31773,16 +31665,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": { @@ -32243,6 +32135,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -32313,62 +32242,202 @@ "verified" ] }, - "Partial<ChannelOverride>": { + "HeaderBag": { + "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" + "additionalProperties": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserSettingsSchema": { + "type": "object", + "properties": { + "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": [ + { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false }, - "channel_id": { - "type": [ - "null", - "string" - ] + { + "type": "null" } - }, - "additionalProperties": false + ] }, - "MuteConfig": { + "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": { "type": "object", "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" + "all": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "end_time", - "selected_time_window" + "all" ] }, - "HeaderBag": { - "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", - "type": "object", - "additionalProperties": false - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PruneSchema": { - "type": "object", - "properties": { - "days": { + "gateway_connected": { + "type": "boolean" + }, + "gif_auto_play": { + "type": "boolean" + }, + "guild_folders": { + "type": "array", + "items": { + "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" + ] + } + }, + "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" + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "white" + ], + "type": "string" + }, + "timezone_offset": { "type": "integer" + }, + "banner_color": { + "type": [ + "null", + "string" + ] + }, + "friend_discovery_flags": { + "type": "integer" + }, + "view_nsfw_guilds": { + "type": "boolean" + }, + "passwordless": { + "type": "boolean" } }, "additionalProperties": false, - "required": [ - "days" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -32828,6 +32897,43 @@ "type": "object", "additionalProperties": false }, + "Partial<ChannelOverride>": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, "Record<string,string>": { "type": "object", "additionalProperties": false @@ -32898,43 +33004,6 @@ "verified" ] }, - "Partial<ChannelOverride>": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, "HeaderBag": { "description": "A mapping of header names to string values. Multiple values for the same\nheader should be represented as a single string with values separated by\n`, `.\n\nKeys should be considered case insensitive, even if this is not enforced by a\nparticular implementation. For example, given the following HeaderBag, where\nkeys differ only in case:\n\n {\n 'x-amz-date': '2000-01-01T00:00:00Z',\n 'X-Amz-Date': '2001-01-01T00:00:00Z'\n }\n\nThe SDK may at any point during processing remove one of the object\nproperties in favor of the other. The headers may or may not be combined, and\nthe SDK will not deterministically select which header candidate to use.", "type": "object", diff --git a/src/api/routes/channels/#channel_id/permissions.ts b/src/api/routes/channels/#channel_id/permissions.ts index 89be843f..0a816223 100644 --- a/src/api/routes/channels/#channel_id/permissions.ts +++ b/src/api/routes/channels/#channel_id/permissions.ts @@ -1,12 +1,11 @@ import { Channel, ChannelPermissionOverwrite, - ChannelPermissionOverwriteType, ChannelUpdateEvent, emitEvent, - getPermission, Member, Role, + ChannelPermissionOverwriteSchema } from "@fosscord/util"; import { Router, Response, Request } from "express"; import { HTTPError } from "lambert-server"; @@ -16,9 +15,6 @@ const router: Router = Router(); // TODO: Only permissions your bot has in the guild or channel can be allowed/denied (unless your bot has a MANAGE_ROLES overwrite in the channel) -export interface ChannelPermissionOverwriteSchema - extends ChannelPermissionOverwrite {} - router.put( "/:overwrite_id", route({ diff --git a/src/api/routes/guilds/#guild_id/index.ts b/src/api/routes/guilds/#guild_id/index.ts index 715a3835..04cb76c2 100644 --- a/src/api/routes/guilds/#guild_id/index.ts +++ b/src/api/routes/guilds/#guild_id/index.ts @@ -8,29 +8,13 @@ import { GuildUpdateEvent, handleFile, Member, - GuildCreateSchema, + GuildUpdateSchema, } from "@fosscord/util"; import { HTTPError } from "lambert-server"; import { route } from "@fosscord/api"; const router = Router(); -export interface GuildUpdateSchema extends Omit<GuildCreateSchema, "channels"> { - banner?: string | null; - splash?: string | null; - description?: string; - features?: string[]; - verification_level?: number; - default_message_notifications?: number; - system_channel_flags?: number; - explicit_content_filter?: number; - public_updates_channel_id?: string; - afk_timeout?: number; - afk_channel_id?: string; - preferred_locale?: string; - premium_progress_bar_enabled?: boolean; -} - router.get("/", route({}), async (req: Request, res: Response) => { const { guild_id } = req.params; diff --git a/src/api/routes/users/@me/settings.ts b/src/api/routes/users/@me/settings.ts index 30e5969c..4493fcc7 100644 --- a/src/api/routes/users/@me/settings.ts +++ b/src/api/routes/users/@me/settings.ts @@ -4,8 +4,6 @@ import { route } from "@fosscord/api"; const router = Router(); -export interface UserSettingsSchema extends Partial<UserSettings> {} - router.get("/", route({}), async (req: Request, res: Response) => { const user = await User.findOneOrFail({ where: { id: req.user_id }, diff --git a/src/gateway/events/Message.ts b/src/gateway/events/Message.ts index e8cbe964..07a4e2a9 100644 --- a/src/gateway/events/Message.ts +++ b/src/gateway/events/Message.ts @@ -1,23 +1,16 @@ -import { CLOSECODES, OPCODES } from "../util/Constants"; -import { WebSocket, Payload } from "@fosscord/gateway"; -var erlpack: any; -try { - erlpack = require("@yukikaze-bot/erlpack"); -} catch (error) {} +import { WebSocket, Payload, CLOSECODES, OPCODES } from "@fosscord/gateway"; import OPCodeHandlers from "../opcodes"; -import { Tuple } from "lambert-server"; import { check } from "../opcodes/instanceOf"; import WS from "ws"; -import BigIntJson from "json-bigint"; +import { PayloadSchema } from "@fosscord/util"; import * as Sentry from "@sentry/node"; +import BigIntJson from "json-bigint"; const bigIntJson = BigIntJson({ storeAsString: true }); -const PayloadSchema = { - op: Number, - $d: new Tuple(Object, Number), // or number for heartbeat sequence - $s: Number, - $t: String, -}; +var erlpack: any; +try { + erlpack = require("@yukikaze-bot/erlpack"); +} catch (error) { } export async function Message(this: WebSocket, buffer: WS.Data) { // TODO: compression diff --git a/src/util/schemas/ChannelPermissionOverwriteSchema.ts b/src/util/schemas/ChannelPermissionOverwriteSchema.ts new file mode 100644 index 00000000..6d6d6c34 --- /dev/null +++ b/src/util/schemas/ChannelPermissionOverwriteSchema.ts @@ -0,0 +1,4 @@ +import { ChannelPermissionOverwrite } from "@fosscord/util"; + +export interface ChannelPermissionOverwriteSchema + extends ChannelPermissionOverwrite {} \ No newline at end of file diff --git a/src/util/schemas/GatewayPayloadSchema.ts b/src/util/schemas/GatewayPayloadSchema.ts new file mode 100644 index 00000000..324ad1eb --- /dev/null +++ b/src/util/schemas/GatewayPayloadSchema.ts @@ -0,0 +1,8 @@ +import { Tuple } from "lambert-server"; + +export const PayloadSchema = { + op: Number, + $d: new Tuple(Object, Number), // or number for heartbeat sequence + $s: Number, + $t: String, +}; \ No newline at end of file diff --git a/src/util/schemas/GuildUpdateSchema.ts b/src/util/schemas/GuildUpdateSchema.ts new file mode 100644 index 00000000..fb2ac4f2 --- /dev/null +++ b/src/util/schemas/GuildUpdateSchema.ts @@ -0,0 +1,17 @@ +import { GuildCreateSchema } from "@fosscord/util"; + +export interface GuildUpdateSchema extends Omit<GuildCreateSchema, "channels"> { + banner?: string | null; + splash?: string | null; + description?: string; + features?: string[]; + verification_level?: number; + default_message_notifications?: number; + system_channel_flags?: number; + explicit_content_filter?: number; + public_updates_channel_id?: string; + afk_timeout?: number; + afk_channel_id?: string; + preferred_locale?: string; + premium_progress_bar_enabled?: boolean; +} diff --git a/src/util/schemas/UserGuildSettingsSchema.ts b/src/util/schemas/UserGuildSettingsSchema.ts new file mode 100644 index 00000000..43028c58 --- /dev/null +++ b/src/util/schemas/UserGuildSettingsSchema.ts @@ -0,0 +1,9 @@ +import { UserGuildSettings, ChannelOverride } from "@fosscord/util"; + +// This sucks. I would use a DeepPartial, my own or typeorms, but they both generate inncorect schema +export interface UserGuildSettingsSchema + extends Partial<Omit<UserGuildSettings, "channel_overrides">> { + channel_overrides: { + [channel_id: string]: Partial<ChannelOverride>; + }; +} \ No newline at end of file diff --git a/src/util/schemas/UserSettingsSchema.ts b/src/util/schemas/UserSettingsSchema.ts new file mode 100644 index 00000000..db015457 --- /dev/null +++ b/src/util/schemas/UserSettingsSchema.ts @@ -0,0 +1,3 @@ +import { UserSettings } from "@fosscord/util"; + +export interface UserSettingsSchema extends Partial<UserSettings> {} \ No newline at end of file diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts index ae80de71..ba9e71e4 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts @@ -39,3 +39,7 @@ export * from "./VoiceVideoSchema"; export * from "./IdentifySchema"; export * from "./ActivitySchema"; export * from "./LazyRequestSchema"; +export * from "./GuildUpdateSchema"; +export * from "./ChannelPermissionOverwriteSchema"; +export * from "./UserGuildSettingsSchema"; +export * from "./GatewayPayloadSchema" \ No newline at end of file |