zonai_client library

Generated HTTP client for the Zonai Revali server.

Import this library to access ZonaiClient and all request/response body types re-exported from zonai_schema.

For file-backed Storage on VM targets, import package:zonai_client/storage.dart or pass storage: ZonaiFileStorage(directory: '...') to ZonaiClient.

Classes

Add
AddAll
Appends every element of values to a list column.
AdminAuth
AdminSendMagicLinkAuthBody
AdminSendOtpAuthBody
AdminSendResetPasswordAuthBody
AdminSignInAuthBody
AdminVerifyMagicLinkAuthBody
AdminVerifyOtpAuthBody
And
Auth
AuthBody
AuthSession
BatchBody
The body of POST /db/batch: writes across any tables that either all land or none do.
BatchCreate
BatchCreateMany
BatchDelete
BatchDeleteMany
BatchOperation
One step of a BatchBody. Each has the same fields as its single-write route, plus an op naming which one it is.
BatchResult
What one step of a committed batch did, in the order the steps were sent.
BatchUpdate
BatchUpdateMany
ColumnUpdate
ConfirmResetPasswordAuthBody
ConfirmVerifyEmailAuthBody
Contains
CountBody
CreateBody
CreateManyBody
Db
DbListen
Decrement
DeleteBody
DeleteOneBody
Email
EmailAddress
Emails
EndsWith
Eq
GetBody
Gt
Gte
In
Increment
Jwt
A JWT token for a user.
JwtId
ListBody
Literal
Lt
Lte
NotContains
NotIn
OAuthProviderPublic
The redacted view of an OAuthProvider the dashboard and Dart client are allowed to see — no clientSecret, no Apple private key, no token or userinfo endpoint. Produced by OAuthProvider.toPublic.
ObjectUpdate
Or
OrderByTerm
Paginated<T>
PhotoCreateMeta
Query metadata for POST /photos (create).
Photos
Remove
RemoveAll
Removes every element from a list column that appears in values
ResetPasswordAuthBody
SendAdminInviteEmail
SendMagicLinkAuthBody
SendMagicLinkEmail
SendOtpAuthBody
SendOtpEmail
SendResetPasswordAuthBody
SendResetPasswordEmail
SendVerifyEmailEmail
SignInAuthBody
SignUpAuthBody
StartsWith
StreamBody
StreamCountBody
StreamFramingInterceptor
Hands the generated /db/stream* readers one whole JSON message per chunk.
StreamListBody
UnknownId
Update
UpdateBody
UpdateOneBody
UpdateValue
VerifyAuthBody
VerifyEmailAuthBody
VerifyMagicLinkAuthBody
VerifyOtpAuthBody
Where
ZonaiClient
Main entry point for the Zonai HTTP client.
ZonaiMemoryStorage
ZonaiNoStorage
ZonaiStorage
Browser-safe Storage factories for the Zonai client.

Enums

OAuthProviderKind
Which built-in provider produced an OAuthProvider, or custom for one built by OAuthProvider.custom(...). The dashboard uses this to pick a bundled brand icon instead of trusting a caller-supplied one.
SortDirection

Typedefs

StreamErrorReporter = void Function(Uri url, Object error, StackTrace? stackTrace)
Called with each error on a live /db/stream* response: a message that could not be framed, or the connection failing.

Exceptions / Errors

EmailInUseException
Upgrading an anonymous account named an address that another account in the same table already holds.
MagicLinkReplacedException
The magic link was valid, but a newer one has been sent to the same address since, and that one replaced it.
PasswordResetRequiredException
The server refused a password sign-in because the account owes a new password, and handed back a one-time ticket instead of a session.
PreconditionFailedException
The server refused an update because a target row did not meet the update's expect, and wrote nothing.
ServerException
A non-2xx response from the server.