SDK reference / Models

Models.Auth namespace

Types

TypeKindDescription
AccountNoticeclassA platform notice of a user account.
AccountNoticeListclassThe caller's account notices and address verification state.
AcknowledgeNoticeResponseclassResult of marking a notice read.
AltchaChallengeclassAn ALTCHA proof-of-work challenge (altcha.org).
BeginAddPasskeyRequestclassStarts registering one more passkey on the caller's own account (W13; ADR-1115).
BeginEmailVerificationRequestclassStarts the e-mail proof for a sign-up ceremony.
BeginEmailVerificationResponseclassThe e-mail proof was started. The same answer comes back for any address.
BeginForgeLoginRequestclassStarts an OAuth 2.0 login at a code forge (GitHub, GitLab; ADR-1115: optional).
BeginRecoveryRequestclassStarts an account recovery with one recovery code; finishRecovery spends it.
BeginRequestclass
BeginSignupRequestclassA sign-up request: the e-mail address and a proof of work.
BeginSsoSigninRequestclassStarts a sign-in through the organisation's own identity provider (W136; ADR-0214).
CeremonyclassA WebAuthn ceremony: the options to hand to the authenticator and the ID to send back.
Ceremony_optionsclassPublicKeyCredentialCreationOptions or PublicKeyCredentialRequestOptions, as JSON.
CliSigninDescriptionclassA sign-in that waits for approval, as the approval page shows it.
ConfirmEmailRequestclassThe code the user received, bound to the ceremony.
ConfirmEmailResponseclass
DescribeCliSigninRequestclassAsks which sign-in waits for approval: by grant ID or by the user code a person typed.
ExchangeApiKeyRequestclass
ExchangeCliSigninRequestclassTrades an approved sign-in for tokens, once: a loopback code with its PKCE verifier and redirect URI, or a device code.
ExchangeCliSigninResponseclassThe tokens of an approved sign-in; or, while a device sign-in still waits, `status` and `interval` without tokens (RFC 8628 section 3.5).
ExchangeCliSigninResponse_tokenTypeenum
FinishAddPasskeyRequestclassFinishes adding a passkey: the ceremony's attestation answer.
FinishAddPasskeyRequest_credentialclassThe authenticator's attestation answer, as JSON.
FinishAddPasskeyResponseclass
FinishForgeLoginRequestclassThe code and the state the forge returned to the redirect address.
FinishRequestclass
FinishRequest_credentialclassThe authenticator's answer (AuthenticatorAttestationResponse or AuthenticatorAssertionResponse), as JSON.
FinishSignupRequestclassFinishes a sign-up: the ceremony's answer and the code from the e-mail proof.
FinishSignupRequest_credentialclassThe authenticator's attestation answer, as JSON.
FinishSsoSigninRequestclassThe code and the state the identity provider returned to the redirect address.
ForgeAuthorizationclassWhere to send the browser, and the state the forge hands back with the code.
ForgeLinkclassA forge account linked to the caller's account.
RecoveryCodesclassTen new recovery codes, each good once; a new set voids the old. Shown only in this answer.
RefreshRequestclass
SsoAuthorizationclassWhere to send the browser for single sign-on, and the state the provider hands back with the code.
StartCliSigninRequestclassStarts a sign-in for a command-line client (RFC 8252 loopback with PKCE, or RFC 8628 device). No session exists until a person approves it.
StartCliSigninResponseclassA started sign-in. A loopback grant answers `grantId`; a device grant answers `deviceCode`, `userCode` and `interval`.
TokenExchangeRequestclassAn RFC 8693 token exchange (form encoded): the MCP host trades the client's token for one the API accepts.
TokenExchangeRequest_grant_typeenum
TokenExchangeRequest_subject_token_typeenum
TokenExchangeResponseclassThe exchanged token (RFC 8693).
TokenExchangeResponse_token_typeenum
TokenResponseclass
TokenResponse_tokenTypeenum