(
self,
*,
state_service: AccountStateService | None = None,
captcha_service: CaptchaService | None = None,
bigmodel_client: BigModelClient | None = None,
tencent_captcha_client: TencentCaptchaClient | None = None,
ocr_service: OcrService | None = None,
tdc_service: TencentTdcService | None = None,
runtime_log_service: RuntimeLogService | None = None,
)
| 99 | "transport": self.bigmodel_client.transport_name, |
| 100 | "ocr": self.ocr_service.status_payload(), |
| 101 | "tdc": self.tdc_service.status_payload(), |
| 102 | } |
| 103 | |
| 104 | def list_accounts(self): |
| 105 | return self.state_service.list_accounts() |
| 106 | |
| 107 | def get_account_detail(self, account_id: str) -> AccountDetailResponse: |
| 108 | return self.state_service.get_account_detail(account_id) |
| 109 | |
| 110 | def import_account(self, request): |
| 111 | return self.state_service.import_account(request) |
| 112 | |
| 113 | def update_preferences(self, account_id: str, request: AccountPreferencesRequest) -> AccountDetailResponse: |
| 114 | return self.state_service.update_preferences(account_id, request) |
| 115 | |
| 116 | def delete_account(self, account_id: str) -> dict[str, Any]: |
| 117 | self.state_service.delete_account(account_id) |
| 118 | return {"account_id": account_id, "deleted": True} |
| 119 | |
| 120 | def bootstrap_account( |
| 121 | self, |
| 122 | account_id: str, |
nothing calls this directly
no test coverage detected