Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Account(val olmPickleKey: String?, val baseUrl: String?, val userId: UserId?, val deviceId: String?, val accessToken: String?, val syncBatchToken: String?, val filterId: String?, val backgroundFilterId: String?, val displayName: String?, val avatarUrl: String?)
Link copied to clipboard
class AccountStore(repository: AccountRepository, tm: RepositoryTransactionManager, storeScope: CoroutineScope) : Store
Link copied to clipboard
class GlobalAccountDataStore(globalAccountDataRepository: GlobalAccountDataRepository, tm: RepositoryTransactionManager, contentMappings: EventContentSerializerMappings, config: MatrixClientConfiguration, storeScope: CoroutineScope) : Store
Link copied to clipboard
data class KeyChainLink(val signingUserId: UserId, val signingKey: Key.Ed25519Key, val signedUserId: UserId, val signedKey: Key.Ed25519Key)
Link copied to clipboard
@Serializable
sealed interface KeySignatureTrustLevel
Link copied to clipboard
class KeyStore(outdatedKeysRepository: OutdatedKeysRepository, deviceKeysRepository: DeviceKeysRepository, crossSigningKeysRepository: CrossSigningKeysRepository, keyVerificationStateRepository: KeyVerificationStateRepository, keyChainLinkRepository: KeyChainLinkRepository, secretsRepository: SecretsRepository, secretKeyRequestRepository: SecretKeyRequestRepository, roomKeyRequestRepository: RoomKeyRequestRepository, tm: RepositoryTransactionManager, config: MatrixClientConfiguration, storeScope: CoroutineScope) : Store
Link copied to clipboard
@Serializable
sealed interface KeyVerificationState
Link copied to clipboard
@Serializable
data class MediaCacheMapping(val cacheUri: String, val mxcUri: String? = null, val size: Int? = null, val contentType: String? = ContentType.Application.OctetStream.toString())
Link copied to clipboard
class MediaCacheMappingStore(mediaCacheMappingRepository: MediaCacheMappingRepository, tm: RepositoryTransactionManager, config: MatrixClientConfiguration, storeScope: CoroutineScope) : Store
Link copied to clipboard
class OlmCryptoStore(olmAccountRepository: OlmAccountRepository, olmForgetFallbackKeyAfterRepository: OlmForgetFallbackKeyAfterRepository, olmSessionRepository: OlmSessionRepository, inboundMegolmSessionRepository: InboundMegolmSessionRepository, inboundMegolmMessageIndexRepository: InboundMegolmMessageIndexRepository, outboundMegolmSessionRepository: OutboundMegolmSessionRepository, tm: RepositoryTransactionManager, config: MatrixClientConfiguration, storeScope: CoroutineScope) : Store
Link copied to clipboard
@Serializable
data class Room(val roomId: RoomId, val createEventContent: CreateEventContent? = null, val name: RoomDisplayName? = null, val avatarUrl: String? = null, val isDirect: Boolean = false, val lastEventId: EventId? = null, val lastRelevantEventId: EventId? = null, val lastRelevantEventTimestamp: Instant? = null, val unreadMessageCount: Long = 0, val encrypted: Boolean = false, val membership: Membership = Membership.JOIN, val membersLoaded: Boolean = false, val nextRoomId: RoomId? = null)
Link copied to clipboard
class RoomAccountDataStore(roomAccountDataRepository: RoomAccountDataRepository, tm: RepositoryTransactionManager, contentMappings: EventContentSerializerMappings, config: MatrixClientConfiguration, storeScope: CoroutineScope) : Store
Link copied to clipboard
@Serializable
data class RoomDisplayName(val explicitName: String? = null, val isEmpty: Boolean = false, val otherUsersCount: Long = 0, val summary: Sync.Response.Rooms.JoinedRoom.RoomSummary?)
Link copied to clipboard
@Serializable
data class RoomOutboxMessage<T : MessageEventContent>(val transactionId: String, val roomId: RoomId, val content: T, val sentAt: Instant? = null, val eventId: EventId? = null, val sendError: RoomOutboxMessage.SendError? = null, val keepMediaInCache: Boolean = true)
Link copied to clipboard
class RoomOutboxMessageStore(roomOutboxMessageRepository: RoomOutboxMessageRepository, tm: RepositoryTransactionManager, storeScope: CoroutineScope, config: MatrixClientConfiguration) : Store
Link copied to clipboard
class RoomStateStore(roomStateRepository: RoomStateRepository, tm: RepositoryTransactionManager, contentMappings: EventContentSerializerMappings, config: MatrixClientConfiguration, storeScope: CoroutineScope) : Store
Link copied to clipboard
class RoomStore(roomRepository: RoomRepository, tm: RepositoryTransactionManager, storeScope: CoroutineScope, config: MatrixClientConfiguration) : Store
Link copied to clipboard
class RoomTimelineStore(timelineEventRepository: TimelineEventRepository, timelineEventRelationRepository: TimelineEventRelationRepository, tm: RepositoryTransactionManager, config: MatrixClientConfiguration, storeScope: CoroutineScope) : Store
Link copied to clipboard
@Serializable
data class RoomUser(val roomId: RoomId, val userId: UserId, val name: String, val event: ClientEvent.StateBaseEvent<MemberEventContent>)
Link copied to clipboard
@Serializable
data class RoomUserReceipts(val roomId: RoomId, val userId: UserId, val receipts: Map<ReceiptType, RoomUserReceipts.Receipt> = mapOf())
Link copied to clipboard
class RoomUserStore(roomUserRepository: RoomUserRepository, roomUserReceiptsRepository: RoomUserReceiptsRepository, tm: RepositoryTransactionManager, config: MatrixClientConfiguration, storeScope: CoroutineScope) : Store
Link copied to clipboard
class RootStore(stores: List<Store>) : Store
Link copied to clipboard
interface Store
Link copied to clipboard
@Serializable
data class StoredCrossSigningKeys(val value: SignedCrossSigningKeys, val trustLevel: KeySignatureTrustLevel)
Link copied to clipboard
@Serializable
data class StoredDeviceKeys(val value: SignedDeviceKeys, val trustLevel: KeySignatureTrustLevel)
Link copied to clipboard
@Serializable
data class StoredRoomKeyRequest(val content: RoomKeyRequestEventContent, val receiverDeviceIds: Set<String>, val createdAt: Instant)
Link copied to clipboard
@Serializable
data class StoredSecret(val event: ClientEvent.GlobalAccountDataEvent<out SecretEventContent>, val decryptedPrivateKey: String)
Link copied to clipboard
@Serializable
data class StoredSecretKeyRequest(val content: SecretKeyRequestEventContent, val receiverDeviceIds: Set<String>, val createdAt: Instant)
Link copied to clipboard
data class TimelineEvent(val event: ClientEvent.RoomEvent<*>, val content: Result<RoomEventContent>? = if (event.isEncrypted) null else Result.success(event.content), val previousEventId: EventId?, val nextEventId: EventId?, val gap: TimelineEvent.Gap?)
Link copied to clipboard
@Serializable
data class TimelineEventRelation(val roomId: RoomId, val eventId: EventId, val relationType: RelationType, val relatedEventId: EventId)
Link copied to clipboard
class TimelineEventSerializer(mappings: Set<EventContentSerializerMapping<out RoomEventContent>>, storeTimelineEventContentUnencrypted: Boolean) : KSerializer<TimelineEvent>
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val Room.creator: UserId?
Link copied to clipboard
val TimelineEvent.eventId: EventId
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ClientEvent.RoomEvent<*>.isEncrypted: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val RoomUser.membership: Membership
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val Room.previousRoomId: RoomId?
Link copied to clipboard
val TimelineEvent.relatesTo: RelatesTo?
Link copied to clipboard
val TimelineEvent.roomId: RoomId
Link copied to clipboard
val TimelineEvent.sender: UserId
Link copied to clipboard
val Room.type: CreateEventContent.RoomType?
Link copied to clipboard
val TimelineEvent.unsigned: UnsignedRoomEventData?
Link copied to clipboard

Functions

Link copied to clipboard
fun createStoreModule(): Module
Link copied to clipboard
suspend fun RoomStore.encryptedJoinedRooms(): Set<RoomId>
Link copied to clipboard
inline fun <C : GlobalAccountDataEventContent> GlobalAccountDataStore.get(key: String = ""): Flow<ClientEvent.GlobalAccountDataEvent<C>?>
inline fun <C : StateEventContent> RoomStateStore.get(roomId: RoomId): Flow<Map<String, Flow<ClientEvent.StateBaseEvent<C>?>>>
inline fun <C : RoomAccountDataEventContent> RoomAccountDataStore.get(roomId: RoomId, key: String = ""): Flow<ClientEvent.RoomAccountDataEvent<C>?>
Link copied to clipboard
inline suspend fun <C : StateEventContent> RoomStateStore.getByRooms(roomIds: Set<RoomId>, stateKey: String = ""): List<ClientEvent.StateBaseEvent<C>>
Link copied to clipboard
inline fun <C : StateEventContent> RoomStateStore.getByStateKey(roomId: RoomId, stateKey: String = ""): Flow<ClientEvent.StateBaseEvent<C>?>
Link copied to clipboard
inline fun <C : StateEventContent> RoomStateStore.getContentByStateKey(roomId: RoomId, stateKey: String = ""): Flow<C?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun RoomStateStore.members(roomId: RoomId, memberships: Set<Membership>): Set<UserId>
Link copied to clipboard
suspend fun RoomStateStore.membersCount(roomId: RoomId, membership: Membership, vararg moreMemberships: Membership): Long
Link copied to clipboard
suspend fun OlmCryptoStore.waitForInboundMegolmSession(roomId: RoomId, sessionId: String, firstKnownIndexLessThen: Long? = null, onNotExisting: suspend CoroutineScope.() -> Unit? = null)