- Preparing search index...
- The search index is not available
matrix-js-sdk
Methods
addEndToEndInboundGroupSession
- addEndToEndInboundGroupSession(senderCurve25519Key: string, sessionId: string, sessionData: InboundGroupSessionData, txn: unknown): void
-
Parameters
-
senderCurve25519Key: string
-
sessionId: string
-
-
txn: unknown
Returns void
addParkedSharedHistory
- addParkedSharedHistory(roomId: string, data: ParkedSharedHistory, txn?: unknown): void
-
Parameters
-
roomId: string
-
-
Optional
txn: unknown
Returns void
addSharedHistoryInboundGroupSession
- addSharedHistoryInboundGroupSession(roomId: string, senderKey: string, sessionId: string, txn?: unknown): void
-
Parameters
-
roomId: string
-
senderKey: string
-
sessionId: string
-
Optional
txn: unknown
Returns void
countEndToEndSessions
- countEndToEndSessions(txn: unknown, func: ((count: number) => void)): void
-
Parameters
-
txn: unknown
-
func: ((count: number) => void)
-
- (count: number): void
-
Returns void
Returns void
countSessionsNeedingBackup
- countSessionsNeedingBackup(txn?: unknown): Promise<number>
-
Returns Promise<number>
deleteAllData
- deleteAllData(): Promise<void>
-
Returns Promise<void>
deleteOutgoingRoomKeyRequest
- deleteOutgoingRoomKeyRequest(requestId: string, expectedState: number): Promise<null | OutgoingRoomKeyRequest>
-
Parameters
-
requestId: string
-
expectedState: number
doTxn
- doTxn<T>(mode: Mode, stores: Iterable<string>, func: ((txn: unknown) => T), log?: PrefixedLogger): Promise<T>
-
Parameters
-
-
stores: Iterable<string>
-
func: ((txn: unknown) => T)
-
- (txn: unknown): T
-
Returns T
-
Returns Promise<T>
filterOutNotifiedErrorDevices
getAccount
- getAccount(txn: unknown, func: ((accountPickle: null | string) => void)): void
-
Parameters
-
txn: unknown
-
func: ((accountPickle: null | string) => void)
-
- (accountPickle: null | string): void
-
Parameters
-
accountPickle: null | string
Returns void
Returns void
getAllEndToEndInboundGroupSessions
- getAllEndToEndInboundGroupSessions(txn: unknown, func: ((session: null | ISession) => void)): void
-
Parameters
-
txn: unknown
-
func: ((session: null | ISession) => void)
-
- (session: null | ISession): void
-
Returns void
Returns void
getAllEndToEndSessions
- getAllEndToEndSessions(txn: unknown, func: ((session: null | ISessionInfo) => void)): void
-
Returns void
getAllOutgoingRoomKeyRequestsByState
getCrossSigningKeys
- getCrossSigningKeys(txn: unknown, func: ((keys: null | Record<string, ICrossSigningKey>) => void)): void
-
Returns void
getEndToEndDeviceData
- getEndToEndDeviceData(txn: unknown, func: ((deviceData: null | IDeviceData) => void)): void
-
Parameters
-
txn: unknown
-
func: ((deviceData: null | IDeviceData) => void)
Returns void
getEndToEndInboundGroupSession
- getEndToEndInboundGroupSession(senderCurve25519Key: string, sessionId: string, txn: unknown, func: ((groupSession: null | InboundGroupSessionData, groupSessionWithheld: null | IWithheld) => void)): void
-
Parameters
-
senderCurve25519Key: string
-
sessionId: string
-
txn: unknown
-
func: ((groupSession: null | InboundGroupSessionData, groupSessionWithheld: null | IWithheld) => void)
Returns void
getEndToEndRooms
- getEndToEndRooms(txn: unknown, func: ((rooms: Record<string, IRoomEncryption>) => void)): void
-
Returns void
getEndToEndSession
- getEndToEndSession(deviceKey: string, sessionId: string, txn: unknown, func: ((session: null | ISessionInfo) => void)): void
-
Parameters
-
deviceKey: string
-
sessionId: string
-
txn: unknown
-
func: ((session: null | ISessionInfo) => void)
Returns void
getEndToEndSessionProblem
- getEndToEndSessionProblem(deviceKey: string, timestamp: number): Promise<null | IProblem>
-
Parameters
-
deviceKey: string
-
timestamp: number
Returns Promise<null | IProblem>
getEndToEndSessions
- getEndToEndSessions(deviceKey: string, txn: unknown, func: ((sessions: {
    [sessionId: string]: ISessionInfo;
}) => void)): void
-
Parameters
-
deviceKey: string
-
txn: unknown
-
func: ((sessions: {
    [sessionId: string]: ISessionInfo;
}) => void)
-
- (sessions: {
    [sessionId: string]: ISessionInfo;
}): void
-
Returns void
Returns void
getOrAddOutgoingRoomKeyRequest
getOutgoingRoomKeyRequest
getOutgoingRoomKeyRequestByState
getOutgoingRoomKeyRequestsByTarget
- getOutgoingRoomKeyRequestsByTarget(userId: string, deviceId: string, wantedStates: number[]): Promise<OutgoingRoomKeyRequest[]>
-
Parameters
-
userId: string
-
deviceId: string
-
wantedStates: number[]
getSecretStorePrivateKey
- getSecretStorePrivateKey<K>(txn: unknown, func: ((key: null | SecretStorePrivateKeys[K]) => void), type: K): void
-
Returns void
getSessionsNeedingBackup
- getSessionsNeedingBackup(limit: number): Promise<ISession[]>
-
Returns Promise<ISession[]>
getSharedHistoryInboundGroupSessions
- getSharedHistoryInboundGroupSessions(roomId: string, txn?: unknown): Promise<[senderKey: string, sessionId: string][]>
-
Parameters
-
roomId: string
-
Optional
txn: unknown
Returns Promise<[senderKey: string, sessionId: string][]>
markSessionsNeedingBackup
- markSessionsNeedingBackup(sessions: ISession[], txn?: unknown): Promise<void>
-
Returns Promise<void>
storeAccount
- storeAccount(txn: unknown, accountPickle: string): void
-
Parameters
-
txn: unknown
-
accountPickle: string
Returns void
storeCrossSigningKeys
- storeCrossSigningKeys(txn: unknown, keys: Record<string, ICrossSigningKey>): void
-
Returns void
storeEndToEndDeviceData
- storeEndToEndDeviceData(deviceData: IDeviceData, txn: unknown): void
-
Returns void
storeEndToEndInboundGroupSession
- storeEndToEndInboundGroupSession(senderCurve25519Key: string, sessionId: string, sessionData: InboundGroupSessionData, txn: unknown): void
-
Parameters
-
senderCurve25519Key: string
-
sessionId: string
-
-
txn: unknown
Returns void
storeEndToEndInboundGroupSessionWithheld
- storeEndToEndInboundGroupSessionWithheld(senderCurve25519Key: string, sessionId: string, sessionData: IWithheld, txn: unknown): void
-
Parameters
-
senderCurve25519Key: string
-
sessionId: string
-
-
txn: unknown
Returns void
storeEndToEndRoom
- storeEndToEndRoom(roomId: string, roomInfo: IRoomEncryption, txn: unknown): void
-
Parameters
-
roomId: string
-
-
txn: unknown
Returns void
storeEndToEndSession
- storeEndToEndSession(deviceKey: string, sessionId: string, sessionInfo: ISessionInfo, txn: unknown): void
-
Parameters
-
deviceKey: string
-
sessionId: string
-
-
txn: unknown
Returns void
storeEndToEndSessionProblem
- storeEndToEndSessionProblem(deviceKey: string, type: string, fixed: boolean): Promise<void>
-
Parameters
-
deviceKey: string
-
type: string
-
fixed: boolean
Returns Promise<void>
storeSecretStorePrivateKey
takeParkedSharedHistory
- takeParkedSharedHistory(roomId: string, txn?: unknown): Promise<ParkedSharedHistory[]>
-
Parameters
-
roomId: string
-
Optional
txn: unknown
unmarkSessionsNeedingBackup
- unmarkSessionsNeedingBackup(sessions: ISession[], txn?: unknown): Promise<void>
-
Returns Promise<void>
updateOutgoingRoomKeyRequest
Abstraction of things that can store data required for end-to-end encryption