From 9aefea01689df8f269a1ff3a62a1c6d0ddfdae8e Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Tue, 7 Oct 2025 12:51:34 +0700 Subject: [PATCH] move missing fix from platform --- packages/account-client/src/client.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/account-client/src/client.ts b/packages/account-client/src/client.ts index 96baa83b22..f21222e6a4 100644 --- a/packages/account-client/src/client.ts +++ b/packages/account-client/src/client.ts @@ -225,6 +225,7 @@ export interface AccountClient { mergeSpecifiedAccounts: (primaryAccount: AccountUuid, secondaryAccount: AccountUuid) => Promise addEmailSocialId: (email: string) => Promise addHulyAssistantSocialId: () => Promise + refreshHulyAssistantToken: () => Promise setCookie: () => Promise deleteCookie: () => Promise @@ -1118,6 +1119,15 @@ class AccountClientImpl implements AccountClient { return await this.rpc(request) } + async refreshHulyAssistantToken (): Promise { + const request = { + method: 'refreshHulyAssistantToken' as const, + params: {} + } + + await this.rpc(request) + } + async setCookie (): Promise { const url = concatLink(this.url, '/cookie') const response = await fetch(url, { ...this.request, method: 'PUT' })