@digitalsee-ai/rcs 0.0.14 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/components/digitalsee/workflow/Canvas/NextConfigModalWrapper.d.ts +9 -0
  2. package/dist/components/digitalsee/workflow/Canvas/NextWorkflowCanvas.d.ts +4 -0
  3. package/dist/components/digitalsee/workflow/Canvas/NextWorkflowCanvasHeader.d.ts +15 -0
  4. package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvas.d.ts +1 -12
  5. package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvasBase.d.ts +4 -0
  6. package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvasHeader.d.ts +2 -1
  7. package/dist/components/digitalsee/workflow/Canvas/color.d.ts +1 -1
  8. package/dist/components/digitalsee/workflow/Canvas/constants.d.ts +75 -0
  9. package/dist/components/digitalsee/workflow/Canvas/hooks/createNodeAddHandlerNext.d.ts +49 -0
  10. package/dist/components/digitalsee/workflow/Canvas/hooks/useCanvasApi.d.ts +22 -0
  11. package/dist/components/digitalsee/workflow/Canvas/hooks/useDataLoading.d.ts +21 -0
  12. package/dist/components/digitalsee/workflow/Canvas/hooks/useNodeAddCallback.d.ts +44 -0
  13. package/dist/components/digitalsee/workflow/Canvas/hooks/useNodeFormDraftCache.d.ts +14 -0
  14. package/dist/components/digitalsee/workflow/Canvas/hooks/useWorkflowCanvasState.d.ts +78 -0
  15. package/dist/components/digitalsee/workflow/Canvas/types.d.ts +91 -0
  16. package/dist/components/digitalsee/workflow/Edges/BaseEdge.d.ts +3 -2
  17. package/dist/components/digitalsee/workflow/Edges/EdgeFactory.d.ts +43 -0
  18. package/dist/components/digitalsee/workflow/NextNodesConfigModal/index.d.ts +13 -0
  19. package/dist/components/digitalsee/workflow/Nodes/ActionNode.d.ts +3 -3
  20. package/dist/components/digitalsee/workflow/Nodes/AgentNode.d.ts +2 -2
  21. package/dist/components/digitalsee/workflow/Nodes/BrowserNode.d.ts +2 -2
  22. package/dist/components/digitalsee/workflow/Nodes/CustomNode.d.ts +2 -2
  23. package/dist/components/digitalsee/workflow/Nodes/NextNodeFactory.d.ts +11 -0
  24. package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextActionNode.d.ts +9 -0
  25. package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextBaseNode.d.ts +15 -0
  26. package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextConditionNode.d.ts +10 -0
  27. package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextLoopNode.d.ts +10 -0
  28. package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextSwitchNode.d.ts +10 -0
  29. package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextTriggerNode.d.ts +9 -0
  30. package/dist/components/digitalsee/workflow/Nodes/NodeFactory.d.ts +3 -12
  31. package/dist/components/digitalsee/workflow/Nodes/StickyNoteNode.d.ts +2 -2
  32. package/dist/components/digitalsee/workflow/Nodes/SuperBaseNode.d.ts +1 -1
  33. package/dist/components/digitalsee/workflow/Nodes/components/NextNodeDescription.d.ts +16 -0
  34. package/dist/components/digitalsee/workflow/Nodes/components/NextNodeOperations.d.ts +11 -0
  35. package/dist/components/digitalsee/workflow/Nodes/components/NodeOperations.d.ts +1 -1
  36. package/dist/components/digitalsee/workflow/NodesConfig/ActionNodeConfig/index.d.ts +7 -1
  37. package/dist/components/digitalsee/workflow/NodesConfig/ConditionNodeConfig/index.d.ts +5 -4
  38. package/dist/components/digitalsee/workflow/NodesConfig/ErrorHandler.d.ts +17 -2
  39. package/dist/components/digitalsee/workflow/NodesConfig/LoopNodeConfig/index.d.ts +2 -3
  40. package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/CreateCredentialModal.d.ts +13 -0
  41. package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/CredentialSelect.d.ts +17 -0
  42. package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/ModifyCredentialModal.d.ts +17 -0
  43. package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/fieldSchemaAdapter.d.ts +10 -0
  44. package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/fieldSchemaAdapter.test.d.ts +1 -0
  45. package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/index.d.ts +15 -0
  46. package/dist/components/digitalsee/workflow/NodesConfig/SwitchNodeConfig/index.d.ts +6 -5
  47. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/CreateAccountModal/index.d.ts +2 -0
  48. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/CredentialAccountForm.d.ts +10 -0
  49. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/DateField/index.d.ts +1 -1
  50. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/DateTimeField/index.d.ts +1 -1
  51. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/ExtendObjectField/index.d.ts +1 -1
  52. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/FixedObjectField/index.d.ts +1 -1
  53. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/PasswordField/index.d.ts +2 -1
  54. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TextAreaField/index.d.ts +1 -1
  55. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TextField/index.d.ts +1 -1
  56. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TimeField/index.d.ts +1 -1
  57. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/index.d.ts +1 -1
  58. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/ModifyAccountModal/index.d.ts +3 -0
  59. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/index.d.ts +5 -3
  60. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/components/AIFormField.d.ts +1 -1
  61. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DateField/index.d.ts +1 -1
  62. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DateTimeField/index.d.ts +1 -1
  63. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/FixedObjectField/index.d.ts +1 -1
  64. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/HourMinuteField/index.d.ts +5 -0
  65. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/common-placeholder-theme.d.ts +11 -11
  66. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavascriptTagEditorField/editor.d.ts +1 -0
  67. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/interface.d.ts +1 -1
  68. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/keywords.d.ts +2 -0
  69. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/common-placeholder-theme.d.ts +11 -11
  70. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/interface.d.ts +1 -1
  71. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/keywords.d.ts +2 -0
  72. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/keywords.test.d.ts +1 -0
  73. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{MutilRowAIExtractConfigField → MultiRowAIExtractConfigField}/index.d.ts +2 -2
  74. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/index.d.ts +1 -1
  75. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/useVariableInfo.d.ts +13 -0
  76. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TextField/index.d.ts +2 -2
  77. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TimeField/index.d.ts +1 -1
  78. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/index.d.ts +3 -3
  79. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/next-compatible.d.ts +2 -0
  80. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/next-compatible.test.d.ts +1 -0
  81. package/dist/components/digitalsee/workflow/NodesConfig/components/NextNodeSettings.d.ts +6 -0
  82. package/dist/components/digitalsee/workflow/NodesConfig/components/NextNodeTest.d.ts +6 -0
  83. package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/index.d.ts +6 -0
  84. package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/variable-tree-next.d.ts +49 -0
  85. package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/variable-tree-next.test.d.ts +1 -0
  86. package/dist/components/digitalsee/workflow/NodesConfig/components/VariableModal/index.d.ts +2 -1
  87. package/dist/components/digitalsee/workflow/NodesConfig/context.d.ts +4 -0
  88. package/dist/components/digitalsee/workflow/NodesConfig/define/actions.d.ts +3 -3
  89. package/dist/components/digitalsee/workflow/NodesConfig/define/condition.d.ts +5 -58
  90. package/dist/components/digitalsee/workflow/NodesConfig/define/condition.test.d.ts +1 -0
  91. package/dist/components/digitalsee/workflow/NodesConfig/define/flow.d.ts +1 -26
  92. package/dist/components/digitalsee/workflow/NodesConfig/index.d.ts +3 -6
  93. package/dist/components/digitalsee/workflow/NodesConfig/utils/credentialRequirement.d.ts +17 -0
  94. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryTabs.d.ts +1 -1
  95. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/types.d.ts +17 -1
  96. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/dataTransformers.d.ts +2 -1
  97. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/dataTransformers.test.d.ts +1 -0
  98. package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/components/NodeListItem.d.ts +8 -0
  99. package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/hooks/useNodeList.d.ts +14 -0
  100. package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/index.d.ts +9 -0
  101. package/dist/components/digitalsee/workflow/api/dip.d.ts +311 -0
  102. package/dist/components/digitalsee/workflow/api/dip.types.d.ts +996 -0
  103. package/dist/components/digitalsee/workflow/api/index.d.ts +42 -13
  104. package/dist/components/digitalsee/workflow/api/index.test.d.ts +1 -0
  105. package/dist/components/digitalsee/workflow/builtin/controls/AuthTokenField/index.d.ts +11 -0
  106. package/dist/components/digitalsee/workflow/builtin/controls/ConfigSubflow/index.d.ts +10 -0
  107. package/dist/components/digitalsee/workflow/builtin/controls/ConfigSubflow/types.d.ts +81 -0
  108. package/dist/components/digitalsee/workflow/builtin/controls/MultiRowGuard/index.d.ts +13 -0
  109. package/dist/components/digitalsee/workflow/builtin/controls/MultiRowGuard/types.d.ts +98 -0
  110. package/dist/components/digitalsee/workflow/builtin/controls/MutilRowGuard/index.d.ts +13 -0
  111. package/dist/components/digitalsee/workflow/builtin/controls/SecretKeyField/index.d.ts +11 -0
  112. package/dist/components/digitalsee/workflow/builtin/controls/SelectOAuth2ClientField/index.d.ts +11 -0
  113. package/dist/components/digitalsee/workflow/builtin/globalConfig/index.d.ts +1 -0
  114. package/dist/components/digitalsee/workflow/builtin/globalConfig/service.d.ts +8 -0
  115. package/dist/components/digitalsee/workflow/builtin/globalConfig/service.test.d.ts +1 -0
  116. package/dist/components/digitalsee/workflow/builtin/globalConfig/types.d.ts +17 -0
  117. package/dist/components/digitalsee/workflow/constants/nextHandles.d.ts +1 -0
  118. package/dist/components/digitalsee/workflow/enums/canvas.d.ts +63 -0
  119. package/dist/components/digitalsee/workflow/enums/edge.d.ts +10 -0
  120. package/dist/components/digitalsee/workflow/enums/handle.d.ts +42 -0
  121. package/dist/components/digitalsee/workflow/enums/index.d.ts +5 -0
  122. package/dist/components/digitalsee/workflow/enums/node.d.ts +199 -0
  123. package/dist/components/digitalsee/workflow/enums/workflow.d.ts +90 -0
  124. package/dist/components/digitalsee/workflow/events/eventBus.d.ts +8 -2
  125. package/dist/components/digitalsee/workflow/hooks/use-before-unload.d.ts +1 -1
  126. package/dist/components/digitalsee/workflow/hooks/useCanvasLayout.d.ts +2 -1
  127. package/dist/components/digitalsee/workflow/hooks/useHandleConnections.d.ts +1 -1
  128. package/dist/components/digitalsee/workflow/hooks/usePanel.d.ts +26 -0
  129. package/dist/components/digitalsee/workflow/hooks/useVariables.d.ts +52 -0
  130. package/dist/components/digitalsee/workflow/hooks/useWorkflow.d.ts +3 -3
  131. package/dist/components/digitalsee/workflow/index.d.ts +11 -2
  132. package/dist/components/digitalsee/workflow/store/index.d.ts +17 -0
  133. package/dist/components/digitalsee/workflow/store/panelSlice.d.ts +5 -5
  134. package/dist/components/digitalsee/workflow/store/workflowSlice.d.ts +44 -0
  135. package/dist/components/digitalsee/workflow/store/workflowSlice.test.d.ts +1 -0
  136. package/dist/components/digitalsee/workflow/types/Edge.d.ts +1 -3
  137. package/dist/components/digitalsee/workflow/types/Handle.d.ts +3 -29
  138. package/dist/components/digitalsee/workflow/types/Node.d.ts +25 -63
  139. package/dist/components/digitalsee/workflow/types/NodeProtocol.d.ts +1 -12
  140. package/dist/components/digitalsee/workflow/types/Workflow.d.ts +4 -26
  141. package/dist/components/digitalsee/workflow/types/engine.d.ts +4 -0
  142. package/dist/components/digitalsee/workflow/utils/common.d.ts +1 -0
  143. package/dist/components/digitalsee/workflow/utils/flowDataAdapterNext.d.ts +13 -0
  144. package/dist/components/digitalsee/workflow/utils/glob.d.ts +1 -1
  145. package/dist/components/digitalsee/workflow/utils/layoutUtils.d.ts +2 -3
  146. package/dist/components/digitalsee/workflow/utils/nextNodeSchemaCache.d.ts +6 -0
  147. package/dist/components/digitalsee/workflow/utils/nextNodeSchemaCache.test.d.ts +1 -0
  148. package/dist/components/digitalsee/workflow/utils/nodeDataFormatter.d.ts +1 -1
  149. package/dist/components/digitalsee/workflow/utils/nodeDataFormatterNext.d.ts +11 -0
  150. package/dist/components/digitalsee/workflow/utils/nodeSummaryAdapter.d.ts +15 -0
  151. package/dist/components/dynamic-form/DynamicForm.d.ts +8 -3
  152. package/dist/components/dynamic-form/DynamicForm.test.d.ts +1 -0
  153. package/dist/components/dynamic-form/DynamicFormContext.d.ts +4 -0
  154. package/dist/components/dynamic-form/FieldRenderer.d.ts +6 -2
  155. package/dist/components/dynamic-form/components/ValueModeWrapper/index.d.ts +7 -1
  156. package/dist/components/dynamic-form/components/VariableInput/index.d.ts +1 -0
  157. package/dist/components/dynamic-form/fields/complex/KeyValueField.test.d.ts +1 -0
  158. package/dist/components/dynamic-form/fields/index.d.ts +12 -0
  159. package/dist/components/dynamic-form/index.d.ts +6 -6
  160. package/dist/components/dynamic-form/registry/createFieldComponent.test.d.ts +1 -0
  161. package/dist/components/dynamic-form/registry/index.d.ts +2 -2
  162. package/dist/components/dynamic-form/types/field-component.d.ts +12 -3
  163. package/dist/locales/en-US/common.d.ts +8 -17
  164. package/dist/locales/en-US/components.d.ts +28 -0
  165. package/dist/locales/en-US/link/flow.d.ts +9 -5
  166. package/dist/locales/en-US.d.ts +42 -22
  167. package/dist/locales/index.d.ts +2 -714
  168. package/dist/locales/zh-CN/common.d.ts +8 -17
  169. package/dist/locales/zh-CN/components.d.ts +28 -0
  170. package/dist/locales/zh-CN/link/flow.d.ts +9 -5
  171. package/dist/locales/zh-CN.d.ts +42 -22
  172. package/dist/locales/zh-TW/common.d.ts +8 -17
  173. package/dist/locales/zh-TW/components.d.ts +28 -0
  174. package/dist/locales/zh-TW/link/flow.d.ts +9 -5
  175. package/dist/locales/zh-TW.d.ts +42 -22
  176. package/dist/postcss.config.js +1 -0
  177. package/dist/rcs.css +1 -1
  178. package/dist/rcs.es.js +48332 -39258
  179. package/dist/rcs.es.js.map +1 -0
  180. package/dist/rcs.umd.js +71 -66
  181. package/dist/rcs.umd.js.map +1 -0
  182. package/package.json +36 -37
  183. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/HourMiniuteField/index.d.ts +0 -5
  184. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/editor.d.ts +0 -1
  185. package/dist/components/digitalsee/workflow/NodesConfig/define/config-form-item.d.ts +0 -34
  186. package/dist/components/digitalsee/workflow/de.d.ts +0 -1
  187. package/dist/components/digitalsee/workflow/types/SaveStatus.d.ts +0 -1
  188. /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/extensions.d.ts +0 -0
  189. /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/index.d.ts +0 -0
  190. /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/base-theme.d.ts +0 -0
  191. /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/custom-completions.d.ts +0 -0
  192. /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/functions.d.ts +0 -0
  193. /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/hint.d.ts +0 -0
  194. /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/placeholders.d.ts +0 -0
  195. /package/dist/components/digitalsee/workflow/hooks/{use-wokflow-id.d.ts → use-workflow-id.d.ts} +0 -0
@@ -1,6 +1,8 @@
1
+ import { DipNodeSchema } from './dip.types';
1
2
  import { LinkSearchParams, LinkSearchResponse } from '../Panels/ModernNodeSelectorPanel/types';
3
+ import { AxiosRequestConfig } from 'axios';
2
4
  export interface WorkflowRequestOptions {
3
- method?: string;
5
+ method?: AxiosRequestConfig['method'];
4
6
  headers?: Record<string, string>;
5
7
  params?: Record<string, any>;
6
8
  data?: any;
@@ -12,6 +14,7 @@ export interface WorkflowApiEndpoints {
12
14
  nodesList: string;
13
15
  searchLinks: string;
14
16
  actions: string;
17
+ actionNodeSchema: string;
15
18
  createNode: string;
16
19
  updateNode: string;
17
20
  updateEdges: string;
@@ -30,6 +33,7 @@ export interface WorkflowApiEndpoints {
30
33
  templateFlow: string;
31
34
  flowOutput: string;
32
35
  flowOutputTree: string;
36
+ globalVariables: string;
33
37
  accountModel: string;
34
38
  accountInstanceCollection: string;
35
39
  accountInstanceDetail: string;
@@ -45,6 +49,9 @@ export interface WorkflowApiEndpoints {
45
49
  removeEdges: string;
46
50
  selectOptions: string;
47
51
  flowOpStatus: string;
52
+ onlineFlow: string;
53
+ getAppList: string;
54
+ subFlowList: string;
48
55
  }
49
56
  export interface WorkflowApiConfig {
50
57
  endpoints: WorkflowApiEndpoints;
@@ -71,7 +78,8 @@ export declare const apiGetActions: (params: {
71
78
  trigger?: boolean;
72
79
  protocol?: string;
73
80
  flowId: string;
74
- }) => Promise<unknown>;
81
+ }) => Promise<any>;
82
+ export declare const apiGetActionNodeSchema: (nodeKey: string, version: number) => Promise<DipNodeSchema>;
75
83
  export declare function apiCreateNode(data: any): Promise<unknown>;
76
84
  export declare function apiUpdateNode(id: string, data: any): Promise<unknown>;
77
85
  export declare function apiUpdateEdges(flowId: string, data: any): Promise<unknown>;
@@ -97,17 +105,35 @@ export declare function apiDeleteNode(id: string): Promise<unknown>;
97
105
  export declare function apiCheckFlow(id: string): Promise<unknown>;
98
106
  export declare function apiGetTemplateFlow(id: string): Promise<unknown>;
99
107
  export declare function apiGetFlowOutput(id: string): Promise<unknown>;
100
- export declare function apiGetFlowOutputTree(flowId: string, nodeId: string): Promise<unknown>;
101
- export declare function apiGetAcountModel(id: string): Promise<unknown>;
102
- export declare function apiGetAcountInstance(linkId: string): Promise<unknown>;
103
- export declare function apiGetAcountInstanceDetail(id: string): Promise<unknown>;
104
- export declare function apiCreateAcountInstance(connector_id: string | null, account_schema_id: string, auth_type: string, name: string, config: any, proxy_id?: string): Promise<unknown>;
105
- export declare function apiTestAcountInstanceValid(connector_id: string, account_schema_id: string, auth_type: string, name: string, config: any, id: string, proxy_id?: string): Promise<unknown>;
106
- export declare function apiUpdateAcountInstance(id: string, connector_id: string | null, account_schema_id: string | null, auth_type: string | null, name: string | null, config: any, proxy_id?: string): Promise<unknown>;
107
- export declare function apiUpdateAcountInstanceName(id: string, name: string): Promise<unknown>;
108
- export declare function apiDeleteAcountInstance(id: string): Promise<unknown>;
108
+ export interface FlowOutputTreeRequest {
109
+ nodeId?: string;
110
+ debug?: boolean;
111
+ edges?: any[];
112
+ }
113
+ export declare function apiGetFlowOutputTree(flowId: string, data: FlowOutputTreeRequest): Promise<any>;
114
+ export declare function apiGetGlobalVariables(): Promise<any>;
115
+ /**
116
+ * Fetches the account model for a credential schema key.
117
+ *
118
+ * When `account_ver` is omitted the backend returns the latest version.
119
+ */
120
+ export declare function apiGetAccountModel(account_key: string, account_ver?: number | string | null): Promise<any>;
121
+ export declare function apiGetAccountInstanceDetail(id: string): Promise<unknown>;
122
+ /**
123
+ * Credential schema identity attached to account instance create, update, and
124
+ * test requests.
125
+ */
126
+ export interface AccountInstanceSchemaMeta {
127
+ account_key?: string | null;
128
+ account_ver?: number | string | null;
129
+ }
130
+ export declare function apiCreateAccountInstance(connector_id: string | null, account_schema_id: string, auth_type: string, name: string, config: any, proxy_id?: string, schemaMeta?: AccountInstanceSchemaMeta): Promise<unknown>;
131
+ export declare function apiTestAccountInstanceValid(connector_id: string | null, account_schema_id: string, auth_type: string, name: string, config: any, id: string, proxy_id?: string, schemaMeta?: AccountInstanceSchemaMeta): Promise<unknown>;
132
+ export declare function apiUpdateAccountInstance(id: string, connector_id: string | null, account_schema_id: string | null, auth_type: string | null, name: string | null, config: any, proxy_id?: string, schemaMeta?: AccountInstanceSchemaMeta): Promise<unknown>;
133
+ export declare function apiUpdateAccountInstanceName(id: string, name: string): Promise<unknown>;
134
+ export declare function apiDeleteAccountInstance(id: string): Promise<unknown>;
109
135
  export declare function apiMoveNode(node_id: string, prev_id: string, parent_id: string): Promise<unknown>;
110
- export declare function apiCopyNode(prevNodeId: string): Promise<unknown>;
136
+ export declare function apiCopyNode(prevNodeId: string): Promise<any>;
111
137
  export declare function apiUpdateNodeNote(id: string, note: string): Promise<unknown>;
112
138
  export declare function apiUpdateNodeStatus(nodeId: string, status: 'on' | 'off'): Promise<unknown>;
113
139
  export declare function apiExportNode(flow_id: string, nodes: {
@@ -119,5 +145,8 @@ export declare function apiRunFlow(id: string): Promise<unknown>;
119
145
  export declare function apiRemoveEdges(flowId: string, edges: string[]): Promise<unknown>;
120
146
  export declare function apiGetSelectOptions(type: string): Promise<unknown>;
121
147
  export declare function updateFlowOpStatus(paramsId: any, opStatus: any): Promise<unknown>;
122
- export declare const apiGetAcountInstanceV2: (linkId: string, actionAccountSchemaId?: string) => Promise<unknown>;
148
+ export declare function onlineFlow(id: any): Promise<unknown>;
149
+ export declare const apiGetAccountInstanceV2: (linkId?: string | null, actionAccountSchemaId?: string) => Promise<unknown>;
150
+ export declare const getAppList: (params: any, formData?: any) => Promise<unknown>;
151
+ export declare const fetchSubFlowList: (name: any, formData?: any) => Promise<unknown>;
123
152
  export {};
@@ -0,0 +1,11 @@
1
+ import { IFieldSuperProps } from '../../../NodesConfig/components/FormFieldRenderer/fields/super';
2
+ interface AuthTokenFieldProps extends IFieldSuperProps<string> {
3
+ disabled?: boolean;
4
+ }
5
+ /**
6
+ * @description 鉴权 Token 输入组件,支持显示/隐藏、复制和重新生成
7
+ * @param {AuthTokenFieldProps} props 组件属性
8
+ * @returns {JSX.Element} Token 输入组件
9
+ */
10
+ export declare const AuthTokenField: (props: AuthTokenFieldProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default AuthTokenField;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { ConfigSubflowProps, ConfigSubflowRef } from './types';
3
+ /**
4
+ * ConfigSubflow 子流程配置组件
5
+ * @description 支持选择子流程并配置参数的表单控件
6
+ */
7
+ declare const ConfigSubflow: React.ForwardRefExoticComponent<ConfigSubflowProps & React.RefAttributes<ConfigSubflowRef>>;
8
+ export default ConfigSubflow;
9
+ export { ConfigSubflow };
10
+ export type { ConfigSubflowProps, ConfigSubflowRef, ConfigSubflowValue, ConfigSubflowError, SubFlowInfo, ParamConfigItem, } from './types';
@@ -0,0 +1,81 @@
1
+ import { IFieldSuperProps } from '../../../NodesConfig/components/FormFieldRenderer/fields/super';
2
+ /**
3
+ * 子流程信息
4
+ * @description 从 /acm/flow/sub-flow/list 接口返回的子流程数据
5
+ * @example
6
+ * {
7
+ * "id": "2016350214829555714",
8
+ * "name": "待调用的子流程-1",
9
+ * "description": null,
10
+ * "params": { "name": "张三", "id": "1" }
11
+ * }
12
+ */
13
+ export interface SubFlowInfo {
14
+ /** 子流程 ID */
15
+ id: string;
16
+ /** 子流程名称 */
17
+ name: string;
18
+ /** 流程描述 */
19
+ description?: string | null;
20
+ /** 子流程的参数配置(key-value 格式,值为示例/默认值) */
21
+ params?: Record<string, string | number | boolean>;
22
+ }
23
+ /**
24
+ * 子流程配置值
25
+ * @description 组件最终输出的配置值结构
26
+ * @example
27
+ * {
28
+ * "flowId": "2016350214829555714",
29
+ * "input": { "id": 1, "name": "张三" }
30
+ * }
31
+ */
32
+ export interface ConfigSubflowValue {
33
+ /** 选择的子流程 ID */
34
+ flowId: string;
35
+ /** 子流程的输入参数配置,key-value 键值对 */
36
+ input: Record<string, unknown>;
37
+ }
38
+ /**
39
+ * ConfigSubflow 组件属性
40
+ * @description 用于 FormItem 的受控组件属性
41
+ */
42
+ export interface ConfigSubflowProps extends IFieldSuperProps<ConfigSubflowValue> {
43
+ /** 是否禁用 */
44
+ disabled?: boolean;
45
+ /** 节点 ID,用于变量选择器 */
46
+ nodeId?: string;
47
+ }
48
+ /**
49
+ * 参数配置项(内部使用)
50
+ * @description key-value 列表中的单项配置
51
+ */
52
+ export interface ParamConfigItem {
53
+ /** 内部唯一标识 */
54
+ id: string;
55
+ /** 参数键名(不可修改) */
56
+ key: string;
57
+ /** 参数值 */
58
+ value: unknown;
59
+ /** 示例值/默认值(来自子流程配置) */
60
+ exampleValue?: string | number | boolean;
61
+ }
62
+ /**
63
+ * ConfigSubflow 组件 ref 暴露的方法
64
+ */
65
+ export interface ConfigSubflowRef {
66
+ /** 校验配置,返回是否通过 */
67
+ validate: () => boolean;
68
+ /** 清除校验错误 */
69
+ clearErrors: () => void;
70
+ }
71
+ /**
72
+ * 校验错误信息
73
+ */
74
+ export interface ConfigSubflowError {
75
+ /** 错误类型 */
76
+ type: 'flow' | 'param';
77
+ /** 参数键名(type 为 param 时有效) */
78
+ paramKey?: string;
79
+ /** 错误信息 */
80
+ message: string;
81
+ }
@@ -0,0 +1,13 @@
1
+ import { MultiRowGuardProps, MultiRowGuardRef } from './types';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * MultiRowGuard 数据校验规则配置组件
5
+ * @description 支持多行规则配置和拖拽排序的表单控件
6
+ * @param {MultiRowGuardProps} props 组件属性
7
+ * @param {React.Ref<MultiRowGuardRef>} ref 组件 ref
8
+ */
9
+ declare const MultiRowGuard: React.ForwardRefExoticComponent<MultiRowGuardProps & React.RefAttributes<MultiRowGuardRef>>;
10
+ export default MultiRowGuard;
11
+ export type { GuardRule, GuardRuleError, MultiRowGuardProps, MultiRowGuardRef, MultiRowGuardValue, } from './types';
12
+ export { multiRowGuardRequiredValidator, multiRowGuardValidator, } from './types';
13
+ export { MultiRowGuard };
@@ -0,0 +1,98 @@
1
+ import { GuardExpectedType, GuardRuleType, GuardSeverity } from '../../../enums/node';
2
+ /**
3
+ * Guard 校验规则项
4
+ * @description 单条校验规则的数据结构(使用下划线命名风格,与后端保持一致)
5
+ */
6
+ export interface GuardRule {
7
+ /** 内部唯一标识,用于拖拽排序和渲染 key */
8
+ id?: string;
9
+ /** 字段路径,如 data.order_id */
10
+ field_path: string;
11
+ /** 校验规则类型 */
12
+ rule_type: GuardRuleType;
13
+ /** 失败处理方式:Error 终止流程,Warning 记录告警继续执行 */
14
+ severity: GuardSeverity;
15
+ /** 自定义错误提示信息 */
16
+ message?: string;
17
+ /** 枚举值列表,rule_type 为 enum 时有效 */
18
+ enum_values?: (string | number)[];
19
+ /** 期望数据类型,rule_type 为 type 时有效 */
20
+ expected_type?: GuardExpectedType;
21
+ /** 最小值,rule_type 为 range 时有效 */
22
+ min?: number;
23
+ /** 最大值,rule_type 为 range 时有效 */
24
+ max?: number;
25
+ }
26
+ /**
27
+ * MultiRowGuard 组件的值类型
28
+ * @description 用于 FormItem 的 value 属性,直接为规则数组
29
+ */
30
+ export type MultiRowGuardValue = GuardRule[];
31
+ /**
32
+ * MultiRowGuard 组件属性
33
+ * @description 用于 FormItem 的受控组件
34
+ */
35
+ export interface MultiRowGuardProps {
36
+ /** 当前值(规则数组) */
37
+ value?: MultiRowGuardValue;
38
+ /** 值变更回调 */
39
+ onChange?: (value: MultiRowGuardValue) => void;
40
+ /** 是否禁用 */
41
+ disabled?: boolean;
42
+ /** 节点 ID,用于变量选择器 */
43
+ nodeId?: string;
44
+ }
45
+ /**
46
+ * 单条规则的校验错误
47
+ */
48
+ export interface GuardRuleError {
49
+ /** 规则 ID */
50
+ ruleId: string;
51
+ /** 错误字段名 */
52
+ field: keyof GuardRule;
53
+ /** 错误信息 */
54
+ message: string;
55
+ }
56
+ /**
57
+ * MultiRowGuard 组件 ref 暴露的方法
58
+ */
59
+ export interface MultiRowGuardRef {
60
+ /** 校验所有规则,返回是否通过 */
61
+ validate: () => boolean;
62
+ /** 获取校验错误列表 */
63
+ getErrors: () => GuardRuleError[];
64
+ /** 清除校验错误 */
65
+ clearErrors: () => void;
66
+ }
67
+ /** 规则类型选项配置 */
68
+ export declare const RULE_TYPE_OPTIONS: Array<{
69
+ label: string;
70
+ value: GuardRuleType;
71
+ }>;
72
+ /** 失败处理方式选项配置 */
73
+ export declare const SEVERITY_OPTIONS: Array<{
74
+ label: string;
75
+ value: GuardSeverity;
76
+ }>;
77
+ /** 期望数据类型选项配置 */
78
+ export declare const EXPECTED_TYPE_OPTIONS: Array<{
79
+ label: string;
80
+ value: GuardExpectedType;
81
+ }>;
82
+ /**
83
+ * MultiRowGuard 校验器
84
+ * @description 用于 Form.Item rules 的校验函数
85
+ * @example
86
+ * <Form.Item
87
+ * name="guardConfig"
88
+ * rules={[{ validator: multiRowGuardValidator }]}
89
+ * >
90
+ * <MultiRowGuard nodeId={nodeId} />
91
+ * </Form.Item>
92
+ */
93
+ export declare const multiRowGuardValidator: (_: unknown, value: MultiRowGuardValue | undefined) => Promise<void>;
94
+ /**
95
+ * MultiRowGuard 必填校验器
96
+ * @description 校验是否至少添加了一条规则
97
+ */
98
+ export declare const multiRowGuardRequiredValidator: (_: unknown, value: MultiRowGuardValue | undefined) => Promise<void>;
@@ -0,0 +1,13 @@
1
+ import { MultiRowGuardProps, MultiRowGuardRef } from '../MultiRowGuard/types';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * MultiRowGuard 数据校验规则配置组件
5
+ * @description 支持多行规则配置和拖拽排序的表单控件
6
+ * @param {MultiRowGuardProps} props 组件属性
7
+ * @param {React.Ref<MultiRowGuardRef>} ref 组件 ref
8
+ */
9
+ declare const MultiRowGuard: React.ForwardRefExoticComponent<MultiRowGuardProps & React.RefAttributes<MultiRowGuardRef>>;
10
+ export default MultiRowGuard;
11
+ export type { GuardRule, GuardRuleError, MultiRowGuardProps, MultiRowGuardRef, MultiRowGuardValue, } from '../MultiRowGuard/types';
12
+ export { multiRowGuardRequiredValidator, multiRowGuardValidator, } from '../MultiRowGuard/types';
13
+ export { MultiRowGuard };
@@ -0,0 +1,11 @@
1
+ import { IFieldSuperProps } from '../../../NodesConfig/components/FormFieldRenderer/fields/super';
2
+ interface SecretKeyFieldProps extends IFieldSuperProps<string> {
3
+ disabled?: boolean;
4
+ }
5
+ /**
6
+ * @description 鉴权 Token 输入组件,支持显示/隐藏、复制和重新生成
7
+ * @param {SecretKeyFieldProps} props 组件属性
8
+ * @returns {JSX.Element} Token 输入组件
9
+ */
10
+ export declare const SecretKeyField: (props: SecretKeyFieldProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default SecretKeyField;
@@ -0,0 +1,11 @@
1
+ import { IFieldSuperProps } from '../../../NodesConfig/components/FormFieldRenderer/fields/super';
2
+ interface SelectOAuth2ClientFieldProps extends IFieldSuperProps<string> {
3
+ disabled?: boolean;
4
+ }
5
+ /**
6
+ * @description OAuth2/OIDC 应用选择组件,支持搜索、加载更多与 Token 端点展示。
7
+ * @param {SelectOAuth2ClientFieldProps} props 组件参数。
8
+ * @returns {JSX.Element} 组件节点。
9
+ */
10
+ declare const SelectOAuth2ClientField: (props: SelectOAuth2ClientFieldProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default SelectOAuth2ClientField;
@@ -0,0 +1 @@
1
+ export declare const GlobalConfig: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ExecutionControlState } from '../../store/workflowSlice';
2
+ import { GlobalConfigData, TimeUnit, TimeUnitAPI } from './types';
3
+ export declare function timeUnitToAPI(unit: TimeUnit): TimeUnitAPI;
4
+ export declare function timeUnitFromAPI(unit: TimeUnitAPI): TimeUnit;
5
+ export declare function getDefaultGlobalConfigData(): GlobalConfigData;
6
+ export declare function configToAPI(config: GlobalConfigData): ExecutionControlState;
7
+ export declare function configFromAPI(apiConfig: ExecutionControlState): GlobalConfigData;
8
+ export declare function isValidWebhookUrl(value?: string): boolean;
@@ -0,0 +1,17 @@
1
+ export declare enum TimeUnit {
2
+ SECOND = "second",
3
+ MINUTE = "minute",
4
+ HOUR = "hour"
5
+ }
6
+ export declare enum TimeUnitAPI {
7
+ SECONDS = "SECONDS",
8
+ MINUTES = "MINUTES",
9
+ HOURS = "HOURS"
10
+ }
11
+ export interface GlobalConfigData {
12
+ enableControl: boolean;
13
+ timeoutValue: number;
14
+ timeoutUnit: TimeUnit;
15
+ maxNodeExecutions: number;
16
+ webhookUrl?: string;
17
+ }
@@ -0,0 +1 @@
1
+ export declare const NEXT_ERROR_HANDLE_ID = "error";
@@ -0,0 +1,63 @@
1
+ /**
2
+ * 画布(Canvas)相关枚举
3
+ */
4
+ /**
5
+ * 引擎模式
6
+ */
7
+ export declare enum EngineMode {
8
+ /** 经典模式,使用 ACM 后端 */
9
+ CLASSIC = "classic",
10
+ /** Next 模式,使用 DIP 后端 + DynamicForm */
11
+ NEXT = "next"
12
+ }
13
+ /**
14
+ * 画布保存状态
15
+ */
16
+ export declare enum SaveStatus {
17
+ /**
18
+ * 空闲状态
19
+ */
20
+ IDLE = "idle",
21
+ /**
22
+ * 保存中
23
+ */
24
+ SAVING = "saving",
25
+ /**
26
+ * 已保存
27
+ */
28
+ SAVED = "saved",
29
+ /**
30
+ * 保存出错
31
+ */
32
+ ERROR = "error"
33
+ }
34
+ /**
35
+ * 画布布局来源
36
+ */
37
+ export declare enum CanvasLayoutSource {
38
+ /**
39
+ * 键盘快捷键
40
+ */
41
+ KEYBOARD_SHORTCUT = "keyboard-shortcut",
42
+ /**
43
+ * 画布按钮
44
+ */
45
+ CANVAS_BUTTON = "canvas-button",
46
+ /**
47
+ * 右键菜单
48
+ */
49
+ CONTEXT_MENU = "context-menu"
50
+ }
51
+ /**
52
+ * 画布布局目标
53
+ */
54
+ export declare enum CanvasLayoutTarget {
55
+ /**
56
+ * 选中的节点
57
+ */
58
+ SELECTION = "selection",
59
+ /**
60
+ * 所有节点
61
+ */
62
+ ALL = "all"
63
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Edge(连线)相关枚举
3
+ */
4
+ /**
5
+ * 边类型
6
+ */
7
+ export declare enum EdgeType {
8
+ MAIN = "main",
9
+ AI = "ai"
10
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Handle(连接点)相关枚举
3
+ */
4
+ /**
5
+ * Handle ReactFlow 内部类型(source/target 方向)
6
+ */
7
+ export declare enum HandleType {
8
+ SOURCE = "source",
9
+ TARGET = "target"
10
+ }
11
+ /**
12
+ * Handle 连线类型(业务层端口语义)
13
+ */
14
+ export declare enum HandleConnectionType {
15
+ INPUT = "input",
16
+ OUTPUT = "output",
17
+ CHAT_MODEL = "chat_model",
18
+ DONE = "done",
19
+ LOOP = "loop",
20
+ FALSE = "false",
21
+ TRUE = "true",
22
+ MEMORY = "memory",
23
+ TOOLS = "tools",
24
+ BUILTIN_MCP = "builtin_mcp"
25
+ }
26
+ /**
27
+ * Handle 方向
28
+ */
29
+ export declare enum HandleDirection {
30
+ INPUT = "input",
31
+ OUTPUT = "output"
32
+ }
33
+ /**
34
+ * Handle 连接状态
35
+ */
36
+ export declare enum HandleStatus {
37
+ DEFAULT = "default",
38
+ VALID = "valid",
39
+ INVALID = "invalid",
40
+ CONNECTING = "connecting",
41
+ FULL = "full"
42
+ }
@@ -0,0 +1,5 @@
1
+ export * from './canvas';
2
+ export * from './edge';
3
+ export * from './handle';
4
+ export * from './node';
5
+ export * from './workflow';