move missing fix from platform

This commit is contained in:
Andrey Sobolev
2025-10-07 12:51:34 +07:00
parent 27784e8257
commit 9aefea0168
+10
View File
@@ -225,6 +225,7 @@ export interface AccountClient {
mergeSpecifiedAccounts: (primaryAccount: AccountUuid, secondaryAccount: AccountUuid) => Promise<void>
addEmailSocialId: (email: string) => Promise<OtpInfo>
addHulyAssistantSocialId: () => Promise<PersonId>
refreshHulyAssistantToken: () => Promise<void>
setCookie: () => Promise<void>
deleteCookie: () => Promise<void>
@@ -1118,6 +1119,15 @@ class AccountClientImpl implements AccountClient {
return await this.rpc(request)
}
async refreshHulyAssistantToken (): Promise<void> {
const request = {
method: 'refreshHulyAssistantToken' as const,
params: {}
}
await this.rpc(request)
}
async setCookie (): Promise<void> {
const url = concatLink(this.url, '/cookie')
const response = await fetch(url, { ...this.request, method: 'PUT' })