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
AdminSignInAuthBody
AdminVerifyMagicLinkAuthBody
AdminVerifyOtpAuthBody
And
Auth
AuthBody
AuthSession
ColumnUpdate
Contains
CountBody
CreateBody
CreateManyBody
Db
DbListen
Decrement
DeleteBody
DeleteOneBody
Email
Emails
EndsWith
Eq
GetBody
Gt
Gte
In
Increment
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
SendMagicLinkAuthBody
SendMagicLinkEmail
SendOtpAuthBody
SendOtpEmail
SendResetPasswordEmail
SendVerifyEmailEmail
SignInAuthBody
SignUpAuthBody
StartsWith
StreamBody
StreamCountBody
StreamListBody
Update
UpdateBody
UpdateOneBody
UpdateValue
VerifyAuthBody
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

Exceptions / Errors

EmailInUseException
Upgrading an anonymous account named an address that another account in the same table already holds.
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.