Structs§
- ApiKey
- API key response shape.
- ApiKey
Starting Characters - UTF-16 code units selected from the beginning of a generated API key.
- Auth
Request - Authentication request wrapper
- Auth
Response - Authentication response wrapper
- Code
Message Response - Middleware error response
{ code: String, message: String }. - Create
Account - Account creation data
- Create
ApiKey - API key creation data.
- Create
Device Code - Input for creating a new device authorization code.
- Create
Invitation - Invitation creation data
- Create
Jwk - Create
Member - Member creation data
- Create
Organization - Organization creation data
- Create
Organization Role - Create
Passkey - Input for creating a new passkey.
- Create
Session - Session creation data
- Create
Team - Create
TwoFactor - Two-factor authentication creation data.
- Create
User - User creation data
- Create
Verification - Verification token creation data
- Create
Wallet Address - Device
Code - Device authorization code storage shape.
- Error
Code Message Response - Error body
{ code: String, message: String }matching the TS better-auth error response shape. - Error
Message Response - Error body
{ message: String }. - Headers
- Response headers preserving repeated header names such as
Set-Cookie. - Health
Check Response - Health-check response for
/health. - Invitation
- Organization invitation
- Jwk
- Private keyring persistence. Public JWKS responses must select public material explicitly.
- List
Users Params - Parameters for listing users through the configured adapter.
- Member
- Organization member
- Multipart
File - Multipart
Files - Multipart file contents retained for application handlers alongside decoded fields.
- OkResponse
- Generic
{ ok: bool }response used by/okand/errorendpoints. - Organization
- Organization entity - matches
OpenAPIschema - Organization
Role - Passkey
- Passkey response shape.
- Rate
Limit Error Response - Rate-limit error response with
retryAfterfield. - Request
Extensions - Typed state shared only by trusted handlers in one request dispatch.
- Request
Meta - Metadata extracted from an incoming request for session creation.
- Status
Message Response { status: bool, message: String }response (e.g. change-email).- Status
Response - Generic
{ status: bool }response. - Stored
Organization Permissions - Literal organization-role permission JSON from storage.
- Success
Message Response { success: bool, message: String }response (e.g. delete-user).- Success
Response - Generic
{ success: bool }response (e.g. sign-out). - Team
- A team within one organization. The durable capacity counter is private to storage.
- Team
Member - A user membership in a team. The uniqueness key is never returned on the wire.
- TwoFactor
- Two-factor authentication response shape.
- Update
Account - Account update data (for refreshing OAuth tokens)
- Update
ApiKey - API key update data.
- Update
Device Code - Input for updating an existing device authorization code.
- Update
Organization - Organization update data
- Update
Organization Role - Update
Passkey - Input for updating a passkey.
- Update
Passkey Authentication - Input for updating stored passkey credential state after authentication.
- Update
Team - Update
TwoFactor - Mutate one exact factor generation without resetting its lockout state.
- Update
User - User update data
- Update
User Request - Update
User Response - Update
Verification - Validation
Error Response - Validation error response
{ code, message, errors }. - Wallet
Address - An address linked to a SIWE identity on one chain.
Enums§
- AddTeam
Member Result - ApiKey
Start Text - How API-key starting characters are persisted.
- Http
Method - HTTP method enumeration
- Invitation
Status - Invitation status
- Organization
Role Selector - Role references are always paired with an organization by store operations.
- Parsed
Request Body - Body decoded by trusted dispatch after its media policy has been checked. Original request bytes and headers remain available to application hooks.
- User
Filter Value - String operands for admin user-list filtering.
Type Aliases§
- Organization
Permissions - Preserve insertion order because upstream stores permission JSON as a string.