Type alias CryptoEventHandlerMap

CryptoEventHandlerMap: {
    crossSigning.keysChanged: ((data: {}) => void);
    crypto.devicesUpdated: ((users: string[], initialFetch: boolean) => void);
    crypto.keyBackupFailed: ((errcode: string) => void);
    crypto.keyBackupSessionsRemaining: ((remaining: number) => void);
    crypto.keyBackupStatus: ((enabled: boolean) => void);
    crypto.keySignatureUploadFailure: ((failures: IUploadKeySignaturesResponse["failures"], source: "checkOwnCrossSigningTrust" | "afterCrossSigningLocalKeyChange" | "setDeviceVerification", upload: ((opts: {
        shouldEmit: boolean;
    }) => Promise<void>)) => void);
    crypto.roomKeyRequest: ((request: IncomingRoomKeyRequest) => void);
    crypto.roomKeyRequestCancellation: ((request: IncomingRoomKeyRequestCancellation) => void);
    crypto.verification.request: ((request: VerificationRequest<any>) => void);
    crypto.warning: ((type: string) => void);
    crypto.willUpdateDevices: ((users: string[], initialFetch: boolean) => void);
    deviceVerificationChanged: ((userId: string, deviceId: string, device: DeviceInfo) => void);
    userCrossSigningUpdated: ((userId: string) => void);
    userTrustStatusChanged: ((userId: string, trustLevel: UserTrustLevel) => void);
}

Type declaration

  • crossSigning.keysChanged: ((data: {}) => void)
      • (data: {}): void
      • Parameters

        • data: {}

          Returns void

    • crypto.devicesUpdated: ((users: string[], initialFetch: boolean) => void)
        • (users: string[], initialFetch: boolean): void
        • Parameters

          • users: string[]
          • initialFetch: boolean

          Returns void

    • crypto.keyBackupFailed: ((errcode: string) => void)
        • (errcode: string): void
        • Parameters

          • errcode: string

          Returns void

    • crypto.keyBackupSessionsRemaining: ((remaining: number) => void)
        • (remaining: number): void
        • Parameters

          • remaining: number

          Returns void

    • crypto.keyBackupStatus: ((enabled: boolean) => void)
        • (enabled: boolean): void
        • Parameters

          • enabled: boolean

          Returns void

    • crypto.keySignatureUploadFailure: ((failures: IUploadKeySignaturesResponse["failures"], source: "checkOwnCrossSigningTrust" | "afterCrossSigningLocalKeyChange" | "setDeviceVerification", upload: ((opts: {
          shouldEmit: boolean;
      }) => Promise<void>)) => void)
        • (failures: IUploadKeySignaturesResponse["failures"], source: "checkOwnCrossSigningTrust" | "afterCrossSigningLocalKeyChange" | "setDeviceVerification", upload: ((opts: {
              shouldEmit: boolean;
          }) => Promise<void>)): void
        • Parameters

          • failures: IUploadKeySignaturesResponse["failures"]
          • source: "checkOwnCrossSigningTrust" | "afterCrossSigningLocalKeyChange" | "setDeviceVerification"
          • upload: ((opts: {
                shouldEmit: boolean;
            }) => Promise<void>)
              • (opts: {
                    shouldEmit: boolean;
                }): Promise<void>
              • Parameters

                • opts: {
                      shouldEmit: boolean;
                  }
                  • shouldEmit: boolean

                Returns Promise<void>

          Returns void

    • crypto.roomKeyRequest: ((request: IncomingRoomKeyRequest) => void)
    • crypto.roomKeyRequestCancellation: ((request: IncomingRoomKeyRequestCancellation) => void)
    • crypto.verification.request: ((request: VerificationRequest<any>) => void)
    • crypto.warning: ((type: string) => void)
        • (type: string): void
        • Parameters

          • type: string

          Returns void

    • crypto.willUpdateDevices: ((users: string[], initialFetch: boolean) => void)
        • (users: string[], initialFetch: boolean): void
        • Parameters

          • users: string[]
          • initialFetch: boolean

          Returns void

    • deviceVerificationChanged: ((userId: string, deviceId: string, device: DeviceInfo) => void)
        • (userId: string, deviceId: string, device: DeviceInfo): void
        • Parameters

          • userId: string
          • deviceId: string
          • device: DeviceInfo

          Returns void

    • userCrossSigningUpdated: ((userId: string) => void)
        • (userId: string): void
        • Parameters

          • userId: string

          Returns void

    • userTrustStatusChanged: ((userId: string, trustLevel: UserTrustLevel) => void)

    Generated using TypeDoc