feat(agents): 简化微信绑定并校验操作终态
This commit is contained in:
1 parent
0fa6f8cca0
commit
d58584489b
11 files changed
+2419
-769
No files matched your search
@@ -222,10 +222,11 @@ export interface CloudUserChannelAccount {
|
||||
target_agent_published_version: number | null;
|
||||
provider_generation?: string;
|
||||
desired_state?: string;
|
||||
sync_state?: string;
|
||||
last_confirmed_at?: string | null;
|
||||
}
|
||||
export interface CloudChannelAccountPage { items: CloudUserChannelAccount[] }
|
||||
export interface CloudChannelAccountMutation { channel: CloudUserChannelAccount; target_agent?: string | null; wechat?: Record<string, unknown>; disconnected?: boolean }
|
||||
export interface CloudChannelAccountMutation { channel: CloudUserChannelAccount; target_agent?: string | null; wechat?: Record<string, unknown>; disconnected?: boolean; unbound?: boolean }
|
||||
export interface CloudChannelOperation {
|
||||
operation_id: string;
|
||||
status: 'pending' | 'completed' | 'failed' | 'unknown' | string;
|
||||
@@ -424,6 +425,7 @@ export interface CloudAgentOperations {
|
||||
enableChannelAccount: Op<{ channel_account_id: string; operation_id: string; expected_revision: number }, CloudChannelAccountMutation>;
|
||||
pauseChannelAccount: Op<{ channel_account_id: string; operation_id: string; expected_revision: number }, CloudChannelAccountMutation>;
|
||||
disconnectChannelAccount: Op<{ channel_account_id: string; operation_id: string; expected_revision: number }, CloudChannelAccountMutation>;
|
||||
unbindChannelAccount: Op<{ channel_account_id: string; operation_id: string; expected_revision: number }, CloudChannelAccountMutation>;
|
||||
channelAccountWechatBindStart: Op<{ channel_account_id: string; operation_id: string; force: boolean }, CloudWechatBindState>;
|
||||
channelAccountWechatBindStatus: Op<{ channel_account_id: string; session_key: string }, CloudWechatBindState>;
|
||||
channelAccountWechatBindVerification: Op<{ channel_account_id: string; operation_id: string; session_key: string; verify_code: string }, CloudWechatBindState>;
|
||||
|
||||
Reference in new issue
Block a user