An attachment fetch event used when the attachment's download has completed.
An attachment fetch event used when the attachment is deleted.
An attachment fetch event used when the attachment's download progressed but is not yet complete.
The types of attachment fetch events that can be delivered to an attachment
fetcher's callback.
The source for a transport condition.
Closure that Logger.setCustomLogCallback can be set as a custom log callback on Logger.
A document value is a JavaScript object containing values for keys that can be serialized via CBOR.
The various identity configurations that you can use when initializing a
Ditto instance. Currently supported are
development, sharedKey,
and production identities.
Available options for init().
You can explicitly pass the WebAssembly module or its location via the
webAssemblyModule option. By default, Ditto tries to load the WebAssembly
module from the same path where this JavaScript is served.
Represents events delivered by a LiveQuery, which can be initial (fired immediately upon registration) or an update (all subsequent events).
The log levels supported by Ditto.
Types of connections that can be established between two peers.
Represents a dictionary of values to be incorporated into a query keyed by the placeholder used within that query. See method find() of Collection for more info.
The closure that is called whenever the documents covered by a live query change.
A peer object with information about an observed peer.
The closure that is called whenever a single documunent covered by a live query changes.
Describes the direction when sorting a query.
Types of connections that can be established between two peers.
The types of an UpdateResult.
Various options to pass the web assembly module to Ditto.
Initializes the whole Ditto module. Needs to be called and complete before any of the Ditto API is used.
Dictionary with global initialization options.
A representation of the events that can occur in relation to an attachment fetch.
There are three different attachment fetch events:
Completed,Progress, orDeleted.There will be at most one
CompletedorDeletedevent per attachment fetch. There can be manyProgressevents delivered for each attachment fetch.Updates relating to an attachment fetch are delivered by registering an AttachmentFetcher through a call to fetchAttachment() on a Collection instance.