Skip to content

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

TypeScript fluxerfluxerapp

chore(api): regenerate the openapi spec

Hampus90c498163f72
diff --git a/fluxer_api/src/api/openapi/openapi.json b/fluxer_api/src/api/openapi/openapi.json
index 424f23b4d..0a27c1391 100644
--- a/fluxer_api/src/api/openapi/openapi.json
+++ b/fluxer_api/src/api/openapi/openapi.json
@@ -209,6 +209,102 @@
}
}
},
+ "/auth/email-code/send": {
+ "post": {
+ "operationId": "send_email_code",
+ "summary": "Send a sign-in or sign-up code",
+ "tags": ["Auth"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailCodeSendResponse"}}}
+ },
+ "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": "Emails a 6-digit code for the address behind an identify ticket. The code signs in to an existing account without a password or creates a new one. An account with a password answers PASSWORD_SIGN_IN_REQUIRED and gets no email. Sign-ups always need a solved captcha challenge (X-Captcha-Token), and sign-ins need one after several codes for the same address. A bounced address answers the same and gets no email. On a new self-hosted instance it fails with SETUP_TOKEN_REQUIRED until the first admin account exists.",
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailCodeSendRequest"}}}
+ }
+ }
+ },
+ "/auth/email-code/verify": {
+ "post": {
+ "operationId": "verify_email_code",
+ "summary": "Finish signing in or signing up with a code",
+ "tags": ["Auth"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailCodeVerifyResponse"}}}
+ },
+ "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": "Checks the emailed code. For an existing account without a password this signs in, or returns an MFA ticket when the account has two-factor authentication. An account with a password answers PASSWORD_SIGN_IN_REQUIRED. When the code confirms an address that was not confirmed yet, it also ends every other session of the account, forgets its authorized IPs and revokes its OAuth2 grants. For a new address this creates the account with a confirmed email and signs in. Each code allows 5 tries. After many wrong codes for one address, or across the instance, it needs a solved captcha challenge (X-Captcha-Token).",
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailCodeVerifyRequest"}}}
+ }
+ }
+ },
"/auth/email-revert": {
"post": {
"operationId": "revert_email_change",
@@ -668,6 +764,54 @@
}
}
},
+ "/auth/identify": {
+ "post": {
+ "operationId": "identify_account",
+ "summary": "Start signing in or signing up",
+ "tags": ["Auth"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/IdentifyResponse"}}}
+ },
+ "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": "Looks up whether an account uses this email address (or username on username instances) and returns a ticket for the next step. It says whether the account exists and whether it signs in with its password or with an email code. Answers take at least 300 ms. Heavy use from one network or for one address asks for a solved captcha challenge (X-Captcha-Token) whose cost grows with use.",
+ "requestBody": {
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/IdentifyRequest"}}}
+ }
+ }
+ },
"/auth/ip-authorization/poll": {
"get": {
"operationId": "poll_ip_authorization",
@@ -1006,7 +1150,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Invalidate the current authentication token and end the session. The auth token in the Authorization header will no longer be valid. A bot token has no session to end, so the call answers 204 and the token stays valid.",
+ "description": "Invalidate the current authentication token and end the session. The auth token in the Authorization header will no longer be valid. A bot token has no session to end, so the call answers 204 and the token stays valid. Ending the last session of an account that cannot sign in again, because it has no email, password or passkey, schedules that account for deletion after 24 hours.",
"security": [{"botToken": []}, {"sessionToken": []}]
}
},
@@ -1490,22 +1634,22 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Create a new user account. Email instances take an email and password, and the account must verify its email before logging in. Username instances take a username and password, and an email sent by an older client is discarded. Requires a solved captcha challenge (X-Captcha-Token).",
+ "description": "Create a new user account. A body without an email and a password creates an account without an email from global_name: the username is derived from the display name and given a tag, and the account signs in on this device only until it is claimed (an email on email instances, a password on username instances). On email instances an email sent here is stored on the account and waits for confirmation. An address stored on another account, confirmed or not, answers EMAIL_ALREADY_IN_USE. Username instances take a username and password, and an email sent by an older client is discarded. The date of birth can be left out where the instance collects it, and the app then asks for it before anything else. Requires a solved captcha challenge (X-Captcha-Token), which costs more after recent sign-ups without an email from the same network.",
"requestBody": {
"required": false,
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RegisterRequest"}}}
}
}
},
- "/auth/reset": {
+ "/auth/register/handoff": {
"post": {
- "operationId": "reset_password",
- "summary": "Reset password",
+ "operationId": "create_account_handoff",
+ "summary": "Start an account from the website",
"tags": ["Auth"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AuthLoginResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AccountHandoffResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -1538,140 +1682,27 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Complete the password reset flow using the token from the reset email. Returns authentication token after successful password reset.",
+ "description": "Checks the display name and returns a single-use code that the web app redeems within 15 minutes. No account exists yet: the web app creates it on redeem, when the person submits the step whose notice says that creating the account accepts the terms of service. Only the website server may call it, and it passes the visitor IP. Requires a solved captcha challenge (X-Captcha-Token) whose cost grows with recent sign-ups. On a new self-hosted instance it fails with SETUP_TOKEN_REQUIRED until the first admin account exists.",
"requestBody": {
"required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ResetPasswordRequest"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AccountHandoffRequest"}}}
}
}
},
- "/auth/reset/{token}": {
+ "/auth/register/handoff/challenge": {
"get": {
- "operationId": "validate_reset_password_token",
- "summary": "Validate reset password token",
+ "operationId": "get_account_handoff_challenge",
+ "summary": "Get the captcha challenge for creating an account from the website",
"tags": ["Auth"],
"responses": {
"200": {
"description": "Success",
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/ValidateResetPasswordTokenResponse"}}
- }
- },
- "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": "Check whether a password reset token is valid and unexpired before allowing the user to submit a new password. Does not consume the token.",
- "parameters": [
- {
- "name": "token",
- "in": "path",
- "required": true,
- "schema": {"description": "Password reset token from email", "type": "string"},
- "description": "Password reset token from email"
- }
- ]
- }
- },
- "/auth/sessions": {
- "get": {
- "operationId": "list_auth_sessions",
- "summary": "List auth sessions",
- "tags": ["Auth"],
- "responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AuthSessionsResponse"}}}
- },
- "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"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CaptchaChallengeResponse"}}}
},
- "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 active authentication sessions for the current user. Requires authentication.",
- "security": [{"sessionToken": []}]
- }
- },
- "/auth/sessions/logout": {
- "post": {
- "operationId": "logout_all_sessions",
- "summary": "Logout all sessions",
- "tags": ["Auth"],
- "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"}}},
@@ -1699,25 +1730,18 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Invalidate all active authentication sessions for the current user. Requires sudo mode verification for security.",
- "security": [{"sessionToken": []}],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/LogoutAuthSessionsWithVerificationRequest"}}
- }
- }
+ "description": "Returns the captcha challenge that creating an account without an email from the website needs right now for this visitor. Only the website server may call it."
}
},
- "/auth/sso/complete": {
+ "/auth/register/handoff/redeem": {
"post": {
- "operationId": "complete_sso",
- "summary": "Complete SSO",
+ "operationId": "redeem_account_handoff",
+ "summary": "Create the account started on the website",
"tags": ["Auth"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SsoCompleteResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AuthRegisterSuccessResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -1750,22 +1774,22 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Complete the SSO authentication flow with the authorization code from the SSO provider. Returns authentication token and user information.",
+ "description": "Redeems the code from create account handoff together with the nonce whose hash was sent then, creates the account with the agreement and display name given here (the display name sent with the handoff when none is given), and starts a session for the client that redeems it. The web app and the native apps can redeem it. Where the instance collects dates of birth, the account then sets one through the date of birth step. The code works once, and a wrong nonce also uses it up. A missing agreement or a display name that is not allowed answers before the code is used. It never ends or replaces another session.",
"requestBody": {
"required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SsoCompleteRequest"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AccountHandoffRedeemRequest"}}}
}
}
},
- "/auth/sso/start": {
+ "/auth/reset": {
"post": {
- "operationId": "start_sso",
- "summary": "Start SSO",
+ "operationId": "reset_password",
+ "summary": "Reset password",
"tags": ["Auth"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SsoStartResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AuthLoginResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -1798,22 +1822,24 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Initiate a new Single Sign-On (SSO) session. Returns a session URL to be completed with SSO provider credentials.",
+ "description": "Complete the password reset flow using the token from the reset email. Returns authentication token after successful password reset.",
"requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SsoStartRequest"}}}
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ResetPasswordRequest"}}}
}
}
},
- "/auth/sso/status": {
+ "/auth/reset/{token}": {
"get": {
- "operationId": "get_sso_status",
- "summary": "Get SSO status",
+ "operationId": "validate_reset_password_token",
+ "summary": "Validate reset password token",
"tags": ["Auth"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SsoStatusResponse"}}}
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/ValidateResetPasswordTokenResponse"}}
+ }
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -1846,23 +1872,40 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Retrieve the current status of the SSO authentication session without authentication required."
+ "description": "Check whether a password reset token is valid and unexpired before allowing the user to submit a new password. Does not consume the token.",
+ "parameters": [
+ {
+ "name": "token",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "Password reset token from email", "type": "string"},
+ "description": "Password reset token from email"
+ }
+ ]
}
},
- "/auth/username-availability": {
+ "/auth/sessions": {
"get": {
- "operationId": "get_username_availability",
- "summary": "Check username availability",
+ "operationId": "list_auth_sessions",
+ "summary": "List auth sessions",
"tags": ["Auth"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UsernameAvailabilityResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AuthSessionsResponse"}}}
},
"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"}}},
@@ -1890,35 +1933,29 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Check whether a username is free for a new account. Only available on instances where people sign in with a username or where usernames are unique. Usernames are compared without regard to case, and bots do not hold names. An invalid or reserved username returns a validation error.",
- "parameters": [
- {
- "name": "username",
- "in": "query",
- "required": true,
- "schema": {
- "description": "Username to check (1-32 characters)",
- "$ref": "#/components/schemas/UsernameType"
- },
- "description": "Username to check (1-32 characters)"
- }
- ]
+ "description": "Retrieve all active authentication sessions for the current user. Requires authentication.",
+ "security": [{"sessionToken": []}]
}
},
- "/auth/username-suggestions": {
+ "/auth/sessions/logout": {
"post": {
- "operationId": "get_username_suggestions",
- "summary": "Get username suggestions",
+ "operationId": "logout_all_sessions",
+ "summary": "Logout all sessions",
"tags": ["Auth"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UsernameSuggestionsResponse"}}}
- },
+ "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"}}},
@@ -1946,20 +1983,26 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Generate username suggestions based on a provided global name for new account registration.",
+ "description": "Invalidate all active authentication sessions for the current user. Requires sudo mode verification for security.",
+ "security": [{"sessionToken": []}],
"requestBody": {
"required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UsernameSuggestionsRequest"}}}
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/LogoutAuthSessionsWithVerificationRequest"}}
+ }
}
}
},
- "/auth/verify": {
+ "/auth/sign-in-link": {
"post": {
- "operationId": "verify_email",
- "summary": "Verify email",
+ "operationId": "redeem_sign_in_link",
+ "summary": "Redeem sign-in link",
"tags": ["Auth"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AuthTokenWithUserIdResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -1991,32 +2034,27 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Verify user email address using the code sent during registration. Email verification is required before the account becomes fully usable.",
+ "description": "Sign in with the token from a one-time sign-in link that the instance operator created for an admin account. Authorizes the IP address of the request and returns an authentication token. The token works once and expires after 15 minutes.",
"requestBody": {
"required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VerifyEmailRequest"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SignInLinkRequest"}}}
}
}
},
- "/auth/verify/resend": {
+ "/auth/sso/complete": {
"post": {
- "operationId": "resend_verification_email",
- "summary": "Resend verification email",
+ "operationId": "complete_sso",
+ "summary": "Complete SSO",
"tags": ["Auth"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SsoCompleteResponse"}}}
+ },
"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"}}},
@@ -2044,19 +2082,22 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Request a new email verification code to be sent. Requires authentication. Use this if the original verification email was lost or expired.",
- "security": [{"sessionToken": []}]
+ "description": "Complete the SSO authentication flow with the authorization code from the SSO provider. Returns authentication token and user information.",
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SsoCompleteRequest"}}}
+ }
}
},
- "/auth/webauthn/authenticate": {
+ "/auth/sso/start": {
"post": {
- "operationId": "authenticate_with_webauthn",
- "summary": "Authenticate with WebAuthn",
+ "operationId": "start_sso",
+ "summary": "Start SSO",
"tags": ["Auth"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AuthTokenWithUserIdResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SsoStartResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -2089,24 +2130,22 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Complete passwordless login using WebAuthn (biometrics or security key). Returns authentication token on success.",
+ "description": "Initiate a new Single Sign-On (SSO) session. Returns a session URL to be completed with SSO provider credentials.",
"requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebAuthnAuthenticateRequest"}}}
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SsoStartRequest"}}}
}
}
},
- "/auth/webauthn/authentication-options": {
- "post": {
- "operationId": "get_webauthn_authentication_options",
- "summary": "Get WebAuthn authentication options",
+ "/auth/sso/status": {
+ "get": {
+ "operationId": "get_sso_status",
+ "summary": "Get SSO status",
"tags": ["Auth"],
"responses": {
"200": {
"description": "Success",
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/WebAuthnAuthenticationOptionsResponse"}}
- }
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SsoStatusResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -2139,31 +2178,23 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Retrieve WebAuthn authentication challenge and options for passwordless login with biometrics or security keys."
+ "description": "Retrieve the current status of the SSO authentication session without authentication required."
}
},
- "/channels/messages/bulk": {
- "post": {
- "operationId": "bulk_list_channel_messages",
- "summary": "List messages from multiple channels",
- "tags": ["Channels", "Messages"],
+ "/auth/username-availability": {
+ "get": {
+ "operationId": "get_username_availability",
+ "summary": "Check username availability",
+ "tags": ["Auth"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BulkMessageFetchResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UsernameAvailabilityResponse"}}}
},
"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"}}},
@@ -2191,36 +2222,35 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Fetches bounded message windows from multiple channels in one request. Each entry uses the same pagination semantics as the single-channel message list endpoint.",
- "security": [{"sessionToken": []}],
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BulkMessageFetchRequest"}}}
- }
+ "description": "Check whether a username is free for a new account. Only available on instances where people sign in with a username or where usernames are unique. Usernames are compared without regard to case, and bots do not hold names. An invalid or reserved username returns a validation error.",
+ "parameters": [
+ {
+ "name": "username",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "description": "Username to check (1-32 characters)",
+ "$ref": "#/components/schemas/UsernameType"
+ },
+ "description": "Username to check (1-32 characters)"
+ }
+ ]
}
},
- "/channels/{channel_id}": {
- "get": {
- "operationId": "get_channel",
- "summary": "Fetch a channel",
- "tags": ["Channels"],
+ "/auth/username-suggestions": {
+ "post": {
+ "operationId": "get_username_suggestions",
+ "summary": "Get username suggestions",
+ "tags": ["Auth"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UsernameSuggestionsResponse"}}}
},
"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"}}},
@@ -2248,39 +2278,24 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Retrieves the channel object including metadata, member list, and settings. Requires the user to be a member of the channel with view permissions.",
- "security": [{"botToken": []}, {"sessionToken": []}],
- "parameters": [
- {
- "name": "channel_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the channel"
- }
- ]
- },
- "patch": {
- "operationId": "update_channel",
- "summary": "Update channel settings",
- "tags": ["Channels"],
+ "description": "Generate username suggestions based on a provided global name for new account registration.",
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UsernameSuggestionsRequest"}}}
+ }
+ }
+ },
+ "/auth/verify": {
+ "post": {
+ "operationId": "verify_email",
+ "summary": "Verify email",
+ "tags": ["Auth"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelResponse"}}}
- },
+ "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"}}},
@@ -2308,26 +2323,18 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Modifies channel properties such as name, description, topic, nsfw flag, and slowmode. Requires management permissions in the channel.",
- "security": [{"botToken": []}, {"sessionToken": []}],
- "parameters": [
- {
- "name": "channel_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the channel"
- }
- ],
+ "description": "Verify user email address using the code sent during registration. Email verification is required before the account becomes fully usable.",
"requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelUpdateRequestBody"}}}
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VerifyEmailRequest"}}}
}
- },
- "delete": {
- "operationId": "delete_channel",
- "summary": "Delete a channel",
- "tags": ["Channels"],
+ }
+ },
+ "/auth/verify/resend": {
+ "post": {
+ "operationId": "resend_verification_email",
+ "summary": "Resend verification email",
+ "tags": ["Auth"],
"responses": {
"204": {"description": "No Content"},
"400": {
@@ -2369,69 +2376,74 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Permanently removes a channel and all its content. Only server administrators or the channel owner can delete channels. When `delete_messages` is set on a group DM, the caller's authored messages in the group are deleted before leaving and sudo mode verification is required.",
- "security": [{"botToken": []}, {"sessionToken": []}],
- "parameters": [
- {
- "name": "channel_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the channel"
+ "description": "Request a new email verification code to be sent. Requires authentication. Use this if the original verification email was lost or expired.",
+ "security": [{"sessionToken": []}]
+ }
+ },
+ "/auth/webauthn/authenticate": {
+ "post": {
+ "operationId": "authenticate_with_webauthn",
+ "summary": "Authenticate with WebAuthn",
+ "tags": ["Auth"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AuthTokenWithUserIdResponse"}}}
},
- {
- "name": "silent",
- "in": "query",
- "required": false,
- "schema": {
- "description": "Whether to suppress the system message when leaving a group DM",
- "default": "false",
- "type": "string"
- },
- "description": "Whether to suppress the system message when leaving a group DM"
+ "400": {
+ "description": "Bad Request - The request was malformed or contained invalid data",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
},
- {
- "name": "delete_messages",
- "in": "query",
- "required": false,
- "schema": {
- "description": "When leaving a group DM, also delete all messages the caller has sent in the channel",
- "default": "false",
- "type": "string"
- },
- "description": "When leaving a group DM, also delete all messages the caller has sent in the channel"
+ "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": "Complete passwordless login using WebAuthn (biometrics or security key). Returns authentication token on success.",
"requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SudoVerificationSchema"}}}
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebAuthnAuthenticateRequest"}}}
}
}
},
- "/channels/{channel_id}/attachments": {
+ "/auth/webauthn/authentication-options": {
"post": {
- "operationId": "request_presigned_message_attachment_uploads",
- "summary": "Request presigned attachment upload URLs",
- "tags": ["Channels", "Messages"],
+ "operationId": "get_webauthn_authentication_options",
+ "summary": "Get WebAuthn authentication options",
+ "tags": ["Auth"],
"responses": {
"200": {
"description": "Success",
"content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/PresignedAttachmentUploadResponse"}}
+ "application/json": {"schema": {"$ref": "#/components/schemas/WebAuthnAuthenticationOptionsResponse"}}
}
},
"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"}}},
@@ -2459,34 +2471,18 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Returns presigned upload URLs for message attachments in the target channel. Small files (<=10MB) return a singlepart PUT URL; larger files return a multipart plan (upload_id + per-part URLs) that the client should complete via the matching /attachments/complete endpoint. Requires message send and attachment permissions in guild channels.",
- "security": [{"botToken": []}, {"sessionToken": []}],
- "parameters": [
- {
- "name": "channel_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the channel"
- }
- ],
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PresignedAttachmentUploadRequest"}}}
- }
+ "description": "Retrieve WebAuthn authentication challenge and options for passwordless login with biometrics or security keys."
}
},
- "/channels/{channel_id}/attachments/complete": {
+ "/channels/messages/bulk": {
"post": {
- "operationId": "complete_multipart_message_attachment_uploads",
- "summary": "Finalize multipart attachment uploads",
+ "operationId": "bulk_list_channel_messages",
+ "summary": "List messages from multiple channels",
"tags": ["Channels", "Messages"],
"responses": {
"200": {
"description": "Success",
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/CompleteMultipartAttachmentUploadResponse"}}
- }
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BulkMessageFetchResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -2527,34 +2523,23 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Finalizes one or more multipart attachment uploads. Called after all chunks have been PUT to their presigned URLs. The server lists the uploaded parts and issues S3 CompleteMultipartUpload. Returns the finalized upload keys, which can be referenced in a subsequent message create request.",
- "security": [{"botToken": []}, {"sessionToken": []}],
- "parameters": [
- {
- "name": "channel_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the channel"
- }
- ],
+ "description": "Fetches bounded message windows from multiple channels in one request. Each entry uses the same pagination semantics as the single-channel message list endpoint.",
+ "security": [{"sessionToken": []}],
"requestBody": {
"required": true,
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/CompleteMultipartAttachmentUploadRequest"}}
- }
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BulkMessageFetchRequest"}}}
}
}
},
- "/channels/{channel_id}/call": {
+ "/channels/{channel_id}": {
"get": {
- "operationId": "get_call_eligibility",
- "summary": "Get call eligibility status",
+ "operationId": "get_channel",
+ "summary": "Fetch a channel",
"tags": ["Channels"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CallEligibilityResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -2595,8 +2580,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Checks whether a call can be initiated in the channel and if there is an active call. Returns ringable status and silent mode flag.",
- "security": [{"sessionToken": []}],
+ "description": "Retrieves the channel object including metadata, member list, and settings. Requires the user to be a member of the channel with view permissions.",
+ "security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
"name": "channel_id",
@@ -2608,11 +2593,14 @@
]
},
"patch": {
- "operationId": "update_call_region",
- "summary": "Update call region",
+ "operationId": "update_channel",
+ "summary": "Update channel settings",
"tags": ["Channels"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -2652,8 +2640,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Changes the voice server region for an active call to optimise latency and connection quality.",
- "security": [{"sessionToken": []}],
+ "description": "Modifies channel properties such as name, description, topic, nsfw flag, and slowmode. Requires management permissions in the channel.",
+ "security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
"name": "channel_id",
@@ -2665,14 +2653,12 @@
],
"requestBody": {
"required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CallUpdateBodySchema"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelUpdateRequestBody"}}}
}
- }
- },
- "/channels/{channel_id}/call/end": {
- "post": {
- "operationId": "end_call",
- "summary": "End call session",
+ },
+ "delete": {
+ "operationId": "delete_channel",
+ "summary": "Delete a channel",
"tags": ["Channels"],
"responses": {
"204": {"description": "No Content"},
@@ -2715,8 +2701,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Terminates an active voice call in the channel. Records the call end state for all participants.",
- "security": [{"sessionToken": []}],
+ "description": "Permanently removes a channel and all its content. Only server administrators or the channel owner can delete channels. When `delete_messages` is set on a group DM, the caller's authored messages in the group are deleted before leaving and sudo mode verification is required.",
+ "security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
"name": "channel_id",
@@ -2724,17 +2710,48 @@
"required": true,
"schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the channel"
+ },
+ {
+ "name": "silent",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "Whether to suppress the system message when leaving a group DM",
+ "default": "false",
+ "type": "string"
+ },
+ "description": "Whether to suppress the system message when leaving a group DM"
+ },
+ {
+ "name": "delete_messages",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "When leaving a group DM, also delete all messages the caller has sent in the channel",
+ "default": "false",
+ "type": "string"
+ },
+ "description": "When leaving a group DM, also delete all messages the caller has sent in the channel"
}
- ]
+ ],
+ "requestBody": {
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SudoVerificationSchema"}}}
+ }
}
},
- "/channels/{channel_id}/call/ring": {
+ "/channels/{channel_id}/attachments": {
"post": {
- "operationId": "ring_call_recipients",
- "summary": "Ring call recipients",
- "tags": ["Channels"],
+ "operationId": "request_presigned_message_attachment_uploads",
+ "summary": "Request presigned attachment upload URLs",
+ "tags": ["Channels", "Messages"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/PresignedAttachmentUploadResponse"}}
+ }
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -2774,8 +2791,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Sends ringing notifications to specified users in a call. If no recipients are specified, rings all channel members.",
- "security": [{"sessionToken": []}],
+ "description": "Returns presigned upload URLs for message attachments in the target channel. Small files (<=10MB) return a singlepart PUT URL; larger files return a multipart plan (upload_id + per-part URLs) that the client should complete via the matching /attachments/complete endpoint. Requires message send and attachment permissions in guild channels.",
+ "security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
"name": "channel_id",
@@ -2786,18 +2803,23 @@
}
],
"requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CallRingBodySchema"}}}
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PresignedAttachmentUploadRequest"}}}
}
}
},
- "/channels/{channel_id}/call/stop-ringing": {
+ "/channels/{channel_id}/attachments/complete": {
"post": {
- "operationId": "stop_ringing_call_recipients",
- "summary": "Stop ringing call recipients",
- "tags": ["Channels"],
+ "operationId": "complete_multipart_message_attachment_uploads",
+ "summary": "Finalize multipart attachment uploads",
+ "tags": ["Channels", "Messages"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/CompleteMultipartAttachmentUploadResponse"}}
+ }
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -2837,8 +2859,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Stops ringing notifications for specified users in a call. Allows callers to stop notifying users who have declined or not responded.",
- "security": [{"sessionToken": []}],
+ "description": "Finalizes one or more multipart attachment uploads. Called after all chunks have been PUT to their presigned URLs. The server lists the uploaded parts and issues S3 CompleteMultipartUpload. Returns the finalized upload keys, which can be referenced in a subsequent message create request.",
+ "security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
"name": "channel_id",
@@ -2849,20 +2871,22 @@
}
],
"requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CallRingBodySchema"}}}
+ "required": true,
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/CompleteMultipartAttachmentUploadRequest"}}
+ }
}
}
},
- "/channels/{channel_id}/follower-stats": {
+ "/channels/{channel_id}/call": {
"get": {
- "operationId": "get_channel_follower_stats",
- "summary": "Get announcement channel follower stats",
+ "operationId": "get_call_eligibility",
+ "summary": "Get call eligibility status",
"tags": ["Channels"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelFollowerStatsResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CallEligibilityResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -2903,8 +2927,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Returns how many channels and distinct guilds follow an announcement channel. Requires View Channel on the announcement channel.",
- "security": [{"botToken": []}, {"sessionToken": []}],
+ "description": "Checks whether a call can be initiated in the channel and if there is an active call. Returns ringable status and silent mode flag.",
+ "security": [{"sessionToken": []}],
"parameters": [
{
"name": "channel_id",
@@ -2914,18 +2938,13 @@
"description": "The ID of the channel"
}
]
- }
- },
- "/channels/{channel_id}/followers": {
- "post": {
- "operationId": "follow_channel",
- "summary": "Follow an announcement channel",
+ },
+ "patch": {
+ "operationId": "update_call_region",
+ "summary": "Update call region",
"tags": ["Channels"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/FollowedChannelResponse"}}}
- },
+ "204": {"description": "No Content"},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -2965,8 +2984,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Follows an announcement channel into a text channel. Creates a channel follower webhook in the target channel that receives every message published in the announcement channel. Requires Manage Webhooks in the target channel and View Channel on the announcement channel.",
- "security": [{"botToken": []}, {"sessionToken": []}],
+ "description": "Changes the voice server region for an active call to optimise latency and connection quality.",
+ "security": [{"sessionToken": []}],
"parameters": [
{
"name": "channel_id",
@@ -2977,21 +2996,77 @@
}
],
"requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelFollowRequest"}}}
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CallUpdateBodySchema"}}}
}
}
},
- "/channels/{channel_id}/invites": {
+ "/channels/{channel_id}/call/end": {
"post": {
- "operationId": "create_channel_invite",
- "summary": "Create channel invite",
- "tags": ["Invites"],
+ "operationId": "end_call",
+ "summary": "End call session",
+ "tags": ["Channels"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/InviteMetadataResponseSchema"}}}
+ "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": "Terminates an active voice call in the channel. Records the call end state for all participants.",
+ "security": [{"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "channel_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the channel"
+ }
+ ]
+ }
+ },
+ "/channels/{channel_id}/call/ring": {
+ "post": {
+ "operationId": "ring_call_recipients",
+ "summary": "Ring call recipients",
+ "tags": ["Channels"],
+ "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"}}}
@@ -3031,8 +3106,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Creates a new invite for the specified channel with optional parameters such as maximum age, maximum uses, and temporary membership settings. The authenticated user must have permission to create invites for the channel. Returns the created invite with full metadata including usage statistics.",
- "security": [{"botToken": []}, {"sessionToken": []}],
+ "description": "Sends ringing notifications to specified users in a call. If no recipients are specified, rings all channel members.",
+ "security": [{"sessionToken": []}],
"parameters": [
{
"name": "channel_id",
@@ -3044,18 +3119,17 @@
],
"requestBody": {
"required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelInviteCreateRequest"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CallRingBodySchema"}}}
}
- },
- "get": {
- "operationId": "list_channel_invites",
- "summary": "List channel invites",
- "tags": ["Invites"],
+ }
+ },
+ "/channels/{channel_id}/call/stop-ringing": {
+ "post": {
+ "operationId": "stop_ringing_call_recipients",
+ "summary": "Stop ringing call recipients",
+ "tags": ["Channels"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/InviteMetadataListResponse"}}}
- },
+ "204": {"description": "No Content"},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -3095,8 +3169,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Retrieves all currently active invites for the specified channel, including invite codes, creators, expiration times, and usage statistics. The authenticated user must have permission to manage invites for the channel. Returns an array of invite metadata objects.",
- "security": [{"botToken": []}, {"sessionToken": []}],
+ "description": "Stops ringing notifications for specified users in a call. Allows callers to stop notifying users who have declined or not responded.",
+ "security": [{"sessionToken": []}],
"parameters": [
{
"name": "channel_id",
@@ -3105,18 +3179,22 @@
"schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the channel"
}
- ]
+ ],
+ "requestBody": {
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CallRingBodySchema"}}}
+ }
}
},
- "/channels/{channel_id}/messages": {
+ "/channels/{channel_id}/follower-stats": {
"get": {
- "operationId": "list_messages",
- "summary": "List messages in a channel",
- "tags": ["Channels", "Messages"],
+ "operationId": "get_channel_follower_stats",
+ "summary": "Get announcement channel follower stats",
+ "tags": ["Channels"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageListResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelFollowerStatsResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -3157,7 +3235,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Retrieves a paginated list of messages from a channel. User must have permission to view the channel. Supports pagination via limit, before, after, and around parameters. Returns messages in reverse chronological order (newest first).",
+ "description": "Returns how many channels and distinct guilds follow an announcement channel. Requires View Channel on the announcement channel.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -3166,58 +3244,19 @@
"required": true,
"schema": {"description": "The ID of the channel", "$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": "Get messages before this message ID",
- "$ref": "#/components/schemas/SnowflakeType"
- },
- "description": "Get messages before this message ID"
- },
- {
- "name": "after",
- "in": "query",
- "required": false,
- "schema": {
- "description": "Get messages after this message ID",
- "$ref": "#/components/schemas/SnowflakeType"
- },
- "description": "Get messages after this message ID"
- },
- {
- "name": "around",
- "in": "query",
- "required": false,
- "schema": {
- "description": "Get messages around this message ID",
- "$ref": "#/components/schemas/SnowflakeType"
- },
- "description": "Get messages around this message ID"
}
]
- },
+ }
+ },
+ "/channels/{channel_id}/followers": {
"post": {
- "operationId": "send_message",
- "summary": "Send a message",
- "tags": ["Channels", "Messages"],
+ "operationId": "follow_channel",
+ "summary": "Follow an announcement channel",
+ "tags": ["Channels"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageResponseSchema"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/FollowedChannelResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -3258,7 +3297,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Sends a new message to a channel. Requires permission to send messages in the target channel. Supports text content, embeds, attachments (multipart), and mentions. Returns the created message object with full details.",
+ "description": "Follows an announcement channel into a text channel. Creates a channel follower webhook in the target channel that receives every message published in the announcement channel. Requires Manage Webhooks in the target channel and View Channel on the announcement channel.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -3271,20 +3310,20 @@
],
"requestBody": {
"required": true,
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/MessageRequestSchema"}},
- "multipart/form-data": {"schema": {"$ref": "#/components/schemas/MessageRequestSchema"}}
- }
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelFollowRequest"}}}
}
}
},
- "/channels/{channel_id}/messages/ack": {
- "delete": {
- "operationId": "clear_channel_read_state",
- "summary": "Clear channel read state",
- "tags": ["Channels", "Messages"],
+ "/channels/{channel_id}/invites": {
+ "post": {
+ "operationId": "create_channel_invite",
+ "summary": "Create channel invite",
+ "tags": ["Invites"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/InviteMetadataResponseSchema"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -3324,8 +3363,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Deprecated. Has no effect on the read state. Returns 204 No Content.",
- "deprecated": true,
+ "description": "Creates a new invite for the specified channel with optional parameters such as maximum age, maximum uses, and temporary membership settings. The authenticated user must have permission to create invites for the channel. Returns the created invite with full metadata including usage statistics.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -3335,16 +3373,21 @@
"schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the channel"
}
- ]
- }
- },
- "/channels/{channel_id}/messages/bulk-delete": {
- "post": {
- "operationId": "bulk_delete_messages",
- "summary": "Bulk delete messages",
- "tags": ["Channels", "Messages"],
+ ],
+ "requestBody": {
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelInviteCreateRequest"}}}
+ }
+ },
+ "get": {
+ "operationId": "list_channel_invites",
+ "summary": "List channel invites",
+ "tags": ["Invites"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/InviteMetadataListResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -3384,7 +3427,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Deletes multiple messages at once. Requires moderation or admin permissions. Commonly used for message cleanup. Messages from different authors can be deleted together. Returns 204 No Content on success.",
+ "description": "Retrieves all currently active invites for the specified channel, including invite codes, creators, expiration times, and usage statistics. The authenticated user must have permission to manage invites for the channel. Returns an array of invite metadata objects.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -3394,20 +3437,19 @@
"schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the channel"
}
- ],
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BulkDeleteMessagesRequest"}}}
- }
+ ]
}
},
- "/channels/{channel_id}/messages/bulk-delete-mine": {
- "post": {
- "operationId": "bulk_delete_my_messages_in_channel",
- "summary": "Bulk delete my messages in channel",
+ "/channels/{channel_id}/messages": {
+ "get": {
+ "operationId": "list_messages",
+ "summary": "List messages in a channel",
"tags": ["Channels", "Messages"],
"responses": {
- "202": {"description": "Success"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageListResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -3447,7 +3489,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Deletes every message the caller has authored in the specified channel and in its threads, active and archived. When the channel is a thread, only that thread is cleared. Requires sudo mode verification. Returns 202 Accepted once matching messages have been removed.",
+ "description": "Retrieves a paginated list of messages from a channel. User must have permission to view the channel. Supports pagination via limit, before, after, and around parameters. Returns messages in reverse chronological order (newest first).",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -3456,23 +3498,58 @@
"required": true,
"schema": {"description": "The ID of the channel", "$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": "Get messages before this message ID",
+ "$ref": "#/components/schemas/SnowflakeType"
+ },
+ "description": "Get messages before this message ID"
+ },
+ {
+ "name": "after",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "Get messages after this message ID",
+ "$ref": "#/components/schemas/SnowflakeType"
+ },
+ "description": "Get messages after this message ID"
+ },
+ {
+ "name": "around",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "Get messages around this message ID",
+ "$ref": "#/components/schemas/SnowflakeType"
+ },
+ "description": "Get messages around this message ID"
}
- ],
- "requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SudoVerificationSchema"}}}
- }
- }
- },
- "/channels/{channel_id}/messages/pins": {
- "get": {
- "operationId": "list_pinned_messages",
- "summary": "List pinned messages",
- "tags": ["Channels"],
+ ]
+ },
+ "post": {
+ "operationId": "send_message",
+ "summary": "Send a message",
+ "tags": ["Channels", "Messages"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelPinsResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageResponseSchema"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -3513,7 +3590,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Retrieves a paginated list of messages pinned in a channel. User must have permission to view the channel. Supports pagination via limit and before parameters. Returns pinned messages with their pin timestamps.",
+ "description": "Sends a new message to a channel. Requires permission to send messages in the target channel. Supports text content, embeds, attachments (multipart), and mentions. Returns the created message object with full details.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -3522,39 +3599,24 @@
"required": true,
"schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the channel"
- },
- {
- "name": "limit",
- "in": "query",
- "required": false,
- "schema": {
- "description": "Maximum number of pinned messages to return (1-50)",
- "type": "integer",
- "minimum": 1,
- "maximum": 50
- },
- "description": "Maximum number of pinned messages to return (1-50)"
- },
- {
- "name": "before",
- "in": "query",
- "required": false,
- "schema": {"description": "Get pinned messages before this timestamp", "type": "string"},
- "description": "Get pinned messages before this timestamp"
}
- ]
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/MessageRequestSchema"}},
+ "multipart/form-data": {"schema": {"$ref": "#/components/schemas/MessageRequestSchema"}}
+ }
+ }
}
},
- "/channels/{channel_id}/messages/purge": {
- "post": {
- "operationId": "purge_personal_notes_messages",
- "summary": "Purge all messages in personal notes",
+ "/channels/{channel_id}/messages/ack": {
+ "delete": {
+ "operationId": "clear_channel_read_state",
+ "summary": "Clear channel read state",
"tags": ["Channels", "Messages"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessagePurgeResponse"}}}
- },
+ "204": {"description": "No Content"},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -3594,7 +3656,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Deletes every message in the caller's personal notes channel. Only allowed on the authenticated user's DM_PERSONAL_NOTES channel. Returns the total number of deleted messages.",
+ "description": "Deprecated. Has no effect on the read state. Returns 204 No Content.",
+ "deprecated": true,
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -3607,16 +3670,13 @@
]
}
},
- "/channels/{channel_id}/messages/{message_id}": {
- "get": {
- "operationId": "get_message",
- "summary": "Fetch a message",
+ "/channels/{channel_id}/messages/bulk-delete": {
+ "post": {
+ "operationId": "bulk_delete_messages",
+ "summary": "Bulk delete messages",
"tags": ["Channels", "Messages"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageResponseSchema"}}}
- },
+ "204": {"description": "No Content"},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -3656,7 +3716,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Retrieves a specific message by ID. User must have permission to view the channel and the message must exist. Returns full message details including content, author, reactions, and attachments.",
+ "description": "Deletes multiple messages at once. Requires moderation or admin permissions. Commonly used for message cleanup. Messages from different authors can be deleted together. Returns 204 No Content on success.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -3665,25 +3725,21 @@
"required": true,
"schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the channel"
- },
- {
- "name": "message_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the message"
}
- ]
- },
- "patch": {
- "operationId": "edit_message",
- "summary": "Edit a message",
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BulkDeleteMessagesRequest"}}}
+ }
+ }
+ },
+ "/channels/{channel_id}/messages/bulk-delete-mine": {
+ "post": {
+ "operationId": "bulk_delete_my_messages_in_channel",
+ "summary": "Bulk delete my messages in channel",
"tags": ["Channels", "Messages"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageResponseSchema"}}}
- },
+ "202": {"description": "Success"},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -3723,7 +3779,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Updates an existing message. Only the message author can edit messages (or admins with proper permissions). Supports updating content, embeds, and attachments. Returns the updated message object. Maintains original message ID and timestamps.",
+ "description": "Deletes every message the caller has authored in the specified channel and in its threads, active and archived. When the channel is a thread, only that thread is cleared. Requires sudo mode verification. Returns 202 Accepted once matching messages have been removed.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -3732,29 +3788,24 @@
"required": true,
"schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the channel"
- },
- {
- "name": "message_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the message"
}
],
"requestBody": {
- "required": true,
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/MessageUpdateRequestSchema"}},
- "multipart/form-data": {"schema": {"$ref": "#/components/schemas/MessageUpdateRequestSchema"}}
- }
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SudoVerificationSchema"}}}
}
- },
- "delete": {
- "operationId": "delete_message",
- "summary": "Delete a message",
- "tags": ["Channels", "Messages"],
+ }
+ },
+ "/channels/{channel_id}/messages/pins": {
+ "get": {
+ "operationId": "list_pinned_messages",
+ "summary": "List pinned messages",
+ "tags": ["Channels"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChannelPinsResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -3794,7 +3845,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Deletes a message permanently. Only the message author can delete messages (or admins/moderators with proper permissions). Cannot be undone. Returns 204 No Content on success.",
+ "description": "Retrieves a paginated list of messages pinned in a channel. User must have permission to view the channel. Supports pagination via limit and before parameters. Returns pinned messages with their pin timestamps.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -3805,22 +3856,37 @@
"description": "The ID of the channel"
},
{
- "name": "message_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the message"
+ "name": "limit",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "Maximum number of pinned messages to return (1-50)",
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 50
+ },
+ "description": "Maximum number of pinned messages to return (1-50)"
+ },
+ {
+ "name": "before",
+ "in": "query",
+ "required": false,
+ "schema": {"description": "Get pinned messages before this timestamp", "type": "string"},
+ "description": "Get pinned messages before this timestamp"
}
]
}
},
- "/channels/{channel_id}/messages/{message_id}/ack": {
+ "/channels/{channel_id}/messages/purge": {
"post": {
- "operationId": "acknowledge_message",
- "summary": "Acknowledge a message",
+ "operationId": "purge_personal_notes_messages",
+ "summary": "Purge all messages in personal notes",
"tags": ["Channels", "Messages"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessagePurgeResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -3860,8 +3926,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Marks a message as read and records acknowledgement state. Only available for regular user accounts. Updates mention count if provided. Returns 204 No Content on success.",
- "security": [{"sessionToken": []}],
+ "description": "Deletes every message in the caller's personal notes channel. Only allowed on the authenticated user's DM_PERSONAL_NOTES channel. Returns the total number of deleted messages.",
+ "security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
"name": "channel_id",
@@ -3869,28 +3935,20 @@
"required": true,
"schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the channel"
- },
- {
- "name": "message_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the message"
}
- ],
- "requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageAckRequest"}}}
- }
+ ]
}
},
- "/channels/{channel_id}/messages/{message_id}/attachments/{attachment_id}": {
- "delete": {
- "operationId": "delete_message_attachment",
- "summary": "Delete a message attachment",
+ "/channels/{channel_id}/messages/{message_id}": {
+ "get": {
+ "operationId": "get_message",
+ "summary": "Fetch a message",
"tags": ["Channels", "Messages"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageResponseSchema"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -3930,7 +3988,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Removes a specific attachment from a message while keeping the message intact. Only the message author can remove attachments (or admins/moderators). Returns 204 No Content on success.",
+ "description": "Retrieves a specific message by ID. User must have permission to view the channel and the message must exist. Returns full message details including content, author, reactions, and attachments.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -3946,21 +4004,12 @@
"required": true,
"schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the message"
- },
- {
- "name": "attachment_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the attachment", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the attachment"
}
]
- }
- },
- "/channels/{channel_id}/messages/{message_id}/crosspost": {
- "post": {
- "operationId": "crosspost_message",
- "summary": "Publish a message to following channels",
+ },
+ "patch": {
+ "operationId": "edit_message",
+ "summary": "Edit a message",
"tags": ["Channels", "Messages"],
"responses": {
"200": {
@@ -4006,7 +4055,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Publishes a message in an announcement channel to every channel that follows it. The author needs Send Messages. Anyone else needs Send Messages and Manage Messages. Only default messages that are not replies, forwards or copies can be published, and each message can be published once. Copies are delivered asynchronously. Publishing is limited per channel (10 in a row, then one every 6 minutes) and per community (30 in a row, then one every 2 minutes). Returns the updated message with the CROSSPOSTED flag set.",
+ "description": "Updates an existing message. Only the message author can edit messages (or admins with proper permissions). Supports updating content, embeds, and attachments. Returns the updated message object. Maintains original message ID and timestamps.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -4023,19 +4072,21 @@
"schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the message"
}
- ]
- }
- },
- "/channels/{channel_id}/messages/{message_id}/crosspost-source": {
- "get": {
- "operationId": "get_message_crosspost_source",
- "summary": "Get the source community of a published message copy",
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/MessageUpdateRequestSchema"}},
+ "multipart/form-data": {"schema": {"$ref": "#/components/schemas/MessageUpdateRequestSchema"}}
+ }
+ }
+ },
+ "delete": {
+ "operationId": "delete_message",
+ "summary": "Delete a message",
"tags": ["Channels", "Messages"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CrosspostSourceResponse"}}}
- },
+ "204": {"description": "No Content"},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -4075,7 +4126,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Returns the public profile of the community a message copy was published from. Works on copies delivered to a following channel and on the system message posted when a channel starts following. Needs the same access as fetching the message. The response holds the community name, icon, banner, badge features, approximate counts and whether it can be joined through discovery.",
+ "description": "Deletes a message permanently. Only the message author can delete messages (or admins/moderators with proper permissions). Cannot be undone. Returns 204 No Content on success.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -4095,16 +4146,13 @@
]
}
},
- "/channels/{channel_id}/messages/{message_id}/memes": {
+ "/channels/{channel_id}/messages/{message_id}/ack": {
"post": {
- "operationId": "create_meme_from_message",
- "summary": "Create meme from message",
- "tags": ["Saved Media"],
+ "operationId": "acknowledge_message",
+ "summary": "Acknowledge a message",
+ "tags": ["Channels", "Messages"],
"responses": {
- "201": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/FavoriteMemeResponse"}}}
- },
+ "204": {"description": "No Content"},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -4144,7 +4192,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Saves a message attachment as a favorite meme.",
+ "description": "Marks a message as read and records acknowledgement state. Only available for regular user accounts. Updates mention count if provided. Returns 204 No Content on success.",
"security": [{"sessionToken": []}],
"parameters": [
{
@@ -4163,16 +4211,16 @@
}
],
"requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateFavoriteMemeBodySchema"}}}
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageAckRequest"}}}
}
}
},
- "/channels/{channel_id}/messages/{message_id}/reactions": {
+ "/channels/{channel_id}/messages/{message_id}/attachments/{attachment_id}": {
"delete": {
- "operationId": "remove_all_reactions",
- "summary": "Remove all reactions from message",
- "tags": ["Channels"],
+ "operationId": "delete_message_attachment",
+ "summary": "Delete a message attachment",
+ "tags": ["Channels", "Messages"],
"responses": {
"204": {"description": "No Content"},
"400": {
@@ -4214,7 +4262,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Removes all emoji reactions from a message, regardless of emoji type or user. All reactions are permanently deleted. Requires moderator or higher permissions. Returns 204 No Content on success.",
+ "description": "Removes a specific attachment from a message while keeping the message intact. Only the message author can remove attachments (or admins/moderators). Returns 204 No Content on success.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -4230,19 +4278,26 @@
"required": true,
"schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the message"
+ },
+ {
+ "name": "attachment_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the attachment", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the attachment"
}
]
}
},
- "/channels/{channel_id}/messages/{message_id}/reactions/{emoji}": {
- "get": {
- "operationId": "list_reaction_users",
- "summary": "List users who reacted with emoji",
- "tags": ["Channels"],
+ "/channels/{channel_id}/messages/{message_id}/crosspost": {
+ "post": {
+ "operationId": "crosspost_message",
+ "summary": "Publish a message to following channels",
+ "tags": ["Channels", "Messages"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReactionUsersListResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageResponseSchema"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -4283,7 +4338,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Retrieves a paginated list of users who reacted to a message with a specific emoji. Supports pagination via limit and after parameters. Returns user objects for each reaction.",
+ "description": "Publishes a message in an announcement channel to every channel that follows it. The author needs Send Messages. Anyone else needs Send Messages and Manage Messages. Only default messages that are not replies, forwards or copies can be published, and each message can be published once. Copies are delivered asynchronously. Publishing is limited per channel (10 in a row, then one every 6 minutes) and per community (30 in a row, then one every 2 minutes). Returns the updated message with the CROSSPOSTED flag set.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -4299,41 +4354,89 @@
"required": true,
"schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the message"
+ }
+ ]
+ }
+ },
+ "/channels/{channel_id}/messages/{message_id}/crosspost-source": {
+ "get": {
+ "operationId": "get_message_crosspost_source",
+ "summary": "Get the source community of a published message copy",
+ "tags": ["Channels", "Messages"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CrosspostSourceResponse"}}}
},
+ "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 public profile of the community a message copy was published from. Works on copies delivered to a following channel and on the system message posted when a channel starts following. Needs the same access as fetching the message. The response holds the community name, icon, banner, badge features, approximate counts and whether it can be joined through discovery.",
+ "security": [{"botToken": []}, {"sessionToken": []}],
+ "parameters": [
{
- "name": "emoji",
+ "name": "channel_id",
"in": "path",
"required": true,
- "schema": {"description": "The emoji identifier", "type": "string"},
- "description": "The emoji identifier"
- },
- {
- "name": "limit",
- "in": "query",
- "required": false,
- "schema": {
- "description": "Maximum number of users to return (1-100)",
- "type": "integer",
- "minimum": 1,
- "maximum": 100
- },
- "description": "Maximum number of users to return (1-100)"
+ "schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the channel"
},
{
- "name": "after",
- "in": "query",
- "required": false,
- "schema": {"description": "Get users after this user ID", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "Get users after this user ID"
+ "name": "message_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the message"
}
]
- },
- "delete": {
- "operationId": "remove_all_reactions_for_emoji",
- "summary": "Remove all reactions with emoji",
- "tags": ["Channels"],
+ }
+ },
+ "/channels/{channel_id}/messages/{message_id}/memes": {
+ "post": {
+ "operationId": "create_meme_from_message",
+ "summary": "Create meme from message",
+ "tags": ["Saved Media"],
"responses": {
- "204": {"description": "No Content"},
+ "201": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/FavoriteMemeResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -4373,8 +4476,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Removes all emoji reactions of a specific type from a message. All users' reactions with that emoji are deleted. Requires moderator or higher permissions. Returns 204 No Content on success.",
- "security": [{"botToken": []}, {"sessionToken": []}],
+ "description": "Saves a message attachment as a favorite meme.",
+ "security": [{"sessionToken": []}],
"parameters": [
{
"name": "channel_id",
@@ -4389,21 +4492,18 @@
"required": true,
"schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the message"
- },
- {
- "name": "emoji",
- "in": "path",
- "required": true,
- "schema": {"description": "The emoji identifier", "type": "string"},
- "description": "The emoji identifier"
}
- ]
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateFavoriteMemeBodySchema"}}}
+ }
}
},
- "/channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me": {
- "put": {
- "operationId": "add_reaction",
- "summary": "Add reaction to message",
+ "/channels/{channel_id}/messages/{message_id}/reactions": {
+ "delete": {
+ "operationId": "remove_all_reactions",
+ "summary": "Remove all reactions from message",
"tags": ["Channels"],
"responses": {
"204": {"description": "No Content"},
@@ -4446,7 +4546,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Adds an emoji reaction to a message. Each user can react once with each emoji. Cannot be used from unclaimed accounts outside personal notes. Returns 204 No Content on success.",
+ "description": "Removes all emoji reactions from a message, regardless of emoji type or user. All reactions are permanently deleted. Requires moderator or higher permissions. Returns 204 No Content on success.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -4462,29 +4562,20 @@
"required": true,
"schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the message"
- },
- {
- "name": "emoji",
- "in": "path",
- "required": true,
- "schema": {"description": "The emoji identifier", "type": "string"},
- "description": "The emoji identifier"
- },
- {
- "name": "session_id",
- "in": "query",
- "required": false,
- "schema": {"description": "The session ID for synchronization", "type": "string"},
- "description": "The session ID for synchronization"
}
]
- },
- "delete": {
- "operationId": "remove_own_reaction",
- "summary": "Remove own reaction from message",
+ }
+ },
+ "/channels/{channel_id}/messages/{message_id}/reactions/{emoji}": {
+ "get": {
+ "operationId": "list_reaction_users",
+ "summary": "List users who reacted with emoji",
"tags": ["Channels"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReactionUsersListResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -4524,7 +4615,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Removes your own emoji reaction from a message. Returns 204 No Content on success. Has no effect if you haven't reacted with that emoji.",
+ "description": "Retrieves a paginated list of users who reacted to a message with a specific emoji. Supports pagination via limit and after parameters. Returns user objects for each reaction.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -4549,25 +4640,32 @@
"description": "The emoji identifier"
},
{
- "name": "session_id",
+ "name": "limit",
"in": "query",
"required": false,
- "schema": {"description": "The session ID for synchronization", "type": "string"},
- "description": "The session ID for synchronization"
+ "schema": {
+ "description": "Maximum number of users to return (1-100)",
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100
+ },
+ "description": "Maximum number of users to return (1-100)"
+ },
+ {
+ "name": "after",
+ "in": "query",
+ "required": false,
+ "schema": {"description": "Get users after this user ID", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "Get users after this user ID"
}
]
- }
- },
- "/channels/{channel_id}/messages/{message_id}/reactions/{emoji}/users": {
- "get": {
- "operationId": "list_reaction_users_v2",
- "summary": "List users who reacted with emoji",
+ },
+ "delete": {
+ "operationId": "remove_all_reactions_for_emoji",
+ "summary": "Remove all reactions with emoji",
"tags": ["Channels"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReactionUsersPageResponse"}}}
- },
+ "204": {"description": "No Content"},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -4607,7 +4705,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Retrieves a paginated list of users who reacted to a message with a specific emoji. The response body includes pagination metadata, including the next cursor, so clients do not need to infer it from returned users.",
+ "description": "Removes all emoji reactions of a specific type from a message. All users' reactions with that emoji are deleted. Requires moderator or higher permissions. Returns 204 No Content on success.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -4630,33 +4728,14 @@
"required": true,
"schema": {"description": "The emoji identifier", "type": "string"},
"description": "The emoji identifier"
- },
- {
- "name": "limit",
- "in": "query",
- "required": false,
- "schema": {
- "description": "Maximum number of users to return (1-100)",
- "type": "integer",
- "minimum": 1,
- "maximum": 100
- },
- "description": "Maximum number of users to return (1-100)"
- },
- {
- "name": "after",
- "in": "query",
- "required": false,
- "schema": {"description": "Get users after this user ID", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "Get users after this user ID"
}
]
}
},
- "/channels/{channel_id}/messages/{message_id}/reactions/{emoji}/{target_id}": {
- "delete": {
- "operationId": "remove_reaction",
- "summary": "Remove reaction from message",
+ "/channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me": {
+ "put": {
+ "operationId": "add_reaction",
+ "summary": "Add reaction to message",
"tags": ["Channels"],
"responses": {
"204": {"description": "No Content"},
@@ -4699,7 +4778,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Removes a specific user's emoji reaction from a message. Requires moderator or higher permissions to remove reactions from other users. Returns 204 No Content on success.",
+ "description": "Adds an emoji reaction to a message. Each user can react once with each emoji. Outside personal notes, needs an account with a confirmed email address. Returns 204 No Content on success.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -4723,13 +4802,6 @@
"schema": {"description": "The emoji identifier", "type": "string"},
"description": "The emoji identifier"
},
- {
- "name": "target_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the target user", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the target user"
- },
{
"name": "session_id",
"in": "query",
@@ -4738,18 +4810,13 @@
"description": "The session ID for synchronization"
}
]
- }
- },
- "/channels/{channel_id}/messages/{message_id}/threads": {
- "post": {
- "operationId": "start_thread_from_message",
- "summary": "Start a thread from a message",
+ },
+ "delete": {
+ "operationId": "remove_own_reaction",
+ "summary": "Remove own reaction from message",
"tags": ["Channels"],
"responses": {
- "201": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThreadChannelResponse"}}}
- },
+ "204": {"description": "No Content"},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -4789,8 +4856,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Creates a public thread from an existing message in a text channel. The thread shares the ID of the message, so a message can start one thread.",
- "x-fluxer-experiment": "channel_threads",
+ "description": "Removes your own emoji reaction from a message. Returns 204 No Content on success. Has no effect if you haven't reacted with that emoji.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -4806,21 +4872,34 @@
"required": true,
"schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the message"
+ },
+ {
+ "name": "emoji",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The emoji identifier", "type": "string"},
+ "description": "The emoji identifier"
+ },
+ {
+ "name": "session_id",
+ "in": "query",
+ "required": false,
+ "schema": {"description": "The session ID for synchronization", "type": "string"},
+ "description": "The session ID for synchronization"
}
- ],
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StartThreadFromMessageRequest"}}}
- }
+ ]
}
},
- "/channels/{channel_id}/permissions/{overwrite_id}": {
- "put": {
- "operationId": "set_channel_permission_overwrite",
- "summary": "Set permission overwrite for channel",
+ "/channels/{channel_id}/messages/{message_id}/reactions/{emoji}/users": {
+ "get": {
+ "operationId": "list_reaction_users_v2",
+ "summary": "List users who reacted with emoji",
"tags": ["Channels"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReactionUsersPageResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -4860,7 +4939,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Creates or updates permission overrides for a role or user in the channel. Allows fine-grained control over who can view, send messages, or manage the channel.",
+ "description": "Retrieves a paginated list of users who reacted to a message with a specific emoji. The response body includes pagination metadata, including the next cursor, so clients do not need to infer it from returned users.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -4871,24 +4950,45 @@
"description": "The ID of the channel"
},
{
- "name": "overwrite_id",
+ "name": "message_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the message"
+ },
+ {
+ "name": "emoji",
"in": "path",
"required": true,
+ "schema": {"description": "The emoji identifier", "type": "string"},
+ "description": "The emoji identifier"
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "required": false,
"schema": {
- "description": "The ID of the permission overwrite",
- "$ref": "#/components/schemas/SnowflakeType"
+ "description": "Maximum number of users to return (1-100)",
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100
},
- "description": "The ID of the permission overwrite"
+ "description": "Maximum number of users to return (1-100)"
+ },
+ {
+ "name": "after",
+ "in": "query",
+ "required": false,
+ "schema": {"description": "Get users after this user ID", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "Get users after this user ID"
}
- ],
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PermissionOverwriteCreateRequest"}}}
- }
- },
+ ]
+ }
+ },
+ "/channels/{channel_id}/messages/{message_id}/reactions/{emoji}/{target_id}": {
"delete": {
- "operationId": "delete_channel_permission_overwrite",
- "summary": "Delete permission overwrite",
+ "operationId": "remove_reaction",
+ "summary": "Remove reaction from message",
"tags": ["Channels"],
"responses": {
"204": {"description": "No Content"},
@@ -4931,7 +5031,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Removes a permission override from a role or user in the channel, restoring default permissions. Requires channel management rights.",
+ "description": "Removes a specific user's emoji reaction from a message. Requires moderator or higher permissions to remove reactions from other users. Returns 204 No Content on success.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -4942,25 +5042,46 @@
"description": "The ID of the channel"
},
{
- "name": "overwrite_id",
+ "name": "message_id",
"in": "path",
"required": true,
- "schema": {
- "description": "The ID of the permission overwrite",
- "$ref": "#/components/schemas/SnowflakeType"
- },
- "description": "The ID of the permission overwrite"
+ "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the message"
+ },
+ {
+ "name": "emoji",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The emoji identifier", "type": "string"},
+ "description": "The emoji identifier"
+ },
+ {
+ "name": "target_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the target user", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the target user"
+ },
+ {
+ "name": "session_id",
+ "in": "query",
+ "required": false,
+ "schema": {"description": "The session ID for synchronization", "type": "string"},
+ "description": "The session ID for synchronization"
}
]
}
},
- "/channels/{channel_id}/pins/ack": {
+ "/channels/{channel_id}/messages/{message_id}/threads": {
"post": {
- "operationId": "acknowledge_pins",
- "summary": "Acknowledge new pin notifications",
+ "operationId": "start_thread_from_message",
+ "summary": "Start a thread from a message",
"tags": ["Channels"],
"responses": {
- "204": {"description": "No Content"},
+ "201": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThreadChannelResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -5000,7 +5121,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Marks all new pin notifications in a channel as acknowledged. Clears the notification badge for pinned messages. Returns 204 No Content on success.",
+ "description": "Creates a public thread from an existing message in a text channel. The thread shares the ID of the message, so a message can start one thread.",
+ "x-fluxer-experiment": "channel_threads",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -5009,14 +5131,25 @@
"required": true,
"schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the channel"
+ },
+ {
+ "name": "message_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the message"
}
- ]
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StartThreadFromMessageRequest"}}}
+ }
}
},
- "/channels/{channel_id}/pins/{message_id}": {
+ "/channels/{channel_id}/permissions/{overwrite_id}": {
"put": {
- "operationId": "pin_message",
- "summary": "Pin a message",
+ "operationId": "set_channel_permission_overwrite",
+ "summary": "Set permission overwrite for channel",
"tags": ["Channels"],
"responses": {
"204": {"description": "No Content"},
@@ -5059,7 +5192,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Pins a message to the channel. Requires permission to manage pins (typically moderator or higher). Pinned messages are highlighted and searchable. Returns 204 No Content on success.",
+ "description": "Creates or updates permission overrides for a role or user in the channel. Allows fine-grained control over who can view, send messages, or manage the channel.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -5070,17 +5203,24 @@
"description": "The ID of the channel"
},
{
- "name": "message_id",
+ "name": "overwrite_id",
"in": "path",
"required": true,
- "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the message"
+ "schema": {
+ "description": "The ID of the permission overwrite",
+ "$ref": "#/components/schemas/SnowflakeType"
+ },
+ "description": "The ID of the permission overwrite"
}
- ]
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PermissionOverwriteCreateRequest"}}}
+ }
},
"delete": {
- "operationId": "unpin_message",
- "summary": "Unpin a message",
+ "operationId": "delete_channel_permission_overwrite",
+ "summary": "Delete permission overwrite",
"tags": ["Channels"],
"responses": {
"204": {"description": "No Content"},
@@ -5123,7 +5263,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Unpins a message from the channel. Requires permission to manage pins. The message remains in the channel but is no longer highlighted. Returns 204 No Content on success.",
+ "description": "Removes a permission override from a role or user in the channel, restoring default permissions. Requires channel management rights.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -5134,25 +5274,25 @@
"description": "The ID of the channel"
},
{
- "name": "message_id",
+ "name": "overwrite_id",
"in": "path",
"required": true,
- "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the message"
+ "schema": {
+ "description": "The ID of the permission overwrite",
+ "$ref": "#/components/schemas/SnowflakeType"
+ },
+ "description": "The ID of the permission overwrite"
}
]
}
},
- "/channels/{channel_id}/post-data": {
+ "/channels/{channel_id}/pins/ack": {
"post": {
- "operationId": "get_channel_post_data",
- "summary": "Get forum post data",
+ "operationId": "acknowledge_pins",
+ "summary": "Acknowledge new pin notifications",
"tags": ["Channels"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThreadPostDataResponse"}}}
- },
+ "204": {"description": "No Content"},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -5192,8 +5332,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Returns the owner and first message of each requested post in a forum or media channel. Requires the read message history permission.",
- "x-fluxer-experiment": "channel_threads",
+ "description": "Marks all new pin notifications in a channel as acknowledged. Clears the notification badge for pinned messages. Returns 204 No Content on success.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -5203,17 +5342,210 @@
"schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the channel"
}
- ],
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThreadPostDataRequest"}}}
- }
+ ]
}
},
- "/channels/{channel_id}/recipients/{user_id}": {
+ "/channels/{channel_id}/pins/{message_id}": {
"put": {
- "operationId": "add_group_dm_recipient",
- "summary": "Add recipient to group DM",
+ "operationId": "pin_message",
+ "summary": "Pin a message",
+ "tags": ["Channels"],
+ "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": "Pins a message to the channel. Requires permission to manage pins (typically moderator or higher). Pinned messages are highlighted and searchable. Returns 204 No Content on success.",
+ "security": [{"botToken": []}, {"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "channel_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the channel"
+ },
+ {
+ "name": "message_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the message"
+ }
+ ]
+ },
+ "delete": {
+ "operationId": "unpin_message",
+ "summary": "Unpin a message",
+ "tags": ["Channels"],
+ "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": "Unpins a message from the channel. Requires permission to manage pins. The message remains in the channel but is no longer highlighted. Returns 204 No Content on success.",
+ "security": [{"botToken": []}, {"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "channel_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the channel"
+ },
+ {
+ "name": "message_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the message"
+ }
+ ]
+ }
+ },
+ "/channels/{channel_id}/post-data": {
+ "post": {
+ "operationId": "get_channel_post_data",
+ "summary": "Get forum post data",
+ "tags": ["Channels"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThreadPostDataResponse"}}}
+ },
+ "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 owner and first message of each requested post in a forum or media channel. Requires the read message history permission.",
+ "x-fluxer-experiment": "channel_threads",
+ "security": [{"botToken": []}, {"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "channel_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the channel"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThreadPostDataRequest"}}}
+ }
+ }
+ },
+ "/channels/{channel_id}/recipients/{user_id}": {
+ "put": {
+ "operationId": "add_group_dm_recipient",
+ "summary": "Add recipient to group DM",
"tags": ["Channels"],
"responses": {
"204": {"description": "No Content"},
@@ -7175,6 +7507,68 @@
]
}
},
+ "/discovery/guilds/{guild_id}/visit": {
+ "post": {
+ "operationId": "visit_discovery_guild",
+ "summary": "Visit a discoverable guild",
+ "tags": ["Discovery"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GuildVisitStartResponse"}}}
+ },
+ "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": "Opens a guild listed in discovery without joining it. Works like visiting through an invite, and answers with Unknown Guild when the guild is not listed.",
+ "security": [{"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "guild_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the guild", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the guild"
+ }
+ ]
+ }
+ },
"/donations/checkout": {
"post": {
"operationId": "create_donation_checkout",
@@ -8077,7 +8471,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Only claimed, email-verified non-bot users can create guilds. A self-hosted instance can restrict creation to admins and users granted the feature_guild_create limit.",
+ "description": "Only verified accounts that are not bots can create guilds. A self-hosted instance can restrict creation to admins and users granted the feature_guild_create limit.",
"security": [{"sessionToken": []}],
"requestBody": {
"required": true,
@@ -8134,7 +8528,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "User must be a member of the guild to access this endpoint. Requires guilds OAuth scope if using bearer token.",
+ "description": "User must be a member of the guild, or visiting it, to access this endpoint. Someone visiting gets channels that @everyone can see, without members, and visiting set to true. Requires guilds OAuth scope if using bearer token.",
"security": [{"botToken": []}, {"oauth2Token": ["guilds"]}, {"sessionToken": []}],
"parameters": [
{
@@ -8569,7 +8963,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "List guild channels. Returns all channels in the guild that the user has access to view.",
+ "description": "List guild channels. Returns all channels in the guild that the user has access to view. Someone visiting the guild gets the channels that @everyone can see, with only the @everyone permission overwrite.",
"security": [{"botToken": []}, {"sessionToken": []}],
"parameters": [
{
@@ -11399,16 +11793,61 @@
}
}
},
- "/invites/{invite_code}": {
- "get": {
- "operationId": "get_invite",
- "summary": "Get invite information",
- "tags": ["Invites"],
+ "/instance/setup/token-checks": {
+ "post": {
+ "operationId": "check_instance_setup_token",
+ "summary": "Check the setup token of a new instance",
+ "tags": ["Instance"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/InviteResponseSchema"}}}
- },
+ "204": {"description": "No Content"},
+ "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": "Checks a setup token before the setup wizard asks for anything else. It returns 204 when the token is correct, and also when the instance no longer needs one. A missing or wrong token fails with the same field codes as registration and counts toward the same allowance of wrong tokens. The check never uses up the token.",
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/InstanceSetupTokenCheckRequest"}}}
+ }
+ }
+ },
+ "/invites/{invite_code}": {
+ "get": {
+ "operationId": "get_invite",
+ "summary": "Get invite information",
+ "tags": ["Invites"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/InviteResponseSchema"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -11569,6 +12008,68 @@
]
}
},
+ "/invites/{invite_code}/visit": {
+ "post": {
+ "operationId": "visit_invite_guild",
+ "summary": "Visit the guild of an invite",
+ "tags": ["Invites"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GuildVisitStartResponse"}}}
+ },
+ "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": "Opens the guild behind an invite without joining it. The visitor can read the channels that @everyone can see, but cannot post, react or see the member list, and other members see no change. Answers with member set to true and no visit when the user is already a member. Visiting does not use up a limited invite. Joining later from the visit uses one.",
+ "security": [{"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "invite_code",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The unique invite code", "type": "string"},
+ "description": "The unique invite code"
+ }
+ ]
+ }
+ },
"/ip": {
"get": {
"operationId": "get_client_geolocation",
@@ -12951,63 +13452,16 @@
"security": [{"oauth2Token": ["identify"]}]
}
},
- "/premium/cancel-pending-subscription-change": {
+ "/operator-pass/checkout": {
"post": {
- "operationId": "cancel_pending_subscription_change",
- "summary": "Cancel pending subscription billing cycle change",
- "tags": ["Premium"],
+ "operationId": "create_operator_pass_checkout",
+ "summary": "Create Operator Pass checkout session",
+ "tags": ["Operator Pass"],
"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"}
- }
- }
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassCheckoutResponse"}}}
},
- "500": {
- "description": "Internal Server Error - An unexpected error occurred",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
- }
- },
- "description": "Cancels the authenticated user's pending premium billing cycle change without cancelling the active subscription.",
- "security": [{"sessionToken": []}]
- }
- },
- "/premium/cancel-subscription": {
- "post": {
- "operationId": "cancel_subscription",
- "summary": "Cancel subscription",
- "tags": ["Premium"],
- "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"}}}
@@ -13047,75 +13501,23 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Cancels the authenticated user's premium subscription at the end of the current billing period.",
- "security": [{"sessionToken": []}]
- }
- },
- "/premium/change-subscription": {
- "post": {
- "operationId": "change_subscription_billing_cycle",
- "summary": "Change subscription billing cycle",
- "tags": ["Premium"],
- "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": "Switches the authenticated user between monthly and yearly billing for their active premium subscription.",
+ "description": "Creates a Stripe checkout session for one or more Operator Passes with an optional monthly donation. Every pass is delivered to the current account as soon as the payment settles. Buying more passes while holding some adds to the count.",
"security": [{"sessionToken": []}],
"requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChangeSubscriptionRequest"}}}
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassCheckoutRequest"}}}
}
}
},
- "/premium/current-subscription-price": {
+ "/operator-pass/listing": {
"get": {
- "operationId": "get_current_subscription_price",
- "summary": "Get current subscription price",
- "tags": ["Premium"],
+ "operationId": "get_operator_pass_listing",
+ "summary": "Get Operators' wall listing",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/CurrentSubscriptionPriceResponse"}}
- }
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassListingResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -13156,19 +13558,17 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Returns the exact price the authenticated user is being billed for their active Stripe subscription, including whether they are on a grandfathered legacy rate.",
+ "description": "Returns what the Operators' wall shows for the current account right now, the name it submitted, the review state, why staff declined a name or avatar, and how many passes the account holds. The review state and the reason are only for the holder, the public wall never shows them.",
"security": [{"sessionToken": []}]
- }
- },
- "/premium/customer-portal": {
- "post": {
- "operationId": "create_customer_portal",
- "summary": "Create customer portal",
- "tags": ["Premium"],
+ },
+ "put": {
+ "operationId": "update_operator_pass_listing",
+ "summary": "Update Operators' wall listing",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UrlResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassListingResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -13209,19 +13609,23 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Creates a session URL for the authenticated user to manage their Stripe subscription via the customer portal.",
- "security": [{"sessionToken": []}]
+ "description": "Submits a new name for the Operators' wall, takes the listing off the wall, or sets keep_as_is or release_list_opt_in. A new name, together with the current profile avatar, waits for review and the wall keeps showing the last approved version, or the fallback, until staff approve it. A declined name can be replaced at any time. An already listed holder can send only keep_as_is or release_list_opt_in.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassListingUpdateRequest"}}}
+ }
}
},
- "/premium/grace/end": {
- "post": {
- "operationId": "end_premium_grace_period",
- "summary": "End premium grace period now",
- "tags": ["Premium"],
+ "/operator-pass/offers/{offer_id}": {
+ "get": {
+ "operationId": "get_operator_pass_offer",
+ "summary": "Get Pass it on offer",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SuccessResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassOfferResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -13262,19 +13666,26 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Ends the post-cancel grace period immediately, downgrading the user from premium and clearing premium_since. Idempotent and safe to call when not in grace; returns success in either case. Use this when the user explicitly opts out of the 3-day recovery window.",
- "security": [{"sessionToken": []}]
- }
- },
- "/premium/perks-disabled": {
- "patch": {
- "operationId": "set_premium_perks_disabled",
- "summary": "Set premium perks disabled",
- "tags": ["Premium"],
+ "description": "Returns a Pass it on offer the current account made or received.",
+ "security": [{"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "offer_id",
+ "in": "path",
+ "required": true,
+ "schema": {"type": "string", "minLength": 1, "maxLength": 64, "description": "The offer ID"},
+ "description": "The offer ID"
+ }
+ ]
+ },
+ "delete": {
+ "operationId": "withdraw_operator_pass_offer",
+ "summary": "Withdraw Pass it on offer",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PremiumStateResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassOfferResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -13315,30 +13726,41 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Temporarily disables or restores premium perks for the authenticated user while preserving actual subscription and billing state.",
+ "description": "Withdraws an offer the current account made, while the pass has not moved yet. The pass stays with the sender and the recipient gets an email.",
"security": [{"sessionToken": []}],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/UpdatePremiumPerksDisabledRequest"}}
+ "parameters": [
+ {
+ "name": "offer_id",
+ "in": "path",
+ "required": true,
+ "schema": {"type": "string", "minLength": 1, "maxLength": 64, "description": "The offer ID"},
+ "description": "The offer ID"
}
- }
+ ]
}
},
- "/premium/price-ids": {
- "get": {
- "operationId": "get_price_ids",
- "summary": "Get Stripe price IDs",
- "tags": ["Premium"],
+ "/operator-pass/offers/{offer_id}/accept": {
+ "post": {
+ "operationId": "accept_operator_pass_offer",
+ "summary": "Accept Pass it on offer",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PriceIdsResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassOfferResponse"}}}
},
"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"}}},
@@ -13366,28 +13788,33 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Retrieves Stripe price IDs for premium subscriptions based on geographic location.",
+ "description": "Accepts an offer to the current account with the Operator Pass terms and a choice for the Operators' wall. The pass moves at arrives_at, at once when the transfer lock has already ended. A received pass cannot be passed on again, and it ends if the payment for it is reversed.",
+ "security": [{"sessionToken": []}],
"parameters": [
{
- "name": "country_code",
- "in": "query",
- "required": false,
- "schema": {
- "description": "Two-letter country code for regional pricing. Only used when the server cannot geolocate the request; otherwise the request GeoIP country wins.",
- "type": "string"
- },
- "description": "Two-letter country code for regional pricing. Only used when the server cannot geolocate the request; otherwise the request GeoIP country wins."
+ "name": "offer_id",
+ "in": "path",
+ "required": true,
+ "schema": {"type": "string", "minLength": 1, "maxLength": 64, "description": "The offer ID"},
+ "description": "The offer ID"
}
- ]
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassOfferAcceptRequest"}}}
+ }
}
},
- "/premium/reactivate-subscription": {
+ "/operator-pass/offers/{offer_id}/decline": {
"post": {
- "operationId": "reactivate_subscription",
- "summary": "Reactivate subscription",
- "tags": ["Premium"],
+ "operationId": "decline_operator_pass_offer",
+ "summary": "Decline Pass it on offer",
+ "tags": ["Operator Pass"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassOfferResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -13427,21 +13854,28 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Reactivates a previously cancelled premium subscription for the authenticated user.",
- "security": [{"sessionToken": []}]
+ "description": "Declines a pending offer to the current account. The pass stays with the sender, who gets an email.",
+ "security": [{"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "offer_id",
+ "in": "path",
+ "required": true,
+ "schema": {"type": "string", "minLength": 1, "maxLength": 64, "description": "The offer ID"},
+ "description": "The offer ID"
+ }
+ ]
}
},
- "/premium/refund-eligibility": {
+ "/operator-pass/passes": {
"get": {
- "operationId": "get_self_serve_refund_eligibility",
- "summary": "Get self-serve refund eligibility",
- "tags": ["Billing"],
+ "operationId": "list_operator_passes",
+ "summary": "List Operator Passes",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/SelfServeRefundEligibilityResponse"}}
- }
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassPassesResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -13482,19 +13916,19 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Returns whether the authenticated user can self-serve refund their most recent purchase, including the refund window and cooldown timestamps.",
+ "description": "Returns how many passes the current account holds, each pass with whether it can be passed on or withdrawn, and the open Pass it on offers to and from the account. The count is returned even when the badge is hidden or the account chose not to be listed.",
"security": [{"sessionToken": []}]
}
},
- "/premium/refund-latest": {
+ "/operator-pass/passes/{pass_id}/offers": {
"post": {
- "operationId": "self_serve_refund_latest_purchase",
- "summary": "Refund latest purchase",
- "tags": ["Billing"],
+ "operationId": "create_operator_pass_offer",
+ "summary": "Pass an Operator Pass on",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SelfServeRefundResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassOfferResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -13535,19 +13969,32 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Refunds the authenticated user's most recent paid invoice if it is within 3 days and the user is not in a 30-day cooldown. If the invoice was tied to a subscription, the subscription is cancelled immediately.",
- "security": [{"sessionToken": []}]
+ "description": "Offers a pass the current account bought to another user. The offer stays pending until the recipient accepts or declines, and the sender can withdraw it until then. Once accepted, the pass moves when the transfer lock ends, and only while the payment has no early fraud warning, open dispute or refund. Passing on the last pass needs confirm_last_pass, because it removes the badge and the wall listing.",
+ "security": [{"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "pass_id",
+ "in": "path",
+ "required": true,
+ "schema": {"type": "string", "minLength": 1, "maxLength": 256, "description": "The pass ID"},
+ "description": "The pass ID"
+ }
+ ],
+ "requestBody": {
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassOfferCreateRequest"}}}
+ }
}
},
- "/premium/state": {
- "get": {
- "operationId": "get_premium_state",
- "summary": "Get premium state",
- "tags": ["Premium"],
+ "/operator-pass/passes/{pass_id}/withdraw": {
+ "post": {
+ "operationId": "withdraw_operator_pass",
+ "summary": "Withdraw from an Operator Pass",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PremiumStateResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassPassesResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -13588,31 +14035,34 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Returns the authenticated user actual premium entitlement, effective perk state, and mirrored billing data. When Stripe is enabled, missing payment-method mirror data may be repaired lazily.",
+ "description": "Withdraws one delivered pass bought in a country whose withdrawal right cannot be waived, within the days the rule gives. Refunds the price of that pass in full, ends the pass and emails a timestamped receipt to the account email.",
"security": [{"sessionToken": []}],
"parameters": [
{
- "name": "country_code",
- "in": "query",
- "required": false,
- "schema": {
- "description": "Two-letter country code for regional pricing. Only used when the server cannot geolocate the request; otherwise the request GeoIP country wins.",
- "type": "string"
- },
- "description": "Two-letter country code for regional pricing. Only used when the server cannot geolocate the request; otherwise the request GeoIP country wins."
+ "name": "pass_id",
+ "in": "path",
+ "required": true,
+ "schema": {"type": "string", "minLength": 1, "maxLength": 256, "description": "The pass ID"},
+ "description": "The pass ID"
}
- ]
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassWithdrawRequest"}}}
+ }
}
},
- "/premium/store": {
+ "/operator-pass/purchases": {
"get": {
- "operationId": "get_store_billing_context",
- "summary": "Get in-app purchase context",
- "tags": ["Premium"],
+ "operationId": "list_operator_pass_purchases",
+ "summary": "List Operator Pass purchases",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StoreBillingContextResponse"}}}
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassPurchaseListResponse"}}
+ }
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -13653,19 +14103,19 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Returns the account token and the App Store and Google Play products the mobile apps may sell, plus the reason a new subscription is blocked, if any.",
+ "description": "Lists the Operator Pass purchases the current account paid for, with the quantity, the delivery time and whether the withdraw button for the whole purchase is available.",
"security": [{"sessionToken": []}]
}
},
- "/premium/store/app-store/transactions": {
+ "/operator-pass/purchases/{purchase_id}/withdraw": {
"post": {
- "operationId": "claim_app_store_transaction",
- "summary": "Claim App Store transaction",
- "tags": ["Premium"],
+ "operationId": "withdraw_operator_pass_purchase",
+ "summary": "Withdraw from an Operator Pass purchase",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StorePurchaseClaimResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassPurchaseResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -13706,36 +14156,39 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Verifies a StoreKit 2 signed transaction, links the purchase to the authenticated account and applies it. Calling it again for the same purchase returns the same result. Finish the transaction after a 200 or a 400 or 403 error. Leave it unfinished after a 429, a 5xx or a network failure.",
+ "description": "Withdraws from a paid Operator Pass purchase whose passes are not delivered yet. Refunds the passes in full to the original payment method and emails a timestamped receipt to the account email. A monthly donation added at checkout keeps running. Delivered passes in a withdrawal_rule country are withdrawn one by one with the pass withdraw route.",
"security": [{"sessionToken": []}],
+ "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/ClaimAppStoreTransactionRequest"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassWithdrawRequest"}}}
}
}
},
- "/premium/store/google-play/purchases": {
- "post": {
- "operationId": "claim_google_play_purchase",
- "summary": "Claim Google Play purchase",
- "tags": ["Premium"],
+ "/operator-pass/releases/latest": {
+ "get": {
+ "operationId": "get_operator_pass_latest_release",
+ "summary": "Get latest Operators list",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StorePurchaseClaimResponse"}}}
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassLatestReleaseResponse"}}
+ }
},
"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"}}},
@@ -13763,36 +14216,23 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Verifies a Google Play purchase token, links the purchase to the authenticated account, acknowledges it and applies it. Calling it again for the same purchase returns the same result.",
- "security": [{"sessionToken": []}],
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ClaimGooglePlayPurchaseRequest"}}}
- }
+ "description": "Returns the latest published The Operators of list, with the release tag, the release date and the sorted names, for the homepage feature."
}
},
- "/premium/store/purchases": {
+ "/operator-pass/state": {
"get": {
- "operationId": "list_store_purchases",
- "summary": "List in-app purchases",
- "tags": ["Premium"],
+ "operationId": "get_operator_pass_state",
+ "summary": "Get Operator Pass state",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StorePurchaseListResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassStateResponse"}}}
},
"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"}}},
@@ -13820,29 +14260,35 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Returns the App Store and Google Play purchases linked to the authenticated account.",
- "security": [{"sessionToken": []}]
+ "description": "Returns the sale phase, the price of one pass in the buyer currency, the most passes one checkout can buy, the withdrawal rule of the buyer country and a signed quote. Signed-in callers also get their holder status with the number of passes they hold, and why they cannot buy passes.",
+ "parameters": [
+ {
+ "name": "country_code",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "Two-letter country code used to pick the price currency. The request GeoIP country is used when omitted.",
+ "type": "string"
+ },
+ "description": "Two-letter country code used to pick the price currency. The request GeoIP country is used when omitted."
+ }
+ ]
}
},
- "/premium/store/purchases/{purchase_id}": {
- "delete": {
- "operationId": "release_store_purchase",
- "summary": "Release in-app subscription",
- "tags": ["Premium"],
+ "/operator-pass/waitlist": {
+ "post": {
+ "operationId": "join_operator_pass_waitlist",
+ "summary": "Join Operator Pass waitlist",
+ "tags": ["Operator Pass"],
"responses": {
- "204": {"description": "No Content"},
+ "202": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassWaitlistResponse"}}}
+ },
"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"}}},
@@ -13870,43 +14316,1271 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Unlinks an App Store or Google Play subscription from the authenticated account so another account can claim it. Requires sudo mode.",
- "security": [{"sessionToken": []}],
- "parameters": [
- {
- "name": "purchase_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the store purchase", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the store purchase"
- }
- ],
+ "description": "Sends a confirmation email to the address and stores how the visitor feels about the early bird price they were shown. The response is the same whether or not the address is already on the waitlist, and always carries a followup_token for the follow-up question. Addresses are matched without plus tags, and Gmail addresses without dots. A later signup by the same pending address replaces the stored answer, a confirmed address keeps its first answer, a bounced address gets no email and an unsubscribed address gets at most one new confirmation email every 30 days. Requires a solved captcha challenge (X-Captcha-Token).",
"requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SudoVerificationSchema"}}}
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassWaitlistRequest"}}}
}
}
},
- "/premium/switch-to-list-price": {
- "post": {
- "operationId": "switch_subscription_to_list_price",
- "summary": "Switch subscription to the current list price",
- "tags": ["Premium"],
+ "/operator-pass/waitlist/challenge": {
+ "get": {
+ "operationId": "get_operator_pass_waitlist_challenge",
+ "summary": "Get Operator Pass waitlist captcha challenge",
+ "tags": ["Operator Pass"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SwitchToListPriceResponse"}}}
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassWaitlistChallengeResponse"}}
+ }
},
"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",
+ "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 captcha challenge to solve before joining the Operator Pass waitlist."
+ }
+ },
+ "/operator-pass/waitlist/confirm": {
+ "post": {
+ "operationId": "confirm_operator_pass_waitlist",
+ "summary": "Confirm Operator Pass waitlist email",
+ "tags": ["Operator Pass"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassWaitlistConfirmResponse"}}
+ }
},
- "403": {
- "description": "Forbidden - You do not have permission to perform this action",
+ "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": "Confirms a waitlist email address with the token from the confirmation email.",
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassWaitlistConfirmRequest"}}
+ }
+ }
+ }
+ },
+ "/operator-pass/waitlist/followup": {
+ "post": {
+ "operationId": "answer_operator_pass_waitlist_followup",
+ "summary": "Answer Operator Pass waitlist follow-up question",
+ "tags": ["Operator Pass"],
+ "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"}}}
+ },
+ "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": "Stores what is most important to the visitor about the Operator Pass and which descriptions fit them, with the followup_token from the waitlist signup response. A new answer replaces the stored one while the token is valid, for 30 minutes after the signup. An answer without about keeps the descriptions stored before. A token from a signup whose address was already on the waitlist is accepted and stores nothing, so the response never shows whether an address is on the waitlist. other_text is plain text and only goes with other in picks.",
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassWaitlistFollowupRequest"}}
+ }
+ }
+ }
+ },
+ "/operator-pass/waitlist/unsubscribe": {
+ "get": {
+ "operationId": "open_operator_pass_waitlist_unsubscribe",
+ "summary": "Open Operator Pass waitlist unsubscribe page",
+ "tags": ["Operator Pass"],
+ "responses": {
+ "302": {"description": "Success"},
+ "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": "Redirects a mail client that opens the unsubscribe link to the page where the address can leave the waitlist. Nothing changes until that page is submitted.",
+ "parameters": [
+ {
+ "name": "token",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "Unsubscribe token from the email",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "description": "Unsubscribe token from the email"
+ }
+ ]
+ },
+ "post": {
+ "operationId": "unsubscribe_operator_pass_waitlist",
+ "summary": "Leave Operator Pass waitlist",
+ "tags": ["Operator Pass"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassWaitlistUnsubscribeResponse"}}
+ }
+ },
+ "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": "Removes an address from the waitlist with the token from a waitlist email. Supports one-click unsubscribe from mail clients.",
+ "parameters": [
+ {
+ "name": "token",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "Unsubscribe token from the email",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256
+ },
+ "description": "Unsubscribe token from the email"
+ }
+ ]
+ }
+ },
+ "/operator-pass/wall": {
+ "get": {
+ "operationId": "get_operator_pass_wall",
+ "summary": "Get Operators' wall",
+ "tags": ["Operator Pass"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OperatorPassWallResponse"}}}
+ },
+ "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": "Lists every Operator on the Operators' wall with the name and avatar the wall shows, the time the listing went up, the time of the first pass, how many passes the Operator holds and the size tier, with the highest tier first and the earliest first pass first within a tier. A declined name or avatar shows as the last accepted version, or the username, or Operator, with the default avatar. Review states and reasons are never included. Holders who chose not to be listed and paused or removed passes are left out. The response is cached for up to a minute."
+ }
+ },
+ "/premium/cancel-pending-subscription-change": {
+ "post": {
+ "operationId": "cancel_pending_subscription_change",
+ "summary": "Cancel pending subscription billing cycle change",
+ "tags": ["Premium"],
+ "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": "Cancels the authenticated user's pending premium billing cycle change without cancelling the active subscription.",
+ "security": [{"sessionToken": []}]
+ }
+ },
+ "/premium/cancel-subscription": {
+ "post": {
+ "operationId": "cancel_subscription",
+ "summary": "Cancel subscription",
+ "tags": ["Premium"],
+ "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": "Cancels the authenticated user's premium subscription at the end of the current billing period.",
+ "security": [{"sessionToken": []}]
+ }
+ },
+ "/premium/change-subscription": {
+ "post": {
+ "operationId": "change_subscription_billing_cycle",
+ "summary": "Change subscription billing cycle",
+ "tags": ["Premium"],
+ "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": "Switches the authenticated user between monthly and yearly billing for their active premium subscription.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChangeSubscriptionRequest"}}}
+ }
+ }
+ },
+ "/premium/current-subscription-price": {
+ "get": {
+ "operationId": "get_current_subscription_price",
+ "summary": "Get current subscription price",
+ "tags": ["Premium"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/CurrentSubscriptionPriceResponse"}}
+ }
+ },
+ "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 exact price the authenticated user is being billed for their active Stripe subscription, including whether they are on a grandfathered legacy rate.",
+ "security": [{"sessionToken": []}]
+ }
+ },
+ "/premium/customer-portal": {
+ "post": {
+ "operationId": "create_customer_portal",
+ "summary": "Create customer portal",
+ "tags": ["Premium"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UrlResponse"}}}
+ },
+ "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 session URL for the authenticated user to manage their Stripe subscription via the customer portal.",
+ "security": [{"sessionToken": []}]
+ }
+ },
+ "/premium/grace/end": {
+ "post": {
+ "operationId": "end_premium_grace_period",
+ "summary": "End premium grace period now",
+ "tags": ["Premium"],
+ "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": "Ends the post-cancel grace period immediately, downgrading the user from premium and clearing premium_since. Idempotent and safe to call when not in grace; returns success in either case. Use this when the user explicitly opts out of the 3-day recovery window.",
+ "security": [{"sessionToken": []}]
+ }
+ },
+ "/premium/perks-disabled": {
+ "patch": {
+ "operationId": "set_premium_perks_disabled",
+ "summary": "Set premium perks disabled",
+ "tags": ["Premium"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PremiumStateResponse"}}}
+ },
+ "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": "Temporarily disables or restores premium perks for the authenticated user while preserving actual subscription and billing state.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/UpdatePremiumPerksDisabledRequest"}}
+ }
+ }
+ }
+ },
+ "/premium/price-ids": {
+ "get": {
+ "operationId": "get_price_ids",
+ "summary": "Get Stripe price IDs",
+ "tags": ["Premium"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PriceIdsResponse"}}}
+ },
+ "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": "Retrieves Stripe price IDs for premium subscriptions based on geographic location.",
+ "parameters": [
+ {
+ "name": "country_code",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "Two-letter country code for regional pricing. Only used when the server cannot geolocate the request; otherwise the request GeoIP country wins.",
+ "type": "string"
+ },
+ "description": "Two-letter country code for regional pricing. Only used when the server cannot geolocate the request; otherwise the request GeoIP country wins."
+ }
+ ]
+ }
+ },
+ "/premium/reactivate-subscription": {
+ "post": {
+ "operationId": "reactivate_subscription",
+ "summary": "Reactivate subscription",
+ "tags": ["Premium"],
+ "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": "Reactivates a previously cancelled premium subscription for the authenticated user.",
+ "security": [{"sessionToken": []}]
+ }
+ },
+ "/premium/refund-eligibility": {
+ "get": {
+ "operationId": "get_self_serve_refund_eligibility",
+ "summary": "Get self-serve refund eligibility",
+ "tags": ["Billing"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/SelfServeRefundEligibilityResponse"}}
+ }
+ },
+ "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 whether the authenticated user can self-serve refund their most recent purchase, including the refund window and cooldown timestamps.",
+ "security": [{"sessionToken": []}]
+ }
+ },
+ "/premium/refund-latest": {
+ "post": {
+ "operationId": "self_serve_refund_latest_purchase",
+ "summary": "Refund latest purchase",
+ "tags": ["Billing"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SelfServeRefundResponse"}}}
+ },
+ "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": "Refunds the authenticated user's most recent paid invoice if it is within 3 days and the user is not in a 30-day cooldown. If the invoice was tied to a subscription, the subscription is cancelled immediately.",
+ "security": [{"sessionToken": []}]
+ }
+ },
+ "/premium/state": {
+ "get": {
+ "operationId": "get_premium_state",
+ "summary": "Get premium state",
+ "tags": ["Premium"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PremiumStateResponse"}}}
+ },
+ "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 authenticated user actual premium entitlement, effective perk state, and mirrored billing data. When Stripe is enabled, missing payment-method mirror data may be repaired lazily.",
+ "security": [{"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "country_code",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "Two-letter country code for regional pricing. Only used when the server cannot geolocate the request; otherwise the request GeoIP country wins.",
+ "type": "string"
+ },
+ "description": "Two-letter country code for regional pricing. Only used when the server cannot geolocate the request; otherwise the request GeoIP country wins."
+ }
+ ]
+ }
+ },
+ "/premium/store": {
+ "get": {
+ "operationId": "get_store_billing_context",
+ "summary": "Get in-app purchase context",
+ "tags": ["Premium"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StoreBillingContextResponse"}}}
+ },
+ "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 account token and the App Store and Google Play products the mobile apps may sell, plus the reason a new subscription is blocked, if any.",
+ "security": [{"sessionToken": []}]
+ }
+ },
+ "/premium/store/app-store/transactions": {
+ "post": {
+ "operationId": "claim_app_store_transaction",
+ "summary": "Claim App Store transaction",
+ "tags": ["Premium"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StorePurchaseClaimResponse"}}}
+ },
+ "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": "Verifies a StoreKit 2 signed transaction, links the purchase to the authenticated account and applies it. Calling it again for the same purchase returns the same result. Finish the transaction after a 200 or a 400 or 403 error. Leave it unfinished after a 429, a 5xx or a network failure.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ClaimAppStoreTransactionRequest"}}}
+ }
+ }
+ },
+ "/premium/store/google-play/purchases": {
+ "post": {
+ "operationId": "claim_google_play_purchase",
+ "summary": "Claim Google Play purchase",
+ "tags": ["Premium"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StorePurchaseClaimResponse"}}}
+ },
+ "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": "Verifies a Google Play purchase token, links the purchase to the authenticated account, acknowledges it and applies it. Calling it again for the same purchase returns the same result.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ClaimGooglePlayPurchaseRequest"}}}
+ }
+ }
+ },
+ "/premium/store/purchases": {
+ "get": {
+ "operationId": "list_store_purchases",
+ "summary": "List in-app purchases",
+ "tags": ["Premium"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StorePurchaseListResponse"}}}
+ },
+ "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 App Store and Google Play purchases linked to the authenticated account.",
+ "security": [{"sessionToken": []}]
+ }
+ },
+ "/premium/store/purchases/{purchase_id}": {
+ "delete": {
+ "operationId": "release_store_purchase",
+ "summary": "Release in-app subscription",
+ "tags": ["Premium"],
+ "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": "Unlinks an App Store or Google Play subscription from the authenticated account so another account can claim it. Requires sudo mode.",
+ "security": [{"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "purchase_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the store purchase", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the store purchase"
+ }
+ ],
+ "requestBody": {
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SudoVerificationSchema"}}}
+ }
+ }
+ },
+ "/premium/switch-to-list-price": {
+ "post": {
+ "operationId": "switch_subscription_to_list_price",
+ "summary": "Switch subscription to the current list price",
+ "tags": ["Premium"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SwitchToListPriceResponse"}}}
+ },
+ "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": {
@@ -14242,81 +15916,208 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Verifies the DSA report email and creates a report ticket for legal compliance.",
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DsaReportEmailVerifyRequest"}}}
- }
- }
- },
- "/reports/flows/message/submissions": {
- "post": {
- "operationId": "submit_message_report_flow",
- "summary": "Submit message report flow",
- "tags": ["Reports"],
- "responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportResponse"}}}
- },
- "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"}}}
+ "description": "Verifies the DSA report email and creates a report ticket for legal compliance.",
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DsaReportEmailVerifyRequest"}}}
+ }
+ }
+ },
+ "/reports/flows/message/submissions": {
+ "post": {
+ "operationId": "submit_message_report_flow",
+ "summary": "Submit message report flow",
+ "tags": ["Reports"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportResponse"}}}
+ },
+ "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 a report about a message from the answers given in the in-app message report flow. The reporter must be able to access the channel and target message.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/ReportFlowMessageSubmissionRequest"}}
+ }
+ }
+ }
+ },
+ "/reports/flows/user/submissions": {
+ "post": {
+ "operationId": "submit_user_report_flow",
+ "summary": "Submit user report flow",
+ "tags": ["Reports"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportResponse"}}}
+ },
+ "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 a report about a user profile from the answers given in the in-app user profile report flow.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportFlowUserSubmissionRequest"}}}
+ }
+ }
+ },
+ "/reports/flows/{target_type}": {
+ "get": {
+ "operationId": "get_report_flow",
+ "summary": "Get report flow",
+ "tags": ["Reports"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportFlowResponse"}}}
+ },
+ "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": "Returns every screen of the report flow for a target type, rendered in the requested locale. Message and user flows are available in app and on the DSA form, the guild flow only on the DSA form.",
+ "parameters": [
+ {
+ "name": "target_type",
+ "in": "path",
+ "required": true,
+ "schema": {"$ref": "#/components/schemas/ReportFlowTargetType"},
+ "description": "Kind of entity a report flow is about"
},
- "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"}
- }
- }
+ {
+ "name": "surface",
+ "in": "query",
+ "required": false,
+ "schema": {"default": "in_app", "$ref": "#/components/schemas/ReportFlowSurface"},
+ "description": "Where the flow is shown"
},
- "500": {
- "description": "Internal Server Error - An unexpected error occurred",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
- }
- },
- "description": "Files a report about a message from the answers given in the in-app message report flow. The reporter must be able to access the channel and target message.",
- "security": [{"sessionToken": []}],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/ReportFlowMessageSubmissionRequest"}}
+ {
+ "name": "locale",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "description": "Language tag of the client UI. The server picks the closest supported locale and reports it in the locale field",
+ "type": "string"
+ },
+ "description": "Language tag of the client UI. The server picks the closest supported locale and reports it in the locale field"
}
- }
+ ]
}
},
- "/reports/flows/user/submissions": {
+ "/search/messages": {
"post": {
- "operationId": "submit_user_report_flow",
- "summary": "Submit user report flow",
- "tags": ["Reports"],
+ "operationId": "search_messages",
+ "summary": "Search messages",
+ "tags": ["Search"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageSearchResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -14357,23 +16158,31 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Files a report about a user profile from the answers given in the in-app user profile report flow.",
- "security": [{"sessionToken": []}],
+ "description": "Searches for messages across guilds and channels accessible to the authenticated user. Bots must supply a context guild or channel and may only use the current scope.",
+ "security": [{"botToken": []}, {"sessionToken": []}],
"requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportFlowUserSubmissionRequest"}}}
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GlobalSearchMessagesRequest"}}}
}
}
},
- "/reports/flows/{target_type}": {
+ "/signed-downloads/{filename}": {
"get": {
- "operationId": "get_report_flow",
- "summary": "Get report flow",
- "tags": ["Reports"],
+ "operationId": "download_admin_signed_file",
+ "summary": "Download an admin archive or report file",
+ "tags": ["Admin"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReportFlowResponse"}}}
+ "content": {
+ "application/octet-stream": {"schema": {"$ref": "#/components/schemas/AdminSignedDownloadResponse"}}
+ }
+ },
+ "206": {
+ "description": "Success",
+ "content": {
+ "application/octet-stream": {"schema": {"$ref": "#/components/schemas/AdminSignedDownloadResponse"}}
+ }
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -14406,92 +16215,25 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Returns every screen of the report flow for a target type, rendered in the requested locale. Message and user flows are available in app and on the DSA form, the guild flow only on the DSA form.",
+ "description": "Streams an admin archive or a file kept as report evidence. Authorised by a signed, expiring token that the admin API hands out in place of a storage link. Only active when presigned harvest downloads are disabled.",
"parameters": [
{
- "name": "target_type",
+ "name": "filename",
"in": "path",
"required": true,
- "schema": {"$ref": "#/components/schemas/ReportFlowTargetType"},
- "description": "Kind of entity a report flow is about"
- },
- {
- "name": "surface",
- "in": "query",
- "required": false,
- "schema": {"default": "in_app", "$ref": "#/components/schemas/ReportFlowSurface"},
- "description": "Where the flow is shown"
+ "schema": {"description": "File name to save the download as", "type": "string"},
+ "description": "File name to save the download as"
},
{
- "name": "locale",
+ "name": "token",
"in": "query",
- "required": false,
- "schema": {
- "description": "Language tag of the client UI. The server picks the closest supported locale and reports it in the locale field",
- "type": "string"
- },
- "description": "Language tag of the client UI. The server picks the closest supported locale and reports it in the locale field"
+ "required": true,
+ "schema": {"description": "The signed download token from the harvest download URL", "type": "string"},
+ "description": "The signed download token from the harvest download URL"
}
]
}
},
- "/search/messages": {
- "post": {
- "operationId": "search_messages",
- "summary": "Search messages",
- "tags": ["Search"],
- "responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/MessageSearchResponse"}}}
- },
- "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 for messages across guilds and channels accessible to the authenticated user. Bots must supply a context guild or channel and may only use the current scope.",
- "security": [{"botToken": []}, {"sessionToken": []}],
- "requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GlobalSearchMessagesRequest"}}}
- }
- }
- },
"/stickers/{sticker_id}/metadata": {
"get": {
"operationId": "get_sticker_metadata",
@@ -15321,78 +17063,16 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Use /gifs/* instead - these vendor-specific paths are deprecated and will be removed. Routes to the active provider; identical behaviour to /gifs/suggest.",
- "security": [{"sessionToken": []}],
- "parameters": [
- {
- "name": "q",
- "in": "query",
- "required": true,
- "schema": {"description": "The search query", "type": "string"},
- "description": "The search query"
- },
- {
- "name": "locale",
- "in": "query",
- "required": false,
- "schema": {"default": "en-US", "$ref": "#/components/schemas/Locale"},
- "description": "The locale code for the user interface language"
- }
- ]
- }
- },
- "/tenor/trending-gifs": {
- "get": {
- "operationId": "get_trending_tenor",
- "summary": "Get trending GIFs (deprecated alias)",
- "tags": ["GIFs (Deprecated)"],
- "responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GifListResponse"}}}
- },
- "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": "Use /gifs/* instead - these vendor-specific paths are deprecated and will be removed. Routes to the active provider; identical behaviour to /gifs/trending.",
+ "description": "Use /gifs/* instead - these vendor-specific paths are deprecated and will be removed. Routes to the active provider; identical behaviour to /gifs/suggest.",
"security": [{"sessionToken": []}],
"parameters": [
+ {
+ "name": "q",
+ "in": "query",
+ "required": true,
+ "schema": {"description": "The search query", "type": "string"},
+ "description": "The search query"
+ },
{
"name": "locale",
"in": "query",
@@ -15403,15 +17083,15 @@
]
}
},
- "/unfurl": {
- "post": {
- "operationId": "debug_unfurl",
- "summary": "Debug URL unfurl",
- "tags": ["Debug"],
+ "/tenor/trending-gifs": {
+ "get": {
+ "operationId": "get_trending_tenor",
+ "summary": "Get trending GIFs (deprecated alias)",
+ "tags": ["GIFs (Deprecated)"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UnfurlResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GifListResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -15452,23 +17132,28 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Resolves a single URL through the unfurler without reading from the unfurl cache.",
+ "description": "Use /gifs/* instead - these vendor-specific paths are deprecated and will be removed. Routes to the active provider; identical behaviour to /gifs/trending.",
"security": [{"sessionToken": []}],
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UnfurlRequest"}}}
- }
+ "parameters": [
+ {
+ "name": "locale",
+ "in": "query",
+ "required": false,
+ "schema": {"default": "en-US", "$ref": "#/components/schemas/Locale"},
+ "description": "The locale code for the user interface language"
+ }
+ ]
}
},
- "/users/@me": {
- "get": {
- "operationId": "get_current_user",
- "summary": "Get current user profile",
- "tags": ["Users"],
+ "/unfurl": {
+ "post": {
+ "operationId": "debug_unfurl",
+ "summary": "Debug URL unfurl",
+ "tags": ["Debug"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserPrivateResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UnfurlResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -15509,17 +17194,23 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Retrieves the current authenticated user's profile information, including account details and settings. OAuth2 bearer tokens require identify scope, and email is returned only when the email scope is also present. Bearer tokens receive a reduced response: sensitive fields such as MFA status, authenticator types, ACLs, traits, premium billing details, and password metadata are omitted. Session and bot tokens return the full user object with all private fields.",
- "security": [{"botToken": []}, {"oauth2Token": ["identify"]}, {"sessionToken": []}]
- },
- "patch": {
- "operationId": "update_current_user",
- "summary": "Update current user profile",
+ "description": "Resolves a single URL through the unfurler without reading from the unfurl cache.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UnfurlRequest"}}}
+ }
+ }
+ },
+ "/users/@me": {
+ "get": {
+ "operationId": "get_current_user",
+ "summary": "Get current user profile",
"tags": ["Users"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserUpdateResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserPrivateResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -15560,25 +17251,17 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Updates the authenticated user's profile information such as username, avatar, and bio. Requires sudo mode verification for security-sensitive changes. Only default users can modify their own profile. A password change invalidates all existing sessions and returns the replacement session token.",
- "security": [{"sessionToken": []}],
- "requestBody": {
- "required": false,
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/UserUpdateWithVerificationRequest"}}
- }
- }
- }
- },
- "/users/@me/age-verification": {
- "post": {
- "operationId": "create_age_verification_session",
- "summary": "Create age verification session",
- "tags": ["Billing"],
+ "description": "Retrieves the current authenticated user's profile information, including account details and settings. OAuth2 bearer tokens require identify scope, and email is returned only when the email scope is also present. Bearer tokens receive a reduced response: sensitive fields such as MFA status, authenticator types, ACLs, traits, premium billing details, and password metadata are omitted. Session and bot tokens return the full user object with all private fields.",
+ "security": [{"botToken": []}, {"oauth2Token": ["identify"]}, {"sessionToken": []}]
+ },
+ "patch": {
+ "operationId": "update_current_user",
+ "summary": "Update current user profile",
+ "tags": ["Users"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UrlResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserUpdateResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -15619,8 +17302,14 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Creates a Stripe checkout session in setup mode to verify the user holds a credit card for UK adult age verification.",
- "security": [{"sessionToken": []}]
+ "description": "Updates the authenticated user's profile information such as username, avatar, and bio. Requires sudo mode verification for security-sensitive changes. Only default users can modify their own profile. A password change invalidates all existing sessions and returns the replacement session token.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": false,
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/UserUpdateWithVerificationRequest"}}
+ }
+ }
}
},
"/users/@me/applications": {
@@ -16011,6 +17700,63 @@
]
}
},
+ "/users/@me/claim": {
+ "post": {
+ "operationId": "claim_account",
+ "summary": "Claim an account created without credentials",
+ "tags": ["Users"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ClaimAccountResponse"}}}
+ },
+ "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": "Claims an account created without credentials. On email instances it adds an email address, and optionally a password. When the instance sends email, the address is stored at once and waits for confirmation with the emailed code, and next_step is confirm_email. When it does not, the account needs a password or an existing passkey, and next_step is none. An address stored on another account, confirmed or not, answers EMAIL_ALREADY_IN_USE. On username instances it sets a password, and next_step is none.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ClaimAccountRequest"}}}
+ }
+ }
+ },
"/users/@me/connections": {
"get": {
"operationId": "list_connections",
@@ -16111,23 +17857,134 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Initiates a new external service connection and returns verification instructions. No database record is created until verification succeeds.",
+ "description": "Initiates a new external service connection and returns verification instructions. No database record is created until verification succeeds.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateConnectionRequest"}}}
+ }
+ }
+ },
+ "/users/@me/connections/bluesky/authorize": {
+ "post": {
+ "operationId": "authorize_bluesky_connection",
+ "summary": "Start Bluesky OAuth flow",
+ "tags": ["Connections"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BlueskyAuthorizeResponse"}}}
+ },
+ "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 the Bluesky OAuth2 authorisation flow and returns a URL to redirect the user to.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BlueskyAuthorizeRequest"}}}
+ }
+ }
+ },
+ "/users/@me/connections/reorder": {
+ "patch": {
+ "operationId": "reorder_connections",
+ "summary": "Reorder connections",
+ "tags": ["Connections"],
+ "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": "Updates the display order of multiple connections in a single operation.",
"security": [{"sessionToken": []}],
"requestBody": {
"required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateConnectionRequest"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReorderConnectionsRequest"}}}
}
}
},
- "/users/@me/connections/bluesky/authorize": {
+ "/users/@me/connections/verify": {
"post": {
- "operationId": "authorize_bluesky_connection",
- "summary": "Start Bluesky OAuth flow",
+ "operationId": "verify_and_create_connection",
+ "summary": "Verify and create connection",
"tags": ["Connections"],
"responses": {
- "200": {
+ "201": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BlueskyAuthorizeResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ConnectionResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -16168,18 +18025,18 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Initiates the Bluesky OAuth2 authorisation flow and returns a URL to redirect the user to.",
+ "description": "Verifies the external service connection using the initiation token and creates the connection record on success.",
"security": [{"sessionToken": []}],
"requestBody": {
"required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BlueskyAuthorizeRequest"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VerifyAndCreateConnectionRequest"}}}
}
}
},
- "/users/@me/connections/reorder": {
+ "/users/@me/connections/{type}/{connection_id}": {
"patch": {
- "operationId": "reorder_connections",
- "summary": "Reorder connections",
+ "operationId": "update_connection",
+ "summary": "Update connection",
"tags": ["Connections"],
"responses": {
"204": {"description": "No Content"},
@@ -16222,75 +18079,32 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Updates the display order of multiple connections in a single operation.",
+ "description": "Updates visibility and sort order settings for an external service connection.",
"security": [{"sessionToken": []}],
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReorderConnectionsRequest"}}}
- }
- }
- },
- "/users/@me/connections/verify": {
- "post": {
- "operationId": "verify_and_create_connection",
- "summary": "Verify and create connection",
- "tags": ["Connections"],
- "responses": {
- "201": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ConnectionResponse"}}}
- },
- "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"}
- }
- }
+ "parameters": [
+ {
+ "name": "type",
+ "in": "path",
+ "required": true,
+ "schema": {"$ref": "#/components/schemas/ConnectionType"},
+ "description": "The type of external connection"
},
- "500": {
- "description": "Internal Server Error - An unexpected error occurred",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
+ {
+ "name": "connection_id",
+ "in": "path",
+ "required": true,
+ "schema": {"type": "string", "description": "The unique identifier of the connection"},
+ "description": "The unique identifier of the connection"
}
- },
- "description": "Verifies the external service connection using the initiation token and creates the connection record on success.",
- "security": [{"sessionToken": []}],
+ ],
"requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VerifyAndCreateConnectionRequest"}}}
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateConnectionRequest"}}}
}
- }
- },
- "/users/@me/connections/{type}/{connection_id}": {
- "patch": {
- "operationId": "update_connection",
- "summary": "Update connection",
+ },
+ "delete": {
+ "operationId": "delete_connection",
+ "summary": "Delete connection",
"tags": ["Connections"],
"responses": {
"204": {"description": "No Content"},
@@ -16333,7 +18147,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Updates visibility and sort order settings for an external service connection.",
+ "description": "Removes an external service connection from the authenticated user's profile.",
"security": [{"sessionToken": []}],
"parameters": [
{
@@ -16350,18 +18164,19 @@
"schema": {"type": "string", "description": "The unique identifier of the connection"},
"description": "The unique identifier of the connection"
}
- ],
- "requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateConnectionRequest"}}}
- }
- },
- "delete": {
- "operationId": "delete_connection",
- "summary": "Delete connection",
- "tags": ["Connections"],
+ ]
+ }
+ },
+ "/users/@me/date-of-birth": {
+ "put": {
+ "operationId": "set_user_date_of_birth",
+ "summary": "Set date of birth",
+ "tags": ["Users"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DateOfBirthUpdateResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -16401,24 +18216,12 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Removes an external service connection from the authenticated user's profile.",
+ "description": "Sets the date of birth once, for accounts that do not have one yet. It cannot be changed afterwards. The minimum age depends on the country the request comes from. Below it, the account is closed and deleted after 72 hours. Returns the updated account and the community to open next, when an invite was used at sign-up.",
"security": [{"sessionToken": []}],
- "parameters": [
- {
- "name": "type",
- "in": "path",
- "required": true,
- "schema": {"$ref": "#/components/schemas/ConnectionType"},
- "description": "The type of external connection"
- },
- {
- "name": "connection_id",
- "in": "path",
- "required": true,
- "schema": {"type": "string", "description": "The unique identifier of the connection"},
- "description": "The unique identifier of the connection"
- }
- ]
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DateOfBirthUpdateRequest"}}}
+ }
}
},
"/users/@me/delete": {
@@ -16915,23 +18718,139 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Resends a confirmation code to the user's original email address during the email change process. Use this if the original confirmation email was not received. Requires valid email change ticket.",
+ "description": "Resends a confirmation code to the user's original email address during the email change process. Use this if the original confirmation email was not received. Requires valid email change ticket.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailChangeTicketRequest"}}}
+ }
+ }
+ },
+ "/users/@me/email-change/start": {
+ "post": {
+ "operationId": "start_email_change",
+ "summary": "Start email change",
+ "tags": ["Users"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailChangeStartResponse"}}}
+ },
+ "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 an email change process. Generates a ticket for verifying the original email address before requesting a new email. Returns ticket for use in subsequent email change steps.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmptyBodyRequest"}}}
+ }
+ }
+ },
+ "/users/@me/email-change/verify-new": {
+ "post": {
+ "operationId": "verify_new_email_address",
+ "summary": "Verify new email address",
+ "tags": ["Users"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailTokenResponse"}}}
+ },
+ "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": "Completes the email change process by verifying the new email address with a confirmation code. Returns an email token that confirms the email change. After this step, the user may need to re-authenticate.",
"security": [{"sessionToken": []}],
"requestBody": {
"required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailChangeTicketRequest"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailChangeVerifyNewRequest"}}}
}
}
},
- "/users/@me/email-change/start": {
+ "/users/@me/email-change/verify-original": {
"post": {
- "operationId": "start_email_change",
- "summary": "Start email change",
+ "operationId": "verify_original_email_address",
+ "summary": "Verify original email address",
"tags": ["Users"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailChangeStartResponse"}}}
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/EmailChangeVerifyOriginalResponse"}}
+ }
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -16972,23 +18891,23 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Initiates an email change process. Generates a ticket for verifying the original email address before requesting a new email. Returns ticket for use in subsequent email change steps.",
+ "description": "Verifies ownership of the original email address by validating a confirmation code sent to that address. Must be completed before requesting a new email address. Returns proof token for use in new email request.",
"security": [{"sessionToken": []}],
"requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmptyBodyRequest"}}}
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailChangeVerifyOriginalRequest"}}}
}
}
},
- "/users/@me/email-change/verify-new": {
+ "/users/@me/email-verification/confirm": {
"post": {
- "operationId": "verify_new_email_address",
- "summary": "Verify new email address",
+ "operationId": "confirm_email_verification",
+ "summary": "Confirm the email address with a code",
"tags": ["Users"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailTokenResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserPrivateResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -17029,25 +18948,23 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Completes the email change process by verifying the new email address with a confirmation code. Returns an email token that confirms the email change. After this step, the user may need to re-authenticate.",
+ "description": "Confirms the email address with the emailed code.",
"security": [{"sessionToken": []}],
"requestBody": {
"required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailChangeVerifyNewRequest"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailVerificationConfirmRequest"}}}
}
}
},
- "/users/@me/email-change/verify-original": {
+ "/users/@me/email-verification/send": {
"post": {
- "operationId": "verify_original_email_address",
- "summary": "Verify original email address",
+ "operationId": "send_email_verification_code",
+ "summary": "Send an email confirmation code",
"tags": ["Users"],
"responses": {
"200": {
"description": "Success",
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/EmailChangeVerifyOriginalResponse"}}
- }
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailVerificationCodeResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -17088,12 +19005,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Verifies ownership of the original email address by validating a confirmation code sent to that address. Must be completed before requesting a new email address. Returns proof token for use in new email request.",
- "security": [{"sessionToken": []}],
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmailChangeVerifyOriginalRequest"}}}
- }
+ "description": "Emails a 6-digit code to confirm the email address on the account.",
+ "security": [{"sessionToken": []}]
}
},
"/users/@me/entrance-sound-selections": {
@@ -17479,6 +19392,180 @@
"security": [{"sessionToken": []}]
}
},
+ "/users/@me/guild-visits": {
+ "get": {
+ "operationId": "list_my_guild_visits",
+ "summary": "List guild visits",
+ "tags": ["Users"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GuildVisitListResponse"}}}
+ },
+ "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 guilds the current user is visiting, most recently opened first. A visit ends on its own after 14 days without being opened, or when the invite that started it is deleted or expires.",
+ "security": [{"sessionToken": []}]
+ }
+ },
+ "/users/@me/guild-visits/{guild_id}": {
+ "delete": {
+ "operationId": "leave_guild_visit",
+ "summary": "Stop visiting a guild",
+ "tags": ["Users"],
+ "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 visit. Every session of the user gets Guild Delete for the guild. Answers 204 even when there was no visit.",
+ "security": [{"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "guild_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the guild", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the guild"
+ }
+ ]
+ }
+ },
+ "/users/@me/guild-visits/{guild_id}/join": {
+ "post": {
+ "operationId": "join_visited_guild",
+ "summary": "Join a visited guild",
+ "tags": ["Users"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GuildResponse"}}}
+ },
+ "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": "Turns a visit into membership, with the same checks as joining through the invite or discovery listing that started the visit. The sessions of the user switch the guild to membership in place.",
+ "security": [{"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "guild_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the guild", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the guild"
+ }
+ ]
+ }
+ },
"/users/@me/guilds": {
"get": {
"operationId": "list_guilds",
@@ -18670,7 +20757,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Immediately deletes messages the caller has authored, subject to optional date-range and per-context filters (DMs, group DMs, guilds, with optional guild exclusions; or an inaccessible-only mode for contexts the caller is no longer a member of). Requires sudo mode verification. The deletion runs asynchronously; the caller receives a system DM with totals when it completes.",
+ "description": "Immediately deletes messages the caller has authored, subject to optional date-range and per-context filters (DMs, group DMs, guilds, with optional guild exclusions; or an inaccessible-only mode for contexts the caller is no longer a member of). Requires sudo mode verification. The deletion runs asynchronously. When it completes, the caller gets the totals in a system DM, or by email when the instance has direct messages turned off and sends email.",
"security": [{"sessionToken": []}],
"requestBody": {
"required": false,
@@ -20268,24 +22355,78 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Changes the password on instances where people sign in with a username. Requires sudo mode verification. Ends every other session, deletes the recovery kit and returns a token for a new session that replaces the current one. Fails with USERNAME_SIGN_IN_ONLY on email instances.",
+ "description": "Changes the password on instances where people sign in with a username. Requires sudo mode verification. Ends every other session, deletes the recovery kit and returns a token for a new session that replaces the current one. Fails with USERNAME_SIGN_IN_ONLY on email instances.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserPasswordUpdateRequest"}}}
+ }
+ }
+ },
+ "/users/@me/password-change/complete": {
+ "post": {
+ "operationId": "complete_password_change",
+ "summary": "Complete password change",
+ "tags": ["Users"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PasswordChangeCompleteResponse"}}}
+ },
+ "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": "Completes the password change after email verification. Requires the verification proof and new password, and sudo mode verification with the second factor when the account has two-factor authentication. Invalidates all existing sessions and returns the replacement session token.",
"security": [{"sessionToken": []}],
"requestBody": {
"required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserPasswordUpdateRequest"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PasswordChangeCompleteRequest"}}}
}
}
},
- "/users/@me/password-change/complete": {
+ "/users/@me/password-change/resend": {
"post": {
- "operationId": "complete_password_change",
- "summary": "Complete password change",
+ "operationId": "resend_password_change_code",
+ "summary": "Resend password change verification code",
"tags": ["Users"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PasswordChangeCompleteResponse"}}}
- },
+ "204": {"description": "No Content"},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -20325,21 +22466,24 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Completes the password change after email verification. Requires the verification proof and new password. Invalidates all existing sessions and returns the replacement session token.",
+ "description": "Resends the verification code for a password change. Use if the original code was not received. Requires a valid password change ticket.",
"security": [{"sessionToken": []}],
"requestBody": {
"required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PasswordChangeCompleteRequest"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PasswordChangeTicketRequest"}}}
}
}
},
- "/users/@me/password-change/resend": {
+ "/users/@me/password-change/start": {
"post": {
- "operationId": "resend_password_change_code",
- "summary": "Resend password change verification code",
+ "operationId": "start_password_change",
+ "summary": "Start password change",
"tags": ["Users"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PasswordChangeStartResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -20379,23 +22523,23 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Resends the verification code for a password change. Use if the original code was not received. Requires a valid password change ticket.",
+ "description": "Initiates a password change process. Sends a verification code to the user's email address. Returns a ticket for use in subsequent password change steps.",
"security": [{"sessionToken": []}],
"requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PasswordChangeTicketRequest"}}}
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmptyBodyRequest"}}}
}
}
},
- "/users/@me/password-change/start": {
+ "/users/@me/password-change/verify": {
"post": {
- "operationId": "start_password_change",
- "summary": "Start password change",
+ "operationId": "verify_password_change_code",
+ "summary": "Verify password change code",
"tags": ["Users"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PasswordChangeStartResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PasswordChangeVerifyResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -20436,23 +22580,23 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Initiates a password change process. Sends a verification code to the user's email address. Returns a ticket for use in subsequent password change steps.",
+ "description": "Verifies the email code sent during password change. Returns a proof token needed to complete the password change.",
"security": [{"sessionToken": []}],
"requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EmptyBodyRequest"}}}
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PasswordChangeVerifyRequest"}}}
}
}
},
- "/users/@me/password-change/verify": {
+ "/users/@me/preload-messages": {
"post": {
- "operationId": "verify_password_change_code",
- "summary": "Verify password change code",
+ "operationId": "preload_messages_for_channels",
+ "summary": "Preload messages for channels",
"tags": ["Users"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PasswordChangeVerifyResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PreloadMessagesResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -20493,24 +22637,21 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Verifies the email code sent during password change. Returns a proof token needed to complete the password change.",
- "security": [{"sessionToken": []}],
+ "description": "Preloads and caches messages for multiple channels to improve performance when opening those channels. Returns preloaded message data for the specified channels.",
+ "security": [{"botToken": []}, {"sessionToken": []}],
"requestBody": {
"required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PasswordChangeVerifyRequest"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PreloadMessagesRequest"}}}
}
}
},
- "/users/@me/preload-messages": {
+ "/users/@me/premium/reset": {
"post": {
- "operationId": "preload_messages_for_channels",
- "summary": "Preload messages for channels",
+ "operationId": "reset_current_user_premium_state",
+ "summary": "Reset current user premium state",
"tags": ["Users"],
"responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PreloadMessagesResponse"}}}
- },
+ "204": {"description": "No Content"},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -20550,21 +22691,20 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Preloads and caches messages for multiple channels to improve performance when opening those channels. Returns preloaded message data for the specified channels.",
- "security": [{"botToken": []}, {"sessionToken": []}],
- "requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PreloadMessagesRequest"}}}
- }
+ "description": "Staff-only endpoint that clears premium status and related premium metadata for the current user account.",
+ "security": [{"sessionToken": []}]
}
},
- "/users/@me/premium/reset": {
+ "/users/@me/profile-badges/preview": {
"post": {
- "operationId": "reset_current_user_premium_state",
- "summary": "Reset current user premium state",
+ "operationId": "preview_profile_badges",
+ "summary": "Preview profile badges",
"tags": ["Users"],
"responses": {
- "204": {"description": "No Content"},
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProfileBadgePreviewResponse"}}}
+ },
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
@@ -20604,8 +22744,12 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Staff-only endpoint that clears premium status and related premium metadata for the current user account.",
- "security": [{"sessionToken": []}]
+ "description": "Returns the current user's profile badges as other people would see them with the given badge settings applied. Settings left out keep their saved values. Nothing is saved. Labels are localized for the current user.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProfileBadgePreviewRequest"}}}
+ }
}
},
"/users/@me/push/rotate": {
@@ -21485,133 +23629,190 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Saves a message for the current user. Saved messages can be accessed later from the saved messages list. Messages are saved privately.",
+ "description": "Saves a message for the current user. Saved messages can be accessed later from the saved messages list. Messages are saved privately.",
+ "security": [{"sessionToken": []}],
+ "requestBody": {
+ "required": true,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SaveMessageRequest"}}}
+ }
+ }
+ },
+ "/users/@me/saved-messages/{message_id}": {
+ "delete": {
+ "operationId": "unsave_message",
+ "summary": "Unsave message",
+ "tags": ["Users"],
+ "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 message from the current user's saved messages. Does not delete the original message, only removes it from the user's saved collection.",
+ "security": [{"sessionToken": []}],
+ "parameters": [
+ {
+ "name": "message_id",
+ "in": "path",
+ "required": true,
+ "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
+ "description": "The ID of the message"
+ }
+ ]
+ }
+ },
+ "/users/@me/settings": {
+ "get": {
+ "operationId": "get_current_user_settings",
+ "summary": "Get current user settings",
+ "tags": ["Users"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserSettingsResponse"}}}
+ },
+ "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 the current user's settings and preferences, including notification settings, privacy options, and display preferences. Only accessible to the authenticated user.",
+ "security": [{"sessionToken": []}]
+ },
+ "patch": {
+ "operationId": "update_current_user_settings",
+ "summary": "Update current user settings",
+ "tags": ["Users"],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserSettingsResponse"}}}
+ },
+ "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 the current user's settings and preferences. Allows modification of notification settings, privacy options, display preferences, and other user-configurable options. Returns updated settings.",
"security": [{"sessionToken": []}],
"requestBody": {
- "required": true,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SaveMessageRequest"}}}
+ "required": false,
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserSettingsUpdateRequest"}}}
}
}
},
- "/users/@me/saved-messages/{message_id}": {
- "delete": {
- "operationId": "unsave_message",
- "summary": "Unsave message",
- "tags": ["Users"],
- "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 message from the current user's saved messages. Does not delete the original message, only removes it from the user's saved collection.",
- "security": [{"sessionToken": []}],
- "parameters": [
- {
- "name": "message_id",
- "in": "path",
- "required": true,
- "schema": {"description": "The ID of the message", "$ref": "#/components/schemas/SnowflakeType"},
- "description": "The ID of the message"
- }
- ]
- }
- },
- "/users/@me/settings": {
- "get": {
- "operationId": "get_current_user_settings",
- "summary": "Get current user settings",
- "tags": ["Users"],
- "responses": {
- "200": {
- "description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserSettingsResponse"}}}
- },
- "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 the current user's settings and preferences, including notification settings, privacy options, and display preferences. Only accessible to the authenticated user.",
- "security": [{"sessionToken": []}]
- },
- "patch": {
- "operationId": "update_current_user_settings",
- "summary": "Update current user settings",
+ "/users/@me/settings/voice-activity-sharing": {
+ "put": {
+ "operationId": "update_voice_activity_sharing_default",
+ "summary": "Update voice activity sharing default and apply to all friends",
"tags": ["Users"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserSettingsResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserPrivateResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -21652,23 +23853,25 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Updates the current user's settings and preferences. Allows modification of notification settings, privacy options, display preferences, and other user-configurable options. Returns updated settings.",
+ "description": "Sets the default share_voice_activity flag for the current user and rewrites every existing friend relationship to the new value. Dispatches RELATIONSHIP_UPDATE to both parties of each friendship plus USER_UPDATE and USER_SETTINGS_UPDATE for the caller. Enforces a 24-hour cooldown tracked via the user's last_voice_activity_sharing_change_at field. Returns the updated user.",
"security": [{"sessionToken": []}],
"requestBody": {
- "required": false,
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserSettingsUpdateRequest"}}}
+ "required": true,
+ "content": {
+ "application/json": {"schema": {"$ref": "#/components/schemas/VoiceActivitySharingUpdateRequest"}}
+ }
}
}
},
- "/users/@me/settings/voice-activity-sharing": {
- "put": {
- "operationId": "update_voice_activity_sharing_default",
- "summary": "Update voice activity sharing default and apply to all friends",
+ "/users/@me/sudo/email-code": {
+ "post": {
+ "operationId": "send_sudo_email_code",
+ "summary": "Send a code to confirm it is you",
"tags": ["Users"],
"responses": {
"200": {
"description": "Success",
- "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserPrivateResponse"}}}
+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SudoEmailCodeResponse"}}}
},
"400": {
"description": "Bad Request - The request was malformed or contained invalid data",
@@ -21709,14 +23912,8 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Sets the default share_voice_activity flag for the current user and rewrites every existing friend relationship to the new value. Dispatches RELATIONSHIP_UPDATE to both parties of each friendship plus USER_UPDATE and USER_SETTINGS_UPDATE for the caller. Enforces a 24-hour cooldown tracked via the user's last_voice_activity_sharing_change_at field. Returns the updated user.",
- "security": [{"sessionToken": []}],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {"schema": {"$ref": "#/components/schemas/VoiceActivitySharingUpdateRequest"}}
- }
- }
+ "description": "Emails a 6-digit code to the confirmed address, for accounts without two-factor authentication. Accounts with two-factor authentication get 400 SUDO_SECOND_FACTOR_REQUIRED and confirm with that factor instead. Send it back with mfa_method email_code, email_code_ticket and email_code to enter sudo mode.",
+ "security": [{"sessionToken": []}]
}
},
"/users/@me/sudo/mfa-methods": {
@@ -21828,7 +24025,7 @@
"/users/@me/terms-acceptance": {
"post": {
"operationId": "accept_updated_terms",
- "summary": "Accept updated terms of service and privacy policy",
+ "summary": "Accept updated terms of service",
"tags": ["Users"],
"responses": {
"200": {
@@ -21874,7 +24071,7 @@
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}
}
},
- "description": "Records that the user has read and agreed to the current terms of service and privacy policy. Returns the updated private user object.",
+ "description": "Records that the user agreed to the current terms of service and was shown the current privacy policy. Returns the updated private user object.",
"security": [{"sessionToken": []}],
"requestBody": {
"required": false,
@@ -24828,13 +27025,24 @@
},
"premium_type": {
"$ref": "#/components/schemas/UserPremiumTypes",
- "description": "The type of premium subscription"
+ "description": "The type of premium subscription. Deprecated for badge display, use profile_badges"
+ },
+ "premium_since": {
+ "description": "ISO8601 timestamp of when premium was activated. Deprecated for badge display, use profile_badges",
+ "type": "string"
},
- "premium_since": {"description": "ISO8601 timestamp of when premium was activated", "type": "string"},
"premium_lifetime_sequence": {
- "description": "Sequence number for lifetime premium",
+ "description": "Sequence number for lifetime premium. Deprecated for badge display, use profile_badges",
"$ref": "#/components/schemas/Int32Type"
},
+ "profile_badges": {
+ "description": "Profile badges in display order. Empty when there is nothing to show. Older servers omit it",
+ "$ref": "#/components/schemas/ProfileBadgeListResponse"
+ },
+ "operator_pass_since": {
+ "description": "ISO8601 timestamp of when the user got the Operator Pass, or null when absent or hidden. Older servers omit it",
+ "type": ["string", "null"]
+ },
"mutual_friends": {
"description": "Array of mutual friends",
"type": "array",
@@ -24863,7 +27071,7 @@
"description": "Current timezone offset in minutes from UTC for the target user's profile timezone, or null when hidden or unset"
},
"profile_limited": {
- "description": "True when the target user has restricted their profile and the viewer does not meet the visibility tier; bio, pronouns, badges, and connected accounts have been stripped.",
+ "description": "True when the target user has restricted their profile and the viewer does not meet the visibility tier. Bio, pronouns, connected accounts, and the premium and Operator Pass badges have been stripped. Staff, partner, and bug hunter badges remain.",
"type": "boolean"
}
},
@@ -25019,6 +27227,22 @@
"type": "boolean",
"description": "Whether premium perks are temporarily disabled for this account"
},
+ "operator_pass_badge_hidden": {
+ "description": "Whether the Operator Pass badge is hidden from other people. Only present on the current user response. Older servers omit it",
+ "type": "boolean"
+ },
+ "operator_pass_badge_timestamp_hidden": {
+ "description": "Whether the month and year the Operator Pass was first held are hidden from other people. Only present on the current user response. Older servers omit it",
+ "type": "boolean"
+ },
+ "operator_pass_badge_count_hidden": {
+ "description": "Whether the number of Operator Passes held is hidden from other people, on the badge and the Operators' wall. Only present on the current user response. Older servers omit it",
+ "type": "boolean"
+ },
+ "operator_pass_since": {
+ "description": "ISO8601 timestamp of when the account got the Operator Pass, or null without one. Only present on the current user response.",
+ "type": ["string", "null"]
+ },
"password_last_changed_at": {
"description": "ISO8601 timestamp of the last password change",
"type": ["string", "null"]
@@ -25072,7 +27296,7 @@
"description": "Information about a pending bulk message deletion request. Only populated when the legacy delayed-deletion flow is in progress; the new immediate-deletion flow does not surface a pending state here."
},
"age_verified_adult": {
- "description": "Whether the user has verified their age as an adult via credit card verification",
+ "description": "Whether the user has verified their age as an adult",
"type": "boolean"
},
"terms_agreed_at": {
@@ -25080,8 +27304,29 @@
"type": ["string", "null"]
},
"privacy_agreed_at": {
- "description": "ISO8601 timestamp of when the user last agreed to the privacy policy",
+ "description": "ISO8601 timestamp of when the user was last shown the current privacy policy. People are informed of it, they do not agree to it",
"type": ["string", "null"]
+ },
+ "claimed": {
+ "description": "Whether the account can be signed in to again from another device: an email on instances that sign in with an email, a password otherwise",
+ "type": "boolean"
+ },
+ "account_tier": {
+ "description": "How far the account has got with setting up a way to sign in. Clients that do not get it derive it from claimed and verified",
+ "$ref": "#/components/schemas/AccountTierSchema"
+ },
+ "verification_need": {
+ "description": "What the account still has to do before it can use everything, null once it is verified",
+ "anyOf": [{"$ref": "#/components/schemas/AccountVerificationNeedSchema"}, {"type": "null"}]
+ },
+ "has_password": {"description": "Whether the account has a password", "type": "boolean"},
+ "date_of_birth_required": {
+ "description": "Whether the account still has to enter its date of birth, which clients ask for before anything else",
+ "type": "boolean"
+ },
+ "profile_restricted": {
+ "description": "Whether other people see only the username and tag of this account until it has a confirmed email address",
+ "type": "boolean"
}
},
"required": [
@@ -25151,11 +27396,36 @@
"type": "boolean",
"description": "Whether the account has at least one unconsumed backup code"
},
- "has_mfa": {"type": "boolean", "description": "Whether the account can satisfy a sudo mode challenge"}
+ "has_mfa": {"type": "boolean", "description": "Whether the account can satisfy a sudo mode challenge"},
+ "email_code": {
+ "description": "Whether a code sent to the confirmed email address can verify the account, for accounts without MFA",
+ "type": "boolean"
+ },
+ "password": {"description": "Whether the account password can verify the account", "type": "boolean"}
},
"required": ["totp", "webauthn", "backup_codes", "has_mfa"],
"additionalProperties": false
},
+ "SudoEmailCodeResponse": {
+ "type": "object",
+ "properties": {
+ "ticket": {"type": "string", "description": "Ticket to send back with the code in mfa_method email_code"},
+ "code_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": "When the emailed code stops working"
+ },
+ "resend_available_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 another code can be requested"
+ }
+ },
+ "required": ["ticket", "code_expires_at", "resend_available_at"],
+ "additionalProperties": false
+ },
"VoiceActivitySharingUpdateRequest": {
"type": "object",
"properties": {
@@ -25640,11 +27910,11 @@
"$ref": "#/components/schemas/UsernameType"
},
"discriminator": {
- "description": "Discriminator tag of the user",
+ "description": "Discriminator tag of the user, optional on an instance without tags",
"$ref": "#/components/schemas/DiscriminatorType"
}
},
- "required": ["username", "discriminator"]
+ "required": ["username"]
},
"RelationshipListResponse": {"type": "array", "items": {"$ref": "#/components/schemas/RelationshipResponse"}},
"SudoVerificationSchema": {
@@ -25656,15 +27926,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -25785,6 +28064,36 @@
},
"required": ["old_endpoint", "endpoint", "keys"]
},
+ "ProfileBadgePreviewRequest": {
+ "type": "object",
+ "properties": {
+ "premium_badge_hidden": {"description": "Preview with the premium badge hidden", "type": "boolean"},
+ "premium_badge_masked": {"description": "Preview with the premium badge masked", "type": "boolean"},
+ "premium_badge_timestamp_hidden": {
+ "description": "Preview with the premium badge date hidden",
+ "type": "boolean"
+ },
+ "premium_badge_sequence_hidden": {"description": "Preview with the Visionary ID hidden", "type": "boolean"},
+ "operator_pass_badge_hidden": {
+ "description": "Preview with the Operator Pass badge hidden, or shown when false",
+ "type": "boolean"
+ },
+ "operator_pass_badge_timestamp_hidden": {
+ "description": "Preview with the month and year the Operator Pass was first held hidden",
+ "type": "boolean"
+ },
+ "operator_pass_badge_count_hidden": {
+ "description": "Preview with the number of Operator Passes held hidden",
+ "type": "boolean"
+ }
+ }
+ },
+ "ProfileBadgePreviewResponse": {
+ "type": "object",
+ "properties": {"profile_badges": {"$ref": "#/components/schemas/ProfileBadgeListResponse"}},
+ "required": ["profile_badges"],
+ "additionalProperties": false
+ },
"PreloadMessagesRequest": {
"type": "object",
"properties": {
@@ -25842,7 +28151,36 @@
"properties": {
"ticket": {"description": "Password change ticket identifier", "type": "string"},
"verification_proof": {"description": "Proof token obtained from verifying the email code", "type": "string"},
- "new_password": {"description": "The new password to set", "$ref": "#/components/schemas/PasswordType"}
+ "new_password": {"description": "The new password to set", "$ref": "#/components/schemas/PasswordType"},
+ "password": {
+ "description": "Account password for sudo verification",
+ "$ref": "#/components/schemas/PasswordType"
+ },
+ "mfa_method": {
+ "description": "MFA method to use for verification",
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
+ "x-enumDescriptions": [
+ "Time-based one-time password authentication via authenticator app",
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
+ ],
+ "enum": ["totp", "webauthn", "email_code"],
+ "type": "string"
+ },
+ "mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "webauthn_response": {
+ "description": "WebAuthn authentication response",
+ "$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
+ },
+ "webauthn_challenge": {"description": "WebAuthn challenge string", "type": "string"}
},
"required": ["ticket", "verification_proof", "new_password"]
},
@@ -25868,15 +28206,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -26098,15 +28445,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -26185,15 +28541,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -26229,15 +28594,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -26276,15 +28650,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -26358,15 +28741,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -26443,15 +28835,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -27075,6 +29476,186 @@
"additionalProperties": false
},
"GuildListResponse": {"type": "array", "items": {"$ref": "#/components/schemas/GuildResponse"}},
+ "GuildResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier for this guild",
+ "$ref": "#/components/schemas/SnowflakeStringType"
+ },
+ "name": {"type": "string", "description": "The name of the guild"},
+ "icon": {"description": "The hash of the guild icon", "type": ["string", "null"]},
+ "banner": {"description": "The hash of the guild banner", "type": ["string", "null"]},
+ "banner_width": {
+ "description": "The width of the guild banner in pixels",
+ "anyOf": [{"$ref": "#/components/schemas/Int32Type"}, {"type": "null"}]
+ },
+ "banner_height": {
+ "description": "The height of the guild banner in pixels",
+ "anyOf": [{"$ref": "#/components/schemas/Int32Type"}, {"type": "null"}]
+ },
+ "splash": {"description": "The hash of the guild splash screen", "type": ["string", "null"]},
+ "splash_width": {
+ "description": "The width of the guild splash in pixels",
+ "anyOf": [{"$ref": "#/components/schemas/Int32Type"}, {"type": "null"}]
+ },
+ "splash_height": {
+ "description": "The height of the guild splash in pixels",
+ "anyOf": [{"$ref": "#/components/schemas/Int32Type"}, {"type": "null"}]
+ },
+ "splash_card_alignment": {
+ "description": "The alignment of the splash card",
+ "x-enumNames": ["CENTER", "LEFT", "RIGHT"],
+ "x-enumDescriptions": [
+ "Splash card is centred",
+ "Splash card is aligned to the left",
+ "Splash card is aligned to the right"
+ ],
+ "enum": [0, 1, 2],
+ "type": "integer"
+ },
+ "embed_splash": {"description": "The hash of the embedded invite splash", "type": ["string", "null"]},
+ "embed_splash_width": {
+ "description": "The width of the embedded invite splash in pixels",
+ "anyOf": [{"$ref": "#/components/schemas/Int32Type"}, {"type": "null"}]
+ },
+ "embed_splash_height": {
+ "description": "The height of the embedded invite splash in pixels",
+ "anyOf": [{"$ref": "#/components/schemas/Int32Type"}, {"type": "null"}]
+ },
+ "vanity_url_code": {"description": "The vanity URL code for the guild", "type": ["string", "null"]},
+ "owner_id": {"description": "The ID of the guild owner", "$ref": "#/components/schemas/SnowflakeStringType"},
+ "system_channel_id": {
+ "description": "The ID of the channel where system messages are sent",
+ "anyOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}, {"type": "null"}]
+ },
+ "system_channel_flags": {"$ref": "#/components/schemas/SystemChannelFlags"},
+ "rules_channel_id": {
+ "description": "The ID of the rules channel",
+ "anyOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}, {"type": "null"}]
+ },
+ "afk_channel_id": {
+ "description": "The ID of the AFK voice channel",
+ "anyOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}, {"type": "null"}]
+ },
+ "afk_timeout": {
+ "description": "AFK timeout in seconds before moving users to the AFK channel",
+ "$ref": "#/components/schemas/Int32Type"
+ },
+ "features": {
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/GuildFeatureSchema"},
+ "description": "Array of guild feature flags"
+ },
+ "verification_level": {
+ "$ref": "#/components/schemas/GuildVerificationLevel",
+ "description": "Required verification level for members to participate"
+ },
+ "mfa_level": {"$ref": "#/components/schemas/GuildMFALevel"},
+ "nsfw_level": {
+ "$ref": "#/components/schemas/NSFWLevel",
+ "description": "The NSFW level of the guild (legacy; derived from nsfw)"
+ },
+ "nsfw": {"type": "boolean", "description": "Whether the guild is marked as adult (18+) content"},
+ "content_warning_level": {
+ "$ref": "#/components/schemas/ContentWarningLevel",
+ "description": "Whether the guild displays a content warning before entering"
+ },
+ "content_warning_text": {
+ "description": "Custom guild-wide content warning text; null falls back to a localized default",
+ "type": ["string", "null"]
+ },
+ "explicit_content_filter": {"$ref": "#/components/schemas/GuildExplicitContentFilter"},
+ "default_message_notifications": {"$ref": "#/components/schemas/DefaultMessageNotifications"},
+ "disabled_operations": {"$ref": "#/components/schemas/GuildOperations"},
+ "message_history_cutoff": {
+ "description": "ISO8601 timestamp controlling how far back members without Read Message History can access messages. When null, no historical access is allowed.",
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ]
+ },
+ "permissions": {
+ "description": "The current user permissions in this guild when available",
+ "$ref": "#/components/schemas/Permissions"
+ },
+ "roles": {
+ "description": "Roles in the guild from gateway state",
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/GuildRoleResponse"}
+ },
+ "emojis": {
+ "description": "Emojis in the guild from gateway state",
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/GuildEmojiResponse"}
+ },
+ "stickers": {
+ "description": "Stickers in the guild from gateway state",
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/GuildStickerResponse"}
+ },
+ "channels": {
+ "description": "Channels visible to the requesting user from gateway state",
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/ChannelResponse"}
+ },
+ "member_count": {
+ "description": "Total number of members in the guild",
+ "$ref": "#/components/schemas/Int32Type"
+ },
+ "online_count": {
+ "description": "Number of online members visible in the guild",
+ "$ref": "#/components/schemas/Int32Type"
+ },
+ "approximate_member_count": {
+ "description": "Approximate total member count (only when with_counts is true)",
+ "$ref": "#/components/schemas/Int32Type"
+ },
+ "approximate_presence_count": {
+ "description": "Approximate online member count (only when with_counts is true)",
+ "$ref": "#/components/schemas/Int32Type"
+ },
+ "threads_active": {
+ "type": "boolean",
+ "const": true,
+ "description": "Present and true when threads, forum and media channels are active in this guild for the requesting client. Only set on the current user guild list",
+ "x-fluxer-experiment": "channel_threads"
+ },
+ "visiting": {
+ "type": "boolean",
+ "const": true,
+ "description": "Present and true when the requesting user is visiting the guild without being a member",
+ "x-fluxer-experiment": "guild_visits"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "splash_card_alignment",
+ "owner_id",
+ "system_channel_flags",
+ "afk_timeout",
+ "features",
+ "verification_level",
+ "mfa_level",
+ "nsfw_level",
+ "nsfw",
+ "content_warning_level",
+ "explicit_content_filter",
+ "default_message_notifications",
+ "disabled_operations"
+ ],
+ "additionalProperties": false
+ },
+ "GuildVisitListResponse": {
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/GuildVisitResponse"},
+ "description": "Guilds the current user is visiting"
+ },
"GiftCodeMetadataListResponse": {
"type": "array",
"items": {"$ref": "#/components/schemas/GiftCodeMetadataResponse"}
@@ -27190,6 +29771,30 @@
},
"required": ["scope_id", "sound_id"]
},
+ "EmailVerificationCodeResponse": {
+ "type": "object",
+ "properties": {
+ "code_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": "When the emailed code stops working"
+ },
+ "resend_available_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 another code can be requested"
+ }
+ },
+ "required": ["code_expires_at", "resend_available_at"],
+ "additionalProperties": false
+ },
+ "EmailVerificationConfirmRequest": {
+ "type": "object",
+ "properties": {"code": {"description": "The 6-digit code from the email", "type": "string"}},
+ "required": ["code"]
+ },
"EmailChangeVerifyOriginalRequest": {
"type": "object",
"properties": {
@@ -27320,15 +29925,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -27337,6 +29951,23 @@
},
"required": ["email_token"]
},
+ "DateOfBirthUpdateRequest": {
+ "type": "object",
+ "properties": {"date_of_birth": {"description": "Date of birth in YYYY-MM-DD format", "type": "string"}},
+ "required": ["date_of_birth"]
+ },
+ "DateOfBirthUpdateResponse": {
+ "type": "object",
+ "properties": {
+ "user": {"$ref": "#/components/schemas/UserPrivateResponse"},
+ "entry": {
+ "anyOf": [{"$ref": "#/components/schemas/GuildEntryResult"}, {"type": "null"}],
+ "description": "Community to open next, from an invite used during sign-up"
+ }
+ },
+ "required": ["user", "entry"],
+ "additionalProperties": false
+ },
"ConnectionType": {
"description": "The type of external connection",
"x-enumNames": ["BLUESKY", "DOMAIN"],
@@ -27454,6 +30085,25 @@
"additionalProperties": false
},
"ConnectionListResponse": {"type": "array", "items": {"$ref": "#/components/schemas/ConnectionResponse"}},
+ "ClaimAccountRequest": {
+ "type": "object",
+ "properties": {
+ "email": {
+ "description": "Email address to add to the account. Required except on username instances",
+ "$ref": "#/components/schemas/EmailType"
+ },
+ "password": {
+ "description": "Password to set at the same time. Required on username instances and instances that cannot send email",
+ "$ref": "#/components/schemas/PasswordType"
+ }
+ }
+ },
+ "ClaimAccountResponse": {
+ "oneOf": [
+ {"$ref": "#/components/schemas/NoneClaimAccountResponse"},
+ {"$ref": "#/components/schemas/ConfirmEmailClaimAccountResponse"}
+ ]
+ },
"CreatePrivateChannelRequest": {
"type": "object",
"properties": {
@@ -27636,12 +30286,6 @@
},
"ChannelListResponse": {"type": "array", "items": {"$ref": "#/components/schemas/ChannelResponse"}},
"ApplicationListResponse": {"type": "array", "items": {"$ref": "#/components/schemas/ApplicationResponse"}},
- "UrlResponse": {
- "type": "object",
- "properties": {"url": {"type": "string", "description": "The URL to redirect to"}},
- "required": ["url"],
- "additionalProperties": false
- },
"UserUpdateWithVerificationRequest": {
"type": "object",
"properties": {
@@ -27686,6 +30330,18 @@
"description": "Whether to hide premium badge timestamp"
},
"premium_badge_sequence_hidden": {"type": "boolean", "description": "Whether to hide premium badge sequence"},
+ "operator_pass_badge_hidden": {
+ "type": "boolean",
+ "description": "Whether to hide the Operator Pass badge from other people. Either value replaces the default"
+ },
+ "operator_pass_badge_timestamp_hidden": {
+ "type": "boolean",
+ "description": "Whether to hide from other people the month and year the Operator Pass was first held"
+ },
+ "operator_pass_badge_count_hidden": {
+ "type": "boolean",
+ "description": "Whether to hide from other people how many Operator Passes are held, on the badge and the Operators' wall"
+ },
"premium_enabled_override": {"type": "boolean", "description": "Override premium enabled state"},
"has_dismissed_premium_onboarding": {
"type": "boolean",
@@ -27699,15 +30355,24 @@
"email_token": {"description": "Email change token for updating email", "type": "string"},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -27837,6 +30502,22 @@
"type": "boolean",
"description": "Whether premium perks are temporarily disabled for this account"
},
+ "operator_pass_badge_hidden": {
+ "description": "Whether the Operator Pass badge is hidden from other people. Only present on the current user response. Older servers omit it",
+ "type": "boolean"
+ },
+ "operator_pass_badge_timestamp_hidden": {
+ "description": "Whether the month and year the Operator Pass was first held are hidden from other people. Only present on the current user response. Older servers omit it",
+ "type": "boolean"
+ },
+ "operator_pass_badge_count_hidden": {
+ "description": "Whether the number of Operator Passes held is hidden from other people, on the badge and the Operators' wall. Only present on the current user response. Older servers omit it",
+ "type": "boolean"
+ },
+ "operator_pass_since": {
+ "description": "ISO8601 timestamp of when the account got the Operator Pass, or null without one. Only present on the current user response.",
+ "type": ["string", "null"]
+ },
"password_last_changed_at": {
"description": "ISO8601 timestamp of the last password change",
"type": ["string", "null"]
@@ -27890,7 +30571,7 @@
"description": "Information about a pending bulk message deletion request. Only populated when the legacy delayed-deletion flow is in progress; the new immediate-deletion flow does not surface a pending state here."
},
"age_verified_adult": {
- "description": "Whether the user has verified their age as an adult via credit card verification",
+ "description": "Whether the user has verified their age as an adult",
"type": "boolean"
},
"terms_agreed_at": {
@@ -27898,9 +30579,30 @@
"type": ["string", "null"]
},
"privacy_agreed_at": {
- "description": "ISO8601 timestamp of when the user last agreed to the privacy policy",
+ "description": "ISO8601 timestamp of when the user was last shown the current privacy policy. People are informed of it, they do not agree to it",
"type": ["string", "null"]
},
+ "claimed": {
+ "description": "Whether the account can be signed in to again from another device: an email on instances that sign in with an email, a password otherwise",
+ "type": "boolean"
+ },
+ "account_tier": {
+ "description": "How far the account has got with setting up a way to sign in. Clients that do not get it derive it from claimed and verified",
+ "$ref": "#/components/schemas/AccountTierSchema"
+ },
+ "verification_need": {
+ "description": "What the account still has to do before it can use everything, null once it is verified",
+ "anyOf": [{"$ref": "#/components/schemas/AccountVerificationNeedSchema"}, {"type": "null"}]
+ },
+ "has_password": {"description": "Whether the account has a password", "type": "boolean"},
+ "date_of_birth_required": {
+ "description": "Whether the account still has to enter its date of birth, which clients ask for before anything else",
+ "type": "boolean"
+ },
+ "profile_restricted": {
+ "description": "Whether other people see only the username and tag of this account until it has a confirmed email address",
+ "type": "boolean"
+ },
"token": {
"description": "Authentication token for the replacement session, present when the password was changed",
"type": "string"
@@ -28142,6 +30844,12 @@
},
"required": ["price_id"]
},
+ "UrlResponse": {
+ "type": "object",
+ "properties": {"url": {"type": "string", "description": "The URL to redirect to"}},
+ "required": ["url"],
+ "additionalProperties": false
+ },
"StreamUpdateBodySchema": {
"type": "object",
"properties": {
@@ -28248,6 +30956,12 @@
"required": ["id", "guild_id", "name", "animated", "allow_cloning"],
"additionalProperties": false
},
+ "AdminSignedDownloadResponse": {
+ "type": "string",
+ "format": "binary",
+ "contentEncoding": "binary",
+ "description": "The archive or report evidence file"
+ },
"GlobalSearchMessagesRequest": {
"type": "object",
"properties": {
@@ -28932,6 +31646,10 @@
"type": "boolean",
"description": "Whether premium purchase is disabled for this account"
},
+ "payment_dispute_open": {
+ "type": "boolean",
+ "description": "Whether a payment dispute this account made is open, which blocks every purchase until it closes"
+ },
"premium_perks_disabled": {
"type": "boolean",
"description": "Whether the user temporarily disabled premium perks"
@@ -28956,6 +31674,7 @@
"premium_grace_ends_at",
"premium_enabled_override",
"premium_purchase_disabled",
+ "payment_dispute_open",
"premium_perks_disabled",
"self_hosted",
"bot"
@@ -29014,13 +31733,13 @@
"charge_id": {"type": ["string", "null"]},
"refund_id": {"type": ["string", "null"]},
"refunded_amount_cents": {
- "type": "integer",
- "minimum": -9007199254740991,
- "maximum": 9007199254740991,
- "description": "Amount actually refunded so far, in the currency minor unit; 0 until the provider confirms success"
+ "anyOf": [{"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991}, {"type": "null"}],
+ "description": "Amount actually refunded so far, in the currency minor unit; 0 until the provider confirms success, null when the store does not report it"
},
- "invoice_amount_paid_cents": {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991},
- "currency": {"type": "string"},
+ "invoice_amount_paid_cents": {
+ "anyOf": [{"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991}, {"type": "null"}]
+ },
+ "currency": {"type": ["string", "null"]},
"subscription_id": {
"description": "Subscription that was cancelled along with the refund, when applicable",
"type": ["string", "null"]
@@ -29028,6 +31747,10 @@
"status": {
"description": "Provider status of the refund (e.g. pending, succeeded, failed); money only moved once succeeded",
"type": ["string", "null"]
+ },
+ "provider": {
+ "description": "Who took the payment that was refunded",
+ "$ref": "#/components/schemas/SelfServeRefundProvider"
}
},
"required": [
@@ -29039,7 +31762,8 @@
"invoice_amount_paid_cents",
"currency",
"subscription_id",
- "status"
+ "status",
+ "provider"
],
"additionalProperties": false
},
@@ -29075,6 +31799,10 @@
"cancels_subscription": {
"type": "boolean",
"description": "Whether issuing the refund will also cancel the active subscription"
+ },
+ "provider": {
+ "anyOf": [{"$ref": "#/components/schemas/SelfServeRefundProvider"}, {"type": "null"}],
+ "description": "Who took the payment for the purchase considered for refund"
}
},
"required": [
@@ -29086,7 +31814,8 @@
"paid_at",
"refund_window_expires_at",
"cooldown_expires_at",
- "cancels_subscription"
+ "cancels_subscription",
+ "provider"
],
"additionalProperties": false
},
@@ -29196,6 +31925,660 @@
},
"required": ["billing_cycle"]
},
+ "OperatorPassWallResponse": {
+ "type": "object",
+ "properties": {
+ "version": {
+ "type": "integer",
+ "minimum": -9007199254740991,
+ "maximum": 9007199254740991,
+ "description": "The wall version, it rises with every published change"
+ },
+ "operators": {
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/OperatorPassWallOperatorResponse"},
+ "description": "Every Operator on the wall in display order: the highest tier first, then by when the Operator got their first pass, with business listings last in order of their first pass"
+ }
+ },
+ "required": ["version", "operators"],
+ "additionalProperties": false
+ },
+ "OperatorPassWaitlistUnsubscribeResponse": {
+ "type": "object",
+ "properties": {"status": {"type": "string", "const": "unsubscribed"}},
+ "required": ["status"],
+ "additionalProperties": false
+ },
+ "OperatorPassWaitlistFollowupRequest": {
+ "type": "object",
+ "properties": {
+ "token": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256,
+ "description": "followup_token from the waitlist signup response"
+ },
+ "picks": {
+ "maxItems": 32,
+ "type": "array",
+ "items": {"type": "string", "maxLength": 64},
+ "description": "What is most important, 0 to 7 unique keys out of wall_spot, badge, operators_channel, early_testing, yearly_list, instance_mark, other. An unknown or repeated key returns OPERATOR_PASS_WAITLIST_FOLLOWUP_INVALID"
+ },
+ "about": {
+ "description": "Which descriptions fit the visitor, 0 to 6 unique keys out of self_hosting_new, self_hosting_experienced, bots_new, bots_experienced, support_fluxer, community_owner. When omitted, the descriptions stored before stay as they are, and an empty array clears them. An unknown or repeated key returns OPERATOR_PASS_WAITLIST_FOLLOWUP_INVALID",
+ "maxItems": 32,
+ "type": "array",
+ "items": {"type": "string", "maxLength": 64}
+ },
+ "other_text": {
+ "description": "Plain text answer for other, only with other in picks. Trimmed, then 1 to 500 characters, without control characters other than line breaks and tabs",
+ "anyOf": [{"type": "string", "maxLength": 4000}, {"type": "null"}]
+ }
+ },
+ "required": ["token", "picks"],
+ "additionalProperties": false
+ },
+ "OperatorPassWaitlistConfirmRequest": {
+ "type": "object",
+ "properties": {
+ "token": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 256,
+ "description": "Token from the confirmation email"
+ }
+ },
+ "required": ["token"]
+ },
+ "OperatorPassWaitlistConfirmResponse": {
+ "type": "object",
+ "properties": {"status": {"type": "string", "const": "confirmed"}},
+ "required": ["status"],
+ "additionalProperties": false
+ },
+ "OperatorPassWaitlistChallengeResponse": {
+ "type": "object",
+ "properties": {
+ "captcha_provider": {
+ "description": "Captcha provider the waitlist expects",
+ "$ref": "#/components/schemas/CaptchaProviderSchema"
+ },
+ "altcha_challenge": {
+ "description": "ALTCHA challenge to solve when the provider is altcha",
+ "$ref": "#/components/schemas/OperatorPassAltchaChallenge"
+ }
+ },
+ "required": ["captcha_provider"],
+ "additionalProperties": false
+ },
+ "OperatorPassWaitlistRequest": {
+ "type": "object",
+ "properties": {
+ "email": {
+ "type": "string",
+ "maxLength": 254,
+ "format": "email",
+ "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
+ "description": "Email address to put on the waitlist"
+ },
+ "country_code": {
+ "description": "Two-letter country code used to pick the price currency. The request GeoIP country is used when omitted.",
+ "type": "string"
+ },
+ "price_feedback": {"$ref": "#/components/schemas/OperatorPassPriceFeedbackSchema"},
+ "currency": {
+ "description": "Currency of the early bird price the visitor was shown",
+ "$ref": "#/components/schemas/OperatorPassCurrencySchema"
+ }
+ },
+ "required": ["email", "price_feedback", "currency"],
+ "additionalProperties": false
+ },
+ "OperatorPassWaitlistResponse": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "const": "pending",
+ "description": "A confirmation email is on its way when the address can join"
+ },
+ "followup_token": {
+ "type": "string",
+ "description": "Signed token for the follow-up question, valid for 30 minutes. Every signup gets one of the same shape, and only one issued for a new waitlist entry stores an answer"
+ }
+ },
+ "required": ["status", "followup_token"],
+ "additionalProperties": false
+ },
+ "OperatorPassStateResponse": {
+ "type": "object",
+ "properties": {
+ "phase": {"$ref": "#/components/schemas/OperatorPassPhaseSchema"},
+ "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))$",
+ "description": "The server time the state was computed at"
+ },
+ "sale_opens_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When sales open, null while no sale date is set"
+ },
+ "price_rises_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When the early bird price ends, null while no sale date is set"
+ },
+ "currency": {"$ref": "#/components/schemas/OperatorPassCurrencySchema"},
+ "price_minor": {
+ "type": "integer",
+ "minimum": -9007199254740991,
+ "maximum": 9007199254740991,
+ "description": "Current price of one pass in minor units"
+ },
+ "max_quantity": {
+ "type": "integer",
+ "minimum": -9007199254740991,
+ "maximum": 9007199254740991,
+ "description": "Most passes one checkout can buy, FLUXER_OPERATOR_PASS_MAX_QUANTITY, 25 by default"
+ },
+ "withdrawal_rule": {
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassWithdrawalRuleResponse"}, {"type": "null"}],
+ "description": "A withdrawal right that cannot be waived, for buyers in a country that has one, null otherwise. Checkout shows the matching box text then"
+ },
+ "quote": {"type": "string", "description": "Signed price quote to send back with checkout"},
+ "holder": {
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassHolderResponse"}, {"type": "null"}],
+ "description": "The passes held by the current account, null otherwise"
+ },
+ "purchase_blocked_reason": {
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassPurchaseBlockedReasonSchema"}, {"type": "null"}],
+ "description": "Why the current account cannot buy passes, null when it can"
+ },
+ "donation": {"$ref": "#/components/schemas/OperatorPassDonationOptionsResponse"}
+ },
+ "required": [
+ "phase",
+ "now",
+ "sale_opens_at",
+ "price_rises_at",
+ "currency",
+ "price_minor",
+ "max_quantity",
+ "withdrawal_rule",
+ "quote",
+ "holder",
+ "purchase_blocked_reason",
+ "donation"
+ ],
+ "additionalProperties": false
+ },
+ "OperatorPassLatestReleaseResponse": {
+ "type": "object",
+ "properties": {
+ "release": {
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassReleaseResponse"}, {"type": "null"}],
+ "description": "The latest published list, null before the first one"
+ }
+ },
+ "required": ["release"],
+ "additionalProperties": false
+ },
+ "OperatorPassWithdrawRequest": {
+ "type": "object",
+ "properties": {
+ "name": {"type": "string", "minLength": 1, "maxLength": 200, "description": "Name of the buyer who withdraws"}
+ },
+ "required": ["name"]
+ },
+ "OperatorPassPurchaseResponse": {
+ "type": "object",
+ "properties": {
+ "id": {"type": "string", "description": "Identifier of the purchase, the Stripe checkout session ID"},
+ "status": {"$ref": "#/components/schemas/OperatorPassPurchaseStatusSchema"},
+ "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": {"$ref": "#/components/schemas/OperatorPassCurrencySchema"},
+ "purchased_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When the payment settled, null while pending"
+ },
+ "delivered_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When the passes were delivered, null while pending"
+ },
+ "waiver_consent_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When the buyer ticked the box at checkout"
+ },
+ "withdrawal_country": {
+ "description": "Country whose withdrawal right applies to the purchase, null when the waiver applies",
+ "type": ["string", "null"]
+ },
+ "withdrawal_ends_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When the right of withdrawal ends, null when the purchase has none: delivered passes outside a withdrawal_country. Under a country rule this is the end of withdrawal_ends_on in America/Rio_Branco"
+ },
+ "withdrawal_ends_on": {
+ "description": "The last day of the cancel window under a country rule, as YYYY-MM-DD in America/Rio_Branco. Show it as is, without converting time zones",
+ "anyOf": [
+ {
+ "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])))$"
+ },
+ {"type": "null"}
+ ]
+ },
+ "withdrawn_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When the buyer last withdrew"
+ },
+ "has_donation": {"type": "boolean", "description": "Whether a monthly donation was added at checkout"},
+ "can_withdraw": {
+ "type": "boolean",
+ "description": "Whether the whole purchase can be withdrawn now, only while paid passes are not delivered yet"
+ }
+ },
+ "required": [
+ "id",
+ "status",
+ "quantity",
+ "amount_minor",
+ "currency",
+ "purchased_at",
+ "delivered_at",
+ "waiver_consent_at",
+ "withdrawal_country",
+ "withdrawal_ends_at",
+ "withdrawn_at",
+ "has_donation",
+ "can_withdraw"
+ ],
+ "additionalProperties": false
+ },
+ "OperatorPassPurchaseListResponse": {
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/OperatorPassPurchaseResponse"}
+ },
+ "OperatorPassPassesResponse": {
+ "type": "object",
+ "properties": {
+ "count": {
+ "type": "integer",
+ "minimum": -9007199254740991,
+ "maximum": 9007199254740991,
+ "description": "How many passes the account holds now"
+ },
+ "passes": {
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/OperatorPassUnitResponse"},
+ "description": "Passes the account holds, oldest first"
+ },
+ "incoming_offers": {
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/OperatorPassOfferResponse"},
+ "description": "Open offers to the account"
+ },
+ "outgoing_offers": {
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/OperatorPassOfferResponse"},
+ "description": "Open offers the account made"
+ },
+ "passed_on": {
+ "description": "Completed offers the account made, the passes it passed on, oldest first",
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/OperatorPassOfferResponse"}
+ }
+ },
+ "required": ["count", "passes", "incoming_offers", "outgoing_offers"],
+ "additionalProperties": false
+ },
+ "OperatorPassOfferCreateRequest": {
+ "type": "object",
+ "properties": {
+ "recipient_id": {
+ "description": "ID of the user to pass the pass on to. Send this or username and discriminator",
+ "$ref": "#/components/schemas/SnowflakeType"
+ },
+ "username": {
+ "description": "Username of the user to pass the pass on to, as in a friend request by tag. Send it with discriminator",
+ "$ref": "#/components/schemas/UsernameType"
+ },
+ "discriminator": {
+ "description": "Discriminator tag of that user",
+ "$ref": "#/components/schemas/DiscriminatorType"
+ },
+ "confirm_last_pass": {
+ "description": "Must be true when this is the last pass on the account, because passing it on removes the badge and the wall listing",
+ "type": "boolean"
+ }
+ }
+ },
+ "OperatorPassOfferResponse": {
+ "type": "object",
+ "properties": {
+ "id": {"type": "string", "description": "ID of the offer"},
+ "pass_id": {"type": "string", "description": "ID of the pass on offer"},
+ "status": {"$ref": "#/components/schemas/OperatorPassOfferStatusSchema"},
+ "sender": {
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassOfferUserResponse"}, {"type": "null"}],
+ "description": "Who passes the pass on, null when the account is gone"
+ },
+ "recipient": {
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassOfferUserResponse"}, {"type": "null"}],
+ "description": "Who gets the pass, null when the account is gone"
+ },
+ "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 sender made the offer"
+ },
+ "accepted_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When the recipient accepted"
+ },
+ "arrives_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": "The earliest time the pass can move to the recipient once accepted, when the transfer lock ends"
+ },
+ "ended_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When the offer completed or ended"
+ }
+ },
+ "required": [
+ "id",
+ "pass_id",
+ "status",
+ "sender",
+ "recipient",
+ "created_at",
+ "accepted_at",
+ "arrives_at",
+ "ended_at"
+ ],
+ "additionalProperties": false
+ },
+ "OperatorPassOfferAcceptRequest": {
+ "type": "object",
+ "properties": {
+ "accept_terms": {
+ "type": "boolean",
+ "description": "Whether the recipient accepted the Operator Pass terms with the box next to Accept. Must be true"
+ },
+ "wall_name": {
+ "description": "Name for the Operators' wall, required unless wall_opt_out is true. Keeps the current name when the account is already listed",
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassWallNameType"}, {"type": "null"}]
+ },
+ "wall_opt_out": {
+ "description": "Whether the recipient chose not to be listed on the Operators' wall",
+ "type": "boolean"
+ }
+ },
+ "required": ["accept_terms"]
+ },
+ "OperatorPassListingUpdateRequest": {
+ "type": "object",
+ "properties": {
+ "wall_name": {
+ "description": "The name to list, required unless wall_opt_out is true",
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassWallNameType"}, {"type": "null"}]
+ },
+ "wall_opt_out": {"type": "boolean", "description": "Whether to stay off the Operators' wall"},
+ "keep_as_is": {
+ "description": "Whether profile name and avatar changes stay off the wall, unchanged when omitted",
+ "type": "boolean"
+ },
+ "release_list_opt_in": {
+ "description": "Whether to put the wall name in every yearly The Operators of list, unchanged when omitted",
+ "type": "boolean"
+ }
+ },
+ "required": ["wall_opt_out"]
+ },
+ "OperatorPassListingResponse": {
+ "type": "object",
+ "properties": {
+ "wall_name": {
+ "description": "The latest name the holder submitted, null when not listed",
+ "type": ["string", "null"]
+ },
+ "wall_opt_out": {"type": "boolean", "description": "Whether the holder chose not to be listed"},
+ "keep_as_is": {
+ "type": "boolean",
+ "description": "Whether profile name and avatar changes stay off the wall instead of becoming new pending changes"
+ },
+ "release_list_opt_in": {
+ "type": "boolean",
+ "description": "Whether the holder chose to have their wall name in every yearly The Operators of list. Off by default"
+ },
+ "status": {"$ref": "#/components/schemas/OperatorPassListingStatusSchema"},
+ "display_state": {
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassWallDisplayStateSchema"}, {"type": "null"}],
+ "description": "What the wall shows, null when not listed"
+ },
+ "review_state": {
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassWallReviewStateSchema"}, {"type": "null"}],
+ "description": "Review state, null before anything was submitted"
+ },
+ "shown_name": {
+ "description": "The name the wall shows right now, null when not listed",
+ "type": ["string", "null"]
+ },
+ "shown_avatar_url": {
+ "anyOf": [{"type": "string", "format": "uri"}, {"type": "null"}],
+ "description": "The avatar the wall shows right now, null for the default avatar"
+ },
+ "pending_name": {
+ "description": "The name waiting for review, null when nothing is pending",
+ "type": ["string", "null"]
+ },
+ "pending_since": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When the pending change was submitted"
+ },
+ "review_due_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When the review is due, 72 hours after submission"
+ },
+ "decline_reason": {
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassWallDeclineReasonSchema"}, {"type": "null"}],
+ "description": "Why staff declined the latest change, null otherwise"
+ },
+ "decline_note": {
+ "description": "The facts staff gave for the decline, null otherwise",
+ "type": ["string", "null"]
+ },
+ "declined_name": {"description": "The declined name, null when none is", "type": ["string", "null"]},
+ "listed_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When the listing went on the Operators' wall, null unless listed"
+ },
+ "release_year": {
+ "anyOf": [{"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991}, {"type": "null"}],
+ "description": "The year of the latest published The Operators of list the name is in, null when none or after an erasure"
+ },
+ "has_wall": {
+ "type": "boolean",
+ "description": "Whether the account holds the pass, so it shows on the Operators' wall"
+ },
+ "pass_count": {
+ "type": "integer",
+ "minimum": -9007199254740991,
+ "maximum": 9007199254740991,
+ "description": "How many passes the account holds now, shown to the holder in every case"
+ }
+ },
+ "required": [
+ "wall_name",
+ "wall_opt_out",
+ "keep_as_is",
+ "release_list_opt_in",
+ "status",
+ "display_state",
+ "review_state",
+ "shown_name",
+ "shown_avatar_url",
+ "pending_name",
+ "pending_since",
+ "review_due_at",
+ "decline_reason",
+ "decline_note",
+ "declined_name",
+ "listed_at",
+ "release_year",
+ "has_wall",
+ "pass_count"
+ ],
+ "additionalProperties": false
+ },
+ "OperatorPassCheckoutRequest": {
+ "type": "object",
+ "properties": {
+ "quantity": {
+ "default": 1,
+ "description": "How many passes to buy, all of them are delivered to the account of the buyer",
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100
+ },
+ "country_code": {
+ "description": "Two-letter country code used to pick the price currency. The request GeoIP country is used when omitted.",
+ "type": "string"
+ },
+ "quote": {"description": "Quote from the state response the buyer saw", "type": "string", "maxLength": 2048},
+ "donation_amount_minor": {
+ "description": "Optional monthly donation in minor units of the pass currency",
+ "anyOf": [{"type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991}, {"type": "null"}]
+ },
+ "waiver_consent": {
+ "description": "Whether the buyer ticked the required box asking for delivery as soon as they pay and acknowledging that the bonus is not part of what they pay for. Outside a withdrawal_rule country the box also acknowledges losing the right of withdrawal once the passes are delivered. Must be true",
+ "type": "boolean"
+ },
+ "wall_name": {
+ "description": "Name for the Operators' wall, required unless wall_opt_out is true. Keeps the current name when the account is already listed",
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassWallNameType"}, {"type": "null"}]
+ },
+ "wall_opt_out": {
+ "description": "Whether the buyer chose not to be listed on the Operators' wall",
+ "type": "boolean"
+ },
+ "consent_locale": {
+ "description": "Locale the client used to show the box texts. The purchase records the box text in this locale",
+ "type": "string",
+ "maxLength": 16
+ },
+ "age_confirmed": {
+ "description": "Whether the buyer ticked \"I'm 18 or older, or have a parent's or guardian's permission.\" Must be true when quantity is above 1",
+ "type": "boolean"
+ }
+ }
+ },
+ "OperatorPassCheckoutResponse": {
+ "type": "object",
+ "properties": {
+ "url": {"type": "string", "format": "uri", "description": "Stripe checkout URL to redirect the buyer to"}
+ },
+ "required": ["url"],
+ "additionalProperties": false
+ },
"OAuth2UserInfoResponse": {
"type": "object",
"properties": {
@@ -29624,12 +33007,33 @@
"required": ["countryCode", "regionCode", "latitude", "longitude", "ageRestrictedGeos", "ageBlockedGeos"],
"additionalProperties": false
},
+ "GuildVisitStartResponse": {
+ "type": "object",
+ "properties": {
+ "guild_id": {"description": "ID of the guild", "$ref": "#/components/schemas/SnowflakeStringType"},
+ "member": {
+ "type": "boolean",
+ "description": "True when the current user is already a member, in which case no visit starts"
+ },
+ "visit": {
+ "anyOf": [{"$ref": "#/components/schemas/GuildVisitResponse"}, {"type": "null"}],
+ "description": "The visit, or null when the current user is already a member"
+ }
+ },
+ "required": ["guild_id", "member", "visit"],
+ "additionalProperties": false
+ },
"InviteResponseSchema": {
"anyOf": [
{"$ref": "#/components/schemas/GuildInviteResponse"},
{"$ref": "#/components/schemas/GroupDmInviteResponse"}
]
},
+ "InstanceSetupTokenCheckRequest": {
+ "type": "object",
+ "properties": {"setup_token": {"description": "Setup token of a new self-hosted instance", "type": "string"}},
+ "required": ["setup_token"]
+ },
"InstanceAccountIdentityUpdateRequest": {
"type": "object",
"properties": {
@@ -29712,15 +33116,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -29729,175 +33142,6 @@
},
"required": ["new_owner_id"]
},
- "GuildResponse": {
- "type": "object",
- "properties": {
- "id": {
- "description": "The unique identifier for this guild",
- "$ref": "#/components/schemas/SnowflakeStringType"
- },
- "name": {"type": "string", "description": "The name of the guild"},
- "icon": {"description": "The hash of the guild icon", "type": ["string", "null"]},
- "banner": {"description": "The hash of the guild banner", "type": ["string", "null"]},
- "banner_width": {
- "description": "The width of the guild banner in pixels",
- "anyOf": [{"$ref": "#/components/schemas/Int32Type"}, {"type": "null"}]
- },
- "banner_height": {
- "description": "The height of the guild banner in pixels",
- "anyOf": [{"$ref": "#/components/schemas/Int32Type"}, {"type": "null"}]
- },
- "splash": {"description": "The hash of the guild splash screen", "type": ["string", "null"]},
- "splash_width": {
- "description": "The width of the guild splash in pixels",
- "anyOf": [{"$ref": "#/components/schemas/Int32Type"}, {"type": "null"}]
- },
- "splash_height": {
- "description": "The height of the guild splash in pixels",
- "anyOf": [{"$ref": "#/components/schemas/Int32Type"}, {"type": "null"}]
- },
- "splash_card_alignment": {
- "description": "The alignment of the splash card",
- "x-enumNames": ["CENTER", "LEFT", "RIGHT"],
- "x-enumDescriptions": [
- "Splash card is centred",
- "Splash card is aligned to the left",
- "Splash card is aligned to the right"
- ],
- "enum": [0, 1, 2],
- "type": "integer"
- },
- "embed_splash": {"description": "The hash of the embedded invite splash", "type": ["string", "null"]},
- "embed_splash_width": {
- "description": "The width of the embedded invite splash in pixels",
- "anyOf": [{"$ref": "#/components/schemas/Int32Type"}, {"type": "null"}]
- },
- "embed_splash_height": {
- "description": "The height of the embedded invite splash in pixels",
- "anyOf": [{"$ref": "#/components/schemas/Int32Type"}, {"type": "null"}]
- },
- "vanity_url_code": {"description": "The vanity URL code for the guild", "type": ["string", "null"]},
- "owner_id": {"description": "The ID of the guild owner", "$ref": "#/components/schemas/SnowflakeStringType"},
- "system_channel_id": {
- "description": "The ID of the channel where system messages are sent",
- "anyOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}, {"type": "null"}]
- },
- "system_channel_flags": {"$ref": "#/components/schemas/SystemChannelFlags"},
- "rules_channel_id": {
- "description": "The ID of the rules channel",
- "anyOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}, {"type": "null"}]
- },
- "afk_channel_id": {
- "description": "The ID of the AFK voice channel",
- "anyOf": [{"$ref": "#/components/schemas/SnowflakeStringType"}, {"type": "null"}]
- },
- "afk_timeout": {
- "description": "AFK timeout in seconds before moving users to the AFK channel",
- "$ref": "#/components/schemas/Int32Type"
- },
- "features": {
- "type": "array",
- "items": {"$ref": "#/components/schemas/GuildFeatureSchema"},
- "description": "Array of guild feature flags"
- },
- "verification_level": {
- "$ref": "#/components/schemas/GuildVerificationLevel",
- "description": "Required verification level for members to participate"
- },
- "mfa_level": {"$ref": "#/components/schemas/GuildMFALevel"},
- "nsfw_level": {
- "$ref": "#/components/schemas/NSFWLevel",
- "description": "The NSFW level of the guild (legacy; derived from nsfw)"
- },
- "nsfw": {"type": "boolean", "description": "Whether the guild is marked as adult (18+) content"},
- "content_warning_level": {
- "$ref": "#/components/schemas/ContentWarningLevel",
- "description": "Whether the guild displays a content warning before entering"
- },
- "content_warning_text": {
- "description": "Custom guild-wide content warning text; null falls back to a localized default",
- "type": ["string", "null"]
- },
- "explicit_content_filter": {"$ref": "#/components/schemas/GuildExplicitContentFilter"},
- "default_message_notifications": {"$ref": "#/components/schemas/DefaultMessageNotifications"},
- "disabled_operations": {"$ref": "#/components/schemas/GuildOperations"},
- "message_history_cutoff": {
- "description": "ISO8601 timestamp controlling how far back members without Read Message History can access messages. When null, no historical access is allowed.",
- "anyOf": [
- {
- "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))$"
- },
- {"type": "null"}
- ]
- },
- "permissions": {
- "description": "The current user permissions in this guild when available",
- "$ref": "#/components/schemas/Permissions"
- },
- "roles": {
- "description": "Roles in the guild from gateway state",
- "type": "array",
- "items": {"$ref": "#/components/schemas/GuildRoleResponse"}
- },
- "emojis": {
- "description": "Emojis in the guild from gateway state",
- "type": "array",
- "items": {"$ref": "#/components/schemas/GuildEmojiResponse"}
- },
- "stickers": {
- "description": "Stickers in the guild from gateway state",
- "type": "array",
- "items": {"$ref": "#/components/schemas/GuildStickerResponse"}
- },
- "channels": {
- "description": "Channels visible to the requesting user from gateway state",
- "type": "array",
- "items": {"$ref": "#/components/schemas/ChannelResponse"}
- },
- "member_count": {
- "description": "Total number of members in the guild",
- "$ref": "#/components/schemas/Int32Type"
- },
- "online_count": {
- "description": "Number of online members visible in the guild",
- "$ref": "#/components/schemas/Int32Type"
- },
- "approximate_member_count": {
- "description": "Approximate total member count (only when with_counts is true)",
- "$ref": "#/components/schemas/Int32Type"
- },
- "approximate_presence_count": {
- "description": "Approximate online member count (only when with_counts is true)",
- "$ref": "#/components/schemas/Int32Type"
- },
- "threads_active": {
- "type": "boolean",
- "const": true,
- "description": "Present and true when threads, forum and media channels are active in this guild for the requesting client. Only set on the current user guild list",
- "x-fluxer-experiment": "channel_threads"
- }
- },
- "required": [
- "id",
- "name",
- "splash_card_alignment",
- "owner_id",
- "system_channel_flags",
- "afk_timeout",
- "features",
- "verification_level",
- "mfa_level",
- "nsfw_level",
- "nsfw",
- "content_warning_level",
- "explicit_content_filter",
- "default_message_notifications",
- "disabled_operations"
- ],
- "additionalProperties": false
- },
"ActiveThreadsResponse": {
"type": "object",
"properties": {
@@ -30602,15 +33846,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -30891,15 +34144,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -31003,7 +34265,8 @@
"domain_migration": {"$ref": "#/components/schemas/DomainMigrationAssignmentResponse"},
"channel_threads": {"$ref": "#/components/schemas/ChannelThreadsAssignmentResponse"},
"plutonium_page": {"$ref": "#/components/schemas/PlutoniumPageAssignmentResponse"},
- "voice_p2p": {"$ref": "#/components/schemas/VoiceP2pAssignmentResponse"}
+ "voice_p2p": {"$ref": "#/components/schemas/VoiceP2pAssignmentResponse"},
+ "guild_visits": {"$ref": "#/components/schemas/GuildVisitsAssignmentResponse"}
},
"additionalProperties": false
}
@@ -31129,7 +34392,12 @@
"member_count": {"type": "number", "description": "Approximate member count"},
"online_count": {"type": "number", "description": "Approximate online member count"},
"features": {"type": "array", "items": {"type": "string"}, "description": "Guild feature flags"},
- "verification_level": {"type": "number", "description": "Verification level"}
+ "verification_level": {"type": "number", "description": "Verification level"},
+ "visits_enabled": {
+ "type": "boolean",
+ "description": "Whether opening this listing starts a visit instead of a join for the requesting user. Omitted for a caller outside the guild visits experiment",
+ "x-fluxer-experiment": "guild_visits"
+ }
},
"required": [
"id",
@@ -32802,6 +36070,10 @@
"user": {
"description": "Partial user data for the authenticated account",
"$ref": "#/components/schemas/UserPartialResponse"
+ },
+ "device_proof": {
+ "description": "Opaque value to keep beside this account and send on later sign-ins from this device. It is not a credential",
+ "type": "string"
}
},
"required": ["token", "user_id", "user"],
@@ -32844,9 +36116,13 @@
"enabled": {"type": "boolean", "description": "Whether SSO is enabled for this instance"},
"enforced": {"type": "boolean", "description": "Whether SSO is required for all users"},
"display_name": {"description": "Display name of the SSO provider", "type": ["string", "null"]},
+ "button_label": {
+ "description": "Text for the SSO sign-in button, or null when the client shows its default label",
+ "type": ["string", "null"]
+ },
"redirect_uri": {"type": "string", "description": "OAuth redirect URI for SSO"}
},
- "required": ["enabled", "enforced", "display_name", "redirect_uri"],
+ "required": ["enabled", "enforced", "display_name", "button_label", "redirect_uri"],
"additionalProperties": false
},
"SsoStartRequest": {
@@ -32878,21 +36154,60 @@
"required": ["code", "state"]
},
"SsoCompleteResponse": {
- "type": "object",
- "properties": {
- "token": {"type": "string", "description": "Authentication token for the session"},
- "user_id": {
- "description": "ID of the authenticated user",
- "$ref": "#/components/schemas/SnowflakeStringType"
- },
- "user": {
- "description": "Partial user data for the authenticated account",
- "$ref": "#/components/schemas/UserPartialResponse"
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "token": {"type": "string", "description": "Authentication token for API requests"},
+ "user_id": {
+ "description": "ID of the authenticated user",
+ "$ref": "#/components/schemas/SnowflakeStringType"
+ },
+ "user": {
+ "description": "Partial user data for the authenticated account",
+ "$ref": "#/components/schemas/UserPartialResponse"
+ },
+ "device_proof": {
+ "description": "Opaque value to keep beside this account and send on later sign-ins from this device. It is not a credential",
+ "type": "string"
+ },
+ "redirect_to": {"type": "string", "description": "URL to redirect the user to after completion"}
+ },
+ "required": ["token", "user_id", "user", "redirect_to"],
+ "additionalProperties": false
},
- "redirect_to": {"type": "string", "description": "URL to redirect the user to after completion"}
- },
- "required": ["token", "user_id", "user", "redirect_to"],
- "additionalProperties": false
+ {
+ "type": "object",
+ "properties": {
+ "mfa": {
+ "type": "boolean",
+ "const": true,
+ "description": "Indicates MFA is required to complete authentication"
+ },
+ "ticket": {"type": "string", "description": "MFA ticket to use when completing MFA verification"},
+ "allowed_methods": {
+ "maxItems": 10,
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "List of allowed MFA methods"
+ },
+ "totp": {"type": "boolean", "description": "Whether TOTP authenticator MFA is available"},
+ "webauthn": {"type": "boolean", "description": "Whether WebAuthn security key MFA is available"},
+ "backup_codes": {
+ "type": "boolean",
+ "description": "Whether the account has at least one unconsumed backup code"
+ },
+ "redirect_to": {"type": "string", "description": "URL to redirect the user to after completion"}
+ },
+ "required": ["mfa", "ticket", "allowed_methods", "totp", "webauthn", "backup_codes", "redirect_to"],
+ "additionalProperties": false
+ }
+ ]
+ },
+ "SignInLinkRequest": {
+ "type": "object",
+ "properties": {"token": {"description": "The token from the sign-in link", "type": "string"}},
+ "required": ["token"]
},
"LogoutAuthSessionsWithVerificationRequest": {
"type": "object",
@@ -32909,15 +36224,24 @@
},
"mfa_method": {
"description": "MFA method to use for verification",
- "x-enumNames": ["TOTP", "WebAuthn"],
+ "x-enumNames": ["TOTP", "WebAuthn", "Email code"],
"x-enumDescriptions": [
"Time-based one-time password authentication via authenticator app",
- "Security key or biometric authentication"
+ "Security key or biometric authentication",
+ "A 6-digit code sent to the account email address"
],
- "enum": ["totp", "webauthn"],
+ "enum": ["totp", "webauthn", "email_code"],
"type": "string"
},
"mfa_code": {"description": "MFA verification code from an authenticator app", "type": "string"},
+ "email_code_ticket": {
+ "description": "Ticket from POST /users/@me/sudo/email-code, sent with mfa_method email_code",
+ "type": "string"
+ },
+ "email_code": {
+ "description": "The 6-digit code from the email, sent with mfa_method email_code",
+ "type": "string"
+ },
"webauthn_response": {
"description": "WebAuthn authentication response",
"$ref": "#/components/schemas/WebAuthnAuthenticationResponse"
@@ -32973,6 +36297,104 @@
}
]
},
+ "AccountHandoffRedeemRequest": {
+ "type": "object",
+ "properties": {
+ "handoff_code": {
+ "type": "string",
+ "pattern": "^[A-Za-z0-9_-]{43}$",
+ "description": "Code from POST /auth/register/handoff"
+ },
+ "nonce": {
+ "type": "string",
+ "pattern": "^[A-Za-z0-9_-]{16,256}$",
+ "description": "The nonce whose hash was sent with the handoff"
+ },
+ "consent": {
+ "description": "Whether the person submitted the step that says creating the account accepts the terms of service. Must be true when the instance publishes terms or a privacy policy",
+ "type": "boolean"
+ },
+ "global_name": {
+ "description": "Display name for the new account, when the person changed it in the app. Defaults to the one sent with the handoff",
+ "type": "string"
+ }
+ },
+ "required": ["handoff_code", "nonce"]
+ },
+ "AuthRegisterSuccessResponse": {
+ "type": "object",
+ "properties": {
+ "token": {"type": "string", "description": "Authentication token for API requests"},
+ "user_id": {
+ "description": "ID of the authenticated user",
+ "$ref": "#/components/schemas/SnowflakeStringType"
+ },
+ "user": {
+ "description": "Partial user data for the authenticated account",
+ "$ref": "#/components/schemas/UserPartialResponse"
+ },
+ "device_proof": {
+ "description": "Opaque value to keep beside this account and send on later sign-ins from this device. It is not a credential",
+ "type": "string"
+ },
+ "entry": {
+ "description": "Community to open next, from an invite used during sign-up",
+ "anyOf": [{"$ref": "#/components/schemas/GuildEntryResult"}, {"type": "null"}]
+ }
+ },
+ "required": ["token", "user_id", "user"],
+ "additionalProperties": false
+ },
+ "CaptchaChallengeResponse": {
+ "type": "object",
+ "properties": {
+ "captcha_provider": {
+ "description": "Captcha the next request must solve",
+ "$ref": "#/components/schemas/CaptchaProviderSchema"
+ },
+ "altcha_challenge": {
+ "description": "ALTCHA challenge to solve",
+ "type": "object",
+ "propertyNames": {"type": "string"},
+ "additionalProperties": {}
+ }
+ },
+ "required": ["captcha_provider"],
+ "additionalProperties": false
+ },
+ "AccountHandoffRequest": {
+ "type": "object",
+ "properties": {
+ "global_name": {
+ "description": "Display name for the new account. The username is derived from it and given a tag on the server",
+ "type": "string"
+ },
+ "nonce_hash": {
+ "type": "string",
+ "pattern": "^[0-9a-f]{64}$",
+ "description": "Hex SHA-256 of the nonce the browser keeps until redeeming"
+ },
+ "locale": {
+ "description": "Locale of the page the account was created from",
+ "type": "string",
+ "minLength": 2,
+ "maxLength": 16
+ },
+ "registration_url_code": {
+ "description": "Admin-issued registration URL code, for sign-ups",
+ "type": ["string", "null"]
+ }
+ },
+ "required": ["global_name", "nonce_hash"]
+ },
+ "AccountHandoffResponse": {
+ "type": "object",
+ "properties": {
+ "handoff_code": {"type": "string", "description": "Single-use code to redeem in the app within 15 minutes"}
+ },
+ "required": ["handoff_code"],
+ "additionalProperties": false
+ },
"RegisterRequest": {
"type": "object",
"properties": {
@@ -32984,7 +36406,11 @@
"global_name": {"description": "Display name shown to other users", "type": "string"},
"password": {"description": "Password for the new account", "$ref": "#/components/schemas/PasswordType"},
"date_of_birth": {"description": "Date of birth in YYYY-MM-DD format", "type": "string"},
- "consent": {"default": false, "description": "Whether user consents to terms of service", "type": "boolean"},
+ "consent": {
+ "default": false,
+ "description": "Whether the person submitted the step that says creating the account accepts the terms of service. Must be true when the instance publishes terms or a privacy policy",
+ "type": "boolean"
+ },
"invite_code": {"description": "Guild invite code to join after registration", "type": ["string", "null"]},
"registration_url_code": {
"description": "Admin-issued registration URL code to use for this registration",
@@ -33011,7 +36437,7 @@
},
"AuthRegisterResponse": {
"anyOf": [
- {"$ref": "#/components/schemas/AuthTokenWithUserIdResponse"},
+ {"$ref": "#/components/schemas/AuthRegisterSuccessResponse"},
{"$ref": "#/components/schemas/AuthRegistrationPendingApprovalResponse"}
]
},
@@ -33041,6 +36467,10 @@
"description": "Partial user data for the authenticated account",
"$ref": "#/components/schemas/UserPartialResponse"
},
+ "device_proof": {
+ "description": "Opaque value to keep beside this account and send on later sign-ins from this device. It is not a credential",
+ "type": "string"
+ },
"recovery_key": {
"type": "string",
"description": "New recovery key as 8 groups of 4 joined by dashes. It replaces the one just used and is shown only once"
@@ -33274,6 +36704,71 @@
"required": ["completed"],
"additionalProperties": false
},
+ "IdentifyRequest": {
+ "type": "object",
+ "properties": {
+ "email": {
+ "description": "Email address to sign in or sign up with, on instances that sign in with an email",
+ "$ref": "#/components/schemas/EmailType"
+ },
+ "login": {
+ "description": "Username to sign in or sign up with, on username instances",
+ "$ref": "#/components/schemas/UsernameType"
+ },
+ "device_proof": {"description": "device_proof from an earlier sign-in on this device", "type": "string"},
+ "registration_url_code": {
+ "description": "Admin-issued registration URL code, for sign-ups",
+ "type": ["string", "null"]
+ }
+ }
+ },
+ "IdentifyResponse": {
+ "type": "object",
+ "properties": {
+ "ticket": {"type": "string", "description": "Opaque ticket for the next step, valid for 15 minutes"},
+ "account": {
+ "type": "string",
+ "enum": ["existing", "new"],
+ "description": "Whether an account already uses this address"
+ },
+ "sign_in_method": {
+ "anyOf": [{"type": "string", "enum": ["password", "code"]}, {"type": "null"}],
+ "description": "How the existing account signs in: password for an account that has a password, code for one without. Null when account is new"
+ },
+ "registration": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "mode": {
+ "type": "string",
+ "enum": ["open", "approval", "closed"],
+ "description": "How new accounts are admitted"
+ },
+ "consent_required": {
+ "type": "boolean",
+ "description": "Whether sign-up needs agreement to the terms and privacy policy"
+ },
+ "requires_password": {
+ "type": "boolean",
+ "description": "Whether sign-up needs a password because email codes are off"
+ },
+ "instant_account_availability": {
+ "description": "Whether an account can be created from just a display name, taking the registration URL code into account",
+ "$ref": "#/components/schemas/InstantAccountAvailabilitySchema"
+ }
+ },
+ "required": ["mode", "consent_required", "requires_password"],
+ "additionalProperties": false
+ },
+ {"type": "null"}
+ ],
+ "description": "Sign-up details, present when account is new"
+ }
+ },
+ "required": ["ticket", "account", "sign_in_method", "registration"],
+ "additionalProperties": false
+ },
"HandoffStatusRequest": {
"type": "object",
"properties": {
@@ -33423,6 +36918,92 @@
},
"required": ["token", "password"]
},
+ "EmailCodeVerifyRequest": {
+ "type": "object",
+ "properties": {
+ "ticket": {"description": "Ticket from POST /auth/identify", "type": "string"},
+ "code": {"description": "The 6-digit code from the email", "type": "string"},
+ "consent": {
+ "description": "For sign-ups, whether the person submitted the step that says creating the account accepts the terms of service. Must be true when the instance publishes terms or a privacy policy",
+ "type": "boolean"
+ },
+ "registration_url_code": {
+ "description": "Admin-issued registration URL code, for sign-ups",
+ "type": ["string", "null"]
+ },
+ "invite_code": {
+ "description": "Invite to open after the date of birth step, for sign-ups",
+ "type": ["string", "null"]
+ }
+ },
+ "required": ["ticket", "code"]
+ },
+ "EmailCodeVerifyResponse": {
+ "anyOf": [
+ {"$ref": "#/components/schemas/AuthRegisterSuccessResponse"},
+ {
+ "type": "object",
+ "properties": {
+ "mfa": {
+ "type": "boolean",
+ "const": true,
+ "description": "Indicates MFA is required to complete authentication"
+ },
+ "ticket": {"type": "string", "description": "MFA ticket to use when completing MFA verification"},
+ "allowed_methods": {
+ "maxItems": 10,
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "List of allowed MFA methods"
+ },
+ "totp": {"type": "boolean", "description": "Whether TOTP authenticator MFA is available"},
+ "webauthn": {"type": "boolean", "description": "Whether WebAuthn security key MFA is available"},
+ "backup_codes": {
+ "type": "boolean",
+ "description": "Whether the account has at least one unconsumed backup code"
+ }
+ },
+ "required": ["mfa", "ticket", "allowed_methods", "totp", "webauthn", "backup_codes"],
+ "additionalProperties": false
+ },
+ {"$ref": "#/components/schemas/AuthRegistrationPendingApprovalResponse"}
+ ]
+ },
+ "EmailCodeSendRequest": {
+ "type": "object",
+ "properties": {
+ "ticket": {"description": "Ticket from POST /auth/identify", "type": "string"},
+ "registration_url_code": {
+ "description": "Admin-issued registration URL code, for sign-ups",
+ "type": ["string", "null"]
+ }
+ },
+ "required": ["ticket"]
+ },
+ "EmailCodeSendResponse": {
+ "type": "object",
+ "properties": {
+ "purpose": {
+ "type": "string",
+ "enum": ["sign_in", "sign_up"],
+ "description": "Whether the code signs in or creates an account"
+ },
+ "code_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": "When the emailed code stops working"
+ },
+ "resend_available_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 another code can be requested"
+ }
+ },
+ "required": ["purpose", "code_expires_at", "resend_available_at"],
+ "additionalProperties": false
+ },
"AuthorizeIpRequest": {
"type": "object",
"properties": {"token": {"description": "The IP authorization token from email", "type": "string"}},
@@ -33634,6 +37215,10 @@
"$ref": "#/components/schemas/InstanceAppPublicSchema"
},
"age_policy": {"$ref": "#/components/schemas/InstanceAgePolicySchema"},
+ "notice": {
+ "description": "Notice from the instance administrator, or null when there is none",
+ "anyOf": [{"$ref": "#/components/schemas/InstanceNoticeSchema"}, {"type": "null"}]
+ },
"domain_migration": {
"description": "Web domain migration switch and anonymous rollout, only acted on by official instance clients",
"$ref": "#/components/schemas/DomainMigrationDiscoveryResponse"
@@ -33680,6 +37265,42 @@
"required": ["enabled", "anonymous_rollout_basis_points", "rollout_salt", "standalone_forwarding"],
"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": {"description": "Optional link shown with the notice", "type": ["string", "null"]},
+ "starts_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When clients start showing the notice, or null for now"
+ },
+ "ends_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When clients stop showing the notice, or null for no end"
+ }
+ },
+ "required": ["id", "message", "url", "starts_at", "ends_at"],
+ "additionalProperties": false,
+ "description": "Notice from the instance administrator shown to everyone, such as planned maintenance"
+ },
"InstanceAgePolicySchema": {
"type": "object",
"properties": {
@@ -33746,6 +37367,10 @@
"description": "Present only while a self-hosted instance is unconfigured. True when the sign-in method can no longer change",
"type": "boolean"
},
+ "account_identity_lock_reason": {
+ "description": "Present only while a self-hosted instance is unconfigured. Why the sign-in method can no longer change, or null while it still can",
+ "anyOf": [{"$ref": "#/components/schemas/AccountIdentityLockReasonSchema"}, {"type": "null"}]
+ },
"setup_token_required": {
"description": "Present only while a self-hosted instance is unconfigured. True when registration needs the setup token",
"type": "boolean"
@@ -33770,6 +37395,10 @@
"type": ["string", "null"]
},
"favicon_url": {"description": "Optional favicon URL for browser metadata", "type": ["string", "null"]},
+ "favicon_dark_url": {
+ "description": "Optional favicon URL a self-hosted instance shows when the browser uses a dark color scheme",
+ "type": ["string", "null"]
+ },
"theme_color": {"description": "Optional browser theme color", "type": ["string", "null"]},
"status_page_url": {"description": "Optional public status page URL", "type": ["string", "null"]},
"status_page_incident_history_url": {
@@ -33783,6 +37412,18 @@
"premium_info_url": {
"description": "Optional absolute URL of a page describing the premium tier",
"type": ["string", "null"]
+ },
+ "sign_in_backdrop_url": {
+ "description": "Optional image URL drawn behind the sign-in card on a self-hosted instance",
+ "type": ["string", "null"]
+ },
+ "custom_css": {
+ "description": "Optional stylesheet a self-hosted instance applies to every page of its web and desktop app",
+ "type": ["string", "null"]
+ },
+ "upload_limit_message": {
+ "description": "Optional Markdown a self-hosted instance shows when a file is over the upload limit, in place of the default note",
+ "type": ["string", "null"]
}
},
"required": [
@@ -33792,11 +37433,15 @@
"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"
+ "premium_info_url",
+ "sign_in_backdrop_url",
+ "custom_css",
+ "upload_limit_message"
],
"additionalProperties": false,
"description": "Branding values safe to expose to clients"
@@ -33856,7 +37501,11 @@
},
"direct_messages_disabled": {
"type": "boolean",
- "description": "Whether direct messages and friend requests are disabled instance-wide"
+ "description": "Whether direct messages are disabled instance-wide"
+ },
+ "friends_disabled": {
+ "description": "Whether friend requests are disabled instance-wide. Missing means direct_messages_disabled decides",
+ "type": "boolean"
},
"guild_create_access": {
"type": "boolean",
@@ -33894,10 +37543,14 @@
"enabled": {"type": "boolean", "description": "Whether SSO is enabled for this instance"},
"enforced": {"type": "boolean", "description": "Whether SSO is required for all users"},
"display_name": {"description": "Display name of the SSO provider", "type": ["string", "null"]},
+ "button_label": {
+ "description": "Text for the SSO sign-in button, or null when the client shows its default label",
+ "type": ["string", "null"]
+ },
"redirect_uri": {"type": "string", "description": "OAuth redirect URI for SSO"},
"available": {"description": "Whether an SSO provider is configured for this instance", "type": "boolean"}
},
- "required": ["enabled", "enforced", "display_name", "redirect_uri"],
+ "required": ["enabled", "enforced", "display_name", "button_label", "redirect_uri"],
"additionalProperties": false,
"description": "Single sign-on configuration"
},
@@ -33941,23 +37594,20 @@
"description": "Whether the instance sends emails (verification, password reset, etc.)"
},
"phone_verification_enabled": {"type": "boolean", "description": "Deprecated. Always false."},
+ "discovery_enabled": {
+ "description": "Whether the Explore community directory is available. Missing means true",
+ "type": "boolean"
+ },
"desktop_modules_enabled": {
"description": "Whether desktop clients may load downloadable modules",
"type": "boolean"
},
- "discovery_enabled": {"description": "Whether community discovery is enabled", "type": "boolean"},
"account_deletion_grace_period_hours": {
"description": "Hours between a deletion request and the permanent deletion of the account",
"type": "integer",
"minimum": 1,
"maximum": 8760
},
- "max_background_gateway_connections": {
- "description": "Maximum gateway connections a client may keep open for background accounts",
- "type": "integer",
- "minimum": 0,
- "maximum": 64
- },
"account_identity": {
"description": "How people sign in on this instance. Clients treat a missing value as email",
"$ref": "#/components/schemas/AccountIdentityModeSchema"
@@ -33965,6 +37615,42 @@
"tag_style": {
"description": "How usernames are tagged. Clients treat a missing value as random",
"$ref": "#/components/schemas/TagStyleSchema"
+ },
+ "identifier_first": {
+ "description": "Whether clients show the single sign-in entry that starts with an email. Missing means false",
+ "type": "boolean"
+ },
+ "instant_accounts": {
+ "description": "Whether accounts can be created without an email, from a display name. Missing means false",
+ "type": "boolean"
+ },
+ "email_codes": {
+ "description": "Whether the instance can send sign-in and verification codes by email. Missing means false",
+ "type": "boolean"
+ },
+ "date_of_birth_step": {
+ "description": "Whether accounts enter their date of birth in a step after they are created, so sign-up never asks for it. Missing means false",
+ "type": "boolean"
+ },
+ "instant_account_availability": {
+ "description": "Whether accounts can be created from just a display name through public sign-up, and why not. Missing means instant_accounts decides",
+ "$ref": "#/components/schemas/InstantAccountAvailabilitySchema"
+ },
+ "interaction_tier": {
+ "description": "Which limits apply to accounts that have not finished setting up. Missing means legacy",
+ "$ref": "#/components/schemas/InteractionTierModeSchema"
+ },
+ "guild_join_gate": {
+ "description": "When joining a community needs a finished account while interaction_tier is enforced. Missing means always",
+ "$ref": "#/components/schemas/GuildJoinGateSchema"
+ },
+ "email_delivery_state": {
+ "description": "Whether the instance sends email, and why not. Missing means emails_enabled decides",
+ "$ref": "#/components/schemas/EmailDeliveryStateSchema"
+ },
+ "verification_basis": {
+ "description": "What an account needs to finish setting up right now. Missing means confirmed_email while emails_enabled, otherwise local_credential",
+ "$ref": "#/components/schemas/EffectiveVerificationBasisSchema"
}
},
"required": [
@@ -33985,7 +37671,7 @@
"properties": {
"provider": {
"description": "Captcha provider (altcha or none)",
- "$ref": "#/components/schemas/InstanceCaptchaProviderSchema"
+ "$ref": "#/components/schemas/CaptchaProviderSchema"
}
},
"required": ["provider"],
@@ -34025,7 +37711,69 @@
"additionalProperties": false,
"description": "Endpoint URLs for various services"
},
- "InstanceCaptchaProviderSchema": {"type": "string", "enum": ["altcha", "none"]},
+ "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"
+ },
+ "EffectiveVerificationBasisSchema": {
+ "description": "What an account needs to finish setting up on this instance right now",
+ "x-enumNames": ["CONFIRMED_EMAIL", "LOCAL_CREDENTIAL"],
+ "x-enumDescriptions": [
+ "Accounts finish setting up by confirming an email",
+ "Accounts finish setting up by adding a password or passkey"
+ ],
+ "enum": ["confirmed_email", "local_credential"],
+ "type": "string"
+ },
+ "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"
+ },
+ "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"
+ },
+ "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"
+ },
+ "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"],
+ "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"
+ ],
+ "enum": ["available", "disabled", "captcha_off", "registration_closed", "approval_required"],
+ "type": "string"
+ },
"TagStyleSchema": {
"description": "How usernames are tagged",
"x-enumNames": ["NONE", "RANDOM"],
@@ -34055,6 +37803,18 @@
"type": "string"
},
"InstancePushDeliveryModeSchema": {"type": "string", "enum": ["direct", "external_relay", "hybrid"]},
+ "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"
+ },
"InstanceAgePolicyGeoSchema": {
"type": "object",
"properties": {
@@ -34066,13 +37826,9 @@
"action": {
"description": "Whether the region restricts or blocks access",
"$ref": "#/components/schemas/InstanceAgePolicyActionSchema"
- },
- "card_verification_available": {
- "type": "boolean",
- "description": "Whether card age verification is available in the region"
}
},
- "required": ["country_code", "region_code", "action", "card_verification_available"],
+ "required": ["country_code", "region_code", "action"],
"additionalProperties": false,
"description": "Age policy for one region"
},
@@ -34144,6 +37900,22 @@
"required": ["original", "refreshed"],
"additionalProperties": false
},
+ "AuthRegistrationPendingApprovalResponse": {
+ "type": "object",
+ "properties": {
+ "registration_pending_approval": {
+ "type": "boolean",
+ "const": true,
+ "description": "Registration succeeded and is waiting for admin approval"
+ },
+ "user_id": {
+ "description": "ID of the registered account waiting for approval",
+ "$ref": "#/components/schemas/SnowflakeStringType"
+ }
+ },
+ "required": ["registration_pending_approval", "user_id"],
+ "additionalProperties": false
+ },
"PasswordType": {"type": "string"},
"EmailType": {"type": "string"},
"DesktopHandoffReturnMethod": {"type": "string", "enum": ["deep_link", "code"]},
@@ -34215,21 +37987,22 @@
"required": ["status"],
"additionalProperties": false
},
- "AuthRegistrationPendingApprovalResponse": {
+ "GuildEntryResult": {
"type": "object",
"properties": {
- "registration_pending_approval": {
- "type": "boolean",
- "const": true,
- "description": "Registration succeeded and is waiting for admin approval"
- },
- "user_id": {
- "description": "ID of the registered account waiting for approval",
+ "guild_id": {
+ "description": "ID of the community the account entered",
"$ref": "#/components/schemas/SnowflakeStringType"
+ },
+ "mode": {
+ "type": "string",
+ "enum": ["visit", "member"],
+ "description": "Whether the account visits the community or became a member"
}
},
- "required": ["registration_pending_approval", "user_id"],
- "additionalProperties": false
+ "required": ["guild_id", "mode"],
+ "additionalProperties": false,
+ "description": "Community the account entered after sign-up"
},
"AuthSessionResponse": {
"type": "object",
@@ -34922,6 +38695,11 @@
"type": "array",
"items": {"$ref": "#/components/schemas/GuildFeatureSchema"},
"description": "Array of guild feature flags"
+ },
+ "visits_enabled": {
+ "type": "boolean",
+ "description": "Whether opening this invite starts a visit instead of a join for the requesting user. Omitted for a caller outside the guild visits experiment",
+ "x-fluxer-experiment": "guild_visits"
}
},
"description": "The guild this invite is for",
@@ -35048,13 +38826,18 @@
"type": "array",
"items": {"$ref": "#/components/schemas/GuildFeatureSchema"},
"description": "Array of guild feature flags"
+ },
+ "visits_enabled": {
+ "type": "boolean",
+ "description": "Whether opening this invite starts a visit instead of a join for the requesting user. Omitted for a caller outside the guild visits experiment",
+ "x-fluxer-experiment": "guild_visits"
}
},
"required": ["id", "name", "splash_card_alignment", "features"],
"additionalProperties": false
},
"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 (other values allowed)",
+ "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",
@@ -35089,7 +38872,8 @@
"VISIONARY",
"LARGE_GUILD_OVERRIDE",
"VERY_LARGE_GUILD",
- "ANNOUNCEMENT_CHANNELS_DISABLED"
+ "ANNOUNCEMENT_CHANNELS_DISABLED",
+ "VISITS_ENABLED"
],
"x-enumDescriptions": [
"Guild can have an animated icon",
@@ -35125,7 +38909,8 @@
"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"
+ "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"
},
@@ -36517,6 +40302,14 @@
"additionalProperties": false
},
"DonationCurrency": {"type": "string", "enum": ["usd", "eur", "brl", "inr", "pln", "try", "sek", "dkk", "nok"]},
+ "GuildVisitsAssignmentResponse": {
+ "type": "object",
+ "properties": {
+ "enabled": {"type": "boolean", "description": "Whether this person may visit communities without joining"}
+ },
+ "required": ["enabled"],
+ "additionalProperties": false
+ },
"VoiceP2pAssignmentResponse": {
"type": "object",
"properties": {
@@ -37857,63 +41650,6 @@
"required": ["id", "name", "description", "tags", "animated", "nsfw", "user"],
"additionalProperties": false
},
- "GuildOperations": {
- "type": "integer",
- "minimum": 0,
- "maximum": 2147483647,
- "description": "Bitfield of disabled operations in the guild",
- "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"}
- ]
- },
- "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"
- ]
- },
"GroupDmInviteResponse": {
"type": "object",
"properties": {
@@ -37985,6 +41721,39 @@
"required": ["code", "temporary", "type", "guild", "channel", "member_count", "presence_count"],
"additionalProperties": false
},
+ "GuildVisitResponse": {
+ "type": "object",
+ "properties": {
+ "guild_id": {
+ "description": "ID of the guild being visited",
+ "$ref": "#/components/schemas/SnowflakeStringType"
+ },
+ "source": {"$ref": "#/components/schemas/GuildVisitSourceSchema"},
+ "started_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 visit started"
+ },
+ "opened_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 visit was last opened, updated at most once a day"
+ }
+ },
+ "required": ["guild_id", "source", "started_at", "opened_at"],
+ "additionalProperties": false
+ },
+ "GuildVisitSourceSchema": {
+ "anyOf": [
+ {"type": "number", "const": 1},
+ {"type": "number", "const": 2},
+ {"type": "number", "const": 3},
+ {"type": "number", "const": 4}
+ ],
+ "description": "How the visit started: 1 invite, 2 custom invite URL, 3 discovery, 4 the instance community"
+ },
"GeoEntry": {
"type": "object",
"properties": {
@@ -38073,7 +41842,424 @@
"enum": ["access_token", "refresh_token"],
"type": "string"
},
+ "OperatorPassWallNameType": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 32,
+ "pattern": "^[^\\r\\n]*$",
+ "description": "Name for the Operators' wall, 1 to 32 characters without line breaks. Any display name or nickname works"
+ },
+ "OperatorPassWallDeclineReasonSchema": {
+ "description": "Why staff declined a name or avatar on the Operators' wall, under section 2.1 of the Operator Pass terms",
+ "x-enumNames": ["GUIDELINES", "IMPERSONATION", "RIGHTS", "AGE_SUITABILITY"],
+ "x-enumDescriptions": [
+ "It breaks the community guidelines",
+ "It pretends to be someone else",
+ "It uses a name or image the holder has no right to use",
+ "It is not suitable for the youngest people allowed to use Fluxer"
+ ],
+ "enum": ["guidelines", "impersonation", "rights", "age_suitability"],
+ "type": "string"
+ },
+ "OperatorPassWallReviewStateSchema": {
+ "description": "Review state of the latest name and avatar",
+ "x-enumNames": ["PENDING", "APPROVED", "DECLINED"],
+ "x-enumDescriptions": [
+ "A new name or avatar waits for review, the wall keeps the last approved version",
+ "The latest name and avatar are approved",
+ "Staff declined the latest name or avatar, see decline_reason"
+ ],
+ "enum": ["pending", "approved", "declined"],
+ "type": "string"
+ },
+ "OperatorPassWallDisplayStateSchema": {
+ "description": "What the Operators' wall shows for the listing",
+ "x-enumNames": ["LIVE", "FALLBACK", "HIDDEN", "REMOVED"],
+ "x-enumDescriptions": [
+ "The wall shows the approved name and avatar",
+ "The wall shows the username, or Operator, with the default avatar until a name is approved",
+ "Staff hid the listing for now",
+ "The listing is off the wall under section 8 of the Operator Pass terms"
+ ],
+ "enum": ["live", "fallback", "hidden", "removed"],
+ "type": "string"
+ },
+ "OperatorPassListingStatusSchema": {
+ "description": "Whether the holder is on the Operators' wall",
+ "x-enumNames": ["LISTED", "NOT_LISTED"],
+ "x-enumDescriptions": [
+ "The holder is on the Operators' wall",
+ "The holder chose not to be listed or has not chosen a name"
+ ],
+ "enum": ["listed", "not_listed"],
+ "type": "string"
+ },
+ "OperatorPassOfferUserResponse": {
+ "type": "object",
+ "properties": {
+ "id": {"description": "ID of the user", "$ref": "#/components/schemas/SnowflakeStringType"},
+ "username": {"type": "string", "description": "Username of the user"},
+ "global_name": {"description": "Display name of the user", "type": ["string", "null"]},
+ "avatar": {"description": "Avatar hash of the user", "type": ["string", "null"]}
+ },
+ "required": ["id", "username", "global_name", "avatar"],
+ "additionalProperties": false
+ },
+ "OperatorPassOfferStatusSchema": {
+ "description": "Pass it on offer status",
+ "x-enumNames": ["PENDING", "ACCEPTED", "COMPLETED", "DECLINED", "WITHDRAWN", "CANCELLED"],
+ "x-enumDescriptions": [
+ "Waiting for the recipient to accept or decline",
+ "The recipient accepted, the pass moves at arrives_at",
+ "The pass moved to the recipient",
+ "The recipient declined",
+ "The sender withdrew the offer",
+ "The offer ended because the pass ended or its payment changed"
+ ],
+ "enum": ["pending", "accepted", "completed", "declined", "withdrawn", "cancelled"],
+ "type": "string"
+ },
+ "OperatorPassUnitResponse": {
+ "type": "object",
+ "properties": {
+ "id": {"type": "string", "description": "ID of the pass"},
+ "source": {
+ "type": "string",
+ "enum": ["purchase", "transfer", "admin"],
+ "description": "How the account got the pass"
+ },
+ "status": {"$ref": "#/components/schemas/OperatorPassUnitStatusSchema"},
+ "purchase_id": {
+ "description": "The purchase that paid for the pass, null for a staff grant",
+ "type": ["string", "null"]
+ },
+ "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 this account"
+ },
+ "paused": {"type": "boolean", "description": "Whether the pass is paused while a payment dispute is open"},
+ "can_pass_on": {
+ "type": "boolean",
+ "description": "Whether the pass can be passed on. Received and staff granted passes cannot"
+ },
+ "transfer_lock_ends_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "The earliest time a passed on pass can move to the recipient, null when it cannot be passed on"
+ },
+ "can_withdraw": {
+ "type": "boolean",
+ "description": "Whether the withdraw button for this pass is available now"
+ },
+ "withdrawal_ends_at": {
+ "anyOf": [
+ {
+ "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))$"
+ },
+ {"type": "null"}
+ ],
+ "description": "When the cancel window for this pass closes, null when it has none. Under a country rule this is the end of withdrawal_ends_on in America/Rio_Branco"
+ },
+ "withdrawal_ends_on": {
+ "description": "The last day of the cancel window under a country rule, as YYYY-MM-DD in America/Rio_Branco. Show it as is, without converting time zones",
+ "anyOf": [
+ {
+ "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])))$"
+ },
+ {"type": "null"}
+ ]
+ },
+ "offer": {
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassOfferResponse"}, {"type": "null"}],
+ "description": "The open offer for this pass, null when none"
+ },
+ "received_from": {
+ "description": "Who passed this pass on to the account, null when the account bought it or that account is gone",
+ "anyOf": [{"$ref": "#/components/schemas/OperatorPassOfferUserResponse"}, {"type": "null"}]
+ }
+ },
+ "required": [
+ "id",
+ "source",
+ "status",
+ "purchase_id",
+ "delivered_at",
+ "paused",
+ "can_pass_on",
+ "transfer_lock_ends_at",
+ "can_withdraw",
+ "withdrawal_ends_at",
+ "offer"
+ ],
+ "additionalProperties": false
+ },
+ "OperatorPassUnitStatusSchema": {
+ "description": "Operator Pass status",
+ "x-enumNames": ["HELD", "WITHDRAWN", "REVOKED"],
+ "x-enumDescriptions": [
+ "The account holds the pass",
+ "The buyer withdrew and the payment for the pass was refunded",
+ "The pass ended because its payment was refunded or reversed, or staff removed it"
+ ],
+ "enum": ["held", "withdrawn", "revoked"],
+ "type": "string"
+ },
+ "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"
+ },
+ "OperatorPassReleaseResponse": {
+ "type": "object",
+ "properties": {
+ "year": {
+ "type": "integer",
+ "minimum": -9007199254740991,
+ "maximum": 9007199254740991,
+ "description": "The year of the list, as in The Operators of 2026"
+ },
+ "tag": {"type": "string", "description": "The tag of the Fluxer release the list shipped 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"
+ },
+ "names": {"type": "array", "items": {"type": "string"}, "description": "Names in the list, sorted"}
+ },
+ "required": ["year", "tag", "released_at", "names"],
+ "additionalProperties": false
+ },
+ "OperatorPassDonationOptionsResponse": {
+ "type": "object",
+ "properties": {
+ "currency": {
+ "description": "Currency of the optional monthly donation",
+ "$ref": "#/components/schemas/OperatorPassCurrencySchema"
+ },
+ "presets_minor": {
+ "type": "array",
+ "items": {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991},
+ "description": "Suggested monthly donation amounts in minor units"
+ },
+ "min_minor": {
+ "type": "integer",
+ "minimum": -9007199254740991,
+ "maximum": 9007199254740991,
+ "description": "Smallest monthly donation in minor units"
+ },
+ "max_minor": {
+ "type": "integer",
+ "minimum": -9007199254740991,
+ "maximum": 9007199254740991,
+ "description": "Largest monthly donation in minor units"
+ }
+ },
+ "required": ["currency", "presets_minor", "min_minor", "max_minor"],
+ "additionalProperties": false
+ },
+ "OperatorPassPurchaseBlockedReasonSchema": {
+ "description": "Why the current account cannot buy passes",
+ "x-enumNames": [
+ "NOT_ON_SALE",
+ "COUNTRY_UNAVAILABLE",
+ "EMAIL_UNVERIFIED",
+ "UNCLAIMED",
+ "NO_RECEIPT_EMAIL",
+ "PURCHASE_DISABLED",
+ "PAYMENT_DISPUTE_OPEN",
+ "REMOVED"
+ ],
+ "x-enumDescriptions": [
+ "Sales have not opened yet",
+ "The pass is not on sale in the country of the buyer right now",
+ "The account email is not verified",
+ "The account is not claimed",
+ "The account has no email to send receipts to",
+ "Purchases are disabled for the account",
+ "A payment dispute the account made is open, purchases come back when it closes",
+ "The pass was removed from the account permanently under the Operator Pass terms"
+ ],
+ "enum": [
+ "not_on_sale",
+ "country_unavailable",
+ "email_unverified",
+ "unclaimed",
+ "no_receipt_email",
+ "purchase_disabled",
+ "payment_dispute_open",
+ "removed"
+ ],
+ "type": "string"
+ },
+ "OperatorPassHolderResponse": {
+ "type": "object",
+ "properties": {
+ "since": {
+ "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 account got its first pass"
+ },
+ "source": {"$ref": "#/components/schemas/OperatorPassHolderSourceSchema"},
+ "count": {
+ "type": "integer",
+ "minimum": -9007199254740991,
+ "maximum": 9007199254740991,
+ "description": "How many passes the account holds now"
+ },
+ "wall_chosen": {
+ "type": "boolean",
+ "description": "Whether the account already chose to be listed or not listed on the Operators' wall. When false, checkout and accepting an offer ask for the choice"
+ }
+ },
+ "required": ["since", "source", "count", "wall_chosen"],
+ "additionalProperties": false
+ },
+ "OperatorPassWithdrawalRuleResponse": {
+ "type": "object",
+ "properties": {
+ "country": {"type": "string", "description": "Two-letter code of the country whose withdrawal right applies"},
+ "days": {
+ "type": "integer",
+ "minimum": -9007199254740991,
+ "maximum": 9007199254740991,
+ "description": "Days after payment the buyer can withdraw for a full refund"
+ }
+ },
+ "required": ["country", "days"],
+ "additionalProperties": false
+ },
+ "OperatorPassPhaseSchema": {
+ "description": "Operator Pass sale phase",
+ "x-enumNames": ["WAITLIST", "EARLY_BIRD", "STANDARD"],
+ "x-enumDescriptions": [
+ "Sales have not opened yet, the waitlist is open",
+ "Sales are open at the early bird price",
+ "Sales are open at the standard price"
+ ],
+ "enum": ["waitlist", "early_bird", "standard"],
+ "type": "string"
+ },
+ "OperatorPassHolderSourceSchema": {
+ "description": "How the Operator Pass was obtained",
+ "x-enumNames": ["PURCHASE", "TRANSFER", "ADMIN"],
+ "x-enumDescriptions": [
+ "Bought the pass",
+ "Received from another holder through Pass it on",
+ "Granted by staff"
+ ],
+ "enum": ["purchase", "transfer", "admin"],
+ "type": "string"
+ },
+ "OperatorPassPriceFeedbackSchema": {
+ "description": "How the visitor feels about the early bird price they were shown",
+ "x-enumNames": ["TOO_HIGH", "ABOUT_RIGHT", "COULD_PAY_MORE"],
+ "x-enumDescriptions": [
+ "The early bird price feels too high",
+ "The early bird price feels about right",
+ "The visitor would pay more than the early bird price"
+ ],
+ "enum": ["too_high", "about_right", "could_pay_more"],
+ "type": "string"
+ },
+ "OperatorPassAltchaChallenge": {
+ "type": "object",
+ "properties": {
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "algorithm": {"type": "string"},
+ "nonce": {"type": "string"},
+ "salt": {"type": "string"},
+ "cost": {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991},
+ "keyLength": {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991},
+ "keyPrefix": {"type": "string"},
+ "keySignature": {"type": "string"},
+ "expiresAt": {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991}
+ },
+ "required": ["algorithm", "nonce", "salt", "cost", "keyLength", "keyPrefix", "keySignature", "expiresAt"],
+ "additionalProperties": {}
+ },
+ "signature": {"type": "string"}
+ },
+ "required": ["parameters", "signature"],
+ "additionalProperties": false
+ },
+ "OperatorPassWallOperatorResponse": {
+ "type": "object",
+ "properties": {
+ "id": {"type": "string", "description": "Stable public ID of the entry, not the user ID"},
+ "name": {
+ "type": "string",
+ "description": "The name shown: the approved name, or the username or Operator as fallback"
+ },
+ "avatar": {
+ "description": "SHA-256 of the approved avatar snapshot, null for the default avatar",
+ "type": ["string", "null"]
+ },
+ "avatar_url": {
+ "anyOf": [{"type": "string", "format": "uri"}, {"type": "null"}],
+ "description": "The approved avatar snapshot at the largest size, null for the default avatar"
+ },
+ "count": {
+ "description": "How many passes the Operator holds now. Left out when the Operator hides the number",
+ "type": "integer",
+ "minimum": -9007199254740991,
+ "maximum": 9007199254740991
+ },
+ "tier": {
+ "type": "integer",
+ "minimum": -9007199254740991,
+ "maximum": 9007199254740991,
+ "description": "Size tier on the wall from the number of passes held, 1 for the smallest. The thresholds come from FLUXER_OPERATOR_PASS_WALL_TIERS, by default 1, 2 to 4, 5 to 9 and 10 or more"
+ },
+ "business": {
+ "description": "Present on a business listing, which shows a company name and logo at one fixed size after every listing of a person, ordered by first pass date",
+ "type": "boolean",
+ "const": true
+ }
+ },
+ "required": ["id", "name", "avatar", "avatar_url", "tier"],
+ "additionalProperties": false
+ },
"PremiumCurrency": {"type": "string", "pattern": "^[A-Z]{3}$"},
+ "SelfServeRefundProvider": {"type": "string", "enum": ["stripe", "google_play"]},
"SelfServeRefundIneligibilityReason": {
"type": "string",
"enum": ["no_refundable_purchase", "outside_refund_window", "cooldown_active", "feature_unavailable"]
@@ -38430,7 +42616,7 @@
"StoreBlockingProvider": {"type": "string", "enum": ["stripe", "app_store", "google_play"]},
"StorePurchaseBlockedReason": {
"type": "string",
- "enum": ["lifetime", "existing_subscription", "purchase_disabled"]
+ "enum": ["lifetime", "existing_subscription", "purchase_disabled", "payment_dispute_open"]
},
"StoreBillingGooglePlayProductResponse": {
"type": "object",
@@ -39393,6 +43579,28 @@
"required": ["src", "proxy_src", "width", "height"],
"additionalProperties": false
},
+ "AccountVerificationNeedSchema": {
+ "description": "What the account still has to do before it can use everything",
+ "x-enumNames": ["ADD_EMAIL", "CONFIRM_EMAIL", "SET_PASSWORD"],
+ "x-enumDescriptions": [
+ "Add an email address to the account",
+ "Confirm the email address on the account",
+ "Set a password, or add a passkey, on the account"
+ ],
+ "enum": ["add_email", "confirm_email", "password"],
+ "type": "string"
+ },
+ "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"
+ },
"UserAuthenticatorTypes": {
"description": "Authenticator type",
"type": "integer",
@@ -39421,6 +43629,44 @@
}
]
},
+ "ConfirmEmailClaimAccountResponse": {
+ "type": "object",
+ "properties": {
+ "next_step": {
+ "type": "string",
+ "const": "confirm_email",
+ "description": "Enter the code sent to the new email address to finish"
+ },
+ "user": {"$ref": "#/components/schemas/UserPrivateResponse"},
+ "code_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": "When the emailed code stops working"
+ },
+ "resend_available_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 another code can be requested"
+ }
+ },
+ "required": ["next_step", "user", "code_expires_at", "resend_available_at"],
+ "additionalProperties": false
+ },
+ "NoneClaimAccountResponse": {
+ "type": "object",
+ "properties": {
+ "next_step": {
+ "type": "string",
+ "const": "none",
+ "description": "The account is set up, nothing else is needed"
+ },
+ "user": {"$ref": "#/components/schemas/UserPrivateResponse"}
+ },
+ "required": ["next_step", "user"],
+ "additionalProperties": false
+ },
"ConnectionVisibilityFlags": {
"type": "integer",
"minimum": 0,
@@ -39517,6 +43763,63 @@
"required": ["code", "duration_type", "duration_quantity", "created_by", "created_at"],
"additionalProperties": false
},
+ "GuildOperations": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 2147483647,
+ "description": "Bitfield of disabled operations in the guild",
+ "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"}
+ ]
+ },
+ "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"
+ ]
+ },
"UserNotificationSettings": {
"description": "Notification level preference",
"type": "integer",
@@ -39651,6 +43954,74 @@
"required": ["status"],
"additionalProperties": false
},
+ "ProfileBadgeListResponse": {
+ "type": "array",
+ "items": {"$ref": "#/components/schemas/ProfileBadgeResponse"},
+ "description": "Profile badges in display order. Empty when there is nothing to show"
+ },
+ "ProfileBadgeResponse": {
+ "type": "object",
+ "properties": {
+ "kind": {
+ "type": "string",
+ "description": "Stable badge key. Known values: staff, partner, bug_hunter, operator_pass, visionary, visionary_number, plutonium, 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": {
+ "anyOf": [{"$ref": "#/components/schemas/HexString16Type"}, {"type": "null"}],
+ "description": "Badge image hash. The image is served at {static_cdn}/badges/{asset}.webp. Null for text badges"
+ },
+ "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",
+ "$ref": "#/components/schemas/HexString16Type"
+ },
+ "aspect_ratio": {
+ "anyOf": [{"type": "number", "exclusiveMinimum": 0}, {"type": "null"}],
+ "description": "Image width divided by its height. Render the image at the badge height and this many times as wide. Null for square badges"
+ },
+ "caption": {
+ "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", "null"]
+ },
+ "href": {
+ "description": "Absolute URL to open when the badge is clicked, or null",
+ "type": ["string", "null"]
+ },
+ "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",
+ "anyOf": [{"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991}, {"type": "null"}]
+ },
+ "accessible_label": {
+ "description": "Label for screen readers with the full count, used instead of label when present",
+ "type": ["string", "null"]
+ },
+ "details": {
+ "description": "Content for the richer vertical tooltip, null or absent when label is the whole tooltip",
+ "anyOf": [
+ {
+ "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
+ },
+ {"type": "null"}
+ ]
+ }
+ },
+ "required": ["kind", "label", "asset", "aspect_ratio", "caption", "href"],
+ "additionalProperties": false
+ },
+ "HexString16Type": {"type": "string", "pattern": "^[a-f0-9]{16}$"},
"RelationshipTypesInput": {
"description": "Relationship type",
"type": "integer",
@@ -40033,7 +44404,6 @@
"enum": ["online", "dnd", "idle", "invisible"],
"type": "string"
},
- "HexString16Type": {"type": "string", "pattern": "^[a-f0-9]{16}$"},
"Int64Type": {
"anyOf": [{"type": "string"}, {"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991}],
"format": "int64"
@@ -40101,6 +44471,7 @@
"DISCOVERY_INSUFFICIENT_MEMBERS",
"DISCOVERY_NOT_DISCOVERABLE",
"DISCRIMINATOR_REQUIRED",
+ "EMAIL_DELIVERY_OFF",
"EMAIL_SERVICE_NOT_TESTABLE",
"EMAIL_UNAVAILABLE_ON_INSTANCE",
"EMAIL_VERIFICATION_REQUIRED",
@@ -40124,9 +44495,11 @@
"PROFILE_EMAIL_VERIFICATION_REQUIRED",
"PUBLISHED_MESSAGE_EDIT_RATE_LIMITED",
"PURCHASE_EMAIL_VERIFICATION_REQUIRED",
+ "PURCHASE_RECEIPT_EMAIL_REQUIRED",
"REACTION_EMAIL_VERIFICATION_REQUIRED",
"REPORT_EMAIL_VERIFICATION_REQUIRED",
"REGISTRATION_CLOSED",
+ "REGISTRATION_CREDENTIAL_REQUIRED",
"REGISTRATION_CREDENTIALS_REQUIRED",
"REGISTRATION_PENDING_APPROVAL",
"REGISTRATION_REJECTED",
@@ -40272,11 +44645,45 @@
"STRIPE_WEBHOOK_SIGNATURE_INVALID",
"STRIPE_WEBHOOK_SIGNATURE_MISSING",
"DIRECT_MESSAGES_DISABLED",
+ "FRIENDS_DISABLED",
"NEW_CONVERSATIONS_LIMITED",
"DONATION_AMOUNT_INVALID",
"DONATION_MAGIC_LINK_EXPIRED",
"DONATION_MAGIC_LINK_INVALID",
"DONATION_MAGIC_LINK_USED",
+ "OPERATOR_PASS_WAIVER_REQUIRED",
+ "OPERATOR_PASS_AGE_CONFIRMATION_REQUIRED",
+ "OPERATOR_PASS_OFFER_UNAVAILABLE",
+ "OPERATOR_PASS_OFFER_BUSY",
+ "OPERATOR_PASS_RECIPIENT_NOT_FRIEND",
+ "OPERATOR_PASS_NOT_TRANSFERABLE",
+ "OPERATOR_PASS_LAST_PASS_CONFIRMATION_REQUIRED",
+ "UNKNOWN_OPERATOR_PASS_OFFER",
+ "UNKNOWN_OPERATOR_PASS_UNIT",
+ "OPERATOR_PASS_COUNTRY_UNAVAILABLE",
+ "OPERATOR_PASS_WALL_NAME_REQUIRED",
+ "OPERATOR_PASS_NOT_HELD",
+ "UNKNOWN_OPERATOR_PASS_WALL_ENTRY",
+ "OPERATOR_PASS_RELEASE_ALREADY_PUBLISHED",
+ "OPERATOR_PASS_RELEASE_NOT_READY",
+ "UNKNOWN_OPERATOR_PASS_RELEASE_ENTRY",
+ "OPERATOR_PASS_NOT_ON_SALE",
+ "OPERATOR_PASS_PRICE_CHANGED",
+ "OPERATOR_PASS_WAITLIST_CLOSED",
+ "OPERATOR_PASS_WAITLIST_FOLLOWUP_INVALID",
+ "OPERATOR_PASS_WAITLIST_FOLLOWUP_TOKEN_INVALID",
+ "OPERATOR_PASS_WAITLIST_TOKEN_EXPIRED",
+ "OPERATOR_PASS_WAITLIST_TOKEN_INVALID",
+ "OPERATOR_PASS_REMOVAL_LIMITED_FIRST",
+ "OPERATOR_PASS_REMOVAL_NOTICE_REQUIRED",
+ "OPERATOR_PASS_REMOVED",
+ "OPERATOR_PASS_TERMS_NOT_ACCEPTED",
+ "OPERATOR_PASS_WITHDRAWAL_UNAVAILABLE",
+ "PAYMENT_DISPUTE_EXEMPT",
+ "PAYMENT_DISPUTE_REVIEW_CLOSED",
+ "PAYMENT_DISPUTE_WARNING_TOO_LATE",
+ "UNKNOWN_PAYMENT_DISPUTE_REVIEW",
+ "UNKNOWN_OPERATOR_PASS_PURCHASE",
"SUDO_MODE_REQUIRED",
"SYNCED_PREFERENCES_CONFLICT",
"TAG_ALREADY_TAKEN",
@@ -40341,7 +44748,26 @@
"VALIDATION_ERROR",
"VOICE_CHANNEL_FULL",
"WEBAUTHN_CREDENTIAL_LIMIT_REACHED",
- "AGE_VERIFICATION_ALREADY_VERIFIED"
+ "ACCOUNT_VERIFICATION_REQUIRED",
+ "DATE_OF_BIRTH_REQUIRED",
+ "DATE_OF_BIRTH_ALREADY_SET",
+ "ACCOUNT_BELOW_MINIMUM_AGE",
+ "UNKNOWN_SIGN_IN_TICKET",
+ "INVALID_SIGN_IN_CODE",
+ "SIGN_IN_CODE_EXPIRED",
+ "EMAIL_CODE_RESEND_COOLDOWN",
+ "EMAIL_CODES_UNAVAILABLE",
+ "PASSWORD_SIGN_IN_REQUIRED",
+ "SUDO_SECOND_FACTOR_REQUIRED",
+ "INSTANT_ACCOUNTS_DISABLED",
+ "UNKNOWN_ACCOUNT_HANDOFF",
+ "INVALID_ACCOUNT_HANDOFF_NONCE",
+ "ACCOUNT_ALREADY_CLAIMED",
+ "USE_CLAIM_ROUTE",
+ "PASSWORD_REQUIRED_TO_CLAIM",
+ "GUILD_VISITS_DISABLED",
+ "GUILD_VISIT_AGE_RESTRICTED",
+ "GUILD_VISIT_NOT_FOUND"
],
"description": "Known error codes returned by API operations",
"x-enumDescriptions": [
@@ -40372,7 +44798,7 @@
"This action can't be performed in a DM.",
"You can't block the system user.",
"You can't edit system messages.",
- "You can't redeem {premium_tier_name} with Visionary.",
+ "You already have lifetime {premium_tier_name}.",
"You can't report this community.",
"You can't report your own community.",
"You can't report your own message.",
@@ -40398,13 +44824,14 @@
"Conflict.",
"This content was blocked by safety systems.",
"We couldn't delete the resource. Please try again.",
- "This community has already applied for Discovery.",
- "This Discovery application has already been reviewed.",
- "Discovery application wasn't found.",
- "Discovery isn't available on this instance.",
- "This community doesn't meet the minimum member count for Discovery.",
- "This community isn't listed in Discovery.",
+ "This community has already applied to be listed in Explore.",
+ "This application to Explore has already been reviewed.",
+ "The application to Explore wasn't found.",
+ "Explore isn't available on this instance.",
+ "This community doesn't have enough members to be listed in Explore.",
+ "This community isn't listed in Explore.",
"Discriminator is required.",
+ "This instance doesn't send email. Create a password reset link instead.",
"Email service is temporarily unavailable. Please try again later.",
"This instance doesn't use email.",
"Email verification is required for this action.",
@@ -40424,13 +44851,15 @@
"This message has already been published.",
"This channel has reached its publishing limit. It can publish 10 messages in a row, then one more every 6 minutes.",
"This message cannot be published.",
- "Email verification is required for this action.",
+ "Confirm your email address to use two-factor authentication or passkeys.",
"Email verification is required for this action.",
"This published message has reached its editing limit. It allows 3 quick edits, then 1 every 20 minutes.",
"Email verification is required for this action.",
+ "Purchases need an email address to send receipts to, and this account doesn't have one.",
"Email verification is required for this action.",
"Email verification is required for this action.",
"Registration is closed on this instance.",
+ "Choose a password to sign up. This instance can't send email codes to confirm your address.",
"This instance reviews new accounts. Sign up from the sign-up page with a password so you can sign in once approved.",
"This registration is waiting for admin approval.",
"This registration request was rejected.",
@@ -40448,7 +44877,7 @@
"Gone.",
"Gift code is already redeemed.",
"The community template data is invalid or malformed.",
- "Community verification is required.",
+ "{reason, select, membership_age {You can talk here once you've been a member for 10 minutes.} other {Claim your account to talk in this community.}}",
"Handoff code expired.",
"Your data export request has expired. Please request a new export.",
"Your data export request failed. Please try again.",
@@ -40552,7 +44981,7 @@
"This instance policy change is not allowed.",
"Slowmode rate limited.",
"The search index isn't ready yet. Try again in a moment.",
- "Invalid request.",
+ "{reason, select, managed_credentials {This instance requires single sign-on, so your SSO provider manages your email and password.} no_account {This instance only lets existing accounts sign in with SSO, and there's no account for you yet. Ask an admin of this instance for access.} other {This instance requires single sign-on. Sign in with the SSO button on the sign-in page.}}",
"In-app purchases are unavailable right now. Try again later.",
"The notification signature is invalid.",
"This purchase could not be verified.",
@@ -40575,12 +45004,46 @@
"Webhook processing isn't available.",
"Stripe webhook signature is invalid.",
"Stripe webhook signature is missing.",
- "Direct messages and friend requests are disabled on this instance.",
+ "Direct messages are disabled on this instance.",
+ "Friend requests are disabled on this instance.",
"You can't start new conversations right now. Please try again later.",
"Donation amount is invalid.",
"Magic link has expired.",
"Magic link is invalid.",
"Magic link has already been used.",
+ "Confirm that you want the Operator Pass delivered right away.",
+ "To buy more than one pass, confirm that you are 18 or older, or that you have permission from a parent or guardian.",
+ "This pass cannot be passed on to that account right now.",
+ "Another offer from your account is still being sent. Try again in a moment.",
+ "You can only pass this on to one of your friends on Fluxer.",
+ "This pass cannot be passed on. A pass you received, or one that comes with Visionary, stays with you.",
+ "This is your only pass. Confirm that passing it on removes your badge and your name on the Operators' wall.",
+ "Unknown Operator Pass offer.",
+ "Unknown Operator Pass.",
+ "You cannot buy the Operator Pass in your country right now.",
+ "Enter a name for the Operators' wall, or choose not to be listed.",
+ "This account doesn't have the Operator Pass.",
+ "This account has no name on the Operators' wall.",
+ "This Operators list has already been published.",
+ "This Operators list cannot be published before its cut-off date.",
+ "This account is not in that published Operators list.",
+ "You cannot buy the Operator Pass yet.",
+ "The Operator Pass price has changed. Check the new price and try again.",
+ "The Operator Pass waitlist is closed because you can get the pass now.",
+ "Choose from the listed options. You can add your own answer only with \"Other\", in up to 500 characters.",
+ "This answer can no longer be saved. Your waitlist signup is not affected.",
+ "This waitlist link has expired.",
+ "This waitlist link is invalid.",
+ "A permanent removal for a breach that is not serious needs an earlier removal for a limited time.",
+ "A permanent removal needs a notice sent at least 7 days earlier, unless the breach is serious.",
+ "The Operator Pass was removed from this account, so it cannot be bought or redeemed again.",
+ "Accept the Operator Pass terms to get this pass.",
+ "This purchase can no longer be withdrawn from here.",
+ "Our terms rule out any action on this payment dispute.",
+ "This payment dispute has already closed.",
+ "The bank's deadline is too close to warn the account in time.",
+ "Unknown payment dispute review.",
+ "Unknown Operator Pass purchase.",
"Sudo mode is required.",
"Your preferences changed on another device. Try again.",
"This tag is already taken.",
@@ -40593,18 +45056,18 @@
"Two-factor authentication isn't enabled.",
"Two-factor authentication is required.",
"Unauthorized.",
- "You're not friends with this user.",
- "Invalid request.",
- "Invalid request.",
- "You need to complete your account setup before you can create communities.",
- "You can't add yourself to a group DM.",
- "Invalid request.",
- "Invalid request.",
- "Invalid request.",
- "You can't send messages to this user.",
- "Bots can't send friend requests.",
- "Invalid request.",
- "You need to complete your account setup before you can submit reports.",
+ "Claim your account to accept friend requests.",
+ "Claim your account to add reactions.",
+ "Claim your account to create applications.",
+ "Claim your account to create communities.",
+ "Claim your account to join group chats.",
+ "Claim your account to start or join calls.",
+ "Claim your account to join voice channels.",
+ "Claim your account to make purchases.",
+ "Claim your account to send direct messages.",
+ "Claim your account to send friend requests.",
+ "Claim your account to send messages.",
+ "Claim your account to submit reports.",
"Channel wasn't found.",
"Unknown emoji.",
"Unknown enforcement decision.",
@@ -40645,7 +45108,26 @@
"Validation failed.",
"Voice channel is full.",
"You've reached the maximum of {count, plural, one {# WebAuthn credential} other {# WebAuthn credentials}}.",
- "You've already completed age verification."
+ "{need, select, add_email {{action, select, message {Add an email to your account to send messages.} typing {Add an email to your account to send messages.} reaction {Add an email to your account to add reactions.} direct_message {Add an email to your account to send direct messages.} direct_message_open {Add an email to your account to start direct messages.} group_dm {Add an email to your account to join group chats.} friend_request {Add an email to your account to send friend requests.} friend_accept {Add an email to your account to accept friend requests.} invite_create {Add an email to your account to create invites.} guild_join {Add an email to your account to join this community.} guild_create {Add an email to your account to create a community.} voice {Add an email to your account to join voice channels.} call {Add an email to your account to start calls.} group_call {Add an email to your account to join group calls.} thread_join {Add an email to your account to join threads.} channel_follow {Add an email to your account to follow channels.} ownership_transfer {This person needs to add an email to their account before they can own a community.} application_create {Add an email to your account to create applications.} gift_redeem {Add an email to your account to redeem gifts.} profile_customize {Add an email to your account to change your profile.} report {Add an email to your account to submit reports.} mfa {Add an email to your account to turn on two-factor authentication.} guild_verification {Add an email to your account to talk in this community.} other {Add an email to your account to do this.}}} confirm_email {{action, select, message {Confirm your email to send messages.} typing {Confirm your email to send messages.} reaction {Confirm your email to add reactions.} direct_message {Confirm your email to send direct messages.} direct_message_open {Confirm your email to start direct messages.} group_dm {Confirm your email to join group chats.} friend_request {Confirm your email to send friend requests.} friend_accept {Confirm your email to accept friend requests.} invite_create {Confirm your email to create invites.} guild_join {Confirm your email to join this community.} guild_create {Confirm your email to create a community.} voice {Confirm your email to join voice channels.} call {Confirm your email to start calls.} group_call {Confirm your email to join group calls.} thread_join {Confirm your email to join threads.} channel_follow {Confirm your email to follow channels.} ownership_transfer {This person needs to confirm their email before they can own a community.} application_create {Confirm your email to create applications.} gift_redeem {Confirm your email to redeem gifts.} profile_customize {Confirm your email to change your profile.} report {Confirm your email to submit reports.} mfa {Confirm your email to turn on two-factor authentication.} guild_verification {Confirm your email to talk in this community.} other {Confirm your email to do this.}}} password {{action, select, message {Set a password to send messages.} typing {Set a password to send messages.} reaction {Set a password to add reactions.} direct_message {Set a password to send direct messages.} direct_message_open {Set a password to start direct messages.} group_dm {Set a password to join group chats.} friend_request {Set a password to send friend requests.} friend_accept {Set a password to accept friend requests.} invite_create {Set a password to create invites.} guild_join {Set a password to join this community.} guild_create {Set a password to create a community.} voice {Set a password to join voice channels.} call {Set a password to start calls.} group_call {Set a password to join group calls.} thread_join {Set a password to join threads.} channel_follow {Set a password to follow channels.} ownership_transfer {This person needs to set a password before they can own a community.} application_create {Set a password to create applications.} gift_redeem {Set a password to redeem gifts.} profile_customize {Set a password to change your profile.} report {Set a password to submit reports.} mfa {Set a password to turn on two-factor authentication.} guild_verification {Set a password to talk in this community.} other {Set a password to do this.}}} other {{action, select, message {Claim your account to send messages.} typing {Claim your account to send messages.} reaction {Claim your account to add reactions.} direct_message {Claim your account to send direct messages.} direct_message_open {Claim your account to start direct messages.} group_dm {Claim your account to join group chats.} friend_request {Claim your account to send friend requests.} friend_accept {Claim your account to accept friend requests.} invite_create {Claim your account to create invites.} guild_join {Claim your account to join this community.} guild_create {Claim your account to create a community.} voice {Claim your account to join voice channels.} call {Claim your account to start calls.} group_call {Claim your account to join group calls.} thread_join {Claim your account to join threads.} channel_follow {Claim your account to follow channels.} ownership_transfer {This person needs to claim their account before they can own a community.} application_create {Claim your account to create applications.} gift_redeem {Claim your account to redeem gifts.} profile_customize {Claim your account to change your profile.} report {Claim your account to submit reports.} mfa {Claim your account to turn on two-factor authentication.} guild_verification {Claim your account to talk in this community.} other {Claim your account to do this.}}}}",
+ "Enter your date of birth to continue.",
+ "Your date of birth is already set.",
+ "You aren't old enough to have an account here.",
+ "This sign-in attempt has expired. Start again.",
+ "That code isn't right. Check it and try again.",
+ "This code has expired. Ask for a new one.",
+ "Wait a moment before asking for another code.",
+ "This instance can't send email codes. Use your password instead.",
+ "Sign in to this account with its password.",
+ "Confirm it's you with your authenticator app, passkey or a backup code.",
+ "Creating an account from just a display name isn't available right now.",
+ "This sign-up link has expired or was already used.",
+ "This sign-up link isn't valid.",
+ "This account is already set up to sign in from other devices.",
+ "Add an email address to your account first.",
+ "{reason, select, email_delivery_off {Set a password to keep this account. This instance can't send email codes.} local_credential_basis {Set a password to keep this account. This instance asks every account for a password or passkey.} other {Set a password to keep this account.}}",
+ "This community asks people to join before previewing it.",
+ "This community is for adults only.",
+ "You're not previewing this community anymore."
]
}
},
@@ -40707,6 +45189,7 @@
{"name": "Themes", "description": "User interface themes"},
{"name": "Reports", "description": "Content reporting"},
{"name": "Instance", "description": "Instance configuration and info"},
+ {"name": "Admin", "description": "Administrative operations for instance management"},
{"name": "Billing", "description": "Subscription and payment management via Stripe"},
{"name": "Premium", "description": "Premium subscription features and benefits"},
{"name": "Gifts", "description": "Gift codes and redemption"},
@@ -40720,6 +45203,7 @@
{"name": "Discovery"},
{"name": "Emojis"},
{"name": "Stickers"},
+ {"name": "Operator Pass"},
{"name": "Debug"},
{"name": "Voice"}
]