event: database changes until close().
OptionalonError: (e: unknown) => voidGET /health, as JSON text. An address that answers but isn't an OpenVireo sync server (a web page, a
404, JSON without status) is not_sync_server with the page's status; an unreachable one is
network_error.
Earlier versions of a database on the server.
Opens an earlier version of a database.
Syncs a local database (its bytes and credentials: a password, passwordHashCredentials(hash) and/or a
key file) with databases/<databaseId>; returns the merged bytes.
localChanged: false: nothing changed here since the last sync, so a cheap HEAD check runs first and,
when the server is unchanged too, kdbx comes back as it is (outcome "unchanged"). Default true.acceptServerState: true: start over from what the server has, after the user confirmed a
server_rolled_back or server_lost_database.StaticconnectConnects with a device token you already have.
StaticpairClaims a pairing code ("ABCD-EFGH") for a device token and keeps it in storage.
StaticrestoreRestores a paired server from storage, or null.
Downloads
databases/<databaseId>as the server has it, to save a first copy on this device (no key needed: the bytes are the.kdbxas uploaded, under the database's own password).nullwhen the server has no such database.