Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp
1.1 MB
Raw Blame
{
	"openapi": "3.0.3",
	"security": [],
	"info": {
		"title": "Fluxer API",
		"version": "1.0.0",
		"description": "API for Fluxer, a free and open source instant messaging and VoIP chat app built for friends, groups, and communities.",
		"contact": {"name": "Fluxer Platform AB", "email": "[email protected]"},
		"license": {"name": "AGPL-3.0", "url": "https://www.gnu.org/licenses/agpl-3.0.html"}
	},
	"servers": [{"url": "https://api.fluxer.app/v1", "description": "Production API"}],
	"paths": {
		"/admin/acls": {
			"get": {
				"operationId": "list_admin_acls",
				"summary": "List admin permissions",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminAclListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns every access control permission the admin API recognises. This is the registry admin accounts and admin API keys draw their permissions from. Requires AUTHENTICATE permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/api-keys": {
			"post": {
				"operationId": "create_admin_api_key",
				"summary": "Create admin API key",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateAdminApiKeyResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Generates a new API key for administrative operations. The key is returned only once at creation time. Includes expiration settings and access control lists (ACLs) to limit the key's permissions.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateAdminApiKeyRequest"}}}
				}
			},
			"get": {
				"operationId": "list_admin_api_keys",
				"summary": "List admin API keys",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminApiKeyListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Retrieve all API keys created by the authenticated admin. Returns metadata including creation time, last used time, and assigned permissions. The actual key material is not returned.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/api-keys/{key_id}": {
			"get": {
				"operationId": "get_admin_api_key",
				"summary": "Get admin API key",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListAdminApiKeyResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Retrieves a single API key created by the authenticated admin. Returns metadata including creation time, last used time, and assigned permissions. The actual key material is never returned.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "key_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the key", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the key"
					}
				]
			},
			"patch": {
				"operationId": "update_admin_api_key",
				"summary": "Update admin API key",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListAdminApiKeyResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Renames an API key or replaces the access control lists (ACLs) it has. The key may only hold permissions the acting admin already holds. Omitted fields are left unchanged and the key material is never rotated or returned.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "key_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the key", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the key"
					}
				],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateAdminApiKeyRequest"}}}
				}
			},
			"delete": {
				"operationId": "delete_admin_api_key",
				"summary": "Revoke admin API key",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DeleteApiKeyResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Revokes an API key, immediately invalidating it for all future operations. This action cannot be undone.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "key_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the key", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the key"
					}
				]
			}
		},
		"/admin/app-sessions": {
			"get": {
				"operationId": "list_admin_app_sessions",
				"summary": "List native app sessions by platform and release channel",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListAppSessionsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists active sessions whose native app last reported the given platform and release channel, with the app version, build number and beta number it reported. Pages hold up to 200 sessions and can hold fewer while next_cursor is still set. Requires USER_LIST_SESSIONS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "platform",
						"in": "query",
						"required": true,
						"schema": {
							"type": "string",
							"enum": ["android", "ios", "linux", "desktop"],
							"description": "Native app platform to list sessions for"
						},
						"description": "Native app platform to list sessions for"
					},
					{
						"name": "release_channel",
						"in": "query",
						"required": true,
						"schema": {
							"type": "string",
							"enum": ["stable", "beta", "canary"],
							"description": "Release channel to list sessions for"
						},
						"description": "Release channel to list sessions for"
					},
					{
						"name": "after",
						"in": "query",
						"required": false,
						"schema": {
							"description": "The next_cursor value from the previous page. Leave it out for the first page",
							"type": "string"
						},
						"description": "The next_cursor value from the previous page. Leave it out for the first page"
					}
				]
			}
		},
		"/admin/applications": {
			"get": {
				"operationId": "list_admin_applications",
				"summary": "List applications",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListApplicationsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists OAuth2 applications and bots. Pass owner_id to list the applications a user owns, or guild_id to list the applications whose bot users are members of a guild. Exactly one of the two is required. owner_id requires APPLICATION_LIST_BY_OWNER permission, guild_id requires APPLICATION_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "owner_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Restrict the results to the applications owned by this user",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Restrict the results to the applications owned by this user"
					},
					{
						"name": "guild_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Restrict the results to the applications whose bot users are members of this guild",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Restrict the results to the applications whose bot users are members of this guild"
					}
				]
			}
		},
		"/admin/applications/{application_id}": {
			"get": {
				"operationId": "get_admin_application",
				"summary": "Get application",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/LookupApplicationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Retrieves complete application details including ownership, bot user, OAuth2 redirect URIs, and credential status. Requires APPLICATION_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "application_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the OAuth2 application",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the OAuth2 application"
					}
				]
			},
			"patch": {
				"operationId": "update_admin_application",
				"summary": "Update application",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApplicationUpdateResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Updates an application. Transfers ownership to the user given by new_owner_id, which is used when the owner is inactive or for administrative recovery. Logged to audit log. Requires APPLICATION_TRANSFER_OWNERSHIP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "application_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the OAuth2 application",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the OAuth2 application"
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/TransferApplicationOwnershipRequest"}}
					}
				}
			}
		},
		"/admin/archives": {
			"get": {
				"operationId": "list_admin_archives",
				"summary": "List archives",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListArchivesResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Query and filter created archives by type (user or guild), subject ID, requestor, and expiration status. Admins with limited ACLs see only archives matching their permissions.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "subject_type",
						"in": "query",
						"required": false,
						"schema": {
							"default": "all",
							"description": "Type of archives to list",
							"x-enumNames": ["user", "guild", "all"],
							"x-enumDescriptions": ["List user archives", "List guild archives", "List all archives"],
							"enum": ["user", "guild", "all"],
							"type": "string"
						},
						"description": "Type of archives to list"
					},
					{
						"name": "subject_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Filter by specific subject ID",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Filter by specific subject ID"
					},
					{
						"name": "requested_by",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Filter by user who requested the archive",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Filter by user who requested the archive"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Maximum number of archives to return (1-200, default 50)",
							"default": "50",
							"type": "string"
						},
						"description": "Maximum number of archives to return (1-200, default 50)"
					},
					{
						"name": "include_expired",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Whether to include archives past their expires_at",
							"default": "false",
							"type": "string"
						},
						"description": "Whether to include archives past their expires_at"
					}
				]
			}
		},
		"/admin/archives/{subject_type}/{subject_id}/{archive_id}": {
			"get": {
				"operationId": "get_admin_archive",
				"summary": "Get archive details",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetArchiveResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Retrieve metadata for a specific archive including its status, creation time, expiration, and file location. Does not return the archive contents themselves.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "subject_type",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The type of subject (user or guild)",
							"allOf": [{"$ref": "#/components/schemas/ArchiveSubjectTypeSchema"}]
						},
						"description": "The type of subject (user or guild)"
					},
					{
						"name": "subject_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the subject",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the subject"
					},
					{
						"name": "archive_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the archive",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the archive"
					}
				]
			}
		},
		"/admin/archives/{subject_type}/{subject_id}/{archive_id}/download": {
			"get": {
				"operationId": "get_admin_archive_download",
				"summary": "Get archive download URL",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DownloadUrlResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Generate a time-limited download link to the archive file. The URL provides direct access to download the compressed archive contents.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "subject_type",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The type of subject (user or guild)",
							"allOf": [{"$ref": "#/components/schemas/ArchiveSubjectTypeSchema"}]
						},
						"description": "The type of subject (user or guild)"
					},
					{
						"name": "subject_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the subject",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the subject"
					},
					{
						"name": "archive_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the archive",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the archive"
					}
				]
			}
		},
		"/admin/audit-logs": {
			"get": {
				"operationId": "list_admin_audit_logs",
				"summary": "List admin audit logs",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AuditLogsListResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Retrieve a paginated page of audit logs with optional filtering by acting admin, target type, or target ID. Passing q runs a full-text search across the audit log index instead of paging through the log in order, and sort_by with sort_order then order the matches. Used for tracking administrative operations, compliance auditing, and incident response.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "q",
						"in": "query",
						"required": false,
						"schema": {"description": "Free-text query run against the audit log search index", "type": "string"},
						"description": "Free-text query run against the audit log search index"
					},
					{
						"name": "admin_user_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Filter by admin user who performed the action",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Filter by admin user who performed the action"
					},
					{
						"name": "target_type",
						"in": "query",
						"required": false,
						"schema": {"description": "Filter by target entity type", "type": "string"},
						"description": "Filter by target entity type"
					},
					{
						"name": "target_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Filter by target entity ID (user, channel, role, invite code, etc.)",
							"type": "string"
						},
						"description": "Filter by target entity ID (user, channel, role, invite code, etc.)"
					},
					{
						"name": "access",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Only return entries recorded by reads or only entries recorded by writes",
							"x-enumNames": ["read", "write"],
							"x-enumDescriptions": [
								"An entry recorded by an operation that only reads data",
								"An entry recorded by an operation that changes data or triggers work"
							],
							"enum": ["read", "write"],
							"type": "string"
						},
						"description": "Only return entries recorded by reads or only entries recorded by writes"
					},
					{
						"name": "sort_by",
						"in": "query",
						"required": false,
						"schema": {
							"default": "createdAt",
							"description": "Field to sort audit logs by",
							"x-enumNames": ["createdAt", "relevance"],
							"x-enumDescriptions": ["Sort by creation timestamp", "Sort by search relevance score"],
							"enum": ["createdAt", "relevance"],
							"type": "string"
						},
						"description": "Field to sort audit logs by"
					},
					{
						"name": "sort_order",
						"in": "query",
						"required": false,
						"schema": {
							"default": "desc",
							"description": "Sort order direction",
							"x-enumNames": ["asc", "desc"],
							"x-enumDescriptions": ["Ascending order (oldest first)", "Descending order (newest first)"],
							"enum": ["asc", "desc"],
							"type": "string"
						},
						"description": "Sort order direction"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {"description": "Maximum number of entries to return", "default": "50", "type": "string"},
						"description": "Maximum number of entries to return"
					},
					{
						"name": "offset",
						"in": "query",
						"required": false,
						"schema": {"description": "Number of entries to skip", "default": "0", "type": "string"},
						"description": "Number of entries to skip"
					}
				]
			}
		},
		"/admin/audit-logs/{log_id}": {
			"get": {
				"operationId": "get_admin_audit_log",
				"summary": "Get admin audit log entry",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminAuditLogResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Retrieve a single admin audit log entry by ID, with the same resolved user, guild, and channel summaries the listing returns. Used to inspect one administrative operation during compliance investigations or incident response.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "log_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the audit log entry",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the audit log entry"
					}
				]
			}
		},
		"/admin/badges": {
			"get": {
				"operationId": "list_admin_badges",
				"summary": "List custom badges",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminCustomBadgeListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists one page of the user and guild badges defined on this instance, in display order, with the badge settings and the built-in badge images. Pass next as after to get the following page. With query, it lists badges whose ID is the query or whose name holds it, and looks at up to 5,000 badges for each page. Requires BADGE_LIST permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "type",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Only list badges of this type. Without it the list holds every user badge, then every guild badge",
							"allOf": [{"$ref": "#/components/schemas/CustomBadgeTypeSchema"}]
						},
						"description": "Only list badges of this type. Without it the list holds every user badge, then every guild badge"
					},
					{
						"name": "query",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Only list badges with this ID, or with this text anywhere in the name, ignoring case",
							"type": "string"
						},
						"description": "Only list badges with this ID, or with this text anywhere in the name, ignoring case"
					},
					{
						"name": "ids",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Up to 100 badge IDs separated by commas. Only these badges are listed, and the page has no next. Cannot be sent with query or after",
							"type": "string",
							"pattern": "^[0-9]{1,20}(?:,[0-9]{1,20}){0,99}$"
						},
						"description": "Up to 100 badge IDs separated by commas. Only these badges are listed, and the page has no next. Cannot be sent with query or after"
					},
					{
						"name": "after",
						"in": "query",
						"required": false,
						"schema": {"allOf": [{"$ref": "#/components/schemas/CustomBadgeCursorType"}]},
						"description": "Opaque cursor from the next field of a previous page"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {"description": "Most badges to return, from 1 to 200", "default": "100", "type": "string"},
						"description": "Most badges to return, from 1 to 200"
					}
				]
			},
			"post": {
				"operationId": "create_admin_badge",
				"summary": "Create custom badge",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminCustomBadgeResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Creates a user or guild badge and uploads its image to the media proxy. The new badge is shown after every other badge of its type. Creates audit log entry. Requires BADGE_CREATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateCustomBadgeRequest"}}}
				}
			}
		},
		"/admin/badges/built-in/{kind}": {
			"put": {
				"operationId": "replace_admin_built_in_badge_image",
				"summary": "Replace built-in badge image",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminCustomBadgeListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Shows an uploaded image everywhere a built-in profile or community badge appears. The name, tooltip and meaning of the badge stay the same. Creates audit log entry. Requires BADGE_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "kind",
						"in": "path",
						"required": true,
						"schema": {"allOf": [{"$ref": "#/components/schemas/BuiltInBadgeKindSchema"}]},
						"description": "A built-in badge whose image can be replaced: the staff or premium profile badge, or a community badge starting with guild_"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReplaceBuiltInBadgeImageRequest"}}}
				}
			},
			"delete": {
				"operationId": "reset_admin_built_in_badge_image",
				"summary": "Use built-in badge image",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminCustomBadgeListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Goes back to the built-in artwork for a built-in profile or community badge and deletes the uploaded image. Creates audit log entry. Requires BADGE_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "kind",
						"in": "path",
						"required": true,
						"schema": {"allOf": [{"$ref": "#/components/schemas/BuiltInBadgeKindSchema"}]},
						"description": "A built-in badge whose image can be replaced: the staff or premium profile badge, or a community badge starting with guild_"
					}
				]
			}
		},
		"/admin/badges/built-in/{kind}/hidden": {
			"put": {
				"operationId": "hide_admin_built_in_badge",
				"summary": "Hide built-in community badge",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminCustomBadgeListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Stops clients on this instance from showing a built-in community badge. Communities keep the feature behind it, so a discoverable community stays listed in discovery. Creates audit log entry. Requires BADGE_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "kind",
						"in": "path",
						"required": true,
						"schema": {"allOf": [{"$ref": "#/components/schemas/HideableBuiltInBadgeKindSchema"}]},
						"description": "A built-in community badge that this instance can stop showing: guild_verified, guild_partnered or guild_discoverable"
					}
				]
			},
			"delete": {
				"operationId": "show_admin_built_in_badge",
				"summary": "Show built-in community badge",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminCustomBadgeListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Shows a hidden built-in community badge again. Creates audit log entry. Requires BADGE_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "kind",
						"in": "path",
						"required": true,
						"schema": {"allOf": [{"$ref": "#/components/schemas/HideableBuiltInBadgeKindSchema"}]},
						"description": "A built-in community badge that this instance can stop showing: guild_verified, guild_partnered or guild_discoverable"
					}
				]
			}
		},
		"/admin/badges/order": {
			"put": {
				"operationId": "reorder_admin_badges",
				"summary": "Reorder custom badges",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminCustomBadgeListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Sets the display order of the custom badges. The body lists every user and guild badge on this instance exactly once, in the new order. It works on instances with up to 1,000 badges. Larger instances move badges one at a time with PATCH /admin/badges/order. The badges are written in groups. A failed request can leave part of the new order. Sending the same request again finishes it. Responds with the first page of badges. Creates audit log entry. Requires BADGE_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReorderCustomBadgesRequest"}}}
				}
			},
			"patch": {
				"operationId": "move_admin_badge",
				"summary": "Move custom badge",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminCustomBadgeResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Moves one badge within the badges of its type. Send direction to move it up or down one place or to the first or last place, or send after_id to show it right after another badge of the same type. Creates audit log entry. Requires BADGE_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/MoveCustomBadgeRequest"}}}
				}
			}
		},
		"/admin/badges/settings": {
			"patch": {
				"operationId": "update_admin_badge_settings",
				"summary": "Update custom badge settings",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminCustomBadgeSettingsResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Sets how many custom badges one user or one community can be given. Users can have up to 1,000 and communities up to 200. Lowering a limit keeps badges already given. A change that adds a badge to a user or community over the limit fails with MAX_BADGES. Creates audit log entry. Requires BADGE_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateCustomBadgeSettingsRequest"}}}
				}
			}
		},
		"/admin/badges/{badge_id}": {
			"patch": {
				"operationId": "update_admin_badge",
				"summary": "Update custom badge",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminCustomBadgeResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Replaces the name, description and link of a badge, and its image when one is sent. The type cannot change. Creates audit log entry. Requires BADGE_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "badge_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the badge", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the badge"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateCustomBadgeRequest"}}}
				}
			},
			"delete": {
				"operationId": "delete_admin_badge",
				"summary": "Delete custom badge",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Deletes a badge and its image. Users and guilds it was assigned to stop showing it. Creates audit log entry. Requires BADGE_DELETE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "badge_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the badge", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the badge"
					}
				]
			}
		},
		"/admin/billing-documents/export": {
			"get": {
				"operationId": "get_admin_billing_document_export",
				"summary": "Download the billing documents of a month for the books",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/zip": {"schema": {"$ref": "#/components/schemas/AdminBillingDocumentExportFileResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns fluxer-dokument-YYYY-MM.zip with fluxer-dokument-YYYY-MM.csv and pdf/<number>.pdf for every invoice, receipt, credit note and refund note issued in the month (Stockholm time). Fails with 409 when any series has a claimed number without a document. The PDFs show buyer names, email addresses and postal addresses. Records the first export of each document as its archive time. Creates audit log entry. Only available on hosted instances. Requires USER_LOOKUP and USER_VIEW_EMAIL permissions.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "month",
						"in": "query",
						"required": true,
						"schema": {
							"type": "string",
							"pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
							"description": "The month to export, as YYYY-MM in Stockholm time"
						},
						"description": "The month to export, as YYYY-MM in Stockholm time"
					}
				]
			}
		},
		"/admin/billing-documents/legacy-import": {
			"post": {
				"operationId": "start_admin_billing_document_legacy_import",
				"summary": "Import past Stripe invoice PDFs into billing history",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminBillingDocumentLegacyImportResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Queues the worker job that copies each account's paid Stripe invoices created before the cutover into the billing document store as read-only stripe_invoice documents, byte for byte as Stripe issued the PDF, so they show in the account's billing history. Run it once at the cutover, after a dry run. A dry run only counts. The import never runs on its own, skips invoices it already stored and invoices Fluxer issued its own document for, and leaves out invoices that belong to no account. Imported documents take no Fluxer number and are not part of the monthly export for the books. Running it again, or with resume, picks up what is left. Creates audit log entry. Only available on hosted instances. Requires USER_UPDATE_FLAGS permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminBillingDocumentLegacyImportRequest"}}
					}
				}
			},
			"get": {
				"operationId": "get_admin_billing_document_legacy_import",
				"summary": "Get the progress of the Stripe invoice import",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminBillingDocumentLegacyImportResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Shows the counts and position of the last import of past Stripe invoice PDFs, or of its dry run. Returns 404 when no import has run. Creates audit log entry. Only available on hosted instances. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/billing-documents/reissue": {
			"post": {
				"operationId": "reissue_admin_billing_document",
				"summary": "Issue the billing document for a Stripe source",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BillingDocumentResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Issues the Fluxer invoice, receipt or credit note for a checkout session (cs:), invoice (in:), refund (re:) or lost dispute (du:), or returns it when it already exists. A number claimed by an issue that failed gets its document under that same number, which clears the 409 from the export. Use it for a refund made outside Fluxer, or when staff accept the outcome of a lost dispute whose reason is not fraudulent or unrecognized, so the books can reduce the VAT on the credit note. A lost fraudulent or unrecognized dispute gets no credit note, and du: fails for one. Fails with 409 for a checkout session that has a Stripe invoice or is not a one-time payment, because its sale is documented under its in: invoice. Sends no email. Creates audit log entry. Only available on hosted instances. Requires USER_UPDATE_FLAGS permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminBillingDocumentReissueRequest"}}
					}
				}
			}
		},
		"/admin/billing-documents/{document_id}/pdf": {
			"get": {
				"operationId": "get_admin_billing_document_pdf",
				"summary": "Download a billing document",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/pdf": {"schema": {"$ref": "#/components/schemas/BillingDocumentFileResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns the stored PDF of any billing document, byte for byte as it was issued. The PDF shows the buyer's name, email address and postal address. Creates audit log entry. Only available on hosted instances. Requires USER_LOOKUP and USER_VIEW_EMAIL permissions.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "document_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The document ID", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The document ID"
					}
				]
			}
		},
		"/admin/blocklists": {
			"get": {
				"operationId": "list_admin_blocklist_types",
				"summary": "List blocklists",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminBlocklistTypeListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "List every blocklist this instance maintains, the request field that holds an entry value, the extra fields its entries accept, and which of the bulk and update operations it supports.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/blocklists/{list_type}/entries": {
			"get": {
				"operationId": "list_admin_blocklist_entries",
				"summary": "List blocklist entries",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminBlocklistEntryListResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Page through the entries of a blocklist, ordered by value. Pass the next_after cursor of the previous page as after to fetch the next page. The profile-substring blocklist requires a scope.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "list_type",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The blocklist to operate on",
							"allOf": [{"$ref": "#/components/schemas/AdminBlocklistListType"}]
						},
						"description": "The blocklist to operate on"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {"description": "Maximum number of entries to return", "default": "50", "type": "string"},
						"description": "Maximum number of entries to return"
					},
					{
						"name": "after",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Return entries ordered after this value, taken from the next_after cursor of the previous page",
							"type": "string"
						},
						"description": "Return entries ordered after this value, taken from the next_after cursor of the previous page"
					},
					{
						"name": "scope",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Profile field to list. Required on the profile-substring blocklist and rejected on every other blocklist.",
							"type": "string",
							"enum": ["username", "global_name", "nickname", "bio", "pronouns"]
						},
						"description": "Profile field to list. Required on the profile-substring blocklist and rejected on every other blocklist."
					}
				]
			},
			"post": {
				"operationId": "create_admin_blocklist_entry",
				"summary": "Add blocklist entry",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Add a value to a blocklist. The request body is the shape the blocklist named by list_type accepts, and the value is validated and canonicalized for that blocklist. Adding an IP address that is on the instance exemption list is refused with 400 IP_BAN_DECLINED and recorded in the audit log. An IP address blocked by an enforcement decision returns 409 IP_BAN_LINKED_TO_DECISION with the decision ID, because only an account decision creates or changes such a block.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "list_type",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The blocklist to operate on",
							"allOf": [{"$ref": "#/components/schemas/AdminBlocklistListType"}]
						},
						"description": "The blocklist to operate on"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminBlocklistEntryCreateRequest"}}}
				}
			},
			"put": {
				"operationId": "bulk_create_admin_blocklist_entries",
				"summary": "Bulk-add blocklist entries",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BulkJobResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Enqueue a background job that adds many entries to a blocklist at once. Returns a job_id immediately; observe progress at /admin/jobs/:job_id. Only the file-sha blocklist accepts this operation, reported as supports_bulk_create by GET /admin/blocklists.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "list_type",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The blocklist to operate on",
							"allOf": [{"$ref": "#/components/schemas/AdminBlocklistListType"}]
						},
						"description": "The blocklist to operate on"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BulkBanFileShasRequest"}}}
				}
			},
			"delete": {
				"operationId": "bulk_delete_admin_blocklist_entries",
				"summary": "Bulk-remove blocklist entries",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Remove several entries from a blocklist in one request. The request body is the shape the blocklist named by list_type accepts. Only the avatar-hash and profile-substring blocklists accept this operation, reported as supports_bulk_delete by GET /admin/blocklists.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "list_type",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The blocklist to operate on",
							"allOf": [{"$ref": "#/components/schemas/AdminBlocklistListType"}]
						},
						"description": "The blocklist to operate on"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminBlocklistBulkDeleteRequest"}}}
				}
			}
		},
		"/admin/blocklists/{list_type}/entries/{entry_value}": {
			"get": {
				"operationId": "get_admin_blocklist_entry",
				"summary": "Check blocklist entry",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BanCheckResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Report whether a value is currently blocked by a blocklist. The value is percent-encoded in the path. An IP address can still match a broader stored CIDR entry, and a url-domain value can be a hostname or an http(s) URL that a stored domain or pattern covers. The profile-substring blocklist requires a scope.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "list_type",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The blocklist the entry belongs to",
							"allOf": [{"$ref": "#/components/schemas/AdminBlocklistListType"}]
						},
						"description": "The blocklist the entry belongs to"
					},
					{
						"name": "entry_value",
						"in": "path",
						"required": true,
						"schema": {"description": "The percent-encoded value of the blocklist entry", "type": "string"},
						"description": "The percent-encoded value of the blocklist entry"
					},
					{
						"name": "scope",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Profile field the entry is scoped to. Required on the profile-substring blocklist and rejected on every other blocklist.",
							"type": "string",
							"enum": ["username", "global_name", "nickname", "bio", "pronouns"]
						},
						"description": "Profile field the entry is scoped to. Required on the profile-substring blocklist and rejected on every other blocklist."
					}
				]
			},
			"patch": {
				"operationId": "update_admin_blocklist_entry",
				"summary": "Update blocklist entry",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Rewrite the stored fields of a blocklist entry without removing and re-adding it. The stored metadata is replaced by the supplied fields, so fields left out fall back to their defaults. Only blocklists whose entries have fields accept this operation, reported as supports_update by GET /admin/blocklists.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "list_type",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The blocklist the entry belongs to",
							"allOf": [{"$ref": "#/components/schemas/AdminBlocklistListType"}]
						},
						"description": "The blocklist the entry belongs to"
					},
					{
						"name": "entry_value",
						"in": "path",
						"required": true,
						"schema": {"description": "The percent-encoded value of the blocklist entry", "type": "string"},
						"description": "The percent-encoded value of the blocklist entry"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminBlocklistEntryUpdateRequest"}}}
				}
			},
			"delete": {
				"operationId": "delete_admin_blocklist_entry",
				"summary": "Remove blocklist entry",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Remove an entry from a blocklist. The value is percent-encoded in the path and is canonicalized the same way it was on add, so an IP covered only by a broader CIDR entry cannot be removed through the narrower address. An IP block that belongs to an enforcement decision returns 409 IP_BAN_LINKED_TO_DECISION with the decision ID, and is removed by ending that decision. The profile-substring blocklist requires a scope.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "list_type",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The blocklist the entry belongs to",
							"allOf": [{"$ref": "#/components/schemas/AdminBlocklistListType"}]
						},
						"description": "The blocklist the entry belongs to"
					},
					{
						"name": "entry_value",
						"in": "path",
						"required": true,
						"schema": {"description": "The percent-encoded value of the blocklist entry", "type": "string"},
						"description": "The percent-encoded value of the blocklist entry"
					},
					{
						"name": "scope",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Profile field the entry is scoped to. Required on the profile-substring blocklist and rejected on every other blocklist.",
							"type": "string",
							"enum": ["username", "global_name", "nickname", "bio", "pronouns"]
						},
						"description": "Profile field the entry is scoped to. Required on the profile-substring blocklist and rejected on every other blocklist."
					}
				]
			}
		},
		"/admin/bulk-jobs": {
			"post": {
				"operationId": "create_admin_bulk_job",
				"summary": "Queue a bulk job",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BulkJobResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Enqueue one background administrative job. The `task` discriminator selects both the body variant and the ACL evaluated for the request: `update_user_flags` needs bulk:update:user_flags, `update_guild_features` needs bulk:update:guild_features, `add_guild_members` needs bulk:add:guild_members, `schedule_user_deletion` needs bulk:delete:users, and `delete_user_messages` needs bulk:delete:user_messages. Returns a job_id immediately; observe progress at /admin/jobs/:job_id.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminBulkJobCreateRequest"}}}
				}
			}
		},
		"/admin/channels/{channel_id}": {
			"delete": {
				"operationId": "delete_admin_thread_channel",
				"summary": "Delete a thread",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Deletes a thread channel with its messages and memberships. Only public and private threads can be deleted here. Requires MESSAGE_DELETE_ALL permission.",
				"x-fluxer-experiment": "channel_threads",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "channel_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the channel",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the channel"
					}
				]
			}
		},
		"/admin/channels/{channel_id}/messages": {
			"get": {
				"operationId": "list_admin_channel_messages",
				"summary": "List channel messages",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BrowseChannelResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Pages through the messages of a channel, newest first, with cursor-based pagination. Requires MESSAGE_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "channel_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the channel",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the channel"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Number of messages to return (1-100, default 50)",
							"default": "50",
							"type": "string"
						},
						"description": "Number of messages to return (1-100, default 50)"
					},
					{
						"name": "before",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Return messages older than this message ID",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Return messages older than this message ID"
					},
					{
						"name": "after",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Return messages newer than this message ID",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Return messages newer than this message ID"
					}
				]
			}
		},
		"/admin/channels/{channel_id}/messages/{message_id}": {
			"get": {
				"operationId": "get_admin_message",
				"summary": "Get message",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/LookupMessageResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Retrieves complete message details including content, attachments, edits, and metadata, together with the messages surrounding it. Requires MESSAGE_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "channel_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the channel",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the channel"
					},
					{
						"name": "message_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the message",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the message"
					},
					{
						"name": "context_limit",
						"in": "query",
						"required": false,
						"schema": {
							"description": "How many messages surrounding the requested message to return as context (1-100, default 50)",
							"default": "50",
							"type": "string"
						},
						"description": "How many messages surrounding the requested message to return as context (1-100, default 50)"
					}
				]
			},
			"delete": {
				"operationId": "delete_admin_message",
				"summary": "Delete message",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DeleteMessageResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Deletes a single message permanently and purges its attachments. The basis is holder_request or housekeeping, such as cleanup of webhook or system messages. To remove a message for breaking a rule, shred it with an enforcement basis so a decision records it. Logged to audit log with the basis. Requires MESSAGE_DELETE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "channel_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the channel",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the channel"
					},
					{
						"name": "message_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the message",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the message"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminMessageDeleteRequest"}}}
				}
			}
		},
		"/admin/discovery/applications": {
			"get": {
				"operationId": "list_admin_discovery_applications",
				"summary": "List discovery applications",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {
								"schema": {"$ref": "#/components/schemas/DiscoveryAdminPendingApplicationListResponse"}
							}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns every pending discovery application, enriched with guild metadata. No pagination. Requires DISCOVERY_REVIEW permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/discovery/applications/{guild_id}": {
			"patch": {
				"operationId": "update_admin_discovery_application",
				"summary": "Review discovery application",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DiscoveryApplicationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Approve or reject a pending discovery application. Requires DISCOVERY_REVIEW permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/DiscoveryAdminApplicationUpdateRequest"}}
					}
				}
			}
		},
		"/admin/discovery/categories": {
			"get": {
				"operationId": "list_admin_discovery_categories",
				"summary": "List discovery categories",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DiscoveryCategoryListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns every discovery category a listing can be filed under. Requires DISCOVERY_REVIEW permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/discovery/categories/{category_id}/listings": {
			"get": {
				"operationId": "list_admin_discovery_category_listings",
				"summary": "List guilds in a discovery category",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/DiscoveryAdminListedGuildListResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns an offset page of the guilds listed under one discovery category, most members first, enriched with guild metadata. Requires DISCOVERY_REVIEW permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "category_id",
						"in": "path",
						"required": true,
						"schema": {
							"type": "integer",
							"minimum": 0,
							"maximum": 8,
							"description": "The ID of the discovery category"
						},
						"description": "The ID of the discovery category"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {
							"default": 50,
							"description": "Number of listings to return",
							"type": "integer",
							"minimum": 1,
							"maximum": 100
						},
						"description": "Number of listings to return"
					},
					{
						"name": "offset",
						"in": "query",
						"required": false,
						"schema": {
							"default": 0,
							"description": "Pagination offset",
							"type": "integer",
							"minimum": 0,
							"maximum": 10000
						},
						"description": "Pagination offset"
					}
				]
			}
		},
		"/admin/discovery/listings": {
			"get": {
				"operationId": "list_admin_discovery_listings",
				"summary": "List discovery listings",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/DiscoveryAdminListedGuildListResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns every approved/listed discovery guild, enriched with guild metadata. No pagination. Requires DISCOVERY_REVIEW permission.",
				"security": [{"adminApiKey": []}]
			},
			"patch": {
				"operationId": "bulk_update_admin_discovery_listing_category",
				"summary": "Move discovery listings to a category",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/DiscoveryAdminListingBulkCategoryResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Files every named discovery listing under one category. Every guild is attempted and the ones that could not be moved are reported. Requires DISCOVERY_REVIEW permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/DiscoveryAdminListingBulkCategoryRequest"}}
					}
				}
			}
		},
		"/admin/discovery/listings/{guild_id}": {
			"patch": {
				"operationId": "update_admin_discovery_listing",
				"summary": "Update discovery listing",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DiscoveryApplicationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Edit the description, category, language, or tags of a discovery listing without delisting the guild. Requires DISCOVERY_REVIEW permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DiscoveryApplicationPatchRequest"}}}
				}
			},
			"delete": {
				"operationId": "delete_admin_discovery_listing",
				"summary": "Remove discovery listing",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DiscoveryApplicationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Remove an approved guild from discovery. Requires DISCOVERY_REMOVE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DiscoveryAdminRemoveRequest"}}}
				}
			}
		},
		"/admin/enforcement-decisions": {
			"get": {
				"operationId": "list_admin_enforcement_decisions",
				"summary": "List enforcement decisions",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/EnforcementDecisionListResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists the enforcement decisions about one user or community, newest first, without notes or evidence. With review_queue=true it lists the automated decisions waiting for a person instead, such as purchase limits after a chargeback. A person takes one out of the queue by ending it or by recording a warning, suspension or closure on the same account. Report IDs are empty without REPORT_VIEW. Requires ENFORCEMENT_VIEW permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "review_queue",
						"in": "query",
						"required": false,
						"schema": {
							"description": "List the automated decisions waiting for a person to review them instead of one subject",
							"default": "false",
							"type": "string"
						},
						"description": "List the automated decisions waiting for a person to review them instead of one subject"
					},
					{
						"name": "subject_type",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Kind of subject whose decisions to list",
							"type": "string",
							"enum": ["user", "guild"]
						},
						"description": "Kind of subject whose decisions to list"
					},
					{
						"name": "subject_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "ID of the user or community whose decisions to list",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "ID of the user or community whose decisions to list"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {"description": "Maximum number of decisions to return", "default": "50", "type": "string"},
						"description": "Maximum number of decisions to return"
					},
					{
						"name": "before",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Return decisions with IDs lower than this decision ID",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Return decisions with IDs lower than this decision ID"
					}
				]
			}
		},
		"/admin/enforcement-decisions/{decision_id}": {
			"get": {
				"operationId": "get_admin_enforcement_decision",
				"summary": "Get enforcement decision",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/EnforcementDecisionResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns one enforcement decision with its notes, evidence and the notice the holder sees now. Evidence content and profile values are null without MESSAGE_LOOKUP, and report IDs are empty without REPORT_VIEW. Requires ENFORCEMENT_VIEW permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "decision_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the enforcement decision",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the enforcement decision"
					}
				]
			}
		},
		"/admin/enforcement-decisions/{decision_id}/end": {
			"post": {
				"operationId": "end_admin_enforcement_decision",
				"summary": "End an enforcement decision",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/EnforcementDecisionResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Ends an active decision as lifted or reversed, undoes what can be undone and emails the holder. Ending a suspension lifts it, and returns 409 when a later decision replaced it. Warnings, removals and suspensions that ended as expired can only be reversed. Creates audit log entry. Requires ENFORCEMENT_VIEW permission plus the permission of the route that made the decision, such as USER_TEMP_BAN for a suspension or USER_UPDATE_FLAGS for a warning.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "decision_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the enforcement decision",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the enforcement decision"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/EnforcementDecisionEndRequest"}}}
				}
			}
		},
		"/admin/enforcement-decisions/{decision_id}/notes": {
			"post": {
				"operationId": "annotate_admin_enforcement_decision",
				"summary": "Add a note to an enforcement decision",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/EnforcementDecisionNoteResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Appends an internal note to an enforcement decision. Notes are staff only, never change and expire with the evidence after a year. Creates audit log entry. Requires ENFORCEMENT_ANNOTATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "decision_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the enforcement decision",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the enforcement decision"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/EnforcementDecisionNoteRequest"}}}
				}
			}
		},
		"/admin/gateway/memory-stats": {
			"get": {
				"operationId": "get_admin_gateway_memory_stats",
				"summary": "Get guild memory statistics",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GuildMemoryStatsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns heap and resident memory usage per guild. Requires GATEWAY_MEMORY_STATS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Maximum number of guild processes to return (100-1000, default 100)",
							"default": "100",
							"type": "string"
						},
						"description": "Maximum number of guild processes to return (100-1000, default 100)"
					}
				]
			}
		},
		"/admin/gateway/reloads": {
			"post": {
				"operationId": "create_admin_gateway_reload",
				"summary": "Reload gateway guilds",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReloadAllGuildsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Reconnects to the database and re-syncs guild state. Used for recovery after data inconsistencies. Requires GATEWAY_RELOAD_ALL permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReloadGuildsRequest"}}}
				}
			}
		},
		"/admin/gateway/stats": {
			"get": {
				"operationId": "get_admin_gateway_stats",
				"summary": "Get gateway node statistics",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/NodeStatsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns uptime, process memory, and guild count. Used to monitor gateway health and performance. Requires GATEWAY_MEMORY_STATS permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/gateway/voice-state-counts": {
			"get": {
				"operationId": "get_admin_gateway_voice_state_counts",
				"summary": "Get gateway voice state counts",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/GatewayVoiceStateCountsResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns active voice state counts grouped by voice region and voice server. Requires GATEWAY_MEMORY_STATS permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/gift-codes": {
			"post": {
				"operationId": "create_admin_gift_codes",
				"summary": "Issue gift codes",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CodesResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Create one-use premium gift codes and return their complete redemption links. Use a positive duration, or on a self-hosted instance the duration type lifetime for premium that never ends. On self-hosted instances the premium mode must be mirror. Requires GIFT_CODES_GENERATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GenerateGiftCodesRequest"}}}
				}
			}
		},
		"/admin/gift-codes/{code}": {
			"delete": {
				"operationId": "revoke_admin_gift_code",
				"summary": "Revoke gift code",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Revoke a gift code that nobody has redeemed, so it can no longer be redeemed. Pass the code, which is the last part of the redemption link. Returns 404 when the code is unknown or already revoked, and 400 when it was redeemed, in which case Remove user premium ends the premium it gave, or when a customer bought it. Creates audit log entry. Requires GIFT_CODES_GENERATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "code",
						"in": "path",
						"required": true,
						"schema": {"description": "The gift code", "type": "string"},
						"description": "The gift code"
					}
				]
			}
		},
		"/admin/guilds": {
			"get": {
				"operationId": "list_admin_guilds",
				"summary": "List guilds",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SearchGuildsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Searches guilds by name, ID, and other criteria. Supports full-text search and pagination through limit and offset. Requires GUILD_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "q",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Free-text query matched against the guild name and vanity URL code",
							"type": "string"
						},
						"description": "Free-text query matched against the guild name and vanity URL code"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Maximum guilds to return (1-200, default 50)",
							"default": "50",
							"type": "string"
						},
						"description": "Maximum guilds to return (1-200, default 50)"
					},
					{
						"name": "offset",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Guilds to skip before returning results (default 0)",
							"default": "0",
							"type": "string"
						},
						"description": "Guilds to skip before returning results (default 0)"
					}
				]
			}
		},
		"/admin/guilds/{guild_id}": {
			"get": {
				"operationId": "get_admin_guild",
				"summary": "Get guild",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/LookupGuildResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Retrieves complete guild details including metadata, settings, channels, roles, and statistics. Requires GUILD_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				]
			},
			"patch": {
				"operationId": "update_admin_guild",
				"summary": "Update guild",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GuildUpdateResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Partially updates a guild. The permissions required are selected by the fields present in the body and are evaluated with all-of semantics: name requires GUILD_UPDATE_NAME, vanity_url_code requires GUILD_UPDATE_VANITY, new_owner_id requires GUILD_TRANSFER_OWNERSHIP, add_features and remove_features require GUILD_UPDATE_FEATURES, badge_ids requires GUILD_UPDATE_BADGES, and fields together with every other setting requires GUILD_UPDATE_SETTINGS. A body with no fields applies no change. Every applied change is logged to the audit log.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateGuildRequest"}}}
				}
			},
			"delete": {
				"operationId": "delete_admin_guild",
				"summary": "Delete guild",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Permanently deletes a guild. The guild becomes unavailable at once, and a background job deletes all channels, messages, and settings. Irreversible operation with no recovery window. The basis is enforcement or holder_request. An enforcement basis records a community removal decision and sends its notice to the owner, and is refused for child safety and violent extremism reasons. Logged to audit log. Requires GUILD_DELETE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminGuildDeleteRequest"}}}
				}
			}
		},
		"/admin/guilds/{guild_id}/archives": {
			"post": {
				"operationId": "create_admin_guild_archive",
				"summary": "Create guild archive",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminArchiveResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Initiates a data export for a guild (server). Creates an archive containing all guild data including channels, messages, members, roles, and settings.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminArchiveCreateRequest"}}}
				}
			}
		},
		"/admin/guilds/{guild_id}/assets": {
			"delete": {
				"operationId": "purge_admin_guild_assets",
				"summary": "Purge guild assets",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PurgeGuildAssetsResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Delete and clean up emoji and sticker assets belonging to a guild, including their stored media. An ID owned by another guild is reported in errors and left untouched, and an ID with no record still queues its media for removal. This is a destructive operation used for cleanup during guild management or compliance actions.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PurgeGuildAssetsRequest"}}}
				}
			}
		},
		"/admin/guilds/{guild_id}/audit-logs": {
			"get": {
				"operationId": "list_admin_guild_audit_logs",
				"summary": "List guild audit logs",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListGuildAuditLogsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns in-app guild audit log entries for a guild without requiring VIEW_AUDIT_LOG membership permission. Supports pagination via before/after log IDs and filtering by user_id or action_type. Requires GUILD_AUDIT_LOG_VIEW permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Maximum number of audit log entries to return (1-100)",
							"maximum": 100,
							"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
						},
						"description": "Maximum number of audit log entries to return (1-100)"
					},
					{
						"name": "before",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Get entries before this audit log entry ID",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Get entries before this audit log entry ID"
					},
					{
						"name": "after",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Get entries after this audit log entry ID",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Get entries after this audit log entry ID"
					},
					{
						"name": "user_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Filter entries by the user who performed the action",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Filter entries by the user who performed the action"
					},
					{
						"name": "action_type",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Filter entries by the type of action",
							"allOf": [{"$ref": "#/components/schemas/AuditLogActionTypeFilter"}]
						},
						"description": "Filter entries by the type of action"
					}
				]
			}
		},
		"/admin/guilds/{guild_id}/bans/{user_id}": {
			"put": {
				"operationId": "ban_admin_guild_member",
				"summary": "Ban guild member",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Bans a user from a guild as the Fluxer system user, without guild membership or guild permissions, optionally deleting their recent messages. Prevents the user from joining until the ban expires or is removed. Refuses the guild owner. Logged to audit log. Requires GUILD_BAN_MEMBER permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					},
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BanGuildMemberBody"}}}
				}
			},
			"delete": {
				"operationId": "unban_admin_guild_member",
				"summary": "Unban guild member",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Removes a guild ban as the Fluxer system user, without guild membership or guild permissions. Logged to audit log. Requires GUILD_BAN_MEMBER permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					},
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/guilds/{guild_id}/emojis": {
			"get": {
				"operationId": "list_admin_guild_emojis",
				"summary": "List guild emojis",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListGuildEmojisResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists all custom emojis in a guild. Returns ID, name, and creation date. Used for asset inventory and purge operations. Requires ASSET_PURGE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				]
			}
		},
		"/admin/guilds/{guild_id}/members": {
			"get": {
				"operationId": "list_admin_guild_members",
				"summary": "List guild members",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListGuildMembersResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists all guild members with pagination. Returns member IDs, join dates, and roles. Requires GUILD_LIST_MEMBERS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Maximum members to return (1-200, default 50)",
							"default": "50",
							"type": "string"
						},
						"description": "Maximum members to return (1-200, default 50)"
					},
					{
						"name": "offset",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Members to skip before returning results (default 0)",
							"default": "0",
							"type": "string"
						},
						"description": "Members to skip before returning results (default 0)"
					}
				]
			}
		},
		"/admin/guilds/{guild_id}/members/{user_id}": {
			"put": {
				"operationId": "add_admin_guild_member",
				"summary": "Add guild member",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Forcefully adds a user to a guild. Bypasses normal invite flow for administrative account recovery. Logged to audit log. Requires GUILD_FORCE_ADD_MEMBER permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					},
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			},
			"delete": {
				"operationId": "kick_admin_guild_member",
				"summary": "Remove guild member",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Removes a user from a guild as the Fluxer system user, without guild membership or guild permissions. User can rejoin. Refuses the guild owner. Logged to audit log. Requires GUILD_KICK_MEMBER permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					},
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/guilds/{guild_id}/reloads": {
			"post": {
				"operationId": "create_admin_guild_reload",
				"summary": "Reload guild",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Reloads a single guild state from database. Used to recover from corruption or sync issues. Logged to audit log. Requires GUILD_RELOAD permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				]
			}
		},
		"/admin/guilds/{guild_id}/roles/{role_id}/icon": {
			"delete": {
				"operationId": "clear_admin_guild_role_icon",
				"summary": "Clear guild role icon",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Removes the image icon and Unicode emoji from a guild role and queues the old image for deletion. Members see the change at once. Logged to audit log. Requires GUILD_UPDATE_SETTINGS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					},
					{
						"name": "role_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the role", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the role"
					}
				]
			}
		},
		"/admin/guilds/{guild_id}/shutdowns": {
			"post": {
				"operationId": "create_admin_guild_shutdown",
				"summary": "Shut down guild",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Shuts down and unloads a guild from the gateway. Guild data remains in database. Used for emergency resource cleanup. Logged to audit log. Requires GUILD_SHUTDOWN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				]
			}
		},
		"/admin/guilds/{guild_id}/stickers": {
			"get": {
				"operationId": "list_admin_guild_stickers",
				"summary": "List guild stickers",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListGuildStickersResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists all stickers in a guild. Returns ID, name, and asset information. Used for asset inventory and purge operations. Requires ASSET_PURGE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				]
			}
		},
		"/admin/guilds/{guild_id}/threads": {
			"get": {
				"operationId": "list_admin_guild_threads",
				"summary": "List guild threads",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListGuildThreadsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists every thread of a guild, active and archived, whether or not the channel threads experiment is active for it. Requires GUILD_LOOKUP permission.",
				"x-fluxer-experiment": "channel_threads",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "guild_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the guild"
					}
				]
			}
		},
		"/admin/instance/config": {
			"get": {
				"operationId": "get_admin_instance_config",
				"summary": "Get instance configuration",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/InstanceConfigResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Retrieves instance-wide configuration including webhooks and SSO configuration. Requires INSTANCE_CONFIG_VIEW permission.",
				"security": [{"adminApiKey": []}]
			},
			"patch": {
				"operationId": "update_admin_instance_config",
				"summary": "Update instance configuration",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/InstanceConfigResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Updates instance configuration settings including webhook URLs and SSO parameters. Changes apply immediately. Requires INSTANCE_CONFIG_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/InstanceConfigUpdateRequest"}}}
				}
			}
		},
		"/admin/instance/config/branding-assets": {
			"post": {
				"operationId": "create_admin_instance_branding_asset",
				"summary": "Upload an instance branding asset",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/InstanceConfigResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Uploads a branding image served by the media proxy and stores its URL, or clears it when no image is provided. The favicon_dark, sign_in_backdrop and premium_showcase_* kinds are only available on self-hosted instances. Requires INSTANCE_CONFIG_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BrandingAssetUploadRequest"}}}
				}
			}
		},
		"/admin/instance/config/smtp-tests": {
			"post": {
				"operationId": "create_admin_instance_smtp_test",
				"summary": "Run an SMTP configuration test",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/InstanceEmailSmtpTestResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Validates that an SMTP configuration can authenticate and accept a connection. Fields left out of the body come from the saved configuration, and the saved password is reused only for the saved host and username. An empty body tests what outgoing email uses and fails when email is off or incomplete. With send_to, it also sends a short test message from the configured from address and returns what the server answered, or the error it gave. Requires INSTANCE_CONFIG_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/InstanceEmailSmtpTestRequest"}}}
				}
			}
		},
		"/admin/instance/pending-registrations": {
			"get": {
				"operationId": "list_admin_pending_registrations",
				"summary": "List pending registrations",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/PendingRegistrationListResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists every registration waiting for manual review, oldest first. Requires REGISTRATION_REVIEW permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/instance/pending-registrations/{user_id}": {
			"patch": {
				"operationId": "update_admin_pending_registration",
				"summary": "Approve or reject a pending registration",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/PendingRegistrationListResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Decides a registration waiting for manual review and returns the registrations still waiting. Approving removes its pending registration trait and joins the account to the community it was invited to and the single community. Rejecting stops the account from signing in and queues it for deletion right away without sending a notice, unless a deletion is already scheduled. Once the account is deleted, its email address can register again. Requires REGISTRATION_REVIEW permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PendingRegistrationActionRequest"}}}
				}
			}
		},
		"/admin/instance/registration-urls": {
			"post": {
				"operationId": "create_admin_registration_url",
				"summary": "Create an admin-issued registration URL",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateRegistrationUrlResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Creates a one-time-display registration URL that can be sent manually by an administrator. Requires INSTANCE_CONFIG_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateRegistrationUrlRequest"}}}
				}
			}
		},
		"/admin/instance/registration-urls/{registration_url_id}": {
			"delete": {
				"operationId": "revoke_admin_registration_url",
				"summary": "Revoke or remove an admin-issued registration URL",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/InstanceConfigResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Revokes an admin-issued registration URL so it can no longer be used. Calling it again on a revoked URL removes it from the list. Requires INSTANCE_CONFIG_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "registration_url_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the registration URL", "type": "string"},
						"description": "The ID of the registration URL"
					}
				]
			},
			"patch": {
				"operationId": "update_admin_registration_url",
				"summary": "Rename an admin-issued registration URL",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/InstanceConfigResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Changes the label of an admin-issued registration URL. Returns 404 when no URL has this ID. Requires INSTANCE_CONFIG_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "registration_url_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the registration URL", "type": "string"},
						"description": "The ID of the registration URL"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateRegistrationUrlRequest"}}}
				}
			}
		},
		"/admin/jobs": {
			"get": {
				"operationId": "list_admin_jobs",
				"summary": "List jobs",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListJobsResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Paginated, filterable list of background jobs from the human-facing ledger. Walks back through day-buckets and applies status / task-type / requester filters in-process. The three cursor query parameters come from the previous page `next_cursor` and must be supplied together.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Maximum number of jobs to return (1-200, default 50)",
							"default": "50",
							"type": "string"
						},
						"description": "Maximum number of jobs to return (1-200, default 50)"
					},
					{
						"name": "cursor_bucket_day",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Day bucket to resume from as a YYYY-MM-DD UTC date, taken from next_cursor.bucket_day",
							"type": "string"
						},
						"description": "Day bucket to resume from as a YYYY-MM-DD UTC date, taken from next_cursor.bucket_day"
					},
					{
						"name": "cursor_created_at",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Creation time to resume before as an ISO 8601 timestamp, taken from next_cursor.created_at",
							"type": "string"
						},
						"description": "Creation time to resume before as an ISO 8601 timestamp, taken from next_cursor.created_at"
					},
					{
						"name": "cursor_job_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Job to resume from, taken from next_cursor.job_id",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
						},
						"description": "Job to resume from, taken from next_cursor.job_id"
					},
					{
						"name": "max_lookback_days",
						"in": "query",
						"required": false,
						"schema": {
							"description": "How many day buckets to scan back through (1-60, default 14)",
							"default": "14",
							"type": "string"
						},
						"description": "How many day buckets to scan back through (1-60, default 14)"
					},
					{
						"name": "status",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Filter by job status",
							"type": "string",
							"enum": ["queued", "running", "succeeded", "cancelled", "deadletter"]
						},
						"description": "Filter by job status"
					},
					{
						"name": "task_type",
						"in": "query",
						"required": false,
						"schema": {"description": "Filter by task type", "type": "string"},
						"description": "Filter by task type"
					},
					{
						"name": "requested_by_user_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Filter by admin user who scheduled the job",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Filter by admin user who scheduled the job"
					}
				]
			}
		},
		"/admin/jobs/active": {
			"get": {
				"operationId": "list_admin_active_jobs",
				"summary": "List active jobs",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ActiveJobsResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Polling endpoint for the Jobs page. Returns only currently-active jobs (queued or running) from their own index, so the UI can refresh progress without scanning historical day-buckets.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/jobs/{job_id}": {
			"get": {
				"operationId": "get_admin_job",
				"summary": "Get job detail",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetJobResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Fetch a single job ledger entry with full payload, result, and progress.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "job_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the job", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the job"
					}
				]
			}
		},
		"/admin/jobs/{job_id}/cancellation": {
			"put": {
				"operationId": "create_admin_job_cancellation",
				"summary": "Request cancellation of a running job",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CancelJobResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Mark a job as cancel-requested. The handler must be cooperatively cancellable — it will see the flag at its next `helpers.shouldCancel()` check. Returns `{cancelled: false}` for already-terminal jobs.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "job_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the job", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the job"
					}
				]
			}
		},
		"/admin/limit-config": {
			"get": {
				"operationId": "get_admin_limit_config",
				"summary": "Get limit configuration",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/LimitConfigGetResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Retrieves rate limit configuration including message limits, upload limits, and request throttles. Shows defaults, metadata, and any modifications from defaults. Requires INSTANCE_LIMIT_CONFIG_VIEW permission.",
				"security": [{"adminApiKey": []}]
			},
			"put": {
				"operationId": "replace_admin_limit_config",
				"summary": "Replace limit configuration",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/LimitConfigGetResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Replaces the stored limit configuration, which covers message throughput, upload sizes, and request throttles, with the supplied document. Changes apply immediately to all new operations. Requires INSTANCE_LIMIT_CONFIG_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/LimitConfigUpdateRequest"}}}
				}
			}
		},
		"/admin/messages": {
			"get": {
				"operationId": "search_admin_messages",
				"summary": "Search messages",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminMessageSearchResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Searches the messages of a channel by content, or resolves a single message by its ID or by one of its attachments. Passing message_id returns that message with the messages surrounding it; passing attachment_id together with filename returns the message with that attachment with its surrounding context. Requires MESSAGE_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "channel_id",
						"in": "query",
						"required": true,
						"schema": {
							"description": "Return messages sent in this channel",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Return messages sent in this channel"
					},
					{
						"name": "q",
						"in": "query",
						"required": false,
						"schema": {"description": "Free-text query matched against message content", "type": "string"},
						"description": "Free-text query matched against message content"
					},
					{
						"name": "message_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Return the single message with this ID together with its surrounding context; ignores every other filter",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Return the single message with this ID together with its surrounding context; ignores every other filter"
					},
					{
						"name": "attachment_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Return the single message with this attachment together with its surrounding context; requires filename",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Return the single message with this attachment together with its surrounding context; requires filename"
					},
					{
						"name": "filename",
						"in": "query",
						"required": false,
						"schema": {
							"description": "The filename of the attachment named by attachment_id",
							"type": "string",
							"minLength": 1,
							"maxLength": 255
						},
						"description": "The filename of the attachment named by attachment_id"
					},
					{
						"name": "context_limit",
						"in": "query",
						"required": false,
						"schema": {
							"description": "How many messages surrounding a message resolved by message_id or attachment_id to return as context (1-100, default 50)",
							"default": "50",
							"type": "string"
						},
						"description": "How many messages surrounding a message resolved by message_id or attachment_id to return as context (1-100, default 50)"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Maximum number of messages to return when searching (1-100, default 25)",
							"default": "25",
							"type": "string"
						},
						"description": "Maximum number of messages to return when searching (1-100, default 25)"
					}
				]
			}
		},
		"/admin/messages/shreds/{job_id}": {
			"get": {
				"operationId": "get_admin_message_shred",
				"summary": "Get message shred job",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageShredStatusResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns the progress of a queued message shred job, including whether it is complete. Requires MESSAGE_SHRED permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "job_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the message shred job",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the message shred job"
					}
				]
			}
		},
		"/admin/operator-pass/certificates/{pass_id}/reissue": {
			"post": {
				"operationId": "reissue_admin_operator_pass_certificate",
				"summary": "Issue a new copy of an Operator certificate page",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {
								"schema": {"$ref": "#/components/schemas/AdminOperatorPassCertificateReissueResponse"}
							}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Issues a new copy of one Operator certificate page with the given name and the same number, payment date and terms version, for a name change under section 3 or a correction under section 6 of the Operator Pass terms, or with a name the buyer gives after the person named on the page objected successfully under section 5 of the Operator Pass privacy notice. Runs the same name checks as checkout. Earlier copies stay in the records, except after an objection, when the name and the PDF file of every earlier copy are erased and only the number, the fingerprint and the issue time stay. For a page that is cancelled after a withdrawal, a refund or a payment dispute, an objection issues no new copy. It erases the name and the PDF file of every copy and the name of that page on the purchase, keeps the number, the fingerprint, the issue times and the cancellation, and ignores holder_name. The page keeps its link, which opens the newest copy, and the purchase lists the new name for that page. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "pass_id",
						"in": "path",
						"required": true,
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 300,
							"description": "The pass ID, the checkout session ID and the pass number joined by a colon"
						},
						"description": "The pass ID, the checkout session ID and the pass number joined by a colon"
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassCertificateReissueRequest"}}
					}
				}
			}
		},
		"/admin/operator-pass/deliveries.csv": {
			"get": {
				"operationId": "get_admin_operator_pass_deliveries",
				"summary": "Download Operator Pass deliveries for the books",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"text/csv": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassDeliveriesCsvResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns operator-pass-leveranser-YYYY-MM.csv for one calendar month of delivered_at in UTC, with one row per pass of every purchase delivered in that month. The columns bokfor reads are pass_id, source, charge_id, payment_intent_id, delivered_at, holder_had_pass, is_business, withdrawal_country and confirmation_sent_at, followed by the purchase, consent, withdrawal and after-sale columns of the full export. Columns with no stored source yet are empty. Leaves out names, IP addresses and browser details. Creates audit log entry. Only available on hosted instances. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "month",
						"in": "query",
						"required": true,
						"schema": {
							"type": "string",
							"pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
							"description": "Calendar month of delivered_at in UTC, as YYYY-MM"
						},
						"description": "Calendar month of delivered_at in UTC, as YYYY-MM"
					}
				]
			}
		},
		"/admin/operator-pass/purchases/{purchase_id}/withdraw": {
			"post": {
				"operationId": "withdraw_admin_operator_pass_purchase",
				"summary": "Record Operator Pass withdrawal",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassPurchaseResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Records a withdrawal under section 7.1 of the Operator Pass terms that the buyer sent by the form, by email or in another clear way. Uses the time Fluxer received it, refunds the passes in full unless the payment was already refunded, ends them and emails the timestamped receipt to the account email. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "purchase_id",
						"in": "path",
						"required": true,
						"schema": {"type": "string", "minLength": 1, "maxLength": 256, "description": "The purchase ID"},
						"description": "The purchase ID"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWithdrawRequest"}}}
				}
			}
		},
		"/admin/operator-pass/releases/{year}": {
			"get": {
				"operationId": "get_admin_operator_pass_release",
				"summary": "Get The Operators of list",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassReleasePreviewResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Previews the The Operators of list for a year: the cut-off, the publish deadline and the names that go in, or the published list. Only available on hosted instances. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "year",
						"in": "path",
						"required": true,
						"schema": {"type": "integer", "minimum": 2026, "maximum": 9999, "description": "The year of the list"},
						"description": "The year of the list"
					}
				]
			}
		},
		"/admin/operator-pass/releases/{year}/erase/{user_id}": {
			"post": {
				"operationId": "erase_admin_operator_pass_release_name",
				"summary": "Erase name from published list",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassReleaseFileResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Erases the name of an account from a published The Operators of list. The homepage feature and future exports leave it out, a history event records it, and the response lists the release notes and OPERATORS file edits to make in the next commit. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "year",
						"in": "path",
						"required": true,
						"schema": {"type": "integer", "minimum": 2026, "maximum": 9999, "description": "The year of the list"},
						"description": "The year of the list"
					},
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The account whose name is erased",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
						},
						"description": "The account whose name is erased"
					}
				]
			}
		},
		"/admin/operator-pass/releases/{year}/publish": {
			"post": {
				"operationId": "publish_admin_operator_pass_release",
				"summary": "Publish The Operators of list",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassReleaseFileResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Marks the The Operators of list for a year as published in a release, stamps a release event on every name in it and returns the OPERATORS file to commit. Works only after the cut-off. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "year",
						"in": "path",
						"required": true,
						"schema": {"type": "integer", "minimum": 2026, "maximum": 9999, "description": "The year of the list"},
						"description": "The year of the list"
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassReleasePublishRequest"}}
					}
				}
			}
		},
		"/admin/operator-pass/visionary/activations.csv": {
			"get": {
				"operationId": "get_admin_operator_pass_visionary_activations",
				"summary": "Download Visionary Operator Pass turn-ons",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"text/csv": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassVisionaryActivationsCsvResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns a CSV with one row for each account that turned on the Operator Pass that comes with Visionary, for the books: user_id, visionary_sequence, visionary_since, activated_at, terms_version, certificate_number, issued_at of the first certificate copy, ended_at and end_reason. Leaves out names, IP addresses and browser details. Creates audit log entry. Only available on hosted instances. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/operator-pass/wall/as-of": {
			"get": {
				"operationId": "get_admin_operator_pass_wall_as_of",
				"summary": "Render Operators' wall at a time",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallAsOfResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Rebuilds the wall as it was at a timestamp from the revisions, decisions and pass count history. A deleted holder shows as a neutral placeholder and never from deleted copies. Only available on hosted instances. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "at",
						"in": "query",
						"required": true,
						"schema": {
							"type": "string",
							"format": "date-time",
							"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
							"description": "The time to render the wall at"
						},
						"description": "The time to render the wall at"
					}
				]
			}
		},
		"/admin/operator-pass/wall/avatars/{sha256}": {
			"get": {
				"operationId": "get_admin_operator_pass_wall_avatar",
				"summary": "Get private Operators' wall avatar",
				"tags": ["Admin"],
				"responses": {
					"200": {"description": "Success"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns the private copy of a wall avatar snapshot, including ones the public wall no longer serves. Only available on hosted instances. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "sha256",
						"in": "path",
						"required": true,
						"schema": {"type": "string", "pattern": "^[0-9a-f]{64}$", "description": "SHA-256 of the avatar snapshot"},
						"description": "SHA-256 of the avatar snapshot"
					}
				]
			}
		},
		"/admin/operator-pass/wall/freeze": {
			"post": {
				"operationId": "freeze_admin_operator_pass_wall",
				"summary": "Freeze or unfreeze Operators' wall",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallStateResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Freezing stops publishing and keeps serving the current snapshot. Unfreezing publishes again with a resync. No manual reordering or resizing exists. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallFreezeRequest"}}
					}
				}
			}
		},
		"/admin/operator-pass/wall/republish": {
			"post": {
				"operationId": "republish_admin_operator_pass_wall",
				"summary": "Re-publish Operators' wall",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallStateResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Publishes a new wall version with a resync so every consumer fetches the full snapshot again. Does nothing while frozen. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/operator-pass/wall/state": {
			"get": {
				"operationId": "get_admin_operator_pass_wall_state",
				"summary": "Get Operators' wall publishing state",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallStateResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns the published wall version and whether publishing is frozen. Only available on hosted instances. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/payment-dispute-reviews": {
			"get": {
				"operationId": "list_admin_payment_dispute_reviews",
				"summary": "List payment dispute reviews",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminPaymentDisputeReviewListResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists the Operator Pass and Plutonium payment disputes, newest first. A review opens when the dispute opens, and the account that made the payment cannot buy anything while any of its disputes is open. Each review shows the grounds that rule out finding it unjustified, the date a warning would name, and the other closure decision a pending closure waits for. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/payment-dispute-reviews/{dispute_id}/decision": {
			"post": {
				"operationId": "decide_admin_payment_dispute_review",
				"summary": "Decide payment dispute review",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminPaymentDisputeReviewResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Records whether an open payment dispute is justified. Unjustified is refused when the terms rule it out, after the dispute closed, or when the warning date, 3 days before the evidence deadline, is less than 2 days away. Unjustified emails the account and sends it a system message naming that date: if the dispute is not withdrawn by then and ends with the money returned, an enforcement decision closes the account and sends the enforcement notice for Plutonium, and for the Operator Pass the bonus is removed permanently under section 8, which bars the account from buying or receiving a pass and emails the statement of reasons. The warning counts only once both went out. When the instance has direct messages turned off, no system message is sent and the email alone counts. Deciding unjustified again on a review whose warning is incomplete sends only what is missing, with the same date. A justified dispute never leads to action against the account. A decision is final, only an appeal reverses an unjustified one. Creates audit log entry. Requires USER_DELETE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "dispute_id",
						"in": "path",
						"required": true,
						"schema": {"type": "string", "minLength": 1, "maxLength": 128, "description": "Stripe dispute ID"},
						"description": "Stripe dispute ID"
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminPaymentDisputeDecisionRequest"}}
					}
				}
			}
		},
		"/admin/payment-dispute-reviews/{dispute_id}/reversal": {
			"post": {
				"operationId": "reverse_admin_payment_dispute_review",
				"summary": "Reverse payment dispute decision",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminPaymentDisputeReviewResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Reverses an unjustified finding when an appeal under section 6.2 of the terms shows the dispute was justified. The review becomes justified, a permanent Operator Pass bonus removal made for this dispute is lifted, and the enforcement decision that closed the account is reversed, which restores the account and sends the enforcement ended notice, unless the deletion already started or another unreversed unjustified dispute is linked to the same decision. Creates audit log entry. Requires USER_DELETE permission, and BAN_IP_REMOVE when the decision blocked networks.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "dispute_id",
						"in": "path",
						"required": true,
						"schema": {"type": "string", "minLength": 1, "maxLength": 128, "description": "Stripe dispute ID"},
						"description": "Stripe dispute ID"
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminPaymentDisputeReversalRequest"}}
					}
				}
			}
		},
		"/admin/report-reasons": {
			"get": {
				"operationId": "list_admin_report_reasons",
				"summary": "List report reasons",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminReportReasonsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists every reason key a report filed through a report flow can carry, with its English label, whether it is a highest-priority reason, and the legacy category it maps to for message, user and community reports. Requires REPORT_VIEW permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/reports": {
			"get": {
				"operationId": "list_admin_reports",
				"summary": "List reports",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminReportListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists user and content reports from the report search index with pagination. Without a status filter the list covers reports of every status. A free-text query and the entity, category, reason and resolver filters narrow the results. Every response includes the total, offset and limit of the page. Reporter contact details are redacted unless the caller also holds REPORT_VIEW_REPORTER_PII. Requires REPORT_VIEW permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "q",
						"in": "query",
						"required": false,
						"schema": {"description": "Free-text query matched against the searchable report fields", "type": "string"},
						"description": "Free-text query matched against the searchable report fields"
					},
					{
						"name": "status",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Only return reports with this status",
							"x-enumNames": ["pending", "resolved"],
							"x-enumDescriptions": [
								"Only reports that are waiting to be reviewed",
								"Only reports that have been resolved"
							],
							"enum": ["pending", "resolved"],
							"type": "string"
						},
						"description": "Only return reports with this status"
					},
					{
						"name": "report_type",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Only return reports about this kind of entity",
							"x-enumNames": ["message", "user", "guild"],
							"x-enumDescriptions": [
								"Only reports about a message",
								"Only reports about a user",
								"Only reports about a community"
							],
							"enum": ["message", "user", "guild"],
							"type": "string"
						},
						"description": "Only return reports about this kind of entity"
					},
					{
						"name": "category",
						"in": "query",
						"required": false,
						"schema": {"description": "Only return reports filed under this category", "type": "string"},
						"description": "Only return reports filed under this category"
					},
					{
						"name": "reason",
						"in": "query",
						"required": false,
						"schema": {"description": "Only return reports filed with this report reason key", "type": "string"},
						"description": "Only return reports filed with this report reason key"
					},
					{
						"name": "reporter_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Only return reports submitted by this user",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Only return reports submitted by this user"
					},
					{
						"name": "reported_user_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Only return reports about this user",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Only return reports about this user"
					},
					{
						"name": "reported_webhook_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Only return reports about messages sent by this webhook",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Only return reports about messages sent by this webhook"
					},
					{
						"name": "reported_guild_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Only return reports about this community",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Only return reports about this community"
					},
					{
						"name": "reported_channel_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Only return reports about content in this channel",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Only return reports about content in this channel"
					},
					{
						"name": "guild_context_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Only return reports filed from within this community",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Only return reports filed from within this community"
					},
					{
						"name": "resolved_by_admin_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Only return reports resolved by this admin",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Only return reports resolved by this admin"
					},
					{
						"name": "sort_by",
						"in": "query",
						"required": false,
						"schema": {
							"default": "reported_at",
							"description": "The field to sort the reports by",
							"x-enumNames": ["created_at", "reported_at", "resolved_at"],
							"x-enumDescriptions": [
								"Sort by the time the report was created",
								"Sort by the time the report was submitted",
								"Sort by the time the report was resolved"
							],
							"enum": ["created_at", "reported_at", "resolved_at"],
							"type": "string"
						},
						"description": "The field to sort the reports by"
					},
					{
						"name": "sort_order",
						"in": "query",
						"required": false,
						"schema": {
							"default": "desc",
							"description": "The direction to sort the reports in",
							"x-enumNames": ["asc", "desc"],
							"x-enumDescriptions": ["Ascending order (oldest first)", "Descending order (newest first)"],
							"enum": ["asc", "desc"],
							"type": "string"
						},
						"description": "The direction to sort the reports in"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Maximum number of reports to return (1-200, default 50)",
							"default": "50",
							"type": "string"
						},
						"description": "Maximum number of reports to return (1-200, default 50)"
					},
					{
						"name": "offset",
						"in": "query",
						"required": false,
						"schema": {"description": "Number of reports to skip", "default": "0", "type": "string"},
						"description": "Number of reports to skip"
					}
				]
			}
		},
		"/admin/reports/{report_id}": {
			"get": {
				"operationId": "get_admin_report",
				"summary": "Get report",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportAdminResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Retrieves detailed information about a specific report including content, reporter, reason, the message context and profile snapshot captured when it was filed, and its internal notes. Requires REPORT_VIEW permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "report_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the report",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the report"
					}
				]
			},
			"patch": {
				"operationId": "update_admin_report",
				"summary": "Update report",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ResolveReportResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Moves a report to the resolved status. resolution is required. actioned also needs the outcome for the reported item, and no_violation sets the outcome no_violation. duplicate needs duplicate_of and takes the outcome stored on that report. The reporter is told the outcome: an account reporter by system DM and email, a Digital Services Act notifier by email. The system DM is left out when the instance has direct messages turned off. A duplicate of a report with no outcome yet is resolved without telling the reporter. notify_reporter false leaves the public comment out of that notice. Nothing is sent when the reporter account is deleted, or barred from reporting when the report was filed. Creates an audit log entry. Requires REPORT_RESOLVE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "report_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the report",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the report"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateReportRequest"}}}
				}
			},
			"delete": {
				"operationId": "delete_admin_report",
				"summary": "Delete report",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Deletes a report now: its record with the captured message context and profile snapshot, its notes, its stored evidence copies, its search index entry, and the duplicate-report reservation it holds for the reporter. An evidence copy that another report also uses is kept. A report under a legal hold that has not ended is refused with REPORT_UNDER_LEGAL_HOLD. This cannot be undone. Creates an audit log entry. Requires REPORT_DELETE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "report_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the report",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the report"
					}
				]
			}
		},
		"/admin/reports/{report_id}/legal-hold": {
			"post": {
				"operationId": "set_admin_report_legal_hold",
				"summary": "Set report legal hold",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportLegalHoldResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Places or clears a legal hold on a report. A report is deleted together with its stored evidence when its retention period ends, unless a hold that ends later is in place, and a held report cannot be deleted through DELETE /admin/reports/{report_id} either. A hold needs an end time in the future and a reason. A null legal_hold_until clears the hold. Creates an audit log entry. Requires REPORT_RESOLVE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "report_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the report",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the report"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportLegalHoldRequest"}}}
				}
			}
		},
		"/admin/reports/{report_id}/notes": {
			"get": {
				"operationId": "list_admin_report_notes",
				"summary": "List report notes",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportNoteListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists the internal notes on a report, oldest first. Notes are staff only and are deleted with the report. Requires REPORT_VIEW permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "report_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the report",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the report"
					}
				]
			},
			"post": {
				"operationId": "annotate_admin_report",
				"summary": "Add a note to a report",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportNoteResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Appends an internal note to a report. Notes are staff only, never change and are deleted with the report. Creates audit log entry. Requires REPORT_RESOLVE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "report_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the report",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the report"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportNoteRequest"}}}
				}
			}
		},
		"/admin/search/index-refreshes/{job_id}": {
			"get": {
				"operationId": "get_admin_search_index_refresh",
				"summary": "Get search index refresh",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/IndexRefreshStatusResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Reads the progress of a queued search index refresh. Returns the completion counts and current phase, or a not_found status once the record has expired. Requires GUILD_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "job_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the index refresh to read", "type": "string"},
						"description": "ID of the index refresh to read"
					}
				]
			}
		},
		"/admin/search/indexes/{index_name}/refreshes": {
			"post": {
				"operationId": "create_admin_search_index_refresh",
				"summary": "Refresh a search index",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RefreshSearchIndexResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Trigger a full or partial rebuild of the named search index. Creates a background job and returns its refresh ID for status tracking. The channel_messages, guild_members and threads indexes are rebuilt one guild at a time and require guild_id, and all rebuilds every index, one at a time. Queueing all while one is running returns the running refresh ID. Requires GUILD_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "index_name",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The name of the search index",
							"x-enumNames": [
								"guilds",
								"users",
								"reports",
								"audit_logs",
								"channel_messages",
								"guild_members",
								"discovery",
								"threads",
								"all"
							],
							"x-enumDescriptions": [
								"Guild search index",
								"User search index",
								"Report search index",
								"Audit log search index",
								"Channel message search index",
								"Guild member search index",
								"Discovery guild search index",
								"Thread search index",
								"Every search index, with messages in every channel and DM"
							],
							"enum": [
								"guilds",
								"users",
								"reports",
								"audit_logs",
								"channel_messages",
								"guild_members",
								"discovery",
								"threads",
								"all"
							],
							"type": "string"
						},
						"description": "The name of the search index"
					}
				],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RefreshSearchIndexRequest"}}}
				}
			}
		},
		"/admin/sso-identities": {
			"get": {
				"operationId": "lookup_admin_sso_identity",
				"summary": "Look up an SSO identity",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminSsoIdentityLookupResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Find the user a single sign-on provider subject is bound to. Returns null when no account holds the subject. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "provider_id",
						"in": "query",
						"required": true,
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 2048,
							"description": "The provider ID, as returned in `provider_id`"
						},
						"description": "The provider ID, as returned in `provider_id`"
					},
					{
						"name": "subject",
						"in": "query",
						"required": true,
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 1024,
							"description": "The provider subject (`sub` claim), matched exactly"
						},
						"description": "The provider subject (`sub` claim), matched exactly"
					}
				]
			}
		},
		"/admin/sso-identities/migrate": {
			"post": {
				"operationId": "migrate_admin_sso_identities",
				"summary": "Move SSO subjects to the provider in use",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminSsoIdentityMigrateResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Move every subject bound under from_provider_id to the provider in use, keeping each on its account. Use it after the issuer changed while the provider still sends the same subjects, so people keep their accounts. A subject that another account already holds under the provider in use is left where it was and counted in skipped_count. Reads every subject of the old provider, so run it once after the change. Creates audit log entry. Requires INSTANCE_CONFIG_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminSsoIdentityMigrateRequest"}}}
				}
			}
		},
		"/admin/sso/sign-in": {
			"post": {
				"operationId": "exchange_admin_sso_token",
				"summary": "Exchange admin SSO ID token",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminSsoSignInResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Verifies an ID token from the admin sign-on provider and returns an admin panel access token for the Fluxer account in its fluxer_id claim. Only the admin panel calls it, with its OAuth2 client ID and secret as HTTP Basic auth. The account must already have admin:authenticate.",
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminSsoSignInRequest"}}}
				}
			}
		},
		"/admin/system-dms": {
			"post": {
				"operationId": "create_admin_system_dm",
				"summary": "Send a system direct message",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SendSystemDmResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Queue a worker job that delivers the same content to every listed user, or to every user when all_users is set, as a direct message from the system account. Progress is observable through the Jobs admin resource (task_type=sendSystemDm), and an in-flight broadcast is stopped by cancelling that job. Returns 400 DIRECT_MESSAGES_DISABLED when the instance has direct messages turned off, because nobody would see the message. Requires SYSTEM_DM_SEND permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SendSystemDmRequest"}}}
				}
			}
		},
		"/admin/users": {
			"get": {
				"operationId": "list_admin_users",
				"summary": "List users",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SearchUsersResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists and searches users. Exactly one selector is honoured, in this precedence order: user_id, resolve, email, last_active_ip, acl, then the indexed q search. The acl selector lists the users granted one admin permission, ordered by user ID. The resolve selector takes one exact identifier, which may be a username#discriminator tag, a user ID, an email address, or a Stripe subscription ID. The email and user_id selectors ignore limit and offset. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "q",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Restrict the results to the users matching this free-text query",
							"type": "string"
						},
						"description": "Restrict the results to the users matching this free-text query"
					},
					{
						"name": "user_id",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Restrict the results to these users. Repeat the parameter to pass more than one.",
							"anyOf": [
								{"$ref": "#/components/schemas/SnowflakeStringType"},
								{"maxItems": 100, "type": "array", "items": {"$ref": "#/components/schemas/SnowflakeStringType"}}
							]
						},
						"description": "Restrict the results to these users. Repeat the parameter to pass more than one."
					},
					{
						"name": "resolve",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Resolve one exact identifier: a username#discriminator tag, a user ID, an email address, or a Stripe subscription ID",
							"type": "string"
						},
						"description": "Resolve one exact identifier: a username#discriminator tag, a user ID, an email address, or a Stripe subscription ID"
					},
					{
						"name": "email",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Restrict the results to the user with this exact email address",
							"type": "string"
						},
						"description": "Restrict the results to the user with this exact email address"
					},
					{
						"name": "last_active_ip",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Restrict the results to the users whose last active IP address matches this one exactly",
							"type": "string"
						},
						"description": "Restrict the results to the users whose last active IP address matches this one exactly"
					},
					{
						"name": "acl",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Restrict the results to the users granted this admin permission, ordered by user ID. Pass * to list the admins with full access",
							"allOf": [{"$ref": "#/components/schemas/AdminAclType"}]
						},
						"description": "Restrict the results to the users granted this admin permission, ordered by user ID. Pass * to list the admins with full access"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {"description": "Maximum number of users to return", "default": "50", "type": "string"},
						"description": "Maximum number of users to return"
					},
					{
						"name": "offset",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Number of users to skip before returning results",
							"default": "0",
							"type": "string"
						},
						"description": "Number of users to skip before returning results"
					}
				]
			},
			"post": {
				"operationId": "create_admin_user",
				"summary": "Create user",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserCreateResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Create an account with no password and return a one-time password reset link for it. Hand the link to the new user, who opens it to choose a password. It works once and expires after an hour. On an instance where people sign in with email, an email address is required, and it is verified like a new registration when the instance sends email. Set admin to give the account full admin access. Creates audit log entries. Requires the * permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserCreateRequest"}}}
				}
			}
		},
		"/admin/users/@me": {
			"get": {
				"operationId": "get_current_admin_user",
				"summary": "Get current admin",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUsersMeResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Return the admin the request was authenticated as, with the admin permissions, roles, and metadata of the account, plus the number of pending registrations when the admin holds REGISTRATION_REVIEW. Requires AUTHENTICATE permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/users/{user_id}": {
			"get": {
				"operationId": "get_admin_user",
				"summary": "Get user",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/LookupUserResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Look up one detailed user profile by ID. Returns account status, permissions, and metadata. The email address, date of birth, and IP address are redacted without the matching view permissions. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/acls": {
			"put": {
				"operationId": "set_admin_user_acls",
				"summary": "Set user admin permissions",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Replace the admin ACL permissions granted to a user. Controls admin capabilities and panel access. The permissions accepted are the ones listed by GET /admin/acls. Creates audit log entry. Requires ACL_SET_USER permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserAclsRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/applications": {
			"get": {
				"operationId": "list_admin_user_applications",
				"summary": "List user applications",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListApplicationsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists the OAuth2 applications and bots a user owns. Requires APPLICATION_LIST_BY_OWNER permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/archives": {
			"post": {
				"operationId": "create_admin_user_archive",
				"summary": "Create user archive",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminArchiveResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Initiates a data export for a user. Creates an archive containing all the user's data (messages, server memberships, preferences, etc.) for export or compliance purposes.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminArchiveCreateRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/avatar-block": {
			"post": {
				"operationId": "ban_admin_user_avatar",
				"summary": "Ban this user's current avatar",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BanUserAvatarResponseSchema"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Reads the user's current avatar_hash, strips any animation prefix, and adds the 8-char hash to the avatar-hash blocklist. Returns the banned hash.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BanUserAvatarRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/badges": {
			"patch": {
				"operationId": "update_admin_user_badges",
				"summary": "Update user custom badges",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Replaces the custom badges assigned to a user. Every ID must be a user badge. A change that adds a badge fails with MAX_BADGES when the user would have more than the max_per_user badge setting allows. Creates audit log entry. Requires USER_UPDATE_BADGES permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateUserCustomBadgesRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/ban": {
			"put": {
				"operationId": "ban_admin_user",
				"summary": "Suspend user",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserRestrictionResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Suspend the account for duration_hours, or permanently with a duration of zero, and record the enforcement decision behind it. The decision is written first, then the suspension, then linked reports are resolved and the notice is sent. The X-Audit-Log-Reason header is required and becomes the first note. remove_evidence queues removal of the reported messages and the evidence you listed after they are snapshotted, and keeps the other messages from the reports. block_networks blocks addresses the account used in the last 30 days, for 90 days unless days says otherwise, and only with a permanent suspension. Exempt and special-purpose addresses, and addresses already blocked permanently or by another decision, are skipped and listed in skipped_ips. An address on which another account that is not suspended or closed was last active is refused with ENFORCEMENT_NETWORK_SHARED. Returns 409 when the account is closed. Requires USER_TEMP_BAN permission, plus MESSAGE_LOOKUP for evidence, REPORT_VIEW and REPORT_RESOLVE for reports, MESSAGE_SHRED for remove_evidence, and BAN_IP_ADD and USER_VIEW_IP for block_networks.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserBanRequest"}}}
				}
			},
			"delete": {
				"operationId": "unban_admin_user",
				"summary": "Lift a suspension without a decision",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lift a suspension that no enforcement decision owns, such as one from before decisions existed. Returns 409 with the decision ID when a decision owns the suspension, which is then ended through its end route. Emails the user that the restriction ended when the suspension was still in force. Creates audit log entry. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/billing-documents": {
			"get": {
				"operationId": "list_admin_user_billing_documents",
				"summary": "List the billing documents of a user",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BillingDocumentListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists the invoices, receipts, credit notes and refund notes Fluxer issued to a user, newest first. Creates audit log entry. Only available on hosted instances. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/bot-status": {
			"put": {
				"operationId": "set_admin_user_bot_status",
				"summary": "Set user bot status",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Mark or unmark a user account as a bot. Controls bot badge visibility and API permissions. Creates audit log entry. Requires USER_UPDATE_BOT_STATUS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserBotStatusRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/change-log": {
			"get": {
				"operationId": "list_admin_user_change_log",
				"summary": "List user contact change log",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/ListUserChangeLogResponseSchema"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Retrieve the identity and contact change log history for a user. Shows all profile modifications, admin actions, and account changes with timestamps. Email values are redacted without USER_VIEW_EMAIL. Requires USER_VIEW_CONTACT_LOG permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {"description": "Maximum number of entries to return", "default": "50", "type": "string"},
						"description": "Maximum number of entries to return"
					},
					{
						"name": "page_token",
						"in": "query",
						"required": false,
						"schema": {"description": "Pagination token for the next page of results", "type": "string"},
						"description": "Pagination token for the next page of results"
					}
				]
			}
		},
		"/admin/users/{user_id}/date-of-birth": {
			"patch": {
				"operationId": "update_admin_user_date_of_birth",
				"summary": "Change user date of birth",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Update user date of birth. May affect age-restricted content access. Creates audit log entry. Requires USER_UPDATE_DOB permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserDobUpdateRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/deletion": {
			"put": {
				"operationId": "schedule_admin_user_deletion",
				"summary": "Schedule user deletion",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserRestrictionResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Close the account and schedule its deletion. The basis says why. A broken rule records an enforcement decision kind closure, keeps the account for at least 74 days so an appeal can be reviewed first (14 days on a self-hosted instance, which has no appeals), sends the notice and, when the rule bars new accounts, bans the account email. The X-Audit-Log-Reason header is then required and becomes the first note. A holder request or housekeeping keeps the account for at least 14 days, sends a neutral email, and is cancelled when the holder signs in. Those two return 409 while an enforcement decision owns the account state. When a deletion is already scheduled, the request must name it in replace_pending_deletion_at or it returns 409. block_networks works as on the suspend route and is refused for the other bases. Executing the deletion removes the blocks. Creates audit log entry. Requires USER_DELETE permission, plus MESSAGE_LOOKUP for evidence, REPORT_VIEW and REPORT_RESOLVE for reports, MESSAGE_SHRED for remove_evidence, and BAN_IP_ADD and USER_VIEW_IP for block_networks.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserDeletionScheduleRequest"}}}
				}
			},
			"delete": {
				"operationId": "cancel_admin_user_deletion",
				"summary": "Cancel user deletion",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Cancel a scheduled deletion that no enforcement decision owns, named by expected_pending_deletion_at, such as one the holder asked for, an inactivity deletion or a closure from before decisions existed. Returns 409 with the decision ID when a decision owns the deletion, which is then ended through its end route, 409 when a different deletion is pending and 400 when none is. Emails the user that the deletion was cancelled, or that the restriction ended for a closure from before decisions existed. Creates audit log entry recording the cancelled deletion. Requires USER_DELETE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserDeletionCancelRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/dm-channels": {
			"get": {
				"operationId": "list_admin_user_dm_channels",
				"summary": "List user direct message channels",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserDmChannelListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "List the historical one-to-one direct message channels of a user with cursor pagination, or the group direct message channels they are a recipient of when type is group_dm. Requires USER_LIST_DM_CHANNELS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					},
					{
						"name": "type",
						"in": "query",
						"required": false,
						"schema": {
							"default": "dm",
							"description": "The kind of direct message channel to list. Defaults to the one-to-one direct message channels.",
							"allOf": [{"$ref": "#/components/schemas/AdminUserDmChannelType"}]
						},
						"description": "The kind of direct message channel to list. Defaults to the one-to-one direct message channels."
					},
					{
						"name": "before",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Return channels with IDs lower than this channel ID",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Return channels with IDs lower than this channel ID"
					},
					{
						"name": "after",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Return channels with IDs higher than this channel ID",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Return channels with IDs higher than this channel ID"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {"description": "Maximum number of DM channels to return", "default": "50", "type": "string"},
						"description": "Maximum number of DM channels to return"
					}
				]
			}
		},
		"/admin/users/{user_id}/email": {
			"patch": {
				"operationId": "update_admin_user_email",
				"summary": "Change user email",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Change user email address. New email must be valid and unique. Marks email as verified. Creates audit log entry. Requires USER_UPDATE_EMAIL permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserEmailUpdateRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/email-verification": {
			"put": {
				"operationId": "verify_admin_user_email",
				"summary": "Verify user email",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Manually verify user email address without requiring confirmation link. Bypasses email verification requirement. Creates audit log entry. Requires USER_UPDATE_EMAIL permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/feature-limits": {
			"put": {
				"operationId": "limit_admin_user_features",
				"summary": "Limit user features",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Record an enforcement decision that limits one feature and send its notice by email and system DM, leaving out the system DM when the instance has direct messages turned off. Direct messages set SPAMMER and are allowed for spam, automation, fraud and malware reasons only. Reports set REPORT_BANNED until ends_at, 90 days by default and at most 365, and expire on their own. Purchases set PURCHASE_DISABLED for payment reasons. The X-Audit-Log-Reason header is required and becomes the first note. Requires USER_UPDATE_FLAGS permission, plus MESSAGE_LOOKUP for evidence and REPORT_VIEW and REPORT_RESOLVE for reports.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserFeatureLimitRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/flags": {
			"patch": {
				"operationId": "update_admin_user_flags",
				"summary": "Update user flags",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Add or remove user flags. Flags that record a restriction go through their own routes: adding DISABLED, DELETED, SPAMMER or REPORT_BANNED and removing DELETED return 400, removing DISABLED while a suspension is set returns 400, and removing SPAMMER or REPORT_BANNED while an enforcement decision holds it returns 409 with the decision ID. A self-disabled account can still have DISABLED removed. Creates audit log entry. Requires USER_UPDATE_FLAGS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserFlagsUpdateRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/guilds": {
			"get": {
				"operationId": "list_admin_user_guilds",
				"summary": "List user communities",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListUserGuildsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "List all guilds a user is a member of, optionally with approximate member and presence counts. Shows roles and join dates. Requires USER_LIST_GUILDS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					},
					{
						"name": "before",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Return guilds with IDs lower than this guild ID",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Return guilds with IDs lower than this guild ID"
					},
					{
						"name": "after",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Return guilds with IDs higher than this guild ID",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "Return guilds with IDs higher than this guild ID"
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"schema": {"description": "Maximum number of guilds to return", "default": "200", "type": "string"},
						"description": "Maximum number of guilds to return"
					},
					{
						"name": "with_counts",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Whether to resolve live member and presence counts from the gateway",
							"default": "false",
							"type": "string"
						},
						"description": "Whether to resolve live member and presence counts from the gateway"
					}
				]
			}
		},
		"/admin/users/{user_id}/message-deletion": {
			"delete": {
				"operationId": "cancel_admin_user_message_deletion",
				"summary": "Cancel bulk message deletion",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Cancel a scheduled bulk message deletion job for a user. Prevents deletion of user messages across guilds. Creates audit log entry. Requires USER_CANCEL_BULK_MESSAGE_DELETION permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/message-shreds": {
			"post": {
				"operationId": "shred_admin_user_messages",
				"summary": "Shred user messages",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageShredResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Queues bulk shredding of the given messages of a user, with attachment deletion. Only messages the user sent in the named channel are removed. With preview_token from the preview route, exactly the previewed messages are removed, and the request is refused with MESSAGE_SHRED_PREVIEW_CHANGED when they changed since. Returns a job ID to track progress asynchronously. With an enforcement basis the first 50 entries are snapshotted as the evidence of a content removal decision before the job is queued, every entry for child safety and violent extremism reasons, and the user is sent its notice. Requires MESSAGE_SHRED permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserMessageShredRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/message-shreds/preview": {
			"post": {
				"operationId": "preview_admin_user_message_shred",
				"summary": "Preview a message shred",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageShredPreviewResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists exactly the messages a shred of these entries removes: entries the user sent in that channel. Entries that are missing, sent by someone else or listed twice are returned in skipped and are never removed. Pass preview_token with the shred to remove exactly these messages. Nothing is removed and no decision is recorded. Requires MESSAGE_SHRED permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserMessageShredPreviewRequest"}}
					}
				}
			}
		},
		"/admin/users/{user_id}/messages": {
			"delete": {
				"operationId": "delete_admin_user_messages",
				"summary": "Delete all user messages",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DeleteAllUserMessagesResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Deletes all messages from a specific user across all channels. Pass dry_run=false to delete, with a basis in the body. The default counts without deleting and records nothing. An enforcement basis records a content removal decision and sends its notice, and is refused for child safety and violent extremism reasons, which must shred explicit entries instead. Requires MESSAGE_DELETE_ALL permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					},
					{
						"name": "dry_run",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Count the messages that would be deleted without deleting anything (default true)",
							"default": "true",
							"type": "string"
						},
						"description": "Count the messages that would be deleted without deleting anything (default true)"
					}
				],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserMessageDeleteRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/mfa": {
			"delete": {
				"operationId": "disable_admin_user_mfa",
				"summary": "Disable user MFA",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Disable two-factor authentication for user account. Removes all authenticators. Creates audit log entry. Requires USER_UPDATE_MFA permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/network-block-candidates": {
			"get": {
				"operationId": "list_admin_user_network_block_candidates",
				"summary": "List networks a suspension or closure can block",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/NetworkBlockCandidatesResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists the addresses the account used in the last 30 days, most recent first, with how many other accounts that are not suspended or closed were last active on each. These are the addresses block_networks accepts on the suspend and close routes. Requires USER_VIEW_IP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/operator-pass": {
			"get": {
				"operationId": "get_admin_user_operator_pass",
				"summary": "Get user Operator Pass",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassUserResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns the Operator Pass of a user with any section 8 removal and the removal history, and the purchases the user paid for. The consent IP address and browser details are null unless the admin also has USER_VIEW_IP. Only available on hosted instances. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/operator-pass/removal": {
			"post": {
				"operationId": "remove_admin_operator_pass_perks",
				"summary": "Remove the Operator Pass bonus",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassRemovalResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Removes the bonus that comes with the Operator Pass of a user under section 8 of the Operator Pass terms, for a number of days or permanently, and emails the statement of reasons with the appeal route. A limited removal ends on its own. A permanent removal for a breach that is not serious needs an earlier limited removal and a removal notice sent after it and at least 7 days earlier. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassRemovalRequest"}}}
				}
			},
			"delete": {
				"operationId": "restore_admin_operator_pass_perks",
				"summary": "Restore the Operator Pass bonus",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Ends a removal or a pending notice, for example after an appeal under section 6.2 of the terms of service. The bonus comes back with the original date on the badge. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/operator-pass/removal-notice": {
			"post": {
				"operationId": "send_admin_operator_pass_removal_notice",
				"summary": "Send Operator Pass removal notice",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassRemovalResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Emails the holder that the pass will be removed permanently under section 8 of the Operator Pass terms, with the rule, the facts and 7 days to reply. A permanent removal for a breach that is not serious needs this notice first. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassNoticeRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/operator-pass/wall/business": {
			"put": {
				"operationId": "set_admin_operator_pass_wall_business_listing",
				"summary": "Set Operators' wall business listing",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallEntryResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists a business on the wall with its company name and logo under section 3.2 of the Operator Pass terms, or replaces its logo. The account must hold a pass and have a purchase with a tax ID, verified when it is an EU VAT number from outside Sweden, paid at least 7 days ago with no refund, open dispute or fraud warning. The logo must be a square PNG, JPEG or WebP image of at least 256 pixels, under 2 MB and not animated. The listing goes live at once, does not follow profile changes, and shows at one fixed size after the listings of people. A settings change, a revert or a forced fallback takes it back to a personal listing, and so does a refund, dispute or withdrawal that leaves no qualifying purchase, a section 8 removal, or losing the last pass. Records a decision. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallBusinessRequest"}}
					}
				}
			}
		},
		"/admin/users/{user_id}/operator-pass/wall/clear-quote": {
			"post": {
				"operationId": "clear_admin_operator_pass_wall_quote",
				"summary": "Clear Operators' wall quote",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallEntryResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Deletes the quote on a listing because of its content. The rest of the listing stays as it is, and the holder can set a new quote. Fails when the listing has no quote or a quote other than the one staff reviewed. Fluxer emails a statement of reasons. Records a decision. Creates audit log entry with the reason, the facts and the cleared quote. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallClearQuoteRequest"}}
					}
				}
			}
		},
		"/admin/users/{user_id}/operator-pass/wall/force-fallback": {
			"post": {
				"operationId": "force_admin_operator_pass_wall_fallback",
				"summary": "Force Operators' wall fallback",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallEntryResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Takes the live name and avatar off the wall because of their content and shows the fallback: the word Operator with the default avatar. A business listing instead goes back to the last personal name and avatar when there is one. The listing keeps its tier, place and badge. Fluxer emails a statement of reasons. Records a decision. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallDecisionRequest"}}
					}
				}
			}
		},
		"/admin/users/{user_id}/operator-pass/wall/hide": {
			"post": {
				"operationId": "hide_admin_operator_pass_wall_entry",
				"summary": "Hide or show Operators' wall listing",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallEntryResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Hides a listing from the wall under section 3.1 of the Operator Pass terms while a report or possible breach is looked into, or shows it again. Hiding needs a reason and the facts, sends a statement of reasons, stops serving the avatar and purges it from the CDN. Removal from the wall for good is a section 8 removal. Records a decision. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallHideRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/operator-pass/wall/legal-hold": {
			"post": {
				"operationId": "set_admin_operator_pass_wall_legal_hold",
				"summary": "Set Operators' wall legal hold",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallEntryResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Keeps the name and avatar copies of a holder past the retention periods while an appeal or a legal hold is open, or releases them again. An open payment dispute holds them on its own. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallLegalHoldRequest"}}
					}
				}
			}
		},
		"/admin/users/{user_id}/operator-pass/wall/revisions/{revision_id}/revert": {
			"post": {
				"operationId": "revert_admin_operator_pass_wall_revision",
				"summary": "Revert Operators' wall to revision",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallEntryResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Puts an earlier revision back on the wall. A business revision cannot be put back this way, so the purchase is checked again whenever a business listing returns. Records a decision. Creates audit log entry. Only available on hosted instances. Requires USER_TEMP_BAN permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"$ref": "#/components/schemas/SnowflakeStringType"}
					},
					{
						"name": "revision_id",
						"in": "path",
						"required": true,
						"schema": {"$ref": "#/components/schemas/SnowflakeStringType"}
					}
				]
			}
		},
		"/admin/users/{user_id}/operator-pass/wall/timeline": {
			"get": {
				"operationId": "get_admin_operator_pass_wall_timeline",
				"summary": "Get Operators' wall timeline",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminOperatorPassWallTimelineResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Returns every wall revision of a holder with its status, every decision and the wall history, including pass count changes. Only available on hosted instances. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/password-reset": {
			"post": {
				"operationId": "send_admin_user_password_reset",
				"summary": "Send user password reset",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Send password reset email to user with reset link. User must use link within expiry window. Creates audit log entry. Requires USER_UPDATE_EMAIL permission. Fails with EMAIL_DELIVERY_OFF while the instance does not send email.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/password-reset-link": {
			"post": {
				"operationId": "create_admin_user_password_reset_link",
				"summary": "Create user password reset link",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminPasswordResetLinkResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Create a one-time password reset link on an instance where people sign in with a username, or on an email instance that does not send email. Hand the link to the user yourself. It works once and expires after an hour. Deletes the recovery kit of the account. Creates audit log entry. Requires USER_CREATE_PASSWORD_RESET_LINK permission and every ACL the target account holds. Fails with USERNAME_SIGN_IN_ONLY on an email instance that sends email, where people reset their password themselves.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/premium": {
			"delete": {
				"operationId": "remove_admin_user_premium",
				"summary": "Remove user premium",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "End the premium of an account right away, the same way premium ends when it expires. The premium fields are cleared, ENABLED_OVERRIDE is removed, the guild profile perks of the account are sanitized and PERKS_SANITIZED is set. Returns 400 with a message that says what to do instead when the account has a Stripe subscription, an App Store or Google Play subscription, Visionary lifetime premium on the hosted instance, or no premium, when it is a bot, and when the premium mode is everyone. The X-Audit-Log-Reason header is required. Creates audit log entry. Requires USER_UPDATE_FLAGS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/premium-flags": {
			"patch": {
				"operationId": "update_admin_user_premium_flags",
				"summary": "Update user premium flags",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Add or remove premium-related flags on a user account (badge visibility, override, purchase block, etc). Adding PURCHASE_DISABLED returns 400, because a purchase limit is recorded through the feature limits route, and removing it while an enforcement decision holds it returns 409 with the decision ID. Creates audit log entry. Requires USER_UPDATE_FLAGS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserPremiumFlagsUpdateRequest"}}
					}
				}
			}
		},
		"/admin/users/{user_id}/profile-fields": {
			"delete": {
				"operationId": "clear_admin_user_profile_fields",
				"summary": "Clear user profile fields",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Clears profile fields such as the bio, avatar or display name. An enforcement basis saves the old values as evidence, records a profile reset decision and sends its notice by system DM and email, leaving out the system DM when the instance has direct messages turned off. Creates audit log entry. Requires USER_UPDATE_PROFILE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserClearFieldsRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/recovery-kit": {
			"delete": {
				"operationId": "revoke_admin_user_recovery_kit",
				"summary": "Revoke user recovery kit",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Deletes the recovery kit of an account on an instance where people sign in with a username, so its key stops working. Creates audit log entry. Requires USER_DELETE_RECOVERY_KIT permission and every ACL the target account holds. Fails with USERNAME_SIGN_IN_ONLY on email instances.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/relationships": {
			"get": {
				"operationId": "list_admin_user_relationships",
				"summary": "List user relationships",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListUserRelationshipsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "List a user's friends, incoming and outgoing friend requests, and blocked users. Requires USER_LIST_RELATIONSHIPS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			},
			"delete": {
				"operationId": "clear_admin_user_relationships",
				"summary": "Clear user relationships",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/RemoveUserRelationshipsResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Bulk-remove every relationship of the chosen category (friend, incoming_request, outgoing_request, blocked) for a user. Mirror entries on the other party are removed for friend, incoming_request, and outgoing_request. Requires USER_REMOVE_RELATIONSHIP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					},
					{
						"name": "category",
						"in": "query",
						"required": true,
						"schema": {
							"description": "Category of relationships the operation applies to",
							"allOf": [{"$ref": "#/components/schemas/RelationshipCategoryEnum"}]
						},
						"description": "Category of relationships the operation applies to"
					}
				]
			}
		},
		"/admin/users/{user_id}/relationships/{target_user_id}": {
			"delete": {
				"operationId": "remove_admin_user_relationship",
				"summary": "Remove user relationship",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Remove a single relationship row for a user. For friend and outgoing_request, the mirror entry on the other user is also removed. Dispatches RELATIONSHIP_REMOVE gateway events. Requires USER_REMOVE_RELATIONSHIP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					},
					{
						"name": "target_user_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "The ID of the target user",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "The ID of the target user"
					},
					{
						"name": "category",
						"in": "query",
						"required": true,
						"schema": {
							"description": "Category of relationships the operation applies to",
							"allOf": [{"$ref": "#/components/schemas/RelationshipCategoryEnum"}]
						},
						"description": "Category of relationships the operation applies to"
					}
				]
			}
		},
		"/admin/users/{user_id}/sessions": {
			"get": {
				"operationId": "list_admin_user_sessions",
				"summary": "List user sessions",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListUserSessionsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "List all active user sessions across devices. Shows device info, IP, last activity, and creation time. Requires USER_LIST_SESSIONS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			},
			"delete": {
				"operationId": "terminate_admin_user_sessions",
				"summary": "Terminate user sessions",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/TerminateSessionsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Terminate all active user sessions across devices. Forces user to re-authenticate on next connection. Creates audit log entry. Requires USER_UPDATE_FLAGS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/sign-in-link": {
			"post": {
				"operationId": "create_admin_user_sign_in_link",
				"summary": "Create admin sign-in link",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminSignInLinkResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Create a one-time sign-in link for an account that holds `*`. Opening the link signs that account in and authorizes the IP address of the browser, without a password or an email. It works once and expires after 15 minutes. Only served on the operator socket. Creates audit log entry, and using the link creates another.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/sso-identities": {
			"get": {
				"operationId": "list_admin_user_sso_identities",
				"summary": "List user SSO identities",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserSsoIdentityListResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "List the single sign-on provider subjects bound to a user, with the provider each belongs to and when it was bound. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			},
			"put": {
				"operationId": "link_admin_user_sso_identity",
				"summary": "Bind an SSO subject to a user",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserSsoIdentityListResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Bind a provider subject under the provider in use to the account, replacing every subject bound to it before. Use it when the provider started sending another subject for the same person. Refused with SSO_IDENTITY_LINKED_TO_ANOTHER_ACCOUNT when another account that is not deleted holds the subject. Creates audit log entry. Requires USER_UPDATE_EMAIL permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminSsoIdentityLinkRequest"}}}
				}
			},
			"delete": {
				"operationId": "unlink_admin_user_sso_identities",
				"summary": "Unbind the SSO subjects of a user",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserSsoIdentityListResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Release every provider subject bound to the account and sign it out on every device. On an instance that stores email addresses, the next single sign-on with the same verified email binds the account again. A released subject of a deleted account can sign in to a new account. Creates audit log entry. Requires USER_UPDATE_EMAIL permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/store-purchases": {
			"get": {
				"operationId": "list_admin_user_store_purchases",
				"summary": "List user store purchases",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminStorePurchaseListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists the App Store and Google Play purchases bound to a user, newest first, with their store state. Only available on hosted instances. Requires USER_LOOKUP permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/store-purchases/refresh": {
			"post": {
				"operationId": "refresh_admin_user_store_purchases",
				"summary": "Refresh user store purchases",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminStorePurchaseListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Reads every store purchase bound to a user again from the App Store or Google Play, applies the result to the account and returns the updated purchases. Creates audit log entry. Only available on hosted instances. Requires USER_UPDATE_FLAGS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/system-status": {
			"put": {
				"operationId": "set_admin_user_system_status",
				"summary": "Set user system status",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Mark or unmark a user as a system account. System accounts have special permissions for automated operations. Creates audit log entry. Requires USER_UPDATE_BOT_STATUS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserSystemStatusRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/traits": {
			"put": {
				"operationId": "set_admin_user_traits",
				"summary": "Set user traits",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Set or update user trait attributes and profile metadata. Traits customize user display and features. Trait names are stored in lowercase, and limit rules match them without regard to case. Creates audit log entry. Requires USER_UPDATE_TRAITS permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserTraitsRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/username": {
			"patch": {
				"operationId": "update_admin_user_username",
				"summary": "Change user username",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserMutationResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Change user username. New username must meet requirements and be unique. Creates audit log entry. Requires USER_UPDATE_USERNAME permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserUsernameUpdateRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/verification-email": {
			"post": {
				"operationId": "resend_admin_user_verification_email",
				"summary": "Resend user verification email",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Resend the account verification email for a user. Creates audit log entry and honours email verification resend limits. Requires USER_UPDATE_EMAIL permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/warnings": {
			"post": {
				"operationId": "warn_admin_user",
				"summary": "Warn user",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserWarningResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Record a warning decision and send its notice by email and system DM, leaving out the system DM when the instance has direct messages turned off. Nothing about the account changes. The X-Audit-Log-Reason header is required and becomes the first note. Refused for reasons that only allow a suspension or content removal. Requires USER_UPDATE_FLAGS permission, plus MESSAGE_LOOKUP for evidence and REPORT_VIEW and REPORT_RESOLVE for reports.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdminUserWarningRequest"}}}
				}
			}
		},
		"/admin/users/{user_id}/webauthn-credentials": {
			"get": {
				"operationId": "list_admin_user_webauthn_credentials",
				"summary": "List user WebAuthn credentials",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebAuthnCredentialListResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "List all WebAuthn credentials (passkeys/security keys) registered for a user. Returns credential names, creation dates, and last usage. Creates audit log entry. Requires USER_UPDATE_MFA permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					}
				]
			}
		},
		"/admin/users/{user_id}/webauthn-credentials/{credential_id}": {
			"delete": {
				"operationId": "delete_admin_user_webauthn_credential",
				"summary": "Delete user WebAuthn credential",
				"tags": ["Admin"],
				"responses": {
					"204": {"description": "No Content"},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Delete a specific WebAuthn credential (passkey/security key) from a user account. Creates audit log entry. Requires USER_UPDATE_MFA permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "user_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the user", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},
						"description": "The ID of the user"
					},
					{
						"name": "credential_id",
						"in": "path",
						"required": true,
						"schema": {"description": "The ID of the WebAuthn credential", "type": "string"},
						"description": "The ID of the WebAuthn credential"
					}
				]
			}
		},
		"/admin/voice/join-tokens": {
			"post": {
				"operationId": "create_admin_voice_join_token",
				"summary": "Create a voice join token",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateVoiceJoinTokenResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Creates a single use token that lets one machine register one voice server. The token appears in this response only. Creates audit log entry. Requires VOICE_JOIN_TOKEN_CREATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateVoiceJoinTokenRequest"}}}
				}
			},
			"get": {
				"operationId": "list_admin_voice_join_tokens",
				"summary": "List voice join tokens",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListVoiceJoinTokensResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists voice join tokens from the last 7 days with their status, without the token values. Requires VOICE_JOIN_TOKEN_LIST permission.",
				"security": [{"adminApiKey": []}]
			}
		},
		"/admin/voice/join-tokens/{token_id}": {
			"delete": {
				"operationId": "revoke_admin_voice_join_token",
				"summary": "Revoke a voice join token",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DeleteVoiceResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Stops a pending voice join token from working. Creates audit log entry. Requires VOICE_JOIN_TOKEN_REVOKE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "token_id",
						"in": "path",
						"required": true,
						"schema": {
							"description": "ID of the join token",
							"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
						},
						"description": "ID of the join token"
					}
				]
			}
		},
		"/admin/voice/regions": {
			"get": {
				"operationId": "list_admin_voice_regions",
				"summary": "List voice regions",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListVoiceRegionsResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists all configured voice server regions with status and server count. Shows region names, latency info, and availability. Requires VOICE_REGION_LIST permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "include_servers",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Whether to include voice servers in the response",
							"default": "false",
							"type": "string"
						},
						"description": "Whether to include voice servers in the response"
					}
				]
			},
			"post": {
				"operationId": "create_admin_voice_region",
				"summary": "Create voice region",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateVoiceRegionResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Creates a new voice server region. Defines geographic location and performance characteristics for voice routing. Creates audit log entry. Requires VOICE_REGION_CREATE permission.",
				"security": [{"adminApiKey": []}],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateVoiceRegionRequest"}}}
				}
			}
		},
		"/admin/voice/regions/{region_id}": {
			"get": {
				"operationId": "get_admin_voice_region",
				"summary": "Get voice region",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetVoiceRegionResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Gets detailed information about a voice region including assigned servers, capacity, and server details. Requires VOICE_REGION_LIST permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "region_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the voice region", "type": "string"},
						"description": "ID of the voice region"
					},
					{
						"name": "include_servers",
						"in": "query",
						"required": false,
						"schema": {
							"description": "Whether to include voice servers in the response",
							"default": "false",
							"type": "string"
						},
						"description": "Whether to include voice servers in the response"
					}
				]
			},
			"patch": {
				"operationId": "update_admin_voice_region",
				"summary": "Update voice region",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateVoiceRegionResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Updates voice region settings such as latency thresholds or priority. Changes affect voice routing for new sessions. Creates audit log entry. Requires VOICE_REGION_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "region_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the voice region", "type": "string"},
						"description": "ID of the voice region"
					}
				],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateVoiceRegionRequestBody"}}}
				}
			},
			"delete": {
				"operationId": "delete_admin_voice_region",
				"summary": "Delete voice region",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DeleteVoiceResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Deletes a voice region. Removes region from routing and reassigns active connections. Creates audit log entry. Requires VOICE_REGION_DELETE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "region_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the voice region", "type": "string"},
						"description": "ID of the voice region"
					}
				]
			}
		},
		"/admin/voice/regions/{region_id}/servers": {
			"get": {
				"operationId": "list_admin_voice_servers",
				"summary": "List voice servers",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ListVoiceServersResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Lists all voice servers in a region with connection counts and capacity. Shows server status, region assignment, and load information. Requires VOICE_SERVER_LIST permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "region_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the voice region", "type": "string"},
						"description": "ID of the voice region"
					}
				]
			},
			"post": {
				"operationId": "create_admin_voice_server",
				"summary": "Create voice server",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateVoiceServerResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Creates and provisions a new voice server instance in a region. Configures capacity, codecs, and encryption. Creates audit log entry. Requires VOICE_SERVER_CREATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "region_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the voice region", "type": "string"},
						"description": "ID of the voice region"
					}
				],
				"requestBody": {
					"required": true,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateVoiceServerRequestBody"}}}
				}
			}
		},
		"/admin/voice/regions/{region_id}/servers/{server_id}": {
			"get": {
				"operationId": "get_admin_voice_server",
				"summary": "Get voice server",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetVoiceServerResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Gets detailed voice server information including active connections and configuration. Requires VOICE_SERVER_LIST permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "region_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the region the server belongs to", "type": "string"},
						"description": "ID of the region the server belongs to"
					},
					{
						"name": "server_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the voice server", "type": "string"},
						"description": "ID of the voice server"
					}
				]
			},
			"patch": {
				"operationId": "update_admin_voice_server",
				"summary": "Update voice server",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateVoiceServerResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Updates voice server configuration including capacity, region assignment, and quality settings. Changes apply to new connections. Creates audit log entry. Requires VOICE_SERVER_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "region_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the region the server belongs to", "type": "string"},
						"description": "ID of the region the server belongs to"
					},
					{
						"name": "server_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the voice server", "type": "string"},
						"description": "ID of the voice server"
					}
				],
				"requestBody": {
					"required": false,
					"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateVoiceServerRequestBody"}}}
				}
			},
			"delete": {
				"operationId": "delete_admin_voice_server",
				"summary": "Delete voice server",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DeleteVoiceResponse"}}}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Decommissions and removes a voice server instance. Disconnects active sessions and migrates to other servers. Creates audit log entry. Requires VOICE_SERVER_DELETE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "region_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the region the server belongs to", "type": "string"},
						"description": "ID of the region the server belongs to"
					},
					{
						"name": "server_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the voice server", "type": "string"},
						"description": "ID of the voice server"
					}
				]
			}
		},
		"/admin/voice/regions/{region_id}/servers/{server_id}/test-token": {
			"post": {
				"operationId": "create_admin_voice_server_test_token",
				"summary": "Create a voice server test token",
				"tags": ["Admin"],
				"responses": {
					"200": {
						"description": "Success",
						"content": {
							"application/json": {"schema": {"$ref": "#/components/schemas/CreateVoiceServerTestTokenResponse"}}
						}
					},
					"400": {
						"description": "Bad Request - The request was malformed or contained invalid data",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"401": {
						"description": "Unauthorized - Authentication is required or the token is invalid",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"403": {
						"description": "Forbidden - You do not have permission to perform this action",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					},
					"429": {
						"description": "Too Many Requests - You are being rate limited",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},
						"headers": {
							"Retry-After": {
								"description": "Number of seconds to wait before retrying (only on 429)",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Limit": {
								"description": "The number of requests that can be made in the current window",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Remaining": {
								"description": "The number of remaining requests that can be made",
								"schema": {"type": "integer"}
							},
							"X-RateLimit-Reset": {
								"description": "Unix timestamp when the rate limit resets",
								"schema": {"type": "integer"}
							}
						}
					},
					"500": {
						"description": "Internal Server Error - An unexpected error occurred",
						"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
					}
				},
				"description": "Signs a 60 second LiveKit token for a hidden, audio only participant in a throwaway room on one server, for a connection test from outside its network. Fluxer ignores webhooks for these rooms. Creates audit log entry. Requires VOICE_SERVER_UPDATE permission.",
				"security": [{"adminApiKey": []}],
				"parameters": [
					{
						"name": "region_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the region the server belongs to", "type": "string"},
						"description": "ID of the region the server belongs to"
					},
					{
						"name": "server_id",
						"in": "path",
						"required": true,
						"schema": {"description": "ID of the voice server", "type": "string"},
						"description": "ID of the voice server"
					}
				]
			}
		}
	},
	"components": {
		"schemas": {
			"Error": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "Machine-readable error code. Known values are listed in the APIErrorCode schema"
					},
					"message": {"type": "string", "description": "Human-readable error message"},
					"errors": {
						"description": "Field-specific validation errors",
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"path": {"type": "string", "description": "Field path that failed validation"},
								"code": {"description": "Machine-readable validation error code", "type": "string"},
								"message": {"type": "string", "description": "Human-readable validation error message"}
							},
							"required": ["path", "message"],
							"additionalProperties": false
						}
					}
				},
				"required": ["code", "message"],
				"additionalProperties": {}
			},
			"ThrottledError": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "Machine-readable error code. Known values are listed in the APIErrorCode schema"
					},
					"message": {"type": "string", "description": "Human-readable error message"},
					"errors": {
						"description": "Field-specific validation errors",
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"path": {"type": "string", "description": "Field path that failed validation"},
								"code": {"description": "Machine-readable validation error code", "type": "string"},
								"message": {"type": "string", "description": "Human-readable validation error message"}
							},
							"required": ["path", "message"],
							"additionalProperties": false
						}
					},
					"retry_after": {"type": "number", "description": "Seconds to wait before retrying"},
					"global": {"type": "boolean", "description": "Whether this is a global rate limit"}
				},
				"required": ["code", "message"],
				"additionalProperties": {}
			},
			"CreateVoiceServerTestTokenResponse": {
				"type": "object",
				"properties": {
					"token": {
						"type": "string",
						"description": "LiveKit token for a hidden audio only participant, valid for 60 seconds"
					},
					"endpoint": {"type": "string", "description": "Endpoint of the server"},
					"room": {"type": "string", "description": "Name of the throwaway test room"}
				},
				"required": ["token", "endpoint", "room"],
				"additionalProperties": false
			},
			"DeleteVoiceResponse": {
				"type": "object",
				"properties": {"success": {"type": "boolean", "description": "Whether the deletion was successful"}},
				"required": ["success"],
				"additionalProperties": false
			},
			"UpdateVoiceServerRequestBody": {
				"type": "object",
				"properties": {
					"endpoint": {
						"description": "Client signal WebSocket endpoint URL for the voice server",
						"type": "string",
						"format": "uri"
					},
					"api_key": {"description": "API key for authenticating with the voice server", "type": "string"},
					"api_secret": {"description": "API secret for authenticating with the voice server", "type": "string"},
					"latitude": {
						"description": "Optional geographic latitude override for this server",
						"nullable": true,
						"type": "number"
					},
					"longitude": {
						"description": "Optional geographic longitude override for this server",
						"nullable": true,
						"type": "number"
					},
					"is_active": {"description": "Whether the server is currently active", "type": "boolean"},
					"soft_connection_limit": {
						"description": "Connection count above which placement prefers another server, or null for no limit",
						"nullable": true,
						"type": "integer",
						"minimum": 1,
						"maximum": 2147483647
					},
					"notes": {
						"description": "Free-form admin notes about this server, or null to clear them",
						"nullable": true,
						"type": "string",
						"maxLength": 2000
					},
					"vip_only": {"description": "Whether this server is restricted to VIP users", "type": "boolean"},
					"required_guild_features": {
						"description": "Guild features required to use this server",
						"maxItems": 100,
						"type": "array",
						"items": {"type": "string"}
					},
					"allowed_guild_ids": {
						"description": "Guild IDs explicitly allowed to use this server",
						"maxItems": 1000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"}
					},
					"allowed_user_ids": {
						"description": "User IDs explicitly allowed to use this server",
						"maxItems": 1000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"}
					},
					"internal_endpoint": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/VoiceInternalEndpointType"}]
					},
					"draining": {
						"description": "Whether placement sends new calls elsewhere while calls on this server finish",
						"type": "boolean"
					},
					"public_ipv4": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/VoicePublicIpv4Type"}]},
					"public_ipv6": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/VoicePublicIpv6Type"}]}
				}
			},
			"UpdateVoiceServerResponse": {
				"type": "object",
				"properties": {
					"server": {
						"properties": {
							"region_id": {"type": "string", "description": "ID of the region this server belongs to"},
							"server_id": {"type": "string", "description": "Unique identifier for the voice server"},
							"endpoint": {
								"type": "string",
								"format": "uri",
								"description": "Client signal WebSocket endpoint URL for the voice server"
							},
							"latitude": {
								"nullable": true,
								"description": "Optional geographic latitude override for this server",
								"type": "number"
							},
							"longitude": {
								"nullable": true,
								"description": "Optional geographic longitude override for this server",
								"type": "number"
							},
							"is_active": {"type": "boolean", "description": "Whether the server is currently active"},
							"soft_connection_limit": {
								"nullable": true,
								"description": "Connection count above which placement prefers another server, or null when the server has no limit",
								"type": "integer",
								"minimum": 1,
								"maximum": 2147483647
							},
							"notes": {
								"nullable": true,
								"description": "Free-form admin notes about this server, or null when there are none",
								"type": "string"
							},
							"vip_only": {"type": "boolean", "description": "Whether this server is restricted to VIP users"},
							"required_guild_features": {
								"maxItems": 100,
								"type": "array",
								"items": {"type": "string"},
								"description": "Guild features required to use this server"
							},
							"allowed_guild_ids": {
								"maxItems": 1000,
								"type": "array",
								"items": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"description": "Guild IDs explicitly allowed to use this server"
							},
							"allowed_user_ids": {
								"maxItems": 1000,
								"type": "array",
								"items": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"description": "User IDs explicitly allowed to use this server"
							},
							"internal_endpoint": {
								"nullable": true,
								"description": "URL the API uses for the control API and health checks, or null to use the endpoint",
								"type": "string"
							},
							"draining": {
								"type": "boolean",
								"description": "Whether placement sends new calls elsewhere while calls on this server finish"
							},
							"public_ipv4": {
								"nullable": true,
								"description": "Public IPv4 address LiveKit gives to clients, or null when none is known",
								"type": "string"
							},
							"public_ipv6": {
								"nullable": true,
								"description": "Public IPv6 address LiveKit gives to clients, or null when none is known",
								"type": "string"
							},
							"health": {
								"description": "Health of the server as this API node last saw it",
								"allOf": [{"$ref": "#/components/schemas/VoiceServerHealthResponse"}]
							},
							"duplicate_api_key": {"type": "boolean", "description": "Whether another server uses the same API key"},
							"created_at": {
								"nullable": true,
								"description": "ISO 8601 timestamp when the server was created",
								"type": "string"
							},
							"updated_at": {
								"nullable": true,
								"description": "ISO 8601 timestamp when the server was last updated",
								"type": "string"
							}
						},
						"description": "Updated voice server",
						"allOf": [{"$ref": "#/components/schemas/VoiceServerAdminResponse"}]
					}
				},
				"required": ["server"],
				"additionalProperties": false
			},
			"GetVoiceServerResponse": {
				"type": "object",
				"properties": {
					"server": {
						"nullable": true,
						"description": "Voice server details or null if not found",
						"allOf": [{"$ref": "#/components/schemas/VoiceServerAdminResponse"}]
					}
				},
				"required": ["server"],
				"additionalProperties": false
			},
			"CreateVoiceServerRequestBody": {
				"type": "object",
				"properties": {
					"server_id": {"description": "Unique identifier for the voice server", "type": "string"},
					"endpoint": {
						"type": "string",
						"format": "uri",
						"description": "Client signal WebSocket endpoint URL for the voice server"
					},
					"api_key": {"description": "API key for authenticating with the voice server", "type": "string"},
					"api_secret": {"description": "API secret for authenticating with the voice server", "type": "string"},
					"latitude": {
						"description": "Optional geographic latitude override for this server",
						"nullable": true,
						"type": "number"
					},
					"longitude": {
						"description": "Optional geographic longitude override for this server",
						"nullable": true,
						"type": "number"
					},
					"is_active": {"default": true, "description": "Whether the server is currently active", "type": "boolean"},
					"soft_connection_limit": {
						"default": null,
						"description": "Connection count above which placement prefers another server, or null for no limit",
						"nullable": true,
						"type": "integer",
						"minimum": 1,
						"maximum": 2147483647
					},
					"notes": {
						"description": "Free-form admin notes about this server",
						"nullable": true,
						"type": "string",
						"maxLength": 2000
					},
					"vip_only": {
						"default": false,
						"description": "Whether this server is restricted to VIP users",
						"type": "boolean"
					},
					"required_guild_features": {
						"default": [],
						"description": "Guild features required to use this server",
						"maxItems": 100,
						"type": "array",
						"items": {"type": "string"}
					},
					"allowed_guild_ids": {
						"description": "Guild IDs explicitly allowed to use this server",
						"maxItems": 1000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"}
					},
					"allowed_user_ids": {
						"description": "User IDs explicitly allowed to use this server",
						"maxItems": 1000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"}
					},
					"internal_endpoint": {
						"default": null,
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/VoiceInternalEndpointType"}]
					},
					"draining": {
						"default": false,
						"description": "Whether placement sends new calls elsewhere while calls on this server finish",
						"type": "boolean"
					},
					"public_ipv4": {
						"default": null,
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/VoicePublicIpv4Type"}]
					},
					"public_ipv6": {
						"default": null,
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/VoicePublicIpv6Type"}]
					}
				},
				"required": ["server_id", "endpoint", "api_key", "api_secret"]
			},
			"CreateVoiceServerResponse": {
				"type": "object",
				"properties": {
					"server": {
						"properties": {
							"region_id": {"type": "string", "description": "ID of the region this server belongs to"},
							"server_id": {"type": "string", "description": "Unique identifier for the voice server"},
							"endpoint": {
								"type": "string",
								"format": "uri",
								"description": "Client signal WebSocket endpoint URL for the voice server"
							},
							"latitude": {
								"nullable": true,
								"description": "Optional geographic latitude override for this server",
								"type": "number"
							},
							"longitude": {
								"nullable": true,
								"description": "Optional geographic longitude override for this server",
								"type": "number"
							},
							"is_active": {"type": "boolean", "description": "Whether the server is currently active"},
							"soft_connection_limit": {
								"nullable": true,
								"description": "Connection count above which placement prefers another server, or null when the server has no limit",
								"type": "integer",
								"minimum": 1,
								"maximum": 2147483647
							},
							"notes": {
								"nullable": true,
								"description": "Free-form admin notes about this server, or null when there are none",
								"type": "string"
							},
							"vip_only": {"type": "boolean", "description": "Whether this server is restricted to VIP users"},
							"required_guild_features": {
								"maxItems": 100,
								"type": "array",
								"items": {"type": "string"},
								"description": "Guild features required to use this server"
							},
							"allowed_guild_ids": {
								"maxItems": 1000,
								"type": "array",
								"items": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"description": "Guild IDs explicitly allowed to use this server"
							},
							"allowed_user_ids": {
								"maxItems": 1000,
								"type": "array",
								"items": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"description": "User IDs explicitly allowed to use this server"
							},
							"internal_endpoint": {
								"nullable": true,
								"description": "URL the API uses for the control API and health checks, or null to use the endpoint",
								"type": "string"
							},
							"draining": {
								"type": "boolean",
								"description": "Whether placement sends new calls elsewhere while calls on this server finish"
							},
							"public_ipv4": {
								"nullable": true,
								"description": "Public IPv4 address LiveKit gives to clients, or null when none is known",
								"type": "string"
							},
							"public_ipv6": {
								"nullable": true,
								"description": "Public IPv6 address LiveKit gives to clients, or null when none is known",
								"type": "string"
							},
							"health": {
								"description": "Health of the server as this API node last saw it",
								"allOf": [{"$ref": "#/components/schemas/VoiceServerHealthResponse"}]
							},
							"duplicate_api_key": {"type": "boolean", "description": "Whether another server uses the same API key"},
							"created_at": {
								"nullable": true,
								"description": "ISO 8601 timestamp when the server was created",
								"type": "string"
							},
							"updated_at": {
								"nullable": true,
								"description": "ISO 8601 timestamp when the server was last updated",
								"type": "string"
							}
						},
						"description": "Created voice server",
						"allOf": [{"$ref": "#/components/schemas/VoiceServerAdminResponse"}]
					}
				},
				"required": ["server"],
				"additionalProperties": false
			},
			"ListVoiceServersResponse": {
				"type": "object",
				"properties": {
					"servers": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/VoiceServerAdminResponse"},
						"description": "List of voice servers"
					}
				},
				"required": ["servers"],
				"additionalProperties": false
			},
			"UpdateVoiceRegionRequestBody": {
				"type": "object",
				"properties": {
					"name": {"description": "Display name of the voice region", "type": "string"},
					"emoji": {"description": "Emoji representing the region", "type": "string"},
					"latitude": {"description": "Geographic latitude coordinate", "type": "number"},
					"longitude": {"description": "Geographic longitude coordinate", "type": "number"},
					"is_default": {"description": "Whether this is the default region", "type": "boolean"},
					"vip_only": {"description": "Whether this region is restricted to VIP users", "type": "boolean"},
					"required_guild_features": {
						"description": "Guild features required to use this region",
						"maxItems": 100,
						"type": "array",
						"items": {"type": "string"}
					},
					"allowed_guild_ids": {
						"description": "Guild IDs explicitly allowed to use this region",
						"maxItems": 1000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"}
					},
					"allowed_user_ids": {
						"description": "User IDs explicitly allowed to use this region",
						"maxItems": 1000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"}
					}
				}
			},
			"UpdateVoiceRegionResponse": {
				"type": "object",
				"properties": {
					"region": {
						"description": "Updated voice region",
						"allOf": [{"$ref": "#/components/schemas/VoiceRegionAdminResponse"}]
					}
				},
				"required": ["region"],
				"additionalProperties": false
			},
			"GetVoiceRegionResponse": {
				"type": "object",
				"properties": {
					"region": {
						"nullable": true,
						"description": "Voice region details or null if not found",
						"type": "object",
						"properties": {
							"id": {"type": "string", "description": "Unique identifier for the voice region"},
							"name": {"type": "string", "description": "Display name of the voice region"},
							"emoji": {"type": "string", "description": "Emoji representing the region"},
							"latitude": {"type": "number", "description": "Geographic latitude coordinate"},
							"longitude": {"type": "number", "description": "Geographic longitude coordinate"},
							"is_default": {"type": "boolean", "description": "Whether this is the default region"},
							"vip_only": {"type": "boolean", "description": "Whether this region is restricted to VIP users"},
							"required_guild_features": {
								"maxItems": 100,
								"type": "array",
								"items": {"type": "string"},
								"description": "Guild features required to use this region"
							},
							"allowed_guild_ids": {
								"maxItems": 1000,
								"type": "array",
								"items": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"description": "Guild IDs explicitly allowed to use this region"
							},
							"allowed_user_ids": {
								"maxItems": 1000,
								"type": "array",
								"items": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"description": "User IDs explicitly allowed to use this region"
							},
							"created_at": {
								"nullable": true,
								"description": "ISO 8601 timestamp when the region was created",
								"type": "string"
							},
							"updated_at": {
								"nullable": true,
								"description": "ISO 8601 timestamp when the region was last updated",
								"type": "string"
							},
							"servers": {
								"description": "Voice servers in this region",
								"type": "array",
								"items": {"$ref": "#/components/schemas/VoiceServerAdminResponse"}
							}
						},
						"required": [
							"id",
							"name",
							"emoji",
							"latitude",
							"longitude",
							"is_default",
							"vip_only",
							"required_guild_features",
							"allowed_guild_ids",
							"allowed_user_ids",
							"created_at",
							"updated_at"
						],
						"additionalProperties": false
					}
				},
				"required": ["region"],
				"additionalProperties": false
			},
			"CreateVoiceRegionRequest": {
				"type": "object",
				"properties": {
					"id": {"description": "Unique identifier for the voice region", "type": "string"},
					"name": {"description": "Display name of the voice region", "type": "string"},
					"emoji": {"description": "Emoji representing the region", "type": "string"},
					"latitude": {"type": "number", "description": "Geographic latitude coordinate"},
					"longitude": {"type": "number", "description": "Geographic longitude coordinate"},
					"is_default": {"default": false, "description": "Whether this is the default region", "type": "boolean"},
					"vip_only": {
						"default": false,
						"description": "Whether this region is restricted to VIP users",
						"type": "boolean"
					},
					"required_guild_features": {
						"default": [],
						"description": "Guild features required to use this region",
						"maxItems": 100,
						"type": "array",
						"items": {"type": "string"}
					},
					"allowed_guild_ids": {
						"description": "Guild IDs explicitly allowed to use this region",
						"maxItems": 1000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"}
					},
					"allowed_user_ids": {
						"description": "User IDs explicitly allowed to use this region",
						"maxItems": 1000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"}
					}
				},
				"required": ["id", "name", "emoji", "latitude", "longitude"]
			},
			"CreateVoiceRegionResponse": {
				"type": "object",
				"properties": {
					"region": {
						"description": "Created voice region",
						"allOf": [{"$ref": "#/components/schemas/VoiceRegionAdminResponse"}]
					}
				},
				"required": ["region"],
				"additionalProperties": false
			},
			"ListVoiceRegionsResponse": {
				"type": "object",
				"properties": {
					"regions": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"id": {"type": "string", "description": "Unique identifier for the voice region"},
								"name": {"type": "string", "description": "Display name of the voice region"},
								"emoji": {"type": "string", "description": "Emoji representing the region"},
								"latitude": {"type": "number", "description": "Geographic latitude coordinate"},
								"longitude": {"type": "number", "description": "Geographic longitude coordinate"},
								"is_default": {"type": "boolean", "description": "Whether this is the default region"},
								"vip_only": {"type": "boolean", "description": "Whether this region is restricted to VIP users"},
								"required_guild_features": {
									"maxItems": 100,
									"type": "array",
									"items": {"type": "string"},
									"description": "Guild features required to use this region"
								},
								"allowed_guild_ids": {
									"maxItems": 1000,
									"type": "array",
									"items": {"$ref": "#/components/schemas/SnowflakeStringType"},
									"description": "Guild IDs explicitly allowed to use this region"
								},
								"allowed_user_ids": {
									"maxItems": 1000,
									"type": "array",
									"items": {"$ref": "#/components/schemas/SnowflakeStringType"},
									"description": "User IDs explicitly allowed to use this region"
								},
								"created_at": {
									"nullable": true,
									"description": "ISO 8601 timestamp when the region was created",
									"type": "string"
								},
								"updated_at": {
									"nullable": true,
									"description": "ISO 8601 timestamp when the region was last updated",
									"type": "string"
								},
								"servers": {
									"description": "Voice servers in this region",
									"type": "array",
									"items": {"$ref": "#/components/schemas/VoiceServerAdminResponse"}
								}
							},
							"required": [
								"id",
								"name",
								"emoji",
								"latitude",
								"longitude",
								"is_default",
								"vip_only",
								"required_guild_features",
								"allowed_guild_ids",
								"allowed_user_ids",
								"created_at",
								"updated_at"
							],
							"additionalProperties": false
						},
						"description": "List of voice regions"
					}
				},
				"required": ["regions"],
				"additionalProperties": false
			},
			"SnowflakeType": {
				"anyOf": [{"type": "string"}, {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991}],
				"format": "snowflake"
			},
			"ListVoiceJoinTokensResponse": {
				"type": "object",
				"properties": {
					"tokens": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/VoiceJoinTokenAdminResponse"},
						"description": "Join tokens, newest first"
					}
				},
				"required": ["tokens"],
				"additionalProperties": false
			},
			"CreateVoiceJoinTokenRequest": {
				"type": "object",
				"properties": {
					"region_id": {
						"default": null,
						"description": "Region for the new server, or null to let the API pick the nearest existing region",
						"nullable": true,
						"type": "string",
						"minLength": 1,
						"maxLength": 64,
						"pattern": "^[a-z0-9][a-z0-9-]*$"
					},
					"region_name": {
						"default": null,
						"description": "Name for a new region with the id in region_id, created when the server joins",
						"nullable": true,
						"type": "string"
					},
					"region_emoji": {
						"default": null,
						"description": "Emoji for the new region in region_name",
						"nullable": true,
						"type": "string"
					},
					"region_latitude": {
						"default": null,
						"description": "Latitude of the new region in region_name. Placement sends people to the nearest region",
						"nullable": true,
						"type": "number",
						"minimum": -90,
						"maximum": 90
					},
					"region_longitude": {
						"default": null,
						"description": "Longitude of the new region in region_name",
						"nullable": true,
						"type": "number",
						"minimum": -180,
						"maximum": 180
					},
					"server_id": {
						"default": null,
						"description": "Id for the new server",
						"nullable": true,
						"type": "string",
						"minLength": 1,
						"maxLength": 64,
						"pattern": "^[a-z0-9][a-z0-9-]*$"
					},
					"hostname": {
						"default": null,
						"description": "Hostname the server must use for its endpoint",
						"nullable": true,
						"type": "string",
						"maxLength": 253,
						"pattern": "^[A-Za-z0-9.-]+$"
					},
					"internal_endpoint": {
						"default": null,
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/VoiceInternalEndpointType"}]
					},
					"soft_connection_limit": {
						"default": null,
						"nullable": true,
						"type": "integer",
						"minimum": 1,
						"maximum": 2147483647
					},
					"notes": {"nullable": true, "type": "string", "maxLength": 2000},
					"vip_only": {"default": false, "type": "boolean"},
					"required_guild_features": {"default": [], "maxItems": 100, "type": "array", "items": {"type": "string"}},
					"allowed_guild_ids": {
						"maxItems": 1000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"}
					},
					"allowed_user_ids": {
						"maxItems": 1000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"}
					},
					"expires_in_seconds": {
						"default": 3600,
						"description": "Seconds until the token stops working, from 60 to 86400",
						"type": "integer",
						"minimum": 60,
						"maximum": 86400
					}
				}
			},
			"CreateVoiceJoinTokenResponse": {
				"type": "object",
				"properties": {
					"token_id": {
						"description": "ID of the token",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"token": {"type": "string", "description": "The token. It appears in this response only"},
					"expires_at": {"type": "string", "description": "ISO 8601 timestamp when the token stops working"},
					"command": {"type": "string", "description": "Command to run on the voice machine"}
				},
				"required": ["token_id", "token", "expires_at", "command"],
				"additionalProperties": false
			},
			"WebAuthnCredentialListResponse": {
				"type": "array",
				"items": {"$ref": "#/components/schemas/WebAuthnCredentialResponse"}
			},
			"AdminUserWarningRequest": {
				"type": "object",
				"properties": {"decision": {"allOf": [{"$ref": "#/components/schemas/EnforcementDecisionInput"}]}},
				"required": ["decision"]
			},
			"AdminUserWarningResponse": {
				"type": "object",
				"properties": {
					"decision_id": {
						"description": "The warning decision",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					}
				},
				"required": ["decision_id"],
				"additionalProperties": false
			},
			"AdminUserUsernameUpdateRequest": {
				"type": "object",
				"properties": {
					"username": {
						"description": "New username for the user",
						"allOf": [{"$ref": "#/components/schemas/UsernameType"}]
					},
					"discriminator": {
						"description": "Legacy discriminator value",
						"allOf": [{"$ref": "#/components/schemas/DiscriminatorType"}]
					}
				},
				"required": ["username"]
			},
			"UserMutationResponse": {
				"type": "object",
				"properties": {"user": {"$ref": "#/components/schemas/UserAdminResponseSchema"}},
				"required": ["user"],
				"additionalProperties": false
			},
			"AdminUserTraitsRequest": {
				"type": "object",
				"properties": {
					"traits": {
						"maxItems": 100,
						"type": "array",
						"items": {"type": "string"},
						"description": "List of traits to assign to the user"
					}
				},
				"required": ["traits"]
			},
			"AdminUserSystemStatusRequest": {
				"type": "object",
				"properties": {
					"system": {"type": "boolean", "description": "Whether the user should be marked as a system user"}
				},
				"required": ["system"]
			},
			"AdminStorePurchaseListResponse": {
				"type": "object",
				"properties": {
					"purchases": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminStorePurchaseResponse"},
						"description": "Store purchases bound to the user"
					}
				},
				"required": ["purchases"],
				"additionalProperties": false
			},
			"AdminUserSsoIdentityListResponse": {
				"type": "object",
				"properties": {
					"sso_identities": {
						"maxItems": 100,
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminSsoIdentityResponse"},
						"description": "Every provider subject bound to the account, across every provider it has signed in with"
					}
				},
				"required": ["sso_identities"],
				"additionalProperties": false
			},
			"AdminSsoIdentityLinkRequest": {
				"type": "object",
				"properties": {
					"subject": {
						"type": "string",
						"minLength": 1,
						"maxLength": 1024,
						"description": "The provider subject (`sub` claim) to bind under the provider in use, matched exactly"
					}
				},
				"required": ["subject"]
			},
			"AdminSignInLinkResponse": {
				"type": "object",
				"properties": {
					"url": {
						"type": "string",
						"description": "Sign-in link to open in a browser. It works once and is shown only once"
					},
					"expires_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "ISO 8601 timestamp when the link stops working"
					}
				},
				"required": ["url", "expires_at"],
				"additionalProperties": false
			},
			"TerminateSessionsResponse": {
				"type": "object",
				"properties": {"terminated_count": {"$ref": "#/components/schemas/Int32Type"}},
				"required": ["terminated_count"],
				"additionalProperties": false
			},
			"ListUserSessionsResponse": {
				"type": "object",
				"properties": {
					"sessions": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"session_id_hash": {
									"description": "Hashed session identifier (base64url)",
									"type": "string",
									"minLength": 8,
									"maxLength": 256
								},
								"created_at": {"type": "string", "description": "ISO timestamp when the session was created"},
								"approx_last_used_at": {
									"type": "string",
									"description": "ISO timestamp of the session last usage (approximate)"
								},
								"client_ip": {"description": "Client IP address", "type": "string", "minLength": 1, "maxLength": 64},
								"client_ip_reverse": {
									"nullable": true,
									"description": "Reverse DNS hostname for the client IP (PTR), if available",
									"type": "string"
								},
								"client_os": {
									"nullable": true,
									"description": "Client operating system, if detected",
									"type": "string"
								},
								"client_platform": {"nullable": true, "description": "Client platform, if detected", "type": "string"},
								"client_location": {
									"nullable": true,
									"description": "Approximate geo location label for the client IP, if available",
									"type": "string"
								},
								"app_platform": {
									"nullable": true,
									"description": "Platform the native app last reported for this session",
									"type": "string"
								},
								"app_version": {
									"nullable": true,
									"description": "App version the native app last reported for this session",
									"type": "string"
								},
								"app_release_channel": {
									"nullable": true,
									"description": "Release channel the native app last reported for this session",
									"type": "string"
								},
								"app_build_number": {
									"nullable": true,
									"description": "Platform build number the native app last reported for this session",
									"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
								},
								"app_beta_number": {
									"nullable": true,
									"description": "Beta number the native app last reported, for beta builds only",
									"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
								},
								"deleted_at": {
									"nullable": true,
									"description": "ISO timestamp when the session was terminated, or null if still active",
									"type": "string"
								}
							},
							"required": [
								"session_id_hash",
								"created_at",
								"approx_last_used_at",
								"client_ip",
								"client_ip_reverse",
								"client_os",
								"client_platform",
								"client_location",
								"app_platform",
								"app_version",
								"app_release_channel",
								"app_build_number",
								"app_beta_number",
								"deleted_at"
							],
							"additionalProperties": false
						}
					}
				},
				"required": ["sessions"],
				"additionalProperties": false
			},
			"RelationshipCategoryEnum": {
				"type": "string",
				"enum": ["friend", "incoming_request", "outgoing_request", "blocked"]
			},
			"RemoveUserRelationshipsResponse": {
				"type": "object",
				"properties": {"removed_count": {"$ref": "#/components/schemas/Int32Type"}},
				"required": ["removed_count"],
				"additionalProperties": false
			},
			"ListUserRelationshipsResponse": {
				"type": "object",
				"properties": {
					"friends": {"type": "array", "items": {"$ref": "#/components/schemas/AdminRelationshipEntrySchema"}},
					"incoming_requests": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminRelationshipEntrySchema"}
					},
					"outgoing_requests": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminRelationshipEntrySchema"}
					},
					"blocked": {"type": "array", "items": {"$ref": "#/components/schemas/AdminRelationshipEntrySchema"}}
				},
				"required": ["friends", "incoming_requests", "outgoing_requests", "blocked"],
				"additionalProperties": false
			},
			"AdminUserClearFieldsRequest": {
				"type": "object",
				"properties": {
					"fields": {
						"minItems": 1,
						"maxItems": 10,
						"type": "array",
						"items": {
							"description": "User profile field that can be cleared",
							"x-enumNames": ["avatar", "banner", "bio", "pronouns", "global_name"],
							"x-enumDescriptions": [
								"User profile avatar image",
								"User profile banner image",
								"User biography text",
								"User pronouns",
								"User display name"
							],
							"enum": ["avatar", "banner", "bio", "pronouns", "global_name"],
							"type": "string"
						},
						"description": "List of profile fields to clear"
					},
					"basis": {"allOf": [{"$ref": "#/components/schemas/ModerationBasis"}]}
				},
				"required": ["fields", "basis"]
			},
			"AdminUserPremiumFlagsUpdateRequest": {
				"type": "object",
				"properties": {
					"add_flags": {
						"default": [],
						"description": "Premium flags to add",
						"maxItems": 64,
						"type": "array",
						"items": {
							"description": "A single premium flag value to add or remove",
							"allOf": [{"$ref": "#/components/schemas/PremiumFlags"}]
						}
					},
					"remove_flags": {
						"default": [],
						"description": "Premium flags to remove",
						"maxItems": 64,
						"type": "array",
						"items": {
							"description": "A single premium flag value to add or remove",
							"allOf": [{"$ref": "#/components/schemas/PremiumFlags"}]
						}
					}
				}
			},
			"AdminPasswordResetLinkResponse": {
				"type": "object",
				"properties": {
					"url": {"type": "string", "description": "Password reset link to hand to the user. It is shown only once"},
					"expires_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "ISO 8601 timestamp when the link stops working"
					}
				},
				"required": ["url", "expires_at"],
				"additionalProperties": false
			},
			"AdminOperatorPassWallTimelineResponse": {
				"type": "object",
				"properties": {
					"entry": {
						"nullable": true,
						"description": "The current wall entry",
						"allOf": [{"$ref": "#/components/schemas/AdminOperatorPassWallEntryResponse"}]
					},
					"revisions": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminOperatorPassWallRevisionResponse"},
						"description": "Every revision, oldest first"
					},
					"decisions": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminOperatorPassWallDecisionResponse"},
						"description": "Every decision, oldest first"
					},
					"events": {
						"type": "array",
						"items": {"allOf": [{"$ref": "#/components/schemas/AdminOperatorPassWallEventResponse"}]},
						"description": "Wall history, oldest first"
					}
				},
				"required": ["entry", "revisions", "decisions", "events"],
				"additionalProperties": false
			},
			"SnowflakeStringType": {"type": "string", "pattern": "^(0|[1-9][0-9]*)$", "format": "snowflake"},
			"AdminOperatorPassWallEntryResponse": {
				"type": "object",
				"properties": {
					"user_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"username": {
						"nullable": true,
						"description": "Username of the account, null when it no longer exists",
						"type": "string"
					},
					"avatar_url": {
						"nullable": true,
						"description": "Current profile avatar of the account",
						"type": "string",
						"format": "uri"
					},
					"wall_name": {"nullable": true, "description": "The name the holder chose for the wall", "type": "string"},
					"wall_quote": {
						"nullable": true,
						"description": "The quote the holder set for their listing, shown on the wall only while the listing is shown",
						"type": "string"
					},
					"wall_opt_out": {"type": "boolean"},
					"keep_as_is": {"type": "boolean", "description": "Whether profile changes stay off the wall"},
					"release_list_opt_in": {
						"type": "boolean",
						"description": "Whether the holder chose to be in every yearly The Operators of list"
					},
					"display_state": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/OperatorPassWallDisplayStateSchema"}]
					},
					"shown_name": {"nullable": true, "description": "The name the wall shows now", "type": "string"},
					"shown_avatar_url": {
						"nullable": true,
						"description": "The avatar the wall shows now, null for the default avatar or when the wall shows none",
						"type": "string",
						"format": "uri"
					},
					"live_revision_id": {
						"nullable": true,
						"description": "The revision the wall shows",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"live_avatar_private_url": {
						"nullable": true,
						"description": "Admin route to the private copy of the live avatar",
						"type": "string"
					},
					"business": {
						"type": "boolean",
						"description": "Whether the wall shows a business listing with a company name and logo, after the listings of people"
					},
					"decline_reason": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/OperatorPassWallDeclineReasonSchema"}]
					},
					"decline_note": {"nullable": true, "description": "The facts sent to the holder", "type": "string"},
					"hidden": {"type": "boolean", "description": "Whether staff hid the listing for now"},
					"legal_hold": {
						"type": "boolean",
						"description": "Whether the retention job keeps the name and avatar copies, for an open appeal or a legal hold"
					},
					"left_wall_at": {
						"nullable": true,
						"description": "When the holder left the wall, the copies are deleted 60 days later",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"listed_at": {
						"nullable": true,
						"description": "When the listing went on the wall",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"delivered_at": {
						"nullable": true,
						"description": "When the pass was delivered",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"release_published_year": {
						"nullable": true,
						"description": "Year of the latest list the name was published in",
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991
					},
					"release_published_at": {
						"nullable": true,
						"description": "Release date of the latest list the name was published in",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"release_erased_at": {
						"nullable": true,
						"description": "When staff first erased the name from a list, which keeps it out of later lists",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					}
				},
				"required": [
					"user_id",
					"username",
					"avatar_url",
					"wall_name",
					"wall_quote",
					"wall_opt_out",
					"keep_as_is",
					"release_list_opt_in",
					"display_state",
					"shown_name",
					"shown_avatar_url",
					"live_revision_id",
					"live_avatar_private_url",
					"business",
					"decline_reason",
					"decline_note",
					"hidden",
					"legal_hold",
					"left_wall_at",
					"listed_at",
					"delivered_at",
					"release_published_year",
					"release_published_at",
					"release_erased_at"
				],
				"additionalProperties": false
			},
			"AdminOperatorPassWallLegalHoldRequest": {
				"type": "object",
				"properties": {
					"held": {
						"type": "boolean",
						"description": "Whether to keep the copies past the retention periods, for an open appeal or a legal hold"
					}
				},
				"required": ["held"]
			},
			"AdminOperatorPassWallHideRequest": {
				"type": "object",
				"properties": {
					"hidden": {"type": "boolean"},
					"reason": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/OperatorPassWallDeclineReasonSchema"}]},
					"note": {
						"description": "The facts, shown to the holder when hiding",
						"nullable": true,
						"type": "string",
						"minLength": 1,
						"maxLength": 300
					}
				},
				"required": ["hidden"]
			},
			"AdminOperatorPassWallDecisionRequest": {
				"type": "object",
				"properties": {
					"reason": {"allOf": [{"$ref": "#/components/schemas/OperatorPassWallDeclineReasonSchema"}]},
					"note": {
						"type": "string",
						"minLength": 1,
						"maxLength": 300,
						"description": "The facts the decision relies on, shown to the holder"
					}
				},
				"required": ["reason", "note"]
			},
			"AdminOperatorPassWallClearQuoteRequest": {
				"type": "object",
				"properties": {
					"reason": {"allOf": [{"$ref": "#/components/schemas/OperatorPassWallDeclineReasonSchema"}]},
					"note": {
						"type": "string",
						"minLength": 1,
						"maxLength": 300,
						"description": "The facts the decision relies on, shown to the holder"
					},
					"quote": {
						"type": "string",
						"maxLength": 2048,
						"description": "The quote staff reviewed, the request fails when the listing now has another one"
					}
				},
				"required": ["reason", "note", "quote"]
			},
			"AdminOperatorPassWallBusinessRequest": {
				"type": "object",
				"properties": {
					"name": {
						"type": "string",
						"minLength": 1,
						"maxLength": 32,
						"description": "The company name as it shows on the wall"
					},
					"logo": {
						"description": "A square PNG, JPEG or WebP logo of at least 256 pixels and under 2 MB, not animated, as base64 or a data URI",
						"allOf": [{"$ref": "#/components/schemas/Base64ImageType"}]
					}
				},
				"required": ["name", "logo"]
			},
			"AdminOperatorPassNoticeRequest": {
				"type": "object",
				"properties": {
					"rule": {"type": "string", "minLength": 1, "maxLength": 500, "description": "The rule the holder broke"},
					"facts": {
						"type": "string",
						"minLength": 1,
						"maxLength": 4000,
						"description": "The facts the notice relies on"
					}
				},
				"required": ["rule", "facts"]
			},
			"AdminOperatorPassRemovalResponse": {
				"type": "object",
				"properties": {
					"state": {"allOf": [{"$ref": "#/components/schemas/AdminOperatorPassRemovalStateSchema"}]},
					"rule": {"type": "string", "description": "The rule the holder broke"},
					"facts": {"type": "string", "description": "The facts the decision relied on"},
					"automated": {"type": "boolean", "description": "Whether automated tools helped detect the breach"},
					"serious": {
						"nullable": true,
						"description": "Whether the breach was serious enough to skip the 7 day notice",
						"type": "boolean"
					},
					"removed_until": {
						"nullable": true,
						"description": "When a limited removal ends, null when permanent",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"notice_sent_at": {
						"nullable": true,
						"description": "When the 7 day notice was sent",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"removed_at": {
						"nullable": true,
						"description": "When the perks were removed",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"admin_user_id": {
						"description": "Staff member who made the latest decision",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					}
				},
				"required": [
					"state",
					"rule",
					"facts",
					"automated",
					"serious",
					"removed_until",
					"notice_sent_at",
					"removed_at",
					"admin_user_id"
				],
				"additionalProperties": false
			},
			"AdminOperatorPassRemovalRequest": {
				"type": "object",
				"properties": {
					"rule": {"type": "string", "minLength": 1, "maxLength": 500, "description": "The rule the holder broke"},
					"facts": {
						"type": "string",
						"minLength": 1,
						"maxLength": 4000,
						"description": "The facts the decision relies on"
					},
					"automated": {"type": "boolean", "description": "Whether automated tools helped detect the breach"},
					"serious": {
						"type": "boolean",
						"description": "Whether the breach is serious enough to act without the 7 day notice"
					},
					"duration_days": {
						"nullable": true,
						"description": "Length of a limited removal in days, null for a permanent removal",
						"type": "integer",
						"minimum": 1,
						"maximum": 3650
					},
					"notify_user": {
						"default": true,
						"description": "Whether to email the statement of reasons",
						"type": "boolean"
					}
				},
				"required": ["rule", "facts", "automated", "serious", "duration_days"]
			},
			"AdminOperatorPassUserResponse": {
				"type": "object",
				"properties": {
					"holder": {
						"nullable": true,
						"description": "The pass the account holds now, null when it holds none",
						"allOf": [{"$ref": "#/components/schemas/OperatorPassHolderResponse"}]
					},
					"pass": {
						"nullable": true,
						"description": "The stored pass, also while paused or removed",
						"allOf": [{"$ref": "#/components/schemas/AdminOperatorPassRowResponse"}]
					},
					"removal": {
						"nullable": true,
						"description": "Notice or removal under section 8",
						"allOf": [{"$ref": "#/components/schemas/AdminOperatorPassRemovalResponse"}]
					},
					"removal_history": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminOperatorPassRemovalHistoryEntryResponse"},
						"description": "Every removal under section 8, oldest first, also after it ended"
					},
					"purchases": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/OperatorPassPurchaseResponse"},
						"description": "Purchases the account paid for"
					},
					"units": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminOperatorPassUnitResponse"},
						"description": "Every pass the account holds or paid for, with its history, oldest first"
					},
					"offers": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminOperatorPassOfferResponse"},
						"description": "Pass it on offers the account made or received"
					},
					"wall": {
						"nullable": true,
						"description": "The name on the Operators' wall, null when none was set",
						"allOf": [{"$ref": "#/components/schemas/AdminOperatorPassWallEntryResponse"}]
					},
					"wall_history": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminOperatorPassWallEventResponse"},
						"description": "Append-only history of deliveries, the wall name and release lists, oldest first"
					},
					"visionary_activation": {
						"description": "The Visionary turn-on and email record, null when the account has none",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/AdminOperatorPassVisionaryActivationResponse"}]
					}
				},
				"required": [
					"holder",
					"pass",
					"removal",
					"removal_history",
					"purchases",
					"units",
					"offers",
					"wall",
					"wall_history"
				],
				"additionalProperties": false
			},
			"NetworkBlockCandidatesResponse": {
				"type": "object",
				"properties": {
					"networks": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"ip": {"type": "string"},
								"last_seen_at": {"type": "string", "description": "When the account last used this address"},
								"skip_reason": {
									"nullable": true,
									"description": "Why this address would be skipped. Null when it can be blocked",
									"type": "string",
									"enum": ["exempt", "special_purpose"]
								},
								"other_unrestricted_accounts": {
									"description": "Other accounts that are not suspended or closed and were last active on this address. Blocking is refused when this is above zero",
									"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
								}
							},
							"required": ["ip", "last_seen_at", "skip_reason", "other_unrestricted_accounts"],
							"additionalProperties": false
						},
						"description": "Addresses the account used in the last 30 days, most recent first"
					}
				},
				"required": ["networks"],
				"additionalProperties": false
			},
			"AdminUserMessageDeleteRequest": {
				"type": "object",
				"properties": {
					"basis": {
						"description": "Why the messages are removed. Required unless dry_run is true. An enforcement basis refuses child safety and violent extremism reasons",
						"allOf": [{"$ref": "#/components/schemas/ModerationBasis"}]
					}
				}
			},
			"DeleteAllUserMessagesResponse": {
				"type": "object",
				"properties": {
					"success": {"type": "boolean", "enum": [true]},
					"dry_run": {"type": "boolean"},
					"channel_count": {"$ref": "#/components/schemas/Int32Type"},
					"message_count": {"$ref": "#/components/schemas/Int32Type"},
					"job_id": {"type": "string"},
					"decision_id": {
						"description": "The content removal decision, for an enforcement basis",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					}
				},
				"required": ["success", "dry_run", "channel_count", "message_count"],
				"additionalProperties": false
			},
			"AdminUserMessageShredPreviewRequest": {
				"type": "object",
				"properties": {
					"entries": {
						"minItems": 1,
						"maxItems": 1000,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"channel_id": {"$ref": "#/components/schemas/SnowflakeType"},
								"message_id": {"$ref": "#/components/schemas/SnowflakeType"}
							},
							"required": ["channel_id", "message_id"]
						}
					}
				},
				"required": ["entries"]
			},
			"MessageShredPreviewResponse": {
				"type": "object",
				"properties": {
					"requested": {"$ref": "#/components/schemas/Int32Type"},
					"message_count": {
						"description": "How many messages a shred of these entries removes",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"messages": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"channel_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"message_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"timestamp": {"type": "string", "description": "When the message was sent, as an ISO 8601 timestamp"},
								"content": {"type": "string", "description": "The start of the message text, up to 200 characters"},
								"attachment_count": {"$ref": "#/components/schemas/Int32Type"}
							},
							"required": ["channel_id", "message_id", "timestamp", "content", "attachment_count"],
							"additionalProperties": false
						},
						"description": "Every message a shred of these entries removes"
					},
					"skipped": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"channel_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"message_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"reason": {
									"type": "string",
									"enum": ["not_found", "other_author", "duplicate"],
									"description": "not_found when the message is not in that channel, other_author when someone else sent it"
								}
							},
							"required": ["channel_id", "message_id", "reason"],
							"additionalProperties": false
						},
						"description": "Entries a shred leaves alone, with the reason"
					},
					"preview_token": {
						"type": "string",
						"description": "Pass this with the shred to remove exactly these messages"
					}
				},
				"required": ["requested", "message_count", "messages", "skipped", "preview_token"],
				"additionalProperties": false
			},
			"AdminUserMessageShredRequest": {
				"type": "object",
				"properties": {
					"entries": {
						"minItems": 1,
						"maxItems": 1000,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"channel_id": {"$ref": "#/components/schemas/SnowflakeType"},
								"message_id": {"$ref": "#/components/schemas/SnowflakeType"}
							},
							"required": ["channel_id", "message_id"]
						}
					},
					"basis": {"allOf": [{"$ref": "#/components/schemas/ModerationBasis"}]},
					"preview_token": {
						"description": "The preview_token of a preview of the same entries. When given, exactly the previewed messages are removed, and the request is refused if they changed since the preview",
						"type": "string",
						"pattern": "^[0-9a-f]{64}$"
					}
				},
				"required": ["entries", "basis"]
			},
			"MessageShredResponse": {
				"type": "object",
				"properties": {
					"success": {"type": "boolean", "enum": [true]},
					"job_id": {"type": "string"},
					"requested": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
					"decision_id": {
						"description": "The content removal decision, for an enforcement basis",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					}
				},
				"required": ["success", "job_id"],
				"additionalProperties": false
			},
			"ListUserGuildsResponse": {
				"type": "object",
				"properties": {"guilds": {"type": "array", "items": {"$ref": "#/components/schemas/GuildAdminResponse"}}},
				"required": ["guilds"],
				"additionalProperties": false
			},
			"AdminUserFlagsUpdateRequest": {
				"type": "object",
				"properties": {
					"add_flags": {
						"default": [],
						"description": "User flags to add",
						"maxItems": 64,
						"type": "array",
						"items": {
							"description": "A single user flag value to add or remove",
							"allOf": [{"$ref": "#/components/schemas/UserFlags"}]
						}
					},
					"remove_flags": {
						"default": [],
						"description": "User flags to remove",
						"maxItems": 64,
						"type": "array",
						"items": {
							"description": "A single user flag value to add or remove",
							"allOf": [{"$ref": "#/components/schemas/UserFlags"}]
						}
					}
				}
			},
			"AdminUserFeatureLimitRequest": {
				"type": "object",
				"properties": {
					"limit": {
						"type": "string",
						"enum": ["direct_messages", "reports", "purchases"],
						"description": "The one feature this decision limits. Direct messages are for spam, automation, fraud and malware reasons only, reports for misuse of reporting, purchases for payment reasons"
					},
					"ends_at": {
						"description": "When a reports limit ends, at most 365 days away. Defaults to 90 days. Refused for other limits",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"decision": {"allOf": [{"$ref": "#/components/schemas/EnforcementDecisionInput"}]}
				},
				"required": ["limit", "decision"]
			},
			"AdminUserEmailUpdateRequest": {
				"type": "object",
				"properties": {
					"email": {
						"description": "New email address for the user",
						"allOf": [{"$ref": "#/components/schemas/EmailType"}]
					}
				},
				"required": ["email"]
			},
			"AdminUserDmChannelType": {
				"description": "Kind of direct message channel to list",
				"x-enumNames": ["DM", "GROUP_DM"],
				"x-enumDescriptions": ["One-to-one direct message channels", "Group direct message channels"],
				"enum": ["dm", "group_dm"],
				"type": "string"
			},
			"AdminUserDmChannelListResponse": {
				"anyOf": [
					{
						"type": "object",
						"properties": {
							"channels": {
								"maxItems": 200,
								"type": "array",
								"items": {
									"type": "object",
									"properties": {
										"channel_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
										"channel_type": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
										"channel_nsfw": {"nullable": true, "type": "boolean"},
										"guild_nsfw_level": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]},
										"recipient_ids": {
											"maxItems": 100,
											"type": "array",
											"items": {"$ref": "#/components/schemas/SnowflakeStringType"}
										},
										"recipients": {
											"maxItems": 100,
											"type": "array",
											"items": {
												"type": "object",
												"properties": {
													"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
													"username": {"type": "string"},
													"discriminator": {"type": "string"},
													"global_name": {"nullable": true, "type": "string"},
													"avatar": {"nullable": true, "type": "string"}
												},
												"required": ["id", "username", "discriminator", "global_name", "avatar"],
												"additionalProperties": false
											}
										},
										"last_message_id": {
											"nullable": true,
											"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
										},
										"is_open": {"type": "boolean"},
										"name": {"nullable": true, "type": "string"},
										"icon": {"nullable": true, "type": "string"},
										"owner_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]}
									},
									"required": [
										"channel_id",
										"channel_type",
										"channel_nsfw",
										"guild_nsfw_level",
										"recipient_ids",
										"recipients",
										"last_message_id",
										"is_open",
										"name",
										"icon",
										"owner_id"
									],
									"additionalProperties": false
								}
							}
						},
						"required": ["channels"],
						"additionalProperties": false
					},
					{
						"type": "object",
						"properties": {
							"channels": {
								"maxItems": 500,
								"type": "array",
								"items": {
									"type": "object",
									"properties": {
										"channel_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
										"channel_type": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
										"channel_nsfw": {"nullable": true, "type": "boolean"},
										"guild_nsfw_level": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]},
										"recipient_ids": {
											"maxItems": 100,
											"type": "array",
											"items": {"$ref": "#/components/schemas/SnowflakeStringType"}
										},
										"recipients": {
											"maxItems": 100,
											"type": "array",
											"items": {
												"type": "object",
												"properties": {
													"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
													"username": {"type": "string"},
													"discriminator": {"type": "string"},
													"global_name": {"nullable": true, "type": "string"},
													"avatar": {"nullable": true, "type": "string"}
												},
												"required": ["id", "username", "discriminator", "global_name", "avatar"],
												"additionalProperties": false
											}
										},
										"last_message_id": {
											"nullable": true,
											"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
										},
										"is_open": {"type": "boolean"},
										"name": {"nullable": true, "type": "string"},
										"icon": {"nullable": true, "type": "string"},
										"owner_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]}
									},
									"required": [
										"channel_id",
										"channel_type",
										"channel_nsfw",
										"guild_nsfw_level",
										"recipient_ids",
										"recipients",
										"last_message_id",
										"is_open",
										"name",
										"icon",
										"owner_id"
									],
									"additionalProperties": false
								}
							}
						},
						"required": ["channels"],
						"additionalProperties": false
					}
				]
			},
			"AdminUserDeletionCancelRequest": {
				"type": "object",
				"properties": {
					"expected_pending_deletion_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "pending_deletion_at of the deletion being cancelled, as shown on the account"
					}
				},
				"required": ["expected_pending_deletion_at"]
			},
			"AdminUserDeletionScheduleRequest": {
				"type": "object",
				"properties": {
					"days_until_deletion": {
						"type": "integer",
						"minimum": 1,
						"maximum": 365,
						"description": "Days until the account is deleted. Raised to 14, or to 74 when a rule was broken so an appeal can be reviewed first. Self-hosted instances have no appeals and raise every basis to 14"
					},
					"replace_pending_deletion_at": {
						"description": "pending_deletion_at of the deletion this request replaces. Required when a deletion is already scheduled for the account",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"basis": {"allOf": [{"$ref": "#/components/schemas/ModerationBasis"}]},
					"remove_evidence": {
						"description": "Remove the reported messages and the evidence you listed after they are snapshotted into the decision. Other messages from the reports are kept. Enforcement basis only",
						"type": "boolean"
					},
					"block_networks": {"allOf": [{"$ref": "#/components/schemas/NetworkBlockRequest"}]},
					"immediate": {
						"description": "Self-hosted instances only. Delete the account now instead of after days_until_deletion, with no notice email. This cannot be undone",
						"type": "boolean"
					}
				},
				"required": ["days_until_deletion", "basis"]
			},
			"UserRestrictionResponse": {
				"type": "object",
				"properties": {
					"user": {"$ref": "#/components/schemas/UserAdminResponseSchema"},
					"skipped_ips": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/SkippedNetworkBlock"},
						"description": "Requested network blocks that were not written, with the reason"
					}
				},
				"required": ["user", "skipped_ips"],
				"additionalProperties": false
			},
			"AdminUserDobUpdateRequest": {
				"type": "object",
				"properties": {"date_of_birth": {"description": "New date of birth in YYYY-MM-DD format", "type": "string"}},
				"required": ["date_of_birth"]
			},
			"ListUserChangeLogResponseSchema": {
				"type": "object",
				"properties": {
					"entries": {
						"maxItems": 200,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"event_id": {"type": "string"},
								"field": {"type": "string"},
								"old_value": {"nullable": true, "type": "string"},
								"new_value": {"nullable": true, "type": "string"},
								"reason": {"nullable": true, "type": "string"},
								"actor_user_id": {"nullable": true, "type": "string"},
								"event_at": {"type": "string"}
							},
							"required": ["event_id", "field", "old_value", "new_value", "reason", "actor_user_id", "event_at"],
							"additionalProperties": false
						}
					},
					"next_page_token": {"nullable": true, "type": "string"}
				},
				"required": ["entries", "next_page_token"],
				"additionalProperties": false
			},
			"AdminUserBotStatusRequest": {
				"type": "object",
				"properties": {"bot": {"type": "boolean", "description": "Whether the user should be marked as a bot"}},
				"required": ["bot"]
			},
			"BillingDocumentListResponse": {
				"type": "array",
				"items": {"$ref": "#/components/schemas/BillingDocumentResponse"}
			},
			"AdminUserBanRequest": {
				"type": "object",
				"properties": {
					"duration_hours": {
						"type": "integer",
						"minimum": 0,
						"maximum": 8760,
						"description": "Duration of the suspension in hours. Use 0 for a permanent suspension"
					},
					"decision": {"allOf": [{"$ref": "#/components/schemas/EnforcementDecisionInput"}]},
					"remove_evidence": {
						"description": "Remove the reported messages and the evidence you listed after they are snapshotted into the decision. Other messages from the reports are kept",
						"type": "boolean"
					},
					"block_networks": {"allOf": [{"$ref": "#/components/schemas/NetworkBlockRequest"}]}
				},
				"required": ["duration_hours", "decision"]
			},
			"UpdateUserCustomBadgesRequest": {
				"type": "object",
				"properties": {"badge_ids": {"allOf": [{"$ref": "#/components/schemas/CustomBadgeIdsType"}]}},
				"required": ["badge_ids"]
			},
			"BanUserAvatarRequest": {
				"type": "object",
				"properties": {"reason": {"type": "string"}, "notes": {"type": "string"}}
			},
			"BanUserAvatarResponseSchema": {
				"type": "object",
				"properties": {"hash_short": {"type": "string", "minLength": 1, "maxLength": 16}},
				"required": ["hash_short"],
				"additionalProperties": false
			},
			"AdminArchiveCreateRequest": {
				"type": "object",
				"properties": {
					"include_attachments": {
						"default": false,
						"description": "Whether to include attachment binaries in the archive",
						"type": "boolean"
					}
				}
			},
			"AdminArchiveResponseSchema": {
				"type": "object",
				"properties": {
					"archive_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"subject_type": {"allOf": [{"$ref": "#/components/schemas/ArchiveSubjectTypeSchema"}]},
					"subject_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"requested_by": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"requested_at": {"type": "string"},
					"started_at": {"nullable": true, "type": "string"},
					"completed_at": {"nullable": true, "type": "string"},
					"failed_at": {"nullable": true, "type": "string"},
					"file_size": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 64},
					"progress_percent": {"type": "number"},
					"progress_step": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 256},
					"error_message": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 4000},
					"download_url_expires_at": {"nullable": true, "type": "string"},
					"expires_at": {"nullable": true, "type": "string"}
				},
				"required": [
					"archive_id",
					"subject_type",
					"subject_id",
					"requested_by",
					"requested_at",
					"started_at",
					"completed_at",
					"failed_at",
					"file_size",
					"progress_percent",
					"progress_step",
					"error_message",
					"download_url_expires_at",
					"expires_at"
				],
				"additionalProperties": false
			},
			"ListApplicationsResponse": {
				"type": "object",
				"properties": {
					"applications": {"type": "array", "items": {"$ref": "#/components/schemas/ApplicationAdminResponse"}}
				},
				"required": ["applications"],
				"additionalProperties": false
			},
			"AdminUserAclsRequest": {
				"type": "object",
				"properties": {
					"acls": {
						"maxItems": 118,
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminAclType"},
						"description": "List of access control permissions to assign"
					}
				},
				"required": ["acls"]
			},
			"LookupUserResponse": {
				"type": "object",
				"properties": {"users": {"type": "array", "items": {"$ref": "#/components/schemas/UserAdminResponseSchema"}}},
				"required": ["users"],
				"additionalProperties": false
			},
			"AdminUsersMeResponse": {
				"type": "object",
				"properties": {
					"user": {"$ref": "#/components/schemas/UserAdminResponseSchema"},
					"pending_registration_count": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]}
				},
				"required": ["user", "pending_registration_count"],
				"additionalProperties": false
			},
			"AdminUserCreateRequest": {
				"type": "object",
				"properties": {
					"username": {
						"description": "Username for the new account",
						"allOf": [{"$ref": "#/components/schemas/UsernameType"}]
					},
					"email": {
						"description": "Email address for the new account. Required on an instance where people sign in with email, and refused where they sign in with a username",
						"allOf": [{"$ref": "#/components/schemas/EmailType"}]
					},
					"admin": {
						"default": false,
						"description": "Whether to give the new account full admin access",
						"type": "boolean"
					}
				},
				"required": ["username"]
			},
			"AdminUserCreateResponse": {
				"type": "object",
				"properties": {
					"user": {"$ref": "#/components/schemas/UserAdminResponseSchema"},
					"password_reset": {
						"description": "One-time link the new user opens to choose a password. Hand it to them yourself",
						"allOf": [{"$ref": "#/components/schemas/AdminPasswordResetLinkResponse"}]
					}
				},
				"required": ["user", "password_reset"],
				"additionalProperties": false
			},
			"AdminAclType": {
				"type": "string",
				"enum": [
					"*",
					"acl:set:user",
					"admin_api_key:manage",
					"application:lookup",
					"application:list:by_owner",
					"application:transfer_ownership",
					"archive:trigger:guild",
					"archive:trigger:user",
					"archive:view_all",
					"asset:purge",
					"audit_log:view",
					"admin:authenticate",
					"jobs:view",
					"jobs:cancel",
					"badge:create",
					"badge:delete",
					"badge:list",
					"badge:update",
					"ban:email:add",
					"ban:email:check",
					"ban:email:remove",
					"ban:phrase:add",
					"ban:phrase:check",
					"ban:phrase:remove",
					"ban:ip:add",
					"ban:ip:check",
					"ban:ip:remove",
					"ban:url:add",
					"ban:url:check",
					"ban:url:remove",
					"ban:url_domain:add",
					"ban:url_domain:check",
					"ban:url_domain:remove",
					"ban:file_sha:add",
					"ban:file_sha:check",
					"ban:file_sha:remove",
					"ban:avatar_hash:add",
					"ban:avatar_hash:check",
					"ban:avatar_hash:remove",
					"ban:profile_substring:add",
					"ban:profile_substring:check",
					"ban:profile_substring:remove",
					"bulk:add:guild_members",
					"bulk:delete:users",
					"bulk:delete:user_messages",
					"bulk:update:guild_features",
					"bulk:update:user_flags",
					"discovery:remove",
					"discovery:review",
					"enforcement:annotate",
					"enforcement:view",
					"gateway:memory_stats",
					"gateway:reload_all",
					"gift_codes:generate",
					"guild:audit_log:view",
					"guild:ban_member",
					"guild:delete",
					"guild:force_add_member",
					"guild:kick_member",
					"guild:list:members",
					"guild:lookup",
					"guild:reload",
					"guild:shutdown",
					"guild:transfer_ownership",
					"guild:update:badges",
					"guild:update:features",
					"guild:update:name",
					"guild:update:settings",
					"guild:update:vanity",
					"instance:config:update",
					"instance:config:view",
					"instance:limit_config:update",
					"instance:limit_config:view",
					"message:delete_all",
					"message:delete",
					"message:lookup",
					"message:shred",
					"registration:review",
					"report:delete",
					"report:resolve",
					"report:view",
					"report:view:reporter_pii",
					"system_dm:send",
					"user:cancel:bulk_message_deletion",
					"user:create:password_reset_link",
					"user:delete:recovery_kit",
					"user:delete",
					"user:list:dm_channels",
					"user:list:guilds",
					"user:list:relationships",
					"user:list:sessions",
					"user:lookup",
					"user:remove:relationship",
					"user:view:contact_log",
					"user:view:dob",
					"user:view:email",
					"user:view:ip",
					"user:temp_ban",
					"user:update:badges",
					"user:update:bot_status",
					"user:update:dob",
					"user:update:email",
					"user:update:flags",
					"user:update:mfa",
					"user:update:profile",
					"user:update:traits",
					"user:update:username",
					"voice:join_token:create",
					"voice:join_token:list",
					"voice:join_token:revoke",
					"voice:region:create",
					"voice:region:delete",
					"voice:region:list",
					"voice:region:update",
					"voice:server:create",
					"voice:server:delete",
					"voice:server:list",
					"voice:server:update"
				]
			},
			"SearchUsersResponse": {
				"type": "object",
				"properties": {
					"users": {"type": "array", "items": {"$ref": "#/components/schemas/UserAdminResponseSchema"}},
					"total": {"type": "number"}
				},
				"required": ["users", "total"],
				"additionalProperties": false
			},
			"SendSystemDmRequest": {
				"type": "object",
				"properties": {
					"content": {
						"type": "string",
						"minLength": 1,
						"maxLength": 4000,
						"description": "Message content to send to each recipient"
					},
					"user_ids": {
						"description": "Recipient user IDs. Each receives the same content as a system DM.",
						"minItems": 1,
						"maxItems": 10000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"}
					},
					"all_users": {
						"description": "Send to every user account, skipping bots, system accounts, and deleted or disabled accounts",
						"type": "boolean"
					}
				},
				"required": ["content"]
			},
			"SendSystemDmResponse": {
				"type": "object",
				"properties": {
					"recipient_count": {
						"nullable": true,
						"description": "Number of recipients the worker job was queued to deliver to, or null when sending to all users",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					}
				},
				"required": ["recipient_count"],
				"additionalProperties": false
			},
			"AdminSsoSignInRequest": {
				"type": "object",
				"properties": {
					"id_token": {
						"type": "string",
						"minLength": 1,
						"maxLength": 16384,
						"description": "The ID token the admin panel got from the sign-on provider"
					},
					"nonce": {
						"type": "string",
						"minLength": 16,
						"maxLength": 256,
						"description": "The nonce the admin panel sent to the sign-on provider, which the ID token must have"
					}
				},
				"required": ["id_token", "nonce"]
			},
			"AdminSsoSignInResponse": {
				"type": "object",
				"properties": {
					"access_token": {"type": "string", "description": "The access token for API authorization"},
					"token_type": {"type": "string", "description": "The type of token, typically \"Bearer\""},
					"expires_in": {
						"description": "The number of seconds until the access token expires",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"refresh_token": {"type": "string", "description": "The refresh token for obtaining new access tokens"},
					"scope": {"type": "string", "description": "The space-separated list of granted scopes"},
					"user_id": {
						"description": "The account the admin signed in as",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					}
				},
				"required": ["access_token", "token_type", "expires_in", "refresh_token", "scope", "user_id"],
				"additionalProperties": false
			},
			"AdminSsoIdentityMigrateRequest": {
				"type": "object",
				"properties": {
					"from_provider_id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 2048,
						"description": "The provider ID the subjects are bound under now, such as the issuer URL used before a change"
					}
				},
				"required": ["from_provider_id"]
			},
			"AdminSsoIdentityMigrateResponse": {
				"type": "object",
				"properties": {
					"to_provider_id": {
						"type": "string",
						"description": "The provider ID in use, which the subjects were moved to"
					},
					"moved_count": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991,
						"description": "Subjects now bound under the provider in use"
					},
					"skipped_count": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991,
						"description": "Subjects left where they were, because another account already holds them under the provider in use or their account no longer exists"
					}
				},
				"required": ["to_provider_id", "moved_count", "skipped_count"],
				"additionalProperties": false
			},
			"AdminSsoIdentityLookupResponse": {
				"type": "object",
				"properties": {
					"sso_identity": {
						"nullable": true,
						"description": "The bound identity, or null when no account holds it",
						"allOf": [{"$ref": "#/components/schemas/AdminSsoIdentityResponse"}]
					}
				},
				"required": ["sso_identity"],
				"additionalProperties": false
			},
			"RefreshSearchIndexRequest": {
				"type": "object",
				"properties": {
					"guild_id": {
						"description": "Specific guild ID to reindex",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
					}
				}
			},
			"RefreshSearchIndexResponse": {
				"type": "object",
				"properties": {"success": {"type": "boolean", "enum": [true]}, "job_id": {"type": "string"}},
				"required": ["success", "job_id"],
				"additionalProperties": false
			},
			"IndexRefreshStatusResponse": {
				"anyOf": [
					{
						"type": "object",
						"properties": {"status": {"type": "string", "enum": ["not_found"], "description": "Job was not found"}},
						"required": ["status"],
						"additionalProperties": false
					},
					{
						"type": "object",
						"properties": {
							"status": {
								"description": "Current status of the index refresh job",
								"x-enumNames": ["in_progress", "completed", "failed"],
								"x-enumDescriptions": [
									"Index refresh is currently in progress",
									"Index refresh completed successfully",
									"Index refresh failed"
								],
								"enum": ["in_progress", "completed", "failed"],
								"type": "string"
							},
							"index_type": {"type": "string", "description": "Type of index being refreshed"},
							"phase": {
								"description": "The index an `all` rebuild is working on, or queued before it starts",
								"type": "string"
							},
							"total": {"description": "Total number of items to index", "type": "number"},
							"indexed": {"description": "Number of items indexed so far", "type": "number"},
							"started_at": {"description": "ISO 8601 timestamp when the job started", "type": "string"},
							"completed_at": {"description": "ISO 8601 timestamp when the job completed", "type": "string"},
							"failed_at": {"description": "ISO 8601 timestamp when the job failed", "type": "string"},
							"error": {"description": "Error message if the job failed", "type": "string"}
						},
						"required": ["status", "index_type"],
						"additionalProperties": false
					}
				]
			},
			"ReportNoteRequest": {
				"type": "object",
				"properties": {"body": {"description": "The internal note. Staff only", "type": "string"}},
				"required": ["body"]
			},
			"ReportNoteResponse": {
				"type": "object",
				"properties": {
					"note_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"author_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"body": {"type": "string"},
					"created_at": {"type": "string"}
				},
				"required": ["note_id", "author_id", "body", "created_at"],
				"additionalProperties": false
			},
			"ReportNoteListResponse": {
				"type": "object",
				"properties": {
					"notes": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/ReportNoteResponse"},
						"description": "The notes on the report, oldest first"
					}
				},
				"required": ["notes"],
				"additionalProperties": false
			},
			"ReportLegalHoldRequest": {
				"type": "object",
				"properties": {
					"legal_hold_until": {
						"nullable": true,
						"description": "When the hold ends, as an ISO 8601 timestamp in the future. Null clears the hold",
						"type": "string",
						"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:?\\d{2})?$"
					},
					"legal_hold_reason": {
						"description": "Why the report is kept past its retention period. Required to place a hold, ignored when clearing one",
						"nullable": true,
						"type": "string"
					}
				},
				"required": ["legal_hold_until"]
			},
			"ReportLegalHoldResponse": {
				"type": "object",
				"properties": {
					"report_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"legal_hold_until": {
						"nullable": true,
						"description": "When the hold ends. Null when the report has no hold",
						"type": "string"
					},
					"legal_hold_reason": {
						"nullable": true,
						"description": "Why the report is held. Null when the report has no hold",
						"type": "string"
					}
				},
				"required": ["report_id", "legal_hold_until", "legal_hold_reason"],
				"additionalProperties": false
			},
			"UpdateReportRequest": {
				"type": "object",
				"properties": {
					"status": {"type": "string", "enum": ["resolved"], "description": "The status to move the report to"},
					"public_comment": {"description": "Public comment to include with the resolution", "type": "string"},
					"notify_reporter": {
						"default": true,
						"description": "Whether to include the public comment in the notice sent to the reporter. The reporter is notified either way",
						"type": "boolean"
					},
					"resolution": {
						"description": "How the report was resolved",
						"x-enumNames": ["actioned", "no_violation", "duplicate"],
						"x-enumDescriptions": [
							"The report was valid and action was taken",
							"The report was reviewed and no violation was found",
							"The report repeats one that was already handled"
						],
						"enum": ["actioned", "no_violation", "duplicate"],
						"type": "string"
					},
					"outcome": {
						"description": "What happened to the reported content or account. Required for actioned, where no_violation is refused. Optional for no_violation, where it can only be no_violation. Refused for duplicate. The reporter is told it",
						"x-enumNames": ["removed", "warned", "restricted", "action_taken", "no_violation"],
						"x-enumDescriptions": [
							"The reported content, profile field or community was removed",
							"The account responsible for the reported item was warned",
							"The reported account was restricted and the content was left up",
							"Action was taken under the rules, and the reporter is not told which",
							"The reported content or account does not break the rules and was left as it is"
						],
						"enum": ["removed", "warned", "restricted", "action_taken", "no_violation"],
						"type": "string"
					},
					"duplicate_of": {
						"description": "The report this one repeats. Required for duplicate and refused otherwise. The reporter is told the outcome of that report, or nothing while it has none",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
					}
				},
				"required": ["status", "resolution"]
			},
			"ResolveReportResponse": {
				"type": "object",
				"properties": {
					"report_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"status": {"allOf": [{"$ref": "#/components/schemas/ReportStatus"}]},
					"resolved_at": {"nullable": true, "type": "string"},
					"public_comment": {"nullable": true, "type": "string"}
				},
				"required": ["report_id", "status", "resolved_at", "public_comment"],
				"additionalProperties": false
			},
			"ReportAdminResponseSchema": {
				"type": "object",
				"properties": {
					"report_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"reporter_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"reporter_tag": {"nullable": true, "type": "string"},
					"reporter_username": {"nullable": true, "type": "string"},
					"reporter_global_name": {"nullable": true, "type": "string"},
					"reporter_discriminator": {"nullable": true, "type": "string"},
					"reporter_email": {"nullable": true, "type": "string"},
					"reporter_full_legal_name": {"nullable": true, "type": "string"},
					"reporter_country_of_residence": {"nullable": true, "type": "string"},
					"reported_at": {"type": "string"},
					"status": {"allOf": [{"$ref": "#/components/schemas/ReportStatus"}]},
					"report_type": {"allOf": [{"$ref": "#/components/schemas/ReportType"}]},
					"category": {"nullable": true, "type": "string"},
					"additional_info": {"nullable": true, "type": "string"},
					"reported_user_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"reported_user_tag": {"nullable": true, "type": "string"},
					"reported_user_username": {"nullable": true, "type": "string"},
					"reported_user_global_name": {"nullable": true, "type": "string"},
					"reported_user_discriminator": {"nullable": true, "type": "string"},
					"reported_user_avatar_hash": {"nullable": true, "type": "string"},
					"reported_user_bot": {
						"description": "Whether the reported account is a bot. Null when there is no reported account or it no longer resolves.",
						"nullable": true,
						"type": "boolean"
					},
					"reported_webhook_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"reported_webhook_name": {"nullable": true, "type": "string"},
					"reported_webhook_avatar_hash": {"nullable": true, "type": "string"},
					"reported_webhook_default_name": {"nullable": true, "type": "string"},
					"reported_webhook_default_avatar_hash": {"nullable": true, "type": "string"},
					"reported_webhook_type": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/WebhookType"}]},
					"reported_webhook_application_id": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"reported_webhook_channel_id": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"reported_webhook_guild_id": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"reported_webhook_created_at": {"nullable": true, "type": "string"},
					"reported_webhook_creator_id": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"reported_webhook_creator_tag": {"nullable": true, "type": "string"},
					"reported_webhook_creator_username": {"nullable": true, "type": "string"},
					"reported_webhook_creator_global_name": {"nullable": true, "type": "string"},
					"reported_webhook_creator_discriminator": {"nullable": true, "type": "string"},
					"reported_webhook_creator_avatar_hash": {"nullable": true, "type": "string"},
					"reported_guild_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"reported_guild_name": {"nullable": true, "type": "string"},
					"reported_guild_icon_hash": {"nullable": true, "type": "string"},
					"reported_message_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"reported_channel_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"reported_channel_name": {"nullable": true, "type": "string"},
					"reported_channel_nsfw": {"nullable": true, "type": "boolean"},
					"reported_guild_invite_code": {"nullable": true, "type": "string"},
					"reported_guild_nsfw_level": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]},
					"reported_guild_nsfw": {"nullable": true, "type": "boolean"},
					"reported_guild_content_warning_level": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/ContentWarningLevel"}]
					},
					"reported_guild_content_warning_text": {"nullable": true, "type": "string", "maxLength": 200},
					"reported_channel_nsfw_override": {"nullable": true, "type": "boolean"},
					"reported_channel_content_warning_level": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/ContentWarningLevel"}]
					},
					"reported_channel_content_warning_text": {"nullable": true, "type": "string", "maxLength": 200},
					"reported_channel_effective_nsfw": {"nullable": true, "type": "boolean"},
					"reported_channel_effective_content_warning_level": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/ContentWarningLevel"}]
					},
					"reported_channel_effective_content_warning_text": {"nullable": true, "type": "string", "maxLength": 200},
					"resolved_at": {"nullable": true, "type": "string"},
					"resolved_by_admin_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"public_comment": {"nullable": true, "type": "string"},
					"mutual_dm_channel_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"message_context": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"channel_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"channel_nsfw": {"nullable": true, "type": "boolean"},
								"channel_content_warning_level": {
									"nullable": true,
									"allOf": [{"$ref": "#/components/schemas/ContentWarningLevel"}]
								},
								"channel_content_warning_text": {"nullable": true, "type": "string", "maxLength": 200},
								"guild_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
								"guild_nsfw_level": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]},
								"guild_nsfw": {"nullable": true, "type": "boolean"},
								"guild_content_warning_level": {
									"nullable": true,
									"allOf": [{"$ref": "#/components/schemas/ContentWarningLevel"}]
								},
								"guild_content_warning_text": {"nullable": true, "type": "string", "maxLength": 200},
								"content": {"type": "string"},
								"timestamp": {"type": "string"},
								"attachments": {
									"type": "array",
									"items": {
										"type": "object",
										"properties": {
											"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
											"filename": {"type": "string", "minLength": 1, "maxLength": 256},
											"url": {"type": "string", "minLength": 1, "maxLength": 2048},
											"nsfw": {"nullable": true, "type": "boolean"},
											"content_type": {"nullable": true, "type": "string"},
											"width": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
											"height": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
											"size": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/NonNegativeSafeIntegerType"}]}
										},
										"required": ["id", "filename", "url", "nsfw", "content_type", "width", "height"],
										"additionalProperties": false
									}
								},
								"author_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"author_username": {"type": "string"},
								"author_global_name": {"nullable": true, "type": "string"},
								"author_discriminator": {"type": "string"},
								"author_avatar": {"nullable": true, "type": "string"},
								"webhook_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
								"author_bot": {
									"description": "Whether the author is a bot account. Null for a webhook message or an account that no longer resolves.",
									"nullable": true,
									"type": "boolean"
								},
								"missing_attachments": {
									"description": "Attachments of the message that could not be copied into the report when it was filed",
									"type": "array",
									"items": {
										"type": "object",
										"properties": {
											"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
											"filename": {"type": "string", "minLength": 1, "maxLength": 256},
											"nsfw": {"nullable": true, "type": "boolean"},
											"content_type": {"nullable": true, "type": "string"},
											"width": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
											"height": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
											"size": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/NonNegativeSafeIntegerType"}]}
										},
										"required": ["id", "filename", "nsfw", "content_type", "width", "height", "size"],
										"additionalProperties": false
									}
								}
							},
							"required": [
								"id",
								"channel_id",
								"channel_nsfw",
								"guild_id",
								"guild_nsfw_level",
								"content",
								"timestamp",
								"attachments",
								"author_id",
								"author_username",
								"author_global_name",
								"author_discriminator",
								"author_avatar"
							],
							"additionalProperties": false
						}
					},
					"message_responses": {"type": "array", "items": {"$ref": "#/components/schemas/MessageResponseSchema"}},
					"reported_profile_snapshot": {
						"description": "The reported profile as it was when the report was filed. Returned by the report detail only. Null for a report filed before snapshots were stored.",
						"nullable": true,
						"type": "object",
						"properties": {
							"captured_at": {"type": "string", "description": "When the snapshot was taken"},
							"user": {
								"nullable": true,
								"description": "The reported account as it was when the report was filed",
								"type": "object",
								"properties": {
									"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
									"username": {"nullable": true, "type": "string"},
									"discriminator": {"nullable": true, "type": "string"},
									"global_name": {"nullable": true, "type": "string"},
									"bio": {"nullable": true, "type": "string"},
									"pronouns": {"nullable": true, "type": "string"},
									"custom_status": {"nullable": true, "type": "string"},
									"avatar": {
										"nullable": true,
										"type": "object",
										"properties": {
											"hash": {"type": "string", "description": "The asset hash at the time the report was filed"},
											"url": {
												"nullable": true,
												"description": "A download URL valid for 5 minutes. Null when the asset could not be copied into the report or no download URL could be made.",
												"type": "string",
												"minLength": 1,
												"maxLength": 2048
											}
										},
										"required": ["hash", "url"],
										"additionalProperties": false
									},
									"banner": {
										"nullable": true,
										"type": "object",
										"properties": {
											"hash": {"type": "string", "description": "The asset hash at the time the report was filed"},
											"url": {
												"nullable": true,
												"description": "A download URL valid for 5 minutes. Null when the asset could not be copied into the report or no download URL could be made.",
												"type": "string",
												"minLength": 1,
												"maxLength": 2048
											}
										},
										"required": ["hash", "url"],
										"additionalProperties": false
									}
								},
								"required": [
									"id",
									"username",
									"discriminator",
									"global_name",
									"bio",
									"pronouns",
									"custom_status",
									"avatar",
									"banner"
								],
								"additionalProperties": false
							},
							"member": {
								"nullable": true,
								"description": "The community profile of the reported account when the report was filed from within a community",
								"type": "object",
								"properties": {
									"guild_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
									"nick": {"nullable": true, "type": "string"},
									"bio": {"nullable": true, "type": "string"},
									"pronouns": {"nullable": true, "type": "string"},
									"joined_at": {"nullable": true, "type": "string"},
									"avatar": {
										"nullable": true,
										"type": "object",
										"properties": {
											"hash": {"type": "string", "description": "The asset hash at the time the report was filed"},
											"url": {
												"nullable": true,
												"description": "A download URL valid for 5 minutes. Null when the asset could not be copied into the report or no download URL could be made.",
												"type": "string",
												"minLength": 1,
												"maxLength": 2048
											}
										},
										"required": ["hash", "url"],
										"additionalProperties": false
									},
									"banner": {
										"nullable": true,
										"type": "object",
										"properties": {
											"hash": {"type": "string", "description": "The asset hash at the time the report was filed"},
											"url": {
												"nullable": true,
												"description": "A download URL valid for 5 minutes. Null when the asset could not be copied into the report or no download URL could be made.",
												"type": "string",
												"minLength": 1,
												"maxLength": 2048
											}
										},
										"required": ["hash", "url"],
										"additionalProperties": false
									}
								},
								"required": ["guild_id", "nick", "bio", "pronouns", "joined_at", "avatar", "banner"],
								"additionalProperties": false
							},
							"guild": {
								"nullable": true,
								"description": "The reported community as it was when the report was filed",
								"type": "object",
								"properties": {
									"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
									"name": {"nullable": true, "type": "string"},
									"vanity_url_code": {"nullable": true, "type": "string"},
									"icon": {
										"nullable": true,
										"type": "object",
										"properties": {
											"hash": {"type": "string", "description": "The asset hash at the time the report was filed"},
											"url": {
												"nullable": true,
												"description": "A download URL valid for 5 minutes. Null when the asset could not be copied into the report or no download URL could be made.",
												"type": "string",
												"minLength": 1,
												"maxLength": 2048
											}
										},
										"required": ["hash", "url"],
										"additionalProperties": false
									},
									"banner": {
										"nullable": true,
										"type": "object",
										"properties": {
											"hash": {"type": "string", "description": "The asset hash at the time the report was filed"},
											"url": {
												"nullable": true,
												"description": "A download URL valid for 5 minutes. Null when the asset could not be copied into the report or no download URL could be made.",
												"type": "string",
												"minLength": 1,
												"maxLength": 2048
											}
										},
										"required": ["hash", "url"],
										"additionalProperties": false
									},
									"splash": {
										"nullable": true,
										"type": "object",
										"properties": {
											"hash": {"type": "string", "description": "The asset hash at the time the report was filed"},
											"url": {
												"nullable": true,
												"description": "A download URL valid for 5 minutes. Null when the asset could not be copied into the report or no download URL could be made.",
												"type": "string",
												"minLength": 1,
												"maxLength": 2048
											}
										},
										"required": ["hash", "url"],
										"additionalProperties": false
									}
								},
								"required": ["id", "name", "vanity_url_code", "icon", "banner", "splash"],
								"additionalProperties": false
							}
						},
						"required": ["captured_at", "user", "member", "guild"],
						"additionalProperties": false
					},
					"legal_hold_until": {
						"description": "When the legal hold on the report ends. The report is kept past its retention period until then. Returned by the report detail only. Null when the report has no hold.",
						"nullable": true,
						"type": "string"
					},
					"legal_hold_reason": {
						"description": "Why the report is held. Returned by the report detail only. Null when the report has no hold.",
						"nullable": true,
						"type": "string"
					},
					"notes": {
						"description": "Internal staff notes on the report, oldest first. Returned by the report detail only.",
						"type": "array",
						"items": {"$ref": "#/components/schemas/ReportNoteResponse"}
					},
					"reason": {"nullable": true, "type": "string"},
					"reason_label": {"nullable": true, "type": "string"},
					"reason_highest_priority": {"nullable": true, "type": "boolean"},
					"flow": {
						"nullable": true,
						"type": "object",
						"properties": {
							"revision_hash": {"type": "string"},
							"surface": {"type": "string"},
							"locale": {"nullable": true, "type": "string"},
							"steps": {
								"type": "array",
								"items": {
									"type": "object",
									"properties": {
										"screen_id": {"type": "string"},
										"screen_title": {"type": "string"},
										"option_id": {"nullable": true, "type": "string"},
										"option_label": {"nullable": true, "type": "string"},
										"items": {
											"type": "array",
											"items": {
												"type": "object",
												"properties": {"id": {"type": "string"}, "label": {"type": "string"}},
												"required": ["id", "label"],
												"additionalProperties": false
											}
										}
									},
									"required": ["screen_id", "screen_title", "option_id", "option_label", "items"],
									"additionalProperties": false
								}
							}
						},
						"required": ["revision_hash", "surface", "locale", "steps"],
						"additionalProperties": false
					},
					"reporter_good_faith_confirmed": {"nullable": true, "type": "boolean"}
				},
				"required": [
					"report_id",
					"reporter_id",
					"reporter_tag",
					"reporter_username",
					"reporter_global_name",
					"reporter_discriminator",
					"reporter_email",
					"reporter_full_legal_name",
					"reporter_country_of_residence",
					"reported_at",
					"status",
					"report_type",
					"category",
					"additional_info",
					"reported_user_id",
					"reported_user_tag",
					"reported_user_username",
					"reported_user_global_name",
					"reported_user_discriminator",
					"reported_user_avatar_hash",
					"reported_guild_id",
					"reported_guild_name",
					"reported_guild_icon_hash",
					"reported_message_id",
					"reported_channel_id",
					"reported_channel_name",
					"reported_channel_nsfw",
					"reported_guild_invite_code",
					"reported_guild_nsfw_level",
					"resolved_at",
					"resolved_by_admin_id",
					"public_comment"
				],
				"additionalProperties": false
			},
			"AdminReportListResponse": {
				"type": "object",
				"properties": {
					"reports": {"type": "array", "items": {"$ref": "#/components/schemas/ReportAdminResponseSchema"}},
					"total": {"type": "number", "description": "Number of reports in the search index that match the filters"},
					"offset": {"type": "number", "description": "The offset this page was read from"},
					"limit": {"type": "number", "description": "The limit this page was read with"}
				},
				"required": ["reports", "total", "offset", "limit"],
				"additionalProperties": false
			},
			"AdminReportReasonsResponse": {
				"type": "object",
				"properties": {
					"reasons": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"key": {"type": "string"},
								"label": {"type": "string"},
								"highest_priority": {"type": "boolean"},
								"legacy_category_message": {"type": "string"},
								"legacy_category_user": {"type": "string"},
								"legacy_category_guild": {"type": "string"}
							},
							"required": [
								"key",
								"label",
								"highest_priority",
								"legacy_category_message",
								"legacy_category_user",
								"legacy_category_guild"
							],
							"additionalProperties": false
						}
					}
				},
				"required": ["reasons"],
				"additionalProperties": false
			},
			"AdminPaymentDisputeReversalRequest": {
				"type": "object",
				"properties": {
					"note": {"type": "string", "minLength": 1, "maxLength": 2000, "description": "What the appeal showed"}
				},
				"required": ["note"]
			},
			"AdminPaymentDisputeReviewResponse": {
				"type": "object",
				"properties": {
					"dispute_id": {"type": "string", "description": "Stripe dispute ID"},
					"product": {"allOf": [{"$ref": "#/components/schemas/AdminPaymentDisputeProductSchema"}]},
					"order_id": {
						"type": "string",
						"description": "Disputed order: the checkout session, or the invoice or payment intent of a renewal"
					},
					"invoice_number": {
						"nullable": true,
						"description": "Stripe's invoice number of the disputed payment, or the charge receipt number when it has no invoice",
						"type": "string"
					},
					"purchaser_id": {
						"description": "Account that made the disputed payment",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"is_gift": {"type": "boolean", "description": "Whether the purchase was a gift"},
					"reason": {"type": "string", "description": "Stripe dispute reason code, read as the ground the bank gave"},
					"amount_minor": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "Disputed amount in minor units"
					},
					"currency": {"type": "string", "description": "Currency of the disputed amount"},
					"evidence_submitted": {"type": "boolean", "description": "Whether evidence was submitted to the bank"},
					"evidence_due_by": {
						"nullable": true,
						"description": "Deadline Stripe gives for evidence to the bank",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"disputed_at": {
						"nullable": true,
						"description": "When the dispute opened",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"closed_at": {
						"nullable": true,
						"description": "When the dispute closed, null while it is open",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"outcome": {
						"nullable": true,
						"description": "Stripe status the dispute closed with: won also covers a dispute the buyer withdrew, lost means the money was returned",
						"type": "string"
					},
					"purchased_at": {
						"nullable": true,
						"description": "When the payment was made",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"perks_started_at": {
						"nullable": true,
						"description": "When what the payment bought, or the gift code, started",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"withdrawal_ends_at": {
						"nullable": true,
						"description": "When the withdrawal period ended",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"withdrawn_at": {
						"nullable": true,
						"description": "When the buyer withdrew",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"refunded_at": {
						"nullable": true,
						"description": "When the payment was first refunded",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"perks_removed_at": {
						"nullable": true,
						"description": "First Operator Pass perk removal under section 8 on or before the dispute date",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"status": {"allOf": [{"$ref": "#/components/schemas/AdminPaymentDisputeReviewStatusSchema"}]},
					"blockers": {
						"type": "array",
						"items": {"allOf": [{"$ref": "#/components/schemas/AdminPaymentDisputeReviewBlockerSchema"}]},
						"description": "Grounds that rule out finding it unjustified"
					},
					"warnable": {
						"type": "boolean",
						"description": "Whether it can be marked unjustified now: open, unreviewed, no blockers and enough time before the warning date"
					},
					"warning_deadline": {
						"nullable": true,
						"description": "Date the warning names, 3 days before evidence_due_by, or the date it would name while unreviewed",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"warning_email_sent_at": {
						"nullable": true,
						"description": "When the warning email was sent",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"warning_dm_sent_at": {
						"nullable": true,
						"description": "When the warning system message was sent",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"warned_at": {
						"nullable": true,
						"description": "When the warning was complete, once both the email and the system message were sent",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"enforcement_decision_id": {
						"nullable": true,
						"description": "Enforcement decision that closed the account after the dispute ended with the money returned",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"awaited_decision_id": {
						"nullable": true,
						"description": "Other closure decision that holds the account while the closure for this dispute waits. The closure is recorded when that decision ends without the account being deleted",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"decided_at": {
						"nullable": true,
						"description": "When a person decided",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"decided_by": {
						"nullable": true,
						"description": "Staff member who decided",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"decision_note": {
						"nullable": true,
						"description": "Note to the account holder given with the decision, shown in the warning and in the enforcement notice",
						"type": "string"
					},
					"reversed_at": {
						"nullable": true,
						"description": "When the unjustified finding was reversed after an appeal",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"reversed_by": {
						"nullable": true,
						"description": "Staff member who reversed it",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"reversal_note": {"nullable": true, "description": "Why it was reversed", "type": "string"},
					"dispute_purchase_at": {
						"nullable": true,
						"description": "When a purchase from a store or an older Stripe checkout was first applied while the dispute was open",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					}
				},
				"required": [
					"dispute_id",
					"product",
					"order_id",
					"invoice_number",
					"purchaser_id",
					"is_gift",
					"reason",
					"amount_minor",
					"currency",
					"evidence_submitted",
					"evidence_due_by",
					"disputed_at",
					"closed_at",
					"outcome",
					"purchased_at",
					"perks_started_at",
					"withdrawal_ends_at",
					"withdrawn_at",
					"refunded_at",
					"perks_removed_at",
					"status",
					"blockers",
					"warnable",
					"warning_deadline",
					"warning_email_sent_at",
					"warning_dm_sent_at",
					"warned_at",
					"enforcement_decision_id",
					"awaited_decision_id",
					"decided_at",
					"decided_by",
					"decision_note",
					"reversed_at",
					"reversed_by",
					"reversal_note",
					"dispute_purchase_at"
				],
				"additionalProperties": false
			},
			"AdminPaymentDisputeDecisionRequest": {
				"type": "object",
				"properties": {
					"decision": {
						"type": "string",
						"enum": ["unjustified", "justified"],
						"description": "Find the dispute unjustified, which warns the account by email and system message, or justified"
					},
					"note": {
						"default": null,
						"description": "Note to the account holder, shown in the warning and in the enforcement notice if the account is closed",
						"nullable": true,
						"type": "string",
						"maxLength": 500
					}
				},
				"required": ["decision"]
			},
			"AdminPaymentDisputeReviewListResponse": {
				"type": "object",
				"properties": {
					"reviews": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminPaymentDisputeReviewResponse"},
						"description": "Dispute reviews, newest first"
					}
				},
				"required": ["reviews"],
				"additionalProperties": false
			},
			"AdminOperatorPassWallStateResponse": {
				"type": "object",
				"properties": {
					"version": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "The published wall version"
					},
					"frozen": {"type": "boolean"},
					"frozen_at": {
						"nullable": true,
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"frozen_by": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"published_at": {
						"nullable": true,
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"entry_count": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "Entries in the snapshot that is being served"
					}
				},
				"required": ["version", "frozen", "frozen_at", "frozen_by", "published_at", "entry_count"],
				"additionalProperties": false
			},
			"AdminOperatorPassWallFreezeRequest": {
				"type": "object",
				"properties": {
					"frozen": {
						"type": "boolean",
						"description": "Whether to stop publishing and keep serving the current snapshot"
					}
				},
				"required": ["frozen"]
			},
			"AdminOperatorPassWallAsOfResponse": {
				"type": "object",
				"properties": {
					"at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"entries": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminOperatorPassWallAsOfEntryResponse"},
						"description": "The wall as it was at that time, in display order"
					}
				},
				"required": ["at", "entries"],
				"additionalProperties": false
			},
			"AdminOperatorPassVisionaryActivationsCsvResponse": {
				"type": "string",
				"format": "binary",
				"description": "CSV of every Visionary turn-on with user_id, visionary_sequence, visionary_since, activated_at, terms_version, certificate_number, issued_at, ended_at and end_reason"
			},
			"AdminOperatorPassReleasePublishRequest": {
				"type": "object",
				"properties": {
					"tag": {
						"type": "string",
						"minLength": 1,
						"maxLength": 100,
						"description": "The tag of the Fluxer release the list ships in"
					},
					"released_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "When the release shipped"
					}
				},
				"required": ["tag", "released_at"]
			},
			"AdminOperatorPassReleaseFileResponse": {
				"type": "object",
				"properties": {
					"release": {"$ref": "#/components/schemas/AdminOperatorPassStoredReleaseResponse"},
					"operators_file": {"type": "string", "description": "The OPERATORS file to commit"},
					"tasks": {
						"type": "array",
						"items": {"type": "string"},
						"description": "Edits to make by hand, such as release notes changes after an erasure"
					}
				},
				"required": ["release", "operators_file", "tasks"],
				"additionalProperties": false
			},
			"AdminOperatorPassReleasePreviewResponse": {
				"type": "object",
				"properties": {
					"year": {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991},
					"cutoff_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "Passes delivered by then go into the list"
					},
					"publish_by": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "The latest date to publish the list"
					},
					"can_publish": {
						"type": "boolean",
						"description": "Whether the cut-off has passed and the list is not published yet"
					},
					"published": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/AdminOperatorPassStoredReleaseResponse"}]
					},
					"candidates": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminOperatorPassReleaseCandidateResponse"},
						"description": "Names that go into the list, sorted"
					}
				},
				"required": ["year", "cutoff_at", "publish_by", "can_publish", "published", "candidates"],
				"additionalProperties": false
			},
			"AdminOperatorPassWithdrawRequest": {
				"type": "object",
				"properties": {
					"name": {
						"type": "string",
						"minLength": 1,
						"maxLength": 200,
						"description": "Name of the buyer who withdraws"
					},
					"received_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "When Fluxer received the withdrawal"
					},
					"channel": {"allOf": [{"$ref": "#/components/schemas/AdminOperatorPassWithdrawalChannelSchema"}]}
				},
				"required": ["name", "received_at", "channel"]
			},
			"OperatorPassPurchaseResponse": {
				"type": "object",
				"properties": {
					"id": {"type": "string", "description": "Identifier of the purchase, the Stripe checkout session ID"},
					"status": {"allOf": [{"$ref": "#/components/schemas/OperatorPassPurchaseStatusSchema"}]},
					"order_number": {
						"nullable": true,
						"description": "Order number shown on the purchase confirmation and the withdrawal receipt, null when not known",
						"type": "string"
					},
					"quantity": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "How many passes the purchase bought"
					},
					"amount_minor": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "Price paid for the passes in minor units, tax included"
					},
					"currency": {"allOf": [{"$ref": "#/components/schemas/OperatorPassCurrencySchema"}]},
					"purchased_at": {
						"nullable": true,
						"description": "When the payment settled, null while pending",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"delivered_at": {
						"nullable": true,
						"description": "When the certificate was delivered, null while pending",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"waiver_consent_at": {
						"nullable": true,
						"description": "When the buyer ticked the boxes at checkout",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"withdrawal_country": {
						"nullable": true,
						"description": "Country whose withdrawal right applies to the purchase, null when the waiver applies",
						"type": "string"
					},
					"withdrawal_ends_at": {
						"nullable": true,
						"description": "When the right of withdrawal ends, null when the purchase has none: a delivered certificate outside a withdrawal_country. Under a country rule this is the end of withdrawal_ends_on in America/Rio_Branco",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"withdrawal_ends_on": {
						"description": "The last day the buyer can withdraw, as YYYY-MM-DD in America/Rio_Branco. Show it as is, without converting time zones",
						"nullable": true,
						"type": "string",
						"format": "date",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
					},
					"certificate_available": {
						"type": "boolean",
						"description": "Whether the purchase has at least one certificate page that is not cancelled"
					},
					"withdrawn_at": {
						"nullable": true,
						"description": "When the buyer last withdrew",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"pages": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"pass_id": {"type": "string", "description": "ID of the pass the page belongs to"},
								"name": {
									"type": "string",
									"description": "The name on the newest copy of this page, which is the name chosen at checkout unless the page was issued again with a new name"
								},
								"certificate_url": {
									"nullable": true,
									"description": "The private link of this page on the marketing site, which shows the page and opens its PDF. Null when the page has no link",
									"type": "string"
								}
							},
							"required": ["pass_id", "name", "certificate_url"],
							"additionalProperties": false
						},
						"description": "Certificate pages of the purchase that are not cancelled, in page order. Empty before delivery"
					},
					"can_withdraw": {
						"type": "boolean",
						"description": "Whether the withdraw button for the purchase is available now, before delivery or while a country rule keeps the right of withdrawal"
					},
					"refundable_minor": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "What withdrawing from the whole purchase now refunds, in minor units, tax included. It leaves out passes already refunded or withdrawn, and is 0 when can_withdraw is false"
					},
					"certificate_emailed": {
						"type": "boolean",
						"description": "Whether the email with the certificate attached was sent"
					},
					"refusal_reason": {
						"nullable": true,
						"description": "Why the purchase was refunded before delivery, null when it was not refused. Only names_missing also sends the buyer an email that explains the refusal",
						"type": "string",
						"enum": ["removed", "names_missing", "email_undeliverable"]
					}
				},
				"required": [
					"id",
					"status",
					"order_number",
					"quantity",
					"amount_minor",
					"currency",
					"purchased_at",
					"delivered_at",
					"waiver_consent_at",
					"withdrawal_country",
					"withdrawal_ends_at",
					"certificate_available",
					"withdrawn_at",
					"pages",
					"can_withdraw",
					"refundable_minor",
					"certificate_emailed",
					"refusal_reason"
				],
				"additionalProperties": false
			},
			"AdminOperatorPassDeliveriesCsvResponse": {
				"type": "string",
				"format": "binary",
				"description": "CSV with one row per pass of every Operator Pass purchase delivered in the month, in the operator-pass-leveranser format the books read"
			},
			"AdminOperatorPassCertificateReissueRequest": {
				"type": "object",
				"properties": {
					"holder_name": {
						"description": "The name to print on the new copy",
						"allOf": [{"$ref": "#/components/schemas/OperatorPassCertificateNameType"}]
					},
					"reason": {"allOf": [{"$ref": "#/components/schemas/AdminOperatorPassCertificateReissueReasonSchema"}]}
				},
				"required": ["holder_name", "reason"]
			},
			"AdminOperatorPassCertificateReissueResponse": {
				"type": "object",
				"properties": {
					"pass_id": {"type": "string", "description": "The pass ID"},
					"number": {
						"type": "integer",
						"minimum": 0,
						"exclusiveMinimum": true,
						"maximum": 9007199254740991,
						"description": "The certificate number, the same on every copy"
					},
					"version": {
						"type": "integer",
						"minimum": 0,
						"exclusiveMinimum": true,
						"maximum": 9007199254740991,
						"description": "The version of the new copy"
					},
					"holder_name": {"type": "string", "description": "The name printed on the new copy"},
					"issued_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "When the new copy was issued"
					},
					"reissue_reason": {
						"allOf": [{"$ref": "#/components/schemas/AdminOperatorPassCertificateReissueReasonSchema"}]
					}
				},
				"required": ["pass_id", "number", "version", "holder_name", "issued_at", "reissue_reason"],
				"additionalProperties": false
			},
			"MessageShredStatusResponse": {
				"anyOf": [
					{
						"type": "object",
						"properties": {"status": {"type": "string", "enum": ["not_found"]}},
						"required": ["status"],
						"additionalProperties": false
					},
					{
						"type": "object",
						"properties": {
							"status": {
								"description": "Current message shred job status",
								"x-enumNames": ["in_progress", "completed", "failed"],
								"x-enumDescriptions": [
									"Shredding is currently running",
									"Shredding completed successfully",
									"Shredding failed"
								],
								"enum": ["in_progress", "completed", "failed"],
								"type": "string"
							},
							"requested": {"$ref": "#/components/schemas/Int32Type"},
							"total": {"$ref": "#/components/schemas/Int32Type"},
							"processed": {"$ref": "#/components/schemas/Int32Type"},
							"skipped": {"$ref": "#/components/schemas/Int32Type"},
							"started_at": {"type": "string"},
							"completed_at": {"type": "string"},
							"failed_at": {"type": "string"},
							"error": {"type": "string", "minLength": 1, "maxLength": 4000}
						},
						"required": ["status", "requested", "total", "processed", "skipped"],
						"additionalProperties": false
					}
				]
			},
			"AdminMessageSearchResponse": {
				"anyOf": [
					{
						"type": "object",
						"properties": {
							"messages": {
								"maxItems": 100,
								"type": "array",
								"items": {"$ref": "#/components/schemas/AdminMessageSchema"}
							},
							"message_responses": {
								"maxItems": 100,
								"type": "array",
								"items": {"$ref": "#/components/schemas/MessageResponseSchema"}
							},
							"total": {"type": "integer", "minimum": 0, "maximum": 9007199254740991}
						},
						"required": ["messages", "total"],
						"additionalProperties": false
					},
					{"$ref": "#/components/schemas/LookupMessageResponse"}
				]
			},
			"LimitConfigUpdateRequest": {
				"type": "object",
				"properties": {
					"limit_config": {
						"type": "object",
						"properties": {
							"traitDefinitions": {
								"description": "Trait definitions used by rules",
								"type": "array",
								"items": {"type": "string"}
							},
							"rules": {
								"type": "array",
								"items": {
									"type": "object",
									"properties": {
										"id": {"type": "string", "minLength": 1, "description": "Unique rule identifier"},
										"filters": {
											"description": "Optional filters that scope the rule",
											"type": "object",
											"properties": {
												"traits": {
													"description": "Trait filters that must match for the rule to apply",
													"type": "array",
													"items": {"type": "string"}
												},
												"guildFeatures": {
													"description": "Guild feature flags required for the rule to apply",
													"type": "array",
													"items": {"type": "string"}
												}
											}
										},
										"limits": {
											"type": "object",
											"additionalProperties": {"$ref": "#/components/schemas/NonNegativeSafeIntegerType"},
											"description": "Per-limit key values"
										}
									},
									"required": ["id", "limits"]
								},
								"description": "Limit rules"
							}
						},
						"required": ["rules"],
						"description": "New limit configuration snapshot"
					}
				},
				"required": ["limit_config"]
			},
			"LimitConfigGetResponse": {
				"type": "object",
				"properties": {
					"limit_config": {
						"type": "object",
						"properties": {
							"traitDefinitions": {"type": "array", "items": {"type": "string"}},
							"rules": {
								"type": "array",
								"items": {
									"type": "object",
									"properties": {
										"id": {"type": "string", "minLength": 1, "description": "Unique rule identifier"},
										"filters": {
											"description": "Optional filters that scope the rule",
											"type": "object",
											"properties": {
												"traits": {
													"description": "Trait filters that must match for the rule to apply",
													"type": "array",
													"items": {"type": "string"}
												},
												"guildFeatures": {
													"description": "Guild feature flags required for the rule to apply",
													"type": "array",
													"items": {"type": "string"}
												}
											},
											"additionalProperties": false
										},
										"limits": {
											"type": "object",
											"additionalProperties": {"$ref": "#/components/schemas/NonNegativeSafeIntegerType"},
											"description": "Per-limit key values"
										},
										"modifiedFields": {"type": "array", "items": {"type": "string"}}
									},
									"required": ["id", "limits"],
									"additionalProperties": false
								}
							}
						},
						"required": ["traitDefinitions", "rules"],
						"additionalProperties": false
					},
					"limit_config_json": {"type": "string"},
					"self_hosted": {"type": "boolean"},
					"defaults": {
						"type": "object",
						"additionalProperties": {"type": "object", "additionalProperties": {"type": "number"}}
					},
					"metadata": {
						"type": "object",
						"additionalProperties": {
							"type": "object",
							"properties": {
								"key": {"type": "string"},
								"label": {"type": "string"},
								"description": {"type": "string"},
								"category": {"type": "string"},
								"scope": {"type": "string"},
								"isToggle": {"type": "boolean"},
								"unit": {"type": "string", "enum": ["bytes", "count", "bps"]},
								"min": {"type": "number"},
								"max": {"type": "number"}
							},
							"required": ["key", "label", "description", "category", "scope", "isToggle"],
							"additionalProperties": false
						},
						"required": [
							"avatar_max_size",
							"emoji_max_size",
							"feature_animated_avatar",
							"feature_animated_banner",
							"feature_custom_discriminator",
							"feature_custom_notification_sounds",
							"feature_early_access",
							"feature_global_expressions",
							"feature_guild_create",
							"feature_higher_video_quality",
							"feature_per_guild_profiles",
							"feature_voice_entrance_sounds",
							"guild_visit_history_days_unverified",
							"max_attachments_per_message",
							"max_bio_length",
							"max_bookmarks",
							"max_bot_attachment_file_size",
							"max_channels_per_category",
							"max_custom_backgrounds",
							"max_embeds_per_message",
							"max_favorite_meme_tags",
							"max_favorite_memes",
							"max_group_dm_recipients",
							"max_group_dms_per_user",
							"max_guild_channels",
							"max_guild_emojis",
							"max_guild_emojis_animated_more",
							"max_guild_emojis_animated",
							"max_guild_emojis_static_more",
							"max_guild_emojis_static",
							"max_guild_invites",
							"max_guild_members",
							"max_guild_roles",
							"max_guild_stickers_more",
							"max_guild_stickers",
							"max_guild_visits",
							"max_guilds",
							"max_attachment_file_size",
							"max_message_length",
							"max_private_channels_per_user",
							"max_reactions_per_message",
							"max_relationships",
							"max_screen_share_bitrate",
							"max_users_per_message_reaction",
							"max_voice_message_duration",
							"max_webhooks_per_channel",
							"max_webhooks_per_guild",
							"sticker_max_size"
						]
					},
					"categories": {"type": "object", "additionalProperties": {"type": "string"}},
					"limit_keys": {"type": "array", "items": {"type": "string"}},
					"bounds": {
						"type": "object",
						"additionalProperties": {
							"type": "object",
							"properties": {"min": {"type": "number"}, "max": {"type": "number"}},
							"required": ["min", "max"],
							"additionalProperties": false
						}
					}
				},
				"required": [
					"limit_config",
					"limit_config_json",
					"self_hosted",
					"defaults",
					"metadata",
					"categories",
					"limit_keys"
				],
				"additionalProperties": false
			},
			"CancelJobResponseSchema": {
				"type": "object",
				"properties": {
					"cancelled": {
						"type": "boolean",
						"description": "True if a cancel request was recorded; false if the job was already terminal."
					}
				},
				"required": ["cancelled"],
				"additionalProperties": false
			},
			"GetJobResponseSchema": {
				"type": "object",
				"properties": {"job": {"$ref": "#/components/schemas/JobLedgerEntrySchema"}},
				"required": ["job"],
				"additionalProperties": false
			},
			"ActiveJobsResponseSchema": {
				"type": "object",
				"properties": {"jobs": {"type": "array", "items": {"$ref": "#/components/schemas/JobLedgerEntrySchema"}}},
				"required": ["jobs"],
				"additionalProperties": false
			},
			"ListJobsResponseSchema": {
				"type": "object",
				"properties": {
					"jobs": {"type": "array", "items": {"$ref": "#/components/schemas/JobLedgerEntrySchema"}},
					"next_cursor": {
						"nullable": true,
						"type": "object",
						"properties": {
							"bucket_day": {"type": "string"},
							"created_at": {"type": "string"},
							"job_id": {"$ref": "#/components/schemas/SnowflakeStringType"}
						},
						"required": ["bucket_day", "created_at", "job_id"],
						"additionalProperties": false
					}
				},
				"required": ["jobs", "next_cursor"],
				"additionalProperties": false
			},
			"UpdateRegistrationUrlRequest": {
				"type": "object",
				"properties": {
					"label": {
						"nullable": true,
						"description": "New label, or null or empty to clear it",
						"type": "string",
						"maxLength": 120
					}
				},
				"required": ["label"]
			},
			"InstanceConfigResponse": {
				"type": "object",
				"properties": {
					"sso": {
						"type": "object",
						"properties": {
							"enabled": {"type": "boolean"},
							"enforced": {"type": "boolean"},
							"display_name": {"nullable": true, "type": "string"},
							"button_label": {"nullable": true, "type": "string"},
							"issuer": {"nullable": true, "type": "string"},
							"authorization_url": {"nullable": true, "type": "string"},
							"token_url": {"nullable": true, "type": "string"},
							"userinfo_url": {"nullable": true, "type": "string"},
							"jwks_url": {"nullable": true, "type": "string"},
							"client_id": {"nullable": true, "type": "string"},
							"client_secret_set": {"type": "boolean"},
							"scope": {"nullable": true, "type": "string"},
							"allowed_domains": {"maxItems": 100, "type": "array", "items": {"type": "string"}},
							"auto_provision": {"type": "boolean"},
							"username_from_provider": {
								"type": "boolean",
								"description": "Each SSO sign-in sets the username from the provider, and people can't change it in Fluxer. Only on username instances"
							},
							"redirect_uri": {"nullable": true, "type": "string"},
							"groups_claim": {
								"nullable": true,
								"type": "string",
								"maxLength": 128,
								"description": "The claim that lists the groups of a member. Empty or null uses `groups`"
							},
							"group_role_mappings": {
								"maxItems": 100,
								"type": "array",
								"items": {
									"type": "object",
									"properties": {
										"group": {
											"type": "string",
											"minLength": 1,
											"maxLength": 256,
											"description": "A group name exactly as the provider sends it in the groups claim, such as `staff` or `/engineering/devs`"
										},
										"role_id": {
											"description": "The role in the single community that members of the group get",
											"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
										}
									},
									"required": ["group", "role_id"],
									"additionalProperties": false
								},
								"description": "Groups whose members get a role in the single community. Every listed role is managed by single sign-on, and is added or removed to match the groups at each sign-in"
							}
						},
						"required": [
							"enabled",
							"enforced",
							"display_name",
							"button_label",
							"issuer",
							"authorization_url",
							"token_url",
							"userinfo_url",
							"jwks_url",
							"client_id",
							"client_secret_set",
							"scope",
							"allowed_domains",
							"auto_provision",
							"username_from_provider",
							"redirect_uri",
							"groups_claim",
							"group_role_mappings"
						],
						"additionalProperties": false
					},
					"gateway_rollout": {"$ref": "#/components/schemas/GatewayRolloutConfigResponse"},
					"push_relay": {"$ref": "#/components/schemas/PushRelayConfigResponse"},
					"domain_migration": {"$ref": "#/components/schemas/DomainMigrationConfigResponse"},
					"voice_p2p": {"$ref": "#/components/schemas/VoiceP2pConfigResponse"},
					"captcha": {"$ref": "#/components/schemas/CaptchaConfigResponse"},
					"auth": {
						"type": "object",
						"properties": {
							"identifier_first": {"allOf": [{"$ref": "#/components/schemas/IdentifierFirstModeSchema"}]},
							"instant_accounts": {
								"type": "object",
								"properties": {
									"enabled": {
										"type": "boolean",
										"description": "Whether accounts can be created from just a display name. Needs the captcha to be on"
									},
									"pow_escalation_per_hour": {
										"type": "integer",
										"minimum": 10,
										"maximum": 1000000,
										"description": "Every this many accounts created from a display name in the current hour doubles the captcha cost"
									}
								},
								"required": ["enabled", "pow_escalation_per_hour"],
								"additionalProperties": false
							},
							"instant_account_availability": {
								"description": "Whether accounts can be created from just a display name through public sign-up right now, and why not",
								"allOf": [{"$ref": "#/components/schemas/InstantAccountAvailabilitySchema"}]
							}
						},
						"required": ["identifier_first", "instant_accounts", "instant_account_availability"],
						"additionalProperties": false
					},
					"accounts": {"$ref": "#/components/schemas/AccountsConfigSchema"},
					"guild_visits": {"$ref": "#/components/schemas/GuildVisitsConfigResponse"},
					"experiment_delivery": {"$ref": "#/components/schemas/ExperimentDeliveryConfigResponse"},
					"registration": {
						"type": "object",
						"properties": {
							"mode": {"allOf": [{"$ref": "#/components/schemas/InstanceRegistrationModeSchema"}]},
							"admin_registration_urls_enabled": {"type": "boolean"},
							"allowed_email_domains": {
								"maxItems": 100,
								"type": "array",
								"items": {"type": "string"},
								"description": "Email domains that public sign-ups and email changes must use. Empty allows any domain"
							},
							"urls": {
								"type": "array",
								"items": {
									"type": "object",
									"properties": {
										"id": {"type": "string", "minLength": 1, "maxLength": 128},
										"label": {"nullable": true, "type": "string"},
										"created_by_user_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
										"created_at": {
											"type": "string",
											"format": "date-time",
											"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
										},
										"expires_at": {
											"nullable": true,
											"type": "string",
											"format": "date-time",
											"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
										},
										"max_uses": {"nullable": true, "type": "integer", "minimum": 1, "maximum": 9007199254740991},
										"use_count": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
										"revoked_at": {
											"nullable": true,
											"type": "string",
											"format": "date-time",
											"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
										},
										"approval_required": {"type": "boolean"},
										"last_used_at": {
											"nullable": true,
											"type": "string",
											"format": "date-time",
											"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
										},
										"last_used_by_user_id": {
											"nullable": true,
											"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
										},
										"invite_code": {
											"nullable": true,
											"description": "Invite that people who sign up through the link accept",
											"type": "string",
											"maxLength": 64
										}
									},
									"required": [
										"id",
										"label",
										"created_by_user_id",
										"created_at",
										"expires_at",
										"max_uses",
										"use_count",
										"revoked_at",
										"approval_required",
										"last_used_at",
										"last_used_by_user_id",
										"invite_code"
									],
									"additionalProperties": false
								}
							}
						},
						"required": ["mode", "admin_registration_urls_enabled", "allowed_email_domains", "urls"],
						"additionalProperties": false
					},
					"self_hosted": {"type": "boolean"},
					"account_identity": {
						"type": "object",
						"properties": {
							"mode": {
								"description": "Sign-in method in effect on this instance",
								"allOf": [{"$ref": "#/components/schemas/AccountIdentityModeSchema"}]
							},
							"locked": {"type": "boolean", "description": "Whether the sign-in method can no longer change"},
							"tag_style": {"allOf": [{"$ref": "#/components/schemas/TagStyleSchema"}]},
							"lock_reason": {
								"nullable": true,
								"description": "Why the sign-in method can no longer change, or null while it still can",
								"allOf": [{"$ref": "#/components/schemas/AccountIdentityLockReasonSchema"}]
							}
						},
						"required": ["mode", "locked", "tag_style", "lock_reason"],
						"additionalProperties": false
					},
					"app_public": {
						"type": "object",
						"properties": {
							"branding": {
								"type": "object",
								"properties": {
									"product_name": {"type": "string"},
									"icon_url": {"nullable": true, "type": "string"},
									"symbol_url": {"nullable": true, "type": "string"},
									"logo_url": {"nullable": true, "type": "string"},
									"wordmark_url": {"nullable": true, "type": "string"},
									"favicon_url": {"nullable": true, "type": "string"},
									"favicon_dark_url": {"nullable": true, "type": "string"},
									"theme_color": {"nullable": true, "type": "string"},
									"status_page_url": {"nullable": true, "type": "string"},
									"status_page_incident_history_url": {"nullable": true, "type": "string"},
									"premium_product_name": {"type": "string"},
									"premium_info_url": {"nullable": true, "type": "string"},
									"sign_in_backdrop_url": {"nullable": true, "type": "string"},
									"premium_page_color": {"nullable": true, "type": "string"},
									"premium_showcase_expressions_url": {"nullable": true, "type": "string"},
									"premium_showcase_profile_url": {"nullable": true, "type": "string"},
									"premium_showcase_stream_url": {"nullable": true, "type": "string"},
									"premium_showcase_upload_url": {"nullable": true, "type": "string"},
									"custom_css": {"nullable": true, "type": "string"},
									"upload_limit_message": {"nullable": true, "type": "string"},
									"trusted_domains": {"type": "array", "items": {"type": "string"}}
								},
								"required": [
									"product_name",
									"icon_url",
									"symbol_url",
									"logo_url",
									"wordmark_url",
									"favicon_url",
									"favicon_dark_url",
									"theme_color",
									"status_page_url",
									"status_page_incident_history_url",
									"premium_product_name",
									"premium_info_url",
									"sign_in_backdrop_url",
									"premium_page_color",
									"premium_showcase_expressions_url",
									"premium_showcase_profile_url",
									"premium_showcase_stream_url",
									"premium_showcase_upload_url",
									"custom_css",
									"upload_limit_message",
									"trusted_domains"
								],
								"additionalProperties": false
							},
							"setup": {
								"type": "object",
								"properties": {"configured": {"type": "boolean"}},
								"required": ["configured"],
								"additionalProperties": false
							},
							"legal": {
								"type": "object",
								"properties": {
									"terms_url": {"nullable": true, "type": "string"},
									"privacy_url": {"nullable": true, "type": "string"},
									"guidelines_url": {"nullable": true, "type": "string"}
								},
								"required": ["terms_url", "privacy_url", "guidelines_url"],
								"additionalProperties": false
							},
							"registration": {
								"type": "object",
								"properties": {
									"collect_date_of_birth": {
										"type": "boolean",
										"description": "Deprecated, derived from accounts.date_of_birth not being off"
									}
								},
								"required": ["collect_date_of_birth"],
								"additionalProperties": false
							}
						},
						"required": ["branding", "setup", "legal", "registration"],
						"additionalProperties": false
					},
					"policy": {
						"type": "object",
						"properties": {
							"single_community_enabled": {"type": "boolean"},
							"single_community_guild_id": {"nullable": true, "type": "string"},
							"direct_messages_disabled": {"type": "boolean"},
							"direct_messages_locked": {"type": "boolean"},
							"friends_disabled": {
								"type": "boolean",
								"description": "Whether friend requests are disabled instance-wide"
							},
							"personal_notes_enabled": {"type": "boolean", "description": "Whether people can use personal notes"},
							"guild_create_access": {"type": "boolean"},
							"premium_mode": {"type": "string", "enum": ["mirror", "everyone"]},
							"services": {
								"type": "object",
								"properties": {
									"gif_enabled": {"nullable": true, "type": "boolean"},
									"youtube_enabled": {"nullable": true, "type": "boolean"},
									"bluesky_enabled": {"nullable": true, "type": "boolean"}
								},
								"required": ["gif_enabled", "youtube_enabled", "bluesky_enabled"],
								"additionalProperties": false
							},
							"services_resolved": {
								"type": "object",
								"properties": {
									"gif_enabled": {"type": "boolean"},
									"youtube_enabled": {"type": "boolean"},
									"bluesky_enabled": {"type": "boolean"}
								},
								"required": ["gif_enabled", "youtube_enabled", "bluesky_enabled"],
								"additionalProperties": false
							},
							"services_available": {
								"type": "object",
								"properties": {
									"gif": {"type": "boolean"},
									"youtube": {"type": "boolean"},
									"bluesky": {"type": "boolean"}
								},
								"required": ["gif", "youtube", "bluesky"],
								"additionalProperties": false
							}
						},
						"required": [
							"single_community_enabled",
							"single_community_guild_id",
							"direct_messages_disabled",
							"direct_messages_locked",
							"friends_disabled",
							"personal_notes_enabled",
							"guild_create_access",
							"premium_mode",
							"services",
							"services_resolved",
							"services_available"
						],
						"additionalProperties": false
					},
					"integrations": {
						"type": "object",
						"properties": {
							"gif": {
								"type": "object",
								"properties": {"klipy_api_key_set": {"type": "boolean"}, "effective_available": {"type": "boolean"}},
								"required": ["klipy_api_key_set", "effective_available"],
								"additionalProperties": false
							},
							"youtube": {
								"type": "object",
								"properties": {"api_key_set": {"type": "boolean"}, "effective_available": {"type": "boolean"}},
								"required": ["api_key_set", "effective_available"],
								"additionalProperties": false
							},
							"email": {
								"type": "object",
								"properties": {
									"delivery": {
										"nullable": true,
										"description": "Saved delivery mode, or null to use the environment",
										"allOf": [{"$ref": "#/components/schemas/EmailDeliveryModeSchema"}]
									},
									"effective_delivery": {"allOf": [{"$ref": "#/components/schemas/EmailDeliveryModeSchema"}]},
									"delivery_state": {"allOf": [{"$ref": "#/components/schemas/EmailDeliveryStateSchema"}]},
									"enabled": {"nullable": true, "description": "Deprecated, use delivery", "type": "boolean"},
									"effective_enabled": {
										"type": "boolean",
										"description": "Whether the instance sends email, same as delivery_state being on"
									},
									"provider": {
										"nullable": true,
										"type": "string",
										"enum": ["smtp", "none"],
										"description": "Deprecated, use delivery"
									},
									"effective_provider": {
										"type": "string",
										"enum": ["smtp", "none"],
										"description": "Deprecated, use delivery"
									},
									"from_email": {"nullable": true, "type": "string"},
									"from_name": {"nullable": true, "type": "string"},
									"smtp": {
										"type": "object",
										"properties": {
											"host": {"nullable": true, "type": "string"},
											"port": {"nullable": true, "type": "integer", "minimum": 1, "maximum": 65535},
											"username": {"nullable": true, "type": "string"},
											"password_set": {"type": "boolean"},
											"tls_mode": {
												"nullable": true,
												"description": "Saved TLS mode, or null to pick one from the port",
												"x-enumNames": ["IMPLICIT", "STARTTLS", "OPPORTUNISTIC", "NONE"],
												"x-enumDescriptions": [
													"TLS from the first byte, usually on port 465",
													"Plain connection that must upgrade with STARTTLS, usually on port 587",
													"Plain connection upgraded with STARTTLS when the server offers it",
													"No TLS, even when the server offers STARTTLS"
												],
												"enum": ["implicit", "starttls", "opportunistic", "none"],
												"type": "string"
											},
											"effective_tls_mode": {
												"nullable": true,
												"description": "How the SMTP connection is encrypted",
												"x-enumNames": ["IMPLICIT", "STARTTLS", "OPPORTUNISTIC", "NONE"],
												"x-enumDescriptions": [
													"TLS from the first byte, usually on port 465",
													"Plain connection that must upgrade with STARTTLS, usually on port 587",
													"Plain connection upgraded with STARTTLS when the server offers it",
													"No TLS, even when the server offers STARTTLS"
												],
												"enum": ["implicit", "starttls", "opportunistic", "none"],
												"type": "string"
											}
										},
										"required": ["host", "port", "username", "password_set", "tls_mode", "effective_tls_mode"],
										"additionalProperties": false
									},
									"disable_new_ip_authorization": {"type": "boolean"},
									"effective_disable_new_ip_authorization": {"type": "boolean"}
								},
								"required": [
									"delivery",
									"effective_delivery",
									"delivery_state",
									"enabled",
									"effective_enabled",
									"provider",
									"effective_provider",
									"from_email",
									"from_name",
									"smtp",
									"disable_new_ip_authorization",
									"effective_disable_new_ip_authorization"
								],
								"additionalProperties": false
							},
							"bluesky": {
								"type": "object",
								"properties": {
									"enabled": {"nullable": true, "type": "boolean"},
									"effective_enabled": {"type": "boolean"},
									"client_name": {"nullable": true, "type": "string"},
									"client_uri": {"nullable": true, "type": "string"},
									"logo_uri": {"nullable": true, "type": "string"},
									"tos_uri": {"nullable": true, "type": "string"},
									"policy_uri": {"nullable": true, "type": "string"},
									"key_count": {"type": "integer", "minimum": 0, "maximum": 9007199254740991}
								},
								"required": [
									"enabled",
									"effective_enabled",
									"client_name",
									"client_uri",
									"logo_uri",
									"tos_uri",
									"policy_uri",
									"key_count"
								],
								"additionalProperties": false
							}
						},
						"required": ["gif", "youtube", "email", "bluesky"],
						"additionalProperties": false
					},
					"media": {
						"type": "object",
						"properties": {
							"attachment_decay": {
								"type": "object",
								"properties": {
									"enabled": {"nullable": true, "type": "boolean"},
									"min_size_mb": {"nullable": true, "type": "number", "minimum": 0, "exclusiveMinimum": true},
									"max_size_mb": {"nullable": true, "type": "number", "minimum": 0, "exclusiveMinimum": true},
									"max_eligible_size_mb": {"nullable": true, "type": "number", "minimum": 0, "exclusiveMinimum": true},
									"min_lifetime_days": {
										"nullable": true,
										"type": "integer",
										"minimum": 0,
										"exclusiveMinimum": true,
										"maximum": 9007199254740991
									},
									"max_lifetime_days": {
										"nullable": true,
										"type": "integer",
										"minimum": 0,
										"exclusiveMinimum": true,
										"maximum": 9007199254740991
									},
									"curve": {"nullable": true, "type": "number", "minimum": 0, "maximum": 1},
									"renew_threshold_days": {
										"nullable": true,
										"type": "integer",
										"minimum": 0,
										"exclusiveMinimum": true,
										"maximum": 9007199254740991
									},
									"renew_window_days": {
										"nullable": true,
										"type": "integer",
										"minimum": 0,
										"exclusiveMinimum": true,
										"maximum": 9007199254740991
									},
									"effective": {
										"type": "object",
										"properties": {
											"enabled": {"type": "boolean"},
											"min_size_mb": {"type": "number", "minimum": 0, "exclusiveMinimum": true},
											"max_size_mb": {"type": "number", "minimum": 0, "exclusiveMinimum": true},
											"max_eligible_size_mb": {"type": "number", "minimum": 0, "exclusiveMinimum": true},
											"min_lifetime_days": {
												"type": "integer",
												"minimum": 0,
												"exclusiveMinimum": true,
												"maximum": 9007199254740991
											},
											"max_lifetime_days": {
												"type": "integer",
												"minimum": 0,
												"exclusiveMinimum": true,
												"maximum": 9007199254740991
											},
											"curve": {"type": "number", "minimum": 0, "maximum": 1},
											"renew_threshold_days": {
												"type": "integer",
												"minimum": 0,
												"exclusiveMinimum": true,
												"maximum": 9007199254740991
											},
											"renew_window_days": {
												"type": "integer",
												"minimum": 0,
												"exclusiveMinimum": true,
												"maximum": 9007199254740991
											}
										},
										"required": [
											"enabled",
											"min_size_mb",
											"max_size_mb",
											"max_eligible_size_mb",
											"min_lifetime_days",
											"max_lifetime_days",
											"curve",
											"renew_threshold_days",
											"renew_window_days"
										],
										"additionalProperties": false
									}
								},
								"required": [
									"enabled",
									"min_size_mb",
									"max_size_mb",
									"max_eligible_size_mb",
									"min_lifetime_days",
									"max_lifetime_days",
									"curve",
									"renew_threshold_days",
									"renew_window_days",
									"effective"
								],
								"additionalProperties": false
							}
						},
						"required": ["attachment_decay"],
						"additionalProperties": false
					},
					"billing": {"$ref": "#/components/schemas/InstanceBillingResponse"},
					"distribution_pricing": {"$ref": "#/components/schemas/DistributionPricingConfigResponse"},
					"notice": {
						"nullable": true,
						"description": "Notice shown to everyone on the instance, or null",
						"allOf": [{"$ref": "#/components/schemas/InstanceNoticeSchema"}]
					},
					"warnings": {
						"type": "array",
						"items": {"type": "string"},
						"description": "Problems the save found that did not stop it. Always empty outside a save response"
					}
				},
				"required": [
					"sso",
					"gateway_rollout",
					"push_relay",
					"domain_migration",
					"voice_p2p",
					"captcha",
					"auth",
					"accounts",
					"guild_visits",
					"experiment_delivery",
					"registration",
					"self_hosted",
					"account_identity",
					"app_public",
					"policy",
					"integrations",
					"media",
					"billing",
					"distribution_pricing",
					"notice",
					"warnings"
				],
				"additionalProperties": false
			},
			"CreateRegistrationUrlRequest": {
				"type": "object",
				"properties": {
					"label": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 120},
					"expires_at": {
						"nullable": true,
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"max_uses": {"nullable": true, "type": "integer", "minimum": 1, "maximum": 1000000},
					"approval_required": {"default": false, "type": "boolean"},
					"invite_code": {
						"description": "Code of an invite that people who sign up through the link accept once their account exists",
						"nullable": true,
						"type": "string",
						"minLength": 1,
						"maxLength": 64,
						"pattern": "^[A-Za-z0-9-]+$"
					}
				}
			},
			"CreateRegistrationUrlResponse": {
				"type": "object",
				"properties": {
					"registration_url": {
						"type": "object",
						"properties": {
							"id": {"type": "string", "minLength": 1, "maxLength": 128},
							"label": {"nullable": true, "type": "string"},
							"created_by_user_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
							"created_at": {
								"type": "string",
								"format": "date-time",
								"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
							},
							"expires_at": {
								"nullable": true,
								"type": "string",
								"format": "date-time",
								"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
							},
							"max_uses": {"nullable": true, "type": "integer", "minimum": 1, "maximum": 9007199254740991},
							"use_count": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
							"revoked_at": {
								"nullable": true,
								"type": "string",
								"format": "date-time",
								"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
							},
							"approval_required": {"type": "boolean"},
							"last_used_at": {
								"nullable": true,
								"type": "string",
								"format": "date-time",
								"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
							},
							"last_used_by_user_id": {
								"nullable": true,
								"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
							},
							"invite_code": {
								"nullable": true,
								"description": "Invite that people who sign up through the link accept",
								"type": "string",
								"maxLength": 64
							}
						},
						"required": [
							"id",
							"label",
							"created_by_user_id",
							"created_at",
							"expires_at",
							"max_uses",
							"use_count",
							"revoked_at",
							"approval_required",
							"last_used_at",
							"last_used_by_user_id",
							"invite_code"
						],
						"additionalProperties": false
					},
					"code": {"type": "string", "minLength": 1, "maxLength": 128},
					"url": {"type": "string"}
				},
				"required": ["registration_url", "code", "url"],
				"additionalProperties": false
			},
			"PendingRegistrationActionRequest": {
				"type": "object",
				"properties": {
					"status": {
						"description": "Pending registration decision",
						"x-enumNames": ["approved", "rejected"],
						"x-enumDescriptions": ["The account may log in", "The account is blocked from logging in"],
						"enum": ["approved", "rejected"],
						"type": "string"
					}
				},
				"required": ["status"]
			},
			"PendingRegistrationListResponse": {
				"type": "object",
				"properties": {
					"pending_registrations": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/PendingRegistrationResponse"}
					}
				},
				"required": ["pending_registrations"],
				"additionalProperties": false
			},
			"InstanceEmailSmtpTestRequest": {
				"type": "object",
				"properties": {
					"host": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 255},
					"port": {"nullable": true, "type": "integer", "minimum": 1, "maximum": 65535},
					"username": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 320},
					"password": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 4096},
					"tls_mode": {
						"nullable": true,
						"description": "How the SMTP connection is encrypted",
						"x-enumNames": ["IMPLICIT", "STARTTLS", "OPPORTUNISTIC", "NONE"],
						"x-enumDescriptions": [
							"TLS from the first byte, usually on port 465",
							"Plain connection that must upgrade with STARTTLS, usually on port 587",
							"Plain connection upgraded with STARTTLS when the server offers it",
							"No TLS, even when the server offers STARTTLS"
						],
						"enum": ["implicit", "starttls", "opportunistic", "none"],
						"type": "string"
					},
					"from_email": {
						"description": "The from address for the test message, in place of the saved one",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmailType"}]
					},
					"from_name": {
						"description": "The from name for the test message, in place of the saved one",
						"nullable": true,
						"type": "string",
						"minLength": 1,
						"maxLength": 120
					},
					"send_to": {
						"description": "When set, the test also sends a short message to this address and reports what the server answered",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmailType"}]
					}
				}
			},
			"InstanceEmailSmtpTestResponse": {
				"type": "object",
				"properties": {
					"ok": {"type": "boolean"},
					"error": {"nullable": true, "type": "string"},
					"server_response": {
						"description": "What the server answered when it accepted the test message, present only when send_to was set",
						"nullable": true,
						"type": "string"
					}
				},
				"required": ["ok", "error"],
				"additionalProperties": false
			},
			"BrandingAssetUploadRequest": {
				"type": "object",
				"properties": {
					"kind": {
						"type": "string",
						"enum": [
							"icon",
							"symbol",
							"logo",
							"wordmark",
							"favicon",
							"favicon_dark",
							"sign_in_backdrop",
							"premium_showcase_expressions",
							"premium_showcase_profile",
							"premium_showcase_stream",
							"premium_showcase_upload"
						]
					},
					"image": {"nullable": true, "type": "string", "maxLength": 16000000}
				},
				"required": ["kind"]
			},
			"InstanceConfigUpdateRequest": {
				"type": "object",
				"properties": {
					"gateway_rollout": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/GatewayRolloutConfigUpdateRequest"}]
					},
					"push_relay": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/PushRelayConfigUpdateRequest"}]},
					"domain_migration": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/DomainMigrationConfigUpdateRequest"}]
					},
					"voice_p2p": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/VoiceP2pConfigUpdateRequest"}]},
					"captcha": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/CaptchaConfigUpdateRequest"}]},
					"auth": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/AuthConfigUpdateRequest"}]},
					"accounts": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/AccountsConfigUpdateRequest"}]},
					"guild_visits": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/GuildVisitsConfigUpdateRequest"}]
					},
					"experiment_delivery": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/ExperimentDeliveryConfigUpdateRequest"}]
					},
					"registration": {
						"nullable": true,
						"type": "object",
						"properties": {
							"mode": {"allOf": [{"$ref": "#/components/schemas/InstanceRegistrationModeSchema"}]},
							"admin_registration_urls_enabled": {"type": "boolean"},
							"allowed_email_domains": {"maxItems": 100, "type": "array", "items": {"type": "string"}}
						}
					},
					"sso": {
						"nullable": true,
						"type": "object",
						"properties": {
							"enabled": {"type": "boolean"},
							"enforced": {"type": "boolean"},
							"display_name": {"nullable": true, "type": "string"},
							"button_label": {
								"description": "Text for the sign-in button. Trimmed, then up to 64 UTF-16 code units with at least one visible character and no control characters, line breaks or bidirectional formatting characters. Empty or null uses the default label",
								"nullable": true,
								"type": "string",
								"maxLength": 64
							},
							"issuer": {"nullable": true, "type": "string"},
							"authorization_url": {"nullable": true, "type": "string"},
							"token_url": {"nullable": true, "type": "string"},
							"userinfo_url": {"nullable": true, "type": "string"},
							"jwks_url": {"nullable": true, "type": "string"},
							"client_id": {"nullable": true, "type": "string"},
							"client_secret": {"nullable": true, "type": "string"},
							"scope": {"nullable": true, "type": "string"},
							"allowed_domains": {"maxItems": 100, "type": "array", "items": {"type": "string"}},
							"auto_provision": {"type": "boolean"},
							"username_from_provider": {
								"description": "Each SSO sign-in sets the username from the provider, and people can't change it in Fluxer. Only on username instances",
								"type": "boolean"
							},
							"groups_claim": {
								"nullable": true,
								"type": "string",
								"maxLength": 128,
								"description": "The claim that lists the groups of a member. Empty or null uses `groups`"
							},
							"group_role_mappings": {
								"maxItems": 100,
								"type": "array",
								"items": {
									"type": "object",
									"properties": {
										"group": {
											"type": "string",
											"minLength": 1,
											"maxLength": 256,
											"description": "A group name exactly as the provider sends it in the groups claim, such as `staff` or `/engineering/devs`"
										},
										"role_id": {
											"description": "The role in the single community that members of the group get",
											"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
										}
									},
									"required": ["group", "role_id"]
								},
								"description": "Groups whose members get a role in the single community. Every listed role is managed by single sign-on, and is added or removed to match the groups at each sign-in"
							},
							"migrate_identities": {
								"description": "Only for a save that changes the issuer while accounts are linked to the old one. True moves those links to the new issuer, false leaves them on the old one. Applies to this save only and is never stored",
								"type": "boolean"
							}
						}
					},
					"app_public": {
						"nullable": true,
						"type": "object",
						"properties": {
							"branding": {
								"nullable": true,
								"type": "object",
								"properties": {
									"product_name": {"type": "string", "minLength": 1, "maxLength": 80},
									"icon_url": {"nullable": true, "type": "string", "maxLength": 2048},
									"symbol_url": {"nullable": true, "type": "string", "maxLength": 2048},
									"logo_url": {"nullable": true, "type": "string", "maxLength": 2048},
									"wordmark_url": {"nullable": true, "type": "string", "maxLength": 2048},
									"favicon_url": {"nullable": true, "type": "string", "maxLength": 2048},
									"favicon_dark_url": {"nullable": true, "type": "string", "maxLength": 2048},
									"theme_color": {
										"nullable": true,
										"type": "string",
										"pattern": "^(?:#?(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}))?$"
									},
									"status_page_url": {"nullable": true, "type": "string", "maxLength": 2048},
									"status_page_incident_history_url": {"nullable": true, "type": "string", "maxLength": 2048},
									"premium_product_name": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 40},
									"premium_info_url": {"nullable": true, "type": "string", "maxLength": 2048},
									"sign_in_backdrop_url": {"nullable": true, "type": "string", "maxLength": 2048},
									"premium_page_color": {
										"nullable": true,
										"type": "string",
										"pattern": "^(?:#?(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}))?$"
									},
									"custom_css": {"nullable": true, "type": "string", "maxLength": 32768},
									"upload_limit_message": {"nullable": true, "type": "string", "maxLength": 500},
									"trusted_domains": {
										"nullable": true,
										"maxItems": 50,
										"type": "array",
										"items": {"type": "string", "maxLength": 255}
									}
								}
							},
							"setup": {"nullable": true, "type": "object", "properties": {"configured": {"type": "boolean"}}},
							"legal": {
								"nullable": true,
								"type": "object",
								"properties": {
									"terms_url": {"nullable": true, "type": "string", "maxLength": 2048},
									"privacy_url": {"nullable": true, "type": "string", "maxLength": 2048},
									"guidelines_url": {"nullable": true, "type": "string", "maxLength": 2048}
								}
							},
							"registration": {
								"nullable": true,
								"type": "object",
								"properties": {
									"collect_date_of_birth": {
										"description": "Deprecated, use accounts.date_of_birth. false sets it to off",
										"type": "boolean"
									}
								}
							}
						}
					},
					"integrations": {
						"nullable": true,
						"type": "object",
						"properties": {
							"gif": {
								"nullable": true,
								"type": "object",
								"properties": {"klipy_api_key": {"nullable": true, "type": "string", "maxLength": 4096}}
							},
							"youtube": {
								"nullable": true,
								"type": "object",
								"properties": {"api_key": {"nullable": true, "type": "string", "maxLength": 4096}}
							},
							"email": {
								"nullable": true,
								"type": "object",
								"properties": {
									"delivery": {
										"description": "How the instance sends email, or null to use the environment",
										"nullable": true,
										"allOf": [{"$ref": "#/components/schemas/EmailDeliveryModeSchema"}]
									},
									"enabled": {"description": "Deprecated, use delivery", "nullable": true, "type": "boolean"},
									"provider": {
										"nullable": true,
										"type": "string",
										"enum": ["smtp", "none"],
										"description": "Deprecated, use delivery"
									},
									"from_email": {"nullable": true, "type": "string", "maxLength": 320},
									"from_name": {"nullable": true, "type": "string", "maxLength": 120},
									"smtp": {
										"nullable": true,
										"type": "object",
										"properties": {
											"host": {"nullable": true, "type": "string", "maxLength": 255},
											"port": {"nullable": true, "type": "integer", "minimum": 1, "maximum": 65535},
											"username": {"nullable": true, "type": "string", "maxLength": 320},
											"password": {"nullable": true, "type": "string", "maxLength": 4096},
											"tls_mode": {
												"nullable": true,
												"description": "How the SMTP connection is encrypted",
												"x-enumNames": ["IMPLICIT", "STARTTLS", "OPPORTUNISTIC", "NONE"],
												"x-enumDescriptions": [
													"TLS from the first byte, usually on port 465",
													"Plain connection that must upgrade with STARTTLS, usually on port 587",
													"Plain connection upgraded with STARTTLS when the server offers it",
													"No TLS, even when the server offers STARTTLS"
												],
												"enum": ["implicit", "starttls", "opportunistic", "none"],
												"type": "string"
											},
											"secure": {"description": "Deprecated, use tls_mode", "nullable": true, "type": "boolean"}
										}
									},
									"disable_new_ip_authorization": {"nullable": true, "type": "boolean"}
								}
							},
							"bluesky": {
								"nullable": true,
								"type": "object",
								"properties": {
									"enabled": {"nullable": true, "type": "boolean"},
									"client_name": {"nullable": true, "type": "string", "maxLength": 120},
									"client_uri": {"nullable": true, "type": "string", "maxLength": 2048},
									"logo_uri": {"nullable": true, "type": "string", "maxLength": 2048},
									"tos_uri": {"nullable": true, "type": "string", "maxLength": 2048},
									"policy_uri": {"nullable": true, "type": "string", "maxLength": 2048},
									"keys": {
										"maxItems": 8,
										"type": "array",
										"items": {
											"type": "object",
											"properties": {
												"kid": {"type": "string", "minLength": 1, "maxLength": 255},
												"private_key": {"nullable": true, "type": "string", "maxLength": 10000}
											},
											"required": ["kid"]
										}
									}
								}
							}
						}
					},
					"media": {
						"nullable": true,
						"type": "object",
						"properties": {
							"attachment_decay": {
								"nullable": true,
								"type": "object",
								"properties": {
									"enabled": {"nullable": true, "type": "boolean"},
									"min_size_mb": {"nullable": true, "type": "number", "minimum": 0, "exclusiveMinimum": true},
									"max_size_mb": {"nullable": true, "type": "number", "minimum": 0, "exclusiveMinimum": true},
									"max_eligible_size_mb": {"nullable": true, "type": "number", "minimum": 0, "exclusiveMinimum": true},
									"min_lifetime_days": {
										"nullable": true,
										"type": "integer",
										"minimum": 0,
										"exclusiveMinimum": true,
										"maximum": 9007199254740991
									},
									"max_lifetime_days": {
										"nullable": true,
										"type": "integer",
										"minimum": 0,
										"exclusiveMinimum": true,
										"maximum": 9007199254740991
									},
									"curve": {"nullable": true, "type": "number", "minimum": 0, "maximum": 1},
									"renew_threshold_days": {
										"nullable": true,
										"type": "integer",
										"minimum": 0,
										"exclusiveMinimum": true,
										"maximum": 9007199254740991
									},
									"renew_window_days": {
										"nullable": true,
										"type": "integer",
										"minimum": 0,
										"exclusiveMinimum": true,
										"maximum": 9007199254740991
									}
								}
							}
						}
					},
					"policy": {
						"nullable": true,
						"type": "object",
						"properties": {
							"single_community_enabled": {"type": "boolean"},
							"single_community_name": {"type": "string", "minLength": 1, "maxLength": 100},
							"single_community_guild_id": {
								"description": "ID of an existing community to use as the single community. Turns the mode on with that community, or moves it there while the mode is on",
								"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
							},
							"single_community_add_members": {
								"description": "Also add every existing account to the single community in the background",
								"type": "boolean"
							},
							"direct_messages_disabled": {"type": "boolean"},
							"direct_messages_locked": {"type": "boolean", "enum": [false]},
							"friends_disabled": {
								"description": "Whether friend requests are disabled instance-wide. Left out while direct_messages_disabled changes, it takes the same value",
								"type": "boolean"
							},
							"personal_notes_enabled": {
								"description": "Whether people can use personal notes. Off by default on self-hosted instances",
								"type": "boolean"
							},
							"premium_mode": {"type": "string", "enum": ["mirror", "everyone"]},
							"guild_create_access": {"type": "boolean"},
							"services": {
								"nullable": true,
								"type": "object",
								"properties": {
									"gif_enabled": {"nullable": true, "type": "boolean"},
									"youtube_enabled": {"nullable": true, "type": "boolean"},
									"bluesky_enabled": {"nullable": true, "type": "boolean"}
								}
							}
						}
					},
					"billing": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/InstanceBillingUpdateRequest"}]},
					"distribution_pricing": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/DistributionPricingUpdateRequest"}]
					},
					"notice": {
						"description": "Notice shown to everyone on the instance, such as planned maintenance",
						"nullable": true,
						"type": "object",
						"properties": {
							"message": {
								"nullable": true,
								"description": "Notice text. Empty or null removes the notice and ignores the other fields",
								"type": "string",
								"maxLength": 1000
							},
							"url": {
								"description": "Optional http or https link",
								"nullable": true,
								"type": "string",
								"maxLength": 2048,
								"format": "uri"
							},
							"starts_at": {
								"description": "When clients start showing the notice",
								"nullable": true,
								"type": "string",
								"format": "date-time",
								"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
							},
							"ends_at": {
								"description": "When clients stop showing the notice",
								"nullable": true,
								"type": "string",
								"format": "date-time",
								"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
							}
						},
						"required": ["message"]
					}
				}
			},
			"ListGuildThreadsResponse": {
				"type": "object",
				"properties": {
					"threads": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/ThreadChannelResponse"},
						"description": "Every thread of the guild, active and archived, newest first"
					}
				},
				"required": ["threads"],
				"additionalProperties": false
			},
			"ListGuildStickersResponse": {
				"type": "object",
				"properties": {
					"guild_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"stickers": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"name": {"type": "string", "maxLength": 100},
								"animated": {"type": "boolean"},
								"creator_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"media_url": {"type": "string", "minLength": 1, "maxLength": 2048}
							},
							"required": ["id", "name", "animated", "creator_id", "media_url"],
							"additionalProperties": false
						}
					}
				},
				"required": ["guild_id", "stickers"],
				"additionalProperties": false
			},
			"SuccessResponse": {
				"type": "object",
				"properties": {
					"success": {"type": "boolean", "enum": [true], "description": "Whether the operation succeeded"}
				},
				"required": ["success"],
				"additionalProperties": false
			},
			"ListGuildMembersResponse": {
				"type": "object",
				"properties": {
					"members": {"type": "array", "items": {"allOf": [{"$ref": "#/components/schemas/GuildMemberResponse"}]}},
					"total": {"$ref": "#/components/schemas/Int32Type"},
					"limit": {"$ref": "#/components/schemas/Int32Type"},
					"offset": {"$ref": "#/components/schemas/Int32Type"}
				},
				"required": ["members", "total", "limit", "offset"],
				"additionalProperties": false
			},
			"ListGuildEmojisResponse": {
				"type": "object",
				"properties": {
					"guild_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"emojis": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"name": {"type": "string", "maxLength": 100},
								"animated": {"type": "boolean"},
								"creator_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"media_url": {"type": "string", "minLength": 1, "maxLength": 2048}
							},
							"required": ["id", "name", "animated", "creator_id", "media_url"],
							"additionalProperties": false
						}
					}
				},
				"required": ["guild_id", "emojis"],
				"additionalProperties": false
			},
			"BanGuildMemberBody": {
				"type": "object",
				"properties": {
					"delete_message_days": {
						"default": 0,
						"description": "Number of days of messages to delete from the banned user (0-7). Deprecated in favor of delete_message_seconds.",
						"type": "integer",
						"minimum": 0,
						"maximum": 7
					},
					"delete_message_seconds": {
						"description": "Number of seconds of messages to delete for the banned user (0-604800, default 0)",
						"type": "integer",
						"minimum": 0,
						"maximum": 604800
					},
					"reason": {"description": "The reason for the ban (max 512 characters)", "nullable": true, "type": "string"},
					"ban_duration_seconds": {
						"description": "Duration of the ban in seconds (0 for permanent, or between 60 and 63072000 seconds for a temporary ban)",
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991
					}
				}
			},
			"AuditLogActionTypeFilter": {
				"description": "The type of action that occurred",
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"format": "int32",
				"x-enumNames": [
					"GUILD_UPDATE",
					"CHANNEL_CREATE",
					"CHANNEL_UPDATE",
					"CHANNEL_DELETE",
					"CHANNEL_OVERWRITE_CREATE",
					"CHANNEL_OVERWRITE_UPDATE",
					"CHANNEL_OVERWRITE_DELETE",
					"MEMBER_KICK",
					"MEMBER_PRUNE",
					"MEMBER_BAN_ADD",
					"MEMBER_BAN_REMOVE",
					"MEMBER_UPDATE",
					"MEMBER_ROLE_UPDATE",
					"MEMBER_MOVE",
					"MEMBER_DISCONNECT",
					"BOT_ADD",
					"ROLE_CREATE",
					"ROLE_UPDATE",
					"ROLE_DELETE",
					"INVITE_CREATE",
					"INVITE_UPDATE",
					"INVITE_DELETE",
					"WEBHOOK_CREATE",
					"WEBHOOK_UPDATE",
					"WEBHOOK_DELETE",
					"EMOJI_CREATE",
					"EMOJI_UPDATE",
					"EMOJI_DELETE",
					"STICKER_CREATE",
					"STICKER_UPDATE",
					"STICKER_DELETE",
					"MESSAGE_DELETE",
					"MESSAGE_BULK_DELETE",
					"MESSAGE_PIN",
					"MESSAGE_UNPIN"
				],
				"x-enumDescriptions": [
					"Guild settings were updated",
					"Channel was created",
					"Channel was updated",
					"Channel was deleted",
					"Permission overwrite was created",
					"Permission overwrite was updated",
					"Permission overwrite was deleted",
					"Member was kicked",
					"Members were pruned",
					"Member was banned",
					"Member ban was removed",
					"Member was updated",
					"Member roles were updated",
					"Member was moved to a different voice channel",
					"Member was disconnected from a voice channel",
					"Bot was added to the guild",
					"Role was created",
					"Role was updated",
					"Role was deleted",
					"Invite was created",
					"Invite was updated",
					"Invite was deleted",
					"Webhook was created",
					"Webhook was updated",
					"Webhook was deleted",
					"Emoji was created",
					"Emoji was updated",
					"Emoji was deleted",
					"Sticker was created",
					"Sticker was updated",
					"Sticker was deleted",
					"Message was deleted",
					"Messages were bulk deleted",
					"Message was pinned",
					"Message was unpinned"
				],
				"enum": [
					1, 10, 11, 12, 13, 14, 15, 20, 21, 22, 23, 24, 25, 26, 27, 28, 30, 31, 32, 40, 41, 42, 50, 51, 52, 60, 61, 62,
					90, 91, 92, 72, 73, 74, 75
				]
			},
			"Int32Type": {"type": "integer", "minimum": 0, "maximum": 2147483647, "format": "int32"},
			"ListGuildAuditLogsResponse": {
				"type": "object",
				"properties": {
					"audit_log_entries": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/GuildAuditLogEntryResponse"},
						"description": "Array of audit log entries"
					},
					"users": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/UserPartialResponse"},
						"description": "Users referenced in the audit log entries"
					},
					"webhooks": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AuditLogWebhookResponse"},
						"description": "Webhooks referenced in the audit log entries"
					},
					"threads": {
						"description": "Threads referenced in the audit log entries, when the viewer can see threads",
						"type": "array",
						"items": {"allOf": [{"$ref": "#/components/schemas/ThreadChannelResponse"}]}
					}
				},
				"required": ["audit_log_entries", "users", "webhooks"],
				"additionalProperties": false
			},
			"PurgeGuildAssetsRequest": {
				"type": "object",
				"properties": {
					"ids": {
						"maxItems": 100,
						"type": "array",
						"items": {"type": "string"},
						"description": "List of asset IDs to purge"
					}
				},
				"required": ["ids"]
			},
			"PurgeGuildAssetsResponseSchema": {
				"type": "object",
				"properties": {
					"processed": {"type": "array", "items": {"$ref": "#/components/schemas/PurgeGuildAssetResultSchema"}},
					"errors": {"type": "array", "items": {"$ref": "#/components/schemas/PurgeGuildAssetErrorSchema"}}
				},
				"required": ["processed", "errors"],
				"additionalProperties": false
			},
			"AdminGuildDeleteRequest": {
				"type": "object",
				"properties": {"basis": {"allOf": [{"$ref": "#/components/schemas/CommunityRemovalBasis"}]}},
				"required": ["basis"]
			},
			"UpdateGuildRequest": {
				"type": "object",
				"properties": {
					"verification_level": {
						"description": "Required verification level for guild members",
						"allOf": [{"$ref": "#/components/schemas/GuildVerificationLevelInput"}]
					},
					"mfa_level": {
						"description": "Required MFA level for moderators",
						"allOf": [{"$ref": "#/components/schemas/GuildMFALevelInput"}]
					},
					"nsfw_level": {
						"description": "NSFW content level for the guild",
						"allOf": [{"$ref": "#/components/schemas/NSFWLevelInput"}]
					},
					"nsfw": {"description": "Whether the guild is flagged as adult content", "type": "boolean"},
					"content_warning_level": {
						"description": "Content warning level for the guild",
						"allOf": [{"$ref": "#/components/schemas/ContentWarningLevelInput"}]
					},
					"content_warning_text": {
						"description": "Custom content warning text shown before entry",
						"nullable": true,
						"type": "string"
					},
					"explicit_content_filter": {
						"description": "Explicit content filter level",
						"allOf": [{"$ref": "#/components/schemas/GuildExplicitContentFilterInput"}]
					},
					"default_message_notifications": {
						"description": "Default notification setting for new members",
						"allOf": [{"$ref": "#/components/schemas/DefaultMessageNotificationsInput"}]
					},
					"disabled_operations": {"allOf": [{"$ref": "#/components/schemas/GuildOperations"}]},
					"name": {"description": "New name for the guild", "type": "string"},
					"vanity_url_code": {
						"nullable": true,
						"description": "New vanity URL code, or null to remove",
						"type": "string"
					},
					"new_owner_id": {
						"description": "ID of the user to transfer ownership to",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
					},
					"add_features": {
						"maxItems": 100,
						"type": "array",
						"items": {"allOf": [{"$ref": "#/components/schemas/GuildFeatureSchema"}]}
					},
					"remove_features": {
						"maxItems": 100,
						"type": "array",
						"items": {"allOf": [{"$ref": "#/components/schemas/GuildFeatureSchema"}]}
					},
					"badge_ids": {"allOf": [{"$ref": "#/components/schemas/CustomBadgeIdsType"}]},
					"fields": {
						"maxItems": 10,
						"type": "array",
						"items": {
							"description": "Guild image field that can be cleared",
							"x-enumNames": ["icon", "banner", "splash", "embed_splash"],
							"x-enumDescriptions": [
								"Guild icon image",
								"Guild banner image",
								"Guild invite splash image",
								"Guild embedded invite splash image"
							],
							"enum": ["icon", "banner", "splash", "embed_splash"],
							"type": "string"
						},
						"description": "List of guild image fields to clear"
					}
				}
			},
			"GuildUpdateResponse": {
				"type": "object",
				"properties": {
					"guild": {
						"type": "object",
						"properties": {
							"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
							"name": {"type": "string", "minLength": 1, "maxLength": 100},
							"features": {
								"maxItems": 100,
								"type": "array",
								"items": {"type": "string", "minLength": 1, "maxLength": 256}
							},
							"owner_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
							"icon": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 256},
							"banner": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 256},
							"member_count": {"$ref": "#/components/schemas/Int32Type"},
							"nsfw_level": {"allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]}
						},
						"required": ["id", "name", "features", "owner_id", "icon", "banner", "member_count"],
						"additionalProperties": false
					}
				},
				"required": ["guild"],
				"additionalProperties": false
			},
			"LookupGuildResponse": {
				"type": "object",
				"properties": {
					"guild": {
						"nullable": true,
						"type": "object",
						"properties": {
							"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
							"owner_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
							"owner_username": {"nullable": true, "type": "string"},
							"owner_global_name": {"nullable": true, "type": "string"},
							"owner_discriminator": {"nullable": true, "type": "string"},
							"name": {"type": "string", "maxLength": 100},
							"vanity_url_code": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 256},
							"icon": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 256},
							"banner": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 256},
							"splash": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 256},
							"embed_splash": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 256},
							"features": {
								"maxItems": 100,
								"type": "array",
								"items": {"type": "string", "minLength": 1, "maxLength": 256}
							},
							"badge_ids": {"allOf": [{"$ref": "#/components/schemas/CustomBadgeIdListResponse"}]},
							"verification_level": {"allOf": [{"$ref": "#/components/schemas/GuildVerificationLevel"}]},
							"mfa_level": {"allOf": [{"$ref": "#/components/schemas/GuildMFALevel"}]},
							"nsfw_level": {"allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]},
							"nsfw": {"type": "boolean"},
							"content_warning_level": {"allOf": [{"$ref": "#/components/schemas/ContentWarningLevel"}]},
							"content_warning_text": {"nullable": true, "type": "string", "maxLength": 200},
							"explicit_content_filter": {"allOf": [{"$ref": "#/components/schemas/GuildExplicitContentFilter"}]},
							"default_message_notifications": {
								"allOf": [{"$ref": "#/components/schemas/DefaultMessageNotifications"}]
							},
							"afk_channel_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
							"afk_timeout": {"$ref": "#/components/schemas/Int32Type"},
							"system_channel_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
							"system_channel_flags": {"allOf": [{"$ref": "#/components/schemas/SystemChannelFlags"}]},
							"rules_channel_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
							"disabled_operations": {"$ref": "#/components/schemas/Int32Type"},
							"member_count": {"$ref": "#/components/schemas/Int32Type"},
							"channels": {
								"type": "array",
								"items": {
									"type": "object",
									"properties": {
										"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
										"name": {"nullable": true, "type": "string", "maxLength": 100},
										"type": {"allOf": [{"$ref": "#/components/schemas/ChannelType"}]},
										"position": {"$ref": "#/components/schemas/Int32Type"},
										"parent_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
										"nsfw": {"nullable": true, "type": "boolean"},
										"nsfw_override": {"nullable": true, "type": "boolean"},
										"content_warning_level": {"allOf": [{"$ref": "#/components/schemas/ContentWarningLevel"}]},
										"content_warning_text": {"nullable": true, "type": "string", "maxLength": 200},
										"url": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 2048}
									},
									"required": ["id", "name", "type", "position", "parent_id", "nsfw", "url"],
									"additionalProperties": false
								}
							},
							"roles": {
								"type": "array",
								"items": {
									"type": "object",
									"properties": {
										"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
										"name": {"type": "string", "maxLength": 100},
										"color": {"$ref": "#/components/schemas/Int32Type"},
										"position": {"$ref": "#/components/schemas/Int32Type"},
										"permissions": {
											"description": "The role permissions bitfield",
											"allOf": [{"$ref": "#/components/schemas/Permissions"}]
										},
										"hoist": {"type": "boolean"},
										"mentionable": {"type": "boolean"},
										"icon": {
											"nullable": true,
											"description": "The hash of the role icon image, or null",
											"type": "string"
										},
										"unicode_emoji": {
											"nullable": true,
											"description": "The Unicode emoji used as the role icon, or null",
											"type": "string"
										}
									},
									"required": [
										"id",
										"name",
										"color",
										"position",
										"permissions",
										"hoist",
										"mentionable",
										"icon",
										"unicode_emoji"
									],
									"additionalProperties": false
								}
							}
						},
						"required": [
							"id",
							"owner_id",
							"owner_username",
							"owner_global_name",
							"owner_discriminator",
							"name",
							"vanity_url_code",
							"icon",
							"banner",
							"splash",
							"embed_splash",
							"features",
							"badge_ids",
							"verification_level",
							"mfa_level",
							"nsfw_level",
							"explicit_content_filter",
							"default_message_notifications",
							"afk_channel_id",
							"afk_timeout",
							"system_channel_id",
							"system_channel_flags",
							"rules_channel_id",
							"disabled_operations",
							"member_count",
							"channels",
							"roles"
						],
						"additionalProperties": false
					}
				},
				"required": ["guild"],
				"additionalProperties": false
			},
			"SearchGuildsResponse": {
				"type": "object",
				"properties": {
					"guilds": {"type": "array", "items": {"$ref": "#/components/schemas/GuildAdminResponse"}},
					"total": {"type": "number"}
				},
				"required": ["guilds", "total"],
				"additionalProperties": false
			},
			"GenerateGiftCodesRequest": {
				"type": "object",
				"properties": {
					"count": {"type": "integer", "minimum": 1, "maximum": 100, "description": "Number of gift codes to generate"},
					"duration_type": {
						"description": "Duration unit for the generated gift codes",
						"x-enumNames": ["days", "weeks", "months", "years", "lifetime"],
						"x-enumDescriptions": [
							"Gift duration in days",
							"Gift duration in weeks",
							"Gift duration in months",
							"Gift duration in years",
							"Lifetime premium that never ends. duration_quantity is ignored"
						],
						"enum": ["days", "weeks", "months", "years", "lifetime"],
						"type": "string"
					},
					"duration_quantity": {
						"type": "integer",
						"minimum": 1,
						"maximum": 3650,
						"description": "Duration quantity for the selected unit. Ignored for lifetime gifts."
					}
				},
				"required": ["count", "duration_type", "duration_quantity"]
			},
			"CodesResponse": {
				"type": "object",
				"properties": {"codes": {"type": "array", "items": {"type": "string"}}},
				"required": ["codes"],
				"additionalProperties": false
			},
			"GatewayVoiceStateCountsResponse": {
				"type": "object",
				"properties": {
					"total_voice_states": {"$ref": "#/components/schemas/Int32Type"},
					"regions": {
						"maxItems": 1000,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"region_id": {"type": "string", "minLength": 1, "maxLength": 64},
								"voice_state_count": {"$ref": "#/components/schemas/Int32Type"}
							},
							"required": ["region_id", "voice_state_count"],
							"additionalProperties": false
						}
					},
					"servers": {
						"maxItems": 5000,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"server_id": {"type": "string", "minLength": 1, "maxLength": 128},
								"voice_state_count": {"$ref": "#/components/schemas/Int32Type"}
							},
							"required": ["server_id", "voice_state_count"],
							"additionalProperties": false
						}
					}
				},
				"required": ["total_voice_states", "regions", "servers"],
				"additionalProperties": false
			},
			"NodeStatsResponse": {
				"type": "object",
				"properties": {
					"status": {"type": "string", "minLength": 1, "maxLength": 256},
					"sessions": {"$ref": "#/components/schemas/Int32Type"},
					"session_resumes_total": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
					"websocket_dispatches_total": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
					"websocket_dispatch_drops_total": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
					"guilds": {"$ref": "#/components/schemas/Int32Type"},
					"presences": {"$ref": "#/components/schemas/Int32Type"},
					"calls": {"$ref": "#/components/schemas/Int32Type"},
					"memory": {
						"type": "object",
						"properties": {
							"total": {"$ref": "#/components/schemas/Int64StringType"},
							"processes": {"$ref": "#/components/schemas/Int64StringType"},
							"system": {"$ref": "#/components/schemas/Int64StringType"}
						},
						"required": ["total", "processes", "system"],
						"additionalProperties": false
					},
					"process_count": {"$ref": "#/components/schemas/Int32Type"},
					"process_limit": {"$ref": "#/components/schemas/Int32Type"},
					"uptime_seconds": {"$ref": "#/components/schemas/Int32Type"},
					"node_count": {"$ref": "#/components/schemas/Int32Type"},
					"nodes": {
						"maxItems": 1000,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"node_id": {"type": "string", "minLength": 1, "maxLength": 256},
								"status": {"type": "string", "minLength": 1, "maxLength": 256},
								"sessions": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
								"session_resumes_total": {
									"nullable": true,
									"type": "integer",
									"minimum": 0,
									"maximum": 9007199254740991
								},
								"websocket_dispatches_total": {
									"nullable": true,
									"type": "integer",
									"minimum": 0,
									"maximum": 9007199254740991
								},
								"websocket_dispatch_drops_total": {
									"nullable": true,
									"type": "integer",
									"minimum": 0,
									"maximum": 9007199254740991
								},
								"guilds": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
								"presences": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
								"calls": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
								"memory": {
									"type": "object",
									"properties": {
										"total": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int64StringType"}]},
										"processes": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int64StringType"}]},
										"system": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int64StringType"}]}
									},
									"required": ["total", "processes", "system"],
									"additionalProperties": false
								},
								"process_count": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
								"process_limit": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
								"uptime_seconds": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
								"cluster_metrics": {
									"type": "object",
									"properties": {
										"gateway_cluster_member_count": {"$ref": "#/components/schemas/Int32Type"},
										"gateway_cluster_discovery_resolve_failures_total": {"$ref": "#/components/schemas/Int32Type"},
										"gateway_cluster_membership_transitions_total": {
											"type": "object",
											"properties": {
												"up": {"$ref": "#/components/schemas/Int32Type"},
												"down": {"$ref": "#/components/schemas/Int32Type"}
											},
											"required": ["up", "down"],
											"additionalProperties": false
										},
										"gateway_node_router_owner_resolutions_total": {
											"type": "object",
											"properties": {
												"self": {"$ref": "#/components/schemas/Int32Type"},
												"peer": {"$ref": "#/components/schemas/Int32Type"}
											},
											"required": ["self", "peer"],
											"additionalProperties": false
										}
									},
									"required": [
										"gateway_cluster_member_count",
										"gateway_cluster_discovery_resolve_failures_total",
										"gateway_cluster_membership_transitions_total",
										"gateway_node_router_owner_resolutions_total"
									],
									"additionalProperties": false
								}
							},
							"required": [
								"node_id",
								"status",
								"sessions",
								"session_resumes_total",
								"websocket_dispatches_total",
								"websocket_dispatch_drops_total",
								"guilds",
								"presences",
								"calls",
								"memory",
								"process_count",
								"process_limit",
								"uptime_seconds"
							],
							"additionalProperties": false
						}
					}
				},
				"required": [
					"status",
					"sessions",
					"session_resumes_total",
					"websocket_dispatches_total",
					"websocket_dispatch_drops_total",
					"guilds",
					"presences",
					"calls",
					"memory",
					"process_count",
					"process_limit",
					"uptime_seconds",
					"node_count",
					"nodes"
				],
				"additionalProperties": false
			},
			"ReloadGuildsRequest": {
				"type": "object",
				"properties": {
					"guild_ids": {
						"maxItems": 1000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"},
						"description": "List of guild IDs to reload"
					}
				},
				"required": ["guild_ids"]
			},
			"ReloadAllGuildsResponse": {
				"type": "object",
				"properties": {"count": {"$ref": "#/components/schemas/Int32Type"}},
				"required": ["count"],
				"additionalProperties": false
			},
			"GuildMemoryStatsResponse": {
				"type": "object",
				"properties": {
					"guilds": {
						"maxItems": 1000,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"node_id": {"type": "string", "minLength": 1, "maxLength": 256},
								"guild_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
								"guild_name": {"type": "string", "minLength": 1, "maxLength": 100},
								"guild_icon": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 256},
								"nsfw_level": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]},
								"memory": {"$ref": "#/components/schemas/Int64StringType"},
								"member_count": {"$ref": "#/components/schemas/Int32Type"},
								"session_count": {"$ref": "#/components/schemas/Int32Type"},
								"presence_count": {"$ref": "#/components/schemas/Int32Type"}
							},
							"required": [
								"node_id",
								"guild_id",
								"guild_name",
								"guild_icon",
								"nsfw_level",
								"memory",
								"member_count",
								"session_count",
								"presence_count"
							],
							"additionalProperties": false
						}
					}
				},
				"required": ["guilds"],
				"additionalProperties": false
			},
			"EnforcementDecisionNoteRequest": {
				"type": "object",
				"properties": {"body": {"description": "The internal note. Staff only", "type": "string"}},
				"required": ["body"]
			},
			"EnforcementDecisionNoteResponse": {
				"type": "object",
				"properties": {
					"note_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"author_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"body": {"type": "string"},
					"created_at": {"type": "string"}
				},
				"required": ["note_id", "author_id", "body", "created_at"],
				"additionalProperties": false
			},
			"EnforcementDecisionEndRequest": {
				"type": "object",
				"properties": {
					"outcome": {
						"type": "string",
						"enum": ["lifted", "reversed"],
						"description": "Lifted ends a restriction that was correct. Reversed says the decision was wrong"
					},
					"statement": {"description": "Note to the user, shown in the email", "type": "string"}
				},
				"required": ["outcome"]
			},
			"EnforcementDecisionResponse": {
				"type": "object",
				"properties": {
					"decision_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"subject_type": {"type": "string", "enum": ["user", "guild"]},
					"subject_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"subject_name": {
						"nullable": true,
						"description": "Community name or bot username when the decision was made",
						"type": "string"
					},
					"recipient_user_id": {
						"nullable": true,
						"description": "Who receives the notice",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"kind": {"allOf": [{"$ref": "#/components/schemas/EnforcementKindType"}]},
					"reason_code": {"$ref": "#/components/schemas/Int32Type"},
					"source": {"type": "string", "enum": ["report", "own_review"]},
					"automation": {"type": "string", "enum": ["none", "flagged", "automated"]},
					"statement": {"nullable": true, "type": "string"},
					"rights_holder": {"nullable": true, "type": "string"},
					"ends_at": {"nullable": true, "type": "string"},
					"deletion_at": {"nullable": true, "type": "string"},
					"limit": {"nullable": true, "type": "string", "enum": ["direct_messages", "reports", "purchases"]},
					"profile_fields": {"type": "array", "items": {"type": "string"}},
					"removed_message_count": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
					"removed_all_messages": {"type": "boolean"},
					"payment_at": {"nullable": true, "type": "string"},
					"report_ids": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeStringType"},
						"description": "Empty without the report view permission"
					},
					"decided_by": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"created_at": {"type": "string"},
					"status": {"type": "string", "enum": ["active", "ended"]},
					"end_outcome": {
						"nullable": true,
						"description": "Expired is recorded by Fluxer when a temporary suspension runs out",
						"type": "string",
						"enum": ["lifted", "reversed", "expired"]
					},
					"ended_at": {"nullable": true, "type": "string"},
					"ended_by": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"end_statement": {"nullable": true, "type": "string"},
					"notice_status": {"type": "string", "enum": ["pending", "sent", "undelivered"]},
					"notice_channels": {"type": "array", "items": {"type": "string", "enum": ["email", "system_dm", "sign_in"]}},
					"notice_locale": {"nullable": true, "type": "string"},
					"notice_text": {"nullable": true, "description": "The plain text that was sent", "type": "string"},
					"notice_sent_at": {"nullable": true, "type": "string"},
					"expired": {"type": "boolean", "description": "An active suspension or feature limit whose end has passed"},
					"replaced": {
						"type": "boolean",
						"description": "An active suspension or closure that a later decision replaced"
					},
					"notes": {"type": "array", "items": {"$ref": "#/components/schemas/EnforcementDecisionNoteResponse"}},
					"evidence": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"message_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"channel_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
								"timestamp": {"type": "string"},
								"content": {
									"nullable": true,
									"description": "Null without the message lookup permission, and for restricted decisions",
									"type": "string"
								},
								"attachments": {
									"nullable": true,
									"description": "Attachment details without the files. Null without the message lookup permission",
									"type": "array",
									"items": {
										"type": "object",
										"properties": {
											"filename": {"type": "string"},
											"size": {"nullable": true, "type": "string"},
											"content_type": {"nullable": true, "type": "string"}
										},
										"required": ["filename", "size", "content_type"],
										"additionalProperties": false
									}
								},
								"attachment_count": {"$ref": "#/components/schemas/Int32Type"}
							},
							"required": ["message_id", "channel_id", "timestamp", "content", "attachments", "attachment_count"],
							"additionalProperties": false
						},
						"description": "Empty once the evidence has expired"
					},
					"profile_values": {
						"nullable": true,
						"description": "Profile values before a reset. Null without the message lookup permission",
						"type": "object",
						"additionalProperties": {"type": "string"}
					},
					"network_blocks": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"ip": {"type": "string", "description": "Masked without the IP view permission"},
								"expires_at": {"nullable": true, "type": "string"}
							},
							"required": ["ip", "expires_at"],
							"additionalProperties": false
						},
						"description": "Network blocks that belong to this decision and have not expired"
					},
					"notice": {
						"properties": {
							"decision_id": {
								"nullable": true,
								"description": "The decision reference. Null for restrictions from before decisions",
								"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
							},
							"kind": {"allOf": [{"$ref": "#/components/schemas/EnforcementKindType"}]},
							"permanent": {"type": "boolean", "description": "Whether this is a suspension with no end"},
							"issued_at": {
								"nullable": true,
								"description": "When the decision was made, as an ISO 8601 timestamp",
								"type": "string"
							},
							"ends_at": {
								"nullable": true,
								"description": "When a suspension or feature limit ends, as an ISO 8601 timestamp",
								"type": "string"
							},
							"deletion_at": {
								"nullable": true,
								"description": "When a closed account or bot is deleted, as an ISO 8601 timestamp",
								"type": "string"
							},
							"summary": {"type": "string", "description": "One sentence saying what happened"},
							"effects": {
								"type": "array",
								"items": {"type": "string"},
								"description": "What the decision means for the holder, one sentence each"
							},
							"rule": {
								"nullable": true,
								"description": "The rule the decision relies on, null when none was recorded",
								"type": "object",
								"properties": {
									"title": {"type": "string", "description": "Title of the rule that was broken"},
									"url": {
										"nullable": true,
										"description": "Link to the rule, null when the instance publishes none",
										"type": "string"
									}
								},
								"required": ["title", "url"],
								"additionalProperties": false
							},
							"facts": {
								"type": "array",
								"items": {"type": "string"},
								"description": "The finding first, then where and when it happened"
							},
							"statement": {"nullable": true, "description": "Note to the holder from the team", "type": "string"},
							"how_we_decided": {
								"type": "array",
								"items": {"type": "string"},
								"description": "How the case reached the team and who decided it"
							},
							"appeal": {
								"nullable": true,
								"description": "How to appeal, null when the instance offers no appeal route",
								"type": "object",
								"properties": {
									"email": {"type": "string", "description": "Address that takes appeals"},
									"deadline": {
										"nullable": true,
										"description": "Last day to appeal, already formatted for the reader",
										"type": "string"
									},
									"account_has_email": {
										"type": "boolean",
										"description": "Whether the account has an email address to write from"
									}
								},
								"required": ["email", "deadline", "account_has_email"],
								"additionalProperties": false
							},
							"redress": {
								"type": "array",
								"items": {"type": "string"},
								"description": "Other ways to challenge the decision"
							}
						},
						"description": "What the holder sees now, rendered in English",
						"allOf": [{"$ref": "#/components/schemas/EnforcementNotice"}]
					}
				},
				"required": [
					"decision_id",
					"subject_type",
					"subject_id",
					"subject_name",
					"recipient_user_id",
					"kind",
					"reason_code",
					"source",
					"automation",
					"statement",
					"rights_holder",
					"ends_at",
					"deletion_at",
					"limit",
					"profile_fields",
					"removed_message_count",
					"removed_all_messages",
					"payment_at",
					"report_ids",
					"decided_by",
					"created_at",
					"status",
					"end_outcome",
					"ended_at",
					"ended_by",
					"end_statement",
					"notice_status",
					"notice_channels",
					"notice_locale",
					"notice_text",
					"notice_sent_at",
					"expired",
					"replaced",
					"notes",
					"evidence",
					"profile_values",
					"network_blocks",
					"notice"
				],
				"additionalProperties": false
			},
			"EnforcementDecisionListResponse": {
				"type": "object",
				"properties": {
					"decisions": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"decision_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"subject_type": {"type": "string", "enum": ["user", "guild"]},
								"subject_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"subject_name": {
									"nullable": true,
									"description": "Community name or bot username when the decision was made",
									"type": "string"
								},
								"recipient_user_id": {
									"nullable": true,
									"description": "Who receives the notice",
									"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
								},
								"kind": {"allOf": [{"$ref": "#/components/schemas/EnforcementKindType"}]},
								"reason_code": {"$ref": "#/components/schemas/Int32Type"},
								"source": {"type": "string", "enum": ["report", "own_review"]},
								"automation": {"type": "string", "enum": ["none", "flagged", "automated"]},
								"statement": {"nullable": true, "type": "string"},
								"rights_holder": {"nullable": true, "type": "string"},
								"ends_at": {"nullable": true, "type": "string"},
								"deletion_at": {"nullable": true, "type": "string"},
								"limit": {"nullable": true, "type": "string", "enum": ["direct_messages", "reports", "purchases"]},
								"profile_fields": {"type": "array", "items": {"type": "string"}},
								"removed_message_count": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
								"removed_all_messages": {"type": "boolean"},
								"payment_at": {"nullable": true, "type": "string"},
								"report_ids": {
									"type": "array",
									"items": {"$ref": "#/components/schemas/SnowflakeStringType"},
									"description": "Empty without the report view permission"
								},
								"decided_by": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"created_at": {"type": "string"},
								"status": {"type": "string", "enum": ["active", "ended"]},
								"end_outcome": {
									"nullable": true,
									"description": "Expired is recorded by Fluxer when a temporary suspension runs out",
									"type": "string",
									"enum": ["lifted", "reversed", "expired"]
								},
								"ended_at": {"nullable": true, "type": "string"},
								"ended_by": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
								"end_statement": {"nullable": true, "type": "string"},
								"notice_status": {"type": "string", "enum": ["pending", "sent", "undelivered"]},
								"notice_channels": {
									"type": "array",
									"items": {"type": "string", "enum": ["email", "system_dm", "sign_in"]}
								},
								"notice_locale": {"nullable": true, "type": "string"},
								"notice_text": {"nullable": true, "description": "The plain text that was sent", "type": "string"},
								"notice_sent_at": {"nullable": true, "type": "string"},
								"expired": {
									"type": "boolean",
									"description": "An active suspension or feature limit whose end has passed"
								},
								"replaced": {
									"type": "boolean",
									"description": "An active suspension or closure that a later decision replaced"
								}
							},
							"required": [
								"decision_id",
								"subject_type",
								"subject_id",
								"subject_name",
								"recipient_user_id",
								"kind",
								"reason_code",
								"source",
								"automation",
								"statement",
								"rights_holder",
								"ends_at",
								"deletion_at",
								"limit",
								"profile_fields",
								"removed_message_count",
								"removed_all_messages",
								"payment_at",
								"report_ids",
								"decided_by",
								"created_at",
								"status",
								"end_outcome",
								"ended_at",
								"ended_by",
								"end_statement",
								"notice_status",
								"notice_channels",
								"notice_locale",
								"notice_text",
								"notice_sent_at",
								"expired",
								"replaced"
							],
							"additionalProperties": false
						}
					}
				},
				"required": ["decisions"],
				"additionalProperties": false
			},
			"DiscoveryAdminRemoveRequest": {
				"type": "object",
				"properties": {"reason": {"type": "string", "minLength": 1, "maxLength": 500, "description": "Removal reason"}},
				"required": ["reason"]
			},
			"DiscoveryApplicationResponse": {
				"type": "object",
				"properties": {
					"guild_id": {"description": "Guild ID", "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"guild_nsfw_level": {
						"description": "NSFW level of the guild",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]
					},
					"status": {"type": "string", "description": "Application status"},
					"description": {"type": "string", "description": "Discovery description"},
					"category_type": {"type": "number", "description": "Discovery category type"},
					"primary_language": {"description": "Primary community language", "nullable": true, "type": "string"},
					"custom_tags": {"type": "array", "items": {"type": "string"}, "description": "Custom discovery tags"},
					"applied_at": {"type": "string", "description": "Application timestamp"},
					"reviewed_at": {"description": "Review timestamp", "nullable": true, "type": "string"},
					"review_reason": {"description": "Review reason (approval/rejection)", "nullable": true, "type": "string"},
					"removed_at": {"description": "Removal timestamp", "nullable": true, "type": "string"},
					"removal_reason": {"description": "Removal reason", "nullable": true, "type": "string"}
				},
				"required": ["guild_id", "status", "description", "category_type", "custom_tags", "applied_at"],
				"additionalProperties": false
			},
			"DiscoveryApplicationPatchRequest": {
				"type": "object",
				"properties": {
					"description": {
						"description": "Updated description for discovery listing",
						"type": "string",
						"minLength": 10,
						"maxLength": 300
					},
					"category_type": {
						"description": "Updated discovery category type",
						"type": "integer",
						"minimum": 0,
						"maximum": 8
					},
					"primary_language": {"type": "string", "description": "Primary community language (BCP-47 code)"},
					"custom_tags": {
						"maxItems": 10,
						"type": "array",
						"items": {"type": "string", "minLength": 2, "maxLength": 30},
						"description": "Up to 10 custom discovery tags"
					}
				}
			},
			"DiscoveryAdminListingBulkCategoryRequest": {
				"type": "object",
				"properties": {
					"guild_ids": {
						"minItems": 1,
						"maxItems": 100,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"},
						"description": "Listed guilds to move"
					},
					"category_type": {
						"type": "integer",
						"minimum": 0,
						"maximum": 8,
						"description": "Discovery category to file every named guild under"
					}
				},
				"required": ["guild_ids", "category_type"]
			},
			"DiscoveryAdminListingBulkCategoryResponse": {
				"type": "object",
				"properties": {
					"updated": {"type": "number", "description": "Number of listings moved"},
					"failed_guild_ids": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeStringType"},
						"description": "Guilds that could not be moved"
					}
				},
				"required": ["updated", "failed_guild_ids"],
				"additionalProperties": false
			},
			"DiscoveryAdminListedGuildListResponse": {
				"type": "array",
				"items": {"$ref": "#/components/schemas/DiscoveryAdminListedGuildResponse"}
			},
			"DiscoveryCategoryListResponse": {
				"type": "array",
				"items": {"$ref": "#/components/schemas/DiscoveryCategoryResponse"}
			},
			"DiscoveryAdminApplicationUpdateRequest": {
				"oneOf": [
					{
						"type": "object",
						"properties": {
							"reason": {"allOf": [{"$ref": "#/components/schemas/DiscoveryReviewReason"}]},
							"status": {"type": "string", "enum": ["approved"], "description": "Approve the pending application"}
						},
						"required": ["status"]
					},
					{
						"type": "object",
						"properties": {
							"reason": {"allOf": [{"$ref": "#/components/schemas/DiscoveryRejectionReason"}]},
							"status": {"type": "string", "enum": ["rejected"], "description": "Reject the pending application"}
						},
						"required": ["reason", "status"]
					}
				]
			},
			"DiscoveryAdminPendingApplicationListResponse": {
				"type": "array",
				"items": {"$ref": "#/components/schemas/DiscoveryAdminPendingApplicationResponse"}
			},
			"AdminMessageDeleteRequest": {
				"type": "object",
				"properties": {"basis": {"allOf": [{"$ref": "#/components/schemas/MessageDeletionBasis"}]}},
				"required": ["basis"]
			},
			"DeleteMessageResponse": {
				"type": "object",
				"properties": {"success": {"type": "boolean", "enum": [true]}},
				"required": ["success"],
				"additionalProperties": false
			},
			"LookupMessageResponse": {
				"type": "object",
				"properties": {
					"messages": {"maxItems": 100, "type": "array", "items": {"$ref": "#/components/schemas/AdminMessageSchema"}},
					"message_responses": {
						"maxItems": 100,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageResponseSchema"}
					},
					"message_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]}
				},
				"required": ["messages", "message_id"],
				"additionalProperties": false
			},
			"BrowseChannelResponse": {
				"type": "object",
				"properties": {
					"messages": {"maxItems": 100, "type": "array", "items": {"$ref": "#/components/schemas/AdminMessageSchema"}},
					"message_responses": {
						"maxItems": 100,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageResponseSchema"}
					},
					"has_more": {"type": "boolean"}
				},
				"required": ["messages", "has_more"],
				"additionalProperties": false
			},
			"AdminBulkJobCreateRequest": {
				"oneOf": [
					{
						"type": "object",
						"properties": {
							"user_ids": {
								"maxItems": 1000,
								"type": "array",
								"items": {"$ref": "#/components/schemas/SnowflakeType"},
								"description": "List of user IDs to update"
							},
							"add_flags": {
								"default": [],
								"description": "User flags to add to all specified users",
								"maxItems": 64,
								"type": "array",
								"items": {
									"description": "A single user flag value to add or remove",
									"allOf": [{"$ref": "#/components/schemas/UserFlags"}]
								}
							},
							"remove_flags": {
								"default": [],
								"description": "User flags to remove from all specified users",
								"maxItems": 64,
								"type": "array",
								"items": {
									"description": "A single user flag value to add or remove",
									"allOf": [{"$ref": "#/components/schemas/UserFlags"}]
								}
							},
							"task": {
								"type": "string",
								"enum": ["update_user_flags"],
								"description": "Adds and removes account flags on every targeted user"
							}
						},
						"required": ["user_ids", "task"]
					},
					{
						"type": "object",
						"properties": {
							"guild_ids": {
								"maxItems": 1000,
								"type": "array",
								"items": {"$ref": "#/components/schemas/SnowflakeType"},
								"description": "List of guild IDs to update"
							},
							"add_features": {
								"default": [],
								"description": "Guild features to add to all specified guilds",
								"maxItems": 100,
								"type": "array",
								"items": {"allOf": [{"$ref": "#/components/schemas/GuildFeatureSchema"}]}
							},
							"remove_features": {
								"default": [],
								"description": "Guild features to remove from all specified guilds",
								"maxItems": 100,
								"type": "array",
								"items": {"allOf": [{"$ref": "#/components/schemas/GuildFeatureSchema"}]}
							},
							"task": {
								"type": "string",
								"enum": ["update_guild_features"],
								"description": "Adds and removes features on every targeted guild"
							}
						},
						"required": ["guild_ids", "task"]
					},
					{
						"type": "object",
						"properties": {
							"guild_id": {
								"description": "ID of the guild to add members to",
								"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
							},
							"user_ids": {
								"maxItems": 1000,
								"type": "array",
								"items": {"$ref": "#/components/schemas/SnowflakeType"},
								"description": "List of user IDs to add as members"
							},
							"task": {
								"type": "string",
								"enum": ["add_guild_members"],
								"description": "Adds every targeted user to one guild"
							}
						},
						"required": ["guild_id", "user_ids", "task"]
					},
					{
						"type": "object",
						"properties": {
							"user_ids": {
								"maxItems": 1000,
								"type": "array",
								"items": {"$ref": "#/components/schemas/SnowflakeType"},
								"description": "List of user IDs to schedule deletion for"
							},
							"days_until_deletion": {
								"type": "integer",
								"minimum": 1,
								"maximum": 365,
								"description": "Days until the account is deleted. Raised to 14, or to 74 when a rule was broken so an appeal can be reviewed first. Self-hosted instances have no appeals and raise every basis to 14"
							},
							"basis": {"allOf": [{"$ref": "#/components/schemas/BulkModerationBasis"}]},
							"task": {
								"type": "string",
								"enum": ["schedule_user_deletion"],
								"description": "Schedules account deletion for every targeted user"
							}
						},
						"required": ["user_ids", "days_until_deletion", "basis", "task"]
					},
					{
						"type": "object",
						"properties": {
							"user_ids": {
								"maxItems": 1000,
								"type": "array",
								"items": {"$ref": "#/components/schemas/SnowflakeType"},
								"description": "List of user IDs whose messages will be deleted"
							},
							"basis": {"allOf": [{"$ref": "#/components/schemas/BulkModerationBasis"}]},
							"task": {
								"type": "string",
								"enum": ["delete_user_messages"],
								"description": "Deletes every message authored by each targeted user, across all channels"
							}
						},
						"required": ["user_ids", "basis", "task"]
					}
				]
			},
			"BulkJobResponse": {
				"type": "object",
				"properties": {"job_id": {"$ref": "#/components/schemas/SnowflakeStringType"}},
				"required": ["job_id"],
				"additionalProperties": false
			},
			"AdminBlocklistListType": {
				"type": "string",
				"enum": ["ip", "email", "phrase", "url", "url-domain", "file-sha", "avatar-hash", "profile-substring"],
				"description": "The blocklist an entry belongs to"
			},
			"AdminBlocklistEntryUpdateRequest": {
				"anyOf": [
					{"$ref": "#/components/schemas/AdminBlocklistUrlUpdateRequest"},
					{"$ref": "#/components/schemas/AdminBlocklistUrlDomainUpdateRequest"},
					{"$ref": "#/components/schemas/AdminBlocklistFileShaUpdateRequest"},
					{"$ref": "#/components/schemas/AdminBlocklistAvatarHashUpdateRequest"},
					{"$ref": "#/components/schemas/AdminBlocklistProfileSubstringUpdateRequest"}
				],
				"description": "The stored fields to write, in the shape the blocklist named by list_type accepts"
			},
			"BanCheckResponseSchema": {
				"type": "object",
				"properties": {
					"banned": {"type": "boolean"},
					"expires_at": {
						"nullable": true,
						"description": "ISO 8601 timestamp when the matching ban expires. Null when the ban is permanent, when nothing matches, and on every blocklist other than ip.",
						"type": "string"
					},
					"decision_id": {
						"nullable": true,
						"description": "Enforcement decision the matching ip block belongs to. Null for a block added through the blocklist, when nothing matches, and on every blocklist other than ip.",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					}
				},
				"required": ["banned", "expires_at", "decision_id"],
				"additionalProperties": false
			},
			"AdminBlocklistBulkDeleteRequest": {
				"anyOf": [
					{"$ref": "#/components/schemas/CheckAvatarHashRequest"},
					{"$ref": "#/components/schemas/BanProfileSubstringRequest"}
				],
				"description": "The entries to remove, in the shape the blocklist named by list_type accepts"
			},
			"BulkBanFileShasRequest": {
				"type": "object",
				"properties": {
					"sha256_list": {
						"minItems": 1,
						"maxItems": 10000,
						"type": "array",
						"items": {"type": "string"},
						"description": "Array of SHA-256 hex strings to ban"
					}
				},
				"required": ["sha256_list"]
			},
			"AdminBlocklistEntryCreateRequest": {
				"anyOf": [
					{"$ref": "#/components/schemas/BanIpRequest"},
					{"$ref": "#/components/schemas/BanEmailRequest"},
					{"$ref": "#/components/schemas/BanPhraseRequest"},
					{"$ref": "#/components/schemas/BanUrlRequest"},
					{"$ref": "#/components/schemas/BanUrlDomainRequest"},
					{"$ref": "#/components/schemas/BanFileShaRequest"},
					{"$ref": "#/components/schemas/BanAvatarHashRequest"},
					{"$ref": "#/components/schemas/BanProfileSubstringRequest"}
				],
				"description": "The entry to add, in the shape the blocklist named by list_type accepts"
			},
			"AdminBlocklistEntryListResponse": {
				"type": "object",
				"properties": {
					"items": {
						"maxItems": 200,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"list_type": {"allOf": [{"$ref": "#/components/schemas/AdminBlocklistListType"}]},
								"value": {
									"description": "The canonical stored value of the entry",
									"type": "string",
									"minLength": 1,
									"maxLength": 2048
								},
								"scope": {
									"nullable": true,
									"description": "The profile field the entry is scoped to, or null when the blocklist is unscoped",
									"type": "string"
								},
								"category": {
									"nullable": true,
									"description": "The category slug stored alongside the entry, or null",
									"type": "string"
								},
								"severity": {
									"nullable": true,
									"description": "The stored severity, or null when the blocklist has no severity",
									"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
								},
								"source_url": {
									"nullable": true,
									"description": "The upstream source the entry was imported from, or null",
									"type": "string"
								},
								"notes": {
									"nullable": true,
									"description": "The internal notes stored alongside the entry, or null",
									"type": "string"
								},
								"content_type": {
									"nullable": true,
									"description": "The MIME type hint stored alongside the entry, or null",
									"type": "string"
								},
								"match_subdomains": {
									"nullable": true,
									"description": "Whether subdomains are covered by the entry, or null when the blocklist has no such flag",
									"type": "boolean"
								},
								"reason": {
									"nullable": true,
									"description": "The stored reason for the entry, or null",
									"type": "string"
								},
								"expires_at": {
									"nullable": true,
									"description": "ISO 8601 timestamp when the entry expires, or null",
									"type": "string"
								},
								"created_at": {
									"nullable": true,
									"description": "ISO 8601 timestamp when the entry was added, or null",
									"type": "string"
								},
								"created_by_user_id": {
									"nullable": true,
									"description": "The admin who added the entry, or null when unknown",
									"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
								}
							},
							"required": [
								"list_type",
								"value",
								"scope",
								"category",
								"severity",
								"source_url",
								"notes",
								"content_type",
								"match_subdomains",
								"reason",
								"expires_at",
								"created_at",
								"created_by_user_id"
							],
							"additionalProperties": false
						},
						"description": "The blocklist entries in this page, ordered by value"
					},
					"has_more": {
						"type": "boolean",
						"description": "Whether another page can be fetched with the next_after cursor"
					},
					"next_after": {
						"nullable": true,
						"description": "Cursor to send as after on the next request, or null when this is the last page",
						"type": "string"
					}
				},
				"required": ["items", "has_more", "next_after"],
				"additionalProperties": false
			},
			"AdminBlocklistTypeListResponse": {
				"type": "object",
				"properties": {
					"items": {
						"maxItems": 50,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"list_type": {"allOf": [{"$ref": "#/components/schemas/AdminBlocklistListType"}]},
								"description": {
									"type": "string",
									"description": "What the blocklist matches and how matching is performed"
								},
								"value_field": {
									"type": "string",
									"description": "The request body field that holds the entry value when adding to this blocklist"
								},
								"fields": {
									"maxItems": 8,
									"type": "array",
									"items": {"type": "string"},
									"description": "Fields entries of this blocklist accept beyond the value itself"
								},
								"scoped": {
									"type": "boolean",
									"description": "Whether entries are scoped to a profile field and a scope must be supplied"
								},
								"supports_bulk_create": {
									"type": "boolean",
									"description": "Whether PUT on the entry collection is accepted"
								},
								"supports_bulk_delete": {
									"type": "boolean",
									"description": "Whether DELETE on the entry collection is accepted"
								},
								"supports_update": {"type": "boolean", "description": "Whether PATCH on a single entry is accepted"}
							},
							"required": [
								"list_type",
								"description",
								"value_field",
								"fields",
								"scoped",
								"supports_bulk_create",
								"supports_bulk_delete",
								"supports_update"
							],
							"additionalProperties": false
						},
						"description": "Every blocklist exposed by this instance"
					}
				},
				"required": ["items"],
				"additionalProperties": false
			},
			"BillingDocumentFileResponse": {
				"type": "string",
				"format": "binary",
				"description": "The stored PDF of the document, byte for byte as issued"
			},
			"AdminBillingDocumentReissueRequest": {
				"type": "object",
				"properties": {
					"source_key": {
						"type": "string",
						"pattern": "^(cs|in|re|du):[A-Za-z0-9_]+$",
						"description": "The Stripe source to issue the document for: cs:<checkout session>, in:<invoice>, re:<refund> or du:<lost dispute>"
					},
					"user_id": {
						"description": "The account the document belongs to, when Stripe does not say. Defaults to the account Stripe or the original document names",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
					}
				},
				"required": ["source_key"]
			},
			"BillingDocumentResponse": {
				"type": "object",
				"properties": {
					"id": {"description": "The document ID", "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"number": {"type": "string", "description": "The document number, for example OP-000123"},
					"kind": {"allOf": [{"$ref": "#/components/schemas/BillingDocumentKind"}]},
					"flow": {
						"type": "string",
						"enum": ["operator_pass", "plutonium", "gift", "donation"],
						"description": "What was bought or given"
					},
					"issued_at": {"type": "string", "description": "When the document was issued, in ISO 8601"},
					"total": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "Total in minor units of the currency, negative for credit and refund notes"
					},
					"currency": {"type": "string", "description": "Three-letter ISO currency code"},
					"original_number": {
						"nullable": true,
						"description": "For a credit or refund note, the number of the document it corrects",
						"type": "string"
					}
				},
				"required": ["id", "number", "kind", "flow", "issued_at", "total", "currency", "original_number"],
				"additionalProperties": false
			},
			"AdminBillingDocumentLegacyImportResponse": {
				"type": "object",
				"properties": {
					"run": {"type": "string", "description": "When the run was started or last resumed, in ISO 8601"},
					"before": {"type": "string", "description": "The cutover time of the run, in ISO 8601"},
					"dry_run": {"type": "boolean", "description": "Whether the run only counts"},
					"cursor": {
						"nullable": true,
						"description": "The last Stripe invoice the run has gone through",
						"type": "string"
					},
					"done": {"type": "boolean", "description": "Whether the run has gone through every invoice"},
					"updated_at": {"type": "string", "description": "When the run last finished a page, in ISO 8601"},
					"scanned": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "Paid Stripe invoices with a PDF the run has looked at"
					},
					"imported": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "Invoices stored as legacy documents by this run"
					},
					"already_imported": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "Invoices an earlier run already stored"
					},
					"would_import": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "Invoices a dry run would store"
					},
					"no_account": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "Invoices that belong to no Fluxer account, such as donations, left out"
					},
					"fluxer_document": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "Invoices Fluxer already issued its own document for, left out"
					},
					"failed": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991,
						"description": "Invoices that could not be imported; running the import again retries them"
					}
				},
				"required": [
					"run",
					"before",
					"dry_run",
					"cursor",
					"done",
					"updated_at",
					"scanned",
					"imported",
					"already_imported",
					"would_import",
					"no_account",
					"fluxer_document",
					"failed"
				],
				"additionalProperties": false
			},
			"AdminBillingDocumentLegacyImportRequest": {
				"type": "object",
				"properties": {
					"before": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "The cutover time. Only Stripe invoices created before it are imported, so later Stripe invoices that Fluxer documents itself are left out"
					},
					"dry_run": {
						"type": "boolean",
						"description": "Count what would be imported without downloading or storing anything"
					},
					"resume": {
						"default": false,
						"description": "Continue the last run with the same before and dry_run from where it stopped instead of starting from the newest invoice",
						"type": "boolean"
					}
				},
				"required": ["before", "dry_run"]
			},
			"AdminBillingDocumentExportFileResponse": {
				"type": "string",
				"format": "binary",
				"description": "A zip with fluxer-dokument-YYYY-MM.csv and pdf/<number>.pdf for every document issued in the month"
			},
			"UpdateCustomBadgeRequest": {
				"type": "object",
				"properties": {
					"name": {"description": "The name of the badge", "type": "string"},
					"description": {
						"nullable": true,
						"description": "Text shown under the name when hovering over the badge, or null",
						"type": "string"
					},
					"href": {
						"nullable": true,
						"description": "Absolute https URL opened when the badge is clicked",
						"type": "string"
					},
					"image": {
						"description": "A new image as a base64 data URL. Leave it out to keep the current one",
						"type": "string",
						"maxLength": 16000000
					}
				},
				"required": ["name", "description", "href"]
			},
			"AdminCustomBadgeResponse": {
				"type": "object",
				"properties": {
					"id": {"description": "The ID of the badge", "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"type": {"allOf": [{"$ref": "#/components/schemas/CustomBadgeTypeSchema"}]},
					"position": {"allOf": [{"$ref": "#/components/schemas/CustomBadgePositionType"}]},
					"name": {"type": "string", "description": "The name of the badge"},
					"description": {
						"nullable": true,
						"description": "Text shown under the name when hovering over the badge, or null",
						"type": "string"
					},
					"asset_url": {"type": "string", "description": "URL of the badge image, served as WebP by the media proxy"},
					"href": {"nullable": true, "description": "URL opened when the badge is clicked, or null", "type": "string"}
				},
				"required": ["id", "type", "position", "name", "description", "asset_url", "href"],
				"additionalProperties": false
			},
			"UpdateCustomBadgeSettingsRequest": {
				"type": "object",
				"properties": {
					"max_per_user": {
						"type": "integer",
						"minimum": 1,
						"maximum": 1000,
						"description": "Most custom badges one user can be given"
					},
					"max_per_guild": {
						"type": "integer",
						"minimum": 1,
						"maximum": 200,
						"description": "Most custom badges one community can be given"
					}
				}
			},
			"AdminCustomBadgeSettingsResponse": {
				"type": "object",
				"properties": {
					"max_per_user": {
						"type": "integer",
						"minimum": 1,
						"maximum": 1000,
						"description": "Most custom badges one user can be given"
					},
					"max_per_guild": {
						"type": "integer",
						"minimum": 1,
						"maximum": 200,
						"description": "Most custom badges one community can be given"
					}
				},
				"required": ["max_per_user", "max_per_guild"],
				"additionalProperties": false
			},
			"MoveCustomBadgeRequest": {
				"type": "object",
				"properties": {
					"badge_id": {
						"description": "The ID of the badge to move",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
					},
					"direction": {"allOf": [{"$ref": "#/components/schemas/CustomBadgeMoveDirectionSchema"}]},
					"after_id": {
						"description": "Show the badge right after this badge of the same type, or first when null. Send either this or direction",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
					}
				},
				"required": ["badge_id"]
			},
			"ReorderCustomBadgesRequest": {
				"type": "object",
				"properties": {
					"badge_ids": {
						"maxItems": 1000,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"},
						"description": "IDs of every custom badge on this instance, user and guild, in the new display order. Instances with more than 1000 badges move badges one at a time"
					}
				},
				"required": ["badge_ids"]
			},
			"AdminCustomBadgeListResponse": {
				"type": "object",
				"properties": {
					"badges": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminCustomBadgeResponse"},
						"description": "One page of badges, in display order"
					},
					"next": {
						"nullable": true,
						"description": "Pass this as after to get the next page, or null when there are no more badges to look at. A search page can hold fewer badges than the limit and still have a next page",
						"allOf": [{"$ref": "#/components/schemas/CustomBadgeCursorType"}]
					},
					"version": {
						"type": "string",
						"description": "Version of the badge catalog. It changes whenever a badge is created, edited, deleted or moved"
					},
					"settings": {"$ref": "#/components/schemas/AdminCustomBadgeSettingsResponse"},
					"built_in": {
						"maxItems": 5,
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminBuiltInBadgeImageResponse"},
						"description": "Every built-in badge and the image this instance shows for it"
					}
				},
				"required": ["badges", "next", "version", "settings", "built_in"],
				"additionalProperties": false
			},
			"HideableBuiltInBadgeKindSchema": {
				"type": "string",
				"enum": ["guild_verified", "guild_partnered", "guild_discoverable"],
				"description": "A built-in community badge that this instance can stop showing: guild_verified, guild_partnered or guild_discoverable"
			},
			"BuiltInBadgeKindSchema": {
				"type": "string",
				"enum": ["staff", "premium", "guild_verified", "guild_partnered", "guild_discoverable"],
				"description": "A built-in badge whose image can be replaced: the staff or premium profile badge, or a community badge starting with guild_"
			},
			"ReplaceBuiltInBadgeImageRequest": {
				"type": "object",
				"properties": {
					"image": {
						"type": "string",
						"maxLength": 16000000,
						"description": "The badge image as a base64 data URL. PNG, JPEG, GIF, WebP and SVG images are accepted"
					}
				},
				"required": ["image"]
			},
			"CreateCustomBadgeRequest": {
				"type": "object",
				"properties": {
					"type": {"allOf": [{"$ref": "#/components/schemas/CustomBadgeTypeSchema"}]},
					"name": {"description": "The name of the badge", "type": "string"},
					"description": {"description": "Text shown when hovering over the badge", "nullable": true, "type": "string"},
					"href": {
						"nullable": true,
						"description": "Absolute https URL opened when the badge is clicked",
						"type": "string"
					},
					"image": {
						"type": "string",
						"maxLength": 16000000,
						"description": "The badge image as a base64 data URL. PNG, JPEG, GIF, WebP and SVG images are accepted"
					}
				},
				"required": ["type", "name", "image"]
			},
			"CustomBadgeCursorType": {
				"type": "string",
				"pattern": "^[gu]-?[0-9]{1,19}$",
				"description": "Opaque cursor from the next field of a previous page"
			},
			"CustomBadgeTypeSchema": {
				"description": "Where the badge is shown",
				"x-enumNames": ["User", "Guild"],
				"x-enumDescriptions": [
					"Shown on the profiles of the users it is assigned to",
					"Shown next to the names of the communities it is assigned to"
				],
				"enum": ["user", "guild"],
				"type": "string"
			},
			"AdminAuditLogResponseSchema": {
				"type": "object",
				"properties": {
					"log_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"admin_user_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"admin_user": {
						"nullable": true,
						"type": "object",
						"properties": {
							"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
							"username": {"type": "string"},
							"discriminator": {"type": "string"},
							"global_name": {"nullable": true, "type": "string"}
						},
						"required": ["id", "username", "discriminator", "global_name"],
						"additionalProperties": false
					},
					"target_type": {"type": "string", "minLength": 1, "maxLength": 256},
					"target_id": {
						"type": "string",
						"description": "The ID of the affected entity (user, channel, role, invite code, etc.)"
					},
					"target_user": {
						"nullable": true,
						"type": "object",
						"properties": {
							"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
							"username": {"type": "string"},
							"discriminator": {"type": "string"},
							"global_name": {"nullable": true, "type": "string"}
						},
						"required": ["id", "username", "discriminator", "global_name"],
						"additionalProperties": false
					},
					"target_guild": {
						"nullable": true,
						"type": "object",
						"properties": {"id": {"$ref": "#/components/schemas/SnowflakeStringType"}, "name": {"type": "string"}},
						"required": ["id", "name"],
						"additionalProperties": false
					},
					"target_channel": {
						"nullable": true,
						"type": "object",
						"properties": {
							"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
							"name": {"nullable": true, "type": "string"},
							"type": {"allOf": [{"$ref": "#/components/schemas/ChannelType"}]},
							"guild_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]}
						},
						"required": ["id", "name", "type", "guild_id"],
						"additionalProperties": false
					},
					"related_users": {
						"type": "object",
						"additionalProperties": {
							"type": "object",
							"properties": {
								"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"username": {"type": "string"},
								"discriminator": {"type": "string"},
								"global_name": {"nullable": true, "type": "string"}
							},
							"required": ["id", "username", "discriminator", "global_name"],
							"additionalProperties": false
						}
					},
					"related_guilds": {
						"type": "object",
						"additionalProperties": {
							"type": "object",
							"properties": {"id": {"$ref": "#/components/schemas/SnowflakeStringType"}, "name": {"type": "string"}},
							"required": ["id", "name"],
							"additionalProperties": false
						}
					},
					"related_channels": {
						"type": "object",
						"additionalProperties": {
							"type": "object",
							"properties": {
								"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"name": {"nullable": true, "type": "string"},
								"type": {"allOf": [{"$ref": "#/components/schemas/ChannelType"}]},
								"guild_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]}
							},
							"required": ["id", "name", "type", "guild_id"],
							"additionalProperties": false
						}
					},
					"action": {"type": "string", "minLength": 1, "maxLength": 256},
					"access": {
						"description": "Whether the recorded operation read data or changed it",
						"x-enumNames": ["read", "write"],
						"x-enumDescriptions": [
							"An entry recorded by an operation that only reads data",
							"An entry recorded by an operation that changes data or triggers work"
						],
						"enum": ["read", "write"],
						"type": "string"
					},
					"audit_log_reason": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 4000},
					"metadata": {"type": "object", "additionalProperties": {"type": "string", "maxLength": 4000}},
					"created_at": {"type": "string"}
				},
				"required": [
					"log_id",
					"admin_user_id",
					"admin_user",
					"target_type",
					"target_id",
					"target_user",
					"target_guild",
					"target_channel",
					"related_users",
					"related_guilds",
					"related_channels",
					"action",
					"access",
					"audit_log_reason",
					"metadata",
					"created_at"
				],
				"additionalProperties": false
			},
			"AuditLogsListResponseSchema": {
				"type": "object",
				"properties": {
					"logs": {"type": "array", "items": {"$ref": "#/components/schemas/AdminAuditLogResponseSchema"}},
					"total": {"type": "number"}
				},
				"required": ["logs", "total"],
				"additionalProperties": false
			},
			"ArchiveSubjectTypeSchema": {
				"description": "Type of subject being archived",
				"x-enumNames": ["user", "guild"],
				"x-enumDescriptions": ["User data archive", "Guild data archive"],
				"enum": ["user", "guild"],
				"type": "string"
			},
			"DownloadUrlResponseSchema": {
				"type": "object",
				"properties": {
					"downloadUrl": {"type": "string", "minLength": 1, "maxLength": 2048},
					"expiresAt": {"type": "string"}
				},
				"required": ["downloadUrl", "expiresAt"],
				"additionalProperties": false
			},
			"GetArchiveResponseSchema": {
				"type": "object",
				"properties": {
					"archive": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/AdminArchiveResponseSchema"}]}
				},
				"required": ["archive"],
				"additionalProperties": false
			},
			"ListArchivesResponseSchema": {
				"type": "object",
				"properties": {
					"archives": {"type": "array", "items": {"$ref": "#/components/schemas/AdminArchiveResponseSchema"}}
				},
				"required": ["archives"],
				"additionalProperties": false
			},
			"TransferApplicationOwnershipRequest": {
				"type": "object",
				"properties": {
					"new_owner_id": {
						"description": "ID of the user to transfer ownership to",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]
					}
				},
				"required": ["new_owner_id"]
			},
			"ApplicationUpdateResponse": {
				"type": "object",
				"properties": {"application": {"$ref": "#/components/schemas/ApplicationAdminResponse"}},
				"required": ["application"],
				"additionalProperties": false
			},
			"LookupApplicationResponse": {
				"type": "object",
				"properties": {
					"application": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/ApplicationAdminResponse"}]}
				},
				"required": ["application"],
				"additionalProperties": false
			},
			"ListAppSessionsResponse": {
				"type": "object",
				"properties": {
					"sessions": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"user_id": {
									"description": "ID of the user who owns the session",
									"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
								},
								"session_id_hash": {
									"description": "Hashed session identifier (base64url)",
									"type": "string",
									"minLength": 8,
									"maxLength": 256
								},
								"created_at": {"type": "string", "description": "ISO timestamp when the session was created"},
								"approx_last_used_at": {
									"type": "string",
									"description": "ISO timestamp of the session last usage (approximate)"
								},
								"app_version": {
									"nullable": true,
									"description": "App version the session last reported",
									"type": "string"
								},
								"app_build_number": {
									"nullable": true,
									"description": "Platform build number the session last reported",
									"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
								},
								"app_beta_number": {
									"nullable": true,
									"description": "Beta number the session last reported, for beta builds only",
									"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
								}
							},
							"required": [
								"user_id",
								"session_id_hash",
								"created_at",
								"approx_last_used_at",
								"app_version",
								"app_build_number",
								"app_beta_number"
							],
							"additionalProperties": false
						}
					},
					"next_cursor": {
						"nullable": true,
						"description": "Pass this as after to read the next page, or null when this is the last page",
						"type": "string"
					}
				},
				"required": ["sessions", "next_cursor"],
				"additionalProperties": false
			},
			"DeleteApiKeyResponse": {
				"type": "object",
				"properties": {"success": {"type": "boolean", "enum": [true]}},
				"required": ["success"],
				"additionalProperties": false
			},
			"UpdateAdminApiKeyRequest": {
				"type": "object",
				"properties": {
					"name": {
						"description": "New display name for the API key",
						"type": "string",
						"minLength": 1,
						"maxLength": 100
					},
					"acls": {
						"description": "Replacement list of access control permissions for the key",
						"maxItems": 118,
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminAclType"}
					}
				}
			},
			"ListAdminApiKeyResponse": {
				"type": "object",
				"properties": {
					"key_id": {"type": "string", "description": "Unique identifier for the API key"},
					"name": {"type": "string", "description": "Display name for the API key"},
					"created_at": {"type": "string", "description": "ISO 8601 timestamp when the key was created"},
					"expires_at": {
						"nullable": true,
						"description": "ISO 8601 timestamp when the key expires, or null if no expiration",
						"type": "string"
					},
					"acls": {
						"maxItems": 118,
						"type": "array",
						"items": {"type": "string"},
						"description": "List of access control permissions for the key"
					},
					"last_used_at": {
						"nullable": true,
						"description": "ISO 8601 timestamp when the key was last used, or null if never used",
						"type": "string"
					},
					"created_by_user_id": {
						"description": "User ID of the admin who created this key",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					}
				},
				"required": ["key_id", "name", "created_at", "expires_at", "acls", "last_used_at", "created_by_user_id"],
				"additionalProperties": false
			},
			"AdminApiKeyListResponse": {"type": "array", "items": {"$ref": "#/components/schemas/ListAdminApiKeyResponse"}},
			"CreateAdminApiKeyRequest": {
				"type": "object",
				"properties": {
					"name": {"type": "string", "minLength": 1, "maxLength": 100, "description": "Display name for the API key"},
					"expires_in_days": {
						"description": "Number of days until the key expires",
						"type": "integer",
						"minimum": 1,
						"maximum": 365
					},
					"acls": {
						"maxItems": 118,
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminAclType"},
						"description": "List of access control permissions for the key"
					}
				},
				"required": ["name", "acls"]
			},
			"CreateAdminApiKeyResponse": {
				"type": "object",
				"properties": {
					"key_id": {"type": "string", "description": "Unique identifier for the API key"},
					"key": {"type": "string", "description": "The generated API key secret (only shown once)"},
					"name": {"type": "string", "description": "Display name for the API key"},
					"created_at": {"type": "string", "description": "ISO 8601 timestamp when the key was created"},
					"expires_at": {
						"nullable": true,
						"description": "ISO 8601 timestamp when the key expires, or null if no expiration",
						"type": "string"
					},
					"acls": {
						"maxItems": 118,
						"type": "array",
						"items": {"type": "string"},
						"description": "List of access control permissions for the key"
					}
				},
				"required": ["key_id", "key", "name", "created_at", "expires_at", "acls"],
				"additionalProperties": false
			},
			"AdminAclListResponse": {
				"type": "object",
				"properties": {
					"acls": {
						"maxItems": 118,
						"type": "array",
						"items": {"type": "string", "minLength": 1, "maxLength": 64},
						"description": "Every admin access control permission the admin API recognises"
					}
				},
				"required": ["acls"],
				"additionalProperties": false
			},
			"ApplicationAdminResponse": {
				"type": "object",
				"properties": {
					"id": {
						"description": "The unique identifier for this application",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"name": {
						"description": "The display name of the application",
						"type": "string",
						"minLength": 1,
						"maxLength": 256
					},
					"owner_user_id": {
						"description": "The user ID that owns this application",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"owner_username": {
						"nullable": true,
						"description": "The username of the owner, if resolvable",
						"type": "string"
					},
					"owner_global_name": {
						"nullable": true,
						"description": "The display name of the owner, if set",
						"type": "string"
					},
					"owner_discriminator": {
						"nullable": true,
						"description": "The discriminator of the owner, if resolvable",
						"type": "string"
					},
					"bot_user_id": {
						"nullable": true,
						"description": "The user ID of the associated bot user, if any",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"bot_username": {"nullable": true, "description": "The username of the bot user, if any", "type": "string"},
					"bot_global_name": {
						"nullable": true,
						"description": "The display name of the bot user, if set",
						"type": "string"
					},
					"bot_discriminator": {
						"nullable": true,
						"description": "The discriminator of the bot user, if any",
						"type": "string"
					},
					"bot_is_public": {"type": "boolean", "description": "Whether the bot is publicly joinable"},
					"bot_require_code_grant": {
						"type": "boolean",
						"description": "Whether an OAuth2 code grant is required for this bot"
					},
					"oauth2_redirect_uris": {
						"maxItems": 10,
						"type": "array",
						"items": {"type": "string"},
						"description": "Registered OAuth2 redirect URIs"
					},
					"has_client_secret": {
						"type": "boolean",
						"description": "Whether a hashed client secret is stored for this application"
					},
					"has_bot_token": {
						"type": "boolean",
						"description": "Whether a hashed bot token is stored for this application"
					},
					"bot_token_preview": {
						"nullable": true,
						"description": "The preview (last few characters) of the bot token, if any",
						"type": "string"
					},
					"bot_token_created_at": {
						"nullable": true,
						"description": "ISO 8601 timestamp when the bot token was created",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"client_secret_created_at": {
						"nullable": true,
						"description": "ISO 8601 timestamp when the client secret was created",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"version": {
						"description": "The optimistic locking version of the application record",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					}
				},
				"required": [
					"id",
					"name",
					"owner_user_id",
					"owner_username",
					"owner_global_name",
					"owner_discriminator",
					"bot_user_id",
					"bot_username",
					"bot_global_name",
					"bot_discriminator",
					"bot_is_public",
					"bot_require_code_grant",
					"oauth2_redirect_uris",
					"has_client_secret",
					"has_bot_token",
					"bot_token_preview",
					"bot_token_created_at",
					"client_secret_created_at",
					"version"
				],
				"additionalProperties": false
			},
			"ChannelType": {
				"description": "The type of the channel",
				"type": "integer",
				"enum": [0, 1, 2, 3, 4, 5, 10, 11, 12, 15, 16, 998, 999],
				"format": "int32",
				"x-enumNames": [
					"GUILD_TEXT",
					"DM",
					"GUILD_VOICE",
					"GROUP_DM",
					"GUILD_CATEGORY",
					"GUILD_ANNOUNCEMENT",
					"ANNOUNCEMENT_THREAD",
					"PUBLIC_THREAD",
					"PRIVATE_THREAD",
					"GUILD_FORUM",
					"GUILD_MEDIA",
					"GUILD_LINK",
					"DM_PERSONAL_NOTES"
				],
				"x-enumDescriptions": [
					"A text channel within a guild",
					"A direct message between users",
					"A voice channel within a guild",
					"A group direct message between users",
					"A category that contains channels",
					"A guild channel whose messages can be published to channels that follow it",
					"A public thread within an announcement channel",
					"A public thread within a text, forum or media channel",
					"A private thread within a text channel",
					"A channel that can only contain threads",
					"A channel that can only contain threads in a gallery view",
					"A link channel for external resources",
					"Personal notes DM channel"
				]
			},
			"AdminBuiltInBadgeImageResponse": {
				"type": "object",
				"properties": {
					"kind": {"allOf": [{"$ref": "#/components/schemas/BuiltInBadgeKindSchema"}]},
					"asset_url": {
						"nullable": true,
						"description": "URL of the image shown in place of the built-in artwork, or null when the built-in artwork is used",
						"type": "string"
					},
					"built_in_asset": {
						"nullable": true,
						"description": "Hash of the built-in artwork at {static_cdn}/badges/{hash}.webp, or null for a guild badge, which clients draw themselves",
						"type": "string"
					},
					"hidden": {
						"type": "boolean",
						"description": "True when clients do not show this badge. Only community badges can be hidden, so profile badges are always false"
					}
				},
				"required": ["kind", "asset_url", "built_in_asset", "hidden"],
				"additionalProperties": false
			},
			"CustomBadgeMoveDirectionSchema": {
				"description": "Where to move the badge",
				"x-enumNames": ["Up", "Down", "First", "Last"],
				"x-enumDescriptions": [
					"Swap places with the badge shown before it",
					"Swap places with the badge shown after it",
					"Show it before every other badge of its type",
					"Show it after every other badge of its type"
				],
				"enum": ["up", "down", "first", "last"],
				"type": "string"
			},
			"CustomBadgePositionType": {
				"type": "string",
				"pattern": "^-?[0-9]{1,19}$",
				"description": "Display position of the badge. Badges are shown in ascending order of this value"
			},
			"BillingDocumentKind": {
				"type": "string",
				"enum": ["invoice", "receipt", "donation_receipt", "credit_note", "refund_note", "stripe_invoice"],
				"description": "What the document is. Credit and refund notes correct an earlier document. stripe_invoice is an invoice Stripe issued before Fluxer issued its own documents, kept read-only as Stripe issued it"
			},
			"BanProfileSubstringRequest": {
				"type": "object",
				"properties": {
					"scope": {"type": "string", "enum": ["username", "global_name", "nickname", "bio", "pronouns"]},
					"substrings": {"minItems": 1, "maxItems": 1000, "type": "array", "items": {"type": "string"}},
					"reason": {"type": "string"},
					"notes": {"type": "string"}
				},
				"required": ["scope", "substrings"]
			},
			"BanAvatarHashRequest": {
				"type": "object",
				"properties": {
					"hashes": {"minItems": 1, "maxItems": 1000, "type": "array", "items": {"type": "string"}},
					"category": {"type": "string"},
					"severity": {
						"description": "Stored severity label: 0 allow, 1 warn, 2 block, 3 block and report (default 2). The label is informational and every row blocks whatever its severity.",
						"type": "integer",
						"minimum": 0,
						"maximum": 3
					},
					"source_url": {"type": "string"},
					"reason": {"type": "string"},
					"notes": {"type": "string"}
				},
				"required": ["hashes"]
			},
			"BanFileShaRequest": {
				"type": "object",
				"properties": {
					"sha256_hex": {"description": "SHA-256 in hex", "type": "string"},
					"category": {"type": "string"},
					"severity": {
						"description": "Stored severity label: 0 allow, 1 warn, 2 block, 3 block and report (default 2). The label is informational and every row blocks whatever its severity.",
						"type": "integer",
						"minimum": 0,
						"maximum": 3
					},
					"content_type": {"description": "Optional MIME type hint for observability", "type": "string"},
					"source_url": {"type": "string"},
					"notes": {"type": "string"}
				},
				"required": ["sha256_hex"]
			},
			"BanUrlDomainRequest": {
				"type": "object",
				"properties": {
					"domain": {
						"description": "Domain to ban (e.g. example.com), or a pattern whose leftmost label contains * under a registrable domain (e.g. *shop*.example.com). Internationalized names are stored in ASCII form.",
						"type": "string"
					},
					"match_subdomains": {
						"default": true,
						"description": "If true, any subdomain rooted at this domain, or at a host the pattern matches, is also banned",
						"type": "boolean"
					},
					"category": {"description": "Category / source slug (defaults to \"manual\")", "type": "string"},
					"severity": {
						"description": "Stored severity label: 0 allow, 1 warn, 2 block, 3 block and report (default 2). The label is informational and every row blocks whatever its severity.",
						"type": "integer",
						"minimum": 0,
						"maximum": 3
					},
					"source_url": {"description": "Upstream source URL if imported from a feed", "type": "string"},
					"notes": {"description": "Internal notes for audit trail", "type": "string"}
				},
				"required": ["domain"]
			},
			"BanUrlRequest": {
				"type": "object",
				"properties": {
					"url": {"description": "Absolute URL to ban. Canonicalized before storage.", "type": "string"},
					"category": {"description": "Category / source slug (defaults to \"manual\")", "type": "string"},
					"severity": {
						"description": "Stored severity label: 0 allow, 1 warn, 2 block, 3 block and report (default 2). The label is informational and every row blocks whatever its severity.",
						"type": "integer",
						"minimum": 0,
						"maximum": 3
					},
					"source_url": {"description": "Upstream source URL if imported from a feed", "type": "string"},
					"notes": {"description": "Internal notes for audit trail", "type": "string"}
				},
				"required": ["url"]
			},
			"BanPhraseRequest": {
				"type": "object",
				"properties": {
					"phrase": {
						"description": "Phrase to ban. Matching is case-insensitive and also normalizes common bypass tricks such as inserted whitespace, punctuation, invisible characters, and compatibility glyphs.",
						"type": "string"
					}
				},
				"required": ["phrase"]
			},
			"BanEmailRequest": {
				"type": "object",
				"properties": {
					"email": {
						"description": "Email address to ban, or a domain written as @example.com to ban every address at it and its subdomains",
						"allOf": [{"$ref": "#/components/schemas/EmailBlocklistEntryType"}]
					}
				},
				"required": ["email"]
			},
			"BanIpRequest": {
				"type": "object",
				"properties": {
					"ip": {"description": "IPv4/IPv6 address or CIDR range to ban", "type": "string"},
					"duration_hours": {
						"description": "Hours until the ban expires and its entry is removed. Omit it or use 0 for a permanent ban.",
						"type": "integer",
						"minimum": 0,
						"maximum": 8760
					}
				},
				"required": ["ip"]
			},
			"EmailBlocklistEntryType": {"type": "string"},
			"CheckAvatarHashRequest": {
				"type": "object",
				"properties": {"hashes": {"minItems": 1, "maxItems": 1000, "type": "array", "items": {"type": "string"}}},
				"required": ["hashes"]
			},
			"AdminBlocklistProfileSubstringUpdateRequest": {
				"type": "object",
				"properties": {
					"scope": {"type": "string", "enum": ["username", "global_name", "nickname", "bio", "pronouns"]},
					"reason": {"type": "string"},
					"notes": {"type": "string"}
				},
				"required": ["scope"]
			},
			"AdminBlocklistAvatarHashUpdateRequest": {
				"type": "object",
				"properties": {
					"category": {"type": "string"},
					"severity": {
						"description": "Stored severity label: 0 allow, 1 warn, 2 block, 3 block and report (default 2). The label is informational and every row blocks whatever its severity.",
						"type": "integer",
						"minimum": 0,
						"maximum": 3
					},
					"source_url": {"type": "string"},
					"reason": {"type": "string"},
					"notes": {"type": "string"}
				}
			},
			"AdminBlocklistFileShaUpdateRequest": {
				"type": "object",
				"properties": {
					"category": {"type": "string"},
					"severity": {
						"description": "Stored severity label: 0 allow, 1 warn, 2 block, 3 block and report (default 2). The label is informational and every row blocks whatever its severity.",
						"type": "integer",
						"minimum": 0,
						"maximum": 3
					},
					"content_type": {"description": "Optional MIME type hint for observability", "type": "string"},
					"source_url": {"type": "string"},
					"notes": {"type": "string"}
				}
			},
			"AdminBlocklistUrlDomainUpdateRequest": {
				"type": "object",
				"properties": {
					"match_subdomains": {
						"default": true,
						"description": "If true, any subdomain rooted at this domain, or at a host the pattern matches, is also banned",
						"type": "boolean"
					},
					"category": {"description": "Category / source slug (defaults to \"manual\")", "type": "string"},
					"severity": {
						"description": "Stored severity label: 0 allow, 1 warn, 2 block, 3 block and report (default 2). The label is informational and every row blocks whatever its severity.",
						"type": "integer",
						"minimum": 0,
						"maximum": 3
					},
					"source_url": {"description": "Upstream source URL if imported from a feed", "type": "string"},
					"notes": {"description": "Internal notes for audit trail", "type": "string"}
				}
			},
			"AdminBlocklistUrlUpdateRequest": {
				"type": "object",
				"properties": {
					"category": {"description": "Category / source slug (defaults to \"manual\")", "type": "string"},
					"severity": {
						"description": "Stored severity label: 0 allow, 1 warn, 2 block, 3 block and report (default 2). The label is informational and every row blocks whatever its severity.",
						"type": "integer",
						"minimum": 0,
						"maximum": 3
					},
					"source_url": {"description": "Upstream source URL if imported from a feed", "type": "string"},
					"notes": {"description": "Internal notes for audit trail", "type": "string"}
				}
			},
			"BulkModerationBasis": {
				"oneOf": [
					{
						"type": "object",
						"properties": {
							"type": {"type": "string", "enum": ["enforcement"]},
							"decision": {"allOf": [{"$ref": "#/components/schemas/BulkEnforcementDecisionInput"}]}
						},
						"required": ["type", "decision"],
						"description": "A rule was broken. Records an enforcement decision and sends its notice"
					},
					{
						"type": "object",
						"properties": {"type": {"type": "string", "enum": ["holder_request"]}},
						"required": ["type"],
						"description": "The account holder or community owner asked"
					},
					{
						"type": "object",
						"properties": {"type": {"type": "string", "enum": ["housekeeping"]}},
						"required": ["type"],
						"description": "Nobody's conduct is involved, such as inactivity or cleanup"
					}
				],
				"description": "Why the action is taken"
			},
			"GuildFeatureSchema": {
				"description": "A guild feature flag Known values: ANIMATED_ICON, ANIMATED_BANNER, AUDIO_BITRATE_128_KBPS, AUDIO_BITRATE_256_KBPS, AUDIO_BITRATE_384_KBPS, BANNER, CLONE_EMOJI_DISABLED, CLONE_EMOJI_ENABLED, CLONE_STICKER_DISABLED, CLONE_STICKER_ENABLED, DETACHED_BANNER, INVITE_SPLASH, INVITES_DISABLED, RAID_DETECTED, TEXT_CHANNEL_FLEXIBLE_NAMES, HIDE_OWNER_CROWN, MORE_EMOJI, MORE_STICKERS, UNLIMITED_EMOJI, UNLIMITED_STICKERS, EXPRESSION_PURGE_ALLOWED, VANITY_URL, DISCOVERABLE, PARTNERED, VERIFIED, VIP_VOICE, VOICE_E2EE, UNAVAILABLE_FOR_EVERYONE, UNAVAILABLE_FOR_EVERYONE_BUT_STAFF, UNAVAILABLE_HIDDEN, VISIONARY, LARGE_GUILD_OVERRIDE, VERY_LARGE_GUILD, ANNOUNCEMENT_CHANNELS_DISABLED, VISITS_ENABLED (other values allowed)",
				"x-enumNames": [
					"ANIMATED_ICON",
					"ANIMATED_BANNER",
					"AUDIO_BITRATE_128_KBPS",
					"AUDIO_BITRATE_256_KBPS",
					"AUDIO_BITRATE_384_KBPS",
					"BANNER",
					"CLONE_EMOJI_DISABLED",
					"CLONE_EMOJI_ENABLED",
					"CLONE_STICKER_DISABLED",
					"CLONE_STICKER_ENABLED",
					"DETACHED_BANNER",
					"INVITE_SPLASH",
					"INVITES_DISABLED",
					"RAID_DETECTED",
					"TEXT_CHANNEL_FLEXIBLE_NAMES",
					"HIDE_OWNER_CROWN",
					"MORE_EMOJI",
					"MORE_STICKERS",
					"UNLIMITED_EMOJI",
					"UNLIMITED_STICKERS",
					"EXPRESSION_PURGE_ALLOWED",
					"VANITY_URL",
					"DISCOVERABLE",
					"PARTNERED",
					"VERIFIED",
					"VIP_VOICE",
					"VOICE_E2EE",
					"UNAVAILABLE_FOR_EVERYONE",
					"UNAVAILABLE_FOR_EVERYONE_BUT_STAFF",
					"UNAVAILABLE_HIDDEN",
					"VISIONARY",
					"LARGE_GUILD_OVERRIDE",
					"VERY_LARGE_GUILD",
					"ANNOUNCEMENT_CHANNELS_DISABLED",
					"VISITS_ENABLED"
				],
				"x-enumDescriptions": [
					"Guild can have an animated icon",
					"Guild can have an animated banner",
					"Guild can set a voice channel bitrate of up to 128 kbps",
					"Guild can set a voice channel bitrate of up to 256 kbps",
					"Guild can set a voice channel bitrate of up to 384 kbps",
					"Guild can have a banner",
					"Deprecated and no longer enforced: emoji cloning is now opt-in through CLONE_EMOJI_ENABLED",
					"Guild allows non-members to use the in-app one-click emoji clone shortcut",
					"Deprecated and no longer enforced: sticker cloning is now opt-in through CLONE_STICKER_ENABLED",
					"Guild allows non-members to use the in-app one-click sticker clone shortcut",
					"Guild banner is detached from splash",
					"Guild can have an invite splash",
					"Guild has invites disabled",
					"Guild has a detected raid and invites are restricted",
					"Guild allows flexible text channel names",
					"Guild hides the community owner crown icon",
					"Legacy increased emoji slots feature",
					"Legacy increased sticker slots feature",
					"Guild has unlimited emoji slots",
					"Guild has unlimited sticker slots",
					"Guild allows purging expressions",
					"Guild can have a vanity URL",
					"Guild is listed in the public discovery directory",
					"Guild is a partnered guild",
					"Guild is verified",
					"Guild has VIP voice features",
					"Guild has end-to-end encryption for voice channel calls",
					"Guild is unavailable for everyone",
					"Guild is unavailable except for staff",
					"Guild is hidden when it is force unavailable",
					"Guild is a visionary guild",
					"Guild has large guild overrides enabled",
					"Guild has increased member capacity enabled",
					"Guild cannot publish announcement messages or gain new followers",
					"People with an invite or a discovery listing can read channels that @everyone can see without joining"
				],
				"type": "string"
			},
			"UserFlags": {
				"type": "string",
				"pattern": "^\\d+$",
				"description": "User account flags (64-bit)",
				"format": "int64",
				"x-bitflagValues": [
					{"name": "STAFF", "value": "1", "description": "User is a staff member"},
					{"name": "PARTNER", "value": "4", "description": "User is a partner"},
					{"name": "BUG_HUNTER", "value": "8", "description": "User is a bug hunter"},
					{
						"name": "HIGH_GLOBAL_RATE_LIMIT",
						"value": "8589934592",
						"description": "User has elevated global rate limits"
					},
					{"name": "FRIENDLY_BOT", "value": "16", "description": "Bot accepts friend requests from users"},
					{
						"name": "FRIENDLY_BOT_MANUAL_APPROVAL",
						"value": "32",
						"description": "Bot requires manual approval for friend requests"
					},
					{"name": "SPAMMER", "value": "64", "description": "User is flagged as a spammer"},
					{"name": "PROFILE_HIDDEN", "value": "128", "description": "User profile details are hidden from other users"},
					{"name": "DELETED", "value": "17179869184", "description": "User account has been deleted"},
					{"name": "SELF_DELETED", "value": "68719476736", "description": "User account was self-deleted"},
					{"name": "DISABLED", "value": "274877906944", "description": "User account is disabled"},
					{"name": "HAS_SESSION_STARTED", "value": "549755813888", "description": "User has started a session"},
					{"name": "RATE_LIMIT_BYPASS", "value": "140737488355328", "description": "User can bypass rate limits"},
					{"name": "REPORT_BANNED", "value": "281474976710656", "description": "User is banned from reporting"},
					{
						"name": "VERIFIED_NOT_UNDERAGE",
						"value": "562949953421312",
						"description": "User is verified as not underage"
					},
					{"name": "ACCOUNT_LIMITED", "value": "1125899906842624", "description": "User account is limited"},
					{
						"name": "HAS_DISMISSED_PREMIUM_ONBOARDING",
						"value": "2251799813685248",
						"description": "User has dismissed premium onboarding"
					},
					{"name": "APP_STORE_REVIEWER", "value": "9007199254740992", "description": "User is an app store reviewer"},
					{
						"name": "AGE_VERIFIED_ADULT",
						"value": "1152921504606846976",
						"description": "User has verified their age as an adult"
					},
					{
						"name": "LIMIT_EXEMPT",
						"value": "4611686018427387904",
						"description": "User is permanently exempt from account limitation"
					}
				]
			},
			"BulkEnforcementDecisionInput": {
				"type": "object",
				"properties": {
					"reason_code": {"allOf": [{"$ref": "#/components/schemas/EnforcementReasonCodeType"}]},
					"source": {
						"type": "string",
						"enum": ["own_review"],
						"description": "Bulk decisions cannot link reports, so the team always found them in its own review"
					},
					"automation": {
						"type": "string",
						"enum": ["none", "flagged"],
						"description": "Whether automated tools flagged this before a person on the team decided"
					},
					"statement": {
						"description": "Note to the user, shown in every notice. It is the only fact a bulk decision can give",
						"type": "string"
					}
				},
				"required": ["reason_code", "source", "automation", "statement"],
				"additionalProperties": false,
				"description": "Why every account in the job is restricted. Reports and evidence messages are refused in bulk"
			},
			"EnforcementReasonCodeType": {
				"description": "Reason code of an enforcement decision",
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"format": "int32",
				"x-enumNames": [
					"SPAM",
					"CHEATING_OR_EXPLOITATION",
					"COORDINATED_RAIDING",
					"AUTOMATION_OR_SELFBOT",
					"NONCONSENSUAL_SEXUAL_CONTENT",
					"SCAM_OR_SOCIAL_ENGINEERING",
					"CHILD_SEXUAL_CONTENT",
					"PRIVACY_VIOLATION_OR_DOXXING",
					"HARASSMENT_OR_BULLYING",
					"PAYMENT_FRAUD",
					"CHILD_SAFETY_VIOLATION",
					"BILLING_DISPUTE_OR_ABUSE",
					"UNSOLICITED_EXPLICIT_CONTENT",
					"GRAPHIC_VIOLENCE",
					"BAN_EVASION",
					"TOKEN_OR_CREDENTIAL_SCAM",
					"HATE_SPEECH_OR_EXTREMIST_CONTENT",
					"MALICIOUS_LINKS_OR_MALWARE",
					"IMPERSONATION_OR_FAKE_IDENTITY",
					"THREATS_OR_VIOLENT_SPEECH",
					"VIOLENT_EXTREMISM",
					"SELF_HARM_PROMOTION",
					"SEXUAL_CONTENT_PLACEMENT",
					"ILLEGAL_GOODS_OR_ACTIVITY",
					"HARMFUL_DECEPTION",
					"REPORTING_ABUSE",
					"UNDERAGE_ACCOUNT",
					"COPYRIGHT",
					"OPERATOR_PASS_PAYMENT_DISPUTE"
				],
				"enum": [
					3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 34
				]
			},
			"MessageResponseSchema": {
				"type": "object",
				"properties": {
					"id": {
						"description": "The unique identifier (snowflake) for this message",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"channel_id": {
						"description": "The ID of the channel this message was sent in",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"author": {
						"description": "The author of the message",
						"allOf": [{"$ref": "#/components/schemas/UserPartialResponse"}]
					},
					"webhook_id": {
						"description": "The ID of the webhook that sent this message",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"type": {"allOf": [{"$ref": "#/components/schemas/MessageType"}]},
					"flags": {
						"description": "The bitwise flags for this message",
						"allOf": [{"$ref": "#/components/schemas/MessageFlags"}]
					},
					"content": {"type": "string", "description": "The text content of the message"},
					"timestamp": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "The ISO 8601 timestamp of when the message was created"
					},
					"edited_timestamp": {
						"description": "The ISO 8601 timestamp of when the message was last edited",
						"nullable": true,
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"pinned": {"type": "boolean", "description": "Whether the message is pinned"},
					"mention_everyone": {"type": "boolean", "description": "Whether the message mentions @everyone"},
					"tts": {"type": "boolean", "description": "Whether the message was sent as text-to-speech"},
					"mentions": {
						"type": "array",
						"items": {"allOf": [{"$ref": "#/components/schemas/UserPartialResponse"}]},
						"description": "The users mentioned in the message"
					},
					"mention_roles": {
						"type": "array",
						"items": {"type": "string"},
						"description": "The role IDs mentioned in the message"
					},
					"mention_channels": {
						"description": "Channels mentioned in the message that are visible to @everyone",
						"nullable": true,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageChannelMentionResponse"}
					},
					"users": {
						"description": "Users referenced from non-notifying content, embed, and snapshot text, included for client-side resolution",
						"nullable": true,
						"type": "array",
						"items": {"allOf": [{"$ref": "#/components/schemas/UserPartialResponse"}]}
					},
					"embeds": {
						"description": "The embeds attached to the message",
						"nullable": true,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageEmbedResponse"}
					},
					"attachments": {
						"description": "The files attached to the message",
						"nullable": true,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageAttachmentResponse"}
					},
					"stickers": {
						"description": "The stickers sent with the message",
						"nullable": true,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageStickerResponse"}
					},
					"reactions": {
						"description": "The reactions on the message",
						"nullable": true,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageReactionResponse"}
					},
					"message_reference": {
						"description": "Reference data for replies or forwards",
						"nullable": true,
						"type": "object",
						"properties": {
							"channel_id": {
								"description": "The ID of the channel containing the referenced message",
								"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
							},
							"message_id": {
								"description": "The ID of the referenced message, absent on a channel follow system message and on thread created messages that reference only a thread",
								"nullable": true,
								"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
							},
							"guild_id": {
								"description": "The ID of the guild containing the referenced message",
								"nullable": true,
								"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
							},
							"type": {"allOf": [{"$ref": "#/components/schemas/MessageReferenceType"}]}
						},
						"required": ["channel_id", "type"],
						"additionalProperties": false
					},
					"message_snapshots": {
						"description": "Snapshots of forwarded messages",
						"nullable": true,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageSnapshotResponse"}
					},
					"nonce": {
						"description": "A client-provided value for message deduplication",
						"nullable": true,
						"type": "string"
					},
					"call": {
						"description": "Call information if this message represents a call",
						"nullable": true,
						"type": "object",
						"properties": {
							"participants": {
								"type": "array",
								"items": {"type": "string"},
								"description": "The user IDs of participants in the call"
							},
							"ended_timestamp": {
								"description": "The ISO 8601 timestamp of when the call ended",
								"nullable": true,
								"type": "string",
								"format": "date-time",
								"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
							}
						},
						"required": ["participants"],
						"additionalProperties": false
					},
					"thread": {
						"description": "The thread started from this message, when the viewer can see threads",
						"allOf": [{"$ref": "#/components/schemas/ThreadChannelResponse"}]
					},
					"referenced_message": {
						"description": "The reply target. Present and populated when the target resolved, present and null when the target is gone, absent when this message has no default reference. Clients must tell null apart from absent by key presence.",
						"nullable": true,
						"type": "object",
						"properties": {
							"id": {
								"description": "The unique identifier (snowflake) for this message",
								"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
							},
							"channel_id": {
								"description": "The ID of the channel this message was sent in",
								"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
							},
							"author": {
								"description": "The author of the message",
								"allOf": [{"$ref": "#/components/schemas/UserPartialResponse"}]
							},
							"webhook_id": {
								"description": "The ID of the webhook that sent this message",
								"nullable": true,
								"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
							},
							"type": {"allOf": [{"$ref": "#/components/schemas/MessageType"}]},
							"flags": {
								"description": "The bitwise flags for this message",
								"allOf": [{"$ref": "#/components/schemas/MessageFlags"}]
							},
							"content": {"type": "string", "description": "The text content of the message"},
							"timestamp": {
								"type": "string",
								"format": "date-time",
								"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
								"description": "The ISO 8601 timestamp of when the message was created"
							},
							"edited_timestamp": {
								"description": "The ISO 8601 timestamp of when the message was last edited",
								"nullable": true,
								"type": "string",
								"format": "date-time",
								"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
							},
							"pinned": {"type": "boolean", "description": "Whether the message is pinned"},
							"mention_everyone": {"type": "boolean", "description": "Whether the message mentions @everyone"},
							"tts": {"type": "boolean", "description": "Whether the message was sent as text-to-speech"},
							"mentions": {
								"type": "array",
								"items": {"allOf": [{"$ref": "#/components/schemas/UserPartialResponse"}]},
								"description": "The users mentioned in the message"
							},
							"mention_roles": {
								"type": "array",
								"items": {"type": "string"},
								"description": "The role IDs mentioned in the message"
							},
							"mention_channels": {
								"description": "Channels mentioned in the message that are visible to @everyone",
								"nullable": true,
								"type": "array",
								"items": {"$ref": "#/components/schemas/MessageChannelMentionResponse"}
							},
							"users": {
								"description": "Users referenced from non-notifying content, embed, and snapshot text, included for client-side resolution",
								"nullable": true,
								"type": "array",
								"items": {"allOf": [{"$ref": "#/components/schemas/UserPartialResponse"}]}
							},
							"embeds": {
								"description": "The embeds attached to the message",
								"nullable": true,
								"type": "array",
								"items": {"$ref": "#/components/schemas/MessageEmbedResponse"}
							},
							"attachments": {
								"description": "The files attached to the message",
								"nullable": true,
								"type": "array",
								"items": {"$ref": "#/components/schemas/MessageAttachmentResponse"}
							},
							"stickers": {
								"description": "The stickers sent with the message",
								"nullable": true,
								"type": "array",
								"items": {"$ref": "#/components/schemas/MessageStickerResponse"}
							},
							"reactions": {
								"description": "The reactions on the message",
								"nullable": true,
								"type": "array",
								"items": {"$ref": "#/components/schemas/MessageReactionResponse"}
							},
							"message_reference": {
								"description": "Reference data for replies or forwards",
								"nullable": true,
								"type": "object",
								"properties": {
									"channel_id": {
										"description": "The ID of the channel containing the referenced message",
										"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
									},
									"message_id": {
										"description": "The ID of the referenced message, absent on a channel follow system message and on thread created messages that reference only a thread",
										"nullable": true,
										"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
									},
									"guild_id": {
										"description": "The ID of the guild containing the referenced message",
										"nullable": true,
										"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
									},
									"type": {"allOf": [{"$ref": "#/components/schemas/MessageReferenceType"}]}
								},
								"required": ["channel_id", "type"],
								"additionalProperties": false
							},
							"message_snapshots": {
								"description": "Snapshots of forwarded messages",
								"nullable": true,
								"type": "array",
								"items": {"$ref": "#/components/schemas/MessageSnapshotResponse"}
							},
							"nonce": {
								"description": "A client-provided value for message deduplication",
								"nullable": true,
								"type": "string"
							},
							"call": {
								"description": "Call information if this message represents a call",
								"nullable": true,
								"type": "object",
								"properties": {
									"participants": {
										"type": "array",
										"items": {"type": "string"},
										"description": "The user IDs of participants in the call"
									},
									"ended_timestamp": {
										"description": "The ISO 8601 timestamp of when the call ended",
										"nullable": true,
										"type": "string",
										"format": "date-time",
										"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
									}
								},
								"required": ["participants"],
								"additionalProperties": false
							},
							"thread": {
								"description": "The thread started from this message, when the viewer can see threads",
								"allOf": [{"$ref": "#/components/schemas/ThreadChannelResponse"}]
							}
						},
						"required": [
							"id",
							"channel_id",
							"author",
							"type",
							"flags",
							"content",
							"timestamp",
							"pinned",
							"mention_everyone",
							"tts",
							"mentions",
							"mention_roles"
						],
						"additionalProperties": false
					}
				},
				"required": [
					"id",
					"channel_id",
					"author",
					"type",
					"flags",
					"content",
					"timestamp",
					"pinned",
					"mention_everyone",
					"tts",
					"mentions",
					"mention_roles"
				],
				"additionalProperties": false
			},
			"AdminMessageSchema": {
				"type": "object",
				"properties": {
					"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"channel_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"channel_name": {"nullable": true, "type": "string"},
					"channel_nsfw": {"nullable": true, "type": "boolean"},
					"channel_content_warning_level": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/ContentWarningLevel"}]
					},
					"channel_content_warning_text": {"nullable": true, "type": "string", "maxLength": 200},
					"guild_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"guild_name": {"nullable": true, "type": "string"},
					"guild_nsfw_level": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]},
					"guild_nsfw": {"nullable": true, "type": "boolean"},
					"guild_content_warning_level": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/ContentWarningLevel"}]
					},
					"guild_content_warning_text": {"nullable": true, "type": "string", "maxLength": 200},
					"author_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"author_username": {"type": "string", "minLength": 1, "maxLength": 100},
					"author_global_name": {"nullable": true, "type": "string"},
					"author_discriminator": {"type": "string", "minLength": 1, "maxLength": 10},
					"author_avatar": {"nullable": true, "type": "string"},
					"author_bot": {"type": "boolean"},
					"webhook_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"content": {"type": "string", "maxLength": 4000},
					"timestamp": {"type": "string"},
					"attachments": {
						"maxItems": 10,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
								"filename": {"type": "string", "minLength": 1, "maxLength": 256},
								"url": {"type": "string", "minLength": 1, "maxLength": 2048},
								"nsfw": {"nullable": true, "type": "boolean"},
								"content_type": {"nullable": true, "type": "string"},
								"width": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
								"height": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
								"size": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/NonNegativeSafeIntegerType"}]}
							},
							"required": ["id", "filename", "url", "nsfw", "content_type", "width", "height"],
							"additionalProperties": false
						}
					},
					"embeds": {"type": "array", "items": {"$ref": "#/components/schemas/MessageEmbedResponse"}}
				},
				"required": [
					"id",
					"channel_id",
					"channel_name",
					"channel_nsfw",
					"guild_id",
					"guild_name",
					"guild_nsfw_level",
					"author_id",
					"author_username",
					"author_global_name",
					"author_discriminator",
					"author_avatar",
					"content",
					"timestamp",
					"attachments"
				],
				"additionalProperties": false
			},
			"MessageEmbedResponse": {
				"type": "object",
				"properties": {
					"type": {
						"type": "string",
						"description": "The type of embed (e.g., rich, image, video, gifv, article, link)"
					},
					"url": {"description": "The URL of the embed", "nullable": true, "type": "string", "format": "uri"},
					"title": {"description": "The title of the embed", "nullable": true, "type": "string"},
					"color": {
						"description": "The color code of the embed sidebar",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"timestamp": {
						"description": "The ISO 8601 timestamp of the embed content",
						"nullable": true,
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"description": {"description": "The description of the embed", "nullable": true, "type": "string"},
					"author": {
						"description": "The author information of the embed",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedAuthorResponse"}]
					},
					"image": {
						"description": "The image of the embed",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedMediaResponse"}]
					},
					"thumbnail": {
						"description": "The thumbnail of the embed",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedMediaResponse"}]
					},
					"footer": {
						"description": "The footer of the embed",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedFooterResponse"}]
					},
					"fields": {
						"description": "The fields of the embed",
						"nullable": true,
						"type": "array",
						"items": {"$ref": "#/components/schemas/EmbedFieldResponse"}
					},
					"provider": {
						"description": "The provider of the embed (e.g., YouTube, Twitter)",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedProviderResponse"}]
					},
					"video": {
						"description": "The video of the embed",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedMediaResponse"}]
					},
					"audio": {
						"description": "The audio of the embed",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedMediaResponse"}]
					},
					"html": {
						"description": "Sanitized oEmbed HTML for trusted specialized embed renderers",
						"nullable": true,
						"type": "string"
					},
					"html_width": {
						"description": "The preferred width of sanitized oEmbed HTML",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"html_height": {
						"description": "The preferred height of sanitized oEmbed HTML",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"nsfw": {"description": "Whether the embed is flagged as NSFW", "nullable": true, "type": "boolean"},
					"children": {
						"description": "Internal nested embeds generated by unfurlers",
						"nullable": true,
						"maxItems": 1,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageEmbedChildResponse"}
					}
				},
				"required": ["type"],
				"additionalProperties": false
			},
			"NonNegativeSafeIntegerType": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
			"ContentWarningLevel": {
				"description": "The content warning level for a guild, category, or channel",
				"type": "integer",
				"enum": [0, 1],
				"format": "int32",
				"x-enumNames": ["INHERIT", "CONTENT_WARNING"],
				"x-enumDescriptions": [
					"No level set on this scope; channels and categories inherit from parent",
					"Show a content warning before entering"
				]
			},
			"NSFWLevel": {
				"description": "The NSFW level of the guild",
				"type": "integer",
				"enum": [0, 3],
				"format": "int32",
				"x-enumNames": ["SAFE", "AGE_RESTRICTED"],
				"x-enumDescriptions": ["Guild is safe for all ages", "Guild is age-restricted"]
			},
			"MessageEmbedChildResponse": {
				"type": "object",
				"properties": {
					"type": {
						"type": "string",
						"description": "The type of embed (e.g., rich, image, video, gifv, article, link)"
					},
					"url": {"description": "The URL of the embed", "nullable": true, "type": "string", "format": "uri"},
					"title": {"description": "The title of the embed", "nullable": true, "type": "string"},
					"color": {
						"description": "The color code of the embed sidebar",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"timestamp": {
						"description": "The ISO 8601 timestamp of the embed content",
						"nullable": true,
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"description": {"description": "The description of the embed", "nullable": true, "type": "string"},
					"author": {
						"description": "The author information of the embed",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedAuthorResponse"}]
					},
					"image": {
						"description": "The image of the embed",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedMediaResponse"}]
					},
					"thumbnail": {
						"description": "The thumbnail of the embed",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedMediaResponse"}]
					},
					"footer": {
						"description": "The footer of the embed",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedFooterResponse"}]
					},
					"fields": {
						"description": "The fields of the embed",
						"nullable": true,
						"type": "array",
						"items": {"$ref": "#/components/schemas/EmbedFieldResponse"}
					},
					"provider": {
						"description": "The provider of the embed (e.g., YouTube, Twitter)",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedProviderResponse"}]
					},
					"video": {
						"description": "The video of the embed",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedMediaResponse"}]
					},
					"audio": {
						"description": "The audio of the embed",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/EmbedMediaResponse"}]
					},
					"html": {
						"description": "Sanitized oEmbed HTML for trusted specialized embed renderers",
						"nullable": true,
						"type": "string"
					},
					"html_width": {
						"description": "The preferred width of sanitized oEmbed HTML",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"html_height": {
						"description": "The preferred height of sanitized oEmbed HTML",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"nsfw": {"description": "Whether the embed is flagged as NSFW", "nullable": true, "type": "boolean"}
				},
				"required": ["type"],
				"additionalProperties": false
			},
			"EmbedMediaResponse": {
				"type": "object",
				"properties": {
					"url": {"type": "string", "description": "The URL of the media"},
					"proxy_url": {
						"description": "The proxied URL of the media",
						"nullable": true,
						"type": "string",
						"format": "uri"
					},
					"content_type": {"description": "The MIME type of the media", "nullable": true, "type": "string"},
					"content_hash": {"description": "The hash of the media content", "nullable": true, "type": "string"},
					"width": {
						"description": "The width of the media in pixels",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"height": {
						"description": "The height of the media in pixels",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"description": {"description": "The description of the media", "nullable": true, "type": "string"},
					"placeholder": {
						"description": "The base64 encoded placeholder image for lazy loading",
						"nullable": true,
						"type": "string"
					},
					"duration": {
						"description": "The duration of the media in seconds",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"flags": {"allOf": [{"$ref": "#/components/schemas/EmbedMediaFlags"}]}
				},
				"required": ["url", "flags"],
				"additionalProperties": false
			},
			"EmbedProviderResponse": {
				"type": "object",
				"properties": {
					"name": {"type": "string", "description": "The name of the provider"},
					"url": {"description": "The URL of the provider", "nullable": true, "type": "string", "format": "uri"}
				},
				"required": ["name"],
				"additionalProperties": false
			},
			"EmbedFieldResponse": {
				"type": "object",
				"properties": {
					"name": {"type": "string", "description": "The name of the field"},
					"value": {"type": "string", "description": "The value of the field"},
					"inline": {"type": "boolean", "description": "Whether the field should be displayed inline"}
				},
				"required": ["name", "value", "inline"],
				"additionalProperties": false
			},
			"EmbedFooterResponse": {
				"type": "object",
				"properties": {
					"text": {"type": "string", "description": "The footer text"},
					"icon_url": {
						"description": "The URL of the footer icon",
						"nullable": true,
						"type": "string",
						"format": "uri"
					},
					"proxy_icon_url": {
						"description": "The proxied URL of the footer icon",
						"nullable": true,
						"type": "string",
						"format": "uri"
					}
				},
				"required": ["text"],
				"additionalProperties": false
			},
			"EmbedAuthorResponse": {
				"type": "object",
				"properties": {
					"name": {"type": "string", "description": "The name of the author"},
					"url": {"description": "The URL of the author", "nullable": true, "type": "string", "format": "uri"},
					"icon_url": {
						"description": "The URL of the author icon",
						"nullable": true,
						"type": "string",
						"format": "uri"
					},
					"proxy_icon_url": {
						"description": "The proxied URL of the author icon",
						"nullable": true,
						"type": "string",
						"format": "uri"
					}
				},
				"required": ["name"],
				"additionalProperties": false
			},
			"EmbedMediaFlags": {
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"description": "The bitwise flags for this media",
				"format": "int32",
				"x-bitflagValues": [
					{"name": "CONTAINS_EXPLICIT_MEDIA", "value": "16", "description": "Embed media contains explicit content"},
					{"name": "IS_ANIMATED", "value": "32", "description": "Embed media is animated"}
				]
			},
			"ThreadChannelResponse": {
				"type": "object",
				"properties": {
					"id": {
						"description": "The unique identifier (snowflake) for this channel",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"guild_id": {
						"description": "The ID of the guild this channel belongs to",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"name": {"description": "The name of the channel", "nullable": true, "type": "string"},
					"topic": {"description": "The topic of the channel", "nullable": true, "type": "string"},
					"url": {
						"description": "The URL associated with the channel",
						"nullable": true,
						"type": "string",
						"format": "uri"
					},
					"icon": {"description": "The icon hash of the channel (for group DMs)", "nullable": true, "type": "string"},
					"owner_id": {
						"description": "The ID of the owner of the channel (for group DMs)",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"type": {
						"description": "The type of the channel",
						"type": "integer",
						"enum": [0, 1, 2, 3, 4, 5, 10, 11, 12, 15, 16, 998, 999],
						"format": "int32",
						"x-enumNames": [
							"GUILD_TEXT",
							"DM",
							"GUILD_VOICE",
							"GROUP_DM",
							"GUILD_CATEGORY",
							"GUILD_ANNOUNCEMENT",
							"ANNOUNCEMENT_THREAD",
							"PUBLIC_THREAD",
							"PRIVATE_THREAD",
							"GUILD_FORUM",
							"GUILD_MEDIA",
							"GUILD_LINK",
							"DM_PERSONAL_NOTES"
						],
						"x-enumDescriptions": [
							"A text channel within a guild",
							"A direct message between users",
							"A voice channel within a guild",
							"A group direct message between users",
							"A category that contains channels",
							"A guild channel whose messages can be published to channels that follow it",
							"A public thread within an announcement channel",
							"A public thread within a text, forum or media channel",
							"A private thread within a text channel",
							"A channel that can only contain threads",
							"A channel that can only contain threads in a gallery view",
							"A link channel for external resources",
							"Personal notes DM channel"
						]
					},
					"position": {
						"description": "The sorting position of the channel",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"parent_id": {
						"description": "The ID of the parent category for this channel",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"bitrate": {
						"description": "The bitrate of the voice channel in bits per second",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"user_limit": {
						"description": "The maximum number of users allowed in the voice channel",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"voice_connection_limit": {
						"description": "The maximum active voice connections allowed per user in the voice channel",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"rtc_region": {
						"description": "The voice region ID for the voice channel",
						"nullable": true,
						"type": "string"
					},
					"rtc_p2p": {
						"description": "Whether calls in the voice channel connect participants directly instead of through a voice server",
						"type": "boolean"
					},
					"last_message_id": {
						"description": "The ID of the last message sent in this channel",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"last_pin_timestamp": {
						"description": "The ISO 8601 timestamp of when the last pinned message was pinned",
						"nullable": true,
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"permission_overwrites": {
						"description": "The permission overwrites for this channel",
						"type": "array",
						"items": {"$ref": "#/components/schemas/ChannelOverwriteResponse"}
					},
					"recipients": {
						"description": "The recipients of the DM channel",
						"maxItems": 49,
						"type": "array",
						"items": {"allOf": [{"$ref": "#/components/schemas/UserPartialResponse"}]}
					},
					"nsfw": {
						"description": "Whether the channel is marked as NSFW (effective value, walking channel → category → guild)",
						"type": "boolean"
					},
					"nsfw_override": {
						"description": "Per-channel adult-content override; null means inherit from parent category and then guild. Categories use this same field as their own override.",
						"nullable": true,
						"type": "boolean"
					},
					"content_warning_level": {
						"description": "Channel-level content warning override (0=inherit, 1=force-warn)",
						"allOf": [{"$ref": "#/components/schemas/ContentWarningLevel"}]
					},
					"content_warning_text": {
						"description": "Custom channel content warning text (max 200 characters); null inherits from parent or guild",
						"nullable": true,
						"type": "string",
						"maxLength": 200
					},
					"rate_limit_per_user": {
						"description": "The slowmode rate limit in seconds",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"nicks": {
						"description": "Custom nicknames for users in this channel (for group DMs)",
						"type": "object",
						"additionalProperties": {"type": "string", "minLength": 1, "maxLength": 32}
					},
					"flags": {"description": "Channel flags", "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
					"thread_metadata": {
						"description": "Thread-specific fields",
						"allOf": [{"$ref": "#/components/schemas/ThreadMetadataResponse"}]
					},
					"applied_tags": {
						"description": "IDs of the tags applied to a forum or media post",
						"maxItems": 5,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeStringType"}
					},
					"message_count": {
						"description": "Messages in the thread, excluding the starter and deleted messages",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"total_message_sent": {
						"description": "Messages ever sent in the thread, never decremented",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"member_count": {
						"description": "Approximate number of thread members, capped at 50",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"member_ids_preview": {
						"description": "IDs of the most recently joined members of a forum or media post, newest first",
						"maxItems": 8,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeStringType"}
					},
					"member": {
						"description": "The thread member object for the current user",
						"allOf": [{"$ref": "#/components/schemas/ThreadMemberResponse"}]
					},
					"default_auto_archive_duration": {
						"description": "Default auto archive duration for new threads",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"default_thread_rate_limit_per_user": {
						"description": "Slowmode copied onto new threads",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"available_tags": {
						"description": "Tags that can be applied to posts",
						"maxItems": 20,
						"type": "array",
						"items": {"$ref": "#/components/schemas/ForumTagResponse"}
					},
					"default_reaction_emoji": {
						"description": "Default reaction for posts",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/DefaultReactionEmojiResponse"}]
					},
					"default_sort_order": {
						"description": "Default sort order for posts",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"default_forum_layout": {
						"description": "Default layout for forum posts",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"default_tag_setting": {
						"description": "Default tag search setting",
						"type": "string",
						"enum": ["match_some", "match_all"]
					}
				},
				"required": ["id", "type"],
				"additionalProperties": false
			},
			"MessageSnapshotResponse": {
				"type": "object",
				"properties": {
					"content": {"description": "The text content of the snapshot", "nullable": true, "type": "string"},
					"timestamp": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "The ISO 8601 timestamp of when the original message was created"
					},
					"edited_timestamp": {
						"description": "The ISO 8601 timestamp of when the original message was last edited",
						"nullable": true,
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"mentions": {
						"description": "The user IDs mentioned in the snapshot",
						"nullable": true,
						"type": "array",
						"items": {"type": "string"}
					},
					"mention_roles": {
						"description": "The role IDs mentioned in the snapshot",
						"nullable": true,
						"type": "array",
						"items": {"type": "string"}
					},
					"mention_channels": {
						"description": "Channels mentioned in the snapshot that are visible to @everyone",
						"nullable": true,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageChannelMentionResponse"}
					},
					"embeds": {
						"description": "The embeds included in the snapshot",
						"nullable": true,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageEmbedResponse"}
					},
					"attachments": {
						"description": "The attachments included in the snapshot",
						"nullable": true,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageAttachmentResponse"}
					},
					"stickers": {
						"description": "The stickers included in the snapshot",
						"nullable": true,
						"type": "array",
						"items": {"$ref": "#/components/schemas/MessageStickerResponse"}
					},
					"type": {"allOf": [{"$ref": "#/components/schemas/MessageType"}]},
					"flags": {"allOf": [{"$ref": "#/components/schemas/MessageFlags"}]}
				},
				"required": ["timestamp", "type", "flags"],
				"additionalProperties": false
			},
			"MessageReferenceType": {
				"description": "The type of message reference",
				"type": "integer",
				"enum": [0, 1],
				"format": "int32",
				"x-enumNames": ["DEFAULT", "FORWARD"],
				"x-enumDescriptions": ["Default reference (reply)", "Forwarded message reference"]
			},
			"MessageReactionResponse": {
				"type": "object",
				"properties": {
					"emoji": {
						"type": "object",
						"properties": {
							"id": {
								"description": "The ID of the custom emoji (null for Unicode emojis)",
								"nullable": true,
								"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
							},
							"name": {
								"type": "string",
								"description": "The name of the emoji (or Unicode character for standard emojis)"
							},
							"animated": {"description": "Whether the emoji is animated", "nullable": true, "type": "boolean"}
						},
						"required": ["name"],
						"additionalProperties": false,
						"description": "The emoji used for the reaction"
					},
					"count": {
						"description": "The total number of times this reaction has been used",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"me": {
						"description": "Whether the current user has reacted with this emoji",
						"nullable": true,
						"type": "boolean"
					}
				},
				"required": ["emoji", "count"],
				"additionalProperties": false
			},
			"MessageStickerResponse": {
				"type": "object",
				"properties": {
					"id": {
						"description": "The unique identifier of the sticker",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"name": {"type": "string", "description": "The name of the sticker"},
					"animated": {"type": "boolean", "description": "Whether the sticker is animated"}
				},
				"required": ["id", "name", "animated"],
				"additionalProperties": false
			},
			"MessageAttachmentResponse": {
				"type": "object",
				"properties": {
					"id": {
						"description": "The unique identifier for this attachment",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"filename": {"type": "string", "description": "The name of the attached file"},
					"title": {"description": "The title of the attachment", "nullable": true, "type": "string"},
					"description": {"description": "The description of the attachment", "nullable": true, "type": "string"},
					"content_type": {"description": "The MIME type of the attachment", "nullable": true, "type": "string"},
					"content_hash": {"description": "The hash of the attachment content", "nullable": true, "type": "string"},
					"size": {
						"description": "The size of the attachment in bytes",
						"allOf": [{"$ref": "#/components/schemas/NonNegativeSafeIntegerType"}]
					},
					"url": {"description": "The URL of the attachment", "nullable": true, "type": "string"},
					"proxy_url": {"description": "The proxied URL of the attachment", "nullable": true, "type": "string"},
					"width": {
						"description": "The width of the attachment in pixels (for images/videos)",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"height": {
						"description": "The height of the attachment in pixels (for images/videos)",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"placeholder": {
						"description": "The base64 encoded placeholder image for lazy loading",
						"nullable": true,
						"type": "string"
					},
					"flags": {"allOf": [{"$ref": "#/components/schemas/MessageAttachmentFlags"}]},
					"nsfw": {"description": "Whether the attachment is flagged as NSFW", "nullable": true, "type": "boolean"},
					"duration": {
						"description": "The duration of the media in seconds",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"waveform": {"description": "The base64 encoded audio waveform data", "nullable": true, "type": "string"},
					"expires_at": {
						"description": "The ISO 8601 timestamp when the attachment URL expires",
						"nullable": true,
						"type": "string"
					},
					"expired": {"description": "Whether the attachment URL has expired", "nullable": true, "type": "boolean"}
				},
				"required": ["id", "filename", "size", "flags"],
				"additionalProperties": false
			},
			"UserPartialResponse": {
				"type": "object",
				"properties": {
					"id": {
						"description": "The unique identifier (snowflake) for this user",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"username": {"type": "string", "description": "The username of the user, not unique across the platform"},
					"discriminator": {"type": "string", "description": "The four-digit discriminator tag of the user"},
					"global_name": {"nullable": true, "description": "The display name of the user, if set", "type": "string"},
					"avatar": {"nullable": true, "description": "The hash of the user avatar image", "type": "string"},
					"avatar_color": {
						"nullable": true,
						"description": "The dominant avatar color of the user as an integer",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"bot": {"description": "Whether the user is a bot account", "type": "boolean"},
					"system": {"description": "Whether the user is an official system user", "type": "boolean"},
					"flags": {"allOf": [{"$ref": "#/components/schemas/PublicUserFlags"}]},
					"mention_flags": {
						"description": "The user's account-wide reply mention preference. Omitted when the user has no preference set (treated as NO_PREFERENCE).",
						"allOf": [{"$ref": "#/components/schemas/MentionReplyPreferences"}]
					}
				},
				"required": ["id", "username", "discriminator", "global_name", "avatar", "avatar_color", "flags"],
				"additionalProperties": false
			},
			"MessageChannelMentionResponse": {
				"type": "object",
				"properties": {
					"id": {
						"description": "The ID of the mentioned channel",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"name": {"type": "string", "description": "The name of the mentioned channel"},
					"type": {
						"description": "The type of the mentioned channel",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					}
				},
				"required": ["id", "name", "type"],
				"additionalProperties": false
			},
			"MessageFlags": {
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"description": "The bitwise flags of the original message",
				"format": "int32",
				"x-bitflagValues": [
					{
						"name": "CROSSPOSTED",
						"value": "1",
						"description": "This message has been published to channels that follow this announcement channel"
					},
					{
						"name": "IS_CROSSPOST",
						"value": "2",
						"description": "This message was delivered from an announcement channel this channel follows"
					},
					{
						"name": "SUPPRESS_EMBEDS",
						"value": "4",
						"description": "Do not include embeds when serialising this message"
					},
					{
						"name": "SOURCE_MESSAGE_DELETED",
						"value": "8",
						"description": "The published message this copy came from has been deleted"
					},
					{
						"name": "SUPPRESS_NOTIFICATIONS",
						"value": "4096",
						"description": "This message will not trigger push or desktop notifications"
					},
					{"name": "VOICE_MESSAGE", "value": "8192", "description": "This message is a voice message"}
				]
			},
			"MessageType": {
				"description": "The type of message",
				"type": "integer",
				"enum": [0, 1, 2, 3, 4, 5, 6, 7, 12, 18, 19, 21],
				"format": "int32",
				"x-enumNames": [
					"DEFAULT",
					"RECIPIENT_ADD",
					"RECIPIENT_REMOVE",
					"CALL",
					"CHANNEL_NAME_CHANGE",
					"CHANNEL_ICON_CHANGE",
					"CHANNEL_PINNED_MESSAGE",
					"USER_JOIN",
					"CHANNEL_FOLLOW_ADD",
					"THREAD_CREATED",
					"REPLY",
					"THREAD_STARTER_MESSAGE"
				],
				"x-enumDescriptions": [
					"A regular message",
					"A system message indicating a user was added to the conversation",
					"A system message indicating a user was removed from the conversation",
					"A message representing a call",
					"A system message indicating the channel name changed",
					"A system message indicating the channel icon changed",
					"A system message indicating a message was pinned",
					"A system message indicating a user joined",
					"System message posted when a channel starts following an announcement channel",
					"A system message indicating a thread was created",
					"A reply message",
					"The first message of a thread, pointing at its source"
				]
			},
			"MentionReplyPreferences": {
				"description": "Reply mention preference",
				"type": "integer",
				"enum": [0, 1, 2],
				"format": "int32",
				"x-enumNames": ["NO_PREFERENCE", "PREFER_MENTION", "PREFER_NO_MENTION"],
				"x-enumDescriptions": [
					"Respect the sender intent on each reply, with no warning when toggling the @ mention. On a guild member, inherits the value from the user-level preference.",
					"Default replies to @mention this user, and warn the sender when they disable the mention",
					"Default replies to omit the @mention for this user, and warn the sender when they enable it"
				]
			},
			"PublicUserFlags": {
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"description": "The public flags on the user account",
				"format": "int32",
				"x-bitflagValues": [
					{"name": "STAFF", "value": "1", "description": "User is a staff member"},
					{"name": "PARTNER", "value": "4", "description": "User is a partner"},
					{"name": "BUG_HUNTER", "value": "8", "description": "User is a bug hunter"},
					{"name": "FRIENDLY_BOT", "value": "16", "description": "Bot accepts friend requests from users"},
					{
						"name": "FRIENDLY_BOT_MANUAL_APPROVAL",
						"value": "32",
						"description": "Bot requires manual approval for friend requests"
					},
					{"name": "SPAMMER", "value": "64", "description": "User is flagged as a spammer"}
				]
			},
			"MessageAttachmentFlags": {
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"description": "The bitwise flags for this attachment",
				"format": "int32",
				"x-bitflagValues": [
					{"name": "IS_SPOILER", "value": "8", "description": "Attachment is marked as a spoiler"},
					{
						"name": "CONTAINS_EXPLICIT_MEDIA",
						"value": "16",
						"description": "Attachment contains explicit media content"
					},
					{"name": "IS_ANIMATED", "value": "32", "description": "Attachment is animated"}
				]
			},
			"DefaultReactionEmojiResponse": {
				"type": "object",
				"properties": {
					"emoji_id": {
						"nullable": true,
						"description": "The ID of a custom guild emoji",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"emoji_name": {"nullable": true, "description": "The unicode character of the emoji", "type": "string"}
				},
				"required": ["emoji_id", "emoji_name"],
				"additionalProperties": false
			},
			"ForumTagResponse": {
				"type": "object",
				"properties": {
					"id": {"description": "The ID of the tag", "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"name": {"type": "string", "maxLength": 50, "description": "The name of the tag"},
					"moderated": {"type": "boolean", "description": "Whether only moderators can add or remove this tag"},
					"emoji_id": {
						"nullable": true,
						"description": "The ID of a custom guild emoji",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"emoji_name": {"nullable": true, "description": "The unicode character of the emoji", "type": "string"}
				},
				"required": ["id", "name", "moderated", "emoji_id", "emoji_name"],
				"additionalProperties": false
			},
			"ThreadMemberResponse": {
				"type": "object",
				"properties": {
					"id": {
						"description": "The ID of the thread",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"user_id": {
						"description": "The ID of the user",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"join_timestamp": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "When the user last joined the thread"
					},
					"flags": {"description": "Thread member flags", "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
					"muted": {"description": "Whether the user has muted the thread (current user only)", "type": "boolean"},
					"mute_config": {
						"description": "The mute configuration for the thread (current user only)",
						"nullable": true,
						"type": "object",
						"properties": {
							"end_time": {
								"nullable": true,
								"description": "ISO8601 timestamp of when the mute expires",
								"type": "string"
							},
							"selected_time_window": {
								"description": "The selected mute duration in seconds",
								"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
							}
						},
						"required": ["end_time", "selected_time_window"],
						"additionalProperties": false
					},
					"member": {
						"description": "The guild member object for the user",
						"allOf": [{"$ref": "#/components/schemas/GuildMemberResponse"}]
					}
				},
				"required": ["join_timestamp", "flags"],
				"additionalProperties": false
			},
			"ThreadMetadataResponse": {
				"type": "object",
				"properties": {
					"archived": {"type": "boolean", "description": "Whether the thread is archived"},
					"auto_archive_duration": {
						"description": "Minutes of inactivity before the thread stops showing in the channel list",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"archive_timestamp": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "When the archive status of the thread last changed"
					},
					"locked": {"type": "boolean", "description": "Whether only moderators can interact with the thread"},
					"invitable": {
						"description": "Whether non-moderators can add other non-moderators (private threads)",
						"type": "boolean"
					},
					"create_timestamp": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "When the thread was created"
					}
				},
				"required": ["archived", "auto_archive_duration", "archive_timestamp", "locked", "create_timestamp"],
				"additionalProperties": false
			},
			"ChannelOverwriteResponse": {
				"type": "object",
				"properties": {
					"id": {
						"description": "The unique identifier for the role or user this overwrite applies to",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"type": {"allOf": [{"$ref": "#/components/schemas/ChannelOverwriteType"}]},
					"allow": {
						"description": "The bitwise value of allowed permissions",
						"allOf": [{"$ref": "#/components/schemas/Permissions"}]
					},
					"deny": {
						"description": "The bitwise value of denied permissions",
						"allOf": [{"$ref": "#/components/schemas/Permissions"}]
					}
				},
				"required": ["id", "type", "allow", "deny"],
				"additionalProperties": false
			},
			"Permissions": {
				"type": "string",
				"pattern": "^\\d+$",
				"description": "Permission bitfield as string",
				"format": "int64",
				"x-bitflagValues": [
					{"name": "CREATE_INSTANT_INVITE", "value": "1", "description": "Allows creation of instant invites"},
					{"name": "KICK_MEMBERS", "value": "2", "description": "Allows kicking members from the guild"},
					{"name": "BAN_MEMBERS", "value": "4", "description": "Allows banning members from the guild"},
					{
						"name": "ADMINISTRATOR",
						"value": "8",
						"description": "Grants all permissions and bypasses channel permission overwrites"
					},
					{
						"name": "MANAGE_CHANNELS",
						"value": "16",
						"description": "Allows management, editing, and deletion of channels"
					},
					{"name": "MANAGE_GUILD", "value": "32", "description": "Allows management and editing of the guild"},
					{"name": "ADD_REACTIONS", "value": "64", "description": "Allows adding reactions to messages"},
					{"name": "VIEW_AUDIT_LOG", "value": "128", "description": "Allows viewing of the audit log"},
					{
						"name": "PRIORITY_SPEAKER",
						"value": "256",
						"description": "Allows using priority speaker in a voice channel"
					},
					{"name": "STREAM", "value": "512", "description": "Allows the user to go live"},
					{"name": "VIEW_CHANNEL", "value": "1024", "description": "Allows viewing a channel"},
					{"name": "SEND_MESSAGES", "value": "2048", "description": "Allows sending messages in a channel"},
					{"name": "SEND_TTS_MESSAGES", "value": "4096", "description": "Allows sending text-to-speech messages"},
					{"name": "MANAGE_MESSAGES", "value": "8192", "description": "Allows for deleting and pinning messages"},
					{"name": "EMBED_LINKS", "value": "16384", "description": "Links sent will have an embed automatically"},
					{"name": "ATTACH_FILES", "value": "32768", "description": "Allows uploading files"},
					{"name": "READ_MESSAGE_HISTORY", "value": "65536", "description": "Allows reading message history"},
					{"name": "MENTION_EVERYONE", "value": "131072", "description": "Allows using @everyone and @here mentions"},
					{"name": "USE_EXTERNAL_EMOJIS", "value": "262144", "description": "Allows using emojis from other guilds"},
					{"name": "CONNECT", "value": "1048576", "description": "Allows connecting to a voice channel"},
					{"name": "SPEAK", "value": "2097152", "description": "Allows speaking in a voice channel"},
					{"name": "MUTE_MEMBERS", "value": "4194304", "description": "Allows muting members in voice channels"},
					{"name": "DEAFEN_MEMBERS", "value": "8388608", "description": "Allows deafening members in voice channels"},
					{"name": "MOVE_MEMBERS", "value": "16777216", "description": "Allows moving members between voice channels"},
					{"name": "USE_VAD", "value": "33554432", "description": "Allows using voice activity detection"},
					{"name": "CHANGE_NICKNAME", "value": "67108864", "description": "Allows changing own nickname"},
					{"name": "MANAGE_NICKNAMES", "value": "134217728", "description": "Allows changing other members nicknames"},
					{"name": "MANAGE_ROLES", "value": "268435456", "description": "Allows management and editing of roles"},
					{"name": "MANAGE_WEBHOOKS", "value": "536870912", "description": "Allows management and editing of webhooks"},
					{
						"name": "MANAGE_EXPRESSIONS",
						"value": "1073741824",
						"description": "Allows management of guild expressions"
					},
					{
						"name": "USE_EXTERNAL_STICKERS",
						"value": "137438953472",
						"description": "Allows using stickers from other guilds"
					},
					{"name": "MODERATE_MEMBERS", "value": "1099511627776", "description": "Allows timing out users"},
					{"name": "CREATE_EXPRESSIONS", "value": "8796093022208", "description": "Allows creating guild expressions"},
					{"name": "PIN_MESSAGES", "value": "2251799813685248", "description": "Allows pinning messages"},
					{"name": "BYPASS_SLOWMODE", "value": "4503599627370496", "description": "Allows bypassing slowmode"},
					{"name": "UPDATE_RTC_REGION", "value": "9007199254740992", "description": "Allows updating the voice region"},
					{
						"name": "VIEW_CHANNEL_MEMBERS",
						"value": "18014398509481984",
						"description": "Allows viewing the member list in a channel"
					}
				]
			},
			"ChannelOverwriteType": {
				"description": "The type of entity the overwrite applies to",
				"x-enumNames": ["ROLE", "MEMBER"],
				"x-enumDescriptions": ["Overwrite applies to a role", "Overwrite applies to a member"],
				"enum": [0, 1],
				"type": "integer"
			},
			"GuildMemberResponse": {
				"type": "object",
				"properties": {
					"user": {
						"description": "The user this guild member represents",
						"allOf": [{"$ref": "#/components/schemas/UserPartialResponse"}]
					},
					"nick": {"description": "The nickname of the member in this guild", "nullable": true, "type": "string"},
					"avatar": {"description": "The hash of the member guild-specific avatar", "nullable": true, "type": "string"},
					"banner": {"description": "The hash of the member guild-specific banner", "nullable": true, "type": "string"},
					"accent_color": {
						"description": "The accent colour of the member guild profile as an integer",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"roles": {
						"maxItems": 250,
						"type": "array",
						"items": {"type": "string"},
						"description": "Array of role IDs the member has"
					},
					"joined_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "ISO8601 timestamp of when the user joined the guild"
					},
					"mute": {"type": "boolean", "description": "Whether the member is muted in voice channels"},
					"deaf": {"type": "boolean", "description": "Whether the member is deafened in voice channels"},
					"communication_disabled_until": {
						"description": "ISO8601 timestamp until which the member is timed out",
						"nullable": true,
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"profile_flags": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/GuildMemberProfileFlags"}]},
					"mention_flags": {
						"nullable": true,
						"description": "Per-guild reply mention preference override; NO_PREFERENCE means inherit the user-level mention_flags.",
						"allOf": [{"$ref": "#/components/schemas/MentionReplyPreferences"}]
					}
				},
				"required": ["user", "roles", "joined_at", "mute", "deaf"],
				"additionalProperties": false
			},
			"GuildMemberProfileFlags": {
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"description": "Member profile flags",
				"format": "int32",
				"x-bitflagValues": [
					{"name": "AVATAR_UNSET", "value": "1", "description": "Guild member avatar is unset"},
					{"name": "BANNER_UNSET", "value": "2", "description": "Guild member banner is unset"}
				]
			},
			"MessageDeletionBasis": {
				"oneOf": [
					{
						"type": "object",
						"properties": {"type": {"type": "string", "enum": ["holder_request"]}},
						"required": ["type"],
						"description": "The account holder or community owner asked"
					},
					{
						"type": "object",
						"properties": {"type": {"type": "string", "enum": ["housekeeping"]}},
						"required": ["type"],
						"description": "Nobody's conduct is involved, such as inactivity or cleanup"
					}
				],
				"description": "Why the message is deleted. To remove a message for breaking a rule, shred it with an enforcement basis instead"
			},
			"DiscoveryAdminPendingApplicationResponse": {
				"type": "object",
				"properties": {
					"guild_id": {"description": "Guild ID", "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"guild_name": {"type": "string", "description": "Guild name"},
					"guild_icon": {"nullable": true, "description": "Guild icon hash", "type": "string"},
					"guild_owner_id": {
						"description": "Guild owner user ID",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"guild_owner_username": {"nullable": true, "description": "Guild owner username", "type": "string"},
					"guild_owner_global_name": {"nullable": true, "description": "Guild owner display name", "type": "string"},
					"guild_owner_discriminator": {"nullable": true, "description": "Guild owner discriminator", "type": "string"},
					"guild_member_count": {"type": "number", "description": "Approximate member count"},
					"guild_nsfw_level": {
						"nullable": true,
						"description": "NSFW level of the guild",
						"allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]
					},
					"guild_features": {"type": "array", "items": {"type": "string"}, "description": "Guild feature flags"},
					"description": {"type": "string", "description": "Discovery description"},
					"category_type": {"type": "number", "description": "Discovery category type"},
					"primary_language": {"nullable": true, "description": "Primary community language", "type": "string"},
					"custom_tags": {"type": "array", "items": {"type": "string"}, "description": "Custom discovery tags"},
					"applied_at": {"type": "string", "description": "Application timestamp"}
				},
				"required": [
					"guild_id",
					"guild_name",
					"guild_icon",
					"guild_owner_id",
					"guild_owner_username",
					"guild_owner_global_name",
					"guild_owner_discriminator",
					"guild_member_count",
					"guild_nsfw_level",
					"guild_features",
					"description",
					"category_type",
					"primary_language",
					"custom_tags",
					"applied_at"
				],
				"additionalProperties": false
			},
			"DiscoveryRejectionReason": {
				"type": "string",
				"minLength": 1,
				"maxLength": 500,
				"description": "Rejection reason"
			},
			"DiscoveryReviewReason": {"type": "string", "maxLength": 500, "description": "Review reason"},
			"DiscoveryCategoryResponse": {
				"type": "object",
				"properties": {
					"id": {"type": "number", "description": "Category ID"},
					"name": {"type": "string", "description": "Category display name"}
				},
				"required": ["id", "name"],
				"additionalProperties": false
			},
			"DiscoveryAdminListedGuildResponse": {
				"type": "object",
				"properties": {
					"guild_id": {"description": "Guild ID", "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"guild_name": {"type": "string", "description": "Guild name"},
					"guild_icon": {"nullable": true, "description": "Guild icon hash", "type": "string"},
					"guild_owner_id": {
						"description": "Guild owner user ID",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"guild_owner_username": {"nullable": true, "description": "Guild owner username", "type": "string"},
					"guild_owner_global_name": {"nullable": true, "description": "Guild owner display name", "type": "string"},
					"guild_owner_discriminator": {"nullable": true, "description": "Guild owner discriminator", "type": "string"},
					"guild_member_count": {"type": "number", "description": "Approximate member count"},
					"guild_nsfw_level": {
						"nullable": true,
						"description": "NSFW level of the guild",
						"allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]
					},
					"guild_features": {"type": "array", "items": {"type": "string"}, "description": "Guild feature flags"},
					"description": {"type": "string", "description": "Discovery description"},
					"category_type": {"type": "number", "description": "Discovery category type"},
					"primary_language": {"nullable": true, "description": "Primary community language", "type": "string"},
					"custom_tags": {"type": "array", "items": {"type": "string"}, "description": "Custom discovery tags"},
					"applied_at": {"type": "string", "description": "Application timestamp"},
					"approved_at": {"nullable": true, "description": "Approval timestamp", "type": "string"}
				},
				"required": [
					"guild_id",
					"guild_name",
					"guild_icon",
					"guild_owner_id",
					"guild_owner_username",
					"guild_owner_global_name",
					"guild_owner_discriminator",
					"guild_member_count",
					"guild_nsfw_level",
					"guild_features",
					"description",
					"category_type",
					"primary_language",
					"custom_tags",
					"applied_at",
					"approved_at"
				],
				"additionalProperties": false
			},
			"EnforcementKindType": {
				"type": "string",
				"enum": [
					"warning",
					"suspension",
					"closure",
					"feature_limit",
					"content_removal",
					"profile_reset",
					"community_removal"
				],
				"description": "What the decision did"
			},
			"EnforcementNotice": {
				"type": "object",
				"properties": {
					"decision_id": {
						"nullable": true,
						"description": "The decision reference. Null for restrictions from before decisions",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"kind": {"allOf": [{"$ref": "#/components/schemas/EnforcementKindType"}]},
					"permanent": {"type": "boolean", "description": "Whether this is a suspension with no end"},
					"issued_at": {
						"nullable": true,
						"description": "When the decision was made, as an ISO 8601 timestamp",
						"type": "string"
					},
					"ends_at": {
						"nullable": true,
						"description": "When a suspension or feature limit ends, as an ISO 8601 timestamp",
						"type": "string"
					},
					"deletion_at": {
						"nullable": true,
						"description": "When a closed account or bot is deleted, as an ISO 8601 timestamp",
						"type": "string"
					},
					"summary": {"type": "string", "description": "One sentence saying what happened"},
					"effects": {
						"type": "array",
						"items": {"type": "string"},
						"description": "What the decision means for the holder, one sentence each"
					},
					"rule": {
						"nullable": true,
						"description": "The rule the decision relies on, null when none was recorded",
						"type": "object",
						"properties": {
							"title": {"type": "string", "description": "Title of the rule that was broken"},
							"url": {
								"nullable": true,
								"description": "Link to the rule, null when the instance publishes none",
								"type": "string"
							}
						},
						"required": ["title", "url"],
						"additionalProperties": false
					},
					"facts": {
						"type": "array",
						"items": {"type": "string"},
						"description": "The finding first, then where and when it happened"
					},
					"statement": {"nullable": true, "description": "Note to the holder from the team", "type": "string"},
					"how_we_decided": {
						"type": "array",
						"items": {"type": "string"},
						"description": "How the case reached the team and who decided it"
					},
					"appeal": {
						"nullable": true,
						"description": "How to appeal, null when the instance offers no appeal route",
						"type": "object",
						"properties": {
							"email": {"type": "string", "description": "Address that takes appeals"},
							"deadline": {
								"nullable": true,
								"description": "Last day to appeal, already formatted for the reader",
								"type": "string"
							},
							"account_has_email": {
								"type": "boolean",
								"description": "Whether the account has an email address to write from"
							}
						},
						"required": ["email", "deadline", "account_has_email"],
						"additionalProperties": false
					},
					"redress": {
						"type": "array",
						"items": {"type": "string"},
						"description": "Other ways to challenge the decision"
					}
				},
				"required": [
					"decision_id",
					"kind",
					"permanent",
					"issued_at",
					"ends_at",
					"deletion_at",
					"summary",
					"effects",
					"rule",
					"facts",
					"statement",
					"how_we_decided",
					"appeal",
					"redress"
				],
				"additionalProperties": false
			},
			"Int64StringType": {"type": "string", "pattern": "^-?\\d+$", "format": "int64"},
			"GuildAdminResponse": {
				"type": "object",
				"properties": {
					"id": {
						"description": "The unique identifier for this guild",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"name": {"type": "string", "description": "The name of the guild"},
					"features": {
						"maxItems": 100,
						"type": "array",
						"items": {"allOf": [{"$ref": "#/components/schemas/GuildFeatureSchema"}]},
						"description": "Array of guild feature flags"
					},
					"owner_id": {
						"description": "The ID of the guild owner",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"owner_username": {"nullable": true, "description": "The username of the guild owner", "type": "string"},
					"owner_global_name": {
						"nullable": true,
						"description": "The display name of the guild owner, if set",
						"type": "string"
					},
					"owner_discriminator": {
						"nullable": true,
						"description": "The discriminator of the guild owner",
						"type": "string"
					},
					"icon": {"nullable": true, "description": "The hash of the guild icon", "type": "string"},
					"banner": {"nullable": true, "description": "The hash of the guild banner", "type": "string"},
					"member_count": {
						"description": "The number of members in the guild",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"nsfw_level": {"allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]},
					"nsfw": {"description": "Whether the guild is flagged as adult content", "type": "boolean"},
					"content_warning_level": {
						"description": "The content warning level for the guild",
						"allOf": [{"$ref": "#/components/schemas/ContentWarningLevel"}]
					},
					"content_warning_text": {
						"description": "Custom content warning text shown before entry",
						"nullable": true,
						"type": "string",
						"maxLength": 200
					},
					"approximate_member_count": {
						"description": "Approximate total member count (only when with_counts is true)",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					},
					"approximate_presence_count": {
						"description": "Approximate online member count (only when with_counts is true)",
						"allOf": [{"$ref": "#/components/schemas/Int32Type"}]
					}
				},
				"required": [
					"id",
					"name",
					"features",
					"owner_id",
					"owner_username",
					"owner_global_name",
					"owner_discriminator",
					"icon",
					"banner",
					"member_count"
				],
				"additionalProperties": false
			},
			"SystemChannelFlags": {
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"description": "System channel message flags",
				"format": "int32",
				"x-bitflagValues": [
					{
						"name": "SUPPRESS_JOIN_NOTIFICATIONS",
						"value": "1",
						"description": "Suppress member join notifications in system channel"
					}
				]
			},
			"DefaultMessageNotifications": {
				"description": "Default notification level for new members",
				"type": "integer",
				"enum": [0, 1],
				"format": "int32",
				"x-enumNames": ["ALL_MESSAGES", "ONLY_MENTIONS"],
				"x-enumDescriptions": ["Notify on all messages", "Notify only on mentions"]
			},
			"GuildExplicitContentFilter": {
				"description": "Level of content filtering for explicit media",
				"type": "integer",
				"enum": [0, 1, 2],
				"format": "int32",
				"x-enumNames": ["DISABLED", "MEMBERS_WITHOUT_ROLES", "ALL_MEMBERS"],
				"x-enumDescriptions": [
					"Media content will not be scanned",
					"Media content from members without roles will be scanned",
					"Media content from all members will be scanned"
				]
			},
			"GuildMFALevel": {
				"description": "Required MFA level for moderation actions",
				"type": "integer",
				"enum": [0, 1],
				"format": "int32",
				"x-enumNames": ["NONE", "ELEVATED"],
				"x-enumDescriptions": ["Guild has no MFA requirement", "Guild requires 2FA for moderation actions"]
			},
			"GuildVerificationLevel": {
				"description": "Required verification level for members",
				"type": "integer",
				"enum": [0, 1, 2, 3],
				"format": "int32",
				"x-enumNames": ["NONE", "LOW", "MEDIUM", "HIGH"],
				"x-enumDescriptions": [
					"Unrestricted",
					"Must have verified email",
					"Registered for more than 5 minutes",
					"Member of the server for more than 10 minutes"
				]
			},
			"CustomBadgeIdListResponse": {
				"maxItems": 1000,
				"type": "array",
				"items": {"$ref": "#/components/schemas/SnowflakeStringType"},
				"description": "IDs of the custom badges assigned to it"
			},
			"CustomBadgeIdsType": {
				"maxItems": 1000,
				"type": "array",
				"items": {"$ref": "#/components/schemas/SnowflakeType"},
				"description": "IDs of the badges to assign, replacing the current ones. The badge settings set how many a user or community can have"
			},
			"GuildOperations": {
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"description": "Bitmask of disabled guild operations",
				"format": "int32",
				"x-bitflagValues": [
					{"name": "PUSH_NOTIFICATIONS", "value": "1", "description": "Allow push notifications for this guild"},
					{"name": "EVERYONE_MENTIONS", "value": "2", "description": "Allow @everyone mentions in this guild"},
					{"name": "TYPING_EVENTS", "value": "4", "description": "Enable typing indicator events"},
					{"name": "INSTANT_INVITES", "value": "8", "description": "Allow creation of instant invites"},
					{"name": "SEND_MESSAGE", "value": "16", "description": "Allow sending messages in the guild"},
					{"name": "REACTIONS", "value": "32", "description": "Allow adding reactions to messages"},
					{"name": "MEMBER_LIST_UPDATES", "value": "64", "description": "Enable member list update events"}
				]
			},
			"DefaultMessageNotificationsInput": {
				"description": "Default notification level for new members",
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"format": "int32",
				"x-enumNames": ["ALL_MESSAGES", "ONLY_MENTIONS"],
				"x-enumDescriptions": ["Notify on all messages", "Notify only on mentions"],
				"enum": [0, 1]
			},
			"GuildExplicitContentFilterInput": {
				"description": "Level of content filtering for explicit media",
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"format": "int32",
				"x-enumNames": ["DISABLED", "MEMBERS_WITHOUT_ROLES", "ALL_MEMBERS"],
				"x-enumDescriptions": [
					"Media content will not be scanned",
					"Media content from members without roles will be scanned",
					"Media content from all members will be scanned"
				],
				"enum": [0, 1, 2]
			},
			"ContentWarningLevelInput": {
				"description": "The content warning level for a guild, category, or channel",
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"format": "int32",
				"x-enumNames": ["INHERIT", "CONTENT_WARNING"],
				"x-enumDescriptions": [
					"No level set on this scope; channels and categories inherit from parent",
					"Show a content warning before entering"
				],
				"enum": [0, 1]
			},
			"NSFWLevelInput": {
				"description": "The NSFW level of the guild",
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"format": "int32",
				"x-enumNames": ["SAFE", "AGE_RESTRICTED"],
				"x-enumDescriptions": ["Guild is safe for all ages", "Guild is age-restricted"],
				"enum": [0, 3]
			},
			"GuildMFALevelInput": {
				"description": "Required MFA level for moderation actions",
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"format": "int32",
				"x-enumNames": ["NONE", "ELEVATED"],
				"x-enumDescriptions": ["Guild has no MFA requirement", "Guild requires 2FA for moderation actions"],
				"enum": [0, 1]
			},
			"GuildVerificationLevelInput": {
				"description": "Required verification level for members",
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"format": "int32",
				"x-enumNames": ["NONE", "LOW", "MEDIUM", "HIGH"],
				"x-enumDescriptions": [
					"Unrestricted",
					"Must have verified email",
					"Registered for more than 5 minutes",
					"Member of the server for more than 10 minutes"
				],
				"enum": [0, 1, 2, 3]
			},
			"CommunityRemovalBasis": {
				"oneOf": [
					{
						"type": "object",
						"properties": {
							"type": {"type": "string", "enum": ["enforcement"]},
							"decision": {"allOf": [{"$ref": "#/components/schemas/EnforcementDecisionInput"}]}
						},
						"required": ["type", "decision"],
						"description": "A rule was broken. Records an enforcement decision and sends its notice"
					},
					{
						"type": "object",
						"properties": {"type": {"type": "string", "enum": ["holder_request"]}},
						"required": ["type"],
						"description": "The account holder or community owner asked"
					}
				],
				"description": "Why the community is removed"
			},
			"EnforcementDecisionInput": {
				"type": "object",
				"properties": {
					"reason_code": {"allOf": [{"$ref": "#/components/schemas/EnforcementReasonCodeType"}]},
					"source": {
						"type": "string",
						"enum": ["report", "own_review"],
						"description": "Whether the team reviewed this after a report or found it in its own review"
					},
					"automation": {
						"type": "string",
						"enum": ["none", "flagged"],
						"description": "Whether automated tools flagged this before a person on the team decided"
					},
					"report_ids": {
						"description": "Reports about the subject that this decision resolves. Required when the source is a report",
						"maxItems": 20,
						"type": "array",
						"items": {"$ref": "#/components/schemas/SnowflakeType"}
					},
					"evidence": {
						"description": "Messages from the subject that the decision relies on. They are snapshotted when the decision is made",
						"maxItems": 50,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"channel_id": {"$ref": "#/components/schemas/SnowflakeType"},
								"message_id": {"$ref": "#/components/schemas/SnowflakeType"}
							},
							"required": ["channel_id", "message_id"]
						}
					},
					"statement": {
						"description": "Note to the user, shown in the notice. Never name or describe other people",
						"type": "string"
					},
					"rights_holder": {
						"description": "The rights holder or the right concerned. Required for copyright decisions and refused otherwise",
						"type": "string"
					},
					"confirmations": {
						"description": "Required for child safety and violent extremism decisions",
						"maxItems": 2,
						"type": "array",
						"items": {"type": "string", "enum": ["evidence_preserved", "reports_filed_or_not_required"]}
					}
				},
				"required": ["reason_code", "source", "automation"],
				"description": "Why the restriction is applied. The X-Audit-Log-Reason header is required and becomes the first note"
			},
			"PurgeGuildAssetErrorSchema": {
				"type": "object",
				"properties": {
					"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"error": {"type": "string", "minLength": 1, "maxLength": 4000}
				},
				"required": ["id", "error"],
				"additionalProperties": false
			},
			"PurgeGuildAssetResultSchema": {
				"type": "object",
				"properties": {
					"id": {
						"description": "Unique identifier of the asset",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"asset_type": {
						"description": "Type of guild asset",
						"x-enumNames": ["emoji", "sticker", "unknown"],
						"x-enumDescriptions": ["Custom emoji asset", "Custom sticker asset", "Unknown asset type"],
						"enum": ["emoji", "sticker", "unknown"],
						"type": "string"
					},
					"found_in_db": {"type": "boolean", "description": "Whether the asset was found in the database"},
					"guild_id": {
						"nullable": true,
						"description": "ID of the guild the asset belongs to",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"guild_nsfw_level": {
						"nullable": true,
						"description": "NSFW level of the guild the asset belongs to",
						"allOf": [{"$ref": "#/components/schemas/NSFWLevel"}]
					}
				},
				"required": ["id", "asset_type", "found_in_db", "guild_id", "guild_nsfw_level"],
				"additionalProperties": false
			},
			"AuditLogWebhookResponse": {
				"type": "object",
				"properties": {
					"id": {
						"description": "The unique identifier for this webhook",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"type": {"allOf": [{"$ref": "#/components/schemas/WebhookType"}]},
					"guild_id": {
						"description": "The guild ID this webhook belongs to",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"channel_id": {
						"description": "The channel ID this webhook posts to",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"name": {"type": "string", "description": "The name of the webhook"},
					"avatar_hash": {"description": "The hash of the webhook avatar", "nullable": true, "type": "string"}
				},
				"required": ["id", "type", "name"],
				"additionalProperties": false
			},
			"GuildAuditLogEntryResponse": {
				"type": "object",
				"properties": {
					"id": {
						"description": "The unique identifier for this audit log entry",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"action_type": {"allOf": [{"$ref": "#/components/schemas/AuditLogActionType"}]},
					"user_id": {
						"description": "The user ID of the user who performed the action",
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"target_id": {
						"description": "The ID of the affected entity (user, channel, role, invite code, etc.)",
						"nullable": true,
						"type": "string"
					},
					"reason": {
						"description": "The audit log reason. For bans and timeouts without an X-Audit-Log-Reason header this is the reason sent in the request body",
						"type": "string"
					},
					"options": {
						"description": "Additional options depending on action type",
						"type": "object",
						"properties": {
							"channel_id": {"description": "Channel ID for relevant actions", "type": "string"},
							"count": {"description": "Count of items affected", "type": "number"},
							"delete_member_days": {
								"description": "Deprecated. Whole days of messages deleted, written only by bans recorded before delete_message_seconds",
								"type": "string"
							},
							"delete_message_seconds": {
								"description": "Seconds of the banned user's messages that the ban deleted, present only when positive",
								"type": "number"
							},
							"id": {"description": "ID of the affected entity", "type": "string"},
							"integration_type": {"description": "Type of integration", "type": "number"},
							"message_id": {"description": "Message ID for relevant actions", "type": "string"},
							"members_removed": {"description": "Number of members removed", "type": "number"},
							"role_name": {"description": "Name of the role when the entry was written", "type": "string"},
							"type": {
								"description": "Channel type for CHANNEL_CREATE, CHANNEL_UPDATE and CHANNEL_DELETE. Overwrite target type (0 role, 1 member) for CHANNEL_OVERWRITE_*",
								"type": "number"
							},
							"inviter_id": {"description": "ID of the user who created the invite", "type": "string"},
							"max_age": {"description": "Maximum age of the invite in seconds", "type": "number"},
							"max_uses": {"description": "Maximum number of uses for the invite", "type": "number"},
							"temporary": {"description": "Whether the invite grants temporary membership", "type": "boolean"},
							"uses": {"description": "Number of times the invite has been used", "type": "number"}
						},
						"additionalProperties": false
					},
					"changes": {
						"description": "Changes made to the target",
						"type": "array",
						"items": {"$ref": "#/components/schemas/AuditLogChangeSchema"}
					}
				},
				"required": ["id", "action_type"],
				"additionalProperties": false
			},
			"AuditLogChangeSchema": {
				"type": "object",
				"properties": {
					"key": {"type": "string", "description": "The field that changed"},
					"old_value": {
						"description": "Value before the change",
						"anyOf": [
							{"type": "string"},
							{"type": "number"},
							{"type": "boolean"},
							{"type": "array", "items": {"type": "string"}},
							{"type": "array", "items": {"type": "number"}},
							{
								"type": "object",
								"properties": {
									"added": {"type": "array", "items": {"type": "string"}},
									"removed": {"type": "array", "items": {"type": "string"}}
								},
								"required": ["added", "removed"],
								"additionalProperties": false
							},
							{"type": "string", "nullable": true, "enum": [null]}
						]
					},
					"new_value": {
						"description": "Value after the change",
						"anyOf": [
							{"type": "string"},
							{"type": "number"},
							{"type": "boolean"},
							{"type": "array", "items": {"type": "string"}},
							{"type": "array", "items": {"type": "number"}},
							{
								"type": "object",
								"properties": {
									"added": {"type": "array", "items": {"type": "string"}},
									"removed": {"type": "array", "items": {"type": "string"}}
								},
								"required": ["added", "removed"],
								"additionalProperties": false
							},
							{"type": "string", "nullable": true, "enum": [null]}
						]
					}
				},
				"required": ["key"],
				"additionalProperties": false
			},
			"AuditLogActionType": {
				"description": "The type of action that occurred",
				"type": "integer",
				"enum": [
					1, 10, 11, 12, 13, 14, 15, 20, 21, 22, 23, 24, 25, 26, 27, 28, 30, 31, 32, 40, 41, 42, 50, 51, 52, 60, 61, 62,
					90, 91, 92, 72, 73, 74, 75, 110, 111, 112
				],
				"format": "int32",
				"x-enumNames": [
					"GUILD_UPDATE",
					"CHANNEL_CREATE",
					"CHANNEL_UPDATE",
					"CHANNEL_DELETE",
					"CHANNEL_OVERWRITE_CREATE",
					"CHANNEL_OVERWRITE_UPDATE",
					"CHANNEL_OVERWRITE_DELETE",
					"MEMBER_KICK",
					"MEMBER_PRUNE",
					"MEMBER_BAN_ADD",
					"MEMBER_BAN_REMOVE",
					"MEMBER_UPDATE",
					"MEMBER_ROLE_UPDATE",
					"MEMBER_MOVE",
					"MEMBER_DISCONNECT",
					"BOT_ADD",
					"ROLE_CREATE",
					"ROLE_UPDATE",
					"ROLE_DELETE",
					"INVITE_CREATE",
					"INVITE_UPDATE",
					"INVITE_DELETE",
					"WEBHOOK_CREATE",
					"WEBHOOK_UPDATE",
					"WEBHOOK_DELETE",
					"EMOJI_CREATE",
					"EMOJI_UPDATE",
					"EMOJI_DELETE",
					"STICKER_CREATE",
					"STICKER_UPDATE",
					"STICKER_DELETE",
					"MESSAGE_DELETE",
					"MESSAGE_BULK_DELETE",
					"MESSAGE_PIN",
					"MESSAGE_UNPIN",
					"THREAD_CREATE",
					"THREAD_UPDATE",
					"THREAD_DELETE"
				],
				"x-enumDescriptions": [
					"Guild settings were updated",
					"Channel was created",
					"Channel was updated",
					"Channel was deleted",
					"Permission overwrite was created",
					"Permission overwrite was updated",
					"Permission overwrite was deleted",
					"Member was kicked",
					"Members were pruned",
					"Member was banned",
					"Member ban was removed",
					"Member was updated",
					"Member roles were updated",
					"Member was moved to a different voice channel",
					"Member was disconnected from a voice channel",
					"Bot was added to the guild",
					"Role was created",
					"Role was updated",
					"Role was deleted",
					"Invite was created",
					"Invite was updated",
					"Invite was deleted",
					"Webhook was created",
					"Webhook was updated",
					"Webhook was deleted",
					"Emoji was created",
					"Emoji was updated",
					"Emoji was deleted",
					"Sticker was created",
					"Sticker was updated",
					"Sticker was deleted",
					"Message was deleted",
					"Messages were bulk deleted",
					"Message was pinned",
					"Message was unpinned",
					"Thread was created",
					"Thread was updated",
					"Thread was deleted"
				]
			},
			"WebhookType": {
				"description": "The type of webhook",
				"type": "integer",
				"enum": [1, 2],
				"format": "int32",
				"x-enumNames": ["INCOMING", "CHANNEL_FOLLOWER"],
				"x-enumDescriptions": ["Incoming webhook", "Channel follower webhook"]
			},
			"DistributionPricingUpdateRequest": {
				"type": "object",
				"properties": {
					"rules": {
						"maxItems": 32,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"id": {
									"type": "string",
									"pattern": "^[a-z0-9_]{1,32}$",
									"description": "Distribution id sent by clients built for that distribution, for example ios_marketplace"
								},
								"active": {
									"type": "boolean",
									"description": "Whether checkouts and quotes for this distribution use the channel price"
								},
								"rate_bps": {
									"type": "integer",
									"minimum": 1,
									"maximum": 3000,
									"description": "Share of the channel price that goes to the distribution, in basis points. 500 means 5%"
								},
								"products": {
									"minItems": 1,
									"maxItems": 2,
									"type": "array",
									"items": {"$ref": "#/components/schemas/DistributionProductSchema"},
									"description": "Products that get the channel price"
								}
							},
							"required": ["id", "active", "rate_bps", "products"]
						},
						"description": "Full list of distribution rules. A left-out rule that already has channel prices stays stored as inactive so its subscriptions keep renewing"
					}
				},
				"required": ["rules"]
			},
			"InstanceBillingUpdateRequest": {
				"type": "object",
				"properties": {
					"enabled": {"nullable": true, "type": "boolean"},
					"stripe_secret_key": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 4096},
					"stripe_webhook_secret": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 4096},
					"automatic_tax": {"nullable": true, "type": "boolean"},
					"tax_id_collection": {"nullable": true, "type": "boolean"},
					"terms_consent_required": {"nullable": true, "type": "boolean"},
					"billing_emails": {"nullable": true, "type": "boolean"},
					"default_currency": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/PremiumCurrency"}]},
					"prices": {
						"nullable": true,
						"type": "object",
						"additionalProperties": {"$ref": "#/components/schemas/BillingPriceSetUpdateRequest"}
					},
					"country_currencies": {
						"nullable": true,
						"allOf": [{"$ref": "#/components/schemas/BillingCountryCurrenciesSchema"}]
					},
					"legacy_prices": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/BillingLegacyPricesSchema"}]}
				}
			},
			"EmailDeliveryModeSchema": {
				"description": "How the instance sends email",
				"x-enumNames": ["OFF", "SMTP"],
				"x-enumDescriptions": ["The instance does not send email", "The instance sends email through SMTP"],
				"enum": ["off", "smtp"],
				"type": "string"
			},
			"InstanceRegistrationModeSchema": {
				"description": "Registration mode",
				"x-enumNames": ["open", "approval", "closed"],
				"x-enumDescriptions": [
					"Anyone can register",
					"Anyone can register, but admins must approve new accounts",
					"Public registration is closed"
				],
				"enum": ["open", "approval", "closed"],
				"type": "string"
			},
			"ExperimentDeliveryConfigUpdateRequest": {
				"type": "object",
				"properties": {
					"poll_interval_seconds": {"type": "integer", "minimum": 60, "maximum": 86400},
					"poll_jitter_percent": {"type": "integer", "minimum": 0, "maximum": 50}
				}
			},
			"GuildVisitsConfigUpdateRequest": {
				"type": "object",
				"properties": {
					"enabled": {"type": "boolean", "description": "Kill switch for visiting communities without joining"},
					"user_basis_points": {
						"type": "integer",
						"minimum": 0,
						"maximum": 10000,
						"description": "Share of people assigned, in basis points"
					},
					"user_salt": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64,
						"pattern": "^[\\x20-\\x7e]+$",
						"description": "Salt for the assignment bucket"
					},
					"included_user_ids": {
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"},
						"description": "People always assigned"
					},
					"excluded_user_ids": {
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"},
						"description": "People never assigned, checked before the included list"
					}
				}
			},
			"AccountsConfigUpdateRequest": {
				"type": "object",
				"properties": {
					"date_of_birth": {"allOf": [{"$ref": "#/components/schemas/DateOfBirthPolicySchema"}]},
					"interaction_tier": {"allOf": [{"$ref": "#/components/schemas/InteractionTierModeSchema"}]},
					"verification_basis": {"allOf": [{"$ref": "#/components/schemas/VerificationBasisSchema"}]},
					"guild_join_gate": {"allOf": [{"$ref": "#/components/schemas/GuildJoinGateSchema"}]},
					"unclaimed_account_cleanup": {
						"type": "object",
						"properties": {
							"mode": {
								"description": "Whether accounts that can never be signed in to again are deleted",
								"allOf": [{"$ref": "#/components/schemas/CleanupModeSchema"}]
							},
							"inactive_days": {
								"type": "integer",
								"minimum": 1,
								"maximum": 3650,
								"description": "Days without use before such an account is deleted"
							},
							"on_last_session_end": {"allOf": [{"$ref": "#/components/schemas/LastSessionCleanupModeSchema"}]}
						}
					},
					"dob_missing_cleanup": {
						"type": "object",
						"properties": {
							"mode": {
								"description": "Whether accounts that were created without a date of birth and never entered one are deleted",
								"allOf": [{"$ref": "#/components/schemas/CleanupModeSchema"}]
							},
							"inactive_days": {
								"type": "integer",
								"minimum": 1,
								"maximum": 3650,
								"description": "Days without use before such an account is deleted"
							}
						}
					},
					"inactivity_deletion": {
						"type": "object",
						"properties": {
							"mode": {
								"description": "Whether accounts unused for a long time are deleted. An account is only deleted after a warning email reached it",
								"allOf": [{"$ref": "#/components/schemas/CleanupModeSchema"}]
							},
							"inactive_days": {
								"type": "integer",
								"minimum": 1,
								"maximum": 3650,
								"description": "Days without use before the warning email is sent"
							},
							"warning_lead_days": {
								"type": "integer",
								"minimum": 1,
								"maximum": 365,
								"description": "Days between the warning email and the deletion"
							}
						}
					},
					"date_of_birth_enforcement": {
						"type": "string",
						"enum": ["off", "new_accounts", "all"],
						"description": "Deprecated, use date_of_birth"
					},
					"abandoned_account_cleanup": {
						"description": "Deprecated, use unclaimed_account_cleanup and dob_missing_cleanup",
						"type": "boolean"
					}
				}
			},
			"AuthConfigUpdateRequest": {
				"type": "object",
				"properties": {
					"identifier_first": {
						"anyOf": [
							{"allOf": [{"$ref": "#/components/schemas/IdentifierFirstModeSchema"}]},
							{"type": "boolean", "description": "Deprecated: true means on and false means off"}
						]
					},
					"instant_accounts": {
						"type": "object",
						"properties": {
							"enabled": {
								"type": "boolean",
								"description": "Whether accounts can be created from just a display name. Needs the captcha to be on"
							},
							"pow_escalation_per_hour": {
								"type": "integer",
								"minimum": 10,
								"maximum": 1000000,
								"description": "Every this many accounts created from a display name in the current hour doubles the captcha cost"
							}
						}
					}
				}
			},
			"CaptchaConfigUpdateRequest": {
				"type": "object",
				"properties": {
					"provider": {"allOf": [{"$ref": "#/components/schemas/CaptchaProviderSchema"}]},
					"cost": {"type": "integer", "minimum": 1000, "maximum": 20000},
					"max_counter": {"type": "integer", "minimum": 100, "maximum": 20000},
					"enabled": {
						"type": "boolean",
						"description": "Deprecated, use provider. false means none and true means altcha"
					}
				}
			},
			"VoiceP2pConfigUpdateRequest": {
				"type": "object",
				"properties": {
					"enabled": {"type": "boolean"},
					"rollout_basis_points": {"type": "integer", "minimum": 0, "maximum": 10000},
					"rollout_country_codes": {"allOf": [{"$ref": "#/components/schemas/ExperimentRolloutCountryCodesSchema"}]},
					"rollout_salt": {"type": "string", "minLength": 1, "maxLength": 64, "pattern": "^[\\x20-\\x7e]+$"},
					"included_user_ids": {
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"}
					},
					"included_guild_ids": {
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"}
					},
					"include_premium_users": {"type": "boolean"},
					"excluded_user_ids": {
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"}
					},
					"max_participants": {"type": "integer", "minimum": 2, "maximum": 4}
				}
			},
			"DomainMigrationConfigUpdateRequest": {
				"type": "object",
				"properties": {
					"enabled": {"type": "boolean"},
					"rollout_basis_points": {"type": "integer", "minimum": 0, "maximum": 10000},
					"rollout_country_codes": {"allOf": [{"$ref": "#/components/schemas/ExperimentRolloutCountryCodesSchema"}]},
					"rollout_salt": {"type": "string", "minLength": 1, "maxLength": 64, "pattern": "^[\\x20-\\x7e]+$"},
					"included_user_ids": {
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"}
					},
					"included_guild_ids": {
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"}
					},
					"include_premium_users": {"type": "boolean"},
					"excluded_user_ids": {
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"}
					},
					"anonymous_rollout_basis_points": {"type": "integer", "minimum": 0, "maximum": 10000},
					"standalone_forwarding": {"type": "boolean"}
				}
			},
			"PushRelayConfigUpdateRequest": {"type": "object", "properties": {"relay_consent_accepted": {"type": "boolean"}}},
			"GatewayRolloutConfigUpdateRequest": {
				"type": "object",
				"properties": {
					"session_rollout_percentage": {"type": "number", "minimum": 0, "maximum": 100},
					"session_rollout_mode": {"type": "string", "enum": ["modulo", "random"]},
					"guild_rollout_percentage": {"type": "number", "minimum": 0, "maximum": 100},
					"rpc_request_timeout_ms": {"type": "integer", "minimum": 1000, "maximum": 60000},
					"max_concurrent_session_starts": {"type": "integer", "minimum": 1, "maximum": 10000},
					"max_concurrent_guild_starts": {"type": "integer", "minimum": 1, "maximum": 10000},
					"gateway_dispatch_relay_shards": {"type": "integer", "minimum": 1, "maximum": 10000},
					"gateway_dispatch_relay_max_queue": {"type": "integer", "minimum": 0, "maximum": 1000000},
					"voice_e2ee_scope": {"type": "string", "enum": ["guild_feature_only", "platform_wide"]}
				}
			},
			"ExperimentRolloutCountryCodesSchema": {
				"maxItems": 250,
				"type": "array",
				"items": {"type": "string", "pattern": "^[A-Z]{2}$"}
			},
			"CaptchaProviderSchema": {
				"description": "Captcha the instance asks for",
				"x-enumNames": ["NONE", "ALTCHA"],
				"x-enumDescriptions": ["No captcha is asked for", "An ALTCHA proof of work is asked for"],
				"enum": ["none", "altcha"],
				"type": "string"
			},
			"IdentifierFirstModeSchema": {
				"description": "Whether clients show the single sign-in entry that starts with an email",
				"x-enumNames": ["AUTO", "ON", "OFF"],
				"x-enumDescriptions": [
					"On while people sign in with an email and the instance sends email",
					"On while people sign in with an email",
					"Off"
				],
				"enum": ["auto", "on", "off"],
				"type": "string"
			},
			"CleanupModeSchema": {
				"description": "Whether a cleanup policy deletes accounts",
				"x-enumNames": ["OFF", "AFTER_INACTIVITY"],
				"x-enumDescriptions": [
					"Accounts are never deleted by this policy",
					"Accounts are deleted after the set number of days without use"
				],
				"enum": ["off", "after_inactivity"],
				"type": "string"
			},
			"LastSessionCleanupModeSchema": {
				"description": "What happens when an account with no way back in signs out of its last session",
				"x-enumNames": ["OFF", "AFTER_GRACE"],
				"x-enumDescriptions": [
					"Signing out of the last session deletes nothing",
					"Signing out of the last session schedules the account for deletion after a grace period"
				],
				"enum": ["off", "after_grace"],
				"type": "string"
			},
			"GuildJoinGateSchema": {
				"description": "When joining a community needs a finished account. Applies only while the interaction tier is enforced and the person can preview communities",
				"x-enumNames": ["OFF", "VISITS_CAPABLE", "ALWAYS"],
				"x-enumDescriptions": [
					"Joining a community never needs a finished account",
					"Joining needs a finished account only in clients that can preview communities",
					"Joining needs a finished account in every client"
				],
				"enum": ["off", "visits_capable", "always"],
				"type": "string"
			},
			"VerificationBasisSchema": {
				"description": "What an account needs to finish setting up",
				"x-enumNames": ["AUTO", "CONFIRMED_EMAIL", "LOCAL_CREDENTIAL"],
				"x-enumDescriptions": [
					"A confirmed email while the instance sends email, otherwise a password or passkey",
					"Accounts finish setting up by confirming an email",
					"Accounts finish setting up by adding a password or passkey"
				],
				"enum": ["auto", "confirmed_email", "local_credential"],
				"type": "string"
			},
			"InteractionTierModeSchema": {
				"description": "Which limits apply to accounts that have not finished setting up",
				"x-enumNames": ["LEGACY", "ENFORCED"],
				"x-enumDescriptions": [
					"Accounts that have not finished setting up keep the older limits",
					"Accounts that have not finished setting up may only do things that do not reach other people"
				],
				"enum": ["legacy", "enforced"],
				"type": "string"
			},
			"DateOfBirthPolicySchema": {
				"description": "Whether the instance asks for a date of birth, and who must enter one",
				"x-enumNames": ["OFF", "ASK", "REQUIRE_NEW_ACCOUNTS", "REQUIRE_ALL"],
				"x-enumDescriptions": [
					"The date of birth is never asked for",
					"The date of birth is asked for, but nothing waits on it",
					"Accounts created without a date of birth must enter one before using the app",
					"Every account without a date of birth must enter one"
				],
				"enum": ["off", "ask", "require_new_accounts", "require_all"],
				"type": "string"
			},
			"BillingLegacyPricesSchema": {
				"type": "object",
				"additionalProperties": {
					"maxItems": 32,
					"type": "array",
					"items": {"$ref": "#/components/schemas/StripePriceIdSchema"}
				}
			},
			"BillingCountryCurrenciesSchema": {
				"type": "object",
				"additionalProperties": {"$ref": "#/components/schemas/PremiumCurrency"}
			},
			"BillingPriceSetUpdateRequest": {
				"type": "object",
				"properties": {
					"monthly": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/StripePriceIdSchema"}]},
					"yearly": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/StripePriceIdSchema"}]},
					"gift_1_month": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/StripePriceIdSchema"}]},
					"gift_1_year": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/StripePriceIdSchema"}]}
				}
			},
			"PremiumCurrency": {"type": "string", "pattern": "^[A-Z]{3}$"},
			"StripePriceIdSchema": {"type": "string", "maxLength": 255, "pattern": "^price_[A-Za-z0-9]+$"},
			"DistributionProductSchema": {"type": "string", "enum": ["plutonium_subscription", "plutonium_gift"]},
			"EmailType": {"type": "string"},
			"PendingRegistrationResponse": {
				"type": "object",
				"properties": {
					"user_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"username": {"type": "string"},
					"discriminator": {"type": "integer", "minimum": 0, "maximum": 9999},
					"global_name": {"nullable": true, "type": "string"},
					"email": {"nullable": true, "type": "string"},
					"requested_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"registration_url_id": {"nullable": true, "type": "string", "minLength": 1, "maxLength": 128},
					"client_ip": {"nullable": true, "type": "string"},
					"invite_code": {"nullable": true, "type": "string", "maxLength": 256}
				},
				"required": [
					"user_id",
					"username",
					"discriminator",
					"global_name",
					"email",
					"requested_at",
					"registration_url_id",
					"client_ip",
					"invite_code"
				],
				"additionalProperties": false
			},
			"InstanceNoticeSchema": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"description": "Changes whenever the notice text changes, so clients can remember a dismissal"
					},
					"message": {"type": "string", "description": "Notice text written by the instance administrator"},
					"url": {"nullable": true, "description": "Optional link shown with the notice", "type": "string"},
					"starts_at": {
						"nullable": true,
						"description": "When clients start showing the notice, or null for now",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"ends_at": {
						"nullable": true,
						"description": "When clients stop showing the notice, or null for no end",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					}
				},
				"required": ["id", "message", "url", "starts_at", "ends_at"],
				"additionalProperties": false,
				"description": "Notice from the instance administrator shown to everyone, such as planned maintenance"
			},
			"DistributionPricingConfigResponse": {
				"type": "object",
				"properties": {
					"rules": {
						"default": [],
						"maxItems": 32,
						"type": "array",
						"items": {"$ref": "#/components/schemas/DistributionRuleSchema"}
					}
				},
				"required": ["rules"],
				"additionalProperties": false
			},
			"InstanceBillingResponse": {
				"type": "object",
				"properties": {
					"enabled": {"nullable": true, "type": "boolean"},
					"effective_enabled": {"type": "boolean"},
					"stripe_secret_key_set": {"type": "boolean"},
					"stripe_webhook_secret_set": {"type": "boolean"},
					"stripe_secret_key_stored": {"type": "boolean"},
					"stripe_webhook_secret_stored": {"type": "boolean"},
					"automatic_tax": {"nullable": true, "type": "boolean"},
					"tax_id_collection": {"nullable": true, "type": "boolean"},
					"terms_consent_required": {"nullable": true, "type": "boolean"},
					"billing_emails": {"nullable": true, "type": "boolean"},
					"effective_automatic_tax": {"type": "boolean"},
					"effective_tax_id_collection": {"type": "boolean"},
					"effective_terms_consent_required": {"type": "boolean"},
					"effective_billing_emails": {"type": "boolean"},
					"default_currency": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/PremiumCurrency"}]},
					"prices": {
						"nullable": true,
						"type": "object",
						"additionalProperties": {"$ref": "#/components/schemas/BillingPriceSetResponse"}
					},
					"country_currencies": {"nullable": true, "type": "object", "additionalProperties": {"type": "string"}},
					"legacy_prices": {
						"nullable": true,
						"type": "object",
						"additionalProperties": {"type": "array", "items": {"type": "string"}}
					},
					"billing_active": {"type": "boolean"},
					"stripe_serviceable": {"type": "boolean"},
					"catalog_mode": {"$ref": "#/components/schemas/BillingCatalogModeSchema"},
					"webhook_url": {"type": "string"}
				},
				"required": [
					"enabled",
					"effective_enabled",
					"stripe_secret_key_set",
					"stripe_webhook_secret_set",
					"stripe_secret_key_stored",
					"stripe_webhook_secret_stored",
					"automatic_tax",
					"tax_id_collection",
					"terms_consent_required",
					"billing_emails",
					"effective_automatic_tax",
					"effective_tax_id_collection",
					"effective_terms_consent_required",
					"effective_billing_emails",
					"default_currency",
					"prices",
					"country_currencies",
					"legacy_prices",
					"billing_active",
					"stripe_serviceable",
					"catalog_mode",
					"webhook_url"
				],
				"additionalProperties": false
			},
			"EmailDeliveryStateSchema": {
				"description": "Whether the instance sends email, and why not",
				"x-enumNames": ["ON", "OFF_USERNAME_MODE", "OFF_DISABLED", "OFF_INCOMPLETE"],
				"x-enumDescriptions": [
					"The instance sends email",
					"People sign in with a username, so no email is sent",
					"Email delivery is turned off",
					"Email delivery is on but its settings are incomplete"
				],
				"enum": ["on", "off_username_mode", "off_disabled", "off_incomplete"],
				"type": "string"
			},
			"AccountIdentityLockReasonSchema": {
				"description": "Why the sign-in method can no longer change",
				"x-enumNames": ["SETUP_CONFIGURED", "EXISTING_INSTANCE", "ADMIN_EXISTS", "ACCOUNTS_EXIST"],
				"x-enumDescriptions": [
					"The instance configuration marks setup as finished",
					"The instance was in use before username sign-in existed, so it stays on email",
					"The instance already has an administrator",
					"The instance already has accounts"
				],
				"enum": ["setup_configured", "existing_instance", "admin_exists", "accounts_exist"],
				"type": "string"
			},
			"TagStyleSchema": {
				"description": "How usernames are tagged",
				"x-enumNames": ["NONE", "RANDOM"],
				"x-enumDescriptions": ["Usernames are unique and shown without a tag", "Every account gets a random tag"],
				"enum": ["none", "random"],
				"type": "string"
			},
			"AccountIdentityModeSchema": {
				"description": "How people identify themselves when they sign in",
				"x-enumNames": ["EMAIL", "USERNAME"],
				"x-enumDescriptions": [
					"People sign in with an email address",
					"People sign in with a username and no email is collected"
				],
				"enum": ["email", "username"],
				"type": "string"
			},
			"ExperimentDeliveryConfigResponse": {
				"type": "object",
				"properties": {
					"poll_interval_seconds": {"default": 300, "type": "integer", "minimum": 60, "maximum": 86400},
					"poll_jitter_percent": {"default": 15, "type": "integer", "minimum": 0, "maximum": 50}
				},
				"required": ["poll_interval_seconds", "poll_jitter_percent"],
				"additionalProperties": false
			},
			"GuildVisitsConfigResponse": {
				"type": "object",
				"properties": {
					"enabled": {
						"default": false,
						"type": "boolean",
						"description": "Kill switch for visiting communities without joining"
					},
					"user_basis_points": {
						"default": 0,
						"type": "integer",
						"minimum": 0,
						"maximum": 10000,
						"description": "Share of people assigned, in basis points"
					},
					"user_salt": {
						"default": "guild-visits-user-v1",
						"type": "string",
						"minLength": 1,
						"maxLength": 64,
						"pattern": "^[\\x20-\\x7e]+$",
						"description": "Salt for the assignment bucket"
					},
					"included_user_ids": {
						"default": [],
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"},
						"description": "People always assigned"
					},
					"excluded_user_ids": {
						"default": [],
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"},
						"description": "People never assigned, checked before the included list"
					}
				},
				"required": ["enabled", "user_basis_points", "user_salt", "included_user_ids", "excluded_user_ids"],
				"additionalProperties": false
			},
			"AccountsConfigSchema": {
				"type": "object",
				"properties": {
					"date_of_birth": {"allOf": [{"$ref": "#/components/schemas/DateOfBirthPolicySchema"}]},
					"interaction_tier": {"allOf": [{"$ref": "#/components/schemas/InteractionTierModeSchema"}]},
					"verification_basis": {"allOf": [{"$ref": "#/components/schemas/VerificationBasisSchema"}]},
					"guild_join_gate": {"allOf": [{"$ref": "#/components/schemas/GuildJoinGateSchema"}]},
					"unclaimed_account_cleanup": {
						"type": "object",
						"properties": {
							"mode": {
								"description": "Whether accounts that can never be signed in to again are deleted",
								"allOf": [{"$ref": "#/components/schemas/CleanupModeSchema"}]
							},
							"inactive_days": {
								"type": "integer",
								"minimum": 1,
								"maximum": 3650,
								"description": "Days without use before such an account is deleted"
							},
							"on_last_session_end": {"allOf": [{"$ref": "#/components/schemas/LastSessionCleanupModeSchema"}]}
						},
						"required": ["mode", "inactive_days", "on_last_session_end"],
						"additionalProperties": false
					},
					"dob_missing_cleanup": {
						"type": "object",
						"properties": {
							"mode": {
								"description": "Whether accounts that were created without a date of birth and never entered one are deleted",
								"allOf": [{"$ref": "#/components/schemas/CleanupModeSchema"}]
							},
							"inactive_days": {
								"type": "integer",
								"minimum": 1,
								"maximum": 3650,
								"description": "Days without use before such an account is deleted"
							}
						},
						"required": ["mode", "inactive_days"],
						"additionalProperties": false
					},
					"inactivity_deletion": {
						"type": "object",
						"properties": {
							"mode": {
								"description": "Whether accounts unused for a long time are deleted. An account is only deleted after a warning email reached it",
								"allOf": [{"$ref": "#/components/schemas/CleanupModeSchema"}]
							},
							"inactive_days": {
								"type": "integer",
								"minimum": 1,
								"maximum": 3650,
								"description": "Days without use before the warning email is sent"
							},
							"warning_lead_days": {
								"type": "integer",
								"minimum": 1,
								"maximum": 365,
								"description": "Days between the warning email and the deletion"
							}
						},
						"required": ["mode", "inactive_days", "warning_lead_days"],
						"additionalProperties": false
					}
				},
				"required": [
					"date_of_birth",
					"interaction_tier",
					"verification_basis",
					"guild_join_gate",
					"unclaimed_account_cleanup",
					"dob_missing_cleanup",
					"inactivity_deletion"
				],
				"additionalProperties": false
			},
			"InstantAccountAvailabilitySchema": {
				"description": "Whether accounts can be created from just a display name, and why not",
				"x-enumNames": [
					"AVAILABLE",
					"DISABLED",
					"CAPTCHA_OFF",
					"REGISTRATION_CLOSED",
					"APPROVAL_REQUIRED",
					"EMAIL_DOMAINS_RESTRICTED"
				],
				"x-enumDescriptions": [
					"Accounts can be created from a display name",
					"Instant accounts are turned off",
					"Instant accounts need the captcha, which is off",
					"Public registration is closed",
					"New accounts need approval, so they need credentials to sign in once approved",
					"Public sign-ups must use an email address on an allowed domain"
				],
				"enum": [
					"available",
					"disabled",
					"captcha_off",
					"registration_closed",
					"approval_required",
					"email_domains_restricted"
				],
				"type": "string"
			},
			"CaptchaConfigResponse": {
				"type": "object",
				"properties": {
					"provider": {"default": "altcha", "allOf": [{"$ref": "#/components/schemas/CaptchaProviderSchema"}]},
					"cost": {"default": 5000, "type": "integer", "minimum": 1000, "maximum": 20000},
					"max_counter": {"default": 1000, "type": "integer", "minimum": 100, "maximum": 20000},
					"enabled": {"type": "boolean", "description": "Deprecated, use provider. Whether any captcha is asked for"}
				},
				"required": ["provider", "cost", "max_counter", "enabled"],
				"additionalProperties": false
			},
			"VoiceP2pConfigResponse": {
				"type": "object",
				"properties": {
					"enabled": {"default": false, "type": "boolean"},
					"config_version": {"default": 0, "type": "integer", "minimum": 0, "maximum": 9007199254740991},
					"rollout_basis_points": {"default": 0, "type": "integer", "minimum": 0, "maximum": 10000},
					"rollout_country_codes": {
						"default": [],
						"allOf": [{"$ref": "#/components/schemas/ExperimentRolloutCountryCodesSchema"}]
					},
					"rollout_salt": {
						"default": "voice-p2p-v1",
						"type": "string",
						"minLength": 1,
						"maxLength": 64,
						"pattern": "^[\\x20-\\x7e]+$"
					},
					"included_user_ids": {
						"default": [],
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"}
					},
					"included_guild_ids": {
						"default": [],
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"}
					},
					"include_premium_users": {"default": false, "type": "boolean"},
					"excluded_user_ids": {
						"default": [],
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"}
					},
					"max_participants": {"default": 2, "type": "integer", "minimum": 2, "maximum": 4}
				},
				"required": [
					"enabled",
					"config_version",
					"rollout_basis_points",
					"rollout_country_codes",
					"rollout_salt",
					"included_user_ids",
					"included_guild_ids",
					"include_premium_users",
					"excluded_user_ids",
					"max_participants"
				],
				"additionalProperties": false
			},
			"DomainMigrationConfigResponse": {
				"type": "object",
				"properties": {
					"enabled": {"default": false, "type": "boolean"},
					"config_version": {"default": 0, "type": "integer", "minimum": 0, "maximum": 9007199254740991},
					"rollout_basis_points": {"default": 0, "type": "integer", "minimum": 0, "maximum": 10000},
					"rollout_country_codes": {
						"default": [],
						"allOf": [{"$ref": "#/components/schemas/ExperimentRolloutCountryCodesSchema"}]
					},
					"rollout_salt": {
						"default": "domain-migration-v1",
						"type": "string",
						"minLength": 1,
						"maxLength": 64,
						"pattern": "^[\\x20-\\x7e]+$"
					},
					"included_user_ids": {
						"default": [],
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"}
					},
					"included_guild_ids": {
						"default": [],
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"}
					},
					"include_premium_users": {"default": false, "type": "boolean"},
					"excluded_user_ids": {
						"default": [],
						"maxItems": 1000,
						"type": "array",
						"items": {"type": "string", "pattern": "^\\d{1,20}$"}
					},
					"anonymous_rollout_basis_points": {"default": 0, "type": "integer", "minimum": 0, "maximum": 10000},
					"standalone_forwarding": {"default": false, "type": "boolean"}
				},
				"required": [
					"enabled",
					"config_version",
					"rollout_basis_points",
					"rollout_country_codes",
					"rollout_salt",
					"included_user_ids",
					"included_guild_ids",
					"include_premium_users",
					"excluded_user_ids",
					"anonymous_rollout_basis_points",
					"standalone_forwarding"
				],
				"additionalProperties": false
			},
			"PushRelayConfigResponse": {
				"type": "object",
				"properties": {
					"relay_consent_accepted": {"default": false, "type": "boolean"},
					"relay_consent_accepted_at": {
						"default": null,
						"nullable": true,
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"relay_consent_accepted_by": {"default": null, "nullable": true, "type": "string", "pattern": "^\\d{1,20}$"}
				},
				"required": ["relay_consent_accepted", "relay_consent_accepted_at", "relay_consent_accepted_by"],
				"additionalProperties": false
			},
			"GatewayRolloutConfigResponse": {
				"type": "object",
				"properties": {
					"session_rollout_percentage": {"default": 100, "type": "number", "minimum": 0, "maximum": 100},
					"session_rollout_mode": {"default": "modulo", "type": "string", "enum": ["modulo", "random"]},
					"guild_rollout_percentage": {"default": 100, "type": "number", "minimum": 0, "maximum": 100},
					"rpc_request_timeout_ms": {"default": 10000, "type": "integer", "minimum": 1000, "maximum": 60000},
					"max_concurrent_session_starts": {"default": 512, "type": "integer", "minimum": 1, "maximum": 10000},
					"max_concurrent_guild_starts": {"default": 256, "type": "integer", "minimum": 1, "maximum": 10000},
					"gateway_dispatch_relay_shards": {"default": 32, "type": "integer", "minimum": 1, "maximum": 10000},
					"gateway_dispatch_relay_max_queue": {"default": 50000, "type": "integer", "minimum": 0, "maximum": 1000000},
					"voice_e2ee_scope": {
						"default": "guild_feature_only",
						"type": "string",
						"enum": ["guild_feature_only", "platform_wide"]
					}
				},
				"required": [
					"session_rollout_percentage",
					"session_rollout_mode",
					"guild_rollout_percentage",
					"rpc_request_timeout_ms",
					"max_concurrent_session_starts",
					"max_concurrent_guild_starts",
					"gateway_dispatch_relay_shards",
					"gateway_dispatch_relay_max_queue",
					"voice_e2ee_scope"
				],
				"additionalProperties": false
			},
			"BillingCatalogModeSchema": {"type": "string", "enum": ["env", "operator"]},
			"BillingPriceSetResponse": {
				"type": "object",
				"properties": {
					"monthly": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/StripePriceIdSchema"}]},
					"yearly": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/StripePriceIdSchema"}]},
					"gift_1_month": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/StripePriceIdSchema"}]},
					"gift_1_year": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/StripePriceIdSchema"}]}
				},
				"required": ["monthly", "yearly", "gift_1_month", "gift_1_year"],
				"additionalProperties": false
			},
			"DistributionRuleSchema": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"pattern": "^[a-z0-9_]{1,32}$",
						"description": "Distribution id sent by clients built for that distribution, for example ios_marketplace"
					},
					"active": {
						"type": "boolean",
						"description": "Whether checkouts and quotes for this distribution use the channel price"
					},
					"rate_bps": {
						"type": "integer",
						"minimum": 1,
						"maximum": 3000,
						"description": "Share of the channel price that goes to the distribution, in basis points. 500 means 5%"
					},
					"products": {
						"minItems": 1,
						"maxItems": 2,
						"type": "array",
						"items": {"$ref": "#/components/schemas/DistributionProductSchema"},
						"description": "Products that get the channel price"
					},
					"rule_version": {
						"type": "integer",
						"minimum": 1,
						"maximum": 9007199254740991,
						"description": "Bumped by the server whenever rate_bps changes. Prices made under a version keep it"
					},
					"prices": {
						"default": {},
						"description": "Channel Stripe prices keyed by \"<rule_version>:<base price ID>\". Managed by the server and never removed",
						"type": "object",
						"additionalProperties": {"$ref": "#/components/schemas/DistributionChannelPriceSchema"}
					}
				},
				"required": ["id", "active", "rate_bps", "products", "rule_version", "prices"],
				"additionalProperties": false
			},
			"DistributionChannelPriceSchema": {
				"type": "object",
				"properties": {
					"price_id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 255,
						"description": "Stripe price ID charged through the distribution"
					},
					"rate_bps": {
						"type": "integer",
						"minimum": 1,
						"maximum": 3000,
						"description": "Share of the channel price that goes to the distribution, in basis points. 500 means 5%"
					},
					"base_unit_amount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991,
						"description": "Unit amount of the base price, in minor units"
					},
					"unit_amount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991,
						"description": "Unit amount of the channel price, in minor units"
					}
				},
				"required": ["price_id", "rate_bps", "base_unit_amount", "unit_amount"],
				"additionalProperties": false
			},
			"JobLedgerEntrySchema": {
				"type": "object",
				"properties": {
					"job_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"task_type": {"type": "string"},
					"status": {"type": "string", "enum": ["queued", "running", "succeeded", "cancelled", "deadletter"]},
					"progress_current": {"nullable": true, "type": "number"},
					"progress_total": {"nullable": true, "type": "number"},
					"progress_message": {"nullable": true, "type": "string"},
					"error_message": {"nullable": true, "type": "string"},
					"created_at": {"type": "string", "description": "ISO 8601"},
					"started_at": {"nullable": true, "type": "string"},
					"completed_at": {"nullable": true, "type": "string"},
					"requested_by_user_id": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]},
					"audit_log_reason": {"nullable": true, "type": "string"},
					"jet_stream_lane": {"nullable": true, "type": "string"},
					"jet_stream_seq": {"nullable": true, "type": "string"},
					"attempts": {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991},
					"max_attempts": {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991},
					"run_at": {"nullable": true, "type": "string"},
					"cancel_requested": {"type": "boolean"},
					"context_link": {"nullable": true, "type": "string"},
					"payload": {"nullable": true, "description": "JSON-encoded original payload", "type": "string"},
					"result": {"nullable": true, "description": "JSON-encoded result, if any", "type": "string"}
				},
				"required": [
					"job_id",
					"task_type",
					"status",
					"progress_current",
					"progress_total",
					"progress_message",
					"error_message",
					"created_at",
					"started_at",
					"completed_at",
					"requested_by_user_id",
					"audit_log_reason",
					"jet_stream_lane",
					"jet_stream_seq",
					"attempts",
					"max_attempts",
					"run_at",
					"cancel_requested",
					"context_link",
					"payload",
					"result"
				],
				"additionalProperties": false
			},
			"AdminOperatorPassCertificateReissueReasonSchema": {
				"description": "Why a new copy of an Operator certificate page is issued",
				"x-enumNames": ["NAME_CHANGE", "CORRECTION", "OBJECTION"],
				"x-enumDescriptions": [
					"The holder changed their name, offered under section 3 of the Operator Pass terms",
					"A mistake on our side, fixed under section 6 of the Operator Pass terms",
					"The person named on the page objected and the objection succeeded, so the name on every earlier copy and the earlier PDF files are erased"
				],
				"enum": ["name_change", "correction", "objection"],
				"type": "string"
			},
			"OperatorPassCertificateNameType": {
				"type": "string",
				"minLength": 1,
				"maxLength": 384,
				"pattern": "^[^\\r\\n]*$",
				"description": "Name printed on one page of the Operator certificate, 1 to 48 characters without line breaks. A character is a grapheme cluster, counted after Unicode NFC normalization"
			},
			"OperatorPassCurrencySchema": {
				"type": "string",
				"enum": ["USD", "EUR", "BRL", "DKK", "INR", "NOK", "PLN", "SEK", "TRY"],
				"description": "Operator Pass price currency"
			},
			"OperatorPassPurchaseStatusSchema": {
				"description": "Operator Pass purchase status",
				"x-enumNames": [
					"PENDING",
					"COMPLETED",
					"WITHDRAWN",
					"REFUNDED",
					"DISPUTED",
					"DISPUTE_LOST",
					"DUPLICATE_REFUNDED"
				],
				"x-enumDescriptions": [
					"Checkout was started and the payment has not settled",
					"Paid, and the passes were delivered",
					"The buyer withdrew and the payment was refunded",
					"The payment was refunded",
					"A payment dispute is open and the passes are paused",
					"A payment dispute returned the money to the buyer",
					"The account had lost the pass for good and the payment was refunded"
				],
				"enum": ["pending", "completed", "withdrawn", "refunded", "disputed", "dispute_lost", "duplicate_refunded"],
				"type": "string"
			},
			"AdminOperatorPassWithdrawalChannelSchema": {
				"description": "How the buyer sent a withdrawal outside the withdraw button",
				"x-enumNames": ["FORM", "EMAIL", "SUPPORT", "OTHER"],
				"x-enumDescriptions": [
					"The withdrawal form in section 7.2 of the Operator Pass terms",
					"An email to support",
					"Another support channel",
					"Any other clear statement"
				],
				"enum": ["form", "email", "support", "other"],
				"type": "string"
			},
			"AdminOperatorPassReleaseCandidateResponse": {
				"type": "object",
				"properties": {
					"user_id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"name": {"type": "string"},
					"delivered_at": {
						"nullable": true,
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					}
				},
				"required": ["user_id", "name", "delivered_at"],
				"additionalProperties": false
			},
			"AdminOperatorPassStoredReleaseResponse": {
				"type": "object",
				"properties": {
					"year": {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991},
					"tag": {"type": "string"},
					"released_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"published_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"published_by": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"cutoff_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"names": {"type": "array", "items": {"type": "string"}},
					"erased_names": {
						"type": "array",
						"items": {"type": "string"},
						"description": "Names erased after publication"
					}
				},
				"required": [
					"year",
					"tag",
					"released_at",
					"published_at",
					"published_by",
					"cutoff_at",
					"names",
					"erased_names"
				],
				"additionalProperties": false
			},
			"AdminOperatorPassWallAsOfEntryResponse": {
				"type": "object",
				"properties": {
					"user_id": {
						"nullable": true,
						"description": "The account, null for a deleted holder",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"name": {"type": "string"},
					"avatar_url": {
						"nullable": true,
						"description": "Admin route to the private avatar copy, null for the default or a deleted holder",
						"type": "string"
					},
					"count": {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991},
					"tier": {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991},
					"first_pass_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"deleted": {
						"type": "boolean",
						"description": "Whether the holder was deleted, shown as a neutral placeholder"
					}
				},
				"required": ["user_id", "name", "avatar_url", "count", "tier", "first_pass_at", "deleted"],
				"additionalProperties": false
			},
			"AdminPaymentDisputeReviewBlockerSchema": {
				"description": "Why the terms rule out finding the dispute unjustified",
				"x-enumNames": [
					"EXEMPT_REASON",
					"DURING_WITHDRAWAL",
					"WITHDRAWN",
					"REFUNDED_BEFORE_DISPUTE",
					"PERKS_NOT_PROVIDED",
					"PERKS_REMOVED",
					"BEFORE_TERMS_EFFECTIVE"
				],
				"x-enumDescriptions": [
					"The dispute reason is fraudulent, unrecognized, debit_not_authorized, duplicate, credit_not_processed, product_not_received or product_unacceptable",
					"The buyer disputed while the withdrawal right was live",
					"The buyer withdrew from the purchase",
					"The payment was refunded before the dispute",
					"What the payment bought, or a working gift code, was never provided",
					"The Operator Pass perks were removed under section 8 on or before the dispute date",
					"A Plutonium payment or its dispute came before the terms that allow closing an account for a dispute took effect"
				],
				"enum": [
					"exempt_reason",
					"during_withdrawal",
					"withdrawn",
					"refunded_before_dispute",
					"perks_not_provided",
					"perks_removed",
					"before_terms_effective"
				],
				"type": "string"
			},
			"AdminPaymentDisputeReviewStatusSchema": {
				"description": "Payment dispute review status",
				"x-enumNames": ["OPEN", "JUSTIFIED", "UNJUSTIFIED"],
				"x-enumDescriptions": [
					"Waiting for a person to review it",
					"Found justified, no action against the account",
					"Found unjustified, the account was warned and, if the dispute ends with the money returned, is closed for Plutonium or barred from the Operator Pass"
				],
				"enum": ["open", "justified", "unjustified"],
				"type": "string"
			},
			"AdminPaymentDisputeProductSchema": {
				"description": "Product the disputed payment was for",
				"x-enumNames": ["OPERATOR_PASS", "PLUTONIUM"],
				"x-enumDescriptions": [
					"An Operator Pass purchase or gift, under section 9 of the Operator Pass terms",
					"A Plutonium subscription, purchase or gift, under section 4.4 of the terms of service"
				],
				"enum": ["operator_pass", "plutonium"],
				"type": "string"
			},
			"ReportType": {
				"description": "The type of entity being reported",
				"type": "integer",
				"enum": [0, 1, 2],
				"format": "int32",
				"x-enumNames": ["MESSAGE", "USER", "GUILD"],
				"x-enumDescriptions": ["Report of a message", "Report of a user", "Report of a guild"]
			},
			"ReportStatus": {
				"description": "The status of the report",
				"type": "integer",
				"enum": [0, 1],
				"format": "int32",
				"x-enumNames": ["PENDING", "RESOLVED"],
				"x-enumDescriptions": ["Report is pending review", "Report has been resolved"]
			},
			"AdminSsoIdentityResponse": {
				"type": "object",
				"properties": {
					"provider_id": {
						"type": "string",
						"description": "The provider the identity belongs to: the issuer URL, or the authorization URL when no issuer is set"
					},
					"subject": {
						"type": "string",
						"description": "The provider subject (`sub` claim) bound to the account, exactly as the provider sent it"
					},
					"user_id": {
						"description": "The account the subject is bound to",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"claimed_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "ISO 8601 timestamp when the subject was bound to the account"
					}
				},
				"required": ["provider_id", "subject", "user_id", "claimed_at"],
				"additionalProperties": false
			},
			"UserAdminResponseSchema": {
				"type": "object",
				"properties": {
					"id": {"$ref": "#/components/schemas/SnowflakeStringType"},
					"username": {"type": "string"},
					"discriminator": {"$ref": "#/components/schemas/Int32Type"},
					"global_name": {"nullable": true, "type": "string"},
					"bot": {"type": "boolean"},
					"system": {"type": "boolean"},
					"flags": {"allOf": [{"$ref": "#/components/schemas/UserFlags"}]},
					"premium_flags": {"allOf": [{"$ref": "#/components/schemas/PremiumFlags"}]},
					"avatar": {"nullable": true, "type": "string"},
					"banner": {"nullable": true, "type": "string"},
					"bio": {"nullable": true, "type": "string"},
					"pronouns": {"nullable": true, "type": "string"},
					"accent_color": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
					"email": {"nullable": true, "type": "string"},
					"email_verified": {"type": "boolean"},
					"email_bounced": {"type": "boolean"},
					"date_of_birth": {"nullable": true, "type": "string"},
					"locale": {"nullable": true, "type": "string"},
					"premium_type": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
					"premium_since": {"nullable": true, "type": "string"},
					"premium_until": {"nullable": true, "type": "string"},
					"premium_grace_ends_at": {"nullable": true, "type": "string"},
					"premium_lifetime_sequence": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/Int32Type"}]},
					"profile_badges": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminProfileBadgeResponse"},
						"description": "Every badge the account qualifies for in display order, including ones hidden from the public"
					},
					"temp_banned_until": {"nullable": true, "type": "string"},
					"pending_deletion_at": {"nullable": true, "type": "string"},
					"pending_bulk_message_deletion_at": {"nullable": true, "type": "string"},
					"deletion_reason_code": {"nullable": true, "allOf": [{"$ref": "#/components/schemas/DeletionReasonCode"}]},
					"deletion_public_reason": {
						"nullable": true,
						"description": "Public reason of a deletion scheduled before enforcement decisions existed. No longer written",
						"type": "string"
					},
					"deletion_audit_log_reason": {
						"nullable": true,
						"description": "Private reason recorded with the pending deletion, null without the audit log view permission",
						"type": "string"
					},
					"deletion_scheduled_by": {
						"nullable": true,
						"description": "ID of the account that scheduled the pending deletion, null when it was not recorded",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"deletion_scheduled_at": {
						"nullable": true,
						"description": "ISO 8601 timestamp when the pending deletion was scheduled",
						"type": "string"
					},
					"enforcement_decision_id": {
						"nullable": true,
						"description": "The enforcement decision behind the current suspension or closure, null when none owns it",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"acls": {"maxItems": 118, "type": "array", "items": {"type": "string"}},
					"traits": {"maxItems": 100, "type": "array", "items": {"type": "string"}},
					"badge_ids": {"allOf": [{"$ref": "#/components/schemas/CustomBadgeIdListResponse"}]},
					"has_totp": {"type": "boolean"},
					"has_password": {"type": "boolean", "description": "Whether the account has a password"},
					"claimed": {"type": "boolean", "description": "Whether the account can be signed in to from another device"},
					"account_tier": {"allOf": [{"$ref": "#/components/schemas/AccountTierSchema"}]},
					"date_of_birth_required": {
						"type": "boolean",
						"description": "Whether the account still has to enter its date of birth, which clients ask for before anything else"
					},
					"authenticator_types": {"maxItems": 10, "type": "array", "items": {"$ref": "#/components/schemas/Int32Type"}},
					"last_active_at": {"nullable": true, "type": "string"},
					"last_active_ip": {"nullable": true, "type": "string"},
					"last_active_ip_reverse": {"nullable": true, "type": "string"},
					"last_active_location": {"nullable": true, "type": "string"}
				},
				"required": [
					"id",
					"username",
					"discriminator",
					"global_name",
					"bot",
					"system",
					"flags",
					"premium_flags",
					"avatar",
					"banner",
					"bio",
					"pronouns",
					"accent_color",
					"email",
					"email_verified",
					"email_bounced",
					"date_of_birth",
					"locale",
					"premium_type",
					"premium_since",
					"premium_until",
					"premium_grace_ends_at",
					"premium_lifetime_sequence",
					"profile_badges",
					"temp_banned_until",
					"pending_deletion_at",
					"pending_bulk_message_deletion_at",
					"deletion_reason_code",
					"deletion_public_reason",
					"deletion_audit_log_reason",
					"deletion_scheduled_by",
					"deletion_scheduled_at",
					"enforcement_decision_id",
					"acls",
					"traits",
					"badge_ids",
					"has_totp",
					"has_password",
					"claimed",
					"account_tier",
					"date_of_birth_required",
					"authenticator_types",
					"last_active_at",
					"last_active_ip",
					"last_active_ip_reverse",
					"last_active_location"
				],
				"additionalProperties": false
			},
			"AccountTierSchema": {
				"description": "How far the account has got with setting up a way to sign in",
				"x-enumNames": ["UNCLAIMED", "UNVERIFIED", "VERIFIED"],
				"x-enumDescriptions": [
					"The account has no way to sign in from another device yet",
					"The account has an email address that is not confirmed yet",
					"The account has finished setting up and can use everything"
				],
				"enum": ["unclaimed", "unverified", "verified"],
				"type": "string"
			},
			"DeletionReasonCode": {
				"description": "Reason the account was scheduled for deletion",
				"type": "integer",
				"enum": [
					1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
					31, 32, 33, 34
				],
				"format": "int32",
				"x-enumNames": [
					"USER_REQUESTED",
					"OTHER",
					"SPAM",
					"CHEATING_OR_EXPLOITATION",
					"COORDINATED_RAIDING",
					"AUTOMATION_OR_SELFBOT",
					"NONCONSENSUAL_SEXUAL_CONTENT",
					"SCAM_OR_SOCIAL_ENGINEERING",
					"CHILD_SEXUAL_CONTENT",
					"PRIVACY_VIOLATION_OR_DOXXING",
					"HARASSMENT_OR_BULLYING",
					"PAYMENT_FRAUD",
					"CHILD_SAFETY_VIOLATION",
					"BILLING_DISPUTE_OR_ABUSE",
					"UNSOLICITED_EXPLICIT_CONTENT",
					"GRAPHIC_VIOLENCE",
					"BAN_EVASION",
					"TOKEN_OR_CREDENTIAL_SCAM",
					"INACTIVITY",
					"HATE_SPEECH_OR_EXTREMIST_CONTENT",
					"MALICIOUS_LINKS_OR_MALWARE",
					"IMPERSONATION_OR_FAKE_IDENTITY",
					"THREATS_OR_VIOLENT_SPEECH",
					"VIOLENT_EXTREMISM",
					"SELF_HARM_PROMOTION",
					"SEXUAL_CONTENT_PLACEMENT",
					"ILLEGAL_GOODS_OR_ACTIVITY",
					"HARMFUL_DECEPTION",
					"REPORTING_ABUSE",
					"UNDERAGE_ACCOUNT",
					"COPYRIGHT",
					"BELOW_MINIMUM_AGE",
					"UNCLAIMED_ACCOUNT_ABANDONED",
					"OPERATOR_PASS_PAYMENT_DISPUTE"
				]
			},
			"AdminProfileBadgeResponse": {
				"type": "object",
				"properties": {
					"key": {
						"type": "string",
						"description": "Stable identity of the badge. It equals kind for built-in badges and is custom:{id} for custom badges, so use it as the list key"
					},
					"kind": {
						"type": "string",
						"description": "Badge type. Known values: staff, partner, bug_hunter, operator_pass, visionary, visionary_number, plutonium, custom, and premium on self-hosted instances. Clients must render unknown values from the other fields."
					},
					"label": {
						"type": "string",
						"description": "Full badge description, localized for the viewer. Use it as the tooltip, and as alt text when there is no caption"
					},
					"asset": {
						"nullable": true,
						"description": "Badge image hash. The image is served at {static_cdn}/badges/{asset}.webp. Null for text badges and for badges with asset_url",
						"allOf": [{"$ref": "#/components/schemas/HexString16Type"}]
					},
					"asset_url": {
						"nullable": true,
						"description": "Absolute image URL for a badge whose image is not a static badge hash, such as a custom badge. Null otherwise",
						"type": "string"
					},
					"small_asset": {
						"description": "Image hash drawn for 20 pixels and smaller, served like asset. Use it instead of asset at those sizes. Absent when asset reads well small",
						"allOf": [{"$ref": "#/components/schemas/HexString16Type"}]
					},
					"aspect_ratio": {
						"nullable": true,
						"description": "Image width divided by its height. Render the image at the badge height and this many times as wide. Null for square badges",
						"type": "number",
						"minimum": 0,
						"exclusiveMinimum": true
					},
					"caption": {
						"nullable": true,
						"description": "Short text for the badge, such as #42. A badge with an image uses it as alt text, and a badge without one shows it as text. Null when the label covers it",
						"type": "string"
					},
					"href": {
						"nullable": true,
						"description": "Absolute URL to open when the badge is clicked, or null",
						"type": "string"
					},
					"count": {
						"description": "How many passes the badge stands for, from 2. The badge art already carries the number, so clients never draw it on top. Absent below 2 and when the holder hides the number from other people",
						"nullable": true,
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991
					},
					"accessible_label": {
						"description": "Label for screen readers with the full count, used instead of label when present",
						"nullable": true,
						"type": "string"
					},
					"details": {
						"description": "Content for the richer vertical tooltip, null or absent when label is the whole tooltip",
						"nullable": true,
						"type": "object",
						"properties": {
							"title": {"type": "string", "description": "First line of the tooltip under the larger badge art"},
							"lines": {"type": "array", "items": {"type": "string"}, "description": "Further tooltip lines, in order"}
						},
						"required": ["title", "lines"],
						"additionalProperties": false
					},
					"quote": {
						"description": "The quote from the holder's Operators' wall listing, plain text to show in straight double quotes after the other tooltip lines and never parse as markup. Absent while the wall does not show it",
						"nullable": true,
						"type": "string"
					},
					"suppressed": {
						"type": "boolean",
						"description": "True when the public profile does not show this badge, because of a privacy setting or account state"
					}
				},
				"required": ["key", "kind", "label", "asset", "asset_url", "aspect_ratio", "caption", "href", "suppressed"],
				"additionalProperties": false
			},
			"PremiumFlags": {
				"type": "integer",
				"minimum": 0,
				"maximum": 2147483647,
				"description": "User premium-related flags (32-bit)",
				"format": "int32",
				"x-bitflagValues": [
					{"name": "DISCRIMINATOR", "value": "1", "description": "User has a premium discriminator"},
					{"name": "BADGE_MASKED", "value": "4", "description": "User has masked their premium badge"},
					{
						"name": "BADGE_TIMESTAMP_HIDDEN",
						"value": "8",
						"description": "User has hidden their premium badge timestamp"
					},
					{"name": "PERKS_SANITIZED", "value": "32", "description": "User premium perks are sanitized"},
					{"name": "PURCHASE_DISABLED", "value": "64", "description": "Premium purchase is disabled for this user"},
					{"name": "ENABLED_OVERRIDE", "value": "128", "description": "Premium status is enabled via override"},
					{"name": "PERKS_DISABLED", "value": "256", "description": "User has temporarily disabled premium perks"},
					{
						"name": "OPERATOR_PASS_BADGE_TIMESTAMP_HIDDEN",
						"value": "2048",
						"description": "User has hidden when they first got the Operator Pass"
					},
					{
						"name": "OPERATOR_PASS_BADGE_COUNT_HIDDEN",
						"value": "4096",
						"description": "User has hidden how many Operator Passes they hold"
					},
					{
						"name": "OPERATORS_CHANNEL_HIDDEN",
						"value": "8192",
						"description": "User turned off the Fluxer Labs roles that open #operators"
					}
				]
			},
			"HexString16Type": {"type": "string", "pattern": "^[a-f0-9]{16}$"},
			"UsernameType": {"type": "string"},
			"NetworkBlockRequest": {
				"type": "object",
				"properties": {
					"ips": {
						"minItems": 1,
						"maxItems": 20,
						"type": "array",
						"items": {"type": "string"},
						"description": "Addresses the account used in the last 30 days. An address on which another account that is not suspended or closed was last active is refused"
					},
					"days": {
						"default": 90,
						"description": "How many days the blocks last. Ending the decision or deleting the account removes them sooner. Defaults to 90",
						"type": "integer",
						"minimum": 1,
						"maximum": 365
					}
				},
				"required": ["ips"],
				"description": "Block networks the account used. Only with a permanent suspension or a closure for a broken rule. Requires BAN_IP_ADD and USER_VIEW_IP"
			},
			"SkippedNetworkBlock": {
				"type": "object",
				"properties": {
					"ip": {"type": "string"},
					"reason": {
						"type": "string",
						"enum": ["exempt", "special_purpose", "already_blocked"],
						"description": "Exempt addresses and special-purpose ranges such as private, shared carrier and documentation ranges are never blocked. An address that is already blocked permanently or by another decision is left as it is"
					}
				},
				"required": ["ip", "reason"],
				"additionalProperties": false
			},
			"ModerationBasis": {
				"oneOf": [
					{
						"type": "object",
						"properties": {
							"type": {"type": "string", "enum": ["enforcement"]},
							"decision": {"allOf": [{"$ref": "#/components/schemas/EnforcementDecisionInput"}]}
						},
						"required": ["type", "decision"],
						"description": "A rule was broken. Records an enforcement decision and sends its notice"
					},
					{
						"type": "object",
						"properties": {"type": {"type": "string", "enum": ["holder_request"]}},
						"required": ["type"],
						"description": "The account holder or community owner asked"
					},
					{
						"type": "object",
						"properties": {"type": {"type": "string", "enum": ["housekeeping"]}},
						"required": ["type"],
						"description": "Nobody's conduct is involved, such as inactivity or cleanup"
					}
				],
				"description": "Why the action is taken"
			},
			"AdminOperatorPassVisionaryActivationResponse": {
				"type": "object",
				"properties": {
					"visionary_since": {
						"nullable": true,
						"description": "The date the pass shows, copied at turn-on",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"visionary_sequence": {
						"nullable": true,
						"description": "The Visionary number at turn-on",
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991
					},
					"activated_at": {
						"nullable": true,
						"description": "When the account turned the pass on, null before",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"terms_version": {
						"nullable": true,
						"description": "The Operator Pass terms version the account accepted",
						"type": "string"
					},
					"terms_box_text": {
						"nullable": true,
						"description": "The terms box text as shown, cleared on account deletion",
						"type": "string"
					},
					"age_confirmed_at": {
						"nullable": true,
						"description": "When the account ticked the age box",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"pass_id": {"nullable": true, "description": "The pass, visionary:<user_id>:1", "type": "string"},
					"certificate_number": {
						"nullable": true,
						"description": "Number of the certificate page",
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991
					},
					"ended_at": {
						"nullable": true,
						"description": "When the pass ended",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"end_reason": {"nullable": true, "description": "visionary_ended or deletion", "type": "string"}
				},
				"required": [
					"visionary_since",
					"visionary_sequence",
					"activated_at",
					"terms_version",
					"terms_box_text",
					"age_confirmed_at",
					"pass_id",
					"certificate_number",
					"ended_at",
					"end_reason"
				],
				"additionalProperties": false
			},
			"AdminOperatorPassWallEventResponse": {
				"type": "object",
				"properties": {
					"occurred_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "When it happened"
					},
					"kind": {"allOf": [{"$ref": "#/components/schemas/AdminOperatorPassWallEventKindSchema"}]},
					"name": {"nullable": true, "description": "The name involved", "type": "string"},
					"reason": {"nullable": true, "description": "The reason code of a decline", "type": "string"},
					"cause": {
						"nullable": true,
						"description": "Why a name came down: withdrawal, refund, dispute, removal (benefits removed under section 8), hidden (staff hid the listing for now), deletion, holder_request (the holder left the wall), pause or passed_on",
						"type": "string"
					},
					"purchase_id": {"nullable": true, "description": "The purchase that was delivered", "type": "string"},
					"release_year": {
						"nullable": true,
						"description": "The list year involved",
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991
					},
					"release_tag": {"nullable": true, "description": "The release tag involved", "type": "string"},
					"actor_id": {
						"nullable": true,
						"description": "Who did it, the holder or a staff member, null for the system",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"pass_count": {
						"nullable": true,
						"description": "The displayed count after a change. Older events recorded held passes.",
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991
					},
					"first_pass_at": {
						"description": "The earliest qualifying delivery for this count. Older events do not include this date.",
						"nullable": true,
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					}
				},
				"required": [
					"occurred_at",
					"kind",
					"name",
					"reason",
					"cause",
					"purchase_id",
					"release_year",
					"release_tag",
					"actor_id",
					"pass_count"
				],
				"additionalProperties": false
			},
			"AdminOperatorPassOfferResponse": {
				"type": "object",
				"properties": {
					"id": {"type": "string", "description": "ID of the offer"},
					"pass_id": {"type": "string", "description": "ID of the pass on offer"},
					"status": {"type": "string", "description": "pending, accepted, completed, declined, withdrawn or cancelled"},
					"sender_id": {
						"description": "Who passes the pass on",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"recipient_id": {
						"description": "Who gets the pass",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"created_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "When the offer was made"
					},
					"accepted_at": {
						"nullable": true,
						"description": "When the recipient accepted",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"ended_at": {
						"nullable": true,
						"description": "When the offer completed or ended",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"terms_version": {
						"nullable": true,
						"description": "Version of the terms the recipient accepted",
						"type": "string"
					}
				},
				"required": [
					"id",
					"pass_id",
					"status",
					"sender_id",
					"recipient_id",
					"created_at",
					"accepted_at",
					"ended_at",
					"terms_version"
				],
				"additionalProperties": false
			},
			"AdminOperatorPassUnitResponse": {
				"type": "object",
				"properties": {
					"id": {"type": "string", "description": "ID of the pass"},
					"purchase_id": {
						"nullable": true,
						"description": "The purchase that paid for the pass, null for a staff grant",
						"type": "string"
					},
					"buyer_id": {
						"nullable": true,
						"description": "Who paid for the pass",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"holder_id": {
						"description": "Who holds the pass, or held it last",
						"allOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}]
					},
					"source": {"type": "string", "description": "purchase, transfer or admin"},
					"status": {"type": "string", "description": "held, withdrawn or revoked"},
					"transferable": {"type": "boolean", "description": "Whether the holder can pass it on"},
					"delivered_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "When the pass reached the current holder"
					},
					"first_delivered_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "When the pass was first delivered"
					},
					"paused_at": {
						"nullable": true,
						"description": "When an open payment dispute paused it",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"ended_at": {
						"nullable": true,
						"description": "When the pass ended",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
					},
					"end_reason": {"nullable": true, "description": "Why the pass ended", "type": "string"},
					"withdrawal_country": {
						"nullable": true,
						"description": "Country whose withdrawal right applies",
						"type": "string"
					},
					"withdrawal_days": {
						"nullable": true,
						"description": "Days of that withdrawal right",
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991
					},
					"events": {
						"type": "array",
						"items": {"$ref": "#/components/schemas/AdminOperatorPassUnitEventResponse"},
						"description": "Append-only history of the pass, oldest first"
					}
				},
				"required": [
					"id",
					"purchase_id",
					"buyer_id",
					"holder_id",
					"source",
					"status",
					"transferable",
					"delivered_at",
					"first_delivered_at",
					"paused_at",
					"ended_at",
					"end_reason",
					"withdrawal_country",
					"withdrawal_days",
					"events"
				],
				"additionalProperties": false
			},
			"AdminOperatorPassRemovalHistoryEntryResponse": {
				"type": "object",
				"properties": {
					"removed_at": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
						"description": "When the perks were removed"
					},
					"removed_until": {
						"nullable": true,
						"description": "When a limited removal was set to end, null when permanent",
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:

File truncated at 1 MB.