{"openapi":"3.0.1","info":{"title":"tutu-api","version":"1.0.0"},"servers":[{"url":"http://13.13.73.66:8080","description":"Generated server url"}],"security":[{"oauth2":[]}],"tags":[{"name":"数字员工服务时间管理","description":"数字员工服务时间配置相关API"},{"name":"话术分类","description":"话术分类管理接口"},{"name":"聊天诊断","description":"聚合聊天一键诊断"},{"name":"数字员工管理","description":"数字员工管理相关API"},{"name":"话术内容","description":"话术内容管理接口"},{"name":"数字员工客户管理","description":"数字员工客户相关接口"}],"paths":{"/api/{tenant}/v1/customers/interventionRule/{id}":{"put":{"tags":["customer-intervention-rule-controller"],"summary":"更新人工介入规则","operationId":"updateCustomerInterventionRuleV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerInterventionRuleRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerInterventionRulesDtoV1"}}}}}},"delete":{"tags":["customer-intervention-rule-controller"],"summary":"删除规则","operationId":"deleteCustomerInterventionRuleV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/chat/contact/way/{id}/setDefault":{"put":{"tags":["chat-contact-way-controller"],"summary":"设置联系人场景码为默认","operationId":"setDefault","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SceneCodeDefaultDto"}}}}}}}},"/api/{tenant}/v1/chat/contact/way/{id}/hide":{"put":{"tags":["chat-contact-way-controller"],"summary":"隐藏联系人场景码","operationId":"hide","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/external/{contactId}":{"get":{"tags":["work-we-chat-contact-console-controller"],"summary":"获取联系人客户详情","operationId":"getChatExternalContact","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatContactsExternalDto"}}}}}},"put":{"tags":["work-we-chat-contact-console-controller"],"summary":"修改联系人客户详情","operationId":"putChatExternalContact","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatContactsExternalRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatContactsExternalDto"}}}}}}},"/api/{tenant}/console/variables/{id}":{"put":{"tags":["variable-value-controller"],"operationId":"putVariableValue","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutVariableValueRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}},"delete":{"tags":["variable-value-controller"],"operationId":"deleteVariableValue","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/variableScopes/{scopeId}/definitions/{id}":{"get":{"tags":["variable-definition-controller"],"operationId":"getVariableDefinition","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"scopeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/VariableDefinitionDto"}}}}}},"put":{"tags":["variable-definition-controller"],"operationId":"putVariableDefinition","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"scopeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariableDefinitionPayload"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/VariableDefinitionDto"}}}}}},"delete":{"tags":["variable-definition-controller"],"operationId":"deleteVariableDefinition","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"scopeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/VariableDefinitionDto"}}}}}}},"/api/{tenant}/console/variableScopes/{id}":{"get":{"tags":["variable-scope-controller"],"operationId":"getVariableScope","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/VariableScopeDto"}}}}}},"put":{"tags":["variable-scope-controller"],"operationId":"putVariableScope","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariableScopePayload"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/VariableScopeDto"}}}}}},"delete":{"tags":["variable-scope-controller"],"operationId":"deleteVariableScope","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/VariableScopeDto"}}}}}}},"/api/{tenant}/console/userConversations/{id}":{"get":{"tags":["user-conversation-controller"],"operationId":"getConversation","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserConversationDTO"}}}}}},"put":{"tags":["user-conversation-controller"],"operationId":"putConversation","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserConversationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserConversationDTO"}}}}}},"delete":{"tags":["user-conversation-controller"],"operationId":"deleteConversation","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserConversationDTO"}}}}}}},"/api/{tenant}/console/userConversations/{id}/terminate":{"put":{"tags":["user-conversation-controller"],"operationId":"terminateConversation","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserConversationDTO"}}}}}}},"/api/{tenant}/console/userConversations/{id}/activate":{"put":{"tags":["user-conversation-controller"],"operationId":"activateConversation","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserConversationDTO"}}}}}}},"/api/{tenant}/console/userConversationGroups/{id}":{"get":{"tags":["user-conversation-group-controller"],"operationId":"getConversationGroup","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserConversationGroupDTO"}}}}}},"put":{"tags":["user-conversation-group-controller"],"operationId":"putConversationGroup","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserConversationGroupPayload"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserConversationGroupDTO"}}}}}},"delete":{"tags":["user-conversation-group-controller"],"operationId":"deleteUserConversationGroup","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserConversationGroupDTO"}}}}}}},"/api/{tenant}/console/userChatContactView/{id}":{"get":{"tags":["user-chat-contact-view-console-controller"],"operationId":"getUserChatContactView","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserChatContactViewDto"}}}}}},"put":{"tags":["user-chat-contact-view-console-controller"],"operationId":"updateUserChatContactView","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserChatContactViewRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserChatContactViewDto"}}}}}},"delete":{"tags":["user-chat-contact-view-console-controller"],"operationId":"deleteUserChatContactView","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/toolApiProviders/{id}":{"get":{"tags":["tool-api-provider-controller"],"operationId":"getToolApiProvider","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ToolApiProviderDTO"}}}}}},"put":{"tags":["tool-api-provider-controller"],"operationId":"putToolApiProvider","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrUpdateToolApiProviderRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ToolApiProviderDTO"}}}}}},"delete":{"tags":["tool-api-provider-controller"],"operationId":"deleteToolApiProvider","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ToolApiProviderDTO"}}}}}}},"/api/{tenant}/console/customers/tagRule/{id}":{"get":{"tags":["customer-tag-rule-console-controller"],"summary":"获取关键词标签规则详情","operationId":"getCustomerTagRule","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerTagRuleDto"}}}}}},"put":{"tags":["customer-tag-rule-console-controller"],"summary":"更新关键词标签规则","operationId":"updateCustomerTagRule","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTagRuleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerTagRuleDto"}}}}}},"delete":{"tags":["customer-tag-rule-console-controller"],"summary":"删除关键词标签规则","operationId":"deleteCustomerTagRule","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/customers/interventionRule/{id}":{"put":{"tags":["customer-intervention-rule-console-controller"],"summary":"更新人工介入规则","operationId":"updateCustomerInterventionRule","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerInterventionRuleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerInterventionRulesDto"}}}}}}},"/api/{tenant}/console/customers/intentionRecord/{id}":{"put":{"tags":["customer-intention-record-controller"],"summary":"修改意图识别记录","operationId":"updateIntentionRecord","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifyCustomerIntentionRecord"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerIntentionRecordDto"}}}}}}},"/api/{tenant}/console/conversationGroups/{groupId}/triggers/{id}":{"get":{"tags":["conversation-group-trigger-controller"],"operationId":"getConversationGroupTrigger","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConversationGroupTriggerDto"}}}}}},"put":{"tags":["conversation-group-trigger-controller"],"operationId":"putConversationGroupTrigger","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationGroupTriggerPayload"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConversationGroupTriggerDto"}}}}}},"delete":{"tags":["conversation-group-trigger-controller"],"operationId":"deleteConversationGroupTrigger","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConversationGroupTriggerDto"}}}}}}},"/api/{tenant}/console/conversationGroups/{groupId}/eventDefinitions/{id}":{"get":{"tags":["conversation-group-event-definition-controller"],"operationId":"getConversationGroupEventDefinition","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConversationGroupEventDefinitionDto"}}}}}},"put":{"tags":["conversation-group-event-definition-controller"],"operationId":"putConversationGroupEventDefinition","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationGroupEventDefinitionPayload"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConversationGroupEventDefinitionDto"}}}}}},"delete":{"tags":["conversation-group-event-definition-controller"],"operationId":"deleteConversationGroupEventDefinition","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConversationGroupEventDefinitionDto"}}}}}}},"/api/{tenant}/console/chat/script-content/{id}":{"get":{"tags":["话术内容"],"summary":"获取话术内容详情","operationId":"getScriptContent","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ScriptContentDtoV1"}}}}}},"put":{"tags":["话术内容"],"summary":"更新话术内容","operationId":"updateScriptContent","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptContentRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ScriptContentDtoV1"}}}}}},"delete":{"tags":["话术内容"],"summary":"删除话术内容","operationId":"deleteScriptContent","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/chat/script-category/{id}":{"get":{"tags":["话术分类"],"summary":"获取话术分类详情","operationId":"getScriptCategory","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ScriptCategoryDtoV1"}}}}}},"put":{"tags":["话术分类"],"summary":"更新话术分类","operationId":"updateScriptCategory","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptCategoryRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ScriptCategoryDtoV1"}}}}}},"delete":{"tags":["话术分类"],"summary":"删除话术分类","operationId":"deleteScriptCategory","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/chat/contact/way/{id}/setDefault":{"put":{"tags":["chat-contact-way-console-controller"],"summary":"Set default contact scene code","operationId":"setDefault_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SceneCodeDefaultDto"}}}}}}}},"/api/{tenant}/console/chat/contact/way/{id}/hide":{"put":{"tags":["chat-contact-way-console-controller"],"summary":"Hide contact scene code","operationId":"hide_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/chat/channel/{id}":{"put":{"tags":["chat-channel-console-controller"],"summary":"更新渠道","operationId":"putChatChannel","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatChannelRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatChannelDto"}}}}}}},"/api/v1/{tenant}/chat/group/way/{id}/setDefault":{"put":{"tags":["chat-group-way-controller"],"summary":"设置群聊场景码为默认","operationId":"setDefault_2","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GroupWaySceneCodeDefaultDto"}}}}}}}},"/api/{tenant}/v1/chat/group/way/{id}/setDefault":{"put":{"tags":["chat-group-way-controller"],"summary":"设置群聊场景码为默认","operationId":"setDefault_3","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GroupWaySceneCodeDefaultDto"}}}}}}}},"/api/v1/{tenant}/chat/group/way/conversationGroupId":{"put":{"tags":["chat-group-way-controller"],"summary":"更新会话组id","operationId":"updateGroupWayConversationGroupId","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupWayConversationGroupIdRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatGroupWayPageDtoV1"}}}}}}},"/api/{tenant}/v1/chat/group/way/conversationGroupId":{"put":{"tags":["chat-group-way-controller"],"summary":"更新会话组id","operationId":"updateGroupWayConversationGroupId_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupWayConversationGroupIdRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatGroupWayPageDtoV1"}}}}}}},"/api/v1/workWeChat/tag/{workWeCorpId}/{id}":{"put":{"tags":["work-we-chat-tag-controller"],"summary":"修改企微标签组/标签名称","operationId":"updateTag","parameters":[{"name":"workWeCorpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"boolean"}}}}}}},"/api/v1/workWeChat/customer/{corpName}/remark":{"put":{"tags":["work-we-chat-customer-controller"],"summary":"修改客户备注信息","operationId":"changeCustomerRemark","parameters":[{"name":"corpName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeCustomerRemarkRequestV1"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/console/chat/group/{id}":{"get":{"tags":["chat-group-console-controller"],"operationId":"getChatGroup","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatGroupDto"}}}}}},"put":{"tags":["chat-group-console-controller"],"operationId":"putChatGroup","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGroupSaveRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatGroupDto"}}}}}}},"/api/{tenant}/v1/workWeChat/tmp/work-we-chat-group-member/dedup":{"post":{"tags":["tmp-work-we-chat-group-member-dedup-controller"],"summary":"[一次性] 批量去重重复的群成员记录","operationId":"dedupWorkWeChatGroupMember","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"本批最多处理重复组数,默认 100","required":false,"schema":{"type":"integer","description":"本批最多处理重复组数,默认 100","format":"int32","default":100}},{"name":"chatGroupId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DedupResultDto"}}}}},"deprecated":true}},"/api/{tenant}/v1/workWeChat/contact/way":{"get":{"tags":["work-we-chat-contact-way-controller"],"summary":"获取二维码","operationId":"pageWorkWeChatContactWayV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","required":true,"schema":{"title":"企业微信标识名称:online_da","type":"string"}},{"name":"mobile","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"title":"渠道二维码id","type":"integer","format":"int64"}},{"name":"channelName","in":"query","required":false,"schema":{"title":"渠道名称","type":"string"}},{"name":"startCreateTime","in":"query","required":false,"schema":{"title":"渠道二维码创建时间 格式:yyyy-MM-dd HH:mm:ss","pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","type":"string"}},{"name":"endCreateTime","in":"query","required":false,"schema":{"title":"渠道二维码创建时间 格式:yyyy-MM-dd HH:mm:ss","pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoContactWayDtoV1"}}}}}},"post":{"tags":["work-we-chat-contact-way-controller"],"summary":"新增二维码","operationId":"saveWorkWeChatContactWayV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactWayRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContactWayDtoV1"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/way/{id}":{"post":{"tags":["work-we-chat-contact-way-controller"],"summary":"编辑二维码","operationId":"updateWorkWeChatContactWayV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactWayRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContactWayDtoV1"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/external/remark":{"post":{"tags":["work-we-chat-contact-controller"],"summary":"修改外部联系人备注信息","operationId":"updateExternalContactRemark","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateExternalContactRemarkRequestV1"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/workWeChat/contact/external/byOpenId":{"post":{"tags":["work-we-chat-contact-controller"],"summary":"获取客户和医助关系","operationId":"getWorkWeChatExternalContactByOpenIdV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalContactByOpenIdQueryV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExternalContactDtoV1"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/external/byLastStates":{"post":{"tags":["work-we-chat-contact-controller"],"summary":"获取客户和医助关系","operationId":"getWorkWeChatExternalContactByLastStatesV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalContactByLastStatesQueryV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoExternalContactDtoV1"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/external/byExternalUserIds":{"post":{"tags":["work-we-chat-contact-controller"],"summary":"获取客户和医助关系","operationId":"getWorkWeChatExternalContactByExternalUserIdV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalContactByExternalUserIdQueryRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExternalContactDtoV1"}}}}}}}},"/api/{tenant}/v1/workWeChat/contact/external/ai/switch":{"get":{"tags":["work-we-chat-contact-controller"],"summary":"外部联系人AI回复开关","operationId":"getExternalContactAiReplyV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","required":true,"schema":{"title":"企微标识","type":"string"}},{"name":"userId","in":"query","required":true,"schema":{"title":"员工userid","type":"string"}},{"name":"externalUserId","in":"query","required":true,"schema":{"title":"外部联系人id","type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"boolean"}}}}}},"post":{"tags":["work-we-chat-contact-controller"],"summary":"外部联系人AI回复开关","operationId":"switchExternalContactAiV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalContactAiSwitchRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"boolean"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/batchChangeState":{"post":{"tags":["work-we-chat-contact-controller"],"summary":"批量处理联系人信息","operationId":"batchChangeState","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchChangeStateRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BatchChangeStateResponseV1"}}}}}}},"/api/{tenant}/v1/external/jkzl/customer/improveUserInfo":{"post":{"tags":["external-jkzl-customer-controller"],"operationId":"externalJkzlCustomerImproveUserInfo","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImproveUserInfoRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/{tenant}/v1/external/jkzl/customer/improveCustomerInfo":{"post":{"tags":["external-jkzl-customer-controller"],"operationId":"externalJkzlCustomerImproveCustomerInfo","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImproveCustomerInfoRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/{tenant}/v1/entrobot/message/sendMsg":{"post":{"tags":["ent-robot-chat-message-controller"],"summary":"发送消息","operationId":"postEntRobotChatMessageSend","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntRobotChatMessageSendRequestV1"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/entrobot/group":{"post":{"tags":["ent-robot-chat-group-controller"],"operationId":"postEntRobotChatGroup","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntRobotChatGroupRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EntRobotChatGroupDto"}}}}}}},"/api/{tenant}/v1/customers/profiles/{name}":{"get":{"tags":["customer-profile-controller"],"summary":"获取客户画像信息","operationId":"getCustomerProfile","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"customerId","in":"query","description":"客户ID","required":false,"schema":{"type":"string","description":"客户ID"}},{"name":"chatContactId","in":"query","description":"聊天联系人ID","required":false,"schema":{"type":"string","description":"聊天联系人ID"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BasicCustomerProfile"}}}}}},"post":{"tags":["customer-profile-controller"],"summary":"更新客户画像信息","operationId":"postCustomerProfile","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerProfileUpdateRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/customers/interventionRule":{"post":{"tags":["customer-intervention-rule-controller"],"summary":"创建人工介入规则","operationId":"createCustomerInterventionRuleV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerInterventionRuleRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerInterventionRulesDtoV1"}}}}}}},"/api/{tenant}/v1/chat/staff":{"post":{"tags":["chat-staff-controller"],"operationId":"createChatStaffV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatStaffCreateRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatStaffDto"}}}}}}},"/api/{tenant}/v1/chat/staff/bind":{"post":{"tags":["chat-staff-controller"],"operationId":"bindChatStaffV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatStaffBindRequestV1"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/chat/digitalStaff/customer/todo/process":{"post":{"tags":["数字员工客户管理"],"summary":"手动处理数字员工客户待办事项","operationId":"processDigitalStaffCustomerTodo","parameters":[{"name":"tenant","in":"path","description":"租户","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessTodoRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/chat/digital-staff/service-time":{"get":{"tags":["数字员工服务时间管理"],"summary":"查询服务时间配置","description":"根据数字员工ID查询服务时间配置","operationId":"getServiceTime","parameters":[{"name":"tenant","in":"path","description":"租户标识","required":true,"schema":{"type":"string"}},{"name":"staffId","in":"query","description":"数字员工ID","required":true,"schema":{"type":"string","description":"数字员工ID"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatDigitalStaffServiceTimeDto"}}}}}},"post":{"tags":["数字员工服务时间管理"],"summary":"创建或更新服务时间配置","description":"为指定数字员工创建或更新服务时间配置(一个数字员工只能有一个配置)","operationId":"createOrUpdateServiceTime","parameters":[{"name":"tenant","in":"path","description":"租户标识","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateServiceTimeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatDigitalStaffServiceTimeDto"}}}}}},"delete":{"tags":["数字员工服务时间管理"],"summary":"删除服务时间配置","description":"删除指定数字员工的服务时间配置","operationId":"deleteServiceTime","parameters":[{"name":"tenant","in":"path","description":"租户标识","required":true,"schema":{"type":"string"}},{"name":"staffId","in":"query","description":"数字员工ID","required":true,"schema":{"type":"string","description":"数字员工ID"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/chat/contact/way":{"get":{"tags":["chat-contact-way-controller"],"summary":"获取二维码","operationId":"pageChatContactWayV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","required":false,"schema":{"title":"企业微信标识名称:online_da","type":"string"}},{"name":"mobile","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"title":"渠道二维码id","type":"integer","format":"int64"}},{"name":"name","in":"query","required":false,"schema":{"title":"联系我二维码名称","type":"string"}},{"name":"relevanceCode","in":"query","required":false,"schema":{"title":"关联对象id","type":"string"}},{"name":"state","in":"query","required":false,"schema":{"title":"场景码state值","type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactWayRichDto"}}}}}},"post":{"tags":["chat-contact-way-controller"],"summary":"新增二维码","operationId":"saveChatContactWayV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatContactWayRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatContactWayRichDto"}}}}}}},"/api/{tenant}/v1/chat/contact/way/{id}":{"post":{"tags":["chat-contact-way-controller"],"summary":"编辑二维码","operationId":"updateChatContactWayV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatContactWayRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatContactWayRichDto"}}}}}}},"/api/{tenant}/v1/chat/contact/way/refresh":{"post":{"tags":["chat-contact-way-controller"],"summary":"刷新二维码","operationId":"refresh","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatContactWayRefreshRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactWayRefreshDto"}}}}}}}},"/api/{tenant}/mcp/chat/contact/message/send":{"post":{"tags":["chat-contact-message-mcp-controller"],"operationId":"sendMessage","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SendMessageResponse"}}}}}}},"/api/{tenant}/mcp/chat/contact/message/send-group":{"post":{"tags":["chat-contact-message-mcp-controller"],"operationId":"sendGroupMessage","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendGroupMessageRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SendMessageResponse"}}}}}}},"/api/{tenant}/mcp/chat/contact/customer/tag/delete":{"post":{"tags":["chat-contact-customer-tag-mcp-controller"],"operationId":"deleteCustomerTag","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCustomerTagRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/mcp/chat/contact/customer/tag/add":{"post":{"tags":["chat-contact-customer-tag-mcp-controller"],"operationId":"addCustomerTag","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCustomerTagRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/{contactId}/message/{id}/comment":{"get":{"tags":["work-we-chat-contact-message-console-controller"],"summary":"点评详情","operationId":"messageCommentInfo","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MessageCommentDto"}}}}}},"post":{"tags":["work-we-chat-contact-message-console-controller"],"summary":"点评","operationId":"messageComment","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCommentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MessageCommentDto"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/{contactId}/message/{id}/comment/optimize":{"post":{"tags":["work-we-chat-contact-message-console-controller"],"summary":"点评优化","operationId":"messageCommentOptimize","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCommentRequestOptimize"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OptimizeDTO"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/{contactId}/message/{id}/advice/optimize":{"post":{"tags":["work-we-chat-contact-message-console-controller"],"summary":"消息建议优化","operationId":"messageAdviceOptimize","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageAdviceOptimizerRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OptimizeDTO"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/{contactId}/message/send":{"post":{"tags":["work-we-chat-contact-message-console-controller"],"summary":"发送消息","operationId":"postSendContactsMessage","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"required":["request"],"type":"object","properties":{"request":{"type":"string","description":"消息请求体示例, 文本:{\"msgType\":\"text\",\"msgBody\":{\"content\":\"测试消息\"},\"quoteChatMsgId\":\"被引用的消息id\"}, 图片:{\"msgType\":\"image\"}, 视频:{\"msgType\":\"video\"}, 文件:{\"msgType\":\"file\"}, 表情(GIF):{\"msgType\":\"emotion\"}"},"originalAiContent":{"type":"string","description":"ai推荐原始内容"},"agentChatId":{"type":"string","description":"agen会话Id"},"contactType":{"type":"string","description":"会话类型"},"file":{"type":"string","description":"文件(发送图片/视频/文件/GIF时必传)","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatContactsMessageDto"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/room/{contactId}/ai/switch":{"post":{"tags":["work-we-chat-contact-console-controller"],"summary":"群聊AI回复开关","operationId":"switchRoomContactAi","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"boolean"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/external/{contactId}/ai/switch":{"post":{"tags":["work-we-chat-contact-console-controller"],"summary":"外部联系人AI回复开关","operationId":"switchExternalContactAi","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"boolean"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/external/{contactId}/ai-intervene":{"post":{"tags":["work-we-chat-contact-console-controller"],"summary":"外部联系人AI员工介入,立即介入","operationId":"promptlyExternalContactAi","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"boolean"}}}}}}},"/api/{tenant}/console/workWeChat/user":{"get":{"tags":["work-we-chat-user-relate-console-controller"],"summary":"获取租户关联企微内部成员","operationId":"listWorkWeChatUserRelate","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatCorpId","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"mobile","in":"query","required":false,"schema":{"type":"string"}},{"name":"userId","in":"query","required":false,"schema":{"type":"string"}},{"name":"online","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatUserRelateDto"}}}}}},"post":{"tags":["work-we-chat-user-relate-console-controller"],"summary":"新增租户关联企微内部成员","operationId":"postWorkWeChatUserRelate","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkWeChatUserRelateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatUserRelateDto"}}}}}}},"/api/{tenant}/console/workWeChat/user/guide/syncGroup":{"post":{"tags":["work-we-chat-user-guide-console-controller"],"summary":"同步企微员工客户群","operationId":"syncWorkWeChatUserGroup","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncGroupRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/workWeChat/user/guide/syncCustomer":{"post":{"tags":["work-we-chat-user-guide-console-controller"],"operationId":"syncWorkWeChatUserCustomer","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncCustomerRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/workWeChat/user/guide/setDefaultScene":{"post":{"tags":["work-we-chat-user-guide-console-controller"],"summary":"设置默认场景码","operationId":"setDefaultScene","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetDefaultSceneRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/workWeChat/user/guide/bindDigitalStaff":{"post":{"tags":["work-we-chat-user-guide-console-controller"],"summary":"绑定数字员工","operationId":"bindGuideDigitalStaff","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindDigitalStaffRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BindDigitalStaffDto"}}}}}}},"/api/{tenant}/console/workWeChat/user/guide/addStaffScene":{"post":{"tags":["work-we-chat-user-guide-console-controller"],"summary":"快速新增默认场景码","operationId":"addStaffScene","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddStaffSceneConsoleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseObject"}}}}}}},"/api/{tenant}/console/workWeChat/user/guide/addStaffAdvanced":{"post":{"tags":["work-we-chat-user-guide-console-controller"],"summary":"快速新增数字员工及默认场景码","operationId":"addStaffAdvanced","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddStaffAdvancedConsoleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseObject"}}}}}}},"/api/{tenant}/console/workWeChat/diagnose":{"post":{"tags":["聊天诊断"],"summary":"一键诊断","description":"传入 chatContactId(联系人入口)或 chatStaffId(员工入口),二选一","operationId":"diagnose","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnoseRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/{tenant}/console/workWeChat/corps":{"get":{"tags":["work-we-chat-corp-relate-console-controller"],"summary":"获取租户关联企微","operationId":"listWorkWeChatCorpRelate","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"likeCorpName","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatCorpRelateDto"}}}}}},"post":{"tags":["work-we-chat-corp-relate-console-controller"],"summary":"新增租户关联企微","operationId":"postWorkWeChatCorpRelate","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkWeChatCorpRelateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatCorpRelateDto"}}}}}}},"/api/{tenant}/console/workWeChat/contactWay":{"get":{"tags":["work-we-chat-contact-way-console-controller"],"operationId":"listWorkWeChatContactWay","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","required":false,"schema":{"title":"企业微信企业名称","type":"string"}},{"name":"userName","in":"query","required":false,"schema":{"title":"企微用户名称","type":"string"}},{"name":"workWeChatUserId","in":"query","required":false,"schema":{"title":"企微员工id","type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoContactWayDto"}}}}}},"post":{"tags":["work-we-chat-contact-way-console-controller"],"operationId":"postWorkWeChatContactWay","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactWayRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContactWayDto"}}}}}}},"/api/{tenant}/console/variables":{"get":{"tags":["variable-value-controller"],"operationId":"listVariableValue","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"scopeId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VariableValueDto"}}}}}}},"post":{"tags":["variable-value-controller"],"operationId":"postVariableValue","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVariableValueRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/variableScopes":{"get":{"tags":["variable-scope-controller"],"operationId":"listVariableScope","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"source","in":"query","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VariableScopeDto"}}}}}}},"post":{"tags":["variable-scope-controller"],"operationId":"postVariableScope","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariableScopePayload"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/VariableScopeDto"}}}}}}},"/api/{tenant}/console/variableScopes/{scopeId}/definitions":{"get":{"tags":["variable-definition-controller"],"operationId":"listVariableDefinition","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"scopeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VariableDefinitionDto"}}}}}}},"post":{"tags":["variable-definition-controller"],"operationId":"postVariableDefinition","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"scopeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariableDefinitionPayload"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/VariableDefinitionDto"}}}}}}},"/api/{tenant}/console/userConversations":{"get":{"tags":["user-conversation-controller"],"operationId":"listConversation","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","required":false,"schema":{"type":"string"}},{"name":"conversationGroupId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserConversationDTO"}}}}}}},"post":{"tags":["user-conversation-controller"],"operationId":"postConversation","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserConversationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserConversationDTO"}}}}}}},"/api/{tenant}/console/userConversationGroups":{"get":{"tags":["user-conversation-group-controller"],"operationId":"listUserConversationGroup","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserConversationGroupDTO"}}}}}}},"post":{"tags":["user-conversation-group-controller"],"operationId":"postUserConversationGroup","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserConversationGroupPayload"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserConversationGroupDTO"}}}}}}},"/api/{tenant}/console/userConversationGroups/{id}/chat":{"post":{"tags":["user-conversation-group-chat-controller"],"operationId":"postUserConversationGroupChat","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServerSentEventString"}}}}}}}},"/api/{tenant}/console/userChatDesensitize":{"get":{"tags":["user-chat-desensitize-console-controller"],"summary":"分页查询用户聊天脱敏","operationId":"listUserChatDesensitize","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","description":"平台的userId","required":false,"schema":{"type":"string","description":"平台的userId"}},{"name":"fullName","in":"query","description":"姓名","required":false,"schema":{"type":"string","description":"姓名"}},{"name":"userName","in":"query","description":"登录账号","required":false,"schema":{"type":"string","description":"登录账号"}},{"name":"keyword","in":"query","description":"关键词搜索(员工姓名或登录账号)","required":false,"schema":{"type":"string","description":"关键词搜索(员工姓名或登录账号)"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoUserChatDesensitizeDto"}}}}}},"post":{"tags":["user-chat-desensitize-console-controller"],"summary":"新增脱敏信息","operationId":"addUserChatDesensitize","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserChatDesensitizeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserChatDesensitizeDto"}}}}}}},"/api/{tenant}/console/userChatContactView":{"post":{"tags":["user-chat-contact-view-console-controller"],"operationId":"addUserChatContactView","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserChatContactViewRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserChatContactViewDto"}}}}}}},"/api/{tenant}/console/upload/uploadImage":{"post":{"tags":["upload-console-controller"],"operationId":"uploadImage","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"busName","in":"query","required":true,"schema":{"type":"string"}},{"name":"busId","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}}}}},"/api/{tenant}/console/toolApiProviders":{"get":{"tags":["tool-api-provider-controller"],"operationId":"listToolApiProvider","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ToolApiProviderDTO"}}}}}}},"post":{"tags":["tool-api-provider-controller"],"operationId":"postToolApiProvider","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrUpdateToolApiProviderRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ToolApiProviderDTO"}}}}}}},"/api/{tenant}/console/customers/tagRule":{"get":{"tags":["customer-tag-rule-console-controller"],"summary":"分页查询关键词标签规则","operationId":"getCustomerTagRule_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"title","in":"query","required":false,"schema":{"type":"string"}},{"name":"titleLike","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["ENABLE","DISABLE"]}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoCustomerTagRuleDto"}}}}}},"post":{"tags":["customer-tag-rule-console-controller"],"summary":"创建关键词标签规则","operationId":"createCustomerTagRule","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTagRuleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerTagRuleDto"}}}}}}},"/api/{tenant}/console/customers/interventionRule":{"get":{"tags":["customer-intervention-rule-console-controller"],"summary":"获取人工介入规则详情","operationId":"getCustomerInterventionRule","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerInterventionRulesDto"}}}}}},"post":{"tags":["customer-intervention-rule-console-controller"],"summary":"创建人工介入规则","operationId":"createCustomerInterventionRule","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerInterventionRuleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerInterventionRulesDto"}}}}}}},"/api/{tenant}/console/customers/interventionRecord/handle/{id}":{"post":{"tags":["customer-intervention-record-console-controller"],"summary":"处理记录","operationId":"handleCustomerInterventionRecord","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerInterventionRecordHandleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerInterventionRecordDto"}}}}}}},"/api/{tenant}/console/customers/intentionType":{"post":{"tags":["customer-intention-type-controller"],"summary":"保存意图分类列表","operationId":"saveIntentionTypes","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerIntentionTypeDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerIntentionTypeDto"}}}}}}},"/api/{tenant}/console/conversationGroups/{groupId}/triggers":{"get":{"tags":["conversation-group-trigger-controller"],"operationId":"listConversationGroupTrigger","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"nameKeywords","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["TIMED","EVENT"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationGroupTriggerDto"}}}}}}},"post":{"tags":["conversation-group-trigger-controller"],"operationId":"postConversationGroupTrigger","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationGroupTriggerPayload"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConversationGroupTriggerDto"}}}}}}},"/api/{tenant}/console/conversationGroups/{groupId}/events":{"get":{"tags":["conversation-group-event-controller"],"operationId":"listConversationGroupEvent","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoConversationGroupEventDto"}}}}}},"post":{"tags":["conversation-group-event-controller"],"operationId":"postConversationGroupEvent","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationGroupEventRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConversationGroupEventDto"}}}}}}},"/api/{tenant}/v1/conversationGroups/{groupId}/events":{"get":{"tags":["conversation-group-event-controller"],"operationId":"listConversationGroupEvent_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoConversationGroupEventDto"}}}}}},"post":{"tags":["conversation-group-event-controller"],"operationId":"postConversationGroupEvent_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationGroupEventRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConversationGroupEventDto"}}}}}}},"/api/{tenant}/console/conversationGroups/{groupId}/eventDefinitions":{"get":{"tags":["conversation-group-event-definition-controller"],"operationId":"listConversationGroupEventDefinition","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoConversationGroupEventDefinitionDto"}}}}}},"post":{"tags":["conversation-group-event-definition-controller"],"operationId":"postConversationGroupEventDefinition","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationGroupEventDefinitionPayload"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConversationGroupEventDefinitionDto"}}}}}}},"/api/{tenant}/console/chat/script-content":{"get":{"tags":["话术内容"],"summary":"分页查询话术内容","operationId":"pageScriptContent","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"categoryId","in":"query","required":false,"schema":{"type":"string"}},{"name":"contentType","in":"query","required":false,"schema":{"type":"string","enum":["text","image","file"]}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoScriptContentDtoV1"}}}}}},"post":{"tags":["话术内容"],"summary":"创建话术内容","operationId":"createScriptContent","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptContentRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ScriptContentDtoV1"}}}}}}},"/api/{tenant}/console/chat/script-category":{"get":{"tags":["话术分类"],"summary":"获取话术分类列表","operationId":"listScriptCategory","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScriptCategoryDtoV1"}}}}}}},"post":{"tags":["话术分类"],"summary":"创建话术分类","operationId":"createScriptCategory","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptCategoryRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ScriptCategoryDtoV1"}}}}}}},"/api/{tenant}/console/chat/message/{msgId}/comment":{"get":{"tags":["chat-message-comment-console-controller"],"summary":"消息点评","operationId":"getCommentByMessageId","parameters":[{"name":"msgId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatMessageCommentDto"}}}}}},"post":{"tags":["chat-message-comment-console-controller"],"summary":"消息点评","operationId":"saveChatMessageComment","parameters":[{"name":"msgId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveChatMessageCommentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatMessageCommentDto"}}}}}}},"/api/{tenant}/console/chat/message/{chatContactId}/{chatStaffId}/{chatChannelId}/send":{"post":{"tags":["chat-message-console-controller"],"summary":"发送消息","operationId":"chatSendMessage","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatStaffId","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatChannelId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"required":["request"],"type":"object","properties":{"request":{"type":"string","description":"消息请求体示例, 文本:{\"msgType\":\"text\",\"msgBody\":{\"content\":\"测试消息\"},\"quoteChatMsgId\":\"被引用的消息id\"}, 群聊文本:{\"msgType\":\"text\",\"msgBody\":{\"content\":\"测试消息\"},\"quoteChatMsgId\":\"被引用的消息id\",\"atList\":[{\"chatGroupMemberId\":\"@的群成员id\",\"nickName\":\"@的群成员昵称\"}]}, 图片:{\"msgType\":\"image\"}, 视频:{\"msgType\":\"video\"}, 文件:{\"msgType\":\"file\"}, 表情(GIF):{\"msgType\":\"emotion\"}"},"originalAiContent":{"type":"string","description":"ai推荐原始内容"},"agentChatId":{"type":"string","description":"agent会话Id"},"contactType":{"type":"string","description":"会话类型"},"file":{"type":"string","description":"文件(发送图片/视频/文件/GIF时必传)","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatMessageDto"}}}}}}},"/api/{tenant}/console/chat/message/recall/{msgHashId}":{"post":{"tags":["chat-message-console-controller"],"summary":"撤回消息","operationId":"chatRecallMessage","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"msgHashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/chat/digitalStaff/{id}/ai/switch":{"post":{"tags":["数字员工管理"],"summary":"一键切换AI回复状态","description":"切换指定数字员工的AI自动回复功能开关,type不传默认切换外部联系人开关","operationId":"toggleAiReply","parameters":[{"name":"tenant","in":"path","description":"租户标识","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"数字员工ID","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","description":"联系人类型,EXTERNAL-外部联系人(默认), INTERNAL-内部联系人, ROOM-群聊","required":false,"schema":{"type":"string","enum":["EXTERNAL","INTERNAL","ROOM"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatDigitalStaffDto"}}}}}}},"/api/{tenant}/console/chat/digitalStaff/{id}/ai/states":{"post":{"tags":["数字员工管理"],"summary":"设置AI回复状态","description":"一次设置指定数字员工多种联系人类型的AI回复状态,每种类型状态可各自独立指定","operationId":"setAiReplyStates","parameters":[{"name":"tenant","in":"path","description":"租户标识","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"数字员工ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"description":"联系人类型与AI回复状态的映射,key为EXTERNAL/INTERNAL/ROOM,value为true/false"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatDigitalStaffDto"}}}}}}},"/api/{tenant}/console/chat/contact/way":{"get":{"tags":["chat-contact-way-console-controller"],"summary":"Page contact scene code","operationId":"pageContactWay","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","required":false,"schema":{"title":"Corp short name","type":"string"}},{"name":"mobile","in":"query","required":false,"schema":{"title":"Staff mobile","type":"string"}},{"name":"id","in":"query","required":false,"schema":{"title":"Contact-way id","type":"integer","format":"int64"}},{"name":"name","in":"query","required":false,"schema":{"title":"Contact-way name","type":"string"}},{"name":"relevanceCode","in":"query","required":false,"schema":{"title":"Relevance code","type":"string"}},{"name":"state","in":"query","required":false,"schema":{"title":"state","type":"string"}},{"name":"digitalStaffId","in":"query","required":false,"schema":{"title":"数字员工ID(chatDigitalStaffId)","type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactWayRichDto"}}}}}},"post":{"tags":["chat-contact-way-console-controller"],"summary":"Create contact scene code","operationId":"createContactWay","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatContactWayRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatContactWayRichDto"}}}}}}},"/api/{tenant}/console/chat/contact/way/{id}":{"post":{"tags":["chat-contact-way-console-controller"],"summary":"Update contact scene code","operationId":"updateContactWay","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatContactWayRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatContactWayRichDto"}}}}}}},"/api/{tenant}/console/chat/contact/way/refresh":{"post":{"tags":["chat-contact-way-console-controller"],"summary":"Refresh scene-code qrcode","operationId":"refresh_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatContactWayRefreshRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactWayRefreshDto"}}}}}}}},"/api/{tenant}/console/chat/contact/move-by-last-state":{"post":{"tags":["chat-contact-console-controller"],"summary":"批量修改联系人的lastState(按id列表或按原场景码二选一)","operationId":"moveChatContactByLastState","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveChatContactByLastStateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MoveChatContactResultDto"}}}}}}},"/api/{tenant}/console/chat/contact/external/{chatContactId}/pin":{"post":{"tags":["chat-contact-console-controller"],"summary":"外部联系人置顶设置","operationId":"setChatContactPinned","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"boolean"}}}}}}},"/api/{tenant}/console/chat/contact/external/{chatContactId}/ai/switch":{"post":{"tags":["chat-contact-console-controller"],"summary":"外部联系人AI回复开关","operationId":"switchChatContactAi","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"boolean"}}}}}}},"/api/{tenant}/console/chat/channel":{"get":{"tags":["chat-channel-console-controller"],"summary":"获取渠道列表","operationId":"pageChatChannel","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","description":"渠道名称","required":false,"schema":{"type":"string","description":"渠道名称"}},{"name":"platform","in":"query","description":"渠道平台","required":false,"schema":{"type":"string","description":"渠道平台","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]}},{"name":"appId","in":"query","description":"appId","required":false,"schema":{"type":"string","description":"appId"}},{"name":"appName","in":"query","description":"appName","required":false,"schema":{"type":"string","description":"appName"}},{"name":"keyword","in":"query","description":"关键字","required":false,"schema":{"type":"string","description":"关键字"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatChannelDto"}}}}}},"post":{"tags":["chat-channel-console-controller"],"summary":"新增渠道","operationId":"postChatChannel","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatChannelRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatChannelDto"}}}}}}},"/api/{tenant}/client/selfchat/contact":{"post":{"tags":["self-chat-contact-client-controller"],"operationId":"postSelfChatContact","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelfChatContactRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SelfChatContactDto"}}}}}}},"/api/{tenant}/client/chat/{chatContactId}/message/send":{"post":{"tags":["chat-message-client-controller"],"summary":"客户发送消息","operationId":"clientChatSendMessage","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"required":["request"],"type":"object","properties":{"request":{"type":"string","description":"消息请求体示例, 文本:{\"msgType\":\"text\",\"msgBody\":{\"content\":\"测试消息\"}}, 图片:{\"msgType\":\"image\"}, 视频:{\"msgType\":\"video\"}, 文件:{\"msgType\":\"file\"}, 表情(GIF):{\"msgType\":\"emotion\"}, 图文混合:{\"msgType\":\"image_text\",\"msgBody\":{\"text\":\"说明\",\"image_list\":[{\"url\":\"...\"}]}}, 图片/文件URL直传:{\"msgType\":\"image\",\"msgBody\":{\"url\":\"https://...\"}}"},"chatChannelId":{"type":"string","description":"渠道信息 不传默认使用上次"},"contactType":{"type":"string","description":"会话类型"},"file":{"type":"string","description":"文件(发送图片/视频/文件/GIF时必传)","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatMessageDto"}}}}}}},"/api/{tenant}/v1/chat/message/sendMsgStream":{"post":{"tags":["chat-message-controller"],"summary":"发送消息(流式返回)","operationId":"postSendContactsMessageStreamV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SendMsgStreamResponse"}}}}}}}},"/api/webhooks/{tenant}/v1/chat/message/sendMsgStream":{"post":{"tags":["chat-message-controller"],"summary":"发送消息(流式返回)","operationId":"postSendContactsMessageStreamV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SendMsgStreamResponse"}}}}}}}},"/api/{tenant}/v1/chat/message/sendMsg":{"post":{"tags":["chat-message-controller"],"summary":"发送消息","operationId":"postSendContactsMessageV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SendMessageResultDto"}}}}}}},"/api/webhooks/{tenant}/v1/chat/message/sendMsg":{"post":{"tags":["chat-message-controller"],"summary":"发送消息","operationId":"postSendContactsMessageV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SendMessageResultDto"}}}}}}},"/api/{tenant}/v1/chat/contact/{chatContactId}/resetConversation":{"post":{"tags":["chat-contact-controller"],"operationId":"resetConversation","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetConversationRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/webhooks/{tenant}/v1/chat/contact/{chatContactId}/resetConversation":{"post":{"tags":["chat-contact-controller"],"operationId":"resetConversation_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetConversationRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/webhooks/{tenant}/v1/chat/contact/manualCreateTask":{"post":{"tags":["chat-contact-controller"],"operationId":"manualCreateTask","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualCheckRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/chat/contact/manualCreateTask":{"post":{"tags":["chat-contact-controller"],"operationId":"manualCreateTask_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualCheckRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/webhooks/{tenant}/v1/chat/contact/create":{"post":{"tags":["chat-contact-controller"],"operationId":"createChatContact","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatContactDto"}}}}}}},"/api/{tenant}/v1/chat/contact/create":{"post":{"tags":["chat-contact-controller"],"operationId":"createChatContact_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatContactDto"}}}}}}},"/api/webhooks/juhebot/eventNotify":{"post":{"tags":["pad-work-event-notify-controller"],"operationId":"notify","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PadWorkNotifyEvent"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/webhooks/jkzlcschat/{tenant}/v1/message/sendMsg":{"post":{"tags":["jkzl-cs-chat-message-controller"],"summary":"发送消息","operationId":"postJkzlCsChatMessageSend","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JkzlCsChatMessageSendRequestV1"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/jkzlcschat/message/sendMsg":{"post":{"tags":["jkzl-cs-chat-message-controller"],"summary":"发送消息","operationId":"postJkzlCsChatMessageSend_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JkzlCsChatMessageSendRequestV1"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/webhooks/jkzlcschat/{tenant}/v1/message/saveMsg":{"post":{"tags":["jkzl-cs-chat-message-controller"],"summary":"保存消息","operationId":"postJkzlCsChatMessageSave","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JkzlCsChatMessageSendRequestV1"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/jkzlcschat/message/saveMsg":{"post":{"tags":["jkzl-cs-chat-message-controller"],"summary":"保存消息","operationId":"postJkzlCsChatMessageSave_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JkzlCsChatMessageSendRequestV1"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/jkzlcschat/contact":{"post":{"tags":["jkzl-cs-chat-contact-controller"],"operationId":"postJkzlCsChatContact","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JkzlCsChatContactRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JkzlCsChatContactDto"}}}}}}},"/api/webhooks/{tenant}/v1/jkzlcschat/contact":{"post":{"tags":["jkzl-cs-chat-contact-controller"],"operationId":"postJkzlCsChatContact_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JkzlCsChatContactRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JkzlCsChatContactDto"}}}}}}},"/api/webhooks/jkzlcschat/{tenant}/v1/contact":{"post":{"tags":["jkzl-cs-chat-contact-controller"],"operationId":"postJkzlCsChatContact_2","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JkzlCsChatContactRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JkzlCsChatContactDto"}}}}}}},"/api/webhooks/easywework/eventNotify":{"post":{"tags":["easy-we-work-event-notify-controller"],"operationId":"notify_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EasyWeWorkNotifyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/cpWork/portal/{corpId}/stateChange":{"post":{"tags":["work-we-chat-corp-portal-controller"],"operationId":"stateChange","parameters":[{"name":"corpId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateChangeRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/webhooks/cpWork/portal/{corpId}/stateChange":{"post":{"tags":["work-we-chat-corp-portal-controller"],"operationId":"stateChange_1","parameters":[{"name":"corpId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateChangeRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/cpWork/portal/{corpId}/oauth/user":{"post":{"tags":["work-we-chat-corp-portal-controller"],"operationId":"oauthUser","parameters":[{"name":"corpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"code","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/webhooks/cpWork/portal/{corpId}/oauth/user":{"post":{"tags":["work-we-chat-corp-portal-controller"],"operationId":"oauthUser_1","parameters":[{"name":"corpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"code","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/webhooks/cpWork/portal/{corpId}":{"get":{"tags":["work-we-chat-corp-portal-controller"],"operationId":"get","parameters":[{"name":"corpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"msg_signature","in":"query","required":false,"schema":{"type":"string"}},{"name":"timestamp","in":"query","required":false,"schema":{"type":"string"}},{"name":"nonce","in":"query","required":false,"schema":{"type":"string"}},{"name":"echostr","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/plain;charset=utf-8":{"schema":{"type":"string"}}}}}},"post":{"tags":["work-we-chat-corp-portal-controller"],"operationId":"post","parameters":[{"name":"corpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"msg_signature","in":"query","required":false,"schema":{"type":"string"}},{"name":"timestamp","in":"query","required":false,"schema":{"type":"string"}},{"name":"nonce","in":"query","required":false,"schema":{"type":"string"}},{"name":"echostr","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/xml;charset=UTF-8":{"schema":{"type":"string"}},"application/xml; charset=UTF-8":{"schema":{"type":"string"}}}}}}},"/api/cpWork/portal/{corpId}":{"get":{"tags":["work-we-chat-corp-portal-controller"],"operationId":"get_1","parameters":[{"name":"corpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"msg_signature","in":"query","required":false,"schema":{"type":"string"}},{"name":"timestamp","in":"query","required":false,"schema":{"type":"string"}},{"name":"nonce","in":"query","required":false,"schema":{"type":"string"}},{"name":"echostr","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/plain;charset=utf-8":{"schema":{"type":"string"}}}}}},"post":{"tags":["work-we-chat-corp-portal-controller"],"operationId":"post_1","parameters":[{"name":"corpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"msg_signature","in":"query","required":false,"schema":{"type":"string"}},{"name":"timestamp","in":"query","required":false,"schema":{"type":"string"}},{"name":"nonce","in":"query","required":false,"schema":{"type":"string"}},{"name":"echostr","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/xml;charset=UTF-8":{"schema":{"type":"string"}},"application/xml; charset=UTF-8":{"schema":{"type":"string"}}}}}}},"/api/webhooks/cpWork/portal/proxy/{corpId}":{"get":{"tags":["work-we-chat-corp-portal-proxy-controller"],"operationId":"get_2","parameters":[{"name":"corpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"msg_signature","in":"query","required":false,"schema":{"type":"string"}},{"name":"timestamp","in":"query","required":false,"schema":{"type":"string"}},{"name":"nonce","in":"query","required":false,"schema":{"type":"string"}},{"name":"echostr","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/plain;charset=utf-8":{"schema":{"type":"string"}}}}}},"post":{"tags":["work-we-chat-corp-portal-proxy-controller"],"operationId":"post_2","parameters":[{"name":"corpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"msg_signature","in":"query","required":false,"schema":{"type":"string"}},{"name":"timestamp","in":"query","required":false,"schema":{"type":"string"}},{"name":"nonce","in":"query","required":false,"schema":{"type":"string"}},{"name":"echostr","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/xml;charset=UTF-8":{"schema":{"type":"string"}},"application/xml; charset=UTF-8":{"schema":{"type":"string"}}}}}}},"/api/cpWork/portal/contactMessage/xfyun/asr":{"get":{"tags":["work-we-chat-contact-message-portal-controller"],"operationId":"xfYunAsrResultCallback","parameters":[{"name":"orderId","in":"query","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"post":{"tags":["work-we-chat-contact-message-portal-controller"],"operationId":"aliYunAsrResultCallback","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AliyunAsrResponse"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/webhooks/cpWork/portal/contactMessage/xfyun/asr":{"get":{"tags":["work-we-chat-contact-message-portal-controller"],"operationId":"xfYunAsrResultCallback_1","parameters":[{"name":"orderId","in":"query","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"post":{"tags":["work-we-chat-contact-message-portal-controller"],"operationId":"aliYunAsrResultCallback_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AliyunAsrResponse"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/v2/console/padWork/login/qrcode/login/verify":{"post":{"tags":["pad-work-instance-login-v-2-controller"],"summary":"扫码登录验证","operationId":"padWorkLoginQrcodeVerifyV2","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginQrcodeVerifyV2Request"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeVerifyV2Response"}}}}}}},"/api/v1/{tenant}/workWeChat/contact/message/sendMsg":{"post":{"tags":["work-we-chat-contact-message-controller"],"summary":"发送消息","operationId":"postSendContactsMessageV2","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendContactMessageRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SendMessageResultDto"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/message/sendMsg":{"post":{"tags":["work-we-chat-contact-message-controller"],"summary":"发送消息","operationId":"postSendContactsMessageV2_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendContactMessageRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SendMessageResultDto"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/message/send":{"post":{"tags":["work-we-chat-contact-message-controller"],"summary":"发送消息","operationId":"postSendContactsMessageV1_2","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","description":"企业微信标识名称:online_da","required":true,"schema":{"type":"string","description":"企业微信标识名称:online_da"}},{"name":"chatContactType","in":"query","description":"聊天联系人类型 EXTERNAL/ROOM","required":false,"schema":{"type":"string","description":"聊天联系人类型 EXTERNAL/ROOM","enum":["EXTERNAL","INTERNAL","ROOM"]}},{"name":"internalUserId","in":"query","description":"企业微信内部员工userId","required":false,"schema":{"type":"string","description":"企业微信内部员工userId"}},{"name":"externalUserId","in":"query","description":"企业微信外部客户userId","required":false,"schema":{"type":"string","description":"企业微信外部客户userId"}},{"name":"msgType","in":"query","description":"消息类型text/image/voice/video","required":true,"schema":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","revoke","agree","disagree","voice","video","card","location","emotion","file","link","weapp","chatrecord","todo","vote","collect","redpacket","meeting","meeting_notification","docmsg","markdown","news","calendar","mixed","meeting_voice_call","system","image_text","unknown"]}},{"name":"msgBody","in":"query","description":"消息请求体示例, 文本:{\"content\":\"测试消息\"}","required":true,"schema":{"type":"string","description":"消息请求体示例, 文本:{\"content\":\"测试消息\"}"}},{"name":"actualSenderType","in":"query","description":"实际发送人类型","required":false,"schema":{"type":"string","description":"实际发送人类型","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]}},{"name":"actualSenderName","in":"query","description":"实际发送人名称,会显示在聊天对话中","required":false,"schema":{"type":"string","description":"实际发送人名称,会显示在聊天对话中"}},{"name":"chatContactId","in":"query","description":"聊天联系人ID","required":false,"schema":{"type":"string","description":"聊天联系人ID"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SendMessageResultDto"}}}}},"deprecated":true}},"/api/v1/{tenant}/workWeChat/contact/message/send":{"post":{"tags":["work-we-chat-contact-message-controller"],"summary":"发送消息","operationId":"postSendContactsMessageV1_3","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","description":"企业微信标识名称:online_da","required":true,"schema":{"type":"string","description":"企业微信标识名称:online_da"}},{"name":"chatContactType","in":"query","description":"聊天联系人类型 EXTERNAL/ROOM","required":false,"schema":{"type":"string","description":"聊天联系人类型 EXTERNAL/ROOM","enum":["EXTERNAL","INTERNAL","ROOM"]}},{"name":"internalUserId","in":"query","description":"企业微信内部员工userId","required":false,"schema":{"type":"string","description":"企业微信内部员工userId"}},{"name":"externalUserId","in":"query","description":"企业微信外部客户userId","required":false,"schema":{"type":"string","description":"企业微信外部客户userId"}},{"name":"msgType","in":"query","description":"消息类型text/image/voice/video","required":true,"schema":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","revoke","agree","disagree","voice","video","card","location","emotion","file","link","weapp","chatrecord","todo","vote","collect","redpacket","meeting","meeting_notification","docmsg","markdown","news","calendar","mixed","meeting_voice_call","system","image_text","unknown"]}},{"name":"msgBody","in":"query","description":"消息请求体示例, 文本:{\"content\":\"测试消息\"}","required":true,"schema":{"type":"string","description":"消息请求体示例, 文本:{\"content\":\"测试消息\"}"}},{"name":"actualSenderType","in":"query","description":"实际发送人类型","required":false,"schema":{"type":"string","description":"实际发送人类型","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]}},{"name":"actualSenderName","in":"query","description":"实际发送人名称,会显示在聊天对话中","required":false,"schema":{"type":"string","description":"实际发送人名称,会显示在聊天对话中"}},{"name":"chatContactId","in":"query","description":"聊天联系人ID","required":false,"schema":{"type":"string","description":"聊天联系人ID"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SendMessageResultDto"}}}}},"deprecated":true}},"/api/v1/{tenant}/workWeChat/contact/message/comment/list":{"post":{"tags":["work-we-chat-contact-message-controller"],"summary":"获取点评记录","operationId":"listContactsMessageCommentV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkWeChatContactMessageCommentRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatContactMessageCommentExtendDto"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/message/comment/list":{"post":{"tags":["work-we-chat-contact-message-controller"],"summary":"获取点评记录","operationId":"listContactsMessageCommentV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkWeChatContactMessageCommentRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatContactMessageCommentExtendDto"}}}}}}},"/api/{tenant}/v1/chat/group/way/{id}":{"post":{"tags":["chat-group-way-controller"],"summary":"编辑二维码","operationId":"updateWorkWeChatContactWayV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGroupWayRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatGroupWayDtoV1"}}}}}}},"/api/v1/{tenant}/chat/group/way/{id}":{"post":{"tags":["chat-group-way-controller"],"summary":"编辑二维码","operationId":"updateWorkWeChatContactWayV1_2","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGroupWayRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatGroupWayDtoV1"}}}}}}},"/api/v1/{tenant}/chat/group/way":{"get":{"tags":["chat-group-way-controller"],"operationId":"pageWorkWeChatContactWayV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatGroupId","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"title":"渠道二维码id","type":"integer","format":"int64"}},{"name":"stateName","in":"query","required":false,"schema":{"title":"名称","type":"string"}},{"name":"state","in":"query","required":false,"schema":{"title":"state","type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatGroupWayPageDtoV1"}}}}}},"post":{"tags":["chat-group-way-controller"],"summary":"新增二维码","operationId":"saveWorkWeChatContactWayV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGroupWayRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatGroupWayDtoV1"}}}}}}},"/api/{tenant}/v1/chat/group/way":{"get":{"tags":["chat-group-way-controller"],"operationId":"pageWorkWeChatContactWayV1_2","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatGroupId","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"title":"渠道二维码id","type":"integer","format":"int64"}},{"name":"stateName","in":"query","required":false,"schema":{"title":"名称","type":"string"}},{"name":"state","in":"query","required":false,"schema":{"title":"state","type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatGroupWayPageDtoV1"}}}}}},"post":{"tags":["chat-group-way-controller"],"summary":"新增二维码","operationId":"saveWorkWeChatContactWayV1_2","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGroupWayRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatGroupWayDtoV1"}}}}}}},"/api/v1/workWeChat/userGuide/openClawStaffAgent":{"post":{"tags":["work-we-chat-user-guide-controller"],"operationId":"openClawStaffAgent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenClawStaffAgentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OpenClawStaffAgentResponse"}}}}}}},"/api/v1/workWeChat/userGuide/applyBindTenant":{"post":{"tags":["work-we-chat-user-guide-controller"],"operationId":"applyBindTenant","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyBindTenantRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApplyBindTenantResponse"}}}}}}},"/api/v1/workWeChat/userGuide/applyBindAgent":{"post":{"tags":["work-we-chat-user-guide-controller"],"operationId":"applyBindAgent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyBindAgentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApplyBindAgentResponse"}}}}}}},"/api/v1/workWeChat/tag/{workWeCorpId}":{"get":{"tags":["work-we-chat-tag-controller"],"summary":"查询企微标签","operationId":"list","parameters":[{"name":"workWeCorpId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatTagGroupDto"}}}}}}},"post":{"tags":["work-we-chat-tag-controller"],"summary":"添加企微标签组/标签","operationId":"addTag","parameters":[{"name":"workWeCorpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"query","required":false,"schema":{"type":"string"}},{"name":"groupName","in":"query","required":true,"schema":{"type":"string"}},{"name":"tagNames","in":"query","required":true,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatTagGroupDto"}}}}}}},"/api/v1/workWeChat/tag/{workWeCorpId}/pushCustomerTagChangeMsg":{"post":{"tags":["work-we-chat-tag-controller"],"summary":"客户标签变更提醒","operationId":"pushCustomerTagChangeMsg","parameters":[{"name":"workWeCorpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string"}},{"name":"workWeChatCustomerId","in":"query","required":true,"schema":{"type":"string"}},{"name":"changeContent","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/v1/workWeChat/message/send/byConversationGroupId/{conversationGroupId}":{"post":{"tags":["work-we-chat-message-controller"],"operationId":"sendMessageByConversationGroupIdV1","parameters":[{"name":"conversationGroupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageByConversationGroupIdRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SendMessageResultDto"}}}}}}},"/api/v1/workWeChat/customer/{corpName}/openIdRelateExternalUser":{"post":{"tags":["work-we-chat-customer-controller"],"summary":"关联微信openId","operationId":"openIdRelateExternalUser","parameters":[{"name":"corpName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenIdRelateExternalUserRequestV1"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/v1/workWeChat/customer/{corpName}/batch":{"post":{"tags":["work-we-chat-customer-controller"],"summary":"获取企微客户信息","operationId":"listWorkWeChatCustomerV1","parameters":[{"name":"corpName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkWeChatCustomerRequestV1"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatCustomerDtoV1"}}}}}}}},"/api/v1/monitor/optimistic-lock/reset":{"post":{"tags":["optimistic-lock-monitor-controller"],"operationId":"resetStats","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/ntWork/v1/eventNotify":{"post":{"tags":["nt-work-event-notify-controller"],"operationId":"post_3","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NtWorkAgentCloudEvent"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/console/workWeChat/user/{id}/syncManagedInfo":{"post":{"tags":["work-we-chat-user-console-controller"],"operationId":"syncManagedInfo","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/console/workWeChat/corps":{"get":{"tags":["work-we-chat-corp-console-controller"],"operationId":"listWorkWeChatCorp","parameters":[{"name":"corpName","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatCorpDto"}}}}}},"post":{"tags":["work-we-chat-corp-console-controller"],"operationId":"postWorkWeChatCorp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkWeChatCorpRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatCorpDto"}}}}}}},"/api/console/workWeChat/activeLicense/activate":{"post":{"tags":["work-we-chat-user-active-license-console-controller"],"operationId":"activate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/console/padWork/login/qrcode/login/verify":{"post":{"tags":["pad-work-instance-login-controller"],"summary":"扫码登录验证","operationId":"padWorkLoginQrcodeVerify","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginQrcodeVerifyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeVerifyResponse"}}}}}}},"/api/console/padWork/login/push-url":{"post":{"tags":["pad-work-instance-login-controller"],"summary":"推送手机确认登录通知","operationId":"padWorkPushLoginUrl","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushLoginUrlRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PushLoginUrlResponse"}}}}},"deprecated":true}},"/api/console/padWork/login/manual-login":{"post":{"tags":["pad-work-instance-login-controller"],"summary":"手动登录","operationId":"padWorkManualLogin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualLoginRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ManualLoginResponse"}}}}},"deprecated":true}},"/api/console/padWork/login/keep-login":{"post":{"tags":["pad-work-instance-login-controller"],"summary":"保持登录","operationId":"padWorkKeepLogin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeepLoginRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/KeepLoginResponse"}}}}},"deprecated":true}},"/api/console/padWork/login/auto-login":{"post":{"tags":["pad-work-instance-login-controller"],"summary":"自动登录","operationId":"padWorkAutoLogin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoLoginRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AutoLoginResponse"}}}}},"deprecated":true}},"/api/console/padWork/instance/{hashId}/upgrade":{"post":{"tags":["pad-work-instance-console-controller"],"summary":"升级版本","description":"升级指定实例的客户端版本","operationId":"upgrade","parameters":[{"name":"hashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OperationResult"}}}}}}},"/api/console/padWork/instance/{hashId}/syncFromNtWork":{"post":{"tags":["pad-work-instance-console-controller"],"summary":"从ntWork同步好友及群","description":"从ntWork同步好友及群(通过Temporal Workflow)","operationId":"syncFromNtWork","parameters":[{"name":"hashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OperationResult"}}}}}}},"/api/console/padWork/instance/{hashId}/sync-rooms":{"post":{"tags":["pad-work-instance-console-controller"],"summary":"同步群聊","description":"同步指定实例的群聊列表(通过Temporal Workflow)","operationId":"syncRooms","parameters":[{"name":"hashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OperationResult"}}}}}}},"/api/console/padWork/instance/{hashId}/sync-contacts":{"post":{"tags":["pad-work-instance-console-controller"],"summary":"同步好友","description":"同步指定实例的好友列表(通过Temporal Workflow)","operationId":"syncContacts","parameters":[{"name":"hashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OperationResult"}}}}}}},"/api/console/padWork/instance/{hashId}/stop":{"post":{"tags":["pad-work-instance-console-controller"],"summary":"停止实例","description":"停止指定实例","operationId":"padworkInstanceStop","parameters":[{"name":"hashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OperationResult"}}}}}}},"/api/console/padWork/instance/{hashId}/restart":{"post":{"tags":["pad-work-instance-console-controller"],"summary":"重启实例","description":"停止并恢复指定实例","operationId":"padworkInstanceRestart","parameters":[{"name":"hashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OperationResult"}}}}}}},"/api/console/padWork/instance/{hashId}/offline":{"post":{"tags":["pad-work-instance-console-controller"],"summary":"设置离线","description":"将指定实例设置为离线状态","operationId":"offline","parameters":[{"name":"hashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OperationResult"}}}}}}},"/api/console/padWork/device/{guid}/free":{"post":{"tags":["pad-work-device-console-controller"],"summary":"释放设备","description":"将指定设备设置为空闲状态","operationId":"freeDevice","parameters":[{"name":"guid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OperationResult"}}}}},"deprecated":true}},"/api/console/padWork/device/createDeviceByDeviceType":{"post":{"tags":["pad-work-device-console-controller"],"summary":"创建新设备","operationId":"createDeviceByDeviceType","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDeviceRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/console/padWork/device/batch-free":{"post":{"tags":["pad-work-device-console-controller"],"summary":"批量释放设备","description":"批量将设备设置为空闲状态","operationId":"batchFreeDevices","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchFreeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BatchOperationResult"}}}}},"deprecated":true}},"/api/console/pad/workflow/syncUser":{"post":{"tags":["pad-workflow-test-controller"],"operationId":"syncUser","parameters":[{"name":"padWorkUserId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/console/pad/workflow/syncMember":{"post":{"tags":["pad-workflow-test-controller"],"operationId":"syncMember","parameters":[{"name":"padWorkContactId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/console/pad/workflow/syncContactRoom":{"post":{"tags":["pad-workflow-test-controller"],"operationId":"syncContactRoom","parameters":[{"name":"padWorkContactId","in":"query","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/console/pad/workflow/syncContactCustomer":{"post":{"tags":["pad-workflow-test-controller"],"operationId":"syncContactCustomer","parameters":[{"name":"padWorkContactId","in":"query","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/console/ntWork/user/syncExternalContact":{"post":{"tags":["nt-work-user-console-controller"],"operationId":"syncExternalContact","parameters":[{"name":"ntWorkUserId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/console/ntWork/user/restartWeWorkInstance":{"post":{"tags":["nt-work-user-console-controller"],"operationId":"restartWeWorkInstance","parameters":[{"name":"ntWorkInstanceId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/console/ntWork/user/exitWeWorkInstance":{"post":{"tags":["nt-work-user-console-controller"],"operationId":"exitWeWorkInstance","parameters":[{"name":"ntWorkInstanceId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/console/ntWork/message/voiceRepair":{"post":{"tags":["nt-work-message-console-controller"],"summary":"语音文件处理","operationId":"voiceRepair","responses":{"200":{"description":"OK"}}}},"/api/console/ntWork/message/import":{"post":{"tags":["nt-work-message-console-controller"],"summary":"历史消息数据导入","operationId":"importHistoryMessage","requestBody":{"content":{"multipart/form-data":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","description":"历史消息数据json","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ImportResult"}}}}}}},"/api/console/instance/manage":{"post":{"tags":["instance-manage-controller"],"summary":"添加实例管理","operationId":"addInstanceManage","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveManageRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SaveManageDTO"}}}}}}},"/api/console/chat/group":{"get":{"tags":["chat-group-console-controller"],"operationId":"pageChatGroup","parameters":[{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"ownerChatUserId","in":"query","required":false,"schema":{"type":"string"}},{"name":"chatId","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatGroupDto"}}}}}},"post":{"tags":["chat-group-console-controller"],"operationId":"postChatGroup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGroupSaveRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatGroupDto"}}}}}}},"/api/console/chat/group/{id}/ai/switch":{"post":{"tags":["chat-group-console-controller"],"summary":"群聊AI回复开关","operationId":"switchChatGroupAi","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatDigitalStaffId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"boolean"}}}}}}},"/api/{tenant}/console/workWeChat/contactWay/{id}":{"delete":{"tags":["work-we-chat-contact-way-console-controller"],"operationId":"deleteWorkWeChatContactWay","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}},"patch":{"tags":["work-we-chat-contact-way-console-controller"],"operationId":"patchWorkWeChatContactWay","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactWayRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContactWayDto"}}}}}}},"/api/{tenant}/console/userConversations/batch":{"patch":{"tags":["user-conversation-controller"],"operationId":"batchPatchConversations","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchPatchRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"integer","format":"int32"}}}}}}},"/api/{tenant}/console/customers/{customerId}/profiles/{name}":{"get":{"tags":["customer-profile-console-controller"],"operationId":"getCustomerProfile_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BasicCustomerProfile"}}}}}},"patch":{"tags":["customer-profile-console-controller"],"operationId":"patchCustomerProfile","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasicCustomerProfile"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/console/workWeChat/corps/{hashId}":{"delete":{"tags":["work-we-chat-corp-console-controller"],"operationId":"deleteWorkWeChatCorp","parameters":[{"name":"hashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatCorpDto"}}}}}},"patch":{"tags":["work-we-chat-corp-console-controller"],"operationId":"patchWorkWeChatCorp","parameters":[{"name":"hashId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkWeChatCorpRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatCorpDto"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/way/{hashId}":{"get":{"tags":["work-we-chat-contact-way-controller"],"summary":"生成本地二维码图片","operationId":"generateWorkWeChatContactWayLocalUrl","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"hashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/workWeChat/contact/external":{"get":{"tags":["work-we-chat-contact-controller"],"summary":"根据医助id和二维码id获取客户信息","operationId":"listWorkWeChatExternalContactV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","required":true,"schema":{"title":"企微标识","type":"string"}},{"name":"userId","in":"query","required":true,"schema":{"title":"员工userid","type":"string"}},{"name":"beginFollowTime","in":"query","required":true,"schema":{"title":"客户添加时间开始:yyyy-MM-dd HH:mm:ss","type":"string"}},{"name":"endFollowTime","in":"query","required":true,"schema":{"title":"客户添加时间截止:yyyy-MM-dd HH:mm:ss","type":"string"}},{"name":"contactWayId","in":"query","required":true,"schema":{"title":"二维码id","type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExternalContactDtoV1"}}}}}}}},"/api/{tenant}/v1/workWeChat/contact/external/{externalUserId}/tags":{"get":{"tags":["work-we-chat-contact-controller"],"summary":"获取外部联系人自定义标签列表","operationId":"getExternalContactTags","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"externalUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"internalUserId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerTagJoinTagDto"}}}}}}},"delete":{"tags":["work-we-chat-contact-controller"],"summary":"删除外部联系人自定义标签","operationId":"deleteExternalContactTags","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"externalUserId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteExternalContactTagsRequestV1"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/workWeChat/contact/external/{externalUserId}/chatContact":{"get":{"tags":["work-we-chat-contact-controller"],"summary":"根据外部联系人userId获取聚合聊天联系人信息","operationId":"getChatContactByExternalUserId","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"externalUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatContactInfoDtoV1"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/external/byMobile":{"get":{"tags":["work-we-chat-contact-controller"],"summary":"获取外部联系人信息","operationId":"getExternalContactByMobile","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","required":true,"schema":{"title":"企微标识","type":"string"}},{"name":"internalUserId","in":"query","description":"系统内部企微员工userId,与 internalMobile 至少提供一个","required":false,"schema":{"type":"string","description":"系统内部企微员工userId,与 internalMobile 至少提供一个"}},{"name":"internalMobile","in":"query","description":"系统内部企微员工手机号,与 internalUserId 至少提供一个","required":false,"schema":{"type":"string","description":"系统内部企微员工手机号,与 internalUserId 至少提供一个"}},{"name":"externalMobile","in":"query","description":"外部联系人手机号","required":false,"schema":{"type":"string","description":"外部联系人手机号"}},{"name":"externalNickName","in":"query","description":"外部联系人昵称","required":false,"schema":{"type":"string","description":"外部联系人昵称"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/GetExternalContactByMobileDtoV1"}}}}}}},"/api/{tenant}/v1/customers/interventionRule/byContactWay":{"get":{"tags":["customer-intervention-rule-controller"],"summary":"获取人工介入规则","operationId":"getCustomerInterventionRuleByContactWayV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactWayState","in":"query","description":"场景码state值","required":false,"schema":{"type":"string","description":"场景码state值"}},{"name":"contactWayUserId","in":"query","description":"场景码企微账号","required":false,"schema":{"type":"string","description":"场景码企微账号"}},{"name":"contactWayCorp","in":"query","description":"场景码企微标识","required":false,"schema":{"type":"string","description":"场景码企微标识"}},{"name":"staffId","in":"query","description":"数字员工ID","required":false,"schema":{"type":"string","description":"数字员工ID"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerInterventionRulesDtoV1"}}}}}}}},"/api/{tenant}/v1/chat/staff/{chatStaffId}":{"get":{"tags":["chat-staff-controller"],"operationId":"getChatStaffV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatStaffId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatStaffDto"}}}}}}},"/api/{tenant}/v1/chat/staff/search":{"get":{"tags":["chat-staff-controller"],"operationId":"searchChatStaffV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatChannelId","in":"query","required":false,"schema":{"type":"string"}},{"name":"mobile","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatStaffSearchDto"}}}}}}}},"/api/{tenant}/v1/chat/session/page":{"get":{"tags":["chat-session-controller"],"description":"分页获取会话列表","operationId":"pageChatSessionV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"state","in":"query","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatSessionDto"}}}}}}},"/api/{tenant}/v1/chat/digitalStaff/list":{"get":{"tags":["数字员工客户管理"],"summary":"分页查询数字员工列表","operationId":"listDigitalStaff","parameters":[{"name":"tenant","in":"path","description":"租户","required":true,"schema":{"type":"string"}},{"name":"serviceTargetId","in":"query","description":"服务对象ID(可选,存于 metadata.serviceTargetId)","required":false,"schema":{"type":"string","description":"服务对象ID(可选,存于 metadata.serviceTargetId)"}},{"name":"serviceTargetType","in":"query","description":"服务对象类型(可选,存于 metadata.serviceTargetType)","required":false,"schema":{"type":"integer","description":"服务对象类型(可选,存于 metadata.serviceTargetType)","format":"int32"}},{"name":"externalUserId","in":"query","description":"企微外部联系人 ID(可选);有值时按联系人关联的数字员工过滤","required":false,"schema":{"type":"string","description":"企微外部联系人 ID(可选);有值时按联系人关联的数字员工过滤"}},{"name":"status","in":"query","description":"员工状态,DELETED/NORMAL","required":false,"schema":{"type":"string","description":"员工状态,DELETED/NORMAL","enum":["DELETED","NORMAL"]}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoDigitalStaffListItem"}}}}}}},"/api/{tenant}/v1/chat/digitalStaff/contact/count-by-date":{"get":{"tags":["数字员工客户管理"],"summary":"按日期统计数字员工联系人数量","operationId":"countContactByDate","parameters":[{"name":"tenant","in":"path","description":"租户","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","description":"开始日期(含),格式 yyyy-MM-dd","required":true,"schema":{"type":"string","description":"开始日期(含),格式 yyyy-MM-dd","format":"date","example":"2024-01-01"},"example":"2024-01-01"},{"name":"endDate","in":"query","description":"结束日期(含),格式 yyyy-MM-dd","required":true,"schema":{"type":"string","description":"结束日期(含),格式 yyyy-MM-dd","format":"date","example":"2024-01-31"},"example":"2024-01-31"},{"name":"digitalStaffId","in":"query","description":"chatDigitalStaffId(hashId),与 staffId 至少传一个","required":false,"schema":{"type":"string","description":"chatDigitalStaffId(hashId),与 staffId 至少传一个"}},{"name":"staffId","in":"query","description":"staffId,有值时优先于 digitalStaffId 解析","required":false,"schema":{"type":"string","description":"staffId,有值时优先于 digitalStaffId 解析"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactCountByDateItem"}}}}}}}},"/api/{tenant}/v1/chat/digital-staff/service-time/list":{"get":{"tags":["数字员工服务时间管理"],"summary":"查询服务时间配置列表","description":"分页查询数字员工服务时间配置列表,支持按数字员工、服务模式、状态筛选","operationId":"listServiceTime","parameters":[{"name":"tenant","in":"path","description":"租户标识","required":true,"schema":{"type":"string"}},{"name":"staffId","in":"query","description":"数字员工ID(可选)","required":false,"schema":{"type":"string","description":"数字员工ID(可选)"}},{"name":"enableType","in":"query","description":"服务模式(可选)","required":false,"schema":{"type":"string","description":"服务模式(可选)","example":"AUTO_MODE","enum":["ENABLE_AI_REPLY","DISABLE_AI_REPLY","AUTO_MODE","SEMI_AUTO_MODE","SAFE_MODE"]},"example":"AUTO_MODE"},{"name":"status","in":"query","description":"状态(可选)","required":false,"schema":{"type":"string","description":"状态(可选)","example":"RUNNING","enum":["RUNNING","PENDING","STOPPED"]},"example":"RUNNING"},{"name":"withSlots","in":"query","description":"是否返回slots","required":false,"schema":{"type":"boolean","description":"是否返回slots"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatDigitalStaffServiceTimeListDto"}}}}}}},"/api/{tenant}/v1/chat/digital-staff/service-time/detail/{id}":{"get":{"tags":["数字员工服务时间管理"],"summary":"获取服务时间配置详情","description":"根据服务时间配置ID获取详细信息,包含扩展字段","operationId":"getServiceTimeDetail","parameters":[{"name":"tenant","in":"path","description":"租户标识","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"服务时间配置ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatDigitalStaffServiceTimeListDto"}}}}}}},"/api/{tenant}/v1/chat/digital-staff/service-time/current-status":{"get":{"tags":["数字员工服务时间管理"],"summary":"检查当前服务状态","description":"检查当前时间是否在服务时间内","operationId":"getCurrentStatus","parameters":[{"name":"tenant","in":"path","description":"租户标识","required":true,"schema":{"type":"string"}},{"name":"staffId","in":"query","description":"数字员工ID","required":true,"schema":{"type":"string","description":"数字员工ID"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatServiceTimeStatusDto"}}}}}}},"/api/{tenant}/v1/chat/customer":{"get":{"tags":["chat-customer-controller"],"summary":"根据外部联系人ID获取客户信息","operationId":"getChatCustomerByWorkWeChatExternalUserIdV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatExternalUserId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatCustomerDtoV1"}}}}}}},"/api/{tenant}/v1/chat/channel":{"get":{"tags":["chat-channel-controller"],"operationId":"listChatChannel","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]}},{"name":"appId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatChannelDto"}}}}}}}},"/api/{tenant}/mcp/chat/contact/message":{"get":{"tags":["chat-contact-message-mcp-controller"],"operationId":"listChatContactMessages","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"conversationGroupId","in":"query","description":"会话id","required":true,"schema":{"type":"string","description":"会话id"}},{"name":"lastN","in":"query","description":"获取最近的N条消息","required":false,"schema":{"maximum":500,"type":"integer","description":"获取最近的N条消息","format":"int32"}},{"name":"ignoreOther","in":"query","description":"是否忽略其他会话","required":false,"schema":{"type":"boolean","description":"是否忽略其他会话"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactMessageDtoV1"}}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/{contactId}/message":{"get":{"tags":["work-we-chat-contact-message-console-controller"],"summary":"获取聊天记录","operationId":"listContactsMessage","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"startMsgTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"endMsgTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"ids","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"actualSenderTypes","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]}}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactsMessageDto"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/{contactId}/message/{id}/advice":{"get":{"tags":["work-we-chat-contact-message-console-controller"],"summary":"消息建议","operationId":"messageAdvice","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MessageAdviceDto"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/{contactId}/message/sop/{id}":{"get":{"tags":["work-we-chat-contact-message-console-controller"],"summary":"优化记录","operationId":"messageCommentSop","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MessageSopDto"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/{contactId}/message/getMessageSender":{"get":{"tags":["work-we-chat-contact-message-console-controller"],"operationId":"getMessageSender","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"senderType","in":"query","required":true,"schema":{"type":"string","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]}},{"name":"sender","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatMessageActualSenderDtoObject"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/room":{"get":{"tags":["work-we-chat-contact-console-controller"],"summary":"获取联系人群聊列表","operationId":"listChatRoomSession","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"lastMsgTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["NORMAL","DELETED"]}},{"name":"contactIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactsRoomDto"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/internal":{"get":{"tags":["work-we-chat-contact-console-controller"],"summary":"获取联系人员工列表","operationId":"listChatInternalSession","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"lastMsgTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactsInternalDto"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/external":{"get":{"tags":["work-we-chat-contact-console-controller"],"summary":"获取联系人客户列表","operationId":"listChatExternalContact","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"lastMsgTime","in":"query","description":"最新消息时间","required":false,"schema":{"type":"string","description":"最新消息时间"}},{"name":"keyword","in":"query","description":"关键词","required":false,"schema":{"type":"string","description":"关键词"}},{"name":"contactIds","in":"query","description":"联系人id","required":false,"schema":{"uniqueItems":true,"type":"array","description":"联系人id","items":{"type":"string","description":"联系人id"}}},{"name":"tagIds","in":"query","description":"标签id","required":false,"schema":{"uniqueItems":true,"type":"array","description":"标签id","items":{"type":"string","description":"标签id"}}},{"name":"contactViewId","in":"query","description":"视图id","required":false,"schema":{"type":"string","description":"视图id"}},{"name":"contactViewType","in":"query","description":"视图类型:TODAY_NEW-今日新增,RECENT_ACTIVE-近7天活跃,PENDING_FOLLOW-待跟进客户","required":false,"schema":{"type":"string","description":"视图类型:TODAY_NEW-今日新增,RECENT_ACTIVE-近7天活跃,PENDING_FOLLOW-待跟进客户","enum":["TOADY_ADD","LAST_7_DAYS_ACTIVE","PENDING_FOLLOW_UP"]}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactsExternalDto"}}}}}}},"/api/{tenant}/console/workWeChat/{workWeChatUserId}/contact/external/{contactId}/ai-profile-diff":{"get":{"tags":["work-we-chat-contact-console-controller"],"summary":"获取联系人客户信息与AI画像差异提示","operationId":"getContactAiProfileDiff","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContactAiProfileDiffDto"}}}}}}},"/api/{tenant}/console/workWeChat/user/statistics":{"get":{"tags":["work-we-chat-user-relate-console-controller"],"summary":"托管账号数量统计","operationId":"userRelateStatistics","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserRelateStatisticsDto"}}}}}}},"/api/{tenant}/console/workWeChat/user/listManageWorkWeChatUser":{"get":{"tags":["work-we-chat-user-relate-console-controller"],"summary":"查询当前登录用户管理的企微账号","operationId":"listManageWorkWeChatUser","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ManageWorkWeChatUserDto"}}}}}}}},"/api/{tenant}/console/workWeChat/user/instance":{"get":{"tags":["work-we-chat-user-relate-console-controller"],"summary":"获取租户账号托管","operationId":"listWorkWeChatNtWorkUser","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","required":false,"schema":{"type":"string"}},{"name":"mobile","in":"query","required":false,"schema":{"type":"string"}},{"name":"corpNameOrShotName","in":"query","required":false,"schema":{"type":"string"}},{"name":"username","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["ONLINE","OFFLINE"]}},{"name":"userIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"apiUrl","in":"query","required":false,"schema":{"type":"string"}},{"name":"nickname","in":"query","required":false,"schema":{"type":"string"}},{"name":"acctId","in":"query","required":false,"schema":{"type":"string"}},{"name":"corpId","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatUserNtWorkUserDto"}}}}}}},"/api/{tenant}/console/workWeChat/user/guide/syncGroupProgress":{"get":{"tags":["work-we-chat-user-guide-console-controller"],"summary":"获取企微员工客户群同步进度","operationId":"getWorkWeChatUserSyncGroupProgress","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"query","required":false,"schema":{"title":"企微员工ID","type":"string"}},{"name":"acctId","in":"query","required":false,"schema":{"title":"用户ID","type":"string"}},{"name":"corpName","in":"query","required":false,"schema":{"title":"企微公司名称","type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatUserSyncGroupProgressDto"}}}}}}},"/api/{tenant}/console/workWeChat/user/guide/syncCustomerProgress":{"get":{"tags":["work-we-chat-user-guide-console-controller"],"summary":"获取企微员工客户同步进度","operationId":"getWorkWeChatUserSyncCustomerProgress","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"query","required":false,"schema":{"title":"企微员工ID","type":"string"}},{"name":"acctId","in":"query","required":false,"schema":{"title":"用户ID","type":"string"}},{"name":"corpName","in":"query","required":false,"schema":{"title":"企微公司名称","type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatUserSyncCustomerProgressDto"}}}}}}},"/api/{tenant}/console/workWeChat/user/guide/staffAndCapabilityList":{"get":{"tags":["work-we-chat-user-guide-console-controller"],"summary":"查询员工能力关联列表(按员工分组)","operationId":"getStaffAndCapabilityList","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"query","required":false,"schema":{"title":"企微员工ID","type":"string"}},{"name":"acctId","in":"query","required":false,"schema":{"title":"用户ID","type":"string"}},{"name":"corpName","in":"query","required":false,"schema":{"title":"企微公司名称","type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StaffCapabilityGroupDto"}}}}}}}},"/api/{tenant}/console/workWeChat/user/guide/digitalStaffList":{"get":{"tags":["work-we-chat-user-guide-console-controller"],"summary":"获取数字员工列表","operationId":"getGuideDigitalStaffList","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"title":"关键字","type":"string"}},{"name":"workWeChatUserId","in":"query","required":false,"schema":{"title":"企微员工ID","type":"string"}},{"name":"bound","in":"query","required":false,"schema":{"title":"是否已绑定","type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DigitalStaffDto"}}}}}}}},"/api/{tenant}/console/workWeChat/user/connect":{"get":{"tags":["work-we-chat-user-relate-console-controller"],"summary":"获取sse连接","operationId":"getSseEmitterConnect","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SseEmitter"}}}}}}},"/api/{tenant}/console/workWeChat/user/active":{"get":{"tags":["work-we-chat-user-relate-console-controller"],"summary":"获取租户关联企微登录成员","operationId":"listWorkWeChatActiveUser","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"online","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatUserActiveDto"}}}}}}}},"/api/{tenant}/console/workWeChat/diagnose/sse":{"get":{"tags":["聊天诊断"],"summary":"一键诊断(SSE)","description":"传入 chatContactId 或 chatStaffId,实时推送诊断进度","operationId":"diagnoseStream","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"query","required":false,"schema":{"type":"string"}},{"name":"chatStaffId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SseEmitter"}}}}}}},"/api/{tenant}/console/workWeChat/contactWay/getWayExtend":{"get":{"tags":["work-we-chat-contact-way-console-controller"],"operationId":"getWayExtend","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}}}}}},"/api/{tenant}/console/variables/{id}/revisions":{"get":{"tags":["variable-value-controller"],"operationId":"listVariableRevisions","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoVariableValueRevisionDto"}}}}}}},"/api/{tenant}/console/userChatContactView/byWorkWeChatUserId":{"get":{"tags":["user-chat-contact-view-console-controller"],"operationId":"listUserChatContactView","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserChatContactViewDto"}}}}}}}},"/api/{tenant}/console/userChatContactView/byChatDigitalStaffId":{"get":{"tags":["user-chat-contact-view-console-controller"],"operationId":"listUserChatContactViewByDigital","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatDigitalStaffId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserChatContactViewDto"}}}}}}}},"/api/{tenant}/console/summary/list":{"get":{"tags":["message-summary-console-controller"],"operationId":"list_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"pageIndex","in":"query","description":"页码 0开始","required":false,"schema":{"type":"integer","description":"页码 0开始","format":"int32"}},{"name":"pageSize","in":"query","description":"分页大小 默认10","required":false,"schema":{"type":"integer","description":"分页大小 默认10","format":"int32"}},{"name":"startDate","in":"query","description":"开始时间 yyyy-MM-dd","required":false,"schema":{"type":"string","description":"开始时间 yyyy-MM-dd"}},{"name":"endDate","in":"query","description":"结束时间 yyyy-MM-dd","required":false,"schema":{"type":"string","description":"结束时间 yyyy-MM-dd"}},{"name":"contactIds","in":"query","description":"联系人ID集合","required":false,"schema":{"uniqueItems":true,"type":"array","description":"联系人ID集合","items":{"type":"string","description":"联系人ID集合"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoMessageSummaryDTO"}}}}}}},"/api/{tenant}/console/sop/retry/{id}":{"get":{"tags":["sop-optimize-record-controller"],"summary":"重试失败记录","operationId":"retrySop","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SopOptimizeRecordRetryDTO"}}}}}}},"/api/{tenant}/console/sop/list":{"get":{"tags":["sop-optimize-record-controller"],"summary":"获取优化记录","operationId":"listSopList","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"optimizationEntry","in":"query","description":"COMMENT 点评 ADVICE 建议","required":false,"schema":{"type":"string","description":"COMMENT 点评 ADVICE 建议","enum":["COMMENT","ADVICE"]}},{"name":"startTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"endTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"optimizationResult","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"pageIndex","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"contentSearch","in":"query","required":false,"schema":{"type":"string"}},{"name":"commentId","in":"query","description":"点评ID","required":false,"schema":{"type":"string","description":"点评ID"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoSopOptimizeRecordDTO"}}}}}}},"/api/{tenant}/console/customers/{customerId}/conversationGroups":{"get":{"tags":["customer-conversation-groups-console-controller"],"operationId":"listCustomerConversationGroups","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationGroupDto"}}}}}},"deprecated":true}},"/api/{tenant}/console/customers/list/listCustomerExternalContactJoin":{"get":{"tags":["customer-list-console-controller"],"summary":"分页查询托管账号下的客户列表(带标签)","operationId":"listCustomerExternalContactJoin","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"query","required":false,"schema":{"type":"string"}},{"name":"workWeChatCustomerId","in":"query","required":false,"schema":{"type":"string"}},{"name":"customerName","in":"query","required":false,"schema":{"type":"string"}},{"name":"remarkName","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoCustomerExternalContactJoinDto"}}}}}}},"/api/{tenant}/console/customers/interventionRule/containKeyword":{"get":{"tags":["customer-intervention-rule-console-controller"],"summary":"获取有关键词的规则","operationId":"getCustomerInterventionRuleContainKeyword","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerInterventionRuleContainKeywordDto"}}}}}}}},"/api/{tenant}/console/customers/interventionReply":{"get":{"tags":["customer-intervention-reply-console-controller"],"summary":"获取客服回复记录","operationId":"listCustomerInterventionReply","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"containDigitalStaff","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"startMsgTime","in":"query","description":"开始时间","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string","description":"开始时间"}},{"name":"endMsgTime","in":"query","description":"截至时间","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string","description":"截至时间"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoCustomerInterventionReplyDto"}}}}}}},"/api/{tenant}/console/customers/interventionReply/{id}/chatMessage":{"get":{"tags":["customer-intervention-reply-console-controller"],"summary":"获取聊天记录","operationId":"listCustomerInterventionReplyChatMessage","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerInterventionReplyChatMessageDto"}}}}}}},"/api/{tenant}/console/customers/interventionRecord":{"get":{"tags":["customer-intervention-record-console-controller"],"summary":"获取人工介入记录","operationId":"listCustomerInterventionRecord","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"likeWord","in":"query","required":false,"schema":{"type":"string"}},{"name":"handleStatus","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","PROCESSING","CONTACTED","FINISHED"]}},{"name":"chatContactId","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoCustomerInterventionRecordDto"}}}}}}},"/api/{tenant}/console/customers/interventionRecord/latest":{"get":{"tags":["customer-intervention-record-console-controller"],"summary":"根据chatContactId查询最新一条介入记录及处理记录","operationId":"getLatestRecordWithHandles","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"query","description":"聊天联系人id","required":true,"schema":{"type":"string","description":"聊天联系人id"}},{"name":"chatDigitalStaffId","in":"query","description":"数字员工id","required":true,"schema":{"type":"string","description":"数字员工id"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerInterventionRecordWithHandlesDto"}}}}}}},"/api/{tenant}/console/customers/interventionRecord/analysis/quesType":{"get":{"tags":["customer-intervention-record-console-controller"],"summary":"按问题类型统计","operationId":"analysisCustomerInterventionRecordByQuesType","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"startCreateAt","in":"query","description":"开始时间","required":true,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string","description":"开始时间"}},{"name":"endCreateAt","in":"query","description":"截至时间","required":true,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string","description":"截至时间"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerInterventionRecordAnalysisByDto"}}}}}}}},"/api/{tenant}/console/customers/interventionRecord/analysis/day":{"get":{"tags":["customer-intervention-record-console-controller"],"summary":"按天统计","operationId":"analysisCustomerInterventionRecordByDay","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"startCreateAt","in":"query","description":"开始时间","required":true,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string","description":"开始时间"}},{"name":"endCreateAt","in":"query","description":"截至时间","required":true,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string","description":"截至时间"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerInterventionRecordAnalysisByDto"}}}}}}}},"/api/{tenant}/console/customers/intentionType/list":{"get":{"tags":["customer-intention-type-controller"],"summary":"获取意图分类列表","operationId":"listIntentionTypes","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerIntentionTypeDto"}}}}}}}},"/api/{tenant}/console/customers/intentionRecord":{"get":{"tags":["customer-intention-record-controller"],"summary":"获取意图识别记录","operationId":"listIntentionRecord","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"handleStatus","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","PROCESSING","FINISHED"]}},{"name":"pageIndex","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"createStart","in":"query","required":false,"schema":{"type":"string"}},{"name":"createEnd","in":"query","required":false,"schema":{"type":"string"}},{"name":"needHuman","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"intentionType","in":"query","required":false,"schema":{"type":"string"}},{"name":"intentionSubType","in":"query","required":false,"schema":{"type":"string"}},{"name":"receiverId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoCustomerIntentionRecordDto"}}}}}}},"/api/{tenant}/console/conversationGroups/{groupId}/chats":{"get":{"tags":["conversation-group-chat-controller"],"operationId":"listConversationGroupChat","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"conversationIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"beforeId","in":"query","required":false,"schema":{"type":"string"}},{"name":"afterId","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeDeleted","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatDto"}}}}}},"delete":{"tags":["conversation-group-chat-controller"],"operationId":"deleteConversationGroupChats","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteConversationGroupChatRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/conversationGroups/{groupId}/chats/{chatId}":{"get":{"tags":["conversation-group-chat-controller"],"operationId":"getConversationGroupChat","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatDto"}}}}}}},"/api/{tenant}/console/conversationGroups/{groupId}/chats/{chatId}/messages":{"get":{"tags":["conversation-group-chat-message-controller"],"operationId":"listConversationGroupChatMessages","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatId","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoConversationChatMessageDto"}}}}}}},"/api/{tenant}/console/conversationChatUsageStats/page":{"get":{"tags":["conversation-chat-usage-stat-controller"],"operationId":"conversationChatUsageStatPage","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"modelCode","in":"query","required":false,"schema":{"type":"string"}},{"name":"chatDigitalStaffId","in":"query","required":false,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"pageIndex","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoConversationChatUsageStatDto"}}}}}}},"/api/{tenant}/console/conversationChatUsageStats/page/total":{"get":{"tags":["conversation-chat-usage-stat-controller"],"operationId":"conversationChatUsageStatPageTotal","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"modelCode","in":"query","required":false,"schema":{"type":"string"}},{"name":"chatDigitalStaffId","in":"query","required":false,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConversationChatUsageStatTotalDto"}}}}}}},"/api/{tenant}/console/conversationChatUsageStats/page/detail":{"get":{"tags":["conversation-chat-usage-stat-controller"],"operationId":"conversationChatUsageStatPageDetail","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatDigitalStaffId","in":"query","required":true,"schema":{"type":"string"}},{"name":"statDate","in":"query","required":true,"schema":{"type":"string"}},{"name":"modelCode","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationChatUsageStatDetailDto"}}}}}}}},"/api/{tenant}/console/conversationChatUsageStats/cost/detail":{"get":{"tags":["conversation-chat-usage-stat-controller"],"operationId":"conversationChatUsageStatCostDetail","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatDigitalStaffId","in":"query","required":false,"schema":{"type":"string"}},{"name":"modelCode","in":"query","required":false,"schema":{"type":"string"}},{"name":"statDate","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationChatUsageStatCostDetailDto"}}}}}}}},"/api/{tenant}/console/comment/{id}/history":{"get":{"tags":["message-comment-console-controller"],"summary":"对话上下文","operationId":"getCommentHistory","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MessageHistory"}}}}}}},"/api/{tenant}/console/comment/list":{"get":{"tags":["message-comment-console-controller"],"summary":"获取点评记录","operationId":"listComment","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"pageIndex","in":"query","description":"分页 0开始","required":false,"schema":{"type":"integer","description":"分页 0开始","format":"int32"}},{"name":"pageSize","in":"query","description":"分页大小 默认10","required":false,"schema":{"type":"integer","description":"分页大小 默认10","format":"int32"}},{"name":"commentType","in":"query","description":"点评结果 MATCH:符合 NOMATCH:不符合 UNSURE:不确定","required":false,"schema":{"type":"string","description":"点评结果 MATCH:符合 NOMATCH:不符合 UNSURE:不确定"}},{"name":"excellent","in":"query","description":"是否优秀","required":false,"schema":{"type":"boolean","description":"是否优秀"}},{"name":"improveSuggest","in":"query","description":"修改建议模糊","required":false,"schema":{"type":"string","description":"修改建议模糊"}},{"name":"improveType","in":"query","description":" 修改类型 SOP:修改SOP KNOWLEDGE:修改知识库 KEEP:保持","required":false,"schema":{"type":"string","description":" 修改类型 SOP:修改SOP KNOWLEDGE:修改知识库 KEEP:保持"}},{"name":"commentTimeStart","in":"query","description":"查询时间开始","required":false,"schema":{"type":"string","description":"查询时间开始"}},{"name":"commentTimeEnd","in":"query","description":"查询时间结束","required":false,"schema":{"type":"string","description":"查询时间结束"}},{"name":"workWeChatUserId","in":"query","description":"企微workWeChatUserId","required":false,"schema":{"type":"string","description":"企微workWeChatUserId"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MessageCommentListDto"}}}}}}},"/api/{tenant}/console/comment/count":{"get":{"tags":["message-comment-console-controller"],"summary":"获取每日点评统计","operationId":"getCommentCount","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"startTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"endTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"pageIndex","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"pageSize","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MessageCommentCountListDto"}}}}}}},"/api/{tenant}/console/comment/contact/{id}/history":{"get":{"tags":["message-comment-console-controller"],"summary":"对话历史","operationId":"getCommentHistoryByContactId","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"联系人ID","required":true,"schema":{"type":"string","description":"联系人ID"}},{"name":"limit","in":"query","description":"默认10","required":false,"schema":{"type":"integer","description":"默认10","format":"int32"}},{"name":"startDate","in":"query","description":"yyyy-MM-dd 消息开始时间 包含","required":false,"schema":{"type":"string","description":"yyyy-MM-dd 消息开始时间 包含"}},{"name":"endDate","in":"query","description":"yyyy-MM-dd 消息开始时间 包含","required":false,"schema":{"type":"string","description":"yyyy-MM-dd 消息开始时间 包含"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MessageHistory"}}}}}}},"/api/{tenant}/console/chat/staff":{"get":{"tags":["chat-staff-console-controller"],"summary":"获取员工列表","operationId":"pageChatStaff","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"mobile","in":"query","required":false,"schema":{"type":"string"}},{"name":"avatar","in":"query","required":false,"schema":{"type":"string"}},{"name":"alias","in":"query","required":false,"schema":{"type":"string"}},{"name":"channelId","in":"query","required":false,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatStaffDto"}}}}}}},"/api/{tenant}/console/chat/staff/search":{"get":{"tags":["chat-staff-console-controller"],"operationId":"searchChatStaffV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatChannelId","in":"query","required":false,"schema":{"type":"string"}},{"name":"mobile","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatStaffSearchDto"}}}}}}}},"/api/{tenant}/console/chat/message":{"get":{"tags":["chat-message-console-controller"],"summary":"获取聊天记录","operationId":"listContactMessage","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"query","required":false,"schema":{"type":"string"}},{"name":"startMsgTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"endMsgTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"ids","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"chatSessionIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"chatChannelIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"actualSenderTypes","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]}}},{"name":"msgTypes","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string","enum":["text","image","revoke","agree","disagree","voice","video","card","location","emotion","file","link","weapp","chatrecord","todo","vote","collect","redpacket","meeting","meeting_notification","docmsg","markdown","news","calendar","mixed","meeting_voice_call","system","image_text","unknown"]}}},{"name":"msgId","in":"query","required":false,"schema":{"type":"string"}},{"name":"digitalStaffId","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatMessageDto"}}}}}}},"/api/{tenant}/console/chat/message/{msgId}/comment/dataset":{"get":{"tags":["chat-message-comment-console-controller"],"summary":"获取用户关联知识库列表","operationId":"getChatMessageCommentDataset","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"msgId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatMessageCommentDatasetDto"}}}}}}}},"/api/{tenant}/console/chat/message/comment/list":{"get":{"tags":["chat-message-comment-console-controller"],"summary":"获取点评列表","operationId":"getChatMessageCommentList","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"pageIndex","in":"query","description":"分页 0开始","required":false,"schema":{"type":"integer","description":"分页 0开始","format":"int32"}},{"name":"pageSize","in":"query","description":"分页大小 默认10","required":false,"schema":{"type":"integer","description":"分页大小 默认10","format":"int32"}},{"name":"commentType","in":"query","description":"点评结果 MATCH:符合 NOMATCH:不符合 UNSURE:不确定","required":false,"schema":{"type":"string","description":"点评结果 MATCH:符合 NOMATCH:不符合 UNSURE:不确定"}},{"name":"excellent","in":"query","description":"是否优秀","required":false,"schema":{"type":"boolean","description":"是否优秀"}},{"name":"improveSuggest","in":"query","description":"修改建议模糊","required":false,"schema":{"type":"string","description":"修改建议模糊"}},{"name":"improveType","in":"query","description":" 修改类型 SOP:修改SOP KNOWLEDGE:修改知识库 KEEP:保持","required":false,"schema":{"type":"string","description":" 修改类型 SOP:修改SOP KNOWLEDGE:修改知识库 KEEP:保持"}},{"name":"commentTimeStart","in":"query","description":"查询时间开始","required":false,"schema":{"type":"string","description":"查询时间开始"}},{"name":"commentTimeEnd","in":"query","description":"查询时间结束","required":false,"schema":{"type":"string","description":"查询时间结束"}},{"name":"workWeChatUserId","in":"query","description":"企微workWeChatUserId","required":false,"schema":{"type":"string","description":"企微workWeChatUserId"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatMessageCommentDto"}}}}}}},"/api/{tenant}/console/chat/digitalStaff":{"get":{"tags":["数字员工管理"],"summary":"分页查询数字员工","description":"分页查询数字员工列表,包含头像和描述信息,不验证登录人权限","operationId":"pageChatDigitalStaff","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyword","in":"query","description":"关键词搜索","required":false,"schema":{"type":"string"}},{"name":"followUpState","in":"query","description":"是否有跟诊人:1=有跟诊,0=无跟诊","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"ids","in":"query","description":"按ids批量查询","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatDigitalStaffDto"}}}}}}},"/api/{tenant}/console/chat/digitalStaff/{digitalStaffId}/tag/list":{"get":{"tags":["chat-digital-staff-customer-console-controller"],"summary":"查询数字员工标签列表","operationId":"digitalStaffTagList","parameters":[{"name":"digitalStaffId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DigitalStaffTag"}}}}}}}},"/api/{tenant}/console/chat/digitalStaff/{digitalStaffId}/room/list":{"get":{"tags":["chat-digital-staff-customer-console-controller"],"summary":"获取数字员工群聊列表","operationId":"digitalStaffRoomList","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"digitalStaffId","in":"path","required":true,"schema":{"type":"string"}},{"name":"lastMsgTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["NORMAL","DELETED"]}},{"name":"contactIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"platform","in":"query","required":false,"schema":{"type":"string","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactRoomDto"}}}}}}},"/api/{tenant}/console/chat/digitalStaff/{digitalStaffId}/customer/todo/list":{"get":{"tags":["chat-digital-staff-customer-console-controller"],"summary":"获取数字员工客户待办列表","operationId":"digitalStaffCustomerTodoList","parameters":[{"name":"digitalStaffId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["PROFILE_INCOMPLETE","TAG_INCOMPLETE"]}},{"name":"pageSize","in":"query","description":"返回数量,默认15","required":false,"schema":{"type":"integer","format":"int32","default":15}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DigitalStaffCustomerTodoDto"}}}}}}}},"/api/{tenant}/console/chat/digitalStaff/{digitalStaffId}/customer/list":{"get":{"tags":["chat-digital-staff-customer-console-controller"],"summary":"查询指定数字员工关联的聚合聊天客户列表","operationId":"digitalStaffCustomerList","parameters":[{"name":"digitalStaffId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"nameLike","in":"query","required":false,"schema":{"type":"string"}},{"name":"contactIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"states","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"platform","in":"query","required":false,"schema":{"type":"string","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]}},{"name":"pageIndex","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"contactViewId","in":"query","required":false,"schema":{"type":"string"}},{"name":"tagIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"pinned","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"contactViewType","in":"query","required":false,"schema":{"type":"string","enum":["TOADY_ADD","LAST_7_DAYS_ACTIVE","PENDING_FOLLOW_UP"]}},{"name":"lastMsgTime","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactDto"}}}}}}},"/api/{tenant}/console/chat/digitalStaff/{digitalStaffId}/customer/listExtended":{"get":{"tags":["chat-digital-staff-customer-console-controller"],"summary":"查询指定数字员工关联的客户列表(包含客户画像,标签)","operationId":"digitalStaffCustomerListExtended","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"digitalStaffId","in":"path","required":true,"schema":{"type":"string"}},{"name":"nameLike","in":"query","required":false,"schema":{"type":"string"}},{"name":"phone","in":"query","required":false,"schema":{"type":"string"}},{"name":"tagIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"tagNameLike","in":"query","description":"标签名称模糊查询,与tagIds为AND关系","required":false,"schema":{"type":"string","description":"标签名称模糊查询,与tagIds为AND关系"}},{"name":"startCreatedAt","in":"query","description":"开始创建时间","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","type":"string","description":"开始创建时间"}},{"name":"endCreatedAt","in":"query","description":"截至创建时间","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","type":"string","description":"截至创建时间"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactExtendedDto"}}}}}}},"/api/{tenant}/console/chat/digitalStaff/sync":{"get":{"tags":["数字员工管理"],"summary":"同步数字员工","description":"从数字员工系统同步数据","operationId":"syncChatDigitalStaff","parameters":[{"name":"tenant","in":"path","description":"租户标识","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/chat/digitalStaff/syncFollowUpState":{"get":{"tags":["数字员工管理"],"summary":"刷新跟诊状态","description":"刷新该租户下所有数字员工的跟诊人状态","operationId":"syncFollowUpState","parameters":[{"name":"tenant","in":"path","description":"租户标识","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/chat/digitalStaff/skills":{"get":{"tags":["数字员工管理"],"summary":"查询技能列表","description":"查询数字员工技能列表,支持按名称、类型、状态等过滤","operationId":"queryChatDigitalStaffSkillList","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"current","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"pageIndex","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"skillIds","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"skillNameLike","in":"query","required":false,"schema":{"type":"string"}},{"name":"skillType","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"agentType","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"state","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageListResponseQuerySkillListItem"}}}}}}},"/api/{tenant}/console/chat/digitalStaff/customer/extended/{id}":{"get":{"tags":["chat-digital-staff-customer-console-controller"],"summary":"根据sessionId查询客户详情(包含客户画像,标签)","operationId":"digitalStaffCustomerDetail","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatContactExtendedDto"}}}}}}},"/api/{tenant}/console/chat/digitalStaff/channel/{chatContactId}":{"get":{"tags":["chat-digital-staff-customer-console-controller"],"summary":"查询聚合聊天渠道信息","operationId":"chatChannelInfo","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DigitalStaffChannel"}}}}}}}},"/api/{tenant}/console/chat/digitalStaff/channel/list":{"get":{"tags":["chat-digital-staff-customer-console-controller"],"summary":"查询渠道列表","operationId":"chatChannelList","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatChannel"}}}}}}}},"/api/{tenant}/console/chat/digitalStaff/byAssistant":{"get":{"tags":["数字员工管理"],"summary":"按医助维度查询已授权数字员工","description":"从Redis缓存按医助分组返回已授权的跟诊数字员工列表,支持游标分页","operationId":"listByAssistant","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"assistantId","in":"query","description":"医助ID,不填返回全部医助","required":false,"schema":{"type":"string"}},{"name":"keyword","in":"query","description":"医助姓名模糊查询关键词","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"游标:上一页最后一个数字员工的数据库主键,用于翻页","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"size","in":"query","description":"每页大小,默认20","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssistantDigitalStaffView"}}}}}}}},"/api/{tenant}/console/chat/digitalStaff/authorized":{"get":{"tags":["数字员工管理"],"summary":"分页查询已授权数字员工","description":"分页查询当前登录人已授权访问的数字员工列表,包含头像和描述信息","operationId":"pageAuthorizedDigitalStaff","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyword","in":"query","description":"关键词搜索","required":false,"schema":{"type":"string"}},{"name":"followUpState","in":"query","description":"是否有跟诊人:1=有跟诊,0=无跟诊","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"ids","in":"query","description":"按ids批量查询","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatDigitalStaffDto"}}}}}}},"/api/{tenant}/console/chat/customer/customerInfo/{id}":{"get":{"tags":["chat-customer-console-controller"],"operationId":"getCustomerInfo","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerDto"}}}}}}},"/api/{tenant}/console/chat/contact/way/{id}/generateQrCode":{"get":{"tags":["chat-contact-way-console-controller"],"summary":"生成本地二维码图片","operationId":"generateQrCode","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/console/chat/contact/sidebar/{chatContactId}/patient-consume":{"get":{"tags":["chat-contact-sidebar-console-controller"],"summary":"查询客户消费动态","description":"根据chatContactId查询患者消费记录列表","operationId":"getPatientConsume","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"分页大小","required":false,"schema":{"type":"integer","description":"分页大小","format":"int32","default":10}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PatientConsumeItem"}}}}}}}},"/api/{tenant}/console/chat/contact/sidebar/{chatContactId}/medical-daily":{"get":{"tags":["chat-contact-sidebar-console-controller"],"summary":"查询患者医疗日常列表","description":"根据chatContactId或chatCustomerId查询患者医疗日常列表","operationId":"getMedicalDaily","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoMedicalDailyDto"}}}}}}},"/api/{tenant}/console/chat/contact/sidebar/{chatContactId}/customer-sendImgList":{"get":{"tags":["chat-contact-sidebar-console-controller"],"summary":"获取客户档案(聊天图片)列表","operationId":"customerSendImgList","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"startCreatedAt","in":"query","description":"起始时间:yyyy-MM-dd HH:mm:ss","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","type":"string","description":"起始时间:yyyy-MM-dd HH:mm:ss"}},{"name":"endCreatedAt","in":"query","description":"截至时间:yyyy-MM-dd HH:mm:ss","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","type":"string","description":"截至时间:yyyy-MM-dd HH:mm:ss"}},{"name":"chatSessionIds","in":"query","description":"会话id","required":false,"schema":{"uniqueItems":true,"type":"array","description":"会话id","items":{"type":"string","description":"会话id"}}},{"name":"chatDigitalStaffId","in":"query","description":"数字员工id","required":false,"schema":{"type":"string","description":"数字员工id"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatMessageCombinedDto"}}}}}}},"/api/{tenant}/console/chat/contact/sidebar/{chatContactId}/customer-reportList":{"get":{"tags":["chat-contact-sidebar-console-controller"],"summary":"获取客户任务(问卷)列表","operationId":"customerReportList","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"startCreatedAt","in":"query","description":"起始时间:yyyy-MM-dd HH:mm:ss","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","type":"string","description":"起始时间:yyyy-MM-dd HH:mm:ss"}},{"name":"endCreatedAt","in":"query","description":"截至时间:yyyy-MM-dd HH:mm:ss","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","type":"string","description":"截至时间:yyyy-MM-dd HH:mm:ss"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Response"}}}}}}},"/api/{tenant}/console/chat/contact/sidebar/{chatContactId}/customer-dynamic":{"get":{"tags":["chat-contact-sidebar-console-controller"],"summary":"获取客户动态","operationId":"customerDynamic","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactDynamicDto"}}}}}}},"/api/{tenant}/console/chat/contact/sidebar/{chatContactId}/config":{"get":{"tags":["chat-contact-sidebar-console-controller"],"summary":"获取侧边栏配置","description":"根据租户返回侧边栏配置列表","operationId":"getSidebarConfig","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatDigitalStaffId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SidebarConfigDto"}}}}}}}},"/api/{tenant}/console/chat/contact/internal":{"get":{"tags":["chat-contact-console-controller"],"summary":"获取内部联系人列表","operationId":"pageInternalChatContact","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatStaffId","in":"query","description":"员工id","required":false,"schema":{"type":"string","description":"员工id"}},{"name":"chatDigitalStaffId","in":"query","description":"数字员工id","required":false,"schema":{"type":"string","description":"数字员工id"}},{"name":"lastMsgTime","in":"query","description":"最新消息时间","required":false,"schema":{"type":"string","description":"最新消息时间"}},{"name":"keyword","in":"query","description":"关键词","required":false,"schema":{"type":"string","description":"关键词"}},{"name":"contactIds","in":"query","description":"联系人id","required":false,"schema":{"uniqueItems":true,"type":"array","description":"联系人id","items":{"type":"string","description":"联系人id"}}},{"name":"tagIds","in":"query","description":"标签id","required":false,"schema":{"uniqueItems":true,"type":"array","description":"标签id","items":{"type":"string","description":"标签id"}}},{"name":"contactViewId","in":"query","description":"视图id","required":false,"schema":{"type":"string","description":"视图id"}},{"name":"chatChannelIds","in":"query","description":"渠道id,or","required":false,"schema":{"uniqueItems":true,"type":"array","description":"渠道id,or","items":{"type":"string","description":"渠道id,or"}}},{"name":"platform","in":"query","description":"平台","required":false,"schema":{"type":"string","description":"平台","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]}},{"name":"pinned","in":"query","description":"是否置顶","required":false,"schema":{"type":"boolean","description":"是否置顶"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactDto"}}}}}}},"/api/{tenant}/console/chat/contact/external":{"get":{"tags":["chat-contact-console-controller"],"summary":"获取联系人客户列表","operationId":"pageChatContact","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatStaffId","in":"query","description":"员工id","required":false,"schema":{"type":"string","description":"员工id"}},{"name":"chatDigitalStaffId","in":"query","description":"数字员工id","required":false,"schema":{"type":"string","description":"数字员工id"}},{"name":"lastMsgTime","in":"query","description":"最新消息时间","required":false,"schema":{"type":"string","description":"最新消息时间"}},{"name":"keyword","in":"query","description":"关键词","required":false,"schema":{"type":"string","description":"关键词"}},{"name":"contactIds","in":"query","description":"联系人id","required":false,"schema":{"uniqueItems":true,"type":"array","description":"联系人id","items":{"type":"string","description":"联系人id"}}},{"name":"tagIds","in":"query","description":"标签id","required":false,"schema":{"uniqueItems":true,"type":"array","description":"标签id","items":{"type":"string","description":"标签id"}}},{"name":"contactViewId","in":"query","description":"视图id","required":false,"schema":{"type":"string","description":"视图id"}},{"name":"chatChannelIds","in":"query","description":"渠道id,or","required":false,"schema":{"uniqueItems":true,"type":"array","description":"渠道id,or","items":{"type":"string","description":"渠道id,or"}}},{"name":"platform","in":"query","description":"平台","required":false,"schema":{"type":"string","description":"平台","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]}},{"name":"pinned","in":"query","description":"是否置顶","required":false,"schema":{"type":"boolean","description":"是否置顶"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactDto"}}}}}}},"/api/{tenant}/console/chat/contact/external/{chatContactId}/service-status":{"get":{"tags":["chat-contact-console-controller"],"summary":"获取会话服务状态","operationId":"getSessionServiceStatus","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatDigitalStaffId","in":"query","description":"数字员工ID","required":true,"schema":{"type":"string","description":"数字员工ID"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SessionServiceStatusDto"}}}}}}},"/api/{tenant}/console/chat/contact/count-by-last-state":{"get":{"tags":["chat-contact-console-controller"],"summary":"根据场景码值(lastState)获取当前联系人数","operationId":"countChatContactByLastState","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"lastState","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"integer","format":"int64"}}}}}}},"/api/{tenant}/console/chat/channel/platform":{"get":{"tags":["chat-channel-console-controller"],"summary":"获取租户开放的平台列表","operationId":"listChatChannelPlatform","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatChannelPlatformDto"}}}}}}}},"/api/{tenant}/client/chat/{chatContactId}/message":{"get":{"tags":["chat-message-client-controller"],"summary":"获取客戶聊天记录","operationId":"listClientContactMessage","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatChannelIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"startMsgTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"endMsgTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"ids","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"chatSessionIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatMessageDto"}}}}}}},"/api/{tenant}/client/chat/sse/connect":{"get":{"tags":["chat-sse-client-controller"],"summary":"客户端 SSE 连接","operationId":"clientChatSseConnect","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SseEmitter"}}}}}}},"/api/{tenant}/client/chat/contact/{chatContactId}/":{"get":{"tags":["chat-contact-client-controller"],"summary":"获取聊天联系人信息(包含员工信息)","operationId":"getClientChatContactInfo","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ChatContactInfo"}}}}}}},"/api/webhooks/{tenant}/v1/chat/message/test":{"get":{"tags":["chat-message-controller"],"operationId":"test","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"content","in":"query","required":true,"schema":{"type":"string"}},{"name":"ownerUserId","in":"query","required":true,"schema":{"type":"string"}},{"name":"senderId","in":"query","required":true,"schema":{"type":"string"}},{"name":"receiverId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/chat/message/test":{"get":{"tags":["chat-message-controller"],"operationId":"test_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"content","in":"query","required":true,"schema":{"type":"string"}},{"name":"ownerUserId","in":"query","required":true,"schema":{"type":"string"}},{"name":"senderId","in":"query","required":true,"schema":{"type":"string"}},{"name":"receiverId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/{tenant}/v1/chat/message":{"get":{"tags":["chat-message-controller"],"summary":"获取聊天记录","operationId":"listContactsMessageV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatChannelId","in":"query","description":"聊天渠道ID","required":false,"schema":{"type":"string","description":"聊天渠道ID"}},{"name":"chatContactId","in":"query","description":"聊天联系人ID","required":false,"schema":{"type":"string","description":"聊天联系人ID"}},{"name":"chatStaffId","in":"query","description":"聚合聊天号主id","required":false,"schema":{"type":"string","description":"聚合聊天号主id"}},{"name":"chatCustomerId","in":"query","description":"聊天客户ID","required":false,"schema":{"type":"string","description":"聊天客户ID"}},{"name":"startMsgTime","in":"query","description":"开始时间","required":false,"schema":{"type":"string","description":"开始时间"}},{"name":"endMsgTime","in":"query","description":"结束时间","required":false,"schema":{"type":"string","description":"结束时间"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatMessageDto"}}}}}}},"/api/webhooks/{tenant}/v1/chat/message":{"get":{"tags":["chat-message-controller"],"summary":"获取聊天记录","operationId":"listContactsMessageV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatChannelId","in":"query","description":"聊天渠道ID","required":false,"schema":{"type":"string","description":"聊天渠道ID"}},{"name":"chatContactId","in":"query","description":"聊天联系人ID","required":false,"schema":{"type":"string","description":"聊天联系人ID"}},{"name":"chatStaffId","in":"query","description":"聚合聊天号主id","required":false,"schema":{"type":"string","description":"聚合聊天号主id"}},{"name":"chatCustomerId","in":"query","description":"聊天客户ID","required":false,"schema":{"type":"string","description":"聊天客户ID"}},{"name":"startMsgTime","in":"query","description":"开始时间","required":false,"schema":{"type":"string","description":"开始时间"}},{"name":"endMsgTime","in":"query","description":"结束时间","required":false,"schema":{"type":"string","description":"结束时间"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatMessageDto"}}}}}}},"/api/{tenant}/v1/chat/contact/{chatContactId}/customerInfo":{"get":{"tags":["chat-contact-controller"],"operationId":"getContactCustomerInfo","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContactCustomerInfoResponse"}}}}}}},"/api/webhooks/{tenant}/v1/chat/contact/{chatContactId}/customerInfo":{"get":{"tags":["chat-contact-controller"],"operationId":"getContactCustomerInfo_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContactCustomerInfoResponse"}}}}}}},"/api/webhooks/{tenant}/v1/chat/contact/{chatContactId}/contactWayAndStaffInfo":{"get":{"tags":["chat-contact-controller"],"operationId":"getContactWayAndStaffInfo","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatDigitalStaffId","in":"query","description":"数字员工ID(可选)","required":false,"schema":{"type":"string","description":"数字员工ID(可选)"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContactWayAndStaffInfoResponse"}}}}}}},"/api/{tenant}/v1/chat/contact/{chatContactId}/contactWayAndStaffInfo":{"get":{"tags":["chat-contact-controller"],"operationId":"getContactWayAndStaffInfo_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatDigitalStaffId","in":"query","description":"数字员工ID(可选)","required":false,"schema":{"type":"string","description":"数字员工ID(可选)"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContactWayAndStaffInfoResponse"}}}}}}},"/api/{tenant}/v1/chat/contact/page":{"get":{"tags":["chat-contact-controller"],"operationId":"pageChatContactsV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatDigitalStaffId","in":"query","description":"数字员工ID","required":false,"schema":{"type":"string","description":"数字员工ID"}},{"name":"chatContactId","in":"query","description":"指定联系人","required":false,"schema":{"type":"string","description":"指定联系人"}},{"name":"chatStaffId","in":"query","description":"聚合聊天号主id","required":false,"schema":{"type":"string","description":"聚合聊天号主id"}},{"name":"startLastMsgTime","in":"query","description":"最后沟通时间,毫秒时间戳:开始","required":false,"schema":{"type":"integer","description":"最后沟通时间,毫秒时间戳:开始","format":"int64"}},{"name":"endLastMsgTime","in":"query","description":"最后沟通时间,毫秒时间戳:截至","required":false,"schema":{"type":"integer","description":"最后沟通时间,毫秒时间戳:截至","format":"int64"}},{"name":"state","in":"query","description":"场景码state参数,按ChatSession.state过滤","required":false,"schema":{"type":"string","description":"场景码state参数,按ChatSession.state过滤"}},{"name":"startCreatedAt","in":"query","description":"联系人创建时间:开始","required":false,"schema":{"type":"string","description":"联系人创建时间:开始","format":"date-time"}},{"name":"endCreatedAt","in":"query","description":"联系人创建时间:截至","required":false,"schema":{"type":"string","description":"联系人创建时间:截至","format":"date-time"}},{"name":"startCustomerActiveTime","in":"query","description":"客户活跃时间,毫秒时间戳:开始","required":false,"schema":{"type":"integer","description":"客户活跃时间,毫秒时间戳:开始","format":"int64"}},{"name":"endCustomerActiveTime","in":"query","description":"客户活跃时间,毫秒时间戳:截至","required":false,"schema":{"type":"integer","description":"客户活跃时间,毫秒时间戳:截至","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactDto"}}}}}}},"/api/webhooks/{tenant}/v1/chat/contact/page":{"get":{"tags":["chat-contact-controller"],"operationId":"pageChatContactsV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatDigitalStaffId","in":"query","description":"数字员工ID","required":false,"schema":{"type":"string","description":"数字员工ID"}},{"name":"chatContactId","in":"query","description":"指定联系人","required":false,"schema":{"type":"string","description":"指定联系人"}},{"name":"chatStaffId","in":"query","description":"聚合聊天号主id","required":false,"schema":{"type":"string","description":"聚合聊天号主id"}},{"name":"startLastMsgTime","in":"query","description":"最后沟通时间,毫秒时间戳:开始","required":false,"schema":{"type":"integer","description":"最后沟通时间,毫秒时间戳:开始","format":"int64"}},{"name":"endLastMsgTime","in":"query","description":"最后沟通时间,毫秒时间戳:截至","required":false,"schema":{"type":"integer","description":"最后沟通时间,毫秒时间戳:截至","format":"int64"}},{"name":"state","in":"query","description":"场景码state参数,按ChatSession.state过滤","required":false,"schema":{"type":"string","description":"场景码state参数,按ChatSession.state过滤"}},{"name":"startCreatedAt","in":"query","description":"联系人创建时间:开始","required":false,"schema":{"type":"string","description":"联系人创建时间:开始","format":"date-time"}},{"name":"endCreatedAt","in":"query","description":"联系人创建时间:截至","required":false,"schema":{"type":"string","description":"联系人创建时间:截至","format":"date-time"}},{"name":"startCustomerActiveTime","in":"query","description":"客户活跃时间,毫秒时间戳:开始","required":false,"schema":{"type":"integer","description":"客户活跃时间,毫秒时间戳:开始","format":"int64"}},{"name":"endCustomerActiveTime","in":"query","description":"客户活跃时间,毫秒时间戳:截至","required":false,"schema":{"type":"integer","description":"客户活跃时间,毫秒时间戳:截至","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatContactDto"}}}}}}},"/api/webhooks/{tenant}/v1/chat/contact/list":{"get":{"tags":["chat-contact-controller"],"operationId":"listChatContacts","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactIds","in":"query","description":"联系人ID列表","required":true,"schema":{"uniqueItems":true,"type":"array","description":"联系人ID列表","items":{"type":"string","description":"联系人ID列表"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactDto"}}}}}}}},"/api/{tenant}/v1/chat/contact/list":{"get":{"tags":["chat-contact-controller"],"operationId":"listChatContacts_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"chatContactIds","in":"query","description":"联系人ID列表","required":true,"schema":{"uniqueItems":true,"type":"array","description":"联系人ID列表","items":{"type":"string","description":"联系人ID列表"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactDto"}}}}}}}},"/api/{tenant}/v1/chat/contact/findByWorkWeChatInfo":{"get":{"tags":["chat-contact-controller"],"operationId":"findByWorkWeChatInfo","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"query","description":"企微用户ID(系统内部ID,对应 padWorkUser/ntWorkUser.workWeChatUserId)","required":true,"schema":{"type":"string","description":"企微用户ID(系统内部ID,对应 padWorkUser/ntWorkUser.workWeChatUserId)"}},{"name":"hostingWorkContactUserId","in":"query","description":"托管工作联系人的userId(padWorkContact/ntWorkContact.userId)","required":true,"schema":{"type":"string","description":"托管工作联系人的userId(padWorkContact/ntWorkContact.userId)"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FindByWorkWeChatInfoResponse"}}}}}}},"/api/webhooks/{tenant}/v1/chat/contact/findByWorkWeChatInfo":{"get":{"tags":["chat-contact-controller"],"operationId":"findByWorkWeChatInfo_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"query","description":"企微用户ID(系统内部ID,对应 padWorkUser/ntWorkUser.workWeChatUserId)","required":true,"schema":{"type":"string","description":"企微用户ID(系统内部ID,对应 padWorkUser/ntWorkUser.workWeChatUserId)"}},{"name":"hostingWorkContactUserId","in":"query","description":"托管工作联系人的userId(padWorkContact/ntWorkContact.userId)","required":true,"schema":{"type":"string","description":"托管工作联系人的userId(padWorkContact/ntWorkContact.userId)"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FindByWorkWeChatInfoResponse"}}}}}}},"/api/webhooks/juhebot/health":{"get":{"tags":["pad-work-event-notify-controller"],"operationId":"health","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/webhooks/easywework/health":{"get":{"tags":["easy-we-work-event-notify-controller"],"operationId":"health_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/cpWork/portal/contactMessage/cdn/{messageId}":{"get":{"tags":["work-we-chat-contact-message-portal-controller"],"operationId":"getMessageCdnUrl","parameters":[{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/webhooks/cpWork/portal/contactMessage/cdn/{messageId}":{"get":{"tags":["work-we-chat-contact-message-portal-controller"],"operationId":"getMessageCdnUrl_1","parameters":[{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/webhooks/cpWork/portal/contactInvite/qrcode":{"get":{"tags":["work-we-chat-contact-invite-portal-controller"],"operationId":"getContactInviteQrcodeInfo","parameters":[{"name":"corp","in":"query","required":true,"schema":{"type":"string"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string"}},{"name":"configId","in":"query","required":true,"schema":{"type":"string"}},{"name":"authData","in":"query","required":false,"schema":{"type":"string"}},{"name":"code","in":"query","required":false,"schema":{"type":"string"}},{"name":"busId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ScanQrCodeDto"}}}}}}},"/api/v2/console/padWork/login/qrcode/status":{"get":{"tags":["pad-work-instance-login-v-2-controller"],"summary":"主动查询二维码状态","operationId":"padWorkCheckLoginQrcodeStatusV2","parameters":[{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeCheckStatusV2Response"}}}}}}},"/api/v2/console/padWork/login/qrcode/new":{"get":{"tags":["pad-work-instance-login-v-2-controller"],"summary":"获取登录二维码","operationId":"padWorkLoginQrcodeV2","parameters":[{"name":"key","in":"query","required":false,"schema":{"type":"string"}},{"name":"userId","in":"query","required":false,"schema":{"type":"string"}},{"name":"bridge","in":"query","required":false,"schema":{"type":"string"}},{"name":"region","in":"query","required":false,"schema":{"type":"string"}},{"name":"deviceName","in":"query","description":"设备名称,不传或空白时默认为空格","required":false,"schema":{"type":"string","description":"设备名称,不传或空白时默认为空格"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeV2Response"}}}}}}},"/api/v2/console/padWork/login/qrcode/account":{"get":{"tags":["pad-work-instance-login-v-2-controller"],"summary":"获取二维码绑定的账号信息","operationId":"padWorkGetAccountInfoV2","parameters":[{"name":"key","in":"query","required":false,"schema":{"type":"string"}},{"name":"userId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AccountInfoV2Response"}}}}}}},"/api/{tenant}/v1/workWeChat/corps":{"get":{"tags":["work-we-chat-corp-relate-controller"],"summary":"获取租户关联企微","operationId":"listWorkWeChatCorpRelateV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"likeCorpName","in":"query","description":"模糊查询企业微信名称","required":false,"schema":{"type":"string","description":"模糊查询企业微信名称"}},{"name":"name","in":"query","description":"企业微信标识名称,online_da","required":false,"schema":{"type":"string","description":"企业微信标识名称,online_da"}},{"name":"corpId","in":"query","description":"企业微信id","required":false,"schema":{"type":"string","description":"企业微信id"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatCorpRelateDtoV1"}}}}}}},"/api/v1/{tenant}/workWeChat/corps":{"get":{"tags":["work-we-chat-corp-relate-controller"],"summary":"获取租户关联企微","operationId":"listWorkWeChatCorpRelateV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"likeCorpName","in":"query","description":"模糊查询企业微信名称","required":false,"schema":{"type":"string","description":"模糊查询企业微信名称"}},{"name":"name","in":"query","description":"企业微信标识名称,online_da","required":false,"schema":{"type":"string","description":"企业微信标识名称,online_da"}},{"name":"corpId","in":"query","description":"企业微信id","required":false,"schema":{"type":"string","description":"企业微信id"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatCorpRelateDtoV1"}}}}}}},"/api/v1/{tenant}/workWeChat/contact/message/sync":{"get":{"tags":["work-we-chat-contact-message-controller"],"summary":"获取同步聊天记录给wework","operationId":"listContactsMessageSyncV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","description":"企业微信标识名称:online_da","required":true,"schema":{"type":"string","description":"企业微信标识名称:online_da"}},{"name":"startMsgTime","in":"query","description":"记录时间,开始时间,yyyy-MM-dd HH:mm:ss","required":true,"schema":{"type":"string","description":"记录时间,开始时间,yyyy-MM-dd HH:mm:ss"}},{"name":"endMsgTime","in":"query","description":"记录时间,截至时间,yyyy-MM-dd HH:mm:ss","required":true,"schema":{"type":"string","description":"记录时间,截至时间,yyyy-MM-dd HH:mm:ss"}},{"name":"internalUserId","in":"query","description":"企业微信内部员工userId","required":false,"schema":{"type":"string","description":"企业微信内部员工userId"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatContactMessageSyncDtoV1"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/message/sync":{"get":{"tags":["work-we-chat-contact-message-controller"],"summary":"获取同步聊天记录给wework","operationId":"listContactsMessageSyncV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","description":"企业微信标识名称:online_da","required":true,"schema":{"type":"string","description":"企业微信标识名称:online_da"}},{"name":"startMsgTime","in":"query","description":"记录时间,开始时间,yyyy-MM-dd HH:mm:ss","required":true,"schema":{"type":"string","description":"记录时间,开始时间,yyyy-MM-dd HH:mm:ss"}},{"name":"endMsgTime","in":"query","description":"记录时间,截至时间,yyyy-MM-dd HH:mm:ss","required":true,"schema":{"type":"string","description":"记录时间,截至时间,yyyy-MM-dd HH:mm:ss"}},{"name":"internalUserId","in":"query","description":"企业微信内部员工userId","required":false,"schema":{"type":"string","description":"企业微信内部员工userId"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatContactMessageSyncDtoV1"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/message/ids":{"get":{"tags":["work-we-chat-contact-message-controller"],"summary":"获取聊天记录根据ids","operationId":"listContactsMessageByIdsV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"ids","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatContactMessageDtoV1"}}}}}}}},"/api/v1/{tenant}/workWeChat/contact/message/ids":{"get":{"tags":["work-we-chat-contact-message-controller"],"summary":"获取聊天记录根据ids","operationId":"listContactsMessageByIdsV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"ids","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatContactMessageDtoV1"}}}}}}}},"/api/v1/{tenant}/workWeChat/contact/message/groupContact/list":{"get":{"tags":["work-we-chat-contact-message-controller"],"summary":"获取会话数量,根据lastState","operationId":"listGroupContactByLastStateV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"states","in":"query","required":true,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"startMsgTime","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"endMsgTime","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoGroupContactByLastStateDtoV1"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/message/groupContact/list":{"get":{"tags":["work-we-chat-contact-message-controller"],"summary":"获取会话数量,根据lastState","operationId":"listGroupContactByLastStateV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"states","in":"query","required":true,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"startMsgTime","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"endMsgTime","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoGroupContactByLastStateDtoV1"}}}}}}},"/api/v1/{tenant}/workWeChat/contact/message/groupContact/count":{"get":{"tags":["work-we-chat-contact-message-controller"],"summary":"获取会话数量,根据lastState","operationId":"countGroupContactByLastStateV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"states","in":"query","required":true,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"startMsgTime","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"endMsgTime","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"integer","format":"int64"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/message/groupContact/count":{"get":{"tags":["work-we-chat-contact-message-controller"],"summary":"获取会话数量,根据lastState","operationId":"countGroupContactByLastStateV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"states","in":"query","required":true,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"startMsgTime","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"endMsgTime","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"integer","format":"int64"}}}}}}},"/api/v1/{tenant}/workWeChat/contact/message":{"get":{"tags":["work-we-chat-contact-message-controller"],"summary":"获取聊天记录","operationId":"listContactsMessageV1_2","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","description":"企业微信标识名称:online_da","required":true,"schema":{"type":"string","description":"企业微信标识名称:online_da"}},{"name":"internalUserId","in":"query","description":"企业微信内部员工userId","required":true,"schema":{"type":"string","description":"企业微信内部员工userId"}},{"name":"externalUserId","in":"query","description":"企业微信外部客户userId","required":true,"schema":{"type":"string","description":"企业微信外部客户userId"}},{"name":"startMsgTime","in":"query","description":"记录时间,开始时间,时间戳毫秒","required":false,"schema":{"type":"string","description":"记录时间,开始时间,时间戳毫秒"}},{"name":"endMsgTime","in":"query","description":"记录时间,截至时间,时间戳毫秒","required":false,"schema":{"type":"string","description":"记录时间,截至时间,时间戳毫秒"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatContactMessageDtoV1"}}}}}}},"/api/{tenant}/v1/workWeChat/contact/message":{"get":{"tags":["work-we-chat-contact-message-controller"],"summary":"获取聊天记录","operationId":"listContactsMessageV1_3","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","description":"企业微信标识名称:online_da","required":true,"schema":{"type":"string","description":"企业微信标识名称:online_da"}},{"name":"internalUserId","in":"query","description":"企业微信内部员工userId","required":true,"schema":{"type":"string","description":"企业微信内部员工userId"}},{"name":"externalUserId","in":"query","description":"企业微信外部客户userId","required":true,"schema":{"type":"string","description":"企业微信外部客户userId"}},{"name":"startMsgTime","in":"query","description":"记录时间,开始时间,时间戳毫秒","required":false,"schema":{"type":"string","description":"记录时间,开始时间,时间戳毫秒"}},{"name":"endMsgTime","in":"query","description":"记录时间,截至时间,时间戳毫秒","required":false,"schema":{"type":"string","description":"记录时间,截至时间,时间戳毫秒"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatContactMessageDtoV1"}}}}}}},"/api/v1/{tenant}/users":{"get":{"tags":["user-relate-controller"],"summary":"查询租户用户列表","operationId":"listUser","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoUserDto"}}}}}}},"/api/v1/{tenant}/users/{userName}/roles":{"get":{"tags":["user-relate-controller"],"summary":"查询租户用户角色信息","operationId":"listUserRoles","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"userName","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserRoleDto"}}}}}}}},"/api/v1/{tenant}/users/listUser":{"get":{"tags":["user-relate-controller"],"summary":"查询租户用户列表","operationId":"listUserV2","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","required":false,"schema":{"type":"string"}},{"name":"userName","in":"query","required":false,"schema":{"type":"string"}},{"name":"phone","in":"query","required":false,"schema":{"type":"string"}},{"name":"email","in":"query","required":false,"schema":{"type":"string"}},{"name":"enabled","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"fullName","in":"query","required":false,"schema":{"type":"string"}},{"name":"phoneLike","in":"query","required":false,"schema":{"type":"string"}},{"name":"userNameLike","in":"query","required":false,"schema":{"type":"string"}},{"name":"emailLike","in":"query","required":false,"schema":{"type":"string"}},{"name":"fullNameLike","in":"query","required":false,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoUserRelateWithUserDto"}}}}}}},"/api/v1/{tenant}/spi/workWeChat/{workWeChatUserId}/contact/getWorkWeChatCustomerId":{"get":{"tags":["work-we-chat-external-contact-spi-controller"],"operationId":"getWorkWeChatCustomerId","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/api/v1/{tenant}/spi/user/chatDesensitize/status":{"get":{"tags":["user-chat-desensitize-controller"],"operationId":"getChatDesensitize","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"userName","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"boolean"}}}}}}},"/api/v1/{tenant}/chat/group":{"get":{"tags":["chat-group-controller"],"operationId":"pageChatGroupV1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","required":false,"schema":{"type":"string"}},{"name":"memberUserId","in":"query","required":false,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"ownerUserId","in":"query","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]}},{"name":"chatStaffId","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatGroupDtoV1"}}}}}}},"/api/{tenant}/v1/chat/group":{"get":{"tags":["chat-group-controller"],"operationId":"pageChatGroupV1_1","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"corpName","in":"query","required":false,"schema":{"type":"string"}},{"name":"memberUserId","in":"query","required":false,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"ownerUserId","in":"query","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]}},{"name":"chatStaffId","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoChatGroupDtoV1"}}}}}}},"/api/v1/workWeChat/user/getWorkWeChatUserById":{"get":{"tags":["work-we-chat-user-controller"],"operationId":"getWorkWeChatUserById","parameters":[{"name":"workWeChatUserId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatUserDto"}}}}}}},"/api/v1/workWeChat/user/getTenantByInternalUserId":{"get":{"tags":["work-we-chat-user-controller"],"operationId":"getTenantByInternalUserId","parameters":[{"name":"corpName","in":"query","required":true,"schema":{"type":"string"}},{"name":"internalUserId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/GetTenantByInternalUserIdDTO"}}}}}}},"/api/v1/workWeChat/user/getByCorpIdAndUserId":{"get":{"tags":["work-we-chat-user-controller"],"operationId":"getByCorpIdAndUserId","parameters":[{"name":"workWeChatCorpId","in":"query","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatUserDto"}}}}}}},"/api/v1/workWeChat/customer/{corpName}":{"get":{"tags":["work-we-chat-customer-controller"],"summary":"获取企微客户信息","operationId":"getWorkWeChatCustomerV1","parameters":[{"name":"corpName","in":"path","required":true,"schema":{"type":"string"}},{"name":"externalUserId","in":"query","description":"客户外部联系人userId","required":false,"schema":{"uniqueItems":true,"type":"array","description":"客户外部联系人userId","items":{"type":"string","description":"客户外部联系人userId"}}},{"name":"chatContactId","in":"query","description":"聚合聊天联系人Id","required":false,"schema":{"uniqueItems":true,"type":"array","description":"聚合聊天联系人Id","items":{"type":"string","description":"聚合聊天联系人Id"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatCustomerDtoV1"}}}}}}},"/api/v1/workWeChat/customer/{corpName}/relate":{"get":{"tags":["work-we-chat-customer-controller"],"summary":"获取企微客户信息","operationId":"getWorkWeChatRelateCustomerV1","parameters":[{"name":"corpName","in":"path","required":true,"schema":{"type":"string"}},{"name":"tenant","in":"query","description":"客户外部联系人userId","required":true,"schema":{"type":"string","description":"客户外部联系人userId"}},{"name":"unionId","in":"query","description":"客户外部联系人unionId","required":false,"schema":{"type":"string","description":"客户外部联系人unionId"}},{"name":"openId","in":"query","description":"渠道openId","required":false,"schema":{"type":"string","description":"渠道openId"}},{"name":"externalUserId","in":"query","description":"客户外部联系人externalUserId","required":false,"schema":{"type":"string","description":"客户外部联系人externalUserId"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatRelateCustomerDtoV1"}}}}}}}},"/api/v1/workWeChat/corp/getByName":{"get":{"tags":["work-we-chat-corp-controller"],"operationId":"getByName","parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatCorpDto"}}}}}}},"/api/v1/workWeChat/corp/getById":{"get":{"tags":["work-we-chat-corp-controller"],"operationId":"getById","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatCorpDto"}}}}}}},"/api/v1/users/{userName}/tenants":{"get":{"tags":["user-controller"],"summary":"查询用户所在租户","operationId":"getUserTenants","parameters":[{"name":"userName","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TenantDto"}}}}}}}},"/api/v1/tenants":{"get":{"tags":["tenant-controller"],"operationId":"listTenant","parameters":[{"name":"nameKeyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"displayNameKeyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"ownerUserId","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoTenantDtoV1"}}}}}}},"/api/v1/monitor/optimistic-lock/stats":{"get":{"tags":["optimistic-lock-monitor-controller"],"operationId":"getStats","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OptimisticLockStats"}}}}}}},"/api/v1/external/jkzl/instance/ai/list":{"get":{"tags":["external-jkzl-nt-work-instance-controller"],"summary":"获取AI列表","operationId":"listAi","parameters":[{"name":"pageIndex","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"pageSize","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoAiListDTO"}}}}}}},"/api/console/workWeChat/user":{"get":{"tags":["work-we-chat-user-console-controller"],"operationId":"listWorkWeChatUser","parameters":[{"name":"workWeChatCorpId","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"mobile","in":"query","required":false,"schema":{"type":"string"}},{"name":"userId","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatUserDto"}}}}}}},"/api/console/workWeChat/user/{id}":{"get":{"tags":["work-we-chat-user-console-controller"],"operationId":"getWorkWeChatUser","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DoctorServiceByUserIdDto"}}}}}}}},"/api/console/workWeChat/user/{id}/tenantRelate":{"get":{"tags":["work-we-chat-user-console-controller"],"operationId":"getWorkWeUserRelateInfo","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatUserTenantRelateDto"}}}}}}},"/api/console/workWeChat/corps/{name}/sync/internal":{"get":{"tags":["work-we-chat-corp-console-controller"],"operationId":"syncWorkWeChatCorpInternal","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/console/workWeChat/corps/{name}/sync/groupchat":{"get":{"tags":["work-we-chat-corp-console-controller"],"operationId":"syncWorkWeChatCorpGroupChat","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK"}}}},"/api/console/workWeChat/corps/{name}/sync/external":{"get":{"tags":["work-we-chat-corp-console-controller"],"operationId":"syncWorkWeChatCorpExternal","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK"}}}},"/api/console/workWeChat/corps/{name}/sync/externalLastState":{"get":{"tags":["work-we-chat-corp-console-controller"],"operationId":"syncWorkWeChatCorpExternalLastState","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK"}}}},"/api/console/workWeChat/corps/{name}/sync/external/{externalUserId}":{"get":{"tags":["work-we-chat-corp-console-controller"],"operationId":"syncWorkWeChatCorpExternalByUserId","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"externalUserId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/console/workWeChat/corps/{name}/getUserListByDepartId/{departId}":{"get":{"tags":["work-we-chat-corp-console-controller"],"operationId":"getUserListByDepartId","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"departId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WxCpUser"}}}}}}}},"/api/console/workWeChat/corps/{name}/getDepartList":{"get":{"tags":["work-we-chat-corp-console-controller"],"operationId":"getDepartList","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WxCpDepart"}}}}}}}},"/api/console/workWeChat/corps/{id}":{"get":{"tags":["work-we-chat-corp-console-controller"],"operationId":"getWorkWeChatCorp","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatCorpDto"}}}}}}},"/api/console/workWeChat/corps/{id}/sync/externalAndLastState":{"get":{"tags":["work-we-chat-corp-console-controller"],"operationId":"syncWorkWeChatCorpExternalAndLastState","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"userIds","in":"query","required":true,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK"}}}},"/api/console/workWeChat/activeLicense":{"get":{"tags":["work-we-chat-user-active-license-console-controller"],"operationId":"listActiveLicense","parameters":[{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"workWeChatCorpId","in":"query","required":false,"schema":{"type":"string"}},{"name":"workWeChatUserId","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkWeChatUserActiveLicenseDto"}}}}}}},"/api/console/padWork/login/{tenant}/qrcode/relogin":{"get":{"tags":["pad-work-instance-login-controller"],"summary":"获取重新登录二维码","operationId":"padWorkReLoginQrcode","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"bridge","in":"query","required":false,"schema":{"type":"string"}},{"name":"region","in":"query","required":false,"schema":{"type":"string"}},{"name":"deviceName","in":"query","description":"设备名称,不传或空白时默认为空格","required":false,"schema":{"type":"string","description":"设备名称,不传或空白时默认为空格"}},{"name":"chatContactId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeResponse"}}}}}}},"/api/console/padWork/login/{tenant}/qrcode/new":{"get":{"tags":["pad-work-instance-login-controller"],"summary":"获取新设备登录二维码","operationId":"padWorkLoginQrcodeByTenant","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"bridge","in":"query","required":false,"schema":{"type":"string"}},{"name":"region","in":"query","required":false,"schema":{"type":"string"}},{"name":"deviceName","in":"query","description":"设备名称,不传或空白时默认为空格","required":false,"schema":{"type":"string","description":"设备名称,不传或空白时默认为空格"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeResponse"}}}}}}},"/api/console/padWork/login/qrcode/{uuid}/status":{"get":{"tags":["pad-work-instance-login-controller"],"summary":"获获二维码状态","operationId":"padWorkQrcodeStatus","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeStatusResponse"}}}}},"deprecated":true}},"/api/console/padWork/login/qrcode/{uuid}/refresh":{"get":{"tags":["pad-work-instance-login-controller"],"summary":"刷新设备登录二维码","operationId":"padWorkLoginQrcodeRefresh","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeResponse"}}}}}}},"/api/console/padWork/login/qrcode/{uuid}/login/status":{"get":{"tags":["pad-work-instance-login-controller"],"summary":"获取登录状态","operationId":"padWorkLoginQrcodeStatus","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeLoginStatusResponse"}}}}}}},"/api/console/padWork/login/qrcode/{uuid}/account":{"get":{"tags":["pad-work-instance-login-controller"],"summary":"获取二维码绑定的账号信息","operationId":"padWorkGetAccountInfo","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AccountInfoResponse"}}}}}}},"/api/console/padWork/login/qrcode/{guid}/free":{"get":{"tags":["pad-work-instance-login-controller"],"summary":"释放设备","operationId":"padWorkLoginQrcodeFree","parameters":[{"name":"guid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeFreeResponse"}}}}}}},"/api/console/padWork/login/qrcode/reverify":{"get":{"tags":["pad-work-instance-login-controller"],"summary":"获取设备二次验证二维码","operationId":"padWorkLoginReVerifyQrcode","parameters":[{"name":"guid","in":"query","required":false,"schema":{"type":"string"}},{"name":"userId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeReVerifyResponse"}}}}}}},"/api/console/padWork/login/qrcode/new":{"get":{"tags":["pad-work-instance-login-controller"],"summary":"获取新设备登录二维码","operationId":"padWorkLoginQrcode","parameters":[{"name":"bridge","in":"query","required":false,"schema":{"type":"string"}},{"name":"region","in":"query","required":false,"schema":{"type":"string"}},{"name":"deviceName","in":"query","description":"设备名称,不传或空白时默认为空格","required":false,"schema":{"type":"string","description":"设备名称,不传或空白时默认为空格"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeResponse"}}}}}}},"/api/console/padWork/login/qrcode/device/{guid}":{"get":{"tags":["pad-work-instance-login-controller"],"summary":"获取指定设备登录二维码","operationId":"padWorkLoginQrcodeByDevice","parameters":[{"name":"guid","in":"path","required":true,"schema":{"type":"string"}},{"name":"bridge","in":"query","required":false,"schema":{"type":"string"}},{"name":"region","in":"query","required":false,"schema":{"type":"string"}},{"name":"deviceName","in":"query","description":"设备名称,不传或空白时默认为空格","required":false,"schema":{"type":"string","description":"设备名称,不传或空白时默认为空格"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginQrcodeResponse"}}}}}}},"/api/console/padWork/instance/{hashId}":{"get":{"tags":["pad-work-instance-console-controller"],"summary":"获取实例详情","description":"根据HashID获取实例详细信息","operationId":"getInstance","parameters":[{"name":"hashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PadWorkInstanceDto"}}}}}}},"/api/console/padWork/instance/list":{"get":{"tags":["pad-work-instance-console-controller"],"summary":"查询实例列表","description":"分页查询PadWork实例列表,支持多条件筛选","operationId":"listInstances","parameters":[{"name":"pageIndex","in":"query","description":"页码","required":true,"schema":{"type":"integer","description":"页码","format":"int32","example":0},"example":0},{"name":"pageSize","in":"query","description":"每页大小","required":true,"schema":{"type":"integer","description":"每页大小","format":"int32","example":10},"example":10},{"name":"accountName","in":"query","description":"账号名称","required":false,"schema":{"type":"string","description":"账号名称"}},{"name":"enterpriseName","in":"query","description":"企业名称","required":false,"schema":{"type":"string","description":"企业名称"}},{"name":"status","in":"query","description":"实例状态","required":false,"schema":{"type":"string","description":"实例状态","example":"ONLINE","enum":["ONLINE","OFFLINE"]},"example":"ONLINE"},{"name":"deviceStatus","in":"query","description":"设备状态","required":false,"schema":{"type":"string","description":"设备状态","example":"BOUND","enum":["FREE","BOUND","IN_USE"]},"example":"BOUND"}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoPadWorkInstanceDto"}}}}}}},"/api/console/padWork/deviceRecycle/list":{"get":{"tags":["pad-work-device-recycle-console-controller"],"summary":"查询设备回收记录","description":"按手机号或用户昵称模糊查询设备回收记录,支持分页","operationId":"listDeviceRecycleRecords","parameters":[{"name":"pageIndex","in":"query","description":"页码","required":true,"schema":{"type":"integer","description":"页码","format":"int32","example":0},"example":0},{"name":"pageSize","in":"query","description":"每页大小","required":true,"schema":{"type":"integer","description":"每页大小","format":"int32","example":10},"example":10},{"name":"keyword","in":"query","description":"关键词(手机号或用户昵称模糊匹配)","required":false,"schema":{"type":"string","description":"关键词(手机号或用户昵称模糊匹配)"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoDeviceRecycleDto"}}}}}}},"/api/console/padWork/device/statistics":{"get":{"tags":["pad-work-device-console-controller"],"summary":"获取设备统计","description":"获取各状态设备的数量统计","operationId":"getStatistics","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DeviceStatistics"}}}}}}},"/api/console/padWork/device/place/options":{"get":{"tags":["pad-work-device-console-controller"],"summary":"地名候选项搜索","description":"根据地名关键词搜索省级/地级行政区候选项","operationId":"searchPlaceOptions","parameters":[{"name":"stName","in":"query","required":true,"schema":{"type":"string"}},{"name":"placeTypeCode","in":"query","description":"21300 地级行政区 21200省级行政区","required":false,"schema":{"type":"string","description":"21300 地级行政区 21200省级行政区"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlaceOption"}}}}}}}},"/api/console/padWork/device/list":{"get":{"tags":["pad-work-device-console-controller"],"summary":"查询设备列表","description":"分页查询PadWork设备列表,支持按状态筛选","operationId":"listDevices","parameters":[{"name":"pageIndex","in":"query","description":"页码","required":true,"schema":{"type":"integer","description":"页码","format":"int32","example":0},"example":0},{"name":"pageSize","in":"query","description":"每页大小","required":true,"schema":{"type":"integer","description":"每页大小","format":"int32","example":10},"example":10},{"name":"deviceId","in":"query","description":"设备ID(guid)","required":false,"schema":{"type":"string","description":"设备ID(guid)"}},{"name":"deviceStatus","in":"query","description":"设备状态","required":false,"schema":{"type":"string","description":"设备状态","example":"BOUND","enum":["FREE","BOUND","IN_USE"]},"example":"BOUND"},{"name":"status","in":"query","description":"在线状态(占位,前端兼容)","required":false,"schema":{"type":"string","description":"在线状态(占位,前端兼容)","example":"ONLINE"},"example":"ONLINE"},{"name":"accountName","in":"query","description":"账号名称(占位,前端兼容)","required":false,"schema":{"type":"string","description":"账号名称(占位,前端兼容)"}},{"name":"enterpriseName","in":"query","description":"企业名称(占位,前端兼容)","required":false,"schema":{"type":"string","description":"企业名称(占位,前端兼容)"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoPadWorkDeviceDto"}}}}}}},"/api/console/ntWork/user":{"get":{"tags":["nt-work-user-console-controller"],"operationId":"listNtWorkUser","parameters":[{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"corpName","in":"query","required":false,"schema":{"type":"string"}},{"name":"mobile","in":"query","required":false,"schema":{"type":"string"}},{"name":"corpNameOrShotName","in":"query","required":false,"schema":{"type":"string"}},{"name":"username","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["ONLINE","OFFLINE"]}},{"name":"userIds","in":"query","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}},{"name":"apiUrl","in":"query","required":false,"schema":{"type":"string"}},{"name":"nickname","in":"query","required":false,"schema":{"type":"string"}},{"name":"acctId","in":"query","required":false,"schema":{"type":"string"}},{"name":"corpId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoNtWorkUserDto"}}}}}}},"/api/console/instance/union/list":{"get":{"tags":["instance-union-controller"],"summary":"获取全部实例列表","operationId":"instanceUnionList","parameters":[{"name":"key","in":"query","required":false,"schema":{"type":"string"}},{"name":"apiUrlLike","in":"query","required":false,"schema":{"type":"string"}},{"name":"corpNameLike","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["ONLINE","OFFLINE"]}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"pageIndex","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["PAD_WORK","NT_WORK"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultDtoWorkInstanceInfoDto"}}}}}}},"/api/console/chat/group/{chatGroupId}/member":{"get":{"tags":["chat-group-member-console-controller"],"operationId":"listChatGroupMembers","parameters":[{"name":"chatGroupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["NORMAL","DELETED"]}},{"name":"startJoinTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"endJoinTime","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatGroupMemberDto"}}}}}}}},"/api/{tenant}/console/workWeChat/user/{id}":{"delete":{"tags":["work-we-chat-user-relate-console-controller"],"operationId":"deleteWorkWeChatUserRelate","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatUserRelateDto"}}}}}}},"/api/{tenant}/console/workWeChat/corps/{id}":{"delete":{"tags":["work-we-chat-corp-relate-console-controller"],"operationId":"deleteWorkWeChatCorpRelate","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkWeChatCorpRelateDto"}}}}}}},"/api/{tenant}/console/userChatDesensitize/{id}":{"delete":{"tags":["user-chat-desensitize-console-controller"],"summary":"移除脱敏信息","operationId":"deleteUserChatDesensitize","parameters":[{"name":"tenant","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/webhooks/cpWork/portal/contactInvite/by-config-id":{"delete":{"tags":["work-we-chat-contact-invite-portal-controller"],"operationId":"delContactWay","parameters":[{"name":"corp","in":"query","required":true,"schema":{"type":"string"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string"}},{"name":"configId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WxCpBaseResp"}}}}}}},"/api/v1/workWeChat/tag/{workWeCorpId}/batch":{"delete":{"tags":["work-we-chat-tag-controller"],"summary":"删除企微标签组/标签","operationId":"delete","parameters":[{"name":"workWeCorpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"delIds","in":"query","required":true,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"boolean"}}}}}}},"/api/console/padWork/device/deleteDeviceByGuid":{"delete":{"tags":["pad-work-device-console-controller"],"summary":"删除设备和账号信息","operationId":"deleteDeviceByGuid","parameters":[{"name":"guid","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/console/instance/manage/{workWeChatUserId}":{"delete":{"tags":["instance-manage-controller"],"summary":"删除实例管理信息","operationId":"deleteInstanceManage","parameters":[{"name":"workWeChatUserId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DeleteManageDTO"}}}}}}}},"components":{"schemas":{"CustomerInterventionRuleRequestV1":{"required":["keyword","ruleType","title"],"type":"object","properties":{"contactWayState":{"type":"string","description":"场景码state值"},"contactWayUserId":{"type":"string","description":"场景码企微账号"},"contactWayCorp":{"type":"string","description":"场景码企微标识"},"staffId":{"type":"string","description":"数字员工ID"},"keyword":{"uniqueItems":true,"type":"array","description":"关键词","items":{"type":"string","description":"关键词"}},"aiReplyTemp":{"type":"string","description":"回复文案"},"title":{"type":"string","description":"规则名称"},"ruleType":{"type":"string","description":"规则类型","enum":["DEFAULT","PLAN","SECURE"]},"regular":{"type":"string","description":"正则表达式"},"intention":{"type":"string","description":"意图识别"},"reviewUser":{"type":"boolean","description":"安全类型才有:审查用户内容是否开启"},"reviewAiReply":{"type":"boolean","description":"安全类型才有:审查AI回复内容是否开启"},"skillId":{"type":"string","description":"执行技能ID"},"skillPrompt":{"type":"string","description":"执行技能提示词"},"noticeRobot":{"type":"string","description":"通知机器人"},"noticeTemp":{"type":"string","description":"通知模板"}}},"CustomerInterventionRulesDtoV1":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"keyword":{"type":"array","description":"关键词","items":{"type":"string","description":"关键词"}},"aiReplyTemp":{"type":"string","description":"ai回复模板"},"title":{"type":"string","description":"规则名称"},"ruleType":{"type":"string","description":"规则类型","enum":["DEFAULT","PLAN","SECURE"]},"regular":{"type":"string","description":"正则表达式"},"intention":{"type":"string","description":"意图识别"},"reviewUser":{"type":"boolean","description":"安全类型才有:审查用户内容是否开启"},"reviewAiReply":{"type":"boolean","description":"安全类型才有:审查AI回复内容是否开启"},"skillId":{"type":"string","description":"执行技能ID"},"appointTagId":{"type":"string","description":"指定标签ID"},"skillPrompt":{"type":"string","description":"执行技能提示词"}}},"SceneCodeDefaultDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"hashId":{"type":"string"},"state":{"type":"string"},"stateName":{"type":"string"},"isDefault":{"type":"boolean"}}},"ChatContactsExternalRequest":{"type":"object","properties":{"remark":{"type":"string","description":"客户备注"},"remarkMobiles":{"type":"array","description":"备注手机号","items":{"type":"string","description":"备注手机号"}}}},"ChatContactsExternalDto":{"required":["contactId","createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"contactId":{"type":"string","description":"联系id"},"avatar":{"type":"string","description":"客户头像"},"nickName":{"type":"string","description":"客户昵称"},"remark":{"type":"string","description":"客户备注"},"lastMsgTime":{"type":"string","description":"最后消息时间"},"lastMsgContext":{"type":"string","description":"最后消息内容"},"lastState":{"type":"string","description":"最新state值"},"aiReply":{"type":"boolean","description":"AI回复开关是否开启"},"workWeChatCustomerId":{"type":"string","description":"企微客户id"},"remarkMobiles":{"type":"array","description":"备注手机号","items":{"type":"string","description":"备注手机号"}},"followStatus":{"type":"integer","description":"关系状态 1:正常 2:医助删除客户 3:客户删除医助 4:客户医助互删","format":"int32"},"followStatusTime":{"type":"string","description":"关系状态变更时间","format":"date-time"}}},"PutVariableValueRequest":{"type":"object","properties":{"value":{"type":"object"}}},"VariableDefinitionPayload":{"required":["jsonSchema","name"],"type":"object","properties":{"name":{"maxLength":30,"minLength":0,"type":"string"},"jsonSchema":{"type":"object","additionalProperties":{"type":"object"}}}},"VariableDefinitionDto":{"required":["id","name"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"jsonSchema":{"type":"object","additionalProperties":{"type":"object"}},"createdAt":{"type":"integer","format":"int64"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"}}},"VariableScopePayload":{"required":["name","source"],"type":"object","properties":{"source":{"maxLength":30,"minLength":0,"type":"string"},"name":{"maxLength":30,"minLength":0,"type":"string"},"inferencePrompt":{"maxLength":1500,"minLength":0,"type":"string"},"noInferableVariables":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}},"VariableScopeDto":{"required":["id","name","source"],"type":"object","properties":{"id":{"type":"string"},"source":{"type":"string"},"name":{"type":"string"},"inferencePrompt":{"type":"string"},"noInferableVariables":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"createdAt":{"type":"integer","format":"int64"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"}}},"UpdateUserConversationRequest":{"required":["name"],"type":"object","properties":{"name":{"maxLength":40,"minLength":0,"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"object"}}}},"UserConversationDTO":{"required":["botId","createdAt","id","name","state","userId"],"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"botId":{"type":"string"},"conversationGroupId":{"type":"string"},"name":{"type":"string"},"state":{"type":"string","enum":["PENDING","ACTIVATED","TERMINATED"]},"createdAt":{"type":"integer","format":"int64"},"updatedAt":{"type":"integer","format":"int64"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"object"}}}},"UserConversationGroupPayload":{"required":["name"],"type":"object","properties":{"name":{"maxLength":40,"minLength":0,"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"object"}},"userMetadata":{"type":"object","additionalProperties":{"type":"object"}},"status":{"type":"string","enum":["ACTIVATED","PAUSED"]}}},"UserConversationGroupDTO":{"required":["createdAt","id","name","userId"],"type":"object","properties":{"id":{"maxLength":15,"minLength":0,"type":"string"},"userId":{"maxLength":80,"minLength":0,"type":"string"},"name":{"maxLength":40,"minLength":0,"type":"string"},"createdAt":{"type":"integer","format":"int64"},"updatedAt":{"type":"integer","format":"int64"},"metadata":{"type":"object","additionalProperties":{"type":"object"}},"userMetadata":{"type":"object","additionalProperties":{"type":"object"}},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"status":{"type":"string","enum":["ACTIVATED","PAUSED"]}}},"Condition":{"required":["symbol","title","type"],"type":"object","properties":{"type":{"type":"string","enum":["REMARK","WORK_WE_TAG","CUSTOM_TAG","DIGITAL_STAFF_TAG","INTERVENTION_RULE"]},"title":{"type":"string"},"symbol":{"type":"string","enum":["EQUAL","IN"]},"values":{"type":"array","items":{"$ref":"#/components/schemas/ConditionValue"}}},"description":"条件"},"ConditionValue":{"required":["id","label"],"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}}},"UserChatContactViewRequest":{"required":["conditions","name"],"type":"object","properties":{"name":{"type":"string","description":"视图名称"},"workWeChatUserId":{"type":"string","description":"系统内部的企微用户id"},"conditions":{"type":"array","description":"条件","items":{"$ref":"#/components/schemas/Condition"}},"targetType":{"type":"string","description":"适用对象类型","enum":["WORK_WECHAT_STAFF","DIGITAL_STAFF"]},"targetId":{"type":"string","description":"适用对象ID"}}},"UserChatContactViewDto":{"required":["createdAt","id","name","userId","workWeChatUserId"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"name":{"type":"string","description":"视图名称"},"userId":{"type":"string","description":"平台的userId"},"workWeChatUserId":{"type":"string","description":"系统内部的企微用户id"},"conditions":{"type":"array","description":"条件","items":{"$ref":"#/components/schemas/Condition"}},"targetType":{"type":"string","description":"适用对象类型","enum":["WORK_WECHAT_STAFF","DIGITAL_STAFF"]},"targetId":{"type":"string","description":"适用对象ID"}}},"Authentication":{"required":["name","type"],"type":"object","properties":{"type":{"type":"string","enum":["HEADER"]},"name":{"type":"string"},"value":{"type":"string"}}},"CreateOrUpdateToolApiProviderRequest":{"required":["name","schema"],"type":"object","properties":{"name":{"type":"string"},"title":{"type":"string"},"schema":{"type":"string"},"schemaType":{"type":"string","enum":["OPENAPI"]},"authentication":{"$ref":"#/components/schemas/Authentication"}}},"ToolApiProviderDTO":{"required":["id","name","schema"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"},"schema":{"type":"string"},"schemaType":{"type":"string","enum":["OPENAPI"]},"authentication":{"$ref":"#/components/schemas/Authentication"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"}}},"CustomerTagRuleRequest":{"required":["customTagId","keyword","status","title"],"type":"object","properties":{"title":{"type":"string","description":"规则名称"},"keyword":{"uniqueItems":true,"type":"array","description":"关键词","items":{"type":"string","description":"关键词"}},"customTagId":{"uniqueItems":true,"type":"array","description":"自定义标签","items":{"type":"string","description":"自定义标签"}},"status":{"type":"string","description":"状态","enum":["ENABLE","DISABLE"]}}},"CustomTag":{"type":"object","properties":{"tagId":{"type":"string","description":"标签id"},"tagName":{"type":"string","description":"标签名称"}},"description":"自定义标签"},"CustomerTagRuleDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"title":{"type":"string","description":"规则名称"},"keyword":{"type":"array","description":"关键词","items":{"type":"string","description":"关键词"}},"customTagId":{"type":"array","description":"自定义标签","items":{"type":"string","description":"自定义标签"}},"status":{"type":"string","description":"状态","enum":["ENABLE","DISABLE"]},"customTags":{"type":"array","description":"自定义标签","items":{"$ref":"#/components/schemas/CustomTag"}}}},"CustomerInterventionRuleRequest":{"required":["keyword","noticeRobot","noticeTemp"],"type":"object","properties":{"keyword":{"uniqueItems":true,"type":"array","description":"关键词","items":{"type":"string","description":"关键词"}},"aiReplyTemp":{"type":"string","description":"ai回复模板"},"noticeRobot":{"type":"string","description":"通知机器人"},"noticeTemp":{"type":"string","description":"通知模板"}}},"CustomerInterventionRulesDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"keyword":{"type":"array","description":"关键词","items":{"type":"string","description":"关键词"}},"aiReplyTemp":{"type":"string","description":"ai回复模板"},"noticeTemp":{"type":"string","description":"通知模板"},"noticeRobot":{"type":"string","description":"通知机器人"}}},"ModifyCustomerIntentionRecord":{"type":"object","properties":{"handleStatus":{"type":"string","enum":["PENDING","PROCESSING","FINISHED"]},"handleResult":{"type":"string"}}},"CustomerIntentionRecordDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"senderId":{"type":"string"},"senderName":{"type":"string"},"contactId":{"type":"string"},"messageContent":{"type":"string"},"aiReplyContent":{"type":"string"},"needHuman":{"type":"boolean"},"needHumanReason":{"type":"string"},"handleBy":{"type":"string"},"handleByName":{"type":"string"},"handleAt":{"type":"string","format":"date-time"},"handleStatus":{"type":"string","enum":["PENDING","PROCESSING","FINISHED"]},"handleResult":{"type":"string"},"intentionType":{"type":"string"},"contact":{"type":"string"},"intentionSubType":{"type":"string"},"receiverId":{"type":"string"},"receiverName":{"type":"string"}}},"Action":{"type":"object","properties":{"type":{"type":"string","enum":["AGENT_QUERY"]},"parameters":{"type":"object","additionalProperties":{"type":"object"}}}},"ConversationGroupTriggerPayload":{"required":["action","metadata","name","type"],"type":"object","properties":{"name":{"maxLength":30,"minLength":0,"type":"string"},"description":{"maxLength":150,"minLength":0,"type":"string"},"type":{"type":"string","enum":["TIMED","EVENT"]},"action":{"$ref":"#/components/schemas/Action"},"triggerDelaySeconds":{"type":"integer","format":"int32"},"metadata":{"$ref":"#/components/schemas/TriggerMetadata"},"enabled":{"type":"boolean"}}},"EventCondition":{"type":"object","properties":{"type":{"type":"string"}},"discriminator":{"propertyName":"type"}},"EventMetadata":{"required":["name"],"type":"object","properties":{"name":{"type":"string"},"condition":{"oneOf":[{"$ref":"#/components/schemas/JsonLogicEventCondition"}]}}},"JsonLogicEventCondition":{"type":"object","allOf":[{"$ref":"#/components/schemas/EventCondition"},{"type":"object","properties":{"expression":{"type":"string"}}}]},"TimedMetadata":{"type":"object","properties":{"cronExpression":{"type":"string"},"cronTimezone":{"type":"string"},"executionTime":{"type":"string","format":"date-time"}}},"TriggerMetadata":{"type":"object","properties":{"timed":{"$ref":"#/components/schemas/TimedMetadata"},"event":{"$ref":"#/components/schemas/EventMetadata"},"disableChannel":{"type":"boolean"}}},"ConversationGroupTriggerDto":{"required":["action","createdAt","groupId","id","metadata","name","type"],"type":"object","properties":{"id":{"type":"string"},"groupId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["TIMED","EVENT"]},"action":{"$ref":"#/components/schemas/Action"},"metadata":{"$ref":"#/components/schemas/TriggerMetadata"},"triggerDelaySeconds":{"type":"integer","format":"int32"},"createdAt":{"type":"integer","format":"int64"},"updatedAt":{"type":"integer","format":"int64"},"enabled":{"type":"boolean"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"}}},"ConversationGroupEventDefinitionPayload":{"required":["name"],"type":"object","properties":{"name":{"maxLength":30,"minLength":0,"type":"string"},"title":{"maxLength":30,"minLength":0,"type":"string"},"description":{"maxLength":1500,"minLength":0,"type":"string"},"dataJsonSchema":{"type":"object","additionalProperties":{"type":"object"}},"inferable":{"type":"boolean"}}},"ConversationGroupEventDefinitionDto":{"required":["createdAt","groupId","id","name"],"type":"object","properties":{"groupId":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"dataJsonSchema":{"type":"object","additionalProperties":{"type":"object"}},"inferable":{"type":"boolean"},"createdAt":{"type":"integer","format":"int64"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"}}},"ScriptContentRequestV1":{"required":["categoryId","contentType","msgBody"],"type":"object","properties":{"categoryId":{"maxLength":50,"minLength":0,"type":"string"},"title":{"maxLength":200,"minLength":0,"type":"string"},"contentType":{"type":"string","enum":["text","image","file"]},"msgBody":{"type":"object","additionalProperties":{"type":"object"}},"sortOrder":{"type":"integer","format":"int32"}}},"ScriptContentDtoV1":{"type":"object","properties":{"id":{"type":"string"},"categoryId":{"type":"string"},"title":{"type":"string"},"contentType":{"type":"string","enum":["text","image","file"]},"msgBody":{"type":"object","additionalProperties":{"type":"object"}},"sortOrder":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ScriptCategoryRequestV1":{"required":["name"],"type":"object","properties":{"name":{"maxLength":100,"minLength":0,"type":"string"},"sortOrder":{"type":"integer","format":"int32"},"description":{"maxLength":500,"minLength":0,"type":"string"}}},"ScriptCategoryDtoV1":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"sortOrder":{"type":"integer","format":"int32"},"description":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ChatChannelRequest":{"required":["appId","name","platform"],"type":"object","properties":{"appId":{"type":"string","description":"渠道配置的appId"},"name":{"type":"string","description":"渠道名称"},"platform":{"type":"string","description":"渠道平台","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]},"appName":{"type":"string","description":"appName"},"secret":{"type":"string","description":"渠道密钥"}}},"ChatChannelDto":{"required":["createdAt","id","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string"},"appId":{"type":"string","description":"渠道配置的appId"},"name":{"type":"string","description":"渠道名称"},"platform":{"type":"string","description":"平台","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]},"metadata":{"$ref":"#/components/schemas/Metadata"}}},"Metadata":{"type":"object","properties":{"secret":{"type":"string"},"appName":{"type":"string"}},"description":"其他配置"},"GroupWaySceneCodeDefaultDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"hashId":{"type":"string"},"state":{"type":"string"},"stateName":{"type":"string"},"isDefault":{"type":"boolean"}}},"GroupWayConversationGroupIdRequestV1":{"required":["chatGroupId","conversationGroupId","state"],"type":"object","properties":{"chatGroupId":{"title":"群id","type":"string"},"state":{"title":"state","type":"string"},"conversationGroupId":{"title":"会话组id","type":"string"}}},"ChatGroupWayPageDtoV1":{"required":["channelName","id","stateName"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"qrCodeId":{"type":"string"},"channelName":{"title":"渠道名称","type":"string"},"stateName":{"title":"标签","type":"string"},"qrCodeUrl":{"title":"二维码url","type":"string"},"state":{"type":"string"},"wayExtendResultDTO":{"$ref":"#/components/schemas/ChatGroupWayRequestV1Extend"},"createdTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"},"configId":{"title":"联系我id","type":"string"},"localUrl":{"title":"本地二维码路径","type":"string"},"chatGroupId":{"title":"群id","type":"string"},"replyFlag":{"title":"回复标识","type":"string","enum":["QUOTE","AT","AT_OR_QUOTE","ALL"]},"limitReplyRule":{"title":"限制回复规则","type":"string"}}},"ChatGroupWayRequestV1Extend":{"title":"扩展字段返回结果","type":"object","properties":{"relevanceType":{"type":"integer","format":"int32"},"relevanceCode":{"type":"string"},"relevanceName":{"type":"string"},"usageScenario":{"type":"string"},"agentType":{"type":"string","enum":["AUTOMATION","CONVERSATION_GROUP","OPEN_CLAW"]},"agentConfig":{"type":"object","additionalProperties":{"type":"object"}}}},"ChangeCustomerRemarkRequestV1":{"required":["tenant"],"type":"object","properties":{"tenant":{"type":"string","description":"租户"},"customerId":{"type":"string","description":"客户ID,与 chatContactId 二选一"},"chatContactId":{"type":"string","description":"聚合聊天联系人ID,与 customerId 二选一"},"remark":{"type":"string","description":"备注"},"remarkMobiles":{"type":"array","description":"备注手机号列表","items":{"type":"string","description":"备注手机号列表"}},"cover":{"type":"boolean","description":"是否覆盖已有备注,默认 true"}}},"ChatGroupSaveRequest":{"type":"object"},"ChatGroupDto":{"required":["createdAt","id","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string"}}},"DedupItemDto":{"type":"object","properties":{"chatGroupId":{"type":"string"},"userId":{"type":"string"},"workWeChatRowCount":{"type":"integer","format":"int32"},"chatGroupMemberRowCount":{"type":"integer","format":"int32"},"keptWorkWeChatHashId":{"type":"string"},"deletedWorkWeChatHashIds":{"type":"array","items":{"type":"string"}},"keptChatGroupMemberHashIds":{"type":"array","items":{"type":"string"}},"deletedChatGroupMemberHashIds":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"}}},"DedupResultDto":{"type":"object","properties":{"scannedDuplicateGroupCount":{"type":"integer","format":"int64"},"processedGroupCount":{"type":"integer","format":"int64"},"skippedGroupCount":{"type":"integer","format":"int64"},"deletedWorkWeChatMemberCount":{"type":"integer","format":"int64"},"deletedChatGroupMemberCount":{"type":"integer","format":"int64"},"items":{"type":"array","items":{"$ref":"#/components/schemas/DedupItemDto"}},"failureMessages":{"type":"array","items":{"type":"string"}}}},"ChatContactWayWelcomeDto":{"title":"欢迎词配置","type":"object","properties":{"content":{"type":"string"}}},"ContactWayRequestV1":{"required":["channelName","corpName","stateName"],"type":"object","properties":{"corpName":{"type":"string","description":"企业微信标识名称:online_da"},"channelName":{"title":"渠道名称","type":"string"},"stateName":{"title":"标签","type":"string"},"mobile":{"title":"医助手机号 医助手机号和企业微信号 二选一 必填","type":"string"},"userId":{"title":"企业微信号 医助手机号和企业微信号 二选一 必填","type":"string"},"contactWayExtend":{"$ref":"#/components/schemas/ContactWayRequestV1Extend"},"source":{"title":"来源","type":"string","enum":["DIGITAL_STAFF","AI_ASSISTANT","TENANT_BACKEND","UNKNOWN"]},"openWelcome":{"title":"是否开启欢迎词配置","type":"boolean"},"welcomeConf":{"$ref":"#/components/schemas/ChatContactWayWelcomeDto"},"digitalStaffId":{"title":"数字员工ID","type":"string"},"digitalStaffName":{"title":"数字员工名称","type":"string"},"isDefault":{"title":"是否设为默认场景码","type":"boolean"}}},"ContactWayRequestV1Extend":{"title":"扩展信息","type":"object","properties":{"relevanceType":{"type":"integer","format":"int32"},"relevanceCode":{"type":"string"},"relevanceName":{"type":"string"},"usageScenario":{"type":"string"},"addFriends":{"type":"integer","format":"int32"},"validityType":{"type":"integer","format":"int32"},"validity":{"type":"string"},"agentType":{"type":"string","enum":["AUTOMATION","CONVERSATION_GROUP","OPEN_CLAW"]},"agentConfig":{"type":"object","additionalProperties":{"type":"object"}}}},"ContactWayDtoV1":{"required":["assistantUsersList","channelName","id","stateName"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"qrCodeId":{"type":"string"},"channelName":{"title":"渠道名称","type":"string"},"stateName":{"title":"标签","type":"string"},"assistantUsersList":{"type":"array","items":{"$ref":"#/components/schemas/ContactWayUserInfoDto"}},"qrCodeUrl":{"title":"二维码url","type":"string"},"state":{"type":"string"},"wayExtendResultDTO":{"$ref":"#/components/schemas/ContactWayRequestV1Extend"},"createdTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"},"configId":{"title":"联系我id","type":"string"},"localUrl":{"title":"本地二维码路径","type":"string"},"mentorUrl":{"title":"分步添加医助码路径","type":"string"},"mentorWebUrl":{"title":"分步添加医助码h5页面地址","type":"string"},"mentorAppletUrl":{"title":"分步添加医助码小程序页面地址","type":"string","deprecated":true},"openWelcome":{"title":"是否开启欢迎语","type":"boolean"},"welcomeConf":{"$ref":"#/components/schemas/ChatContactWayWelcomeDto"}}},"ContactWayUserInfoDto":{"required":["userId"],"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"avatar":{"type":"string"},"mobile":{"type":"string"},"alias":{"type":"string"}}},"UpdateExternalContactRemarkRequestV1":{"required":["externalUserId","internalUserId"],"type":"object","properties":{"internalUserId":{"title":"系统内部企微用户ID","type":"string"},"externalUserId":{"title":"外部联系人userId","type":"string"},"customerId":{"title":"客户ID","type":"string"},"remark":{"title":"备注","type":"string"},"companyRemark":{"title":"企业备注","type":"string"},"tags":{"title":"标签名称列表","type":"array","items":{"title":"标签名称列表","type":"string"}}}},"ExternalContactByOpenIdQueryV1":{"required":["lastState"],"type":"object","properties":{"lastState":{"title":"场景码不能为空","type":"string"},"openId":{"title":"员工id不能为空","type":"string"},"unionId":{"title":"员工unionId不能为空","type":"string"}}},"ExternalContactDtoV1":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"ownerCorpName":{"type":"string"},"customerExternalUserId":{"type":"string"},"userId":{"type":"string"},"remark":{"type":"string"},"description":{"type":"string"},"followTime":{"type":"string","format":"date-time"},"tags":{"type":"string"},"remarkCorpName":{"type":"string"},"remarkMobiles":{"type":"string"},"addWay":{"type":"integer","format":"int32"},"state":{"type":"string"},"relatStatus":{"type":"integer","format":"int32"},"lastState":{"type":"string"},"lastMsgTime":{"type":"integer","format":"int64"}}},"ExternalContactByLastStatesQueryV1":{"required":["corpName","lastStates"],"type":"object","properties":{"corpName":{"title":"企微标识","type":"string"},"lastStates":{"title":"外部联系人userId","maxItems":20,"minItems":1,"uniqueItems":true,"type":"array","items":{"title":"外部联系人userId","type":"string"}}}},"PageResultDtoExternalContactDtoV1":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ExternalContactDtoV1"}},"total":{"type":"integer","format":"int64"}}},"ExternalContactByExternalUserIdQueryRequestV1":{"required":["corpName","externalUserId"],"type":"object","properties":{"corpName":{"title":"企微标识","type":"string"},"externalUserId":{"title":"外部联系人userId","uniqueItems":true,"type":"array","items":{"title":"外部联系人userId","type":"string"}}}},"ExternalContactAiSwitchRequestV1":{"required":["corpName","externalUserId","userId"],"type":"object","properties":{"corpName":{"title":"企微标识","type":"string"},"userId":{"title":"员工userid","type":"string"},"externalUserId":{"title":"外部联系人id","type":"string"}}},"BatchChangeStateRequestV1":{"required":["contactWayId","externalUserIds","lastState","workWeChatUserId"],"type":"object","properties":{"workWeChatUserId":{"title":"企微用户id不能为空","type":"string"},"externalUserIds":{"title":"外部联系人userId","maxItems":100,"minItems":1,"uniqueItems":true,"type":"array","items":{"title":"外部联系人userId","type":"string"}},"lastState":{"title":"场景码不能为空","type":"string"},"contactWayId":{"title":"联系方式id不能为空","type":"integer","format":"int64"},"eventType":{"title":"事件类型不能为空","type":"string"},"corpName":{"title":"企微标识不能为空","type":"string"},"forcedLastState":{"title":"是否强制更新lastState","type":"boolean"}}},"BatchChangeStateResponseV1":{"type":"object","properties":{"failedExternalUserIds":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}},"ImproveUserInfoRequestV1":{"required":["corpName","externalUserId","mobile"],"type":"object","properties":{"corpName":{"type":"string","description":"企微"},"externalUserId":{"type":"string","description":"外部联系人id"},"mobile":{"type":"string","description":"手机号"},"userId":{"type":"string","description":"用户userId"}}},"ImproveCustomerInfoRequestV1":{"required":["customerId"],"type":"object","properties":{"customerId":{"type":"string","description":"客户id"},"mobile":{"type":"string","description":"手机号"},"name":{"type":"string","description":"姓名"}}},"ChatContactMessageAt":{"type":"object","properties":{"nickName":{"type":"string"},"userId":{"type":"string"},"chatUserId":{"type":"string"},"chatGroupMemberId":{"type":"string"}},"description":"@列表"},"ChatContactMessageUserDto":{"required":["id"],"type":"object","properties":{"type":{"type":"string","enum":["EXTERNAL","INTERNAL","ROOM"]},"id":{"type":"string"},"name":{"type":"string"},"avatar":{"type":"string"}},"description":"发送人"},"EntRobotChatMessageSendRequestV1":{"required":["contactId","contactType","msgBody","msgType","sender"],"type":"object","properties":{"contactType":{"type":"string","description":"联系人类型: EXTERNAL/ROOM","enum":["EXTERNAL","INTERNAL","ROOM"]},"contactId":{"type":"string","description":"联系人id(群聊时为企业机器人群ID)"},"sender":{"$ref":"#/components/schemas/ChatContactMessageUserDto"},"msgType":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","revoke","agree","disagree","voice","video","card","location","emotion","file","link","weapp","chatrecord","todo","vote","collect","redpacket","meeting","meeting_notification","docmsg","markdown","news","calendar","mixed","meeting_voice_call","system","image_text","unknown"]},"msgBody":{"type":"string","description":"消息请求体示例, 文本:{\"content\":\"测试消息\"}"},"msgId":{"type":"string","description":"消息ID"},"atList":{"type":"array","description":"@列表","items":{"$ref":"#/components/schemas/ChatContactMessageAt"}}}},"EntRobotChatGroupMemberRequestV1":{"required":["userId"],"type":"object","properties":{"userId":{"type":"string","description":"用户ID"},"userName":{"type":"string","description":"用户名称"}},"description":"成员列表"},"EntRobotChatGroupRequestV1":{"required":["chatId","memberList","name"],"type":"object","properties":{"chatId":{"type":"string","description":"企业机器人群ID"},"name":{"type":"string","description":"企业机器人群名称"},"avatar":{"type":"string","description":"头像"},"memberList":{"type":"array","description":"成员列表","items":{"$ref":"#/components/schemas/EntRobotChatGroupMemberRequestV1"}}}},"EntRobotChatGroupDto":{"type":"object","properties":{"chatId":{"type":"string","description":"企业机器人群ID"},"chatGroupId":{"type":"string","description":"聚合聊天群ID"},"tenant":{"type":"string","description":"租户"}}},"CustomerProfileUpdateRequest":{"type":"object","properties":{"name":{"maxLength":10,"minLength":0,"type":"string"},"gender":{"type":"string","enum":["UNKNOWN","MALE","FEMALE"]},"birthday":{"type":"string","format":"date"},"idNumber":{"maxLength":18,"minLength":0,"type":"string"},"phone":{"maxLength":15,"minLength":0,"type":"string"},"location":{"maxLength":50,"minLength":0,"type":"string"},"height":{"maxLength":20,"minLength":0,"type":"string"},"weight":{"type":"number","format":"double"},"maritalStatus":{"maxLength":20,"minLength":0,"type":"string"},"ethnicity":{"maxLength":20,"minLength":0,"type":"string"},"occupation":{"maxLength":50,"minLength":0,"type":"string"},"remarkName":{"maxLength":50,"minLength":0,"type":"string"},"blood":{"maxLength":20,"minLength":0,"type":"string"},"medicalHistory":{"maxItems":50,"minItems":0,"uniqueItems":true,"type":"array","items":{"type":"string"}},"medicationHistory":{"maxItems":50,"minItems":0,"uniqueItems":true,"type":"array","items":{"type":"string"}},"allergyHistory":{"maxItems":50,"minItems":0,"uniqueItems":true,"type":"array","items":{"type":"string"}},"isEmployee":{"type":"boolean"},"chiefComplaint":{"maxLength":255,"minLength":0,"type":"string"},"customerId":{"type":"string","description":"客户ID"},"chatContactId":{"type":"string","description":"聊天联系人ID"}}},"ChatStaffCreateRequestV1":{"required":["chatChannelId","name","userId"],"type":"object","properties":{"chatChannelId":{"type":"string","description":"渠道id"},"userId":{"type":"string","description":"userId"},"name":{"type":"string","description":"员工姓名"},"mobile":{"type":"string","description":"手机号"},"gender":{"type":"integer","description":"性别(0未定义,1男,2女)","format":"int32"},"avatar":{"type":"string","description":"头像"},"email":{"type":"string","description":"邮箱"},"alias":{"type":"string","description":"对外别名"}}},"ChatStaffDto":{"required":["createdAt","id","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string"},"name":{"type":"string","description":"员工姓名"},"mobile":{"type":"string","description":"手机"},"gender":{"type":"integer","description":"性别","format":"int32"},"email":{"type":"string","description":"邮箱"},"avatar":{"type":"string","description":"头像"},"alias":{"type":"string","description":"对外别名"},"metadata":{"$ref":"#/components/schemas/Metadata"}}},"ChatStaffBindRequestV1":{"type":"object","properties":{"chatStaffId":{"type":"string"},"chatChannelId":{"type":"string"},"userId":{"type":"string"},"other":{"type":"object","additionalProperties":{"type":"object"}}}},"ProcessTodoRequest":{"required":["digitalStaffIds"],"type":"object","properties":{"digitalStaffIds":{"uniqueItems":true,"type":"array","description":"数字员工ID列表","items":{"type":"string","description":"数字员工ID列表"}}},"description":"处理待办事项请求"},"CreateServiceTimeRequest":{"required":["enableType","staffId","startDate","timeSlots"],"type":"object","properties":{"staffId":{"type":"string","description":"数字员工ID"},"enableType":{"type":"string","description":"回复模式","enum":["ENABLE_AI_REPLY","DISABLE_AI_REPLY","AUTO_MODE","SEMI_AUTO_MODE","SAFE_MODE"]},"startDate":{"type":"string","description":"生效时间日期","format":"date"},"endDate":{"type":"string","description":"失效时间日期","format":"date"},"timeSlots":{"type":"array","description":"时段配置列表","items":{"$ref":"#/components/schemas/TimeSlotRequest"}},"updateBy":{"type":"string","description":"最后更新人"},"operationBy":{"type":"string","description":"操作人"},"safeModeSkills":{"type":"array","description":"诊间安全模式技能列表","items":{"$ref":"#/components/schemas/SafeModeSkill"}}}},"LocalTime":{"type":"object","properties":{"hour":{"type":"integer","format":"int32"},"minute":{"type":"integer","format":"int32"},"second":{"type":"integer","format":"int32"},"nano":{"type":"integer","format":"int32"}}},"SafeModeSkill":{"type":"object","properties":{"state":{"type":"string"},"skill":{"type":"string"}},"description":"诊间安全模式技能列表"},"TimeSlotRequest":{"required":["dayOfWeek","endTime","slotType","startTime"],"type":"object","properties":{"dayOfWeek":{"type":"string","enum":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]},"slotType":{"type":"string","enum":["MORNING","AFTERNOON","EVENING"]},"startTime":{"$ref":"#/components/schemas/LocalTime"},"endTime":{"$ref":"#/components/schemas/LocalTime"}},"description":"时段配置列表"},"ChatDigitalStaffServiceTimeDto":{"required":["createdAt","digitalStaffId","enableType","id","startDate"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"digitalStaffId":{"type":"string","description":"关联的数字员工ID"},"enableType":{"type":"string","description":"回复模式","example":"AUTO_MODE","enum":["ENABLE_AI_REPLY","DISABLE_AI_REPLY","AUTO_MODE","SEMI_AUTO_MODE","SAFE_MODE"]},"timeSlots":{"type":"array","description":"时段配置列表","items":{"$ref":"#/components/schemas/ChatDigitalStaffServiceTimeSlotDto"}},"startDate":{"type":"string","description":"生效时间","format":"date","example":"2024-01-01"},"endDate":{"type":"string","description":"失效时间,为空表示长期有效","format":"date","example":"2024-12-31"},"operationBy":{"type":"string","description":"操作人"},"metadata":{"$ref":"#/components/schemas/ServiceTimeMetadata"}}},"ChatDigitalStaffServiceTimeSlotDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"serviceTimeId":{"type":"string","description":"关联的服务时间配置ID"},"dayOfWeek":{"type":"string","description":"星期几","example":"MONDAY","enum":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]},"slotType":{"type":"string","description":"时段类型","example":"MORNING","enum":["MORNING","AFTERNOON","EVENING"]},"startTime":{"$ref":"#/components/schemas/LocalTime"},"endTime":{"$ref":"#/components/schemas/LocalTime"}},"description":"时段配置列表"},"ServiceTimeMetadata":{"type":"object","properties":{"safeModeSkills":{"type":"array","items":{"$ref":"#/components/schemas/SafeModeSkill"}}},"description":"元数据"},"ChatContactWayExtendInfoDto":{"title":"扩展信息","type":"object","properties":{"relevanceType":{"type":"integer","format":"int32"},"relevanceCode":{"type":"string"},"relevanceName":{"type":"string"},"usageScenario":{"type":"string"},"addFriends":{"type":"integer","format":"int32"},"validityType":{"type":"integer","format":"int32"},"validity":{"type":"string"},"roleName":{"type":"string"},"agentType":{"type":"string","enum":["AUTOMATION","CONVERSATION_GROUP","OPEN_CLAW"]},"agentConfig":{"type":"object","additionalProperties":{"type":"object"}},"qrCodeFailReason":{"type":"string"}}},"ChatContactWayRequestV1":{"required":["chatChannelId","chatStaffId","digitalStaffId","remark","stateName"],"type":"object","properties":{"chatStaffId":{"title":"员工id","type":"string"},"chatChannelId":{"title":"发布渠道id","type":"string"},"remark":{"title":"标签","type":"string"},"stateName":{"title":"场景码名称","type":"string"},"digitalStaffId":{"title":"数字员工ID","type":"string"},"digitalStaffName":{"title":"数字员工名称","type":"string"},"contactWayExtend":{"$ref":"#/components/schemas/ChatContactWayExtendInfoDto"},"source":{"title":"来源","type":"string","enum":["DIGITAL_STAFF","AI_ASSISTANT","TENANT_BACKEND","UNKNOWN"]},"openWelcome":{"title":"是否开启欢迎词配置","type":"boolean"},"welcomeConf":{"$ref":"#/components/schemas/ChatContactWayWelcomeDto"},"isDefault":{"title":"是否设为默认场景码","type":"boolean"}}},"ChatContactWayChannelInfoDto":{"title":"渠道信息","required":["id"],"type":"object","properties":{"id":{"type":"string"},"platform":{"type":"string","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]},"name":{"type":"string"}}},"ChatContactWayDigitalStaffInfoDto":{"title":"数字员工信息","type":"object","properties":{"id":{"type":"string"},"staffId":{"type":"string"},"staffName":{"type":"string"}}},"ChatContactWayRichDto":{"required":["chatContactWayId","id","qrCodeId","remark","state","stateName"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"qrCodeId":{"type":"string"},"chatContactWayId":{"type":"string"},"remark":{"title":"备注","type":"string"},"source":{"title":"source","type":"string","enum":["DIGITAL_STAFF","AI_ASSISTANT","TENANT_BACKEND","UNKNOWN"]},"state":{"title":"企业自定义的state参数","type":"string"},"stateName":{"title":"企业自定义的state名称","type":"string"},"configId":{"title":"企业微信联系我二维码唯一id","type":"string"},"qrCodeUrl":{"title":"联系二维码的URL","type":"string"},"localUrl":{"title":"本地二维码路径","type":"string"},"mentorUrl":{"title":"分步添加医助码路径","type":"string"},"welcomeConf":{"$ref":"#/components/schemas/ChatContactWayWelcomeDto"},"mentorWebUrl":{"title":"分步添加医助码h5页面地址","type":"string"},"staffInfo":{"$ref":"#/components/schemas/ChatContactWayStaffInfoDto"},"extendInfo":{"$ref":"#/components/schemas/ChatContactWayExtendInfoDto"},"digitalStaffInfo":{"$ref":"#/components/schemas/ChatContactWayDigitalStaffInfoDto"},"channelInfo":{"$ref":"#/components/schemas/ChatContactWayChannelInfoDto"},"isDefault":{"title":"是否为默认场景码","type":"boolean"},"defaultAt":{"title":"设为默认的时间","type":"string","format":"date-time"},"createdAt":{"title":"创建时间","type":"string","format":"date-time"}}},"ChatContactWayStaffInfoDto":{"title":"员工信息","required":["userId"],"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"avatar":{"type":"string"},"mobile":{"type":"string"},"alias":{"type":"string"}}},"ChatContactWayRefreshRequestV1":{"required":["contactWayIds"],"type":"object","properties":{"contactWayIds":{"uniqueItems":true,"type":"array","items":{"type":"integer","format":"int64"}}}},"ChatContactWayRefreshDto":{"required":["chatContactWayId","id","qrCodeId"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"qrCodeId":{"type":"string"},"chatContactWayId":{"type":"string"},"localUrl":{"title":"本地二维码路径","type":"string"},"mentorUrl":{"title":"分步添加医助码路径","type":"string"}}},"SendMessageRequest":{"required":["actualSenderId","actualSenderName","channelId","contactId","type"],"type":"object","properties":{"channelId":{"maxLength":50,"minLength":0,"type":"string","description":"渠道id"},"contactId":{"maxLength":50,"minLength":0,"type":"string","description":"联系人id"},"actualSenderId":{"maxLength":50,"minLength":0,"type":"string","description":"实际发送人id,一般为调用方发送身份id"},"actualSenderName":{"maxLength":50,"minLength":0,"type":"string","description":"实际发送人友好名称,调用方定义"},"type":{"type":"string","description":"消息类型","enum":["text","image","voice","video","file","card"]},"actualSenderType":{"type":"string","description":"实际发送人类型,默认:OUTER_SYS","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]},"text":{"type":"string","description":"文本消息内容"},"mediaUrl":{"type":"string","description":"媒体文件url,image、file等"},"mediaDataUrl":{"type":"string","description":"媒体文件 dataUrl"},"mediaFileName":{"type":"string","description":"媒体文件名称,必须带后缀"},"cardContactId":{"type":"string","description":"个人名片联系人id"},"senderId":{"type":"string","description":"发送人id(号主)"}}},"SendMessageResponse":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["SENDING","SUCCESS","FAILED","RECALLED","UNKNOWN"]}}},"SendGroupMessageRequest":{"required":["actualSenderId","actualSenderName","channelId","chatGroupId","senderId","type"],"type":"object","properties":{"channelId":{"maxLength":50,"minLength":0,"type":"string","description":"渠道id"},"chatGroupId":{"maxLength":100,"minLength":0,"type":"string","description":"群聊id(ChatGroup 的 hashId)"},"senderId":{"maxLength":50,"minLength":0,"type":"string","description":"发送者id(群成员的 chatUserId)"},"actualSenderId":{"maxLength":50,"minLength":0,"type":"string","description":"实际发送人id,一般为调用方发送身份id"},"actualSenderName":{"maxLength":50,"minLength":0,"type":"string","description":"实际发送人友好名称,调用方定义"},"type":{"type":"string","description":"消息类型","enum":["text","image","voice","video","file","card"]},"text":{"type":"string","description":"文本消息内容"},"mediaUrl":{"type":"string","description":"媒体文件url,image、file等"},"mediaDataUrl":{"type":"string","description":"媒体文件 dataUrl"},"mediaFileName":{"type":"string","description":"媒体文件名称,必须带后缀"},"cardContactId":{"type":"string","description":"个人名片联系人id"}}},"DeleteCustomerTagRequest":{"required":["tagType"],"type":"object","properties":{"tagType":{"type":"string","description":"标签类型:EXCLUSIVE 或 CUSTOM"},"customerId":{"type":"string","description":"CRM 客户 ID(与 contactId 不能同时为空)"},"contactId":{"type":"string","description":"ChatContact hashId(与 customerId 不能同时为空)"},"tagId":{"type":"string","description":"标签 ID(与 tagName 不能同时为空)"},"tagName":{"type":"string","description":"标签名称(与 tagId 不能同时为空)"}}},"AddCustomerTagRequest":{"required":["tagType"],"type":"object","properties":{"tagType":{"type":"string","description":"标签类型:EXCLUSIVE 或 CUSTOM"},"customerId":{"type":"string","description":"CRM 客户 ID(与 contactId 不能同时为空)"},"contactId":{"type":"string","description":"ChatContact hashId(与 customerId 不能同时为空)"},"staffId":{"type":"string","description":"员工 ID,EXCLUSIVE 时必填"},"tagId":{"type":"string","description":"标签 ID(与 tagName 不能同时为空)"},"tagName":{"type":"string","description":"标签名称(与 tagId 不能同时为空)"}}},"MessageCommentRequest":{"required":["commentType","excellent","improveType"],"type":"object","properties":{"excellent":{"type":"boolean"},"commentType":{"type":"string","enum":["MATCH","NOMATCH","UNSURE"]},"improveSuggest":{"type":"string"},"improveType":{"type":"string","enum":["SOP","KNOWLEDGE","KEEP","OTHER"]}}},"MessageCommentDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"commentType":{"type":"string","description":"点评结果 MATCH:符合 NOMATCH:不符合 UNSURE:不确定","enum":["MATCH","NOMATCH","UNSURE"]},"excellent":{"type":"boolean","description":"是否优秀"},"improveSuggest":{"type":"string","description":"修改建议"},"improveType":{"type":"string","description":" 修改类型 SOP:修改SOP KNOWLEDGE:修改知识库 KEEP:保持","enum":["SOP","KNOWLEDGE","KEEP","OTHER"]},"messageId":{"type":"string","description":"消息ID"},"commentBy":{"type":"string","description":"点评人ID"},"commentByName":{"type":"string","description":"点评人姓名"},"workWeChatUserId":{"type":"string","description":"企微workWeChatUserId"},"sopOptimizeRecordId":{"type":"string","description":"优化记录ID"}}},"MessageCommentRequestOptimize":{"required":["commentType","excellent","improveSuggest","improveType"],"type":"object","properties":{"excellent":{"type":"boolean"},"improveSuggest":{"type":"string","description":"改进建议"},"commentType":{"type":"string","enum":["MATCH","NOMATCH","UNSURE"]},"improveType":{"type":"string","enum":["SOP","KNOWLEDGE","KEEP","OTHER"]}}},"OptimizeDTO":{"type":"object","properties":{"sopOptimizeRecordId":{"type":"string","description":"优化记录ID "},"messageId":{"type":"string","description":"消息ID "},"commentId":{"type":"string","description":"点评ID"}}},"MessageAdviceOptimizerRequest":{"required":["optimizerContent","originalContent"],"type":"object","properties":{"optimizerContent":{"type":"string","description":"编辑后的内容"},"originalContent":{"type":"string","description":"AI推荐的原内容"}}},"ChatContactsMessageDto":{"required":["contactId","createdAt","id","msgBody","msgId","msgTime","msgType","sender","senderType"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"contactId":{"type":"string","description":"联系id"},"senderType":{"type":"string","description":"发送人类型","enum":["EXTERNAL","INTERNAL","ROOM"]},"sender":{"type":"string","description":"发送人"},"msgId":{"type":"string","description":"消息id"},"msgType":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","revoke","agree","disagree","voice","video","card","location","emotion","file","link","weapp","chatrecord","todo","vote","collect","redpacket","meeting","meeting_notification","docmsg","markdown","news","calendar","mixed","meeting_voice_call","system","image_text","unknown"]},"msgBody":{"type":"object","additionalProperties":{"type":"object","description":"消息内容"},"description":"消息内容"},"msgTime":{"type":"string","description":"消息时间"},"senderAvatar":{"type":"string","description":"发送人头像"},"senderName":{"type":"string","description":"发送人名称"},"actualSenderType":{"type":"string","description":"实际发送人类型,租户用户user/employee/agentConversation/customer","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]},"actualSender":{"type":"string","description":"实际发送人"},"status":{"type":"string","description":"状态","enum":["SENDING","SUCCESS","FAILED","RECALLED","UNKNOWN"]},"actualSenderName":{"type":"string","description":"实际发送人名称"},"commentStatus":{"type":"boolean","description":"点评状态"},"contactType":{"type":"string","description":"联系人类型","enum":["EXTERNAL","INTERNAL","ROOM"]},"isSelf":{"type":"boolean","description":"是否当前号发送的"},"metadata":{"type":"object","additionalProperties":{"type":"object","description":"元数据"},"description":"元数据"},"atList":{"type":"array","description":"at用户id列表","items":{"type":"string","description":"at用户id列表"}}}},"CreateWorkWeChatUserRelateRequest":{"required":["workWeChatCorpId","workWeChatUserId"],"type":"object","properties":{"workWeChatCorpId":{"maxLength":50,"minLength":0,"type":"string"},"workWeChatUserId":{"maxLength":50,"minLength":0,"type":"string"},"employeeId":{"type":"string","description":"员工id"}}},"WorkWeChatUserRelateDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"userId":{"type":"string","description":"企业微信开放平台中的userId"},"name":{"type":"string","description":"企微微信内部成员姓名"},"mobile":{"type":"string","description":"企微微信内部成员手机号"},"gender":{"type":"integer","description":"企微微信内部成员性别","format":"int32"},"email":{"type":"string","description":"企微微信内部成员email"},"avatar":{"type":"string","description":"企微微信内部成员头像"},"alias":{"type":"string","description":"企微微信内部成员别名"},"status":{"type":"integer","description":"激活状态: 1=已激活,2=已禁用,4=未激活,5=退出企业","format":"int32"},"online":{"type":"boolean","description":"是否在线"},"employeeId":{"type":"string","description":"员工id"},"workWeChatUserId":{"type":"string","description":"企微账号userid"},"corpShortName":{"type":"string","description":"企微名称"},"workWeChatCorpId":{"type":"string","description":"企微id"},"chatStaffId":{"type":"string","description":"租户员工Id"}}},"SyncGroupRequest":{"required":["workWeChatUserId"],"type":"object","properties":{"workWeChatUserId":{"title":"企微员工ID","type":"string"}}},"SyncCustomerRequest":{"required":["workWeChatUserId"],"type":"object","properties":{"workWeChatUserId":{"title":"企微员工ID","type":"string"}}},"SetDefaultSceneRequest":{"required":["accountSceneCode","staffId"],"type":"object","properties":{"staffId":{"title":"数字员工ID","type":"string"},"accountSceneCode":{"title":"账号场景码","type":"string"}}},"BindDigitalStaffRequest":{"required":["digitalStaffId","workWeChatUserId"],"type":"object","properties":{"workWeChatUserId":{"title":"企业微信员工ID","type":"string"},"digitalStaffId":{"title":"数字员工ID","uniqueItems":true,"type":"array","items":{"title":"数字员工ID","type":"string"}}}},"BindDigitalStaffDto":{"type":"object","properties":{"bindResult":{"title":"绑定结果,key为数字员工ID,value为是否绑定成功","type":"object","additionalProperties":{"title":"绑定结果,key为数字员工ID,value为是否绑定成功","type":"boolean"}},"createTaskStatus":{"title":"创建任务清单是否成功","type":"boolean"},"errorMessage":{"title":"错误信息","type":"string"}}},"AddStaffSceneConsoleRequest":{"required":["staffId"],"type":"object","properties":{"staffId":{"title":"数字员工ID","type":"string"},"chatType":{"title":"聊天类型(1:单聊 2:群聊)","type":"integer","format":"int32"},"isDefault":{"title":"是否默认场景","type":"boolean"}}},"ResponseObject":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"result":{"type":"object"}}},"AddStaffAdvancedConsoleRequest":{"required":["staffName"],"type":"object","properties":{"staffName":{"title":"数字员工名称","type":"string"},"workWeChatUserId":{"title":"企微员工ID","type":"string"},"acctId":{"title":"用户ID","type":"string"},"corpName":{"title":"企微公司名称","type":"string"}}},"DiagnoseRequest":{"type":"object","properties":{"chatContactId":{"type":"string"},"chatStaffId":{"type":"string"}}},"CreateWorkWeChatCorpRelateRequest":{"required":["workWeChatCorpId"],"type":"object","properties":{"workWeChatCorpId":{"maxLength":50,"minLength":0,"type":"string"}}},"WorkWeChatCorpRelateDto":{"required":["createdAt","id","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string"},"hashId":{"type":"string","description":"租户关联企微关系id"},"workWeChatCorpId":{"type":"string","description":"企业微信hashId"},"name":{"type":"string","description":"企业微信标识"},"corpName":{"type":"string","description":"企业微信全称"},"corpShortName":{"type":"string","description":"企业微信简称"},"corpId":{"type":"string","description":"企业微信id"}}},"ContactWayRequest":{"required":["stateName","tagName","workWeChatCorpId"],"type":"object","properties":{"workWeChatCorpId":{"type":"string","description":"企微ID"},"workWeChatUserId":{"title":"企微用户ID","type":"string"},"stateName":{"title":"渠道名称","type":"string"},"tagName":{"title":"标签","type":"string"},"mobile":{"title":"医助手机号 医助手机号和企业微信号 二选一 必填","type":"string"},"userId":{"title":"企业微信号 医助手机号和企业微信号 二选一 必填","type":"string"},"contactWayExtend":{"$ref":"#/components/schemas/ContactWayRequestExtend"},"openWelcome":{"title":"是否开启欢迎词配置","type":"boolean"},"welcomeConf":{"$ref":"#/components/schemas/ChatContactWayWelcomeDto"}}},"ContactWayRequestExtend":{"title":"扩展信息","type":"object","properties":{"relevanceType":{"type":"integer","format":"int32"},"relevanceCode":{"type":"string"},"relevanceName":{"type":"string"},"usageScenario":{"type":"string"},"addFriends":{"type":"integer","format":"int32"},"validityType":{"type":"integer","format":"int32"},"validity":{"type":"string"}}},"ContactWayDto":{"required":["assistantUsersList","id","stateName","tagName"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"qrCodeId":{"type":"string"},"stateName":{"title":"渠道名称","type":"string"},"tagName":{"title":"企微标签","type":"string"},"assistantUsersList":{"type":"array","items":{"$ref":"#/components/schemas/ContactWayUserInfoDto"}},"qrCodeUrl":{"title":"二维码url","type":"string"},"state":{"type":"string"},"wayExtendResultDTO":{"$ref":"#/components/schemas/ContactWayRequestExtend"},"createdTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"},"configId":{"title":"联系我id","type":"string"},"localUrl":{"title":"本地二维码路径","type":"string"},"mentorUrl":{"title":"分步添加医助码路径","type":"string"},"corpName":{"title":"企业微信名称","type":"string"},"corpShortName":{"title":"企业微信短名称","type":"string"},"userName":{"type":"string"},"userId":{"type":"string"},"workWeChatCorpId":{"type":"string"},"workWeChatUserId":{"type":"string"},"welcomeWord":{"title":"欢迎语","type":"string"}}},"CreateVariableValueRequest":{"required":["definitionId"],"type":"object","properties":{"definitionId":{"type":"string"},"value":{"type":"object"}}},"CreateUserConversationRequest":{"required":["botId","conversationGroupId","name"],"type":"object","properties":{"botId":{"maxLength":36,"minLength":0,"type":"string"},"conversationGroupId":{"maxLength":15,"minLength":0,"type":"string"},"name":{"maxLength":40,"minLength":0,"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"object"}},"activated":{"type":"boolean"}}},"ChatMedia":{"type":"object","properties":{"url":{"type":"string"},"mediaType":{"type":"string"}}},"ChatRequest":{"required":["query"],"type":"object","properties":{"query":{"maxLength":50000,"minLength":1,"type":"string"},"conversationIds":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"fallbackConversationId":{"type":"string"},"medias":{"type":"array","items":{"$ref":"#/components/schemas/ChatMedia"}}}},"ServerSentEventString":{"type":"object"},"UserChatDesensitizeRequest":{"required":["userId"],"type":"object","properties":{"userId":{"maxLength":50,"minLength":0,"type":"string","description":"平台的userId"},"reason":{"maxLength":500,"minLength":0,"type":"string","description":"原因"}}},"UserChatDesensitizeDto":{"required":["createdAt","fullName","id","userId","userName"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"userId":{"type":"string","description":"平台的userId"},"fullName":{"type":"string","description":"姓名"},"userName":{"type":"string","description":"登录账号"},"reason":{"type":"string","description":"原因"}}},"UploadResponse":{"type":"object","properties":{"url":{"type":"string"},"message":{"type":"string"}}},"CustomerInterventionRecordHandleRequest":{"required":["handleStatus"],"type":"object","properties":{"handleStatus":{"type":"string","description":"处理状态","enum":["PENDING","PROCESSING","CONTACTED","FINISHED"]},"handleInfo":{"type":"string","description":"处理信息"}}},"CustomerInterventionRecordDto":{"required":["contactId","createdAt","id","messageContent","receiverId","receiverName","ruleId","senderId","senderName","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string","description":"租户"},"ruleId":{"type":"string","description":"规则id"},"senderId":{"type":"string","description":"发送人id"},"senderName":{"type":"string","description":"发送人名称"},"contactId":{"type":"string","description":"联系人id"},"messageContent":{"type":"string","description":"消息内容"},"keyword":{"type":"array","description":"触发关键词","items":{"type":"string","description":"触发关键词"}},"noticeContent":{"type":"string","description":"通知内容"},"noticeRobot":{"type":"string","description":"通知机器人"},"noticeTime":{"type":"string","description":"通知时间","format":"date-time"},"handleBy":{"type":"string","description":"处理人"},"handleByName":{"type":"string","description":"处理人姓名"},"handleAt":{"type":"string","description":"处理时间","format":"date-time"},"handleStatus":{"type":"string","description":"处理状态","enum":["PENDING","PROCESSING","CONTACTED","FINISHED"]},"questionType":{"type":"string","description":"问题类型"},"level":{"type":"string","description":"级别"},"receiverId":{"type":"string","description":"接收人id"},"receiverName":{"type":"string","description":"接收人名称"},"handleInfo":{"type":"string","description":"处理信息"}}},"CustomerIntentionTypeDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"intentionType":{"type":"string"},"intentionTypeLevel":{"type":"integer","format":"int32"},"parentTypeHashId":{"type":"string"}}},"CreateConversationGroupEventRequest":{"required":["name","source"],"type":"object","properties":{"name":{"maxLength":50,"minLength":0,"type":"string"},"source":{"maxLength":30,"minLength":0,"type":"string"},"description":{"maxLength":2000,"minLength":0,"type":"string"},"eventTime":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":{"type":"object"}}}},"ConversationGroupEventDto":{"required":["createdAt","eventId","eventTime","groupId","name","source"],"type":"object","properties":{"eventId":{"type":"string"},"groupId":{"type":"string"},"source":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"data":{"type":"object","additionalProperties":{"type":"object"}},"eventTime":{"type":"integer","format":"int64"},"createdAt":{"type":"integer","format":"int64"}}},"SaveChatMessageCommentRequest":{"type":"object","properties":{"commentType":{"type":"string","description":"是否符合预期","enum":["MATCH","NOMATCH","UNSURE"]},"excellent":{"type":"boolean","description":"是否优秀案例"},"improveType":{"type":"string","description":" 修改类型 SOP:修改SOP KNOWLEDGE:修改知识库 KEEP:保持 OTHER 其他","enum":["SOP","KNOWLEDGE","KEEP","OTHER"]},"improveSuggest":{"type":"string","description":"改进建议"},"userQuestion":{"type":"string","description":"用户问题"},"aiResponse":{"type":"string","description":"AI回复"},"expectedResponse":{"type":"string","description":"期望回复"},"targetDatasetId":{"type":"string","description":"目标数据集ID"},"suggestStateOther":{"type":"string","description":"其他建议"}}},"ChatMessageCommentDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"commentType":{"type":"string","description":" 修改类型 SOP:修改SOP KNOWLEDGE:修改知识库 KEEP:保持 OTHER 其他","enum":["MATCH","NOMATCH","UNSURE"]},"excellent":{"type":"boolean","description":"是否优秀"},"improveSuggest":{"type":"string","description":"修改建议"},"improveType":{"type":"string","description":" 修改类型 SOP:修改SOP KNOWLEDGE:修改知识库 KEEP:保持","enum":["SOP","KNOWLEDGE","KEEP","OTHER"]},"messageId":{"type":"string","description":"消息ID"},"commentBy":{"type":"string","description":"点评人ID"},"commentByName":{"type":"string","description":"点评人姓名"},"workWeChatUserId":{"type":"string","description":"workWechatUserId"},"customerId":{"type":"string","description":"客户ID"},"customerExternalUserId":{"type":"string","description":"客户外部联系人ID"},"customerName":{"type":"string","description":"客户名称"},"workWeChatUserName":{"type":"string","description":"企微名称"},"contactId":{"type":"string","description":"聚合聊天联系人ID"},"chatMessageCommentSyncDto":{"$ref":"#/components/schemas/ChatMessageCommentSyncDto"}}},"ChatMessageCommentSyncDto":{"type":"object","properties":{"staffId":{"type":"string","description":"员工ID"},"chatContactId":{"type":"string","description":"聊天联系ID"},"isMatchExpectations":{"type":"integer","description":"是否符合预期 1是 2否 3不确定","format":"int32"},"isExcellentCase":{"type":"integer","description":"是否优秀案例:0-否,1-是","format":"int32"},"suggestion":{"type":"string","description":"建议内容"},"suggestState":{"type":"integer","description":"建议状态 1.修改sop 2.修改知识库 3.保持现状 4.其他","format":"int32"},"suggestStateOther":{"type":"string","description":"其他建议状态说明"},"chatMessageId":{"type":"string","description":"聊天消息ID"},"userQuestion":{"type":"string","description":"用户问题"},"aiResponse":{"type":"string","description":"AI 回复"},"expectedResponse":{"type":"string","description":"期望回复"},"targetDatasetId":{"type":"string","description":"目标数据集ID"},"knowledgeSyncStatus":{"type":"integer","description":"知识库同步状态:1=成功 0=失败,未同步为 null(仅查询返回)","format":"int32"},"knowledgeSyncMessage":{"type":"string","description":"知识库同步结果说明或错误信息(仅查询返回)"}},"description":"同步结果"},"ChatMessageDto":{"required":["actualSender","actualSenderType","contactId","contactType","createdAt","id","msgBody","msgId","msgTime","msgType","sender","senderType","status","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string"},"contactType":{"type":"string","description":"会话类型","enum":["EXTERNAL","INTERNAL","ROOM"]},"contactId":{"type":"string","description":"联系id"},"chatSessionId":{"type":"string","description":"会话id"},"senderType":{"type":"string","description":"发送人类型EXTERNAL/INTERNAL","enum":["EXTERNAL","INTERNAL","ROOM"]},"sender":{"type":"string","description":"发送人"},"msgId":{"type":"string","description":"消息id"},"msgType":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","revoke","agree","disagree","voice","video","card","location","emotion","file","link","weapp","chatrecord","todo","vote","collect","redpacket","meeting","meeting_notification","docmsg","markdown","news","calendar","mixed","meeting_voice_call","system","image_text","unknown"]},"msgBody":{"type":"object","additionalProperties":{"type":"object","description":"消息内容"},"description":"消息内容"},"msgTime":{"type":"string","description":"消息时间"},"actualSenderType":{"type":"string","description":"实际发送人类型,租户用户user/employee/agentConversation/customer","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]},"actualSender":{"type":"string","description":"实际发送人"},"status":{"type":"string","description":"状态","enum":["SENDING","SUCCESS","FAILED","RECALLED","UNKNOWN"]},"actualSenderName":{"type":"string","description":"实际发送人名称"},"commentStatus":{"type":"boolean","description":"是否点评"},"metadata":{"type":"object","additionalProperties":{"type":"object","description":"元数据"},"description":"元数据"},"atList":{"type":"array","description":"at用户id列表","items":{"type":"string","description":"at用户id列表"}},"chatChannelId":{"type":"string","description":"消息渠道"},"senderAvatar":{"type":"string","description":"发送人头像"},"senderName":{"type":"string","description":"发送人名称"},"isSelf":{"type":"boolean","description":"是否当前号发送的"}}},"ChatDigitalStaffDto":{"required":["createdAt","id","staffId","staffName"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"staffId":{"type":"string","description":"数字员工的id"},"staffName":{"type":"string","description":"数字员工的名称"},"aiReply":{"type":"boolean","description":"AI自动回复开关,true-启用,false-禁用"},"internalAiReply":{"type":"boolean","description":"内部联系人AI自动回复开关,true-启用,false-禁用"},"groupAiReply":{"type":"boolean","description":"群聊AI自动回复开关,true-启用,false-禁用"},"sortOrder":{"type":"integer","description":"排序字段,数字越小越靠前","format":"int32"},"status":{"type":"string","description":"数字员工的状态,NORMAL-正常,DELETED-已删除","enum":["DELETED","NORMAL"]},"avatar":{"type":"string","description":"头像URL"},"description":{"type":"string","description":"描述信息"},"patientCount":{"type":"integer","description":"患者数量","format":"int64"}}},"ChatContactWayRequest":{"required":["chatChannelId","chatStaffId","digitalStaffId","remark","stateName"],"type":"object","properties":{"chatStaffId":{"title":"Staff hashId","type":"string"},"chatChannelId":{"title":"Channel hashId","type":"string"},"remark":{"title":"Tag","type":"string"},"stateName":{"title":"Scene code name","type":"string"},"digitalStaffId":{"title":"Digital staff ID","type":"string"},"digitalStaffName":{"title":"Digital staff name","type":"string"},"contactWayExtend":{"$ref":"#/components/schemas/ChatContactWayExtendInfoDto"},"source":{"title":"Source","type":"string","enum":["DIGITAL_STAFF","AI_ASSISTANT","TENANT_BACKEND","UNKNOWN"]},"openWelcome":{"title":"Enable welcome message","type":"boolean"},"welcomeConf":{"$ref":"#/components/schemas/ChatContactWayWelcomeDto"},"isDefault":{"title":"Set default scene code","type":"boolean"}}},"ChatContactWayRefreshRequest":{"required":["contactWayIds"],"type":"object","properties":{"contactWayIds":{"uniqueItems":true,"type":"array","items":{"type":"integer","format":"int64"}}}},"MoveChatContactByLastStateRequest":{"required":["chatDigitalStaffId","targetState"],"type":"object","properties":{"targetState":{"title":"目标场景码","maxLength":50,"minLength":0,"type":"string"},"chatContactIds":{"title":"联系人ID列表,与 sourceState 二选一","type":"array","items":{"title":"联系人ID列表,与 sourceState 二选一","type":"string"}},"sourceState":{"title":"原场景码,与 chatContactIds 二选一;填则将该 lastState 下所有联系人迁到 targetState","maxLength":50,"minLength":0,"type":"string"},"chatDigitalStaffId":{"title":"数字员工ID","maxLength":50,"minLength":0,"type":"string"}}},"MoveChatContactResultDto":{"type":"object","properties":{"updated":{"title":"实际更新的联系人数量","type":"integer","format":"int32"}}},"SelfChatContactRequestV1":{"type":"object","properties":{"customerId":{"type":"string","description":"客户id"},"userId":{"type":"string","description":"访客id"},"userName":{"type":"string","description":"访客名称"},"state":{"type":"string","description":"场景码"},"configId":{"type":"string","description":"场景码id"},"avatar":{"type":"string","description":"访客头像"}}},"SelfChatContactDto":{"type":"object","properties":{"tenant":{"type":"string"},"contactId":{"type":"string"},"chatChannelId":{"type":"string"}}},"SendMessageRequestV1":{"required":["msgBody","msgType","sender"],"type":"object","properties":{"chatChannelId":{"type":"string","description":"聊天渠道ID"},"chatContactType":{"type":"string","description":"聊天联系人类型EXTERNAL/ROOM","enum":["EXTERNAL","INTERNAL","ROOM"]},"chatContactId":{"type":"string","description":"聊天联系人ID"},"chatStaffId":{"type":"string","description":"聚合聊天号主id"},"chatCustomerId":{"type":"string","description":"聊天客户ID"},"msgType":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","voice","video","file","card","link","location","emotion","system","image_text","unknown"]},"msgBody":{"type":"string","description":"消息请求体示例, 文本:{\"content\":\"测试消息\"}"},"actualSenderType":{"type":"string","description":"实际发送人类型","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]},"actualSenderName":{"type":"string","description":"实际发送人名称,会显示在聊天对话中"},"actualSenderId":{"type":"string","description":"实际发送人ID"},"sender":{"$ref":"#/components/schemas/ChatContactMessageUserDto"},"skill":{"type":"string","description":"技能id/技能名称"},"metadata":{"type":"object","additionalProperties":{"type":"object","description":"消息元数据,透传保存到消息metadata"},"description":"消息元数据,透传保存到消息metadata"},"saveOnly":{"type":"boolean","description":"仅保存,用于数据同步"}}},"SendMsgStreamResponse":{"required":["data","event"],"type":"object","properties":{"event":{"type":"string","enum":["CONNECT_CREATED","MESSAGE_DELTA","MESSAGE_COMPLETED","CONNECT_COMPLETED","CONNECT_FAILED","ERROR","DONE","HEARTBEAT"]},"data":{"type":"object","additionalProperties":{"type":"object"}}}},"SendMessageResultDto":{"required":["contactId","createdAt","id","msgBody","msgId","msgTime","msgType","sender","senderType"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"contactId":{"type":"string","description":"联系id"},"senderType":{"type":"string","description":"发送人类型","enum":["EXTERNAL","INTERNAL","ROOM"]},"sender":{"type":"string","description":"发送人"},"msgId":{"type":"string","description":"消息id"},"msgType":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","revoke","agree","disagree","voice","video","card","location","emotion","file","link","weapp","chatrecord","todo","vote","collect","redpacket","meeting","meeting_notification","docmsg","markdown","news","calendar","mixed","meeting_voice_call","system","image_text","unknown"]},"msgBody":{"type":"object","additionalProperties":{"type":"object","description":"消息内容"},"description":"消息内容"},"msgTime":{"type":"string","description":"消息时间"},"senderAvatar":{"type":"string","description":"发送人头像"},"senderName":{"type":"string","description":"发送人名称"},"actualSenderType":{"type":"string","description":"实际发送人类型,租户用户user/employee/agentConversation/customer","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]},"actualSender":{"type":"string","description":"实际发送人"},"actualSenderName":{"type":"string","description":"实际发送人名称"},"status":{"type":"string","description":"状态","enum":["SENDING","SUCCESS","FAILED","RECALLED","UNKNOWN"]},"metadata":{"type":"object","additionalProperties":{"type":"object","description":"元数据"},"description":"元数据"}}},"ResetConversationRequest":{"type":"object","properties":{"configId":{"type":"string","description":"场景码配置ID(与state二选一,优先级低于state)"},"state":{"type":"string","description":"场景码state"}}},"ManualCheckRequest":{"type":"object","properties":{"contactIds":{"uniqueItems":true,"type":"array","description":"联系人ID列表","items":{"type":"string","description":"联系人ID列表"}},"startCreatedAt":{"type":"string","description":"开始时间 格式: yyyy-MM-dd HH:mm:ss"},"endCreatedAt":{"type":"string","description":"结束时间 格式: yyyy-MM-dd HH:mm:ss"},"chatChannelId":{"type":"string","description":"渠道"}}},"CreateContactRequest":{"required":["chatChannelId","name","openId","originalUserId"],"type":"object","properties":{"chatChannelId":{"type":"string","description":"聚合聊天渠道Id"},"configId":{"type":"string","description":"外部联系人配置Id"},"state":{"type":"string","description":"外部联系人配置state"},"name":{"type":"string","description":"外部联系人昵称"},"avatar":{"type":"string","description":"外部联系人头像"},"gender":{"type":"integer","description":"外部联系人性别","format":"int32"},"openId":{"type":"string","description":"外部联系人openId(企微:externalUserId,其他:各业务系统客户id)"},"originalUserId":{"type":"string","description":"外部联系人渠道客户id(企微:workWeChatCustomerId,其他:各业务系统客户id/openId)"},"customerId":{"type":"string","description":"CRM 客户 ID(chatCustomer 表的 customerId),可选;传入时优先按此匹配 ChatCustomerEntity"}}},"ChatContactDto":{"required":["createdAt","id","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string"},"chatCustomerId":{"type":"string","description":"聚合聊天客户Id"},"chatStaffId":{"type":"string","description":"聚合聊天员工id"},"name":{"type":"string","description":"外部联系人昵称"},"avatar":{"type":"string","description":"外部联系人头像地址"},"gender":{"type":"integer","description":"外部联系人性别,0-未知 1-男性 2-女性","format":"int32"},"remark":{"type":"string","description":"联系人备注"},"remarkMobiles":{"type":"array","description":"备注手机号","items":{"type":"string","description":"备注手机号"}},"description":{"type":"string","description":"联系人描述"},"addWay":{"type":"integer","description":"联系人添加方式","format":"int32"},"state":{"type":"string","description":"企业自定义的state参数"},"followTime":{"type":"string","description":"外部联系人关注时间","format":"date-time"},"followStatus":{"type":"integer","description":"关系状态 1:正常 2:医助删除客户 3:客户删除医助 4:客户医助互删","format":"int32"},"followStatusTime":{"type":"string","description":"关系状态变更时间","format":"date-time"},"lastMsgTime":{"type":"string","description":"最后沟通时间"},"lastMsgContext":{"type":"string","description":"最后沟通内容"},"lastState":{"type":"string","description":"最新state值"},"aiReply":{"type":"boolean","description":"AI回复"},"metadata":{"type":"object","additionalProperties":{"type":"object","description":"元数据"},"description":"元数据"},"lastChannelId":{"type":"string","description":"最后沟通渠道"},"pinned":{"type":"boolean","description":"是否置顶"},"contactType":{"type":"string","description":"联系人类型 EXTERNAL:外部客户 INTERNAL:内部员工","enum":["EXTERNAL","INTERNAL","ROOM"]},"pinnedTime":{"type":"string","description":"置顶时间","format":"date-time"},"interventionFollowStatus":{"type":"string","description":"人工介入跟进状态","enum":["PENDING","PROCESSING","CONTACTED","FINISHED"]}}},"PadWorkNotifyEvent":{"type":"object","properties":{"guid":{"type":"string"},"data":{"type":"object","additionalProperties":{"type":"object"}},"provider":{"type":"string"},"notify_type":{"type":"integer","format":"int32"}}},"JkzlCsChatMessageSendRequestV1":{"required":["contactId","contactType","msgBody","msgType","sender"],"type":"object","properties":{"contactType":{"type":"string","description":"联系人类型: EXTERNAL/ROOM","enum":["EXTERNAL","INTERNAL","ROOM"]},"contactId":{"type":"string","description":"联系人id"},"state":{"type":"string","description":"访客id"},"sender":{"$ref":"#/components/schemas/ChatContactMessageUserDto"},"msgType":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","voice","video","file","card","link","location","emotion","system","image_text","unknown"]},"msgBody":{"type":"string","description":"消息请求体示例, 文本:{\"content\":\"测试消息\"}"},"msgId":{"type":"string","description":"消息ID"},"atList":{"type":"array","description":"@列表","items":{"$ref":"#/components/schemas/ChatContactMessageAt"}}}},"JkzlCsChatContactRequestV1":{"required":["state","visitorUserId","visitorUserName"],"type":"object","properties":{"state":{"type":"string"},"visitorUserId":{"type":"string"},"visitorUserName":{"type":"string"},"visitorUserAvatar":{"type":"string"}}},"JkzlCsChatContactDto":{"type":"object","properties":{"tenant":{"type":"string"},"contactId":{"type":"string"}}},"EasyWeWorkNotifyRequest":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"msg":{"type":"string"}}},"Item":{"type":"object","properties":{"guid":{"type":"string"},"userId":{"type":"string"},"requestId":{"type":"string"},"customParam":{"type":"string"},"cmd":{"type":"integer","format":"int32"},"msgServerId":{"type":"integer","format":"int64"},"msgType":{"type":"integer","format":"int32"},"msgUniqueIdentifier":{"type":"string"},"senderId":{"type":"integer","format":"int64"},"seq":{"type":"integer","format":"int64"},"timestamp":{"type":"integer","format":"int64"},"receiverId":{"type":"integer","format":"int64"},"fromRoomId":{"type":"integer","format":"int64"},"isRoomNotice":{"type":"integer","format":"int32"},"senderName":{"type":"string"},"referId":{"type":"integer","format":"int64"},"msgData":{"type":"object","additionalProperties":{"type":"object"}},"TenantId":{"type":"integer","format":"int32"}}},"StateChangeRequest":{"required":["externalUserId","internalUserId","state"],"type":"object","properties":{"internalUserId":{"type":"string"},"externalUserId":{"type":"string"},"externalUserName":{"type":"string"},"contactWayId":{"type":"integer","format":"int64"},"createTime":{"type":"integer","format":"int64"},"state":{"type":"string"},"corpName":{"type":"string"},"eventType":{"type":"string"}}},"AliyunAsrResponse":{"type":"object","properties":{"StatusCode":{"type":"integer","format":"int32"},"Result":{"$ref":"#/components/schemas/Result"},"StatusText":{"type":"string"},"TaskId":{"type":"string"},"BizDuration":{"type":"integer","format":"int32"}}},"Result":{"type":"object","properties":{"Sentences":{"type":"array","items":{"$ref":"#/components/schemas/Sentence"}}}},"Sentence":{"type":"object","properties":{"SilenceDuration":{"type":"integer","format":"int32"},"EmotionValue":{"type":"number","format":"double"},"ChannelId":{"type":"integer","format":"int32"},"Text":{"type":"string"},"BeginTime":{"type":"integer","format":"int32"},"EndTime":{"type":"integer","format":"int32"},"SpeechRate":{"type":"integer","format":"int32"}}},"LoginQrcodeVerifyV2Request":{"required":["code","key"],"type":"object","properties":{"key":{"type":"string","description":"标识ID"},"userId":{"type":"string","description":"userId"},"code":{"type":"string","description":"验证码"}}},"LoginQrcodeVerifyV2Response":{"type":"object","properties":{"key":{"type":"string","description":"标识ID"},"success":{"type":"boolean","description":"是否成功"}}},"SendContactMessageRequestV1":{"required":["corpName","msgBody","msgType"],"type":"object","properties":{"corpName":{"type":"string","description":"企业微信标识名称:online_da"},"chatContactType":{"type":"string","description":"聊天联系人类型 EXTERNAL/ROOM","enum":["EXTERNAL","INTERNAL","ROOM"]},"internalUserId":{"type":"string","description":"企业微信内部员工userId"},"externalUserId":{"type":"string","description":"企业微信外部客户userId"},"msgType":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","revoke","agree","disagree","voice","video","card","location","emotion","file","link","weapp","chatrecord","todo","vote","collect","redpacket","meeting","meeting_notification","docmsg","markdown","news","calendar","mixed","meeting_voice_call","system","image_text","unknown"]},"msgBody":{"type":"string","description":"消息请求体示例, 文本:{\"content\":\"测试消息\"}"},"actualSenderType":{"type":"string","description":"实际发送人类型","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]},"actualSenderName":{"type":"string","description":"实际发送人名称,会显示在聊天对话中"},"chatContactId":{"type":"string","description":"聊天联系人ID"}}},"WorkWeChatContactMessageCommentRequestV1":{"type":"object","properties":{"startDate":{"type":"string","description":"开始时间(包含) yyyy-MM-dd HH:mm:ss"},"endDate":{"type":"string","description":"结束时间(不包含) yyyy-MM-dd HH:mm:ss"},"pageIndex":{"type":"integer","description":"分页下标 0开始","format":"int32"},"pageSize":{"type":"integer","description":"大小 默认100","format":"int32"}}},"PageResultDtoWorkWeChatContactMessageCommentExtendDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatContactMessageCommentExtendDto"}},"total":{"type":"integer","format":"int64"}}},"WorkWeChatContactMessageCommentExtendDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string","description":"点评租户信息"},"commentType":{"type":"string","description":"评价类型 MATCH:符合 NOMATCH:不符合 UNSURE:不确定","enum":["MATCH","NOMATCH","UNSURE"]},"excellent":{"type":"boolean","description":"是否优秀案例"},"messageId":{"type":"string","description":"消息ID"},"improveType":{"type":"string","description":"修改建议 SOP:修改sop KNOWLEDGE:修改知识库 KEEP:保持不变","enum":["SOP","KNOWLEDGE","KEEP","OTHER"]},"improveSuggest":{"type":"string","description":"修改建议说明"},"commentBy":{"type":"string","description":"点评人ID"},"commentByName":{"type":"string","description":"点评人"},"customerId":{"type":"string","description":"客户ID"},"customerExternalUserId":{"type":"string","description":"客户外部联系人ID"},"customerName":{"type":"string","description":"客户名称"},"workWeChatUserId":{"type":"string","description":"企微ID"},"workWeChatUserName":{"type":"string","description":"企微名称"},"contactId":{"type":"string","description":"聚合聊天联系人ID"},"syncId":{"type":"integer","format":"int32"}}},"ChatGroupWayRequestV1":{"required":["channelName","chatGroupId","stateName"],"type":"object","properties":{"chatGroupId":{"title":"群聊id,ALL_GROUP_CHAT为所有群聊","type":"string"},"channelName":{"title":"渠道名称","type":"string"},"stateName":{"title":"标签","type":"string"},"contactWayExtend":{"$ref":"#/components/schemas/ChatGroupWayRequestV1Extend"},"source":{"title":"来源","type":"string","enum":["DIGITAL_STAFF","AI_ASSISTANT","TENANT_BACKEND","UNKNOWN"]},"replyFlag":{"title":"回复标识:","type":"string","enum":["QUOTE","AT","AT_OR_QUOTE","ALL"]},"limitReplyRule":{"title":"限制回复规则","type":"string"},"userId":{"title":"企业微信号 必填","type":"string"},"chatStaffId":{"title":"员工id","type":"string"},"digitalStaffId":{"title":"数字员工ID","type":"string"},"digitalStaffName":{"title":"数字员工名称","type":"string"},"isDefault":{"title":"是否设为默认场景码","type":"boolean"}}},"ChatGroupWayDtoV1":{"required":["channelName","chatGroupInfo","id","stateName"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"qrCodeId":{"type":"string"},"channelName":{"title":"渠道名称","type":"string"},"stateName":{"title":"标签","type":"string"},"chatGroupInfo":{"$ref":"#/components/schemas/ChatGroupWayGroupInfo"},"qrCodeUrl":{"title":"二维码url","type":"string"},"state":{"type":"string"},"wayExtendResultDTO":{"$ref":"#/components/schemas/ChatGroupWayRequestV1Extend"},"createdTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"},"configId":{"title":"联系我id","type":"string"},"localUrl":{"title":"本地二维码路径","type":"string"},"chatGroupId":{"title":"群id","type":"string"},"replyFlag":{"title":"回复标识","type":"string","enum":["QUOTE","AT","AT_OR_QUOTE","ALL"]},"limitReplyRule":{"title":"限制回复规则","type":"string"}}},"ChatGroupWayGroupInfo":{"required":["chatGroupId"],"type":"object","properties":{"chatGroupId":{"type":"string"},"name":{"type":"string"},"chatId":{"type":"string"}}},"OpenClawStaffAgentRequest":{"type":"object","properties":{"tenant":{"type":"string"},"staffId":{"type":"string"},"agentType":{"type":"string"},"agentConfig":{"type":"object","additionalProperties":{"type":"object"}}}},"OpenClawStaffAgentResponse":{"type":"object","properties":{"state":{"type":"string"}}},"ApplyBindTenantRequest":{"required":["workWeChatUserId"],"type":"object","properties":{"workWeChatUserId":{"type":"string"}}},"ApplyBindTenantResponse":{"type":"object","properties":{"tenant":{"type":"string"}}},"ApplyBindAgentRequest":{"required":["workWeChatUserId"],"type":"object","properties":{"workWeChatUserId":{"type":"string"},"tenant":{"type":"string"},"staffName":{"type":"string"},"agentType":{"type":"string"},"agentConfig":{"type":"object","additionalProperties":{"type":"object"}},"useExist":{"type":"boolean"}}},"ApplyBindAgentResponse":{"type":"object","properties":{"state":{"type":"string"},"staffId":{"type":"string"},"staffName":{"type":"string"},"tenant":{"type":"string"},"chatStaffId":{"type":"string"}}},"TagDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"deleted":{"type":"boolean"}}},"WorkWeChatTagGroupDto":{"type":"object","properties":{"groupId":{"type":"string"},"groupName":{"type":"string"},"createTime":{"type":"integer","format":"int64"},"order":{"type":"integer","format":"int64"},"deleted":{"type":"boolean"},"tag":{"type":"array","items":{"$ref":"#/components/schemas/TagDto"}}}},"SendMessageByConversationGroupIdRequestV1":{"required":["actualSender","actualSenderType","content","msgType"],"type":"object","properties":{"actualSenderType":{"type":"string","description":"实际发送人类型","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]},"actualSender":{"type":"string","description":"实际发送人id"},"actualSenderName":{"type":"string","description":"实际发送人名称"},"msgType":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","revoke","agree","disagree","voice","video","card","location","emotion","file","link","weapp","chatrecord","todo","vote","collect","redpacket","meeting","meeting_notification","docmsg","markdown","news","calendar","mixed","meeting_voice_call","system","image_text","unknown"]},"content":{"type":"object","description":"消息内容,文本/MultipartFile"},"extra":{"type":"object","additionalProperties":{"type":"object","description":"扩展内容"},"description":"扩展内容"}}},"OpenIdRelateExternalUserRequestV1":{"required":["openId","unionId"],"type":"object","properties":{"unionId":{"type":"string","description":"客户外部联系人unionId"},"openId":{"type":"string","description":"渠道openId"},"channelId":{"type":"string","description":"渠道"}}},"WorkWeChatCustomerRequestV1":{"type":"object","properties":{"externalUserId":{"uniqueItems":true,"type":"array","description":"客户外部联系人userId","items":{"type":"string","description":"客户外部联系人userId"}},"chatContactId":{"uniqueItems":true,"type":"array","description":"聚合聊天联系人Id","items":{"type":"string","description":"聚合聊天联系人Id"}}}},"WorkWeChatCustomerDtoV1":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"avatar":{"type":"string","description":"客户头像"},"name":{"type":"string","description":"客户昵称"},"externalUserId":{"type":"string","description":"客户外部联系人userId"},"gender":{"type":"integer","description":"客户性别,0-未知 1-男性 2-女性","format":"int32"},"workWeChatExternalUserId":{"type":"string","description":"企业微信客户外部联系人userId"}}},"NtWorkAgentCloudEvent":{"type":"object","properties":{"source":{"type":"string"},"type":{"type":"string"},"id":{"type":"string"},"time":{"type":"string"},"data":{"$ref":"#/components/schemas/NtWorkAgentEventData"},"specversion":{"type":"string"}}},"NtWorkAgentEventData":{"type":"object","properties":{"corp_id":{"type":"string"},"acct_id":{"type":"string"},"user_id":{"type":"string"},"message":{"$ref":"#/components/schemas/NtWorkMessage"}}},"NtWorkMessage":{"type":"object","properties":{"type":{"type":"integer","format":"int32"},"data":{"type":"string"}}},"CreateWorkWeChatCorpRequest":{"required":["agentId","appName","corpId","corpName","corpShortName","encodingAesKey","name","secret","token"],"type":"object","properties":{"agentId":{"type":"integer","format":"int32"},"corpId":{"maxLength":50,"minLength":0,"type":"string"},"name":{"maxLength":50,"minLength":0,"type":"string"},"appName":{"maxLength":50,"minLength":0,"type":"string"},"secret":{"maxLength":50,"minLength":0,"type":"string"},"token":{"type":"string"},"encodingAesKey":{"type":"string"},"corpName":{"type":"string"},"corpShortName":{"type":"string"},"appConfig":{"type":"string"},"hashId":{"type":"string"},"appType":{"type":"string","enum":["SELF","AGENT","THIRD_PARTY","STANDALONE"]}}},"WorkWeChatCorpDto":{"required":["corpId","createdAt","hashId","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"corpId":{"type":"string"},"hashId":{"type":"string"},"name":{"type":"string"},"corpName":{"type":"string"},"corpShortName":{"type":"string"},"appConfig":{"type":"string"},"oauthUrl":{"type":"string"}}},"ActivateRequest":{"required":["activationCode","workWeChatUserId"],"type":"object","properties":{"workWeChatUserId":{"type":"string","description":"系统内部企微成员id"},"activationCode":{"type":"string","description":"激活码"}}},"LoginQrcodeVerifyRequest":{"required":["code","uuid"],"type":"object","properties":{"uuid":{"type":"string","description":"标识ID"},"code":{"type":"string","description":"验证码"}}},"LoginQrcodeVerifyResponse":{"type":"object","properties":{"uuid":{"type":"string","description":"标识ID"},"success":{"type":"boolean","description":"是否成功"}}},"PushLoginUrlRequest":{"required":["url","uuid"],"type":"object","properties":{"uuid":{"type":"string","description":"标识ID"},"url":{"type":"string","description":"推送URL"}}},"PushLoginUrlResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"是否成功"}}},"ManualLoginRequest":{"required":["password","username","uuid"],"type":"object","properties":{"uuid":{"type":"string","description":"标识ID"},"username":{"type":"string","description":"用户名"},"password":{"type":"string","description":"密码"}}},"ManualLoginResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"是否成功"}}},"KeepLoginRequest":{"required":["uuid"],"type":"object","properties":{"uuid":{"type":"string","description":"标识ID"}}},"KeepLoginResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"是否成功"}}},"AutoLoginRequest":{"required":["uuid"],"type":"object","properties":{"uuid":{"type":"string","description":"标识ID"}}},"AutoLoginResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"是否成功"}}},"OperationResult":{"type":"object","properties":{"success":{"type":"boolean","description":"是否成功"},"message":{"type":"string","description":"消息"}},"description":"操作结果"},"CreateDeviceRequest":{"type":"object","properties":{"deviceType":{"type":"string"},"guid":{"type":"string"}}},"BatchFreeRequest":{"required":["guids"],"type":"object","properties":{"guids":{"type":"array","description":"设备GUID列表","items":{"type":"string","description":"设备GUID列表"}}},"description":"批量释放请求"},"BatchOperationResult":{"type":"object","properties":{"total":{"type":"integer","description":"总数","format":"int32"},"successCount":{"type":"integer","description":"成功数","format":"int32"},"failCount":{"type":"integer","description":"失败数","format":"int32"},"failedGuids":{"type":"array","description":"失败的GUID列表","items":{"type":"string","description":"失败的GUID列表"}}},"description":"批量操作结果"},"ImportResult":{"type":"object","properties":{"errorList":{"type":"array","items":{"type":"object","additionalProperties":{"type":"object"}}},"total":{"type":"integer","format":"int32"},"ignored":{"type":"integer","format":"int32"},"success":{"type":"integer","format":"int32"},"failed":{"type":"integer","format":"int32"}}},"SaveManageRequest":{"required":["employeeId","workWeChatUserId"],"type":"object","properties":{"workWeChatUserId":{"type":"string"},"employeeId":{"type":"string"},"remark":{"type":"string"},"employeeTenant":{"type":"string"},"smsNotify":{"type":"boolean"}}},"SaveManageDTO":{"type":"object","properties":{"workWeChatUserId":{"type":"string"},"employeeId":{"type":"string"},"remark":{"type":"string"},"employeeTenant":{"type":"string"},"smsNotify":{"type":"boolean"}}},"BatchPatchRequest":{"required":["changes","filter"],"type":"object","properties":{"filter":{"$ref":"#/components/schemas/Filter"},"changes":{"$ref":"#/components/schemas/Changes"}}},"Changes":{"required":["model"],"type":"object","properties":{"model":{"type":"string","description":"修改后的模型"}}},"Filter":{"required":["conversationNames","groupName"],"type":"object","properties":{"groupName":{"type":"string","description":"任务清单场景码"},"conversationNames":{"type":"array","description":"任务清单技能名称集合","items":{"type":"string","description":"任务清单技能名称集合"}}}},"BasicCustomerProfile":{"type":"object","properties":{"name":{"maxLength":10,"minLength":0,"type":"string"},"gender":{"type":"string","enum":["UNKNOWN","MALE","FEMALE"]},"birthday":{"type":"string","format":"date"},"idNumber":{"maxLength":18,"minLength":0,"type":"string"},"phone":{"maxLength":15,"minLength":0,"type":"string"},"location":{"maxLength":50,"minLength":0,"type":"string"},"height":{"maxLength":20,"minLength":0,"type":"string"},"weight":{"type":"number","format":"double"},"maritalStatus":{"maxLength":20,"minLength":0,"type":"string"},"ethnicity":{"maxLength":20,"minLength":0,"type":"string"},"occupation":{"maxLength":50,"minLength":0,"type":"string"},"remarkName":{"maxLength":50,"minLength":0,"type":"string"},"blood":{"maxLength":20,"minLength":0,"type":"string"},"medicalHistory":{"maxItems":50,"minItems":0,"uniqueItems":true,"type":"array","items":{"type":"string"}},"medicationHistory":{"maxItems":50,"minItems":0,"uniqueItems":true,"type":"array","items":{"type":"string"}},"allergyHistory":{"maxItems":50,"minItems":0,"uniqueItems":true,"type":"array","items":{"type":"string"}},"isEmployee":{"type":"boolean"},"chiefComplaint":{"maxLength":255,"minLength":0,"type":"string"}}},"UpdateWorkWeChatCorpRequest":{"required":["agentId","appName","corpId","corpName","corpShortName","encodingAesKey","name","secret","token"],"type":"object","properties":{"agentId":{"type":"integer","format":"int32"},"name":{"maxLength":50,"minLength":0,"type":"string"},"corpId":{"maxLength":50,"minLength":0,"type":"string"},"appName":{"maxLength":50,"minLength":0,"type":"string"},"secret":{"maxLength":50,"minLength":0,"type":"string"},"token":{"type":"string"},"encodingAesKey":{"type":"string"},"corpName":{"type":"string"},"corpShortName":{"type":"string"},"appConfig":{"type":"string"},"hashId":{"type":"string"},"appType":{"type":"string","enum":["SELF","AGENT","THIRD_PARTY","STANDALONE"]}}},"PageResultDtoContactWayDtoV1":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ContactWayDtoV1"}},"total":{"type":"integer","format":"int64"}}},"CustomerTagJoinTagDto":{"type":"object","properties":{"id":{"type":"string"},"tagId":{"type":"string"},"customerId":{"type":"string"},"tagName":{"type":"string"},"tagCode":{"type":"string"},"tagMetadata":{"type":"object","additionalProperties":{"type":"object"}},"tagGroupId":{"type":"string"},"tagGroupName":{"type":"string"},"tagGroupCode":{"type":"string"},"tagGroupType":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ChatContactInfoDtoV1":{"type":"object","properties":{"chatContactId":{"type":"string","description":"聊天联系人ID"},"customerId":{"type":"string","description":"客户ID"},"chatDigitalStaffIds":{"uniqueItems":true,"type":"array","description":"数字员工id列表","items":{"type":"string","description":"数字员工id列表"}}}},"GetExternalContactByMobileDtoV1":{"type":"object","properties":{"avatar":{"type":"string","description":"外部联系人头像"},"nickName":{"type":"string","description":"外部联系人昵称"},"phone":{"type":"string","description":"手机号(通过 externalMobile 匹配时返回,昵称匹配时为 null)"},"remarkName":{"type":"string","description":"企微备注"},"tenant":{"type":"string","description":"租户"},"addTime":{"type":"string","description":"添加时间","format":"date-time"},"chatContactId":{"type":"string","description":"聚合聊天联系人id"}}},"ChatStaffSearchDto":{"type":"object","properties":{"chatStaffId":{"type":"string"},"name":{"type":"string"},"mobile":{"type":"string"},"avatar":{"type":"string"},"alias":{"type":"string"},"workWeUserId":{"type":"string","description":"企微员工userId,企微渠道才有"},"chatChannelId":{"type":"string"},"chatChannelName":{"type":"string"},"chatChannelPlatform":{"type":"string","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]}}},"ChatSessionDto":{"required":["createdAt","id","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string"},"chatDigitalStaffId":{"type":"string","description":"数字员工ID"},"chatChannelId":{"type":"string","description":"渠道"},"state":{"type":"string","description":"企业自定义的state参数"},"chatContactId":{"type":"string","description":"联系人"},"metadata":{"type":"object","additionalProperties":{"type":"object","description":"元数据"},"description":"元数据"},"communicationCount":{"type":"integer","description":"沟通次数","format":"int32"},"lastCommunicationTime":{"type":"integer","description":"最近一次沟通时间","format":"int64"},"customerActiveTime":{"type":"integer","description":"客户最近一次发送消息时间","format":"int64"}}},"PageResultDtoChatSessionDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatSessionDto"}},"total":{"type":"integer","format":"int64"}}},"DigitalStaffListItem":{"required":["createdAt","id","staffId","staffName"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"staffId":{"type":"string","description":"数字员工的id"},"staffName":{"type":"string","description":"数字员工的名称"},"aiReply":{"type":"boolean","description":"AI自动回复开关,true-启用,false-禁用"},"internalAiReply":{"type":"boolean","description":"内部联系人AI自动回复开关,true-启用,false-禁用"},"groupAiReply":{"type":"boolean","description":"群聊AI自动回复开关,true-启用,false-禁用"},"sortOrder":{"type":"integer","description":"排序字段,数字越小越靠前","format":"int32"},"status":{"type":"string","description":"数字员工的状态,NORMAL-正常,DELETED-已删除","enum":["DELETED","NORMAL"]},"avatar":{"type":"string","description":"头像URL"},"description":{"type":"string","description":"描述信息"},"patientCount":{"type":"integer","description":"患者数量","format":"int64"},"chatContactId":{"type":"string","description":"关联的聊天联系人 ID(通过 externalUserId 查询时才有值)"}},"description":"数字员工列表项"},"PageResultDtoDigitalStaffListItem":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DigitalStaffListItem"}},"total":{"type":"integer","format":"int64"}}},"ContactCountByDateItem":{"type":"object","properties":{"date":{"type":"string","description":"日期,格式 yyyy-MM-dd","format":"date"},"count":{"type":"integer","description":"联系人数量(按 chatContactId 去重)","format":"int64"}},"description":"按日期统计联系人数量结果项"},"ChatDigitalStaffServiceTimeListDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"digitalStaffId":{"type":"string","description":"关联的聚合聊天数字员工ID"},"staffId":{"type":"string","description":"数字员工的id,32位"},"staffName":{"type":"string","description":"数字员工名称"},"enableType":{"type":"string","description":"回复模式","example":"AUTO_MODE","enum":["ENABLE_AI_REPLY","DISABLE_AI_REPLY","AUTO_MODE","SEMI_AUTO_MODE","SAFE_MODE"]},"enableTypeDesc":{"type":"string","description":"回复模式描述","example":"全自动模式"},"status":{"type":"string","description":"状态","example":"RUNNING","enum":["RUNNING","PENDING","STOPPED"]},"statusDesc":{"type":"string","description":"状态描述","example":"运行中"},"weeklyHours":{"type":"integer","description":"每周时长(小时)","format":"int32","example":32},"serviceTimeSlotsDesc":{"type":"string","description":"服务时段描述","example":"周一上午,周一下午,周二上午"},"startDate":{"type":"string","description":"生效日期","format":"date","example":"2024-01-01"},"endDate":{"type":"string","description":"失效日期,为空表示长期有效","format":"date","example":"2024-12-31"},"timeSlots":{"type":"array","description":"时段配置列表","items":{"$ref":"#/components/schemas/ChatDigitalStaffServiceTimeSlotDto"}},"operationBy":{"type":"string","description":"操作人"},"metadata":{"$ref":"#/components/schemas/ServiceTimeMetadata"}}},"PageResultDtoChatDigitalStaffServiceTimeListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatDigitalStaffServiceTimeListDto"}},"total":{"type":"integer","format":"int64"}}},"ChatServiceTimeStatusDto":{"type":"object","properties":{"inServiceTime":{"type":"boolean","description":"是否在服务时间内","example":true},"currentTime":{"type":"string","description":"当前时间","format":"date-time"},"nextServiceTime":{"type":"string","description":"下次服务开始时间(如果当前不在服务时间内)","format":"date-time"},"message":{"type":"string","description":"说明信息","example":"在服务时间内,允许AI回复"},"shouldEnableManualReply":{"type":"boolean","description":"是否应该启用人工回复","example":false},"shouldEnableSafeMode":{"type":"boolean","description":"是否应该启用诊间安全模式","example":false}}},"ChatCustomerDtoV1":{"required":["createdAt","id","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string"},"customerId":{"type":"string","description":"crm客户ID"},"name":{"type":"string","description":"联系人昵称"},"avatar":{"type":"string","description":"联系人头像地址"}}},"PageResultDtoChatContactWayRichDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactWayRichDto"}},"total":{"type":"integer","format":"int64"}}},"ChatContactMessageDtoV1":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"content":{"type":"string"},"sender":{"type":"string","enum":["USER","SELF"]}}},"PageResultDtoChatContactsMessageDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactsMessageDto"}},"total":{"type":"integer","format":"int64"}}},"MessageAdviceDto":{"type":"object","properties":{"agentChatId":{"type":"string","description":"agent会话ID"},"advice":{"type":"string","description":"建议"},"conversationGroupId":{"type":"string","description":"会话组ID"}}},"MessageSopDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"operatorId":{"type":"string","description":"操作人ID"},"operatorName":{"type":"string","description":"操作人姓名"},"optimizationBeforeContent":{"type":"string","description":"优化前内容"},"optimizationAfterContent":{"type":"string","description":"优化后内容"},"optimizationEntry":{"type":"string","description":"优化类型 COMMENT 点评 ADVICE 建议 ","enum":["COMMENT","ADVICE"]},"commentId":{"type":"string","description":"点评ID "},"optimizationResult":{"type":"boolean","description":"是否成功 "}}},"ChatDigitalEmployeeDto":{"type":"object","properties":{"digitalEmployeeName":{"type":"string"},"taskName":{"type":"string"},"conversationGroupId":{"type":"string"},"conversationId":{"type":"string"}}},"ChatMessageActualSenderDtoObject":{"type":"object","properties":{"name":{"type":"string"},"data":{"type":"object","oneOf":[{"$ref":"#/components/schemas/ChatDigitalEmployeeDto"}]}}},"ChatContactsRoomDto":{"required":["chatGroupId","contactId","createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"contactId":{"type":"string","description":"会话id,群聊id"},"chatGroupId":{"type":"string","description":"群聊id"},"name":{"type":"string","description":"群聊名称"},"avatar":{"type":"string","description":"头像"},"remark":{"type":"string","description":"备注"},"lastMsgTime":{"type":"string","description":"最后消息时间"},"lastMsgContext":{"type":"string","description":"最后消息内容"},"membership":{"type":"integer","description":"群成员数量","format":"int32"},"status":{"type":"string","description":"状态","enum":["NORMAL","LEAVE","DISBAND"]},"aiReply":{"type":"boolean","description":"AI回复开关是否开启"},"joinTime":{"type":"string","description":"加入时间"},"quitTime":{"type":"string","description":"退群时间"}}},"PageResultDtoChatContactsRoomDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactsRoomDto"}},"total":{"type":"integer","format":"int64"}}},"ChatContactsInternalDto":{"type":"object","properties":{"contactsId":{"type":"string","description":"联系id"},"employeeId":{"type":"string","description":"员工id"},"avatar":{"type":"string","description":"客户头像"},"nickName":{"type":"string","description":"客户昵称"},"remark":{"type":"string","description":"客户备注"},"lastMsgTime":{"type":"string","description":"最后消息时间"},"lastMsgContext":{"type":"string","description":"最后消息内容"}}},"PageResultDtoChatContactsInternalDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactsInternalDto"}},"total":{"type":"integer","format":"int64"}}},"PageResultDtoChatContactsExternalDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactsExternalDto"}},"total":{"type":"integer","format":"int64"}}},"ContactAiProfileDiffDto":{"type":"object","properties":{"aiPhone":{"type":"string","description":"AI画像手机号(与备注手机号不同时返回,可能已脱敏)"},"aiName":{"type":"string","description":"AI画像姓名(与备注不同时返回)"}}},"PageResultDtoWorkWeChatUserRelateDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatUserRelateDto"}},"total":{"type":"integer","format":"int64"}}},"UserRelateStatisticsDto":{"type":"object","properties":{"totalNum":{"type":"integer","format":"int64"},"onlineNum":{"type":"integer","format":"int64"},"offlineNum":{"type":"integer","format":"int64"}}},"AbstractInstanceInfoDto":{"type":"object","properties":{"id":{"type":"string","description":"实例id"},"createdAt":{"type":"string","description":"创建时间","format":"date-time"},"online":{"type":"boolean","description":"是否在线"},"type":{"type":"string","description":"实例类型","enum":["PAD_WORK","NT_WORK"]}},"description":"实例信息","discriminator":{"propertyName":"type"}},"ManageWorkWeChatUserDto":{"type":"object","properties":{"workWeChatUserId":{"type":"string","description":"workWeChatUserId"},"avatar":{"type":"string","description":"头像"},"acctId":{"type":"string","description":"账号ID"},"mobile":{"type":"string","description":"手机号"},"name":{"type":"string","description":"姓名"},"alias":{"type":"string","description":"昵称"},"online":{"type":"boolean","description":"是否在线"},"corpName":{"type":"string","description":"企业名称"},"corpShortName":{"type":"string","description":"企业简称"},"instanceInfos":{"type":"array","description":"实例信息","items":{"oneOf":[{"$ref":"#/components/schemas/AbstractInstanceInfoDto"},{"$ref":"#/components/schemas/NtWorkInstanceInfoDto"},{"$ref":"#/components/schemas/PadWorkInstanceInfoDto"}]}}}},"NtWorkInstanceInfoDto":{"type":"object","description":"ntWork 实例信息","allOf":[{"$ref":"#/components/schemas/AbstractInstanceInfoDto"},{"type":"object","properties":{"apiUrl":{"type":"string","description":"api地址"}}}]},"PadWorkInstanceInfoDto":{"type":"object","description":"padWork 实例信息","allOf":[{"$ref":"#/components/schemas/AbstractInstanceInfoDto"},{"type":"object","properties":{"deviceGuid":{"type":"string","description":"设备GUID"}}}]},"PageResultDtoWorkWeChatUserNtWorkUserDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatUserNtWorkUserDto"}},"total":{"type":"integer","format":"int64"}}},"WorkWeChatUserNtWorkUserDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"ntWorkUserId":{"type":"string"},"corpId":{"type":"string"},"acctId":{"type":"string"},"avatar":{"type":"string"},"conversationId":{"type":"string"},"mobile":{"type":"string"},"nickname":{"type":"string"},"position":{"type":"string"},"realName":{"type":"string"},"remark":{"type":"string"},"sex":{"type":"integer","format":"int32"},"unionId":{"type":"string"},"userId":{"type":"string"},"username":{"type":"string"},"corpName":{"type":"string"},"corpShortName":{"type":"string"},"ntWorkInstanceId":{"type":"string"},"status":{"type":"string"},"latestMessageTime":{"type":"string","format":"date-time"},"workWeChatUserId":{"type":"string"},"countStaff":{"type":"integer","format":"int64"},"customerNums":{"type":"integer","format":"int64"},"deviceType":{"type":"string"},"corpAppType":{"type":"string"}}},"WorkWeChatUserSyncGroupProgressDto":{"type":"object","properties":{"totalCount":{"title":"客户群总数","type":"integer","format":"int32"},"successCount":{"title":"成功同步数","type":"integer","format":"int64"},"pendingCount":{"title":"待同步数(待同步+同步中+失败)","type":"integer","format":"int64"},"failedCount":{"title":"失败数","type":"integer","format":"int64"},"syncingCount":{"title":"同步中数量","type":"integer","format":"int64"},"errorMessage":{"title":"错误信息","type":"string"},"status":{"title":"同步进度状态","type":"string","enum":["PROCESSING","COMPLETED","PARTIAL_SUCCESS","FAILED"]},"workWeChatUserId":{"title":"企微员工id","type":"string"},"progressPercentage":{"type":"number","format":"double"}}},"WorkWeChatUserSyncCustomerProgressDto":{"type":"object","properties":{"totalCount":{"title":"客户总数","type":"integer","format":"int32"},"successCount":{"title":"成功同步数","type":"integer","format":"int64"},"pendingCount":{"title":"待同步数(待同步+同步中+失败)","type":"integer","format":"int64"},"failedCount":{"title":"失败数","type":"integer","format":"int64"},"syncingCount":{"title":"同步中数量","type":"integer","format":"int64"},"errorMessage":{"title":"错误信息","type":"string"},"status":{"title":"同步进度状态","type":"string","enum":["PROCESSING","COMPLETED","PARTIAL_SUCCESS","FAILED"]},"workWeChatUserId":{"title":"企微员工id","type":"string"},"progressPercentage":{"type":"number","format":"double"}}},"AbilityDto":{"title":"能力列表","type":"object","properties":{"capabilityId":{"title":"能力ID","type":"integer","format":"int64"},"accountSceneCode":{"title":"账号场景码","type":"string"},"accountSceneId":{"title":"账号场景ID","type":"string"},"roleSceneId":{"title":"角色场景ID","type":"integer","format":"int64"},"roleSceneName":{"title":"角色场景名称","type":"string"},"roleType":{"title":"角色类型","type":"integer","format":"int64"},"roleTypeName":{"title":"角色类型名称","type":"string"},"accountId":{"title":"账号ID","type":"string"},"isDefault":{"title":"是否为默认场景(0=否 1=是)","type":"integer","format":"int32"}}},"StaffCapabilityGroupDto":{"type":"object","properties":{"staffId":{"title":"数字员工ID","type":"string"},"staffName":{"title":"数字员工名称","type":"string"},"abilities":{"title":"能力列表","type":"array","items":{"$ref":"#/components/schemas/AbilityDto"}}}},"DigitalStaffDto":{"type":"object","properties":{"id":{"title":"数字员工ID","type":"string"},"name":{"title":"数字员工名称","type":"string"},"bound":{"title":"是否已绑定","type":"boolean"},"avatar":{"title":"头像URL","type":"string"},"description":{"title":"描述信息","type":"string"}}},"SseEmitter":{"type":"object","properties":{"timeout":{"type":"integer","format":"int64"}}},"WorkWeChatUserActiveDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"userId":{"type":"string","description":"企业微信开放平台中的userId"},"name":{"type":"string","description":"企微微信内部成员姓名"},"mobile":{"type":"string","description":"企微微信内部成员手机号"},"gender":{"type":"integer","description":"企微微信内部成员性别","format":"int32"},"email":{"type":"string","description":"企微微信内部成员email"},"avatar":{"type":"string","description":"企微微信内部成员头像"},"alias":{"type":"string","description":"企微微信内部成员别名"},"status":{"type":"integer","description":"激活状态: 1=已激活,2=已禁用,4=未激活,5=退出企业","format":"int32"},"online":{"type":"boolean","description":"是否在线"},"employeeId":{"type":"string","description":"员工id"},"workWeChatUserId":{"type":"string","description":"企微账号userid"},"workWeChatCorpId":{"type":"string","description":"企微"},"corpName":{"type":"string","description":"企微名称长名称"},"corpShortName":{"type":"string","description":"企微名称短名称"},"workWeChatOldUserId":{"type":"string","description":"企微账号userid"}}},"PageResultDtoWorkWeChatCorpRelateDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatCorpRelateDto"}},"total":{"type":"integer","format":"int64"}}},"PageResultDtoContactWayDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ContactWayDto"}},"total":{"type":"integer","format":"int64"}}},"VariableValueDto":{"required":["createdAt","definitionId","name","scopeId"],"type":"object","properties":{"scopeId":{"type":"string"},"definitionId":{"type":"string"},"name":{"type":"string"},"valueId":{"type":"string"},"value":{"type":"object"},"createdAt":{"type":"integer","format":"int64"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"}}},"PageResultDtoVariableValueRevisionDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VariableValueRevisionDto"}},"total":{"type":"integer","format":"int64"}}},"VariableValueRevisionDto":{"required":["revisionAt","version"],"type":"object","properties":{"version":{"type":"integer","format":"int32"},"revisionAt":{"type":"integer","format":"int64"},"value":{"type":"object"}}},"PageResultDtoUserChatDesensitizeDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/UserChatDesensitizeDto"}},"total":{"type":"integer","format":"int64"}}},"MessageSummaryDTO":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"contactId":{"type":"string","description":"联系人ID集合"},"summary":{"type":"string","description":"总结摘要"},"summaryDate":{"type":"string","description":"总结日期","format":"date"},"summaryCount":{"type":"integer","description":"互动次数","format":"int64"},"keyWords":{"type":"array","description":"关键字","items":{"type":"string","description":"关键字"}},"customerName":{"type":"string","description":"客户名称"},"workWeChatUserName":{"type":"string","description":"企微名称"}}},"PageResultDtoMessageSummaryDTO":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MessageSummaryDTO"}},"total":{"type":"integer","format":"int64"}}},"SopOptimizeRecordRetryDTO":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"optimizationResult":{"type":"boolean"}}},"PageResultDtoSopOptimizeRecordDTO":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SopOptimizeRecordDTO"}},"total":{"type":"integer","format":"int64"}}},"SopOptimizeRecordDTO":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"commentId":{"type":"string","description":"点评ID"},"optimizationEntry":{"type":"string","description":"优化类型 COMMENT 点评 ADVICE 建议","enum":["COMMENT","ADVICE"]},"optimizationResult":{"type":"boolean","description":"优化结果"},"optimizationBeforeContent":{"type":"string","description":"优化前内容"},"optimizationAfterContent":{"type":"string","description":"优化后内容"},"operatorId":{"type":"string","description":"操作人ID"},"operatorName":{"type":"string","description":"操作人"},"workWechatUserName":{"type":"string","description":"企微名称"}}},"ConversationGroupDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"PageResultDtoCustomerTagRuleDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomerTagRuleDto"}},"total":{"type":"integer","format":"int64"}}},"CustomerExternalContactJoinDto":{"required":["createdAt","customerName","exteralContanctId","externalUserId","id","ntWorkUserId","tntCustomerId","weWorkUserName","workWeChatCustomerId"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"exteralContanctId":{"type":"string","description":"标签id"},"workWeChatCustomerId":{"type":"string","description":"企微客户id"},"tntCustomerId":{"type":"string","description":"客户id"},"ntWorkUserId":{"type":"string","description":"企微用户id"},"weWorkUserName":{"type":"string","description":"企微用户名称"},"externalUserId":{"type":"string","description":"企微外部联系人id"},"customerName":{"type":"string","description":"客户名称"},"remarkName":{"type":"string","description":"客户备注"},"mobile":{"type":"string","description":"客户手机号"},"gender":{"type":"string","description":"客户性别"},"followTime":{"type":"string","description":"添加时间","format":"date-time"},"lastMsgTime":{"type":"string","description":"最后消息时间","format":"date-time"},"addWay":{"type":"integer","description":"添加方式","format":"int32"},"wayState":{"type":"string","description":"添加state"},"addFirendTime":{"type":"string","description":"添加好友时间","format":"date-time"},"followStatus":{"type":"integer","description":"状态","format":"int32"},"externalContactUpdateAt":{"type":"string","description":"修改时间","format":"date-time"},"tags":{"type":"array","items":{"$ref":"#/components/schemas/CustomerTagJoinTagDto"}},"addFirendWayTag":{"type":"string"}}},"PageResultDtoCustomerExternalContactJoinDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomerExternalContactJoinDto"}},"total":{"type":"integer","format":"int64"}}},"CustomerInterventionRuleContainKeywordDto":{"required":["id"],"type":"object","properties":{"id":{"type":"string","description":"规则id"},"keyword":{"type":"array","description":"关键词","items":{"type":"string","description":"关键词"}},"title":{"type":"string","description":"规则名称"}}},"CustomerInterventionReplyDto":{"required":["actualSenderName","contactId","contactMessageId","createdAt","customerId","customerName","id","msgBody","msgTime","msgType"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"contactMessageId":{"type":"string","description":"回复消息id"},"contactId":{"type":"string","description":"联系人id"},"actualSenderName":{"type":"string","description":"实际发送人名称"},"customerId":{"type":"string","description":"客户id"},"customerName":{"type":"string"},"msgType":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","revoke","agree","disagree","voice","video","card","location","emotion","file","link","weapp","chatrecord","todo","vote","collect","redpacket","meeting","meeting_notification","docmsg","markdown","news","calendar","mixed","meeting_voice_call","system","image_text","unknown"]},"msgBody":{"type":"object","additionalProperties":{"type":"object","description":"消息内容"},"description":"消息内容"},"msgTime":{"type":"string","description":"消息时间"},"digitalStaffTagId":{"type":"string","description":"数字员工标签id"},"digitalStaffId":{"type":"string","description":"数字员工id"},"digitalStaffName":{"type":"string","description":"数字员工名称"}}},"PageResultDtoCustomerInterventionReplyDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomerInterventionReplyDto"}},"total":{"type":"integer","format":"int64"}}},"CustomerInterventionReplyChatMessageDto":{"type":"object","properties":{"assistantId":{"type":"string"},"assistantName":{"type":"string"},"assistantAvatar":{"type":"string"},"customerId":{"type":"string"},"customerName":{"type":"string"},"customerAvatar":{"type":"string"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/ChatMessageDto"}}}},"PageResultDtoCustomerInterventionRecordDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomerInterventionRecordDto"}},"total":{"type":"integer","format":"int64"}}},"CustomerInterventionHandleDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"recordId":{"type":"string","description":"介入记录id"},"handleTime":{"type":"string","description":"处理时间","format":"date-time"},"handleStatus":{"type":"string","description":"处理状态","enum":["PENDING","PROCESSING","CONTACTED","FINISHED"]},"handleBy":{"type":"string","description":"处理人"},"handleByName":{"type":"string","description":"处理人姓名"},"handleInfo":{"type":"string","description":"处理信息"}},"description":"处理记录列表,按创建时间倒序"},"CustomerInterventionRecordSimpleDto":{"required":["contactId","createdAt","id","messageContent","receiverId","receiverName","ruleId","senderId","senderName","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string","description":"租户"},"ruleId":{"type":"string","description":"规则id"},"senderId":{"type":"string","description":"发送人id"},"senderName":{"type":"string","description":"发送人名称"},"contactId":{"type":"string","description":"联系人id"},"messageContent":{"type":"string","description":"消息内容"},"handleBy":{"type":"string","description":"处理人"},"handleByName":{"type":"string","description":"处理人姓名"},"handleAt":{"type":"string","description":"处理时间","format":"date-time"},"handleStatus":{"type":"string","description":"处理状态","enum":["PENDING","PROCESSING","CONTACTED","FINISHED"]},"questionType":{"type":"string","description":"问题类型"},"level":{"type":"string","description":"级别"},"receiverId":{"type":"string","description":"接收人id"},"receiverName":{"type":"string","description":"接收人名称"},"handleInfo":{"type":"string","description":"处理信息"}},"description":"介入记录"},"CustomerInterventionRecordWithHandlesDto":{"type":"object","properties":{"record":{"$ref":"#/components/schemas/CustomerInterventionRecordSimpleDto"},"handles":{"type":"array","description":"处理记录列表,按创建时间倒序","items":{"$ref":"#/components/schemas/CustomerInterventionHandleDto"}}}},"CustomerInterventionRecordAnalysisByDto":{"required":["dimension","quantity"],"type":"object","properties":{"dimension":{"type":"string"},"quantity":{"type":"integer","format":"int32"}}},"PageResultDtoCustomerIntentionRecordDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomerIntentionRecordDto"}},"total":{"type":"integer","format":"int64"}}},"PageResultDtoConversationGroupEventDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ConversationGroupEventDto"}},"total":{"type":"integer","format":"int64"}}},"PageResultDtoConversationGroupEventDefinitionDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ConversationGroupEventDefinitionDto"}},"total":{"type":"integer","format":"int64"}}},"ChatDto":{"required":["conversationGroupId","createdAt","id","source","status"],"type":"object","properties":{"id":{"type":"string"},"conversationGroupId":{"type":"string"},"conversationId":{"type":"string"},"question":{"type":"string"},"answer":{"type":"string"},"source":{"type":"string","enum":["USER","TRIGGER"]},"createdAt":{"type":"integer","format":"int64"},"completedAt":{"type":"integer","format":"int64"},"failedAt":{"type":"integer","format":"int64"},"error":{"type":"string"},"status":{"type":"string","enum":["CREATED","IN_PROGRESS","COMPLETED","FAILED","CANCELED"]},"metadata":{"type":"object","additionalProperties":{"type":"object"}},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"deleted":{"type":"boolean"}}},"PageResultDtoChatDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatDto"}},"total":{"type":"integer","format":"int64"}}},"ConversationChatMessageDto":{"required":["chatId","createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"chatId":{"type":"string"},"type":{"type":"string","enum":["SYSTEM_MESSAGE","ROUTER","KNOWLEDGE","MEMORY","FUNCTION_CALL","TOOL_OUTPUT"]},"data":{"type":"object","additionalProperties":{"type":"object"}},"createdAt":{"type":"integer","format":"int64"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"}}},"PageResultDtoConversationChatMessageDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ConversationChatMessageDto"}},"total":{"type":"integer","format":"int64"}}},"ConversationChatUsageStatDto":{"type":"object","properties":{"statDate":{"type":"string","format":"date"},"chatDigitalStaffId":{"type":"string"},"chatDigitalStaffName":{"type":"string"},"chatCount":{"type":"integer","format":"int64"},"inputTokens":{"type":"integer","format":"int64"},"outputTokens":{"type":"integer","format":"int64"},"inputCost":{"type":"number"},"outputCost":{"type":"number"}}},"PageResultDtoConversationChatUsageStatDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ConversationChatUsageStatDto"}},"total":{"type":"integer","format":"int64"}}},"ConversationChatUsageStatTotalDto":{"type":"object","properties":{"digitalStaffCount":{"type":"integer","format":"int64"},"totalChatCount":{"type":"integer","format":"int64"},"totalInputTokens":{"type":"string"},"totalOutputTokens":{"type":"string"},"totalInputCost":{"type":"number"},"totalOutputCost":{"type":"number"}}},"ConversationChatUsageStatDetailDto":{"type":"object","properties":{"statDate":{"type":"string","format":"date"},"chatDigitalStaffId":{"type":"string"},"chatDigitalStaffName":{"type":"string"},"modelCode":{"type":"string"},"chatCount":{"type":"integer","format":"int64"},"inputTokens":{"type":"integer","format":"int64"},"outputTokens":{"type":"integer","format":"int64"},"inputCost":{"type":"number"},"outputCost":{"type":"number"}}},"ConversationChatUsageStatCostDetailDto":{"type":"object","properties":{"statTime":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ConversationChatUsageStatListDto"}}}},"ConversationChatUsageStatListDto":{"type":"object","properties":{"hashId":{"type":"string"},"state":{"type":"string"},"modelCode":{"type":"string"},"chatCount":{"type":"integer","format":"int32"},"inputTokens":{"type":"integer","format":"int32"},"inputCost":{"type":"number"},"outputTokens":{"type":"integer","format":"int32"},"outputCost":{"type":"number"},"currency":{"type":"string"},"statDate":{"type":"string","format":"date"},"statTime":{"type":"string","format":"date-time"},"chatStaffId":{"type":"string"},"chatDigitalStaffId":{"type":"string"},"chatDigitalStaffName":{"type":"string"}}},"MessageHistory":{"type":"object","properties":{"customerName":{"type":"string"},"customerId":{"type":"string"},"customerAvatar":{"type":"string"},"workWechatId":{"type":"string"},"workWechatName":{"type":"string"},"workWechatAvatar":{"type":"string"},"histories":{"type":"array","items":{"$ref":"#/components/schemas/MessageHistoryDto"}}}},"MessageHistoryDto":{"required":["contactId","createdAt","id","msgBody","msgId","msgType","receiver","receiverType","sender","senderType"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"contactId":{"type":"string","description":"联系id"},"senderType":{"type":"string","description":"发送人类型","enum":["EXTERNAL","INTERNAL","ROOM"]},"sender":{"type":"string","description":"发送人"},"receiverType":{"type":"string","description":"接收人类型","enum":["EXTERNAL","INTERNAL","ROOM"]},"receiver":{"type":"string","description":"接收人"},"msgId":{"type":"string","description":"消息id"},"msgType":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","revoke","agree","disagree","voice","video","card","location","emotion","file","link","weapp","chatrecord","todo","vote","collect","redpacket","meeting","meeting_notification","docmsg","markdown","news","calendar","mixed","meeting_voice_call","system","image_text","unknown"]},"isSelf":{"type":"boolean"},"msgBody":{"type":"object","additionalProperties":{"type":"object","description":"消息内容"},"description":"消息内容"}}},"MessageCommentListDto":{"type":"object","properties":{"list":{"type":"array","items":{"$ref":"#/components/schemas/MessageCommentDto"}},"total":{"type":"integer","format":"int64"}}},"MessageCommentCountDTO":{"type":"object","properties":{"commentDate":{"type":"string"},"totalCount":{"type":"integer","format":"int64"},"matchCount":{"type":"integer","format":"int64"},"excellentCount":{"type":"integer","format":"int64"}}},"MessageCommentCountListDto":{"type":"object","properties":{"total":{"type":"integer","format":"int64"},"list":{"type":"array","items":{"$ref":"#/components/schemas/MessageCommentCountDTO"}}}},"PageResultDtoChatStaffDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatStaffDto"}},"total":{"type":"integer","format":"int64"}}},"PageResultDtoScriptContentDtoV1":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ScriptContentDtoV1"}},"total":{"type":"integer","format":"int64"}}},"PageResultDtoChatMessageDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatMessageDto"}},"total":{"type":"integer","format":"int64"}}},"ChatMessageCommentDatasetDto":{"type":"object","properties":{"knowledgeBaseId":{"type":"integer","description":"知识库ID","format":"int32"},"name":{"type":"string","description":"名称"},"datasetId":{"type":"string","description":"数据集ID"}}},"PageResultDtoChatMessageCommentDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatMessageCommentDto"}},"total":{"type":"integer","format":"int64"}}},"PageResultDtoChatDigitalStaffDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatDigitalStaffDto"}},"total":{"type":"integer","format":"int64"}}},"DigitalStaffTag":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tagName":{"type":"string","description":"标签名称"},"stateName":{"type":"string","description":"state名称"},"chatChannelName":{"type":"string","description":"渠道名称"},"chatChannelId":{"type":"string","description":"渠道ID"},"chatPlatform":{"type":"string","description":"平台名称","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]},"state":{"type":"string","description":"state 用来筛选"},"mentorUrl":{"type":"string","description":"二维码展示url"},"metadata":{"type":"object","additionalProperties":{"type":"object","description":"元数据"},"description":"元数据"}}},"ChatContactRoomDto":{"required":["chatGroupId","contactId","createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"contactId":{"type":"string","description":"会话id,群聊id"},"chatGroupId":{"type":"string","description":"群聊id"},"name":{"type":"string","description":"群聊名称"},"avatar":{"type":"string","description":"头像"},"remark":{"type":"string","description":"备注"},"lastMsgTime":{"type":"string","description":"最后消息时间"},"lastMsgContext":{"type":"string","description":"最后消息内容"},"membership":{"type":"integer","description":"群成员数量","format":"int32"},"status":{"type":"string","description":"状态","enum":["NORMAL","LEAVE","DISBAND"]},"aiReply":{"type":"boolean","description":"AI回复开关是否开启"},"joinTime":{"type":"string","description":"加入时间"},"quitTime":{"type":"string","description":"退群时间"},"chatChannelId":{"type":"string","description":"渠道id"},"platform":{"type":"string","description":"平台","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]},"chatStaffId":{"type":"string","description":"聊天号id(员工id)"},"chatDigitalStaffId":{"type":"string","description":"数字员工ID"}}},"PageResultDtoChatContactRoomDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactRoomDto"}},"total":{"type":"integer","format":"int64"}}},"DigitalStaffCustomerTodoDto":{"type":"object","properties":{"customerExtendedId":{"type":"string","description":"待办项扩展ID"},"chatContactId":{"type":"string","description":"联系人ID"},"name":{"type":"string","description":"客户名称"},"customerId":{"type":"string","description":"客户ID"},"desc":{"type":"string","description":"待办描述,如:缺少:手机号、年龄"},"type":{"type":"string","description":"待办类型","enum":["PROFILE_INCOMPLETE","TAG_INCOMPLETE"]}},"description":"数字员工客户待办项"},"PageResultDtoChatContactDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactDto"}},"total":{"type":"integer","format":"int64"}}},"ChatContactExtendedDto":{"required":["id"],"type":"object","properties":{"id":{"type":"string","description":"会话ID(ChatSession的max(hashId))"},"chatContactId":{"type":"string","description":"联系人ID"},"chatCustomerId":{"type":"string","description":"聚合聊天客户id"},"chatStaffId":{"type":"string","description":"聚合聊天员工id"},"chatDigitalStaffId":{"type":"string","description":"数字员工id"},"nickName":{"type":"string","description":"名称/昵称"},"avatar":{"type":"string","description":"头像"},"gender":{"type":"integer","description":"性别","format":"int32"},"remark":{"type":"string","description":"备注"},"customerId":{"type":"string","description":"客户ID"},"communicationCount":{"type":"integer","description":"沟通次数","format":"int32"},"lastCommunicationTime":{"type":"integer","description":"最后沟通时间:毫秒时间戳","format":"int64"},"scanTime":{"type":"string","description":"扫码时间","format":"date-time"},"createdAt":{"type":"string","description":"添加时间","format":"date-time"},"age":{"type":"integer","description":"年龄","format":"int32"},"phone":{"type":"string","description":"手机号码"},"name":{"type":"string","description":"姓名"},"relationship":{"type":"string","description":"关系"},"isAttention":{"type":"boolean","description":"是否重点关注"},"sourceChannel":{"type":"string","description":"来源渠道"},"belongMentor":{"type":"string","description":"所属医助"},"chatSessionIds":{"uniqueItems":true,"type":"array","description":"会话ID列表","items":{"type":"string","description":"会话ID列表"}},"customerTags":{"type":"array","description":"客户标签列表","items":{"$ref":"#/components/schemas/CustomerTagDto"}},"customerProfile":{"$ref":"#/components/schemas/BasicCustomerProfile"}}},"CustomerTagDto":{"type":"object","properties":{"tagId":{"type":"string","description":"标签ID"},"tagName":{"type":"string","description":"标签名称"},"tagCode":{"type":"string","description":"标签编码"},"tagGroupId":{"type":"string","description":"标签组ID"},"tagGroupName":{"type":"string","description":"标签组名称"},"tagGroupCode":{"type":"string","description":"标签组编码"},"tagGroupType":{"type":"string","description":"标签组类型"}},"description":"客户标签列表"},"PageResultDtoChatContactExtendedDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactExtendedDto"}},"total":{"type":"integer","format":"int64"}}},"PageListResponseQuerySkillListItem":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"result":{"type":"array","items":{"$ref":"#/components/schemas/QuerySkillListItem"}},"total":{"type":"integer","format":"int64"},"pageSize":{"type":"integer","format":"int32"},"current":{"type":"integer","format":"int32"}}},"QuerySkillListItem":{"type":"object","properties":{"skillId":{"type":"string"},"skillName":{"type":"string"},"skillType":{"type":"integer","format":"int32"},"skillTypeName":{"type":"string"},"skillDescription":{"type":"string"},"state":{"type":"integer","format":"int32"},"stateName":{"type":"string"},"agentType":{"type":"integer","format":"int32"},"agentTypeName":{"type":"string"},"versionCode":{"type":"string"},"referencedPostCount":{"type":"integer","format":"int32"},"referencedStaffCount":{"type":"integer","description":"员工引用数量","format":"int32"},"creatorName":{"type":"string","description":"岗位引用数量"},"createdAt":{"type":"string"},"editorName":{"type":"string"},"editedAt":{"type":"string"}}},"DigitalStaffChannel":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"channelId":{"type":"string","description":"渠道Id"},"channelName":{"type":"string","description":"渠道名称"},"chatPlatform":{"type":"string","description":"渠道名称","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]}}},"ChatChannel":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"name":{"type":"string"},"appId":{"type":"string"},"platform":{"type":"string","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]}}},"AssistantDigitalStaffView":{"type":"object","properties":{"assistantId":{"type":"string"},"assistantName":{"type":"string"},"avatar":{"type":"string"},"digitalStaffCount":{"type":"integer","format":"int64"},"nextCursor":{"type":"integer","format":"int64"},"digitalStaffs":{"type":"array","items":{"$ref":"#/components/schemas/ChatDigitalStaffDto"}}}},"CustomerDto":{"required":["id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"name":{"type":"string"},"fullName":{"type":"string"},"gender":{"type":"string","enum":["UNKNOWN","MALE","FEMALE"]},"avatar":{"type":"string"},"mobile":{"type":"string"},"sourceId":{"type":"string"},"sourceType":{"type":"string","enum":["WORK_WECHAT_CUSTOMER","TENANT_BACKEND","OUTER"]}}},"ConsumeProjectItem":{"type":"object","properties":{"title":{"title":"项目标题","type":"string"},"price":{"title":"价格","type":"string"},"count":{"title":"数量","type":"integer","format":"int32"},"desc":{"title":"描述","type":"string"},"orderId":{"title":"订单id","type":"string"},"state":{"title":"订单状态","type":"integer","format":"int32"},"stateDesc":{"title":"订单状态描述","type":"string"},"orderCreateTime":{"title":"订单创建时间","type":"string"}}},"PatientConsumeItem":{"type":"object","properties":{"name":{"title":"患者姓名","type":"string"},"portrait":{"title":"患者头像","type":"string"},"sex":{"title":"性别 1男 2女","type":"integer","format":"int32"},"pkgName":{"title":"套餐名称","type":"string"},"operTime":{"title":"操作时间","type":"string"},"totalCount":{"title":"总数量","type":"integer","format":"int32"},"totalPrice":{"title":"总价格","type":"string"},"projects":{"type":"array","items":{"$ref":"#/components/schemas/ConsumeProjectItem"}}}},"MedicalDailyDto":{"type":"object","properties":{"id":{"type":"integer","description":"id","format":"int32"},"customerId":{"type":"string","description":"客户id"},"tenant":{"type":"string","description":"租户"},"doctorUid":{"type":"string","description":"医生uid"},"scheduleType":{"type":"string","description":"日程类型:手术、复查、随访、其他"},"title":{"type":"string","description":"日程标题 yyyy-MM-dd"},"scheduleDate":{"type":"string","description":"日程时间"},"remark":{"type":"string","description":"日程备注"},"createTime":{"type":"string","description":"创建时间 yyyy-MM-dd HH:mm:ss"},"updateTime":{"type":"string","description":"更新时间 yyyy-MM-dd HH:mm:ss"}}},"PageResultDtoMedicalDailyDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MedicalDailyDto"}},"total":{"type":"integer","format":"int64"}}},"ChatMessageCombinedDto":{"type":"object","properties":{"msgDate":{"type":"string"},"combinedMsgBody":{"type":"array","items":{"type":"object","additionalProperties":{"type":"object"}}}}},"PageResultDtoChatMessageCombinedDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatMessageCombinedDto"}},"total":{"type":"integer","format":"int64"}}},"JsonNode":{"type":"object"},"Response":{"type":"object","properties":{"total":{"type":"integer","format":"int32"},"data":{"type":"array","items":{"$ref":"#/components/schemas/UserReportDTO"}}}},"UserReportDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"publicId":{"type":"string"},"typebotId":{"type":"string"},"ntUserId":{"type":"string"},"doctorUid":{"type":"integer","format":"int32"},"reportTime":{"type":"string"},"reportJson":{"$ref":"#/components/schemas/JsonNode"},"reportJsonStr":{"type":"string"},"chatLog":{"type":"string"},"nickName":{"type":"string"},"userAvatar":{"type":"string"},"picUrls":{"type":"string"},"picUrlsJson":{"type":"string"},"resultId":{"type":"string"},"state":{"type":"string"},"visitDate":{"type":"string"},"reportName":{"type":"string"},"typeId":{"type":"integer","format":"int32"},"typeName":{"type":"string"},"parentTypeId":{"type":"integer","format":"int32"},"parentTypeName":{"type":"string"},"patientName":{"type":"string"},"realName":{"type":"string"}}},"ChatContactDynamicDto":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time"},"content":{"type":"string"}}},"PageResultDtoChatContactDynamicDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatContactDynamicDto"}},"total":{"type":"integer","format":"int64"}}},"SidebarConfigDto":{"type":"object","properties":{"name":{"type":"string","description":"配置名称"},"type":{"type":"string","description":"配置类型:NATIVE-原生,URL-地址","enum":["NATIVE","URL"]},"url":{"type":"string","description":"URL地址(当type为URL时有效)"}}},"SessionServiceStatusDto":{"type":"object","properties":{"description":{"type":"string","description":"描述信息"},"wechatAccountOffline":{"type":"boolean","description":"企微账号是否离线"}}},"PageResultDtoChatChannelDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatChannelDto"}},"total":{"type":"integer","format":"int64"}}},"ChatChannelPlatformDto":{"type":"object","properties":{"platform":{"type":"string","description":"渠道平台","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]},"name":{"type":"string","description":"渠道平台名称"}}},"ChatContactInfo":{"required":["createdAt","id","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string"},"chatCustomerId":{"type":"string","description":"聚合聊天客户Id"},"chatStaffId":{"type":"string","description":"聚合聊天员工id"},"name":{"type":"string","description":"外部联系人昵称"},"avatar":{"type":"string","description":"外部联系人头像地址"},"gender":{"type":"integer","description":"外部联系人性别,0-未知 1-男性 2-女性","format":"int32"},"remark":{"type":"string","description":"联系人备注"},"remarkMobiles":{"type":"array","description":"备注手机号","items":{"type":"string","description":"备注手机号"}},"description":{"type":"string","description":"联系人描述"},"addWay":{"type":"integer","description":"联系人添加方式","format":"int32"},"state":{"type":"string","description":"企业自定义的state参数"},"followTime":{"type":"string","description":"外部联系人关注时间","format":"date-time"},"followStatus":{"type":"integer","description":"关系状态 1:正常 2:医助删除客户 3:客户删除医助 4:客户医助互删","format":"int32"},"followStatusTime":{"type":"string","description":"关系状态变更时间","format":"date-time"},"lastMsgTime":{"type":"string","description":"最后沟通时间"},"lastMsgContext":{"type":"string","description":"最后沟通内容"},"lastState":{"type":"string","description":"最新state值"},"aiReply":{"type":"boolean","description":"AI回复"},"metadata":{"type":"object","additionalProperties":{"type":"object","description":"元数据"},"description":"元数据"},"lastChannelId":{"type":"string","description":"最后沟通渠道"},"pinned":{"type":"boolean","description":"是否置顶"},"contactType":{"type":"string","description":"联系人类型 EXTERNAL:外部客户 INTERNAL:内部员工","enum":["EXTERNAL","INTERNAL","ROOM"]},"pinnedTime":{"type":"string","description":"置顶时间","format":"date-time"},"interventionFollowStatus":{"type":"string","description":"人工介入跟进状态","enum":["PENDING","PROCESSING","CONTACTED","FINISHED"]},"chatStaffName":{"type":"string"},"chatStaffAvatar":{"type":"string"},"chatAlias":{"type":"string"}}},"ContactCustomerInfoResponse":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/ChatContactDto"},"customer":{"$ref":"#/components/schemas/CustomerDto"},"hostingWorkContact":{"$ref":"#/components/schemas/HostingWorkContactDto"}}},"HostingWorkContactDto":{"type":"object","properties":{"unionId":{"type":"string","description":"unionId(来自 padWorkContact 或 ntWorkContact)"},"userId":{"type":"string","description":"userId(来自 padWorkContact 或 ntWorkContact)"}},"description":"托管工作联系人信息,如果未找到则为null"},"ChatContactWayDto":{"required":["chatChannelId","chatStaffId","contactWayId","createdAt","id","remark","source","state","stateName","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string"},"contactWayId":{"type":"integer","format":"int64"},"remark":{"title":"备注","type":"string"},"chatChannelId":{"title":"渠道id","type":"string"},"chatStaffId":{"title":"关联员工","type":"string"},"state":{"title":"企业自定义的state参数","type":"string"},"stateName":{"title":"企业自定义的state名称","type":"string"},"chatDigitalStaffId":{"title":"数字员工ID","type":"string"},"configId":{"title":"企业微信联系我二维码唯一id","type":"string"},"qrCodeUrl":{"title":"联系二维码的URL","type":"string"},"localUrl":{"title":"本地二维码路径","type":"string"},"mentorUrl":{"title":"分步添加医助码路径","type":"string"},"tagId":{"title":"关联标签id","type":"string"},"tagName":{"title":"关联标签名称","type":"string"},"metadata":{"title":"关联标签名称","type":"object","additionalProperties":{"title":"关联标签名称","type":"object"}},"source":{"title":"来源","type":"string","enum":["DIGITAL_STAFF","AI_ASSISTANT","TENANT_BACKEND","UNKNOWN"]},"welcomeConf":{"$ref":"#/components/schemas/ChatContactWayWelcomeDto"},"mentorWebUrl":{"title":"分步添加医助码h5页面地址","type":"string"}},"description":"场景码信息,如果未找到则为null"},"ContactWayAndStaffInfoResponse":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/ChatContactDto"},"contactWay":{"$ref":"#/components/schemas/ChatContactWayDto"},"workWeChatUser":{"$ref":"#/components/schemas/ContactWayAndStaffInfoWorkWeUserDto"}}},"ContactWayAndStaffInfoWorkWeUserDto":{"type":"object","properties":{"externalUserId":{"type":"string","description":"外部联系人id"},"internalUserId":{"type":"string","description":"内部联系人id"}},"description":"企微用户信息,如果未找到则为null"},"FindByWorkWeChatInfoResponse":{"type":"object","properties":{"contactId":{"type":"string","description":"聊天联系人ID"},"channelId":{"type":"string","description":"渠道ID"}}},"ScanQrCodeDto":{"type":"object","properties":{"corpShortName":{"type":"string"},"tenant":{"type":"string"},"avatar":{"type":"string"},"name":{"type":"string"},"qrCodeUrl":{"type":"string"},"isRelated":{"type":"boolean"}}},"LoginQrcodeCheckStatusV2Response":{"type":"object","properties":{"key":{"type":"string","description":"key"},"deviceId":{"type":"string","description":"设备GUID"},"status":{"type":"string","description":"统一二维码状态","enum":["WAITING","SCANNED","VERIFYING","SUCCESS","CANCELLED","FINISH","FAILED","UNKNOWN"]},"rawStatus":{"type":"integer","description":"底层协议原始状态","format":"int32"},"success":{"type":"boolean","description":"底层接口是否成功"},"errorCode":{"type":"integer","description":"底层错误码","format":"int32"},"errorMessage":{"type":"string","description":"底层错误信息"},"nickname":{"type":"string","description":"扫码用户昵称"},"avatar":{"type":"string","description":"扫码用户头像"},"logo":{"type":"string","description":"企业Logo"}}},"LoginQrcodeV2Response":{"type":"object","properties":{"key":{"type":"string","description":"key"},"userId":{"type":"string","description":"userId"},"qrcodeBase64":{"type":"string","description":"二维码base64"}}},"AccountInfoV2Response":{"type":"object","properties":{"userId":{"type":"string","description":"用户ID"},"username":{"type":"string","description":"用户名"},"nickname":{"type":"string","description":"昵称"},"realName":{"type":"string","description":"真实姓名"},"avatar":{"type":"string","description":"头像URL"},"mobile":{"type":"string","description":"手机号"},"position":{"type":"string","description":"职位"},"sex":{"type":"integer","description":"性别","format":"int32"},"corpId":{"type":"string","description":"企业ID"},"acctId":{"type":"string","description":"账号ID"},"corpName":{"type":"string","description":"企业名称"},"corpShortName":{"type":"string","description":"企业简称"},"workWeChatUserId":{"type":"string","description":"系统内部的企微用户ID"},"isOnline":{"type":"boolean"}},"description":"账号信息响应"},"PageResultDtoWorkWeChatCorpRelateDtoV1":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatCorpRelateDtoV1"}},"total":{"type":"integer","format":"int64"}}},"WorkWeChatCorpRelateDtoV1":{"required":["createdAt","id","tenant"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string"},"workWeChatCorpId":{"type":"string","description":"企业微信hashId"},"name":{"type":"string","description":"企业微信标识"},"corpName":{"type":"string","description":"企业微信全称"},"corpShortName":{"type":"string","description":"企业微信简称"}}},"PageResultDtoWorkWeChatContactMessageSyncDtoV1":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatContactMessageSyncDtoV1"}},"total":{"type":"integer","format":"int64"}}},"WorkWeChatContactMessageSyncDtoV1":{"required":["id","receiver","sendTime","sender","type"],"type":"object","properties":{"id":{"type":"string","description":"消息id"},"sender":{"type":"string","description":"内部userId/外部userId"},"receiver":{"type":"string","description":"内部userId/外部userId"},"type":{"type":"integer","description":"消息类型","format":"int32"},"sendTime":{"type":"string","description":"发送时间","format":"date-time"},"transUrl":{"type":"string","description":"图片的地址"},"data":{"type":"string","description":"数据"}}},"WorkWeChatContactMessageDtoV1":{"required":["contactId","createdAt","id","msgBody","msgId","msgTime","msgType","sender","senderType"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"contactId":{"type":"string","description":"联系id"},"senderType":{"type":"string","description":"发送人类型","enum":["EXTERNAL","INTERNAL","ROOM"]},"sender":{"type":"string","description":"发送人"},"msgId":{"type":"string","description":"消息id"},"msgType":{"type":"string","description":"消息类型text/image/voice/video","enum":["text","image","revoke","agree","disagree","voice","video","card","location","emotion","file","link","weapp","chatrecord","todo","vote","collect","redpacket","meeting","meeting_notification","docmsg","markdown","news","calendar","mixed","meeting_voice_call","system","image_text","unknown"]},"msgBody":{"type":"object","additionalProperties":{"type":"object","description":"消息内容"},"description":"消息内容"},"msgTime":{"type":"string","description":"消息时间"},"senderAvatar":{"type":"string","description":"发送人头像"},"senderName":{"type":"string","description":"发送人名称"},"actualSenderType":{"type":"string","description":"实际发送人类型,租户用户user/employee/agentConversation/customer","enum":["AGENT_CONVERSATION_GROUP","AGENT_CONVERSATION","AGENT_CONVERSATION_CHAT","AGENT_OPENCLAW","AGENT_AI_ASSISTANT","WORK_WE_USER","WORK_WE_CUSTOMER","TENANT_USER","OUTER_SYS","INNER_SYS"]},"actualSender":{"type":"string","description":"实际发送人"},"status":{"type":"string","description":"状态","enum":["SENDING","SUCCESS","FAILED","RECALLED","UNKNOWN"]},"actualSenderName":{"type":"string","description":"实际发送人名称"},"metadata":{"type":"object","additionalProperties":{"type":"object","description":"元数据"},"description":"元数据"}}},"GroupContactByLastStateDtoV1":{"type":"object","properties":{"contactId":{"type":"string","description":"联系id"},"lastState":{"type":"string","description":"lastState"},"chatNumber":{"type":"integer","description":"对话数量","format":"int32"},"name":{"type":"string","description":"外部联系人名称"},"avatar":{"type":"string","description":"外部联系人头像"},"externalUserId":{"type":"string","description":"外部联系人userId","deprecated":true},"startMsgTime":{"type":"integer","description":"对话开始时间","format":"int64"},"endMsgTime":{"type":"integer","description":"对话结束时间","format":"int64"}}},"PageResultDtoGroupContactByLastStateDtoV1":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GroupContactByLastStateDtoV1"}},"total":{"type":"integer","format":"int64"}}},"PageResultDtoWorkWeChatContactMessageDtoV1":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatContactMessageDtoV1"}},"total":{"type":"integer","format":"int64"}}},"PageResultDtoUserDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/UserDto"}},"total":{"type":"integer","format":"int64"}}},"UserDto":{"type":"object","properties":{"keycloakUserId":{"type":"string","description":"keycloak用户id"},"userName":{"type":"string","description":"用户名"},"phone":{"type":"string","description":"手机号"},"email":{"type":"string","description":"邮箱"},"avatar":{"type":"string","description":"头像"},"gender":{"type":"string","description":"性别 MALE、FEMALE、UNKNOWN","enum":["UNKNOWN","MALE","FEMALE"]},"enabled":{"type":"boolean","description":"启用"},"emailVerified":{"type":"boolean","description":"邮箱验证"},"keycloakCreatedAt":{"type":"string","description":"keycloak创建时间","format":"date-time"},"firstName":{"type":"string","description":"名"},"lastName":{"type":"string","description":"姓"}}},"UserRoleDto":{"type":"object","properties":{"keycloakRoleId":{"type":"string","description":"keycloak角色id"},"keycloakRoleName":{"type":"string","description":"keycloak角色名"}}},"PageResultDtoUserRelateWithUserDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/UserRelateWithUserDto"}},"total":{"type":"integer","format":"int64"}}},"UserRelateWithUserDto":{"type":"object","properties":{"userId":{"type":"string"},"keycloakUserId":{"type":"string"},"userName":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"avatar":{"type":"string"},"gender":{"type":"string","enum":["UNKNOWN","MALE","FEMALE"]},"enabled":{"type":"boolean"},"emailVerified":{"type":"boolean"},"keycloakCreatedAt":{"type":"string","format":"date-time"},"firstName":{"type":"string"},"lastName":{"type":"string"},"fullName":{"type":"string"},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"}}},"PageResultDtoChatGroupWayPageDtoV1":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatGroupWayPageDtoV1"}},"total":{"type":"integer","format":"int64"}}},"ChatGroupDtoV1":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"chatId":{"type":"string","description":"群id"},"name":{"type":"string","description":"名称"},"membership":{"type":"integer","description":"群成员数量","format":"int32"},"createTime":{"type":"string","description":"群聊创建时间,时间戳秒"},"corpName":{"type":"string","description":"企微的name"},"workWeChatCorpId":{"type":"string","description":"企微"},"ownerUserId":{"type":"string","description":"群主userId"},"platform":{"type":"string","description":"群类型","enum":["WECHAT_WORK","WECHAT_APPLET","WECHAT_MP","SELF","JKZL_CS","ENT_ROBOT","DOCTOR_ASSISTANT","DIGITAL_STAFF_SETTING"]}}},"PageResultDtoChatGroupDtoV1":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatGroupDtoV1"}},"total":{"type":"integer","format":"int64"}}},"WorkWeChatUserDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"name":{"type":"string"},"avatar":{"type":"string"},"userId":{"type":"string"},"mobile":{"type":"string"},"online":{"type":"boolean"},"chatStaffId":{"type":"string"},"workWeChatCorpId":{"type":"string"}}},"GetTenantByInternalUserIdDTO":{"type":"object","properties":{"tenant":{"type":"string"},"chatStaffId":{"type":"string"},"chatChannelId":{"type":"string"},"chatStaffName":{"type":"string"}}},"WorkWeChatRelateCustomerDtoV1":{"type":"object","properties":{"avatar":{"type":"string","description":"客户头像"},"name":{"type":"string","description":"客户昵称"},"externalUserId":{"type":"string","description":"客户外部联系人userId"},"gender":{"type":"integer","description":"客户性别,0-未知 1-男性 2-女性","format":"int32"},"customerId":{"type":"string","description":"客户标签"},"tenant":{"type":"string","description":"客户标签"}}},"TenantDto":{"required":["displayName","name","shotDisplayName","tenantId"],"type":"object","properties":{"tenantId":{"type":"string"},"name":{"type":"string"},"displayName":{"type":"string"},"shotDisplayName":{"type":"string"},"logoUrl":{"type":"string"},"keycloakOrganizationId":{"type":"string"}}},"PageResultDtoTenantDtoV1":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TenantDtoV1"}},"total":{"type":"integer","format":"int64"}}},"TenantDtoV1":{"required":["createdAt","displayName","id","name"],"type":"object","properties":{"name":{"type":"string"},"displayName":{"type":"string"},"logoUrl":{"type":"string"},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"}}},"OptimisticLockStats":{"type":"object","properties":{"totalRetryCount":{"type":"integer","format":"int64"},"totalSuccessCount":{"type":"integer","format":"int64"},"totalFailureCount":{"type":"integer","format":"int64"},"successRate":{"type":"number","format":"double"},"averageRetryCount":{"type":"number","format":"double"}}},"AiListDTO":{"type":"object","properties":{"corp":{"type":"string"},"acctId":{"type":"string"}}},"PageResultDtoAiListDTO":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AiListDTO"}},"total":{"type":"integer","format":"int64"}}},"PageResultDtoWorkWeChatUserDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatUserDto"}},"total":{"type":"integer","format":"int64"}}},"DoctorServiceByUserIdDto":{"type":"object","properties":{"title":{"type":"string"},"desc":{"type":"string"},"price":{"type":"integer","format":"int32"},"termDesc":{"type":"string"},"share":{"type":"object","additionalProperties":{"type":"string"}}}},"WorkWeChatUserTenantRelateDto":{"type":"object","properties":{"tenant":{"type":"string","description":"租户"}}},"PageResultDtoWorkWeChatCorpDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatCorpDto"}},"total":{"type":"integer","format":"int64"}}},"Attr":{"type":"object","properties":{"type":{"type":"integer","format":"int32"},"name":{"type":"string"},"textValue":{"type":"string"},"webUrl":{"type":"string"},"webTitle":{"type":"string"}}},"ExternalAttribute":{"type":"object","properties":{"type":{"type":"integer","format":"int32"},"name":{"type":"string"},"value":{"type":"string"},"url":{"type":"string"},"title":{"type":"string"},"appid":{"type":"string"},"pagePath":{"type":"string"}}},"WechatChannels":{"type":"object","properties":{"nickname":{"type":"string"},"status":{"type":"integer","format":"int32"}}},"WxCpUser":{"type":"object","properties":{"userId":{"type":"string"},"newUserId":{"type":"string"},"name":{"type":"string"},"departIds":{"type":"array","items":{"type":"integer","format":"int64"}},"orders":{"type":"array","items":{"type":"integer","format":"int32"}},"position":{"type":"string"},"positions":{"type":"array","items":{"type":"string"}},"mobile":{"type":"string"},"gender":{"type":"string","enum":["UNDEFINED","MALE","FEMALE"]},"email":{"type":"string"},"bizMail":{"type":"string"},"avatar":{"type":"string"},"thumbAvatar":{"type":"string"},"mainDepartment":{"type":"string"},"openUserId":{"type":"string"},"address":{"type":"string"},"avatarMediaId":{"type":"string"},"status":{"type":"integer","format":"int32"},"enable":{"type":"integer","format":"int32"},"alias":{"type":"string"},"isLeader":{"type":"integer","format":"int32"},"isLeaderInDept":{"type":"array","items":{"type":"integer","format":"int32"}},"extAttrs":{"type":"array","items":{"$ref":"#/components/schemas/Attr"}},"hideMobile":{"type":"integer","format":"int32"},"englishName":{"type":"string"},"telephone":{"type":"string"},"qrCode":{"type":"string"},"toInvite":{"type":"boolean"},"externalAttrs":{"type":"array","items":{"$ref":"#/components/schemas/ExternalAttribute"}},"externalPosition":{"type":"string"},"externalCorpName":{"type":"string"},"wechatChannels":{"$ref":"#/components/schemas/WechatChannels"},"directLeader":{"type":"array","items":{"type":"string"}}}},"WxCpDepart":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"enName":{"type":"string"},"departmentLeader":{"type":"array","items":{"type":"string"}},"parentId":{"type":"integer","format":"int64"},"order":{"type":"integer","format":"int64"}}},"PageResultDtoWorkWeChatUserActiveLicenseDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkWeChatUserActiveLicenseDto"}},"total":{"type":"integer","format":"int64"}}},"WorkWeChatUserActiveLicenseDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"workWeChatUserId":{"type":"string","description":"系统内部企微成员id"},"workWeChatCorpId":{"type":"string","description":"系统内部企微企业id"},"licenseCode":{"type":"string","description":"许可编号"},"activeTime":{"type":"string","description":"激活时间","format":"date-time"},"nextActiveTime":{"type":"string","description":"下次激活时间","format":"date-time"},"userName":{"type":"string","description":"成员姓名"},"userId":{"type":"string","description":"企微账号userId"},"corpName":{"type":"string","description":"企业名称"}}},"LoginQrcodeResponse":{"type":"object","properties":{"uuid":{"type":"string","description":"标识ID"},"qrcodeBase64":{"type":"string","description":"二维码base64"}}},"LoginQrcodeStatusResponse":{"type":"object","properties":{"uuid":{"type":"string","description":"标识ID"},"status":{"type":"boolean","description":"true 有效 flase 失效"}},"description":"二维码状态"},"LoginQrcodeLoginStatusResponse":{"type":"object","properties":{"uuid":{"type":"string"},"status":{"type":"string","enum":["WAITING","SCANNED","VERIFYING","SUCCESS","FAILED"]}},"description":"扫码登录状态"},"AccountInfoResponse":{"type":"object","properties":{"userId":{"type":"string","description":"用户ID"},"username":{"type":"string","description":"用户名"},"nickname":{"type":"string","description":"昵称"},"realName":{"type":"string","description":"真实姓名"},"avatar":{"type":"string","description":"头像URL"},"mobile":{"type":"string","description":"手机号"},"position":{"type":"string","description":"职位"},"sex":{"type":"integer","description":"性别","format":"int32"},"corpId":{"type":"string","description":"企业ID"},"acctId":{"type":"string","description":"账号ID"},"corpName":{"type":"string","description":"企业名称"},"corpShortName":{"type":"string","description":"企业简称"},"workWeChatUserId":{"type":"string","description":"系统内部的企微用户ID"}},"description":"账号信息响应"},"LoginQrcodeFreeResponse":{"type":"object","properties":{"uuid":{"type":"string"}}},"LoginQrcodeReVerifyResponse":{"type":"object","properties":{"userId":{"type":"string","description":"用户ID"},"guid":{"type":"string","description":"设备GUID"},"qrcodeBase64":{"type":"string","description":"二维码base64"}}},"PadWorkInstanceDto":{"type":"object","properties":{"hashId":{"type":"string","description":"实例HashID"},"deviceId":{"type":"string","description":"设备ID"},"guid":{"type":"string","description":"设备GUID"},"currentPadWorkUserId":{"type":"string","description":"当前PadWork用户ID"},"currentWorkWeChatUserId":{"type":"string","description":"当前企微用户ID"},"status":{"type":"string","description":"实例状态"},"deviceStatus":{"type":"string","description":"设备状态"},"user":{"$ref":"#/components/schemas/UserInfo"},"offlineNums":{"type":"integer","description":"掉线次数","format":"int32"},"restartNums":{"type":"integer","description":"重启次数","format":"int32"},"createdAt":{"type":"string","description":"创建时间","format":"date-time"},"manageEmployeeId":{"type":"string","description":"管理员工ID"},"manageEmployeeTenant":{"type":"string","description":"管理员工租户"},"manageEmployeeName":{"type":"string","description":"管理员工姓名"},"manageEmployeeMobile":{"type":"string","description":"管理员工手机号"},"manageEmployeeRemark":{"type":"string","description":"管理员工备注"},"manageEmployeeSmsNotify":{"type":"boolean","description":"是否短信推送"}},"description":"PadWork实例信息"},"UserInfo":{"type":"object","properties":{"userId":{"type":"string","description":"用户ID"},"username":{"type":"string","description":"用户名"},"realName":{"type":"string","description":"真实姓名"},"avatar":{"type":"string","description":"头像"},"corpShortName":{"type":"string","description":"企业简称"},"corpName":{"type":"string","description":"企业全称"},"corpId":{"type":"string","description":"企业ID"},"acctId":{"type":"string","description":"账号ID"},"workWeChatUserId":{"type":"string","description":"企微用户ID"},"mobile":{"type":"string","description":"手机号"}},"description":"用户信息"},"PageResultDtoPadWorkInstanceDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PadWorkInstanceDto"}},"total":{"type":"integer","format":"int64"}}},"DeviceRecycleDto":{"type":"object","properties":{"hashId":{"type":"string","description":"HashID"},"deviceGuid":{"type":"string","description":"设备GUID"},"deviceType":{"type":"string","description":"设备类型"},"deviceBindStatus":{"type":"string","description":"回收时绑定状态"},"padworkUserId":{"type":"string","description":"关联PadWork用户ID"},"padworkUserName":{"type":"string","description":"关联PadWork用户名"},"mobile":{"type":"string","description":"手机号"},"recycleReason":{"type":"string","description":"回收原因"},"createdAt":{"type":"string","description":"回收时间","format":"date-time"},"padworkUserInfo":{"$ref":"#/components/schemas/PadworkUserInfoDto"}},"description":"设备回收记录"},"PadworkUserInfoDto":{"type":"object","properties":{"hashId":{"type":"string","description":"HashID"},"userId":{"type":"string","description":"用户ID"},"username":{"type":"string","description":"用户名"},"nickname":{"type":"string","description":"昵称"},"realName":{"type":"string","description":"真实姓名"},"mobile":{"type":"string","description":"手机号"},"avatar":{"type":"string","description":"头像"},"corpId":{"type":"string","description":"企业ID"}},"description":"PadWork用户信息"},"PageResultDtoDeviceRecycleDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DeviceRecycleDto"}},"total":{"type":"integer","format":"int64"}}},"DeviceProcessStatusStatistics":{"type":"object","properties":{"waitingForScan":{"type":"integer","description":"等待扫码","format":"int64"},"scanned":{"type":"integer","description":"已扫码","format":"int64"},"verify":{"type":"integer","description":"验证中","format":"int64"},"success":{"type":"integer","description":"登录成功","format":"int64"},"failure":{"type":"integer","description":"登录失败","format":"int64"}},"description":"过程状态统计"},"DeviceStatistics":{"type":"object","properties":{"total":{"type":"integer","description":"总数","format":"int64"},"typeStatistics":{"$ref":"#/components/schemas/DeviceTypeStatistics"},"statusStatistics":{"$ref":"#/components/schemas/DeviceStatusStatistics"},"processStatusStatistics":{"$ref":"#/components/schemas/DeviceProcessStatusStatistics"}},"description":"设备统计信息"},"DeviceStatusStatistics":{"type":"object","properties":{"free":{"type":"integer","description":"空闲(未绑定)","format":"int64"},"bound":{"type":"integer","description":"已绑定","format":"int64"},"inUse":{"type":"integer","description":"使用中(登录中)","format":"int64"}},"description":"绑定状态统计"},"DeviceTypeStatistics":{"type":"object","properties":{"easywework":{"type":"integer","description":"easywework","format":"int64"},"juhebot":{"type":"integer","description":"easywework","format":"int64"}},"description":"设备类型统计"},"PlaceOption":{"type":"object","properties":{"code":{"type":"string","description":"街道/乡镇行政区划代码(9位)"},"provinceName":{"type":"string","description":"省"},"cityName":{"type":"string","description":"市"},"areaName":{"type":"string","description":"区/县"}},"description":"地名候选项"},"PadWorkDeviceDto":{"type":"object","properties":{"hashId":{"type":"string","description":"设备HashID"},"guid":{"type":"string","description":"设备GUID"},"status":{"type":"string","description":"设备状态"},"processStatus":{"type":"string","description":"过程状态"},"deviceType":{"type":"string","description":"设备类型"},"createdAt":{"type":"string","description":"创建时间","format":"date-time"}},"description":"PadWork设备信息"},"PageResultDtoPadWorkDeviceDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PadWorkDeviceDto"}},"total":{"type":"integer","format":"int64"}}},"NtWorkUserDto":{"required":["createdAt","id"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"ntWorkUserId":{"type":"string"},"corpId":{"type":"string"},"acctId":{"type":"string"},"avatar":{"type":"string"},"conversationId":{"type":"string"},"mobile":{"type":"string"},"nickname":{"type":"string"},"position":{"type":"string"},"realName":{"type":"string"},"remark":{"type":"string"},"sex":{"type":"integer","format":"int32"},"unionId":{"type":"string"},"userId":{"type":"string"},"username":{"type":"string"},"corpName":{"type":"string"},"corpShortName":{"type":"string"},"ntWorkInstanceId":{"type":"string"},"workWeChatUserId":{"type":"string"},"apiUrl":{"type":"string"},"status":{"type":"string"},"latestMessageTime":{"type":"string","format":"date-time"},"offlineNums":{"type":"integer","format":"int32"},"restartNums":{"type":"integer","format":"int32"},"manageEmployeeId":{"type":"string"},"manageEmployeeTenant":{"type":"string"},"manageEmployeeName":{"type":"string"},"manageEmployeeMobile":{"type":"string"},"manageEmployeeRemark":{"type":"string"},"manageEmployeeSmsNotify":{"type":"boolean"}}},"PageResultDtoNtWorkUserDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NtWorkUserDto"}},"total":{"type":"integer","format":"int64"}}},"ManageInfo":{"type":"object","properties":{"employeeId":{"type":"string","description":"管理员工ID"},"employeeTenant":{"type":"string","description":"管理员工租户"},"employeeName":{"type":"string","description":"管理员工姓名"},"employeeMobile":{"type":"string","description":"管理员工手机号"},"employeeRemark":{"type":"string","description":"管理员工备注"},"smsNotify":{"type":"boolean","description":"是否短信通知"}},"description":"管理人员信息"},"PageResultDtoWorkInstanceInfoDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkInstanceInfoDto"}},"total":{"type":"integer","format":"int64"}}},"WorkInstanceInfoDto":{"type":"object","properties":{"hashId":{"type":"string","description":"实例HashID"},"deviceId":{"type":"string","description":"设备ID"},"guid":{"type":"string","description":"设备GUID"},"status":{"type":"string","description":"实例状态"},"deviceStatus":{"type":"string","description":"设备状态"},"processStatus":{"type":"string","description":"设备过程状态"},"deviceType":{"type":"string","description":"PadWork设备类型,例如local1,local2,local3,saas,easywework"},"user":{"$ref":"#/components/schemas/UserInfo"},"manageInfo":{"$ref":"#/components/schemas/ManageInfo"},"offlineNums":{"type":"integer","description":"掉线次数","format":"int32"},"restartNums":{"type":"integer","description":"重启次数","format":"int32"},"createdAt":{"type":"string","description":"创建时间","format":"date-time"},"apiUrl":{"type":"string","description":"ntwork网关"},"type":{"type":"string","description":"托管类型 PAD_WORK NT_WORK"}}},"PageResultDtoChatGroupDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatGroupDto"}},"total":{"type":"integer","format":"int64"}}},"ChatGroupMemberDto":{"required":["chatGroupId","createdAt","id","joinTime","tenant","userId"],"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"tenant":{"type":"string"},"chatGroupId":{"type":"string","description":"群id"},"userId":{"type":"string","description":"群成员id"},"chatUserId":{"type":"string","description":"群成员id,聚合聊天成员id,有些客户是客户邀请进来的,所以可能没有这个值"},"type":{"type":"string","description":"成员类型。1 - 企业成员2 - 外部联系人","enum":["EXTERNAL","INTERNAL","ROOM"]},"name":{"type":"string","description":"成员名称"},"joinTime":{"type":"string"},"joinScene":{"type":"integer","description":"入群方式","format":"int32"},"invitorUserId":{"type":"string","description":"邀请者的userid"},"groupNickname":{"type":"string","description":"在群里的昵称"},"state":{"type":"string","description":"定义的state参数,用于区分不同的入群渠道"},"avatar":{"type":"string","description":"头像"},"status":{"type":"string","description":"状态,DELETED:已退出群聊","enum":["NORMAL","DELETED"]},"metadata":{"$ref":"#/components/schemas/ChatGroupMemberMetadataDto"},"quitTime":{"type":"string","description":"退群时间"}}},"ChatGroupMemberMetadataDto":{"type":"object","properties":{"platformUserId":{"type":"string"}},"description":"头像"},"DeleteExternalContactTagsRequestV1":{"required":["internalUserId","tagIds"],"type":"object","properties":{"internalUserId":{"title":"系统内部企微用户ID","type":"string"},"tagIds":{"title":"要删除的标签ID列表","uniqueItems":true,"type":"array","items":{"title":"要删除的标签ID列表","type":"string"}}}},"DeleteConversationGroupChatRequest":{"type":"object","properties":{"conversationIds":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"chatIds":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}},"WxCpBaseResp":{"type":"object","properties":{"errcode":{"type":"integer","format":"int64"},"errmsg":{"type":"string"}}},"DeleteManageDTO":{"type":"object","properties":{"workWeChatUserId":{"type":"string"}}}},"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://auth.lovebenefits.com/realms/jkzl-test/protocol/openid-connect/auth","tokenUrl":"https://auth.lovebenefits.com/realms/jkzl-test/protocol/openid-connect/token","scopes":{}}}}}}}