Closes storage resources (connections, handles, transactions, etc.).
Deletes history for a direct conversation or group channel.
If olderThan is omitted, the full history for that thread is removed.
Channel ID or user ID whose history should be deleted.
OptionalolderThan: stringRelative duration such as 1h, 7d, or 30m.
Deletes one message by mailID.
Deletes one one-time key by index.
Returns all known encryption sessions.
Gets one device record by ID.
Returns group-message history for a channel.
Returns direct-message history for a user.
Fetches one one-time key by index.
Returns the local signed prekey pair, or null when it has not been created yet.
Returns the active session for a device ID (typically the most recently used).
Fetches an encryption session using the session public key bytes.
Performs storage initialization (schema creation, migrations, warmup, etc.).
Implementations should set ready = true and emit ready after completion.
Updates a session's lastUsed timestamp to "now".
Marks an encryption session as verified.
This usually means the user has compared safety words / fingerprint out of band and confirmed the session.
Deletes all message history.
Deletes all local key/session state.
Set this to "true" when init has complete.
Saves a device record.
Persists one chat message.
Saves signed prekeys.
Prekeys to persist.
true for one-time keys, false for the long-lived signed prekey.
Persists an encryption session.
Storage contract used by
Clientfor local persistence.Implement this interface when you want to replace the built-in sqlite-backed
Storageclass (for example on mobile, web, or any custom environment).A custom implementation is responsible for:
ready,error)