ConversationsInterface

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun beginningDeliveryCursor(): String
Link copied to clipboard
Link copied to clipboard
abstract suspend fun createDm(peer: InboxId, options: CreateDmOptions? = null): Dm
Link copied to clipboard
abstract suspend fun createGroup(members: List<InboxId>, options: CreateGroupOptions? = null): Group

Find or create a DM with an account identity or a handle. Hosts present this as a createDm overload or union. A handle resolves through the verified handle resolver before the existing DM is looked up.

Link copied to clipboard
abstract suspend fun createGroupOptimistic(options: CreateGroupOptions? = null): Group
Link copied to clipboard
abstract suspend fun deleteMessage(id: MessageId): MessageId

Create a group from account identities and handles. Hosts present this as a createGroup overload or union. Every handle resolves through the verified handle resolver before the group exists, and all members join in one commit.

Link copied to clipboard
abstract suspend fun deleteMessageLocally(id: MessageId)
Link copied to clipboard
abstract suspend fun getById(id: ConversationId): Conversation?
Link copied to clipboard
abstract suspend fun getDmByIdentity(identity: PublicIdentity): Dm?

The DM with an account or a handle, or None. A handle resolves through the verified handle resolver before the DM is looked up.

Link copied to clipboard
abstract suspend fun getDmByInboxId(peer: InboxId): Dm?
Link copied to clipboard
abstract suspend fun getMessageById(id: MessageId): Message?
Link copied to clipboard
abstract suspend fun hmacKeys(): Map<String, List<HmacKey>>
Link copied to clipboard
abstract suspend fun list(options: ListConversationsOptions? = null): List<Conversation>
Link copied to clipboard
abstract suspend fun listDms(options: ListConversationsOptions?): List<Dm>
Link copied to clipboard
abstract suspend fun listGroups(options: ListConversationsOptions?): List<Group>
Link copied to clipboard
abstract suspend fun messageHistorySnapshot(limit: UInt, options: MessageReaderOptions? = null): MessageHistorySnapshot

Capture history with kind and consent selection. A replay from cursor is invalid because this call captures a new atomic replay boundary.

Link copied to clipboard
abstract suspend fun messageReader(options: MessageReaderOptions? = null): MessageReader
Link copied to clipboard
abstract suspend fun reactToMessage(id: MessageId, reaction: Reaction, options: SendOptions? = null): MessageId
Link copied to clipboard
abstract suspend fun replyToMessage(id: MessageId, content: EncodedContent, options: SendOptions? = null): MessageId
Link copied to clipboard
abstract suspend fun sync()

Host stream ownership.

Link copied to clipboard
abstract suspend fun syncAll(consentStates: List<ConsentState>?): GroupSyncSummary