diff --git a/sdks/browser-sdk/src/Client.ts b/sdks/browser-sdk/src/Client.ts index b50a3e041..089661a35 100644 --- a/sdks/browser-sdk/src/Client.ts +++ b/sdks/browser-sdk/src/Client.ts @@ -95,6 +95,10 @@ export class Client extends ClientWorkerClass { return this.sendMessage("getRevokeWalletSignatureText", { accountAddress }); } + async getRevokeInstallationsSignatureText() { + return this.sendMessage("getRevokeInstallationsSignatureText", undefined); + } + async addSignature(type: WasmSignatureRequestType, bytes: Uint8Array) { return this.sendMessage("addSignature", { type, bytes }); } @@ -119,8 +123,10 @@ export class Client extends ClientWorkerClass { return this.sendMessage("findInboxIdByAddress", { address }); } - async inboxState(refreshFromNetwork: boolean) { - return this.sendMessage("inboxState", { refreshFromNetwork }); + async inboxState(refreshFromNetwork?: boolean) { + return this.sendMessage("inboxState", { + refreshFromNetwork: refreshFromNetwork ?? false, + }); } async getLatestInboxState(inboxId: string) { diff --git a/sdks/browser-sdk/src/workers/client.ts b/sdks/browser-sdk/src/workers/client.ts index ea18abf92..35da1b29e 100644 --- a/sdks/browser-sdk/src/workers/client.ts +++ b/sdks/browser-sdk/src/workers/client.ts @@ -99,6 +99,15 @@ self.onmessage = async (event: MessageEvent) => { }); break; } + case "getRevokeInstallationsSignatureText": { + const result = await client.getRevokeInstallationsSignatureText(); + postMessage({ + id, + action, + result, + }); + break; + } case "addSignature": await client.addSignature(data.type, data.bytes); postMessage({