diff --git a/src/crypto-api/index.ts b/src/crypto-api/index.ts index b3a05172a1b..0c3e6cdb842 100644 --- a/src/crypto-api/index.ts +++ b/src/crypto-api/index.ts @@ -809,6 +809,8 @@ export interface CryptoCallbacks extends SecretStorageCallbacks { * @param key - private key to store */ cacheSecretStorageKey?: (keyId: string, keyInfo: SecretStorageKeyDescription, key: Uint8Array) => void; + + /** @deprecated: unused with the Rust crypto stack. */ onSecretRequested?: ( userId: string, deviceId: string, @@ -816,10 +818,13 @@ export interface CryptoCallbacks extends SecretStorageCallbacks { secretName: string, deviceTrust: DeviceVerificationStatus, ) => Promise; + + /** @deprecated: unused with the Rust crypto stack. */ getDehydrationKey?: ( keyInfo: SecretStorageKeyDescription, checkFunc: (key: Uint8Array) => void, ) => Promise; + getBackupKey?: () => Promise; }