feat(huya): 精英宝典账号支持转入外部单协作
This commit is contained in:
@@ -68,6 +68,8 @@ import type {
|
||||
HuyaExchangeTargetKey,
|
||||
HuyaExternalCkImportRequest,
|
||||
HuyaExternalCkImportResult,
|
||||
HuyaWorkbenchTransferToCollabRequest,
|
||||
HuyaWorkbenchTransferToCollabResult,
|
||||
HuyaWorkbenchScope,
|
||||
MessageCountResponse,
|
||||
MessageDeletedResponse,
|
||||
@@ -179,6 +181,12 @@ export const huyaApi = {
|
||||
/** 工作台导入外部 CK: 入库并把账号加入自己的工作台 (text 每行一条 CK) */
|
||||
importWorkbenchCookies: (data: HuyaExternalCkImportRequest) =>
|
||||
api.post<HuyaExternalCkImportResult, HuyaExternalCkImportResult>('/huya/workbench-accounts/import-cookies', data),
|
||||
/** 精英宝典账号转入外部单协作:移出工作台并取回该账号网页 CK */
|
||||
transferWorkbenchToCollab: (accountId: number) =>
|
||||
api.post<HuyaWorkbenchTransferToCollabResult, HuyaWorkbenchTransferToCollabResult>(
|
||||
'/huya/workbench-accounts/transfer-to-collab',
|
||||
{ account_id: accountId } satisfies HuyaWorkbenchTransferToCollabRequest,
|
||||
),
|
||||
listWorkbenchAccounts: (scope: HuyaWorkbenchScope = 'elite') =>
|
||||
api.get<{ account_ids: number[]; configured: boolean }, { account_ids: number[]; configured: boolean }>(
|
||||
'/huya/workbench-accounts', { params: { handbook_scope: scope } },
|
||||
|
||||
Reference in New Issue
Block a user