diff --git a/cypress/support/bot.ts b/cypress/support/bot.ts index 6f14bbbf45..9e9e00c878 100644 --- a/cypress/support/bot.ts +++ b/cypress/support/bot.ts @@ -20,7 +20,7 @@ import * as loglevel from "loglevel"; import type { ISendEventResponse, MatrixClient, Room } from "matrix-js-sdk/src/matrix"; import type { GeneratedSecretStorageKey } from "matrix-js-sdk/src/crypto-api"; -import type { AddSecretStorageKeyOpts } from "matrix-js-sdk/src/secret-storage"; +import type { SecretStorageKeyDescription } from "matrix-js-sdk/src/secret-storage"; import { HomeserverInstance } from "../plugins/utils/homeserver"; import { Credentials } from "./homeserver"; import { collapseLastLogGroup } from "./log"; @@ -157,7 +157,7 @@ function setupBotClient( // Store the cached secret storage key and return it when `getSecretStorageKey` is called let cachedKey: { keyId: string; key: Uint8Array }; - const cacheSecretStorageKey = (keyId: string, keyInfo: AddSecretStorageKeyOpts, key: Uint8Array) => { + const cacheSecretStorageKey = (keyId: string, keyInfo: SecretStorageKeyDescription, key: Uint8Array) => { cachedKey = { keyId, key, diff --git a/playwright/pages/bot.ts b/playwright/pages/bot.ts index 2a6df36e82..1bac352692 100644 --- a/playwright/pages/bot.ts +++ b/playwright/pages/bot.ts @@ -19,7 +19,7 @@ import { uniqueId } from "lodash"; import type { MatrixClient } from "matrix-js-sdk/src/matrix"; import type { Logger } from "matrix-js-sdk/src/logger"; -import type { AddSecretStorageKeyOpts } from "matrix-js-sdk/src/secret-storage"; +import type { SecretStorageKeyDescription } from "matrix-js-sdk/src/secret-storage"; import type { Credentials, HomeserverInstance } from "../plugins/homeserver"; import type { GeneratedSecretStorageKey } from "matrix-js-sdk/src/crypto-api"; import { Client } from "./client"; @@ -139,7 +139,11 @@ export class Bot extends Client { // Store the cached secret storage key and return it when `getSecretStorageKey` is called let cachedKey: { keyId: string; key: Uint8Array }; - const cacheSecretStorageKey = (keyId: string, keyInfo: AddSecretStorageKeyOpts, key: Uint8Array) => { + const cacheSecretStorageKey = ( + keyId: string, + keyInfo: SecretStorageKeyDescription, + key: Uint8Array, + ) => { cachedKey = { keyId, key,