summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-js-sdk/lib/crypto/keybackup.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-js-sdk/lib/crypto/keybackup.d.ts')
-rw-r--r--includes/external/matrix/node_modules/matrix-js-sdk/lib/crypto/keybackup.d.ts53
1 files changed, 0 insertions, 53 deletions
diff --git a/includes/external/matrix/node_modules/matrix-js-sdk/lib/crypto/keybackup.d.ts b/includes/external/matrix/node_modules/matrix-js-sdk/lib/crypto/keybackup.d.ts
deleted file mode 100644
index 3e46e9e..0000000
--- a/includes/external/matrix/node_modules/matrix-js-sdk/lib/crypto/keybackup.d.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-import { ISigned } from "../@types/signed";
-import { IEncryptedPayload } from "./aes";
-export interface Curve25519SessionData {
- ciphertext: string;
- ephemeral: string;
- mac: string;
-}
-export interface IKeyBackupSession<T = Curve25519SessionData | IEncryptedPayload> {
- first_message_index: number;
- forwarded_count: number;
- is_verified: boolean;
- session_data: T;
-}
-export interface IKeyBackupRoomSessions {
- [sessionId: string]: IKeyBackupSession;
-}
-export interface ICurve25519AuthData {
- public_key: string;
- private_key_salt?: string;
- private_key_iterations?: number;
- private_key_bits?: number;
-}
-export interface IAes256AuthData {
- iv: string;
- mac: string;
- private_key_salt?: string;
- private_key_iterations?: number;
-}
-export interface IKeyBackupInfo {
- algorithm: string;
- auth_data: ISigned & (ICurve25519AuthData | IAes256AuthData);
- count?: number;
- etag?: string;
- version?: string;
-}
-export interface IKeyBackupPrepareOpts {
- /**
- * Whether to use Secure Secret Storage to store the key encrypting key backups.
- * Optional, defaults to false.
- */
- secureSecretStorage: boolean;
-}
-export interface IKeyBackupRestoreResult {
- total: number;
- imported: number;
-}
-export interface IKeyBackupRestoreOpts {
- cacheCompleteCallback?: () => void;
- progressCallback?: (progress: {
- stage: string;
- }) => void;
-}
-//# sourceMappingURL=keybackup.d.ts.map \ No newline at end of file