Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the current object has been destroyed and its reference is gone in the Rust side.

Functions

Link copied to clipboard
open override fun appVersion(): String?
Link copied to clipboard
open override fun archives(): Archives
Link copied to clipboard
open override fun attachments(): Attachments
Link copied to clipboard
open suspend override fun availableHandles(name: String): List<String>

The handles for name that no inbox holds, the name itself first. name is a handle as a user typed it; its ASCII capitals become lowercase. A name with a code checks only that handle. A name without a code checks itself and 100 random codes in one lookup. Text outside the handle grammar fails with InvalidArgument, before any request. The SDK applies no other rule, so a claim of a returned handle can still fail with HandleNotAllowed. An unregistered client can call it.

Link copied to clipboard
open suspend override fun canMessage(identities: List<PublicIdentity>): Map<String, Boolean>

Returns one entry per core identity. Keys use ethereum:<core text>, passkey:<lowercase core hex>, or handle:<canonical handle>. A handle is available when the backend names an inbox for it.

Link copied to clipboard
open suspend override fun catchUpToLive(timeoutMs: ULong?): CatchUpSummary
Link copied to clipboard
open suspend override fun changeRecoveryIdentifier(signer: Signer, identity: PublicIdentity)
Link copied to clipboard
open suspend override fun claimHandle(handle: String)

Claim handle for this inbox, signed by this installation's key. It becomes the inbox's current handle, including when the inbox claimed it before. Fails with HandleTaken, HandleNotAllowed, HandleTooSoon, or HandleLimitReached, none of them retryable, and with InvalidArgument for text outside the handle grammar.

Link copied to clipboard
open override fun clientKey(): ULong

Host runtimes use this key to find the owner of a lifted message.

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun conversations(): Conversations
Link copied to clipboard
open suspend override fun decodeContent(encoded: EncodedContent): MessageContent
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open override fun diagnostics(): Diagnostics
Link copied to clipboard
open suspend override fun disableNotifications()
Link copied to clipboard
open suspend override fun enableNotifications(config: NotificationConfig): NotificationState
Link copied to clipboard
open suspend override fun end()
Link copied to clipboard
open suspend override fun events(filter: EventFilter): EventReader
Link copied to clipboard
open override fun identity(): PublicIdentity
Link copied to clipboard
open override fun inboxId(): InboxId
Link copied to clipboard
open suspend override fun inboxIdFor(identity: PublicIdentity): InboxId?

The inbox of an account or a handle, or None. A handle resolves only when the inbox the backend names holds it in its own identity log, and an old handle of an inbox still resolves to it. This never derives an inbox ID from a handle.

Link copied to clipboard
open suspend override fun inboxState(refreshFromNetwork: Boolean): InboxState
Link copied to clipboard
open suspend override fun inboxStates(ids: List<InboxId>, refreshFromNetwork: Boolean): List<InboxState>
Link copied to clipboard
open override fun installationId(): InstallationId
Link copied to clipboard
open override fun installationIdBytes(): ByteArray
Link copied to clipboard
open override fun isInMemory(): Boolean
Link copied to clipboard
open suspend override fun isRegistered(): Boolean
Link copied to clipboard
open suspend override fun keyPackageStatuses(ids: List<InstallationId>): Map<String, KeyPackageStatus>
Link copied to clipboard
open suspend override fun latestInboxUpdatesCount(ids: List<InboxId>, refreshFromNetwork: Boolean): Map<String, ULong>
Link copied to clipboard
open override fun libxmtpVersion(): String
Link copied to clipboard
Link copied to clipboard
open override fun options(): ClientOptions

The options this client was built with, without its secrets: the static credential, the credential source, and the storage encryption key are None. Any holder of the client can read these options, and the browser worker copies them to the page.

Link copied to clipboard
open suspend override fun ownInboxUpdatesCount(refreshFromNetwork: Boolean): ULong
Link copied to clipboard
open override fun preferences(): Preferences
Link copied to clipboard
open suspend override fun refreshServerConfiguration(): ServerConfiguration
Link copied to clipboard
open suspend override fun register()
Link copied to clipboard
open suspend override fun removeAccount(recoverySigner: Signer, identity: PublicIdentity)
Link copied to clipboard
open suspend override fun revokeAllOtherInstallations(signer: Signer)
Link copied to clipboard
open suspend override fun revokeInstallations(signer: Signer, ids: List<InstallationId>)
Link copied to clipboard
Link copied to clipboard
open suspend override fun setCredential(credential: Credential)
Link copied to clipboard
open suspend override fun signWithInstallationKey(text: String): ByteArray
Link copied to clipboard
open suspend override fun startListener(filter: EventFilter, listener: EventListener): ListenerId
Link copied to clipboard
open suspend override fun stopListener(id: ListenerId)
Link copied to clipboard
open override fun storage(): Storage
Link copied to clipboard
open override fun storagePath(): String?
Link copied to clipboard
open suspend override fun syncAllDeviceSyncGroups(): GroupSyncSummary
Link copied to clipboard
open suspend override fun unsafeAddAccount(signer: Signer, allowInboxReassign: Boolean)
Link copied to clipboard
open suspend override fun unsafeAddAccountSignatureRequest(identity: PublicIdentity, allowInboxReassign: Boolean): SignatureRequest
Link copied to clipboard
open suspend override fun unsafeApplySignatureRequest(request: SignatureRequest)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun verifySignedWithInstallationKey(text: String, signature: ByteArray): Boolean