@enfyra/mcp-server 0.1.69 → 0.1.71

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 (248) hide show
  1. package/README.md +1 -1
  2. package/dist/lib/config-local-adapters.d.ts +18 -0
  3. package/dist/lib/config-local-adapters.js +271 -0
  4. package/dist/lib/config-local-adapters.js.map +1 -0
  5. package/dist/lib/config-local-contracts.d.ts +28 -0
  6. package/dist/lib/config-local-contracts.js +200 -0
  7. package/dist/lib/config-local-contracts.js.map +1 -0
  8. package/dist/lib/config-local-prompts.d.ts +10 -0
  9. package/dist/lib/config-local-prompts.js +185 -0
  10. package/dist/lib/config-local-prompts.js.map +1 -0
  11. package/dist/lib/config-local-types.d.ts +23 -0
  12. package/dist/lib/config-local-types.js +2 -0
  13. package/dist/lib/config-local-types.js.map +1 -0
  14. package/dist/lib/config-local.js +3 -649
  15. package/dist/lib/config-local.js.map +1 -1
  16. package/dist/lib/discovery-tools.d.ts +4 -0
  17. package/dist/lib/discovery-tools.js +546 -0
  18. package/dist/lib/discovery-tools.js.map +1 -0
  19. package/dist/lib/dynamic-repository-builder.d.ts +1 -1
  20. package/dist/lib/dynamic-script-context-contract.d.ts +100 -0
  21. package/dist/lib/dynamic-script-context-contract.js +163 -0
  22. package/dist/lib/dynamic-script-context-contract.js.map +1 -0
  23. package/dist/lib/enfyra-mcp-server.d.ts +3 -0
  24. package/dist/lib/enfyra-mcp-server.js +79 -0
  25. package/dist/lib/enfyra-mcp-server.js.map +1 -0
  26. package/dist/lib/enfyra-tool-logic.d.ts +7 -0
  27. package/dist/lib/enfyra-tool-logic.js +8 -0
  28. package/dist/lib/enfyra-tool-logic.js.map +1 -0
  29. package/dist/lib/enfyra-tool-types.d.ts +27 -0
  30. package/dist/lib/enfyra-tool-types.js +2 -0
  31. package/dist/lib/enfyra-tool-types.js.map +1 -0
  32. package/dist/lib/extension-api-builders.d.ts +17 -0
  33. package/dist/lib/extension-api-builders.js +235 -0
  34. package/dist/lib/extension-api-builders.js.map +1 -0
  35. package/dist/lib/extension-component-builders.d.ts +87 -0
  36. package/dist/lib/extension-component-builders.js +623 -0
  37. package/dist/lib/extension-component-builders.js.map +1 -0
  38. package/dist/lib/extension-contract-review.d.ts +26 -0
  39. package/dist/lib/extension-contract-review.js +187 -0
  40. package/dist/lib/extension-contract-review.js.map +1 -0
  41. package/dist/lib/extension-theme-contract.d.ts +63 -0
  42. package/dist/lib/extension-theme-contract.js +417 -0
  43. package/dist/lib/extension-theme-contract.js.map +1 -0
  44. package/dist/lib/identity-tools.d.ts +4 -0
  45. package/dist/lib/identity-tools.js +46 -0
  46. package/dist/lib/identity-tools.js.map +1 -0
  47. package/dist/lib/log-tools.d.ts +4 -0
  48. package/dist/lib/log-tools.js +65 -0
  49. package/dist/lib/log-tools.js.map +1 -0
  50. package/dist/lib/mcp-example-connect.d.ts +9 -0
  51. package/dist/lib/mcp-example-connect.js +442 -0
  52. package/dist/lib/mcp-example-connect.js.map +1 -0
  53. package/dist/lib/mcp-example-extensions.d.ts +9 -0
  54. package/dist/lib/mcp-example-extensions.js +729 -0
  55. package/dist/lib/mcp-example-extensions.js.map +1 -0
  56. package/dist/lib/mcp-example-files.d.ts +9 -0
  57. package/dist/lib/mcp-example-files.js +51 -0
  58. package/dist/lib/mcp-example-files.js.map +1 -0
  59. package/dist/lib/mcp-example-flows.d.ts +9 -0
  60. package/dist/lib/mcp-example-flows.js +76 -0
  61. package/dist/lib/mcp-example-flows.js.map +1 -0
  62. package/dist/lib/mcp-example-graphql.d.ts +9 -0
  63. package/dist/lib/mcp-example-graphql.js +57 -0
  64. package/dist/lib/mcp-example-graphql.js.map +1 -0
  65. package/dist/lib/mcp-example-handlers-hooks.d.ts +9 -0
  66. package/dist/lib/mcp-example-handlers-hooks.js +328 -0
  67. package/dist/lib/mcp-example-handlers-hooks.js.map +1 -0
  68. package/dist/lib/mcp-example-oauth-setup.d.ts +9 -0
  69. package/dist/lib/mcp-example-oauth-setup.js +41 -0
  70. package/dist/lib/mcp-example-oauth-setup.js.map +1 -0
  71. package/dist/lib/mcp-example-permissions-rls.d.ts +9 -0
  72. package/dist/lib/mcp-example-permissions-rls.js +210 -0
  73. package/dist/lib/mcp-example-permissions-rls.js.map +1 -0
  74. package/dist/lib/mcp-example-queries-deep.d.ts +9 -0
  75. package/dist/lib/mcp-example-queries-deep.js +220 -0
  76. package/dist/lib/mcp-example-queries-deep.js.map +1 -0
  77. package/dist/lib/mcp-example-schema-relations.d.ts +9 -0
  78. package/dist/lib/mcp-example-schema-relations.js +148 -0
  79. package/dist/lib/mcp-example-schema-relations.js.map +1 -0
  80. package/dist/lib/mcp-example-websocket.d.ts +9 -0
  81. package/dist/lib/mcp-example-websocket.js +103 -0
  82. package/dist/lib/mcp-example-websocket.js.map +1 -0
  83. package/dist/lib/mcp-examples.d.ts +5 -5
  84. package/dist/lib/mcp-examples.js +22 -2394
  85. package/dist/lib/mcp-examples.js.map +1 -1
  86. package/dist/lib/method-tools.d.ts +4 -0
  87. package/dist/lib/method-tools.js +217 -0
  88. package/dist/lib/method-tools.js.map +1 -0
  89. package/dist/lib/package-tools.d.ts +4 -0
  90. package/dist/lib/package-tools.js +98 -0
  91. package/dist/lib/package-tools.js.map +1 -0
  92. package/dist/lib/platform-data-operations.d.ts +24 -0
  93. package/dist/lib/platform-data-operations.js +71 -0
  94. package/dist/lib/platform-data-operations.js.map +1 -0
  95. package/dist/lib/platform-endpoint-workflow.d.ts +42 -0
  96. package/dist/lib/platform-endpoint-workflow.js +382 -0
  97. package/dist/lib/platform-endpoint-workflow.js.map +1 -0
  98. package/dist/lib/platform-extension-source.d.ts +487 -0
  99. package/dist/lib/platform-extension-source.js +524 -0
  100. package/dist/lib/platform-extension-source.js.map +1 -0
  101. package/dist/lib/platform-extension-tools.d.ts +1 -0
  102. package/dist/lib/platform-extension-tools.js +416 -0
  103. package/dist/lib/platform-extension-tools.js.map +1 -0
  104. package/dist/lib/platform-extension-ui.d.ts +4 -0
  105. package/dist/lib/platform-extension-ui.js +5 -0
  106. package/dist/lib/platform-extension-ui.js.map +1 -0
  107. package/dist/lib/platform-extension-workflow.d.ts +54 -0
  108. package/dist/lib/platform-extension-workflow.js +194 -0
  109. package/dist/lib/platform-extension-workflow.js.map +1 -0
  110. package/dist/lib/platform-flow-operations.d.ts +554 -0
  111. package/dist/lib/platform-flow-operations.js +317 -0
  112. package/dist/lib/platform-flow-operations.js.map +1 -0
  113. package/dist/lib/platform-flow-tools.d.ts +1 -0
  114. package/dist/lib/platform-flow-tools.js +248 -0
  115. package/dist/lib/platform-flow-tools.js.map +1 -0
  116. package/dist/lib/platform-operation-logic.d.ts +10 -0
  117. package/dist/lib/platform-operation-logic.js +11 -0
  118. package/dist/lib/platform-operation-logic.js.map +1 -0
  119. package/dist/lib/platform-operation-tools.d.ts +1 -324
  120. package/dist/lib/platform-operation-tools.js +13 -4620
  121. package/dist/lib/platform-operation-tools.js.map +1 -1
  122. package/dist/lib/platform-operation-types.d.ts +46 -0
  123. package/dist/lib/platform-operation-types.js +2 -0
  124. package/dist/lib/platform-operation-types.js.map +1 -0
  125. package/dist/lib/platform-policy-tools.d.ts +1 -0
  126. package/dist/lib/platform-policy-tools.js +248 -0
  127. package/dist/lib/platform-policy-tools.js.map +1 -0
  128. package/dist/lib/platform-resource-operations.d.ts +124 -0
  129. package/dist/lib/platform-resource-operations.js +109 -0
  130. package/dist/lib/platform-resource-operations.js.map +1 -0
  131. package/dist/lib/platform-resource-tools.d.ts +1 -0
  132. package/dist/lib/platform-resource-tools.js +70 -0
  133. package/dist/lib/platform-resource-tools.js.map +1 -0
  134. package/dist/lib/platform-route-operations.d.ts +222 -0
  135. package/dist/lib/platform-route-operations.js +290 -0
  136. package/dist/lib/platform-route-operations.js.map +1 -0
  137. package/dist/lib/platform-route-tools.d.ts +1 -0
  138. package/dist/lib/platform-route-tools.js +307 -0
  139. package/dist/lib/platform-route-tools.js.map +1 -0
  140. package/dist/lib/platform-shared-operations.d.ts +7 -0
  141. package/dist/lib/platform-shared-operations.js +4 -0
  142. package/dist/lib/platform-shared-operations.js.map +1 -0
  143. package/dist/lib/platform-websocket-tools.d.ts +1 -0
  144. package/dist/lib/platform-websocket-tools.js +70 -0
  145. package/dist/lib/platform-websocket-tools.js.map +1 -0
  146. package/dist/lib/record-tools.d.ts +4 -0
  147. package/dist/lib/record-tools.js +418 -0
  148. package/dist/lib/record-tools.js.map +1 -0
  149. package/dist/lib/required-knowledge.d.ts +1 -1
  150. package/dist/lib/required-knowledge.js +3 -2
  151. package/dist/lib/required-knowledge.js.map +1 -1
  152. package/dist/lib/route-access-tools.d.ts +4 -0
  153. package/dist/lib/route-access-tools.js +172 -0
  154. package/dist/lib/route-access-tools.js.map +1 -0
  155. package/dist/lib/route-definition-tools.d.ts +4 -0
  156. package/dist/lib/route-definition-tools.js +285 -0
  157. package/dist/lib/route-definition-tools.js.map +1 -0
  158. package/dist/lib/route-inspection-tools.d.ts +4 -0
  159. package/dist/lib/route-inspection-tools.js +319 -0
  160. package/dist/lib/route-inspection-tools.js.map +1 -0
  161. package/dist/lib/route-tools.d.ts +1 -0
  162. package/dist/lib/route-tools.js +9 -0
  163. package/dist/lib/route-tools.js.map +1 -0
  164. package/dist/lib/runtime-zone-registry.d.ts +27 -0
  165. package/dist/lib/runtime-zone-registry.js +81 -0
  166. package/dist/lib/runtime-zone-registry.js.map +1 -0
  167. package/dist/lib/runtime-zone-search.d.ts +303 -0
  168. package/dist/lib/runtime-zone-search.js +596 -0
  169. package/dist/lib/runtime-zone-search.js.map +1 -0
  170. package/dist/lib/runtime-zone-tools.d.ts +2 -307
  171. package/dist/lib/runtime-zone-tools.js +2 -674
  172. package/dist/lib/runtime-zone-tools.js.map +1 -1
  173. package/dist/lib/schema-column-tools.d.ts +3 -0
  174. package/dist/lib/schema-column-tools.js +80 -0
  175. package/dist/lib/schema-column-tools.js.map +1 -0
  176. package/dist/lib/schema-mutation-coordinator.d.ts +28 -0
  177. package/dist/lib/schema-mutation-coordinator.js +154 -0
  178. package/dist/lib/schema-mutation-coordinator.js.map +1 -0
  179. package/dist/lib/schema-relation-contracts.d.ts +39 -0
  180. package/dist/lib/schema-relation-contracts.js +160 -0
  181. package/dist/lib/schema-relation-contracts.js.map +1 -0
  182. package/dist/lib/schema-relation-tools.d.ts +3 -0
  183. package/dist/lib/schema-relation-tools.js +61 -0
  184. package/dist/lib/schema-relation-tools.js.map +1 -0
  185. package/dist/lib/schema-table-contracts.d.ts +28 -0
  186. package/dist/lib/schema-table-contracts.js +263 -0
  187. package/dist/lib/schema-table-contracts.js.map +1 -0
  188. package/dist/lib/schema-table-tools.d.ts +3 -0
  189. package/dist/lib/schema-table-tools.js +297 -0
  190. package/dist/lib/schema-table-tools.js.map +1 -0
  191. package/dist/lib/schema-tool-operations.d.ts +150 -0
  192. package/dist/lib/schema-tool-operations.js +468 -0
  193. package/dist/lib/schema-tool-operations.js.map +1 -0
  194. package/dist/lib/schema-tool-types.d.ts +38 -0
  195. package/dist/lib/schema-tool-types.js +2 -0
  196. package/dist/lib/schema-tool-types.js.map +1 -0
  197. package/dist/lib/schema-verification.d.ts +14 -0
  198. package/dist/lib/schema-verification.js +105 -0
  199. package/dist/lib/schema-verification.js.map +1 -0
  200. package/dist/lib/script-tools.d.ts +4 -0
  201. package/dist/lib/script-tools.js +127 -0
  202. package/dist/lib/script-tools.js.map +1 -0
  203. package/dist/lib/system-tools.d.ts +4 -0
  204. package/dist/lib/system-tools.js +41 -0
  205. package/dist/lib/system-tools.js.map +1 -0
  206. package/dist/lib/table-tool-logic.d.ts +5 -0
  207. package/dist/lib/table-tool-logic.js +6 -0
  208. package/dist/lib/table-tool-logic.js.map +1 -0
  209. package/dist/lib/table-tools.d.ts +1 -84
  210. package/dist/lib/table-tools.js +7 -1522
  211. package/dist/lib/table-tools.js.map +1 -1
  212. package/dist/lib/tool-catalog.d.ts +2 -1
  213. package/dist/lib/tool-catalog.js +23 -2
  214. package/dist/lib/tool-catalog.js.map +1 -1
  215. package/dist/lib/tool-metadata-operations.d.ts +27 -0
  216. package/dist/lib/tool-metadata-operations.js +93 -0
  217. package/dist/lib/tool-metadata-operations.js.map +1 -0
  218. package/dist/lib/tool-permission-profile.d.ts +37 -0
  219. package/dist/lib/tool-permission-profile.js +106 -0
  220. package/dist/lib/tool-permission-profile.js.map +1 -0
  221. package/dist/lib/tool-record-operations.d.ts +102 -0
  222. package/dist/lib/tool-record-operations.js +260 -0
  223. package/dist/lib/tool-record-operations.js.map +1 -0
  224. package/dist/lib/tool-route-inspection.d.ts +47 -0
  225. package/dist/lib/tool-route-inspection.js +168 -0
  226. package/dist/lib/tool-route-inspection.js.map +1 -0
  227. package/dist/lib/tool-routing.d.ts +3 -417
  228. package/dist/lib/tool-routing.js +3 -1038
  229. package/dist/lib/tool-routing.js.map +1 -1
  230. package/dist/lib/tool-runtime-config.d.ts +33 -0
  231. package/dist/lib/tool-runtime-config.js +237 -0
  232. package/dist/lib/tool-runtime-config.js.map +1 -0
  233. package/dist/lib/tool-script-operations.d.ts +34 -0
  234. package/dist/lib/tool-script-operations.js +153 -0
  235. package/dist/lib/tool-script-operations.js.map +1 -0
  236. package/dist/lib/workflow-definitions.d.ts +366 -0
  237. package/dist/lib/workflow-definitions.js +703 -0
  238. package/dist/lib/workflow-definitions.js.map +1 -0
  239. package/dist/lib/workflow-planner.d.ts +45 -0
  240. package/dist/lib/workflow-planner.js +338 -0
  241. package/dist/lib/workflow-planner.js.map +1 -0
  242. package/dist/lib/workflow-types.d.ts +39 -0
  243. package/dist/lib/workflow-types.js +2 -0
  244. package/dist/lib/workflow-types.js.map +1 -0
  245. package/dist/mcp-server-entry.d.ts +0 -3
  246. package/dist/mcp-server-entry.js +2 -3249
  247. package/dist/mcp-server-entry.js.map +1 -1
  248. package/package.json +1 -1
@@ -0,0 +1,554 @@
1
+ export declare function ensureFlow(apiUrl: any, { name, triggerType, triggerConfig, timeout, maxExecutions, isEnabled, description, globalRulesAckKey, }: {
2
+ name: any;
3
+ triggerType?: string;
4
+ triggerConfig: any;
5
+ timeout: any;
6
+ maxExecutions?: number;
7
+ isEnabled?: boolean;
8
+ description: any;
9
+ globalRulesAckKey: any;
10
+ }): Promise<{
11
+ action: string;
12
+ flow: {
13
+ id: any;
14
+ name: any;
15
+ };
16
+ operation: {
17
+ action: string;
18
+ result: any;
19
+ id: any;
20
+ };
21
+ reload: {
22
+ attempted: boolean;
23
+ succeeded: boolean;
24
+ reason: any;
25
+ };
26
+ }>;
27
+ export declare function ensureFlowStep(apiUrl: any, { flowName, flowId, key, type, order, config, sourceCode, scriptLanguage, timeout, isEnabled, globalRulesAckKey, knowledgeAckKey, }: {
28
+ flowName: any;
29
+ flowId: any;
30
+ key: any;
31
+ type: any;
32
+ order: any;
33
+ config: any;
34
+ sourceCode: any;
35
+ scriptLanguage: any;
36
+ timeout: any;
37
+ isEnabled: any;
38
+ globalRulesAckKey: any;
39
+ knowledgeAckKey: any;
40
+ }): Promise<{
41
+ action: string;
42
+ flow: {
43
+ id: any;
44
+ name: any;
45
+ };
46
+ step: {
47
+ id: any;
48
+ key: any;
49
+ type: any;
50
+ };
51
+ validation: {
52
+ valid: boolean;
53
+ scriptLanguage: string;
54
+ compiledLength: any;
55
+ } | {
56
+ validated: boolean;
57
+ reason: string;
58
+ };
59
+ operation: {
60
+ action: string;
61
+ result: any;
62
+ id: any;
63
+ };
64
+ reload: {
65
+ attempted: boolean;
66
+ succeeded: boolean;
67
+ reason: any;
68
+ };
69
+ }>;
70
+ export declare const FLOW_STEP_TOOL_GUIDANCE: ({
71
+ tool: string;
72
+ type: string;
73
+ when: string;
74
+ config: {
75
+ table: string;
76
+ filter: {};
77
+ fields: string;
78
+ limit: number;
79
+ sort: string;
80
+ data?: undefined;
81
+ id?: undefined;
82
+ url?: undefined;
83
+ method?: undefined;
84
+ headers?: undefined;
85
+ body?: undefined;
86
+ timeout?: undefined;
87
+ ms?: undefined;
88
+ flowName?: undefined;
89
+ payload?: undefined;
90
+ message?: undefined;
91
+ };
92
+ sourceCode?: undefined;
93
+ } | {
94
+ tool: string;
95
+ type: string;
96
+ when: string;
97
+ config: {
98
+ table: string;
99
+ data: {
100
+ field: string;
101
+ };
102
+ filter?: undefined;
103
+ fields?: undefined;
104
+ limit?: undefined;
105
+ sort?: undefined;
106
+ id?: undefined;
107
+ url?: undefined;
108
+ method?: undefined;
109
+ headers?: undefined;
110
+ body?: undefined;
111
+ timeout?: undefined;
112
+ ms?: undefined;
113
+ flowName?: undefined;
114
+ payload?: undefined;
115
+ message?: undefined;
116
+ };
117
+ sourceCode?: undefined;
118
+ } | {
119
+ tool: string;
120
+ type: string;
121
+ when: string;
122
+ config: {
123
+ table: string;
124
+ id: string;
125
+ data: {
126
+ field: string;
127
+ };
128
+ filter?: undefined;
129
+ fields?: undefined;
130
+ limit?: undefined;
131
+ sort?: undefined;
132
+ url?: undefined;
133
+ method?: undefined;
134
+ headers?: undefined;
135
+ body?: undefined;
136
+ timeout?: undefined;
137
+ ms?: undefined;
138
+ flowName?: undefined;
139
+ payload?: undefined;
140
+ message?: undefined;
141
+ };
142
+ sourceCode?: undefined;
143
+ } | {
144
+ tool: string;
145
+ type: string;
146
+ when: string;
147
+ config: {
148
+ table: string;
149
+ id: string;
150
+ filter?: undefined;
151
+ fields?: undefined;
152
+ limit?: undefined;
153
+ sort?: undefined;
154
+ data?: undefined;
155
+ url?: undefined;
156
+ method?: undefined;
157
+ headers?: undefined;
158
+ body?: undefined;
159
+ timeout?: undefined;
160
+ ms?: undefined;
161
+ flowName?: undefined;
162
+ payload?: undefined;
163
+ message?: undefined;
164
+ };
165
+ sourceCode?: undefined;
166
+ } | {
167
+ tool: string;
168
+ type: string;
169
+ when: string;
170
+ config: {
171
+ url: string;
172
+ method: string;
173
+ headers: {};
174
+ body: {};
175
+ timeout: number;
176
+ table?: undefined;
177
+ filter?: undefined;
178
+ fields?: undefined;
179
+ limit?: undefined;
180
+ sort?: undefined;
181
+ data?: undefined;
182
+ id?: undefined;
183
+ ms?: undefined;
184
+ flowName?: undefined;
185
+ payload?: undefined;
186
+ message?: undefined;
187
+ };
188
+ sourceCode?: undefined;
189
+ } | {
190
+ tool: string;
191
+ type: string;
192
+ when: string;
193
+ sourceCode: string;
194
+ config?: undefined;
195
+ } | {
196
+ tool: string;
197
+ type: string;
198
+ when: string;
199
+ config: {
200
+ ms: number;
201
+ table?: undefined;
202
+ filter?: undefined;
203
+ fields?: undefined;
204
+ limit?: undefined;
205
+ sort?: undefined;
206
+ data?: undefined;
207
+ id?: undefined;
208
+ url?: undefined;
209
+ method?: undefined;
210
+ headers?: undefined;
211
+ body?: undefined;
212
+ timeout?: undefined;
213
+ flowName?: undefined;
214
+ payload?: undefined;
215
+ message?: undefined;
216
+ };
217
+ sourceCode?: undefined;
218
+ } | {
219
+ tool: string;
220
+ type: string;
221
+ when: string;
222
+ config: {
223
+ flowName: string;
224
+ payload: {};
225
+ table?: undefined;
226
+ filter?: undefined;
227
+ fields?: undefined;
228
+ limit?: undefined;
229
+ sort?: undefined;
230
+ data?: undefined;
231
+ id?: undefined;
232
+ url?: undefined;
233
+ method?: undefined;
234
+ headers?: undefined;
235
+ body?: undefined;
236
+ timeout?: undefined;
237
+ ms?: undefined;
238
+ message?: undefined;
239
+ };
240
+ sourceCode?: undefined;
241
+ } | {
242
+ tool: string;
243
+ type: string;
244
+ when: string;
245
+ config: {
246
+ message: string;
247
+ table?: undefined;
248
+ filter?: undefined;
249
+ fields?: undefined;
250
+ limit?: undefined;
251
+ sort?: undefined;
252
+ data?: undefined;
253
+ id?: undefined;
254
+ url?: undefined;
255
+ method?: undefined;
256
+ headers?: undefined;
257
+ body?: undefined;
258
+ timeout?: undefined;
259
+ ms?: undefined;
260
+ flowName?: undefined;
261
+ payload?: undefined;
262
+ };
263
+ sourceCode?: undefined;
264
+ })[];
265
+ export declare function chooseFlowStepTool(intent: any): {
266
+ tool: string;
267
+ type: string;
268
+ when: string;
269
+ config: {
270
+ table: string;
271
+ filter: {};
272
+ fields: string;
273
+ limit: number;
274
+ sort: string;
275
+ data?: undefined;
276
+ id?: undefined;
277
+ url?: undefined;
278
+ method?: undefined;
279
+ headers?: undefined;
280
+ body?: undefined;
281
+ timeout?: undefined;
282
+ ms?: undefined;
283
+ flowName?: undefined;
284
+ payload?: undefined;
285
+ message?: undefined;
286
+ };
287
+ sourceCode?: undefined;
288
+ } | {
289
+ tool: string;
290
+ type: string;
291
+ when: string;
292
+ config: {
293
+ table: string;
294
+ data: {
295
+ field: string;
296
+ };
297
+ filter?: undefined;
298
+ fields?: undefined;
299
+ limit?: undefined;
300
+ sort?: undefined;
301
+ id?: undefined;
302
+ url?: undefined;
303
+ method?: undefined;
304
+ headers?: undefined;
305
+ body?: undefined;
306
+ timeout?: undefined;
307
+ ms?: undefined;
308
+ flowName?: undefined;
309
+ payload?: undefined;
310
+ message?: undefined;
311
+ };
312
+ sourceCode?: undefined;
313
+ } | {
314
+ tool: string;
315
+ type: string;
316
+ when: string;
317
+ config: {
318
+ table: string;
319
+ id: string;
320
+ data: {
321
+ field: string;
322
+ };
323
+ filter?: undefined;
324
+ fields?: undefined;
325
+ limit?: undefined;
326
+ sort?: undefined;
327
+ url?: undefined;
328
+ method?: undefined;
329
+ headers?: undefined;
330
+ body?: undefined;
331
+ timeout?: undefined;
332
+ ms?: undefined;
333
+ flowName?: undefined;
334
+ payload?: undefined;
335
+ message?: undefined;
336
+ };
337
+ sourceCode?: undefined;
338
+ } | {
339
+ tool: string;
340
+ type: string;
341
+ when: string;
342
+ config: {
343
+ table: string;
344
+ id: string;
345
+ filter?: undefined;
346
+ fields?: undefined;
347
+ limit?: undefined;
348
+ sort?: undefined;
349
+ data?: undefined;
350
+ url?: undefined;
351
+ method?: undefined;
352
+ headers?: undefined;
353
+ body?: undefined;
354
+ timeout?: undefined;
355
+ ms?: undefined;
356
+ flowName?: undefined;
357
+ payload?: undefined;
358
+ message?: undefined;
359
+ };
360
+ sourceCode?: undefined;
361
+ } | {
362
+ tool: string;
363
+ type: string;
364
+ when: string;
365
+ config: {
366
+ url: string;
367
+ method: string;
368
+ headers: {};
369
+ body: {};
370
+ timeout: number;
371
+ table?: undefined;
372
+ filter?: undefined;
373
+ fields?: undefined;
374
+ limit?: undefined;
375
+ sort?: undefined;
376
+ data?: undefined;
377
+ id?: undefined;
378
+ ms?: undefined;
379
+ flowName?: undefined;
380
+ payload?: undefined;
381
+ message?: undefined;
382
+ };
383
+ sourceCode?: undefined;
384
+ } | {
385
+ tool: string;
386
+ type: string;
387
+ when: string;
388
+ sourceCode: string;
389
+ config?: undefined;
390
+ } | {
391
+ tool: string;
392
+ type: string;
393
+ when: string;
394
+ config: {
395
+ ms: number;
396
+ table?: undefined;
397
+ filter?: undefined;
398
+ fields?: undefined;
399
+ limit?: undefined;
400
+ sort?: undefined;
401
+ data?: undefined;
402
+ id?: undefined;
403
+ url?: undefined;
404
+ method?: undefined;
405
+ headers?: undefined;
406
+ body?: undefined;
407
+ timeout?: undefined;
408
+ flowName?: undefined;
409
+ payload?: undefined;
410
+ message?: undefined;
411
+ };
412
+ sourceCode?: undefined;
413
+ } | {
414
+ tool: string;
415
+ type: string;
416
+ when: string;
417
+ config: {
418
+ flowName: string;
419
+ payload: {};
420
+ table?: undefined;
421
+ filter?: undefined;
422
+ fields?: undefined;
423
+ limit?: undefined;
424
+ sort?: undefined;
425
+ data?: undefined;
426
+ id?: undefined;
427
+ url?: undefined;
428
+ method?: undefined;
429
+ headers?: undefined;
430
+ body?: undefined;
431
+ timeout?: undefined;
432
+ ms?: undefined;
433
+ message?: undefined;
434
+ };
435
+ sourceCode?: undefined;
436
+ } | {
437
+ tool: string;
438
+ type: string;
439
+ when: string;
440
+ config: {
441
+ message: string;
442
+ table?: undefined;
443
+ filter?: undefined;
444
+ fields?: undefined;
445
+ limit?: undefined;
446
+ sort?: undefined;
447
+ data?: undefined;
448
+ id?: undefined;
449
+ url?: undefined;
450
+ method?: undefined;
451
+ headers?: undefined;
452
+ body?: undefined;
453
+ timeout?: undefined;
454
+ ms?: undefined;
455
+ flowName?: undefined;
456
+ payload?: undefined;
457
+ };
458
+ sourceCode?: undefined;
459
+ };
460
+ export declare function assertFixedFlowStepConfigIsStatic(type: any, config: any, index?: number): void;
461
+ export declare function planFlowSteps(steps: any): {
462
+ order: number;
463
+ key: string;
464
+ intent: any;
465
+ tool: any;
466
+ type: any;
467
+ suggestedInput: {
468
+ condition?: any;
469
+ sourceCode?: any;
470
+ config?: any;
471
+ key: string;
472
+ name: any;
473
+ order: number;
474
+ };
475
+ reason: any;
476
+ }[];
477
+ export declare function runFlowWorkflow(apiUrl: any, opts: any): Promise<{
478
+ action: string;
479
+ flow: {
480
+ name: any;
481
+ triggerType: any;
482
+ };
483
+ stepCount: number;
484
+ plan: {
485
+ index: any;
486
+ key: string;
487
+ name: any;
488
+ intent: string;
489
+ type: string;
490
+ order: any;
491
+ config: any;
492
+ sourceCode: any;
493
+ scriptLanguage: any;
494
+ timeout: any;
495
+ isEnabled: any;
496
+ chosenByIntent: boolean;
497
+ recommendedTool: string;
498
+ }[];
499
+ requiredAckParams: string[];
500
+ nextSteps: string[];
501
+ flowResult?: undefined;
502
+ operations?: undefined;
503
+ sequential?: undefined;
504
+ } | {
505
+ action: string;
506
+ flow: {
507
+ id: any;
508
+ name: any;
509
+ };
510
+ flowResult: {
511
+ action: string;
512
+ flow: {
513
+ id: any;
514
+ name: any;
515
+ };
516
+ reload: {
517
+ attempted: boolean;
518
+ succeeded: boolean;
519
+ reason: any;
520
+ };
521
+ };
522
+ stepCount: number;
523
+ plan: {
524
+ source?: {
525
+ length: any;
526
+ sha256: string;
527
+ };
528
+ index: any;
529
+ key: string;
530
+ name: any;
531
+ intent: string;
532
+ type: string;
533
+ order: any;
534
+ config: any;
535
+ scriptLanguage: any;
536
+ timeout: any;
537
+ isEnabled: any;
538
+ chosenByIntent: boolean;
539
+ recommendedTool: string;
540
+ }[];
541
+ operations: {
542
+ index: any;
543
+ key: any;
544
+ type: any;
545
+ action: any;
546
+ flow: any;
547
+ step: any;
548
+ validation: any;
549
+ reload: any;
550
+ }[];
551
+ sequential: boolean;
552
+ nextSteps: string[];
553
+ requiredAckParams?: undefined;
554
+ }>;