ts-workflow-engine-lite 2.1.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 (525) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +352 -0
  3. package/dist/src/api/ConsoleWebSocketManager.d.ts +57 -0
  4. package/dist/src/api/ConsoleWebSocketManager.js +206 -0
  5. package/dist/src/api/ConsoleWebSocketManager.js.map +1 -0
  6. package/dist/src/api/ErrorHandler.d.ts +52 -0
  7. package/dist/src/api/ErrorHandler.js +115 -0
  8. package/dist/src/api/ErrorHandler.js.map +1 -0
  9. package/dist/src/api/EventHistory.d.ts +73 -0
  10. package/dist/src/api/EventHistory.js +309 -0
  11. package/dist/src/api/EventHistory.js.map +1 -0
  12. package/dist/src/api/WebhookManager.d.ts +67 -0
  13. package/dist/src/api/WebhookManager.js +568 -0
  14. package/dist/src/api/WebhookManager.js.map +1 -0
  15. package/dist/src/api/docsPage.d.ts +1 -0
  16. package/dist/src/api/docsPage.js +321 -0
  17. package/dist/src/api/docsPage.js.map +1 -0
  18. package/dist/src/api/index.d.ts +8 -0
  19. package/dist/src/api/index.js +8 -0
  20. package/dist/src/api/index.js.map +1 -0
  21. package/dist/src/api/middleware/auth.d.ts +19 -0
  22. package/dist/src/api/middleware/auth.js +122 -0
  23. package/dist/src/api/middleware/auth.js.map +1 -0
  24. package/dist/src/api/middleware/index.d.ts +3 -0
  25. package/dist/src/api/middleware/index.js +3 -0
  26. package/dist/src/api/middleware/index.js.map +1 -0
  27. package/dist/src/api/middleware/rateLimit.d.ts +6 -0
  28. package/dist/src/api/middleware/rateLimit.js +69 -0
  29. package/dist/src/api/middleware/rateLimit.js.map +1 -0
  30. package/dist/src/api/middleware/rateLimitStore.d.ts +14 -0
  31. package/dist/src/api/middleware/rateLimitStore.js +44 -0
  32. package/dist/src/api/middleware/rateLimitStore.js.map +1 -0
  33. package/dist/src/api/middleware/rbac.d.ts +12 -0
  34. package/dist/src/api/middleware/rbac.js +120 -0
  35. package/dist/src/api/middleware/rbac.js.map +1 -0
  36. package/dist/src/api/openapi.d.ts +1917 -0
  37. package/dist/src/api/openapi.js +1758 -0
  38. package/dist/src/api/openapi.js.map +1 -0
  39. package/dist/src/api/playgroundPage.d.ts +1 -0
  40. package/dist/src/api/playgroundPage.js +765 -0
  41. package/dist/src/api/playgroundPage.js.map +1 -0
  42. package/dist/src/api/response.d.ts +22 -0
  43. package/dist/src/api/response.js +119 -0
  44. package/dist/src/api/response.js.map +1 -0
  45. package/dist/src/api/router.d.ts +17 -0
  46. package/dist/src/api/router.js +94 -0
  47. package/dist/src/api/router.js.map +1 -0
  48. package/dist/src/api/routes/analytics.d.ts +10 -0
  49. package/dist/src/api/routes/analytics.js +144 -0
  50. package/dist/src/api/routes/analytics.js.map +1 -0
  51. package/dist/src/api/routes/dlq.d.ts +3 -0
  52. package/dist/src/api/routes/dlq.js +248 -0
  53. package/dist/src/api/routes/dlq.js.map +1 -0
  54. package/dist/src/api/routes/eventHistory.d.ts +3 -0
  55. package/dist/src/api/routes/eventHistory.js +48 -0
  56. package/dist/src/api/routes/eventHistory.js.map +1 -0
  57. package/dist/src/api/routes/events.d.ts +3 -0
  58. package/dist/src/api/routes/events.js +205 -0
  59. package/dist/src/api/routes/events.js.map +1 -0
  60. package/dist/src/api/routes/functions.d.ts +3 -0
  61. package/dist/src/api/routes/functions.js +85 -0
  62. package/dist/src/api/routes/functions.js.map +1 -0
  63. package/dist/src/api/routes/instances.d.ts +3 -0
  64. package/dist/src/api/routes/instances.js +790 -0
  65. package/dist/src/api/routes/instances.js.map +1 -0
  66. package/dist/src/api/routes/templates.d.ts +3 -0
  67. package/dist/src/api/routes/templates.js +195 -0
  68. package/dist/src/api/routes/templates.js.map +1 -0
  69. package/dist/src/api/routes/webhooks.d.ts +3 -0
  70. package/dist/src/api/routes/webhooks.js +263 -0
  71. package/dist/src/api/routes/webhooks.js.map +1 -0
  72. package/dist/src/api/routes/workflows/analysis.d.ts +2 -0
  73. package/dist/src/api/routes/workflows/analysis.js +112 -0
  74. package/dist/src/api/routes/workflows/analysis.js.map +1 -0
  75. package/dist/src/api/routes/workflows/crud.d.ts +2 -0
  76. package/dist/src/api/routes/workflows/crud.js +140 -0
  77. package/dist/src/api/routes/workflows/crud.js.map +1 -0
  78. package/dist/src/api/routes/workflows/execution.d.ts +2 -0
  79. package/dist/src/api/routes/workflows/execution.js +204 -0
  80. package/dist/src/api/routes/workflows/execution.js.map +1 -0
  81. package/dist/src/api/routes/workflows/graph.d.ts +2 -0
  82. package/dist/src/api/routes/workflows/graph.js +51 -0
  83. package/dist/src/api/routes/workflows/graph.js.map +1 -0
  84. package/dist/src/api/routes/workflows/import.d.ts +2 -0
  85. package/dist/src/api/routes/workflows/import.js +238 -0
  86. package/dist/src/api/routes/workflows/import.js.map +1 -0
  87. package/dist/src/api/routes/workflows/index.d.ts +3 -0
  88. package/dist/src/api/routes/workflows/index.js +18 -0
  89. package/dist/src/api/routes/workflows/index.js.map +1 -0
  90. package/dist/src/api/routes/workflows/shared.d.ts +64 -0
  91. package/dist/src/api/routes/workflows/shared.js +304 -0
  92. package/dist/src/api/routes/workflows/shared.js.map +1 -0
  93. package/dist/src/api/routes/workflows/variables.d.ts +2 -0
  94. package/dist/src/api/routes/workflows/variables.js +34 -0
  95. package/dist/src/api/routes/workflows/variables.js.map +1 -0
  96. package/dist/src/api/routes/workflows/versioning.d.ts +2 -0
  97. package/dist/src/api/routes/workflows/versioning.js +235 -0
  98. package/dist/src/api/routes/workflows/versioning.js.map +1 -0
  99. package/dist/src/api/server.d.ts +13 -0
  100. package/dist/src/api/server.js +311 -0
  101. package/dist/src/api/server.js.map +1 -0
  102. package/dist/src/api/services/InstanceApplicationService.d.ts +74 -0
  103. package/dist/src/api/services/InstanceApplicationService.js +215 -0
  104. package/dist/src/api/services/InstanceApplicationService.js.map +1 -0
  105. package/dist/src/api/services/WorkflowApplicationService.d.ts +92 -0
  106. package/dist/src/api/services/WorkflowApplicationService.js +282 -0
  107. package/dist/src/api/services/WorkflowApplicationService.js.map +1 -0
  108. package/dist/src/api/services/index.d.ts +4 -0
  109. package/dist/src/api/services/index.js +3 -0
  110. package/dist/src/api/services/index.js.map +1 -0
  111. package/dist/src/api/types.d.ts +118 -0
  112. package/dist/src/api/types.js +2 -0
  113. package/dist/src/api/types.js.map +1 -0
  114. package/dist/src/api/utils/IdempotencyStore.d.ts +36 -0
  115. package/dist/src/api/utils/IdempotencyStore.js +121 -0
  116. package/dist/src/api/utils/IdempotencyStore.js.map +1 -0
  117. package/dist/src/api/utils/authConfig.d.ts +2 -0
  118. package/dist/src/api/utils/authConfig.js +25 -0
  119. package/dist/src/api/utils/authConfig.js.map +1 -0
  120. package/dist/src/api/utils/requestContext.d.ts +14 -0
  121. package/dist/src/api/utils/requestContext.js +31 -0
  122. package/dist/src/api/utils/requestContext.js.map +1 -0
  123. package/dist/src/api/utils/routeHelper.d.ts +25 -0
  124. package/dist/src/api/utils/routeHelper.js +30 -0
  125. package/dist/src/api/utils/routeHelper.js.map +1 -0
  126. package/dist/src/api/welcomePage.d.ts +1 -0
  127. package/dist/src/api/welcomePage.js +259 -0
  128. package/dist/src/api/welcomePage.js.map +1 -0
  129. package/dist/src/bootstrap.d.ts +20 -0
  130. package/dist/src/bootstrap.js +128 -0
  131. package/dist/src/bootstrap.js.map +1 -0
  132. package/dist/src/cli.d.ts +2 -0
  133. package/dist/src/cli.js +32 -0
  134. package/dist/src/cli.js.map +1 -0
  135. package/dist/src/config/AppConfig.d.ts +102 -0
  136. package/dist/src/config/AppConfig.js +452 -0
  137. package/dist/src/config/AppConfig.js.map +1 -0
  138. package/dist/src/config/redis.config.d.ts +6 -0
  139. package/dist/src/config/redis.config.js +9 -0
  140. package/dist/src/config/redis.config.js.map +1 -0
  141. package/dist/src/container.d.ts +29 -0
  142. package/dist/src/container.js +62 -0
  143. package/dist/src/container.js.map +1 -0
  144. package/dist/src/debug/BreakpointManager.d.ts +17 -0
  145. package/dist/src/debug/BreakpointManager.js +59 -0
  146. package/dist/src/debug/BreakpointManager.js.map +1 -0
  147. package/dist/src/debug/WorkflowDebugger.d.ts +34 -0
  148. package/dist/src/debug/WorkflowDebugger.js +117 -0
  149. package/dist/src/debug/WorkflowDebugger.js.map +1 -0
  150. package/dist/src/debug/index.d.ts +2 -0
  151. package/dist/src/debug/index.js +3 -0
  152. package/dist/src/debug/index.js.map +1 -0
  153. package/dist/src/demo/demoWorkflow.d.ts +3 -0
  154. package/dist/src/demo/demoWorkflow.js +82 -0
  155. package/dist/src/demo/demoWorkflow.js.map +1 -0
  156. package/dist/src/demo/exampleWorkflow.d.ts +36 -0
  157. package/dist/src/demo/exampleWorkflow.js +184 -0
  158. package/dist/src/demo/exampleWorkflow.js.map +1 -0
  159. package/dist/src/demo/index.d.ts +2 -0
  160. package/dist/src/demo/index.js +3 -0
  161. package/dist/src/demo/index.js.map +1 -0
  162. package/dist/src/dlq/DeadLetterQueue.d.ts +62 -0
  163. package/dist/src/dlq/DeadLetterQueue.js +342 -0
  164. package/dist/src/dlq/DeadLetterQueue.js.map +1 -0
  165. package/dist/src/dlq/index.d.ts +2 -0
  166. package/dist/src/dlq/index.js +2 -0
  167. package/dist/src/dlq/index.js.map +1 -0
  168. package/dist/src/dsl/DSLParser.d.ts +7 -0
  169. package/dist/src/dsl/DSLParser.js +252 -0
  170. package/dist/src/dsl/DSLParser.js.map +1 -0
  171. package/dist/src/dsl/WorkflowDSL.d.ts +40 -0
  172. package/dist/src/dsl/WorkflowDSL.js +2 -0
  173. package/dist/src/dsl/WorkflowDSL.js.map +1 -0
  174. package/dist/src/engine/CanaryReleaseManager.d.ts +39 -0
  175. package/dist/src/engine/CanaryReleaseManager.js +192 -0
  176. package/dist/src/engine/CanaryReleaseManager.js.map +1 -0
  177. package/dist/src/engine/ConcurrencyControl.d.ts +38 -0
  178. package/dist/src/engine/ConcurrencyControl.js +181 -0
  179. package/dist/src/engine/ConcurrencyControl.js.map +1 -0
  180. package/dist/src/engine/ContinueAsNewManager.d.ts +18 -0
  181. package/dist/src/engine/ContinueAsNewManager.js +29 -0
  182. package/dist/src/engine/ContinueAsNewManager.js.map +1 -0
  183. package/dist/src/engine/DataValidator.d.ts +15 -0
  184. package/dist/src/engine/DataValidator.js +121 -0
  185. package/dist/src/engine/DataValidator.js.map +1 -0
  186. package/dist/src/engine/DryRunExecutor.d.ts +48 -0
  187. package/dist/src/engine/DryRunExecutor.js +256 -0
  188. package/dist/src/engine/DryRunExecutor.js.map +1 -0
  189. package/dist/src/engine/ExecutionOrchestrator.d.ts +19 -0
  190. package/dist/src/engine/ExecutionOrchestrator.js +579 -0
  191. package/dist/src/engine/ExecutionOrchestrator.js.map +1 -0
  192. package/dist/src/engine/ExpressionEvaluator.d.ts +44 -0
  193. package/dist/src/engine/ExpressionEvaluator.js +1046 -0
  194. package/dist/src/engine/ExpressionEvaluator.js.map +1 -0
  195. package/dist/src/engine/HeartbeatManager.d.ts +42 -0
  196. package/dist/src/engine/HeartbeatManager.js +209 -0
  197. package/dist/src/engine/HeartbeatManager.js.map +1 -0
  198. package/dist/src/engine/InstanceManager.d.ts +21 -0
  199. package/dist/src/engine/InstanceManager.js +165 -0
  200. package/dist/src/engine/InstanceManager.js.map +1 -0
  201. package/dist/src/engine/InstanceSearch.d.ts +30 -0
  202. package/dist/src/engine/InstanceSearch.js +119 -0
  203. package/dist/src/engine/InstanceSearch.js.map +1 -0
  204. package/dist/src/engine/LifecycleManager.d.ts +18 -0
  205. package/dist/src/engine/LifecycleManager.js +82 -0
  206. package/dist/src/engine/LifecycleManager.js.map +1 -0
  207. package/dist/src/engine/ParallelExecutor.d.ts +26 -0
  208. package/dist/src/engine/ParallelExecutor.js +138 -0
  209. package/dist/src/engine/ParallelExecutor.js.map +1 -0
  210. package/dist/src/engine/SandboxEvaluator.d.ts +18 -0
  211. package/dist/src/engine/SandboxEvaluator.js +200 -0
  212. package/dist/src/engine/SandboxEvaluator.js.map +1 -0
  213. package/dist/src/engine/SchemaValidator.d.ts +30 -0
  214. package/dist/src/engine/SchemaValidator.js +630 -0
  215. package/dist/src/engine/SchemaValidator.js.map +1 -0
  216. package/dist/src/engine/SearchAttributeManager.d.ts +48 -0
  217. package/dist/src/engine/SearchAttributeManager.js +119 -0
  218. package/dist/src/engine/SearchAttributeManager.js.map +1 -0
  219. package/dist/src/engine/StateMachine.d.ts +13 -0
  220. package/dist/src/engine/StateMachine.js +66 -0
  221. package/dist/src/engine/StateMachine.js.map +1 -0
  222. package/dist/src/engine/StickyExecutionManager.d.ts +34 -0
  223. package/dist/src/engine/StickyExecutionManager.js +163 -0
  224. package/dist/src/engine/StickyExecutionManager.js.map +1 -0
  225. package/dist/src/engine/SubworkflowExecutor.d.ts +17 -0
  226. package/dist/src/engine/SubworkflowExecutor.js +157 -0
  227. package/dist/src/engine/SubworkflowExecutor.js.map +1 -0
  228. package/dist/src/engine/TaskExecutor.d.ts +12 -0
  229. package/dist/src/engine/TaskExecutor.js +124 -0
  230. package/dist/src/engine/TaskExecutor.js.map +1 -0
  231. package/dist/src/engine/TaskQueueManager.d.ts +42 -0
  232. package/dist/src/engine/TaskQueueManager.js +175 -0
  233. package/dist/src/engine/TaskQueueManager.js.map +1 -0
  234. package/dist/src/engine/WorkflowEngine.d.ts +117 -0
  235. package/dist/src/engine/WorkflowEngine.js +443 -0
  236. package/dist/src/engine/WorkflowEngine.js.map +1 -0
  237. package/dist/src/engine/WorkflowInstanceControl.d.ts +21 -0
  238. package/dist/src/engine/WorkflowInstanceControl.js +306 -0
  239. package/dist/src/engine/WorkflowInstanceControl.js.map +1 -0
  240. package/dist/src/engine/WorkflowPersistenceCoordinator.d.ts +12 -0
  241. package/dist/src/engine/WorkflowPersistenceCoordinator.js +93 -0
  242. package/dist/src/engine/WorkflowPersistenceCoordinator.js.map +1 -0
  243. package/dist/src/engine/WorkflowRegistry.d.ts +38 -0
  244. package/dist/src/engine/WorkflowRegistry.js +130 -0
  245. package/dist/src/engine/WorkflowRegistry.js.map +1 -0
  246. package/dist/src/engine/WorkflowVersionManager.d.ts +24 -0
  247. package/dist/src/engine/WorkflowVersionManager.js +121 -0
  248. package/dist/src/engine/WorkflowVersionManager.js.map +1 -0
  249. package/dist/src/engine/createEngine.d.ts +8 -0
  250. package/dist/src/engine/createEngine.js +21 -0
  251. package/dist/src/engine/createEngine.js.map +1 -0
  252. package/dist/src/engine/errors.d.ts +18 -0
  253. package/dist/src/engine/errors.js +37 -0
  254. package/dist/src/engine/errors.js.map +1 -0
  255. package/dist/src/engine/executors/ApprovalNodeExecutor.d.ts +12 -0
  256. package/dist/src/engine/executors/ApprovalNodeExecutor.js +68 -0
  257. package/dist/src/engine/executors/ApprovalNodeExecutor.js.map +1 -0
  258. package/dist/src/engine/executors/ConditionNodeExecutor.d.ts +16 -0
  259. package/dist/src/engine/executors/ConditionNodeExecutor.js +63 -0
  260. package/dist/src/engine/executors/ConditionNodeExecutor.js.map +1 -0
  261. package/dist/src/engine/executors/HttpNodeExecutor.d.ts +27 -0
  262. package/dist/src/engine/executors/HttpNodeExecutor.js +179 -0
  263. package/dist/src/engine/executors/HttpNodeExecutor.js.map +1 -0
  264. package/dist/src/engine/executors/JoinNodeExecutor.d.ts +13 -0
  265. package/dist/src/engine/executors/JoinNodeExecutor.js +37 -0
  266. package/dist/src/engine/executors/JoinNodeExecutor.js.map +1 -0
  267. package/dist/src/engine/executors/LoopNodeExecutor.d.ts +20 -0
  268. package/dist/src/engine/executors/LoopNodeExecutor.js +165 -0
  269. package/dist/src/engine/executors/LoopNodeExecutor.js.map +1 -0
  270. package/dist/src/engine/executors/NotificationNodeExecutor.d.ts +8 -0
  271. package/dist/src/engine/executors/NotificationNodeExecutor.js +33 -0
  272. package/dist/src/engine/executors/NotificationNodeExecutor.js.map +1 -0
  273. package/dist/src/engine/executors/QueueNodeExecutor.d.ts +23 -0
  274. package/dist/src/engine/executors/QueueNodeExecutor.js +87 -0
  275. package/dist/src/engine/executors/QueueNodeExecutor.js.map +1 -0
  276. package/dist/src/engine/executors/RouterNodeExecutor.d.ts +20 -0
  277. package/dist/src/engine/executors/RouterNodeExecutor.js +82 -0
  278. package/dist/src/engine/executors/RouterNodeExecutor.js.map +1 -0
  279. package/dist/src/engine/executors/SqlNodeExecutor.d.ts +27 -0
  280. package/dist/src/engine/executors/SqlNodeExecutor.js +74 -0
  281. package/dist/src/engine/executors/SqlNodeExecutor.js.map +1 -0
  282. package/dist/src/engine/executors/TransformNodeExecutor.d.ts +9 -0
  283. package/dist/src/engine/executors/TransformNodeExecutor.js +44 -0
  284. package/dist/src/engine/executors/TransformNodeExecutor.js.map +1 -0
  285. package/dist/src/engine/functions/collectionFunctions.d.ts +2 -0
  286. package/dist/src/engine/functions/collectionFunctions.js +129 -0
  287. package/dist/src/engine/functions/collectionFunctions.js.map +1 -0
  288. package/dist/src/engine/functions/customFunctions.d.ts +11 -0
  289. package/dist/src/engine/functions/customFunctions.js +42 -0
  290. package/dist/src/engine/functions/customFunctions.js.map +1 -0
  291. package/dist/src/engine/functions/dateFunctions.d.ts +2 -0
  292. package/dist/src/engine/functions/dateFunctions.js +71 -0
  293. package/dist/src/engine/functions/dateFunctions.js.map +1 -0
  294. package/dist/src/engine/functions/index.d.ts +14 -0
  295. package/dist/src/engine/functions/index.js +35 -0
  296. package/dist/src/engine/functions/index.js.map +1 -0
  297. package/dist/src/engine/functions/stringFunctions.d.ts +2 -0
  298. package/dist/src/engine/functions/stringFunctions.js +66 -0
  299. package/dist/src/engine/functions/stringFunctions.js.map +1 -0
  300. package/dist/src/engine/functions/typeFunctions.d.ts +2 -0
  301. package/dist/src/engine/functions/typeFunctions.js +70 -0
  302. package/dist/src/engine/functions/typeFunctions.js.map +1 -0
  303. package/dist/src/engine/functions/types.d.ts +6 -0
  304. package/dist/src/engine/functions/types.js +2 -0
  305. package/dist/src/engine/functions/types.js.map +1 -0
  306. package/dist/src/engine/index.d.ts +21 -0
  307. package/dist/src/engine/index.js +18 -0
  308. package/dist/src/engine/index.js.map +1 -0
  309. package/dist/src/engine/nodeDispatch/controlNodes.d.ts +2 -0
  310. package/dist/src/engine/nodeDispatch/controlNodes.js +208 -0
  311. package/dist/src/engine/nodeDispatch/controlNodes.js.map +1 -0
  312. package/dist/src/engine/nodeDispatch/helpers.d.ts +27 -0
  313. package/dist/src/engine/nodeDispatch/helpers.js +185 -0
  314. package/dist/src/engine/nodeDispatch/helpers.js.map +1 -0
  315. package/dist/src/engine/nodeDispatch/ioNodes.d.ts +2 -0
  316. package/dist/src/engine/nodeDispatch/ioNodes.js +89 -0
  317. package/dist/src/engine/nodeDispatch/ioNodes.js.map +1 -0
  318. package/dist/src/engine/nodeDispatch/types.d.ts +13 -0
  319. package/dist/src/engine/nodeDispatch/types.js +2 -0
  320. package/dist/src/engine/nodeDispatch/types.js.map +1 -0
  321. package/dist/src/engine/nodeDispatch/workflowNodes.d.ts +2 -0
  322. package/dist/src/engine/nodeDispatch/workflowNodes.js +33 -0
  323. package/dist/src/engine/nodeDispatch/workflowNodes.js.map +1 -0
  324. package/dist/src/engine/worker/ActionSandboxMessage.d.ts +29 -0
  325. package/dist/src/engine/worker/ActionSandboxMessage.js +7 -0
  326. package/dist/src/engine/worker/ActionSandboxMessage.js.map +1 -0
  327. package/dist/src/engine/worker/ActionSandboxPool.d.ts +34 -0
  328. package/dist/src/engine/worker/ActionSandboxPool.js +204 -0
  329. package/dist/src/engine/worker/ActionSandboxPool.js.map +1 -0
  330. package/dist/src/engine/worker/ActionSandboxWorker.d.ts +1 -0
  331. package/dist/src/engine/worker/ActionSandboxWorker.js +25 -0
  332. package/dist/src/engine/worker/ActionSandboxWorker.js.map +1 -0
  333. package/dist/src/engine/worker/WorkerMessage.d.ts +35 -0
  334. package/dist/src/engine/worker/WorkerMessage.js +7 -0
  335. package/dist/src/engine/worker/WorkerMessage.js.map +1 -0
  336. package/dist/src/engine/worker/WorkerPool.d.ts +42 -0
  337. package/dist/src/engine/worker/WorkerPool.js +273 -0
  338. package/dist/src/engine/worker/WorkerPool.js.map +1 -0
  339. package/dist/src/engine/worker/WorkerProcess.d.ts +1 -0
  340. package/dist/src/engine/worker/WorkerProcess.js +76 -0
  341. package/dist/src/engine/worker/WorkerProcess.js.map +1 -0
  342. package/dist/src/event/EventBus.d.ts +11 -0
  343. package/dist/src/event/EventBus.js +44 -0
  344. package/dist/src/event/EventBus.js.map +1 -0
  345. package/dist/src/event/EventCoordinator.d.ts +26 -0
  346. package/dist/src/event/EventCoordinator.js +205 -0
  347. package/dist/src/event/EventCoordinator.js.map +1 -0
  348. package/dist/src/event/EventDeduplicator.d.ts +31 -0
  349. package/dist/src/event/EventDeduplicator.js +100 -0
  350. package/dist/src/event/EventDeduplicator.js.map +1 -0
  351. package/dist/src/event/HookManager.d.ts +31 -0
  352. package/dist/src/event/HookManager.js +88 -0
  353. package/dist/src/event/HookManager.js.map +1 -0
  354. package/dist/src/event/MessageBus.d.ts +39 -0
  355. package/dist/src/event/MessageBus.js +131 -0
  356. package/dist/src/event/MessageBus.js.map +1 -0
  357. package/dist/src/event/index.d.ts +3 -0
  358. package/dist/src/event/index.js +4 -0
  359. package/dist/src/event/index.js.map +1 -0
  360. package/dist/src/index.d.ts +40 -0
  361. package/dist/src/index.js +33 -0
  362. package/dist/src/index.js.map +1 -0
  363. package/dist/src/lifecycle.d.ts +17 -0
  364. package/dist/src/lifecycle.js +84 -0
  365. package/dist/src/lifecycle.js.map +1 -0
  366. package/dist/src/metrics/AnalyticsCollector.d.ts +57 -0
  367. package/dist/src/metrics/AnalyticsCollector.js +140 -0
  368. package/dist/src/metrics/AnalyticsCollector.js.map +1 -0
  369. package/dist/src/metrics/AnomalyDetector.d.ts +21 -0
  370. package/dist/src/metrics/AnomalyDetector.js +120 -0
  371. package/dist/src/metrics/AnomalyDetector.js.map +1 -0
  372. package/dist/src/metrics/MetricsAggregator.d.ts +43 -0
  373. package/dist/src/metrics/MetricsAggregator.js +243 -0
  374. package/dist/src/metrics/MetricsAggregator.js.map +1 -0
  375. package/dist/src/metrics/SlaMonitor.d.ts +48 -0
  376. package/dist/src/metrics/SlaMonitor.js +130 -0
  377. package/dist/src/metrics/SlaMonitor.js.map +1 -0
  378. package/dist/src/metrics/index.d.ts +75 -0
  379. package/dist/src/metrics/index.js +293 -0
  380. package/dist/src/metrics/index.js.map +1 -0
  381. package/dist/src/model/Instance.d.ts +38 -0
  382. package/dist/src/model/Instance.js +12 -0
  383. package/dist/src/model/Instance.js.map +1 -0
  384. package/dist/src/model/RetryPolicy.d.ts +11 -0
  385. package/dist/src/model/RetryPolicy.js +30 -0
  386. package/dist/src/model/RetryPolicy.js.map +1 -0
  387. package/dist/src/model/Schedule.d.ts +34 -0
  388. package/dist/src/model/Schedule.js +50 -0
  389. package/dist/src/model/Schedule.js.map +1 -0
  390. package/dist/src/model/Workflow.d.ts +73 -0
  391. package/dist/src/model/Workflow.js +2 -0
  392. package/dist/src/model/Workflow.js.map +1 -0
  393. package/dist/src/model/WorkflowGraph.d.ts +32 -0
  394. package/dist/src/model/WorkflowGraph.js +267 -0
  395. package/dist/src/model/WorkflowGraph.js.map +1 -0
  396. package/dist/src/model/WorkflowSchema.d.ts +154 -0
  397. package/dist/src/model/WorkflowSchema.js +233 -0
  398. package/dist/src/model/WorkflowSchema.js.map +1 -0
  399. package/dist/src/model/WorkflowVariables.d.ts +15 -0
  400. package/dist/src/model/WorkflowVariables.js +77 -0
  401. package/dist/src/model/WorkflowVariables.js.map +1 -0
  402. package/dist/src/notification/NotificationChannel.d.ts +19 -0
  403. package/dist/src/notification/NotificationChannel.js +2 -0
  404. package/dist/src/notification/NotificationChannel.js.map +1 -0
  405. package/dist/src/notification/NotificationManager.d.ts +20 -0
  406. package/dist/src/notification/NotificationManager.js +59 -0
  407. package/dist/src/notification/NotificationManager.js.map +1 -0
  408. package/dist/src/notification/channels/DingtalkChannel.d.ts +7 -0
  409. package/dist/src/notification/channels/DingtalkChannel.js +18 -0
  410. package/dist/src/notification/channels/DingtalkChannel.js.map +1 -0
  411. package/dist/src/notification/channels/EmailChannel.d.ts +21 -0
  412. package/dist/src/notification/channels/EmailChannel.js +32 -0
  413. package/dist/src/notification/channels/EmailChannel.js.map +1 -0
  414. package/dist/src/notification/channels/FeishuChannel.d.ts +7 -0
  415. package/dist/src/notification/channels/FeishuChannel.js +18 -0
  416. package/dist/src/notification/channels/FeishuChannel.js.map +1 -0
  417. package/dist/src/notification/channels/SlackChannel.d.ts +7 -0
  418. package/dist/src/notification/channels/SlackChannel.js +18 -0
  419. package/dist/src/notification/channels/SlackChannel.js.map +1 -0
  420. package/dist/src/notification/channels/SmsChannel.d.ts +24 -0
  421. package/dist/src/notification/channels/SmsChannel.js +37 -0
  422. package/dist/src/notification/channels/SmsChannel.js.map +1 -0
  423. package/dist/src/notification/channels/WebhookChannel.d.ts +17 -0
  424. package/dist/src/notification/channels/WebhookChannel.js +61 -0
  425. package/dist/src/notification/channels/WebhookChannel.js.map +1 -0
  426. package/dist/src/notification/index.d.ts +24 -0
  427. package/dist/src/notification/index.js +61 -0
  428. package/dist/src/notification/index.js.map +1 -0
  429. package/dist/src/scheduler/CronScheduler.d.ts +20 -0
  430. package/dist/src/scheduler/CronScheduler.js +82 -0
  431. package/dist/src/scheduler/CronScheduler.js.map +1 -0
  432. package/dist/src/scheduler/EnhancedCronScheduler.d.ts +27 -0
  433. package/dist/src/scheduler/EnhancedCronScheduler.js +177 -0
  434. package/dist/src/scheduler/EnhancedCronScheduler.js.map +1 -0
  435. package/dist/src/storage/ArchiveManager.d.ts +21 -0
  436. package/dist/src/storage/ArchiveManager.js +140 -0
  437. package/dist/src/storage/ArchiveManager.js.map +1 -0
  438. package/dist/src/storage/LocalFileStorage.d.ts +64 -0
  439. package/dist/src/storage/LocalFileStorage.js +470 -0
  440. package/dist/src/storage/LocalFileStorage.js.map +1 -0
  441. package/dist/src/storage/MemoryStorage.d.ts +65 -0
  442. package/dist/src/storage/MemoryStorage.js +422 -0
  443. package/dist/src/storage/MemoryStorage.js.map +1 -0
  444. package/dist/src/storage/StorageProvider.d.ts +223 -0
  445. package/dist/src/storage/StorageProvider.js +2 -0
  446. package/dist/src/storage/StorageProvider.js.map +1 -0
  447. package/dist/src/storage/builtin-adapters.d.ts +1 -0
  448. package/dist/src/storage/builtin-adapters.js +20 -0
  449. package/dist/src/storage/builtin-adapters.js.map +1 -0
  450. package/dist/src/storage/index.d.ts +17 -0
  451. package/dist/src/storage/index.js +52 -0
  452. package/dist/src/storage/index.js.map +1 -0
  453. package/dist/src/storage/registry.d.ts +6 -0
  454. package/dist/src/storage/registry.js +23 -0
  455. package/dist/src/storage/registry.js.map +1 -0
  456. package/dist/src/telemetry/index.d.ts +53 -0
  457. package/dist/src/telemetry/index.js +73 -0
  458. package/dist/src/telemetry/index.js.map +1 -0
  459. package/dist/src/telemetry/spanRegistry.d.ts +9 -0
  460. package/dist/src/telemetry/spanRegistry.js +14 -0
  461. package/dist/src/telemetry/spanRegistry.js.map +1 -0
  462. package/dist/src/templates/AutoExtract.d.ts +2 -0
  463. package/dist/src/templates/AutoExtract.js +124 -0
  464. package/dist/src/templates/AutoExtract.js.map +1 -0
  465. package/dist/src/templates/TemplateGallery.d.ts +54 -0
  466. package/dist/src/templates/TemplateGallery.js +139 -0
  467. package/dist/src/templates/TemplateGallery.js.map +1 -0
  468. package/dist/src/templates/TemplateRegistry.d.ts +16 -0
  469. package/dist/src/templates/TemplateRegistry.js +92 -0
  470. package/dist/src/templates/TemplateRegistry.js.map +1 -0
  471. package/dist/src/templates/WorkflowTemplate.d.ts +24 -0
  472. package/dist/src/templates/WorkflowTemplate.js +2 -0
  473. package/dist/src/templates/WorkflowTemplate.js.map +1 -0
  474. package/dist/src/templates/builtin/HttpCallbackTemplate.d.ts +2 -0
  475. package/dist/src/templates/builtin/HttpCallbackTemplate.js +47 -0
  476. package/dist/src/templates/builtin/HttpCallbackTemplate.js.map +1 -0
  477. package/dist/src/templates/builtin/index.d.ts +3 -0
  478. package/dist/src/templates/builtin/index.js +11 -0
  479. package/dist/src/templates/builtin/index.js.map +1 -0
  480. package/dist/src/templates/index.d.ts +3 -0
  481. package/dist/src/templates/index.js +3 -0
  482. package/dist/src/templates/index.js.map +1 -0
  483. package/dist/src/testing/MutationTester.d.ts +27 -0
  484. package/dist/src/testing/MutationTester.js +157 -0
  485. package/dist/src/testing/MutationTester.js.map +1 -0
  486. package/dist/src/testing/TestGenerator.d.ts +31 -0
  487. package/dist/src/testing/TestGenerator.js +345 -0
  488. package/dist/src/testing/TestGenerator.js.map +1 -0
  489. package/dist/src/testing/index.d.ts +2 -0
  490. package/dist/src/testing/index.js +3 -0
  491. package/dist/src/testing/index.js.map +1 -0
  492. package/dist/src/testing/testWorkflow.d.ts +51 -0
  493. package/dist/src/testing/testWorkflow.js +167 -0
  494. package/dist/src/testing/testWorkflow.js.map +1 -0
  495. package/dist/src/utils/AuditLogger.d.ts +36 -0
  496. package/dist/src/utils/AuditLogger.js +148 -0
  497. package/dist/src/utils/AuditLogger.js.map +1 -0
  498. package/dist/src/utils/BoundedMap.d.ts +34 -0
  499. package/dist/src/utils/BoundedMap.js +125 -0
  500. package/dist/src/utils/BoundedMap.js.map +1 -0
  501. package/dist/src/utils/LeaseStore.d.ts +7 -0
  502. package/dist/src/utils/LeaseStore.js +102 -0
  503. package/dist/src/utils/LeaseStore.js.map +1 -0
  504. package/dist/src/utils/Logger.d.ts +26 -0
  505. package/dist/src/utils/Logger.js +279 -0
  506. package/dist/src/utils/Logger.js.map +1 -0
  507. package/dist/src/utils/SecretManager.d.ts +41 -0
  508. package/dist/src/utils/SecretManager.js +139 -0
  509. package/dist/src/utils/SecretManager.js.map +1 -0
  510. package/dist/src/utils/StructuredLogger.d.ts +45 -0
  511. package/dist/src/utils/StructuredLogger.js +118 -0
  512. package/dist/src/utils/StructuredLogger.js.map +1 -0
  513. package/dist/src/utils/concurrency.d.ts +3 -0
  514. package/dist/src/utils/concurrency.js +22 -0
  515. package/dist/src/utils/concurrency.js.map +1 -0
  516. package/dist/src/utils/env.d.ts +5 -0
  517. package/dist/src/utils/env.js +15 -0
  518. package/dist/src/utils/env.js.map +1 -0
  519. package/dist/src/utils/index.d.ts +5 -0
  520. package/dist/src/utils/index.js +4 -0
  521. package/dist/src/utils/index.js.map +1 -0
  522. package/dist/src/utils/secrets.d.ts +5 -0
  523. package/dist/src/utils/secrets.js +27 -0
  524. package/dist/src/utils/secrets.js.map +1 -0
  525. package/package.json +159 -0
@@ -0,0 +1,1917 @@
1
+ export declare const openApiSpec: {
2
+ openapi: string;
3
+ info: {
4
+ title: string;
5
+ description: string;
6
+ version: string;
7
+ contact: {
8
+ name: string;
9
+ };
10
+ };
11
+ servers: {
12
+ url: string;
13
+ description: string;
14
+ }[];
15
+ tags: {
16
+ name: string;
17
+ description: string;
18
+ }[];
19
+ paths: {
20
+ "/health": {
21
+ get: {
22
+ tags: string[];
23
+ summary: string;
24
+ responses: {
25
+ "200": {
26
+ description: string;
27
+ content: {
28
+ "application/json": {
29
+ schema: {
30
+ $ref: string;
31
+ };
32
+ };
33
+ };
34
+ };
35
+ };
36
+ };
37
+ };
38
+ "/metrics": {
39
+ get: {
40
+ tags: string[];
41
+ summary: string;
42
+ responses: {
43
+ "200": {
44
+ description: string;
45
+ content: {
46
+ "text/plain": {
47
+ schema: {
48
+ type: string;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ };
54
+ };
55
+ };
56
+ "/workflows": {
57
+ get: {
58
+ tags: string[];
59
+ summary: string;
60
+ responses: {
61
+ "200": {
62
+ description: string;
63
+ content: {
64
+ "application/json": {
65
+ schema: {
66
+ $ref: string;
67
+ };
68
+ examples: {
69
+ success: {
70
+ $ref: string;
71
+ };
72
+ };
73
+ };
74
+ };
75
+ };
76
+ };
77
+ };
78
+ };
79
+ "/workflows/import/dsl": {
80
+ post: {
81
+ tags: string[];
82
+ summary: string;
83
+ requestBody: {
84
+ required: boolean;
85
+ content: {
86
+ "application/json": {
87
+ schema: {
88
+ type: string;
89
+ required: string[];
90
+ properties: {
91
+ dsl: {
92
+ type: string;
93
+ description: string;
94
+ };
95
+ name: {
96
+ type: string;
97
+ description: string;
98
+ };
99
+ description: {
100
+ type: string;
101
+ description: string;
102
+ };
103
+ tags: {
104
+ type: string;
105
+ items: {
106
+ type: string;
107
+ };
108
+ };
109
+ overwrite: {
110
+ type: string;
111
+ description: string;
112
+ };
113
+ };
114
+ };
115
+ };
116
+ };
117
+ };
118
+ responses: {
119
+ "201": {
120
+ description: string;
121
+ content: {
122
+ "application/json": {
123
+ schema: {
124
+ $ref: string;
125
+ };
126
+ };
127
+ };
128
+ };
129
+ "400": {
130
+ description: string;
131
+ content: {
132
+ "application/json": {
133
+ schema: {
134
+ $ref: string;
135
+ };
136
+ };
137
+ };
138
+ };
139
+ "409": {
140
+ description: string;
141
+ content: {
142
+ "application/json": {
143
+ schema: {
144
+ $ref: string;
145
+ };
146
+ };
147
+ };
148
+ };
149
+ };
150
+ };
151
+ };
152
+ "/workflows/templates": {
153
+ get: {
154
+ tags: string[];
155
+ summary: string;
156
+ parameters: {
157
+ name: string;
158
+ in: string;
159
+ required: boolean;
160
+ schema: {
161
+ type: string;
162
+ };
163
+ description: string;
164
+ }[];
165
+ responses: {
166
+ "200": {
167
+ description: string;
168
+ content: {
169
+ "application/json": {
170
+ schema: {
171
+ $ref: string;
172
+ };
173
+ };
174
+ };
175
+ };
176
+ };
177
+ };
178
+ };
179
+ "/workflows/import/template": {
180
+ post: {
181
+ tags: string[];
182
+ summary: string;
183
+ requestBody: {
184
+ required: boolean;
185
+ content: {
186
+ "application/json": {
187
+ schema: {
188
+ type: string;
189
+ required: string[];
190
+ properties: {
191
+ templateId: {
192
+ type: string;
193
+ description: string;
194
+ };
195
+ name: {
196
+ type: string;
197
+ description: string;
198
+ };
199
+ parameters: {
200
+ type: string;
201
+ description: string;
202
+ };
203
+ description: {
204
+ type: string;
205
+ description: string;
206
+ };
207
+ tags: {
208
+ type: string;
209
+ items: {
210
+ type: string;
211
+ };
212
+ };
213
+ overwrite: {
214
+ type: string;
215
+ description: string;
216
+ };
217
+ };
218
+ };
219
+ };
220
+ };
221
+ };
222
+ responses: {
223
+ "201": {
224
+ description: string;
225
+ content: {
226
+ "application/json": {
227
+ schema: {
228
+ $ref: string;
229
+ };
230
+ };
231
+ };
232
+ };
233
+ "400": {
234
+ description: string;
235
+ content: {
236
+ "application/json": {
237
+ schema: {
238
+ $ref: string;
239
+ };
240
+ };
241
+ };
242
+ };
243
+ "409": {
244
+ description: string;
245
+ content: {
246
+ "application/json": {
247
+ schema: {
248
+ $ref: string;
249
+ };
250
+ };
251
+ };
252
+ };
253
+ };
254
+ };
255
+ };
256
+ "/workflows/{id}": {
257
+ get: {
258
+ tags: string[];
259
+ summary: string;
260
+ parameters: {
261
+ name: string;
262
+ in: string;
263
+ required: boolean;
264
+ schema: {
265
+ type: string;
266
+ };
267
+ }[];
268
+ responses: {
269
+ "200": {
270
+ description: string;
271
+ content: {
272
+ "application/json": {
273
+ schema: {
274
+ $ref: string;
275
+ };
276
+ examples: {
277
+ success: {
278
+ $ref: string;
279
+ };
280
+ };
281
+ };
282
+ };
283
+ };
284
+ "404": {
285
+ description: string;
286
+ content: {
287
+ "application/json": {
288
+ schema: {
289
+ $ref: string;
290
+ };
291
+ examples: {
292
+ error: {
293
+ $ref: string;
294
+ };
295
+ };
296
+ };
297
+ };
298
+ };
299
+ };
300
+ };
301
+ };
302
+ "/workflows/{id}/start": {
303
+ post: {
304
+ tags: string[];
305
+ summary: string;
306
+ parameters: ({
307
+ name: string;
308
+ in: string;
309
+ required: boolean;
310
+ schema: {
311
+ type: string;
312
+ };
313
+ description?: undefined;
314
+ } | {
315
+ name: string;
316
+ in: string;
317
+ required: boolean;
318
+ schema: {
319
+ type: string;
320
+ };
321
+ description: string;
322
+ })[];
323
+ requestBody: {
324
+ content: {
325
+ "application/json": {
326
+ schema: {
327
+ type: string;
328
+ properties: {
329
+ context: {
330
+ type: string;
331
+ description: string;
332
+ };
333
+ version: {
334
+ type: string;
335
+ description: string;
336
+ };
337
+ };
338
+ };
339
+ };
340
+ };
341
+ };
342
+ responses: {
343
+ "201": {
344
+ description: string;
345
+ content: {
346
+ "application/json": {
347
+ schema: {
348
+ $ref: string;
349
+ };
350
+ examples: {
351
+ success: {
352
+ $ref: string;
353
+ };
354
+ };
355
+ };
356
+ };
357
+ };
358
+ "200": {
359
+ description: string;
360
+ content: {
361
+ "application/json": {
362
+ schema: {
363
+ $ref: string;
364
+ };
365
+ };
366
+ };
367
+ };
368
+ "400": {
369
+ description: string;
370
+ content: {
371
+ "application/json": {
372
+ schema: {
373
+ $ref: string;
374
+ };
375
+ examples: {
376
+ error: {
377
+ $ref: string;
378
+ };
379
+ };
380
+ };
381
+ };
382
+ };
383
+ "409": {
384
+ description: string;
385
+ content: {
386
+ "application/json": {
387
+ schema: {
388
+ $ref: string;
389
+ };
390
+ };
391
+ };
392
+ };
393
+ };
394
+ };
395
+ };
396
+ "/instances": {
397
+ get: {
398
+ tags: string[];
399
+ summary: string;
400
+ parameters: ({
401
+ name: string;
402
+ in: string;
403
+ schema: {
404
+ type: string;
405
+ enum: string[];
406
+ };
407
+ } | {
408
+ name: string;
409
+ in: string;
410
+ schema: {
411
+ type: string;
412
+ enum?: undefined;
413
+ };
414
+ })[];
415
+ responses: {
416
+ "200": {
417
+ description: string;
418
+ content: {
419
+ "application/json": {
420
+ schema: {
421
+ $ref: string;
422
+ };
423
+ examples: {
424
+ success: {
425
+ $ref: string;
426
+ };
427
+ };
428
+ };
429
+ };
430
+ };
431
+ };
432
+ };
433
+ };
434
+ "/instances/{id}": {
435
+ get: {
436
+ tags: string[];
437
+ summary: string;
438
+ parameters: {
439
+ name: string;
440
+ in: string;
441
+ required: boolean;
442
+ schema: {
443
+ type: string;
444
+ };
445
+ }[];
446
+ responses: {
447
+ "200": {
448
+ description: string;
449
+ content: {
450
+ "application/json": {
451
+ schema: {
452
+ $ref: string;
453
+ };
454
+ };
455
+ };
456
+ };
457
+ "404": {
458
+ description: string;
459
+ content: {
460
+ "application/json": {
461
+ schema: {
462
+ $ref: string;
463
+ };
464
+ examples: {
465
+ error: {
466
+ $ref: string;
467
+ };
468
+ };
469
+ };
470
+ };
471
+ };
472
+ };
473
+ };
474
+ };
475
+ "/instances/{id}/resume": {
476
+ post: {
477
+ tags: string[];
478
+ summary: string;
479
+ parameters: {
480
+ name: string;
481
+ in: string;
482
+ required: boolean;
483
+ schema: {
484
+ type: string;
485
+ };
486
+ }[];
487
+ responses: {
488
+ "200": {
489
+ description: string;
490
+ content: {
491
+ "application/json": {
492
+ schema: {
493
+ $ref: string;
494
+ };
495
+ };
496
+ };
497
+ };
498
+ "404": {
499
+ description: string;
500
+ content: {
501
+ "application/json": {
502
+ schema: {
503
+ $ref: string;
504
+ };
505
+ };
506
+ };
507
+ };
508
+ };
509
+ };
510
+ };
511
+ "/instances/{id}/cancel": {
512
+ post: {
513
+ tags: string[];
514
+ summary: string;
515
+ parameters: {
516
+ name: string;
517
+ in: string;
518
+ required: boolean;
519
+ schema: {
520
+ type: string;
521
+ };
522
+ }[];
523
+ responses: {
524
+ "200": {
525
+ description: string;
526
+ content: {
527
+ "application/json": {
528
+ schema: {
529
+ $ref: string;
530
+ };
531
+ };
532
+ };
533
+ };
534
+ "404": {
535
+ description: string;
536
+ content: {
537
+ "application/json": {
538
+ schema: {
539
+ $ref: string;
540
+ };
541
+ };
542
+ };
543
+ };
544
+ };
545
+ };
546
+ };
547
+ "/instances/{id}/pause": {
548
+ post: {
549
+ tags: string[];
550
+ summary: string;
551
+ parameters: {
552
+ name: string;
553
+ in: string;
554
+ required: boolean;
555
+ schema: {
556
+ type: string;
557
+ };
558
+ }[];
559
+ responses: {
560
+ "200": {
561
+ description: string;
562
+ content: {
563
+ "application/json": {
564
+ schema: {
565
+ $ref: string;
566
+ };
567
+ };
568
+ };
569
+ };
570
+ "404": {
571
+ description: string;
572
+ content: {
573
+ "application/json": {
574
+ schema: {
575
+ $ref: string;
576
+ };
577
+ };
578
+ };
579
+ };
580
+ };
581
+ };
582
+ };
583
+ "/instances/{id}/terminate": {
584
+ post: {
585
+ tags: string[];
586
+ summary: string;
587
+ parameters: {
588
+ name: string;
589
+ in: string;
590
+ required: boolean;
591
+ schema: {
592
+ type: string;
593
+ };
594
+ }[];
595
+ responses: {
596
+ "200": {
597
+ description: string;
598
+ content: {
599
+ "application/json": {
600
+ schema: {
601
+ $ref: string;
602
+ };
603
+ };
604
+ };
605
+ };
606
+ "404": {
607
+ description: string;
608
+ content: {
609
+ "application/json": {
610
+ schema: {
611
+ $ref: string;
612
+ };
613
+ };
614
+ };
615
+ };
616
+ };
617
+ };
618
+ };
619
+ "/instances/{id}/signal": {
620
+ post: {
621
+ tags: string[];
622
+ summary: string;
623
+ parameters: {
624
+ name: string;
625
+ in: string;
626
+ required: boolean;
627
+ schema: {
628
+ type: string;
629
+ };
630
+ }[];
631
+ requestBody: {
632
+ required: boolean;
633
+ content: {
634
+ "application/json": {
635
+ schema: {
636
+ type: string;
637
+ required: string[];
638
+ properties: {
639
+ name: {
640
+ type: string;
641
+ };
642
+ payload: {};
643
+ };
644
+ };
645
+ };
646
+ };
647
+ };
648
+ responses: {
649
+ "202": {
650
+ description: string;
651
+ content: {
652
+ "application/json": {
653
+ schema: {
654
+ $ref: string;
655
+ };
656
+ };
657
+ };
658
+ };
659
+ };
660
+ };
661
+ };
662
+ "/instances/{id}/query": {
663
+ post: {
664
+ tags: string[];
665
+ summary: string;
666
+ parameters: {
667
+ name: string;
668
+ in: string;
669
+ required: boolean;
670
+ schema: {
671
+ type: string;
672
+ };
673
+ }[];
674
+ requestBody: {
675
+ required: boolean;
676
+ content: {
677
+ "application/json": {
678
+ schema: {
679
+ type: string;
680
+ required: string[];
681
+ properties: {
682
+ name: {
683
+ type: string;
684
+ };
685
+ payload: {};
686
+ };
687
+ };
688
+ };
689
+ };
690
+ };
691
+ responses: {
692
+ "200": {
693
+ description: string;
694
+ content: {
695
+ "application/json": {
696
+ schema: {
697
+ $ref: string;
698
+ };
699
+ };
700
+ };
701
+ };
702
+ };
703
+ };
704
+ };
705
+ "/instances/{id}/update": {
706
+ post: {
707
+ tags: string[];
708
+ summary: string;
709
+ parameters: {
710
+ name: string;
711
+ in: string;
712
+ required: boolean;
713
+ schema: {
714
+ type: string;
715
+ };
716
+ }[];
717
+ requestBody: {
718
+ required: boolean;
719
+ content: {
720
+ "application/json": {
721
+ schema: {
722
+ type: string;
723
+ required: string[];
724
+ properties: {
725
+ name: {
726
+ type: string;
727
+ };
728
+ payload: {};
729
+ correlationId: {
730
+ type: string;
731
+ };
732
+ };
733
+ };
734
+ };
735
+ };
736
+ };
737
+ responses: {
738
+ "200": {
739
+ description: string;
740
+ content: {
741
+ "application/json": {
742
+ schema: {
743
+ $ref: string;
744
+ };
745
+ };
746
+ };
747
+ };
748
+ };
749
+ };
750
+ };
751
+ "/events/trigger": {
752
+ post: {
753
+ tags: string[];
754
+ summary: string;
755
+ parameters: {
756
+ name: string;
757
+ in: string;
758
+ required: boolean;
759
+ schema: {
760
+ type: string;
761
+ };
762
+ description: string;
763
+ }[];
764
+ requestBody: {
765
+ required: boolean;
766
+ content: {
767
+ "application/json": {
768
+ schema: {
769
+ type: string;
770
+ required: string[];
771
+ properties: {
772
+ event: {
773
+ type: string;
774
+ description: string;
775
+ };
776
+ data: {
777
+ type: string;
778
+ description: string;
779
+ };
780
+ instanceId: {
781
+ type: string;
782
+ description: string;
783
+ };
784
+ };
785
+ };
786
+ };
787
+ };
788
+ };
789
+ responses: {
790
+ "200": {
791
+ description: string;
792
+ content: {
793
+ "application/json": {
794
+ schema: {
795
+ $ref: string;
796
+ };
797
+ examples: {
798
+ success: {
799
+ $ref: string;
800
+ };
801
+ };
802
+ };
803
+ };
804
+ };
805
+ "409": {
806
+ description: string;
807
+ content: {
808
+ "application/json": {
809
+ schema: {
810
+ $ref: string;
811
+ };
812
+ };
813
+ };
814
+ };
815
+ };
816
+ };
817
+ };
818
+ "/webhooks": {
819
+ get: {
820
+ tags: string[];
821
+ summary: string;
822
+ responses: {
823
+ "200": {
824
+ description: string;
825
+ content: {
826
+ "application/json": {
827
+ schema: {
828
+ $ref: string;
829
+ };
830
+ };
831
+ };
832
+ };
833
+ };
834
+ };
835
+ post: {
836
+ tags: string[];
837
+ summary: string;
838
+ requestBody: {
839
+ required: boolean;
840
+ content: {
841
+ "application/json": {
842
+ schema: {
843
+ $ref: string;
844
+ };
845
+ };
846
+ };
847
+ };
848
+ responses: {
849
+ "201": {
850
+ description: string;
851
+ content: {
852
+ "application/json": {
853
+ schema: {
854
+ $ref: string;
855
+ };
856
+ };
857
+ };
858
+ };
859
+ };
860
+ };
861
+ };
862
+ "/webhooks/deliveries": {
863
+ get: {
864
+ tags: string[];
865
+ summary: string;
866
+ parameters: ({
867
+ name: string;
868
+ in: string;
869
+ schema: {
870
+ type: string;
871
+ default: number;
872
+ enum?: undefined;
873
+ };
874
+ } | {
875
+ name: string;
876
+ in: string;
877
+ schema: {
878
+ type: string;
879
+ default?: undefined;
880
+ enum?: undefined;
881
+ };
882
+ } | {
883
+ name: string;
884
+ in: string;
885
+ schema: {
886
+ type: string;
887
+ enum: string[];
888
+ default?: undefined;
889
+ };
890
+ })[];
891
+ responses: {
892
+ "200": {
893
+ description: string;
894
+ content: {
895
+ "application/json": {
896
+ schema: {
897
+ $ref: string;
898
+ };
899
+ };
900
+ };
901
+ };
902
+ };
903
+ };
904
+ };
905
+ "/webhooks/deliveries/{deliveryId}": {
906
+ get: {
907
+ tags: string[];
908
+ summary: string;
909
+ parameters: {
910
+ name: string;
911
+ in: string;
912
+ required: boolean;
913
+ schema: {
914
+ type: string;
915
+ };
916
+ }[];
917
+ responses: {
918
+ "200": {
919
+ description: string;
920
+ content: {
921
+ "application/json": {
922
+ schema: {
923
+ $ref: string;
924
+ };
925
+ };
926
+ };
927
+ };
928
+ "404": {
929
+ description: string;
930
+ content: {
931
+ "application/json": {
932
+ schema: {
933
+ $ref: string;
934
+ };
935
+ };
936
+ };
937
+ };
938
+ };
939
+ };
940
+ };
941
+ "/webhooks/deliveries/{deliveryId}/retry": {
942
+ post: {
943
+ tags: string[];
944
+ summary: string;
945
+ parameters: {
946
+ name: string;
947
+ in: string;
948
+ required: boolean;
949
+ schema: {
950
+ type: string;
951
+ };
952
+ }[];
953
+ responses: {
954
+ "200": {
955
+ description: string;
956
+ content: {
957
+ "application/json": {
958
+ schema: {
959
+ $ref: string;
960
+ };
961
+ };
962
+ };
963
+ };
964
+ "404": {
965
+ description: string;
966
+ content: {
967
+ "application/json": {
968
+ schema: {
969
+ $ref: string;
970
+ };
971
+ };
972
+ };
973
+ };
974
+ };
975
+ };
976
+ };
977
+ "/webhooks/deliveries/retry": {
978
+ post: {
979
+ tags: string[];
980
+ summary: string;
981
+ requestBody: {
982
+ required: boolean;
983
+ content: {
984
+ "application/json": {
985
+ schema: {
986
+ type: string;
987
+ properties: {
988
+ webhookId: {
989
+ type: string;
990
+ };
991
+ event: {
992
+ type: string;
993
+ };
994
+ workflowId: {
995
+ type: string;
996
+ };
997
+ instanceId: {
998
+ type: string;
999
+ };
1000
+ status: {
1001
+ type: string;
1002
+ enum: string[];
1003
+ };
1004
+ };
1005
+ };
1006
+ };
1007
+ };
1008
+ };
1009
+ responses: {
1010
+ "200": {
1011
+ description: string;
1012
+ content: {
1013
+ "application/json": {
1014
+ schema: {
1015
+ $ref: string;
1016
+ };
1017
+ };
1018
+ };
1019
+ };
1020
+ };
1021
+ };
1022
+ };
1023
+ "/webhooks/deliveries/cleanup": {
1024
+ post: {
1025
+ tags: string[];
1026
+ summary: string;
1027
+ responses: {
1028
+ "200": {
1029
+ description: string;
1030
+ content: {
1031
+ "application/json": {
1032
+ schema: {
1033
+ $ref: string;
1034
+ };
1035
+ };
1036
+ };
1037
+ };
1038
+ };
1039
+ };
1040
+ };
1041
+ "/webhooks/deliveries/cleanup/status": {
1042
+ get: {
1043
+ tags: string[];
1044
+ summary: string;
1045
+ responses: {
1046
+ "200": {
1047
+ description: string;
1048
+ content: {
1049
+ "application/json": {
1050
+ schema: {
1051
+ $ref: string;
1052
+ };
1053
+ };
1054
+ };
1055
+ };
1056
+ };
1057
+ };
1058
+ };
1059
+ "/dlq": {
1060
+ get: {
1061
+ tags: string[];
1062
+ summary: string;
1063
+ parameters: ({
1064
+ name: string;
1065
+ in: string;
1066
+ schema: {
1067
+ type: string;
1068
+ default: number;
1069
+ enum?: undefined;
1070
+ };
1071
+ } | {
1072
+ name: string;
1073
+ in: string;
1074
+ schema: {
1075
+ type: string;
1076
+ enum: string[];
1077
+ default?: undefined;
1078
+ };
1079
+ })[];
1080
+ responses: {
1081
+ "200": {
1082
+ description: string;
1083
+ content: {
1084
+ "application/json": {
1085
+ schema: {
1086
+ $ref: string;
1087
+ };
1088
+ };
1089
+ };
1090
+ };
1091
+ };
1092
+ };
1093
+ };
1094
+ "/dlq/stats": {
1095
+ get: {
1096
+ tags: string[];
1097
+ summary: string;
1098
+ responses: {
1099
+ "200": {
1100
+ description: string;
1101
+ content: {
1102
+ "application/json": {
1103
+ schema: {
1104
+ $ref: string;
1105
+ };
1106
+ };
1107
+ };
1108
+ };
1109
+ };
1110
+ };
1111
+ };
1112
+ "/dlq/{id}/retry": {
1113
+ post: {
1114
+ tags: string[];
1115
+ summary: string;
1116
+ parameters: {
1117
+ name: string;
1118
+ in: string;
1119
+ required: boolean;
1120
+ schema: {
1121
+ type: string;
1122
+ };
1123
+ }[];
1124
+ responses: {
1125
+ "200": {
1126
+ description: string;
1127
+ content: {
1128
+ "application/json": {
1129
+ schema: {
1130
+ $ref: string;
1131
+ };
1132
+ };
1133
+ };
1134
+ };
1135
+ "404": {
1136
+ description: string;
1137
+ content: {
1138
+ "application/json": {
1139
+ schema: {
1140
+ $ref: string;
1141
+ };
1142
+ };
1143
+ };
1144
+ };
1145
+ };
1146
+ };
1147
+ };
1148
+ "/events/history": {
1149
+ get: {
1150
+ tags: string[];
1151
+ summary: string;
1152
+ parameters: {
1153
+ name: string;
1154
+ in: string;
1155
+ required: boolean;
1156
+ schema: {
1157
+ type: string;
1158
+ default: number;
1159
+ };
1160
+ }[];
1161
+ responses: {
1162
+ "200": {
1163
+ description: string;
1164
+ content: {
1165
+ "application/json": {
1166
+ schema: {
1167
+ $ref: string;
1168
+ };
1169
+ };
1170
+ };
1171
+ };
1172
+ };
1173
+ };
1174
+ };
1175
+ "/analytics/overview": {
1176
+ get: {
1177
+ tags: string[];
1178
+ summary: string;
1179
+ responses: {
1180
+ "200": {
1181
+ description: string;
1182
+ content: {
1183
+ "application/json": {
1184
+ schema: {
1185
+ $ref: string;
1186
+ };
1187
+ };
1188
+ };
1189
+ };
1190
+ };
1191
+ };
1192
+ };
1193
+ "/analytics/workflow/{id}": {
1194
+ get: {
1195
+ tags: string[];
1196
+ summary: string;
1197
+ parameters: ({
1198
+ name: string;
1199
+ in: string;
1200
+ required: boolean;
1201
+ schema: {
1202
+ type: string;
1203
+ };
1204
+ description?: undefined;
1205
+ } | {
1206
+ name: string;
1207
+ in: string;
1208
+ required: boolean;
1209
+ description: string;
1210
+ schema: {
1211
+ type: string;
1212
+ };
1213
+ })[];
1214
+ responses: {
1215
+ "200": {
1216
+ description: string;
1217
+ content: {
1218
+ "application/json": {
1219
+ schema: {
1220
+ $ref: string;
1221
+ };
1222
+ };
1223
+ };
1224
+ };
1225
+ };
1226
+ };
1227
+ };
1228
+ "/analytics/nodes/{id}": {
1229
+ get: {
1230
+ tags: string[];
1231
+ summary: string;
1232
+ parameters: ({
1233
+ name: string;
1234
+ in: string;
1235
+ required: boolean;
1236
+ schema: {
1237
+ type: string;
1238
+ };
1239
+ description?: undefined;
1240
+ } | {
1241
+ name: string;
1242
+ in: string;
1243
+ required: boolean;
1244
+ description: string;
1245
+ schema: {
1246
+ type: string;
1247
+ };
1248
+ })[];
1249
+ responses: {
1250
+ "200": {
1251
+ description: string;
1252
+ content: {
1253
+ "application/json": {
1254
+ schema: {
1255
+ $ref: string;
1256
+ };
1257
+ };
1258
+ };
1259
+ };
1260
+ "400": {
1261
+ description: string;
1262
+ content: {
1263
+ "application/json": {
1264
+ schema: {
1265
+ $ref: string;
1266
+ };
1267
+ };
1268
+ };
1269
+ };
1270
+ };
1271
+ };
1272
+ };
1273
+ "/analytics/anomalies": {
1274
+ get: {
1275
+ tags: string[];
1276
+ summary: string;
1277
+ parameters: {
1278
+ name: string;
1279
+ in: string;
1280
+ required: boolean;
1281
+ schema: {
1282
+ type: string;
1283
+ };
1284
+ }[];
1285
+ responses: {
1286
+ "200": {
1287
+ description: string;
1288
+ content: {
1289
+ "application/json": {
1290
+ schema: {
1291
+ $ref: string;
1292
+ };
1293
+ };
1294
+ };
1295
+ };
1296
+ };
1297
+ };
1298
+ };
1299
+ "/analytics/sla": {
1300
+ get: {
1301
+ tags: string[];
1302
+ summary: string;
1303
+ parameters: {
1304
+ name: string;
1305
+ in: string;
1306
+ required: boolean;
1307
+ schema: {
1308
+ type: string;
1309
+ };
1310
+ }[];
1311
+ responses: {
1312
+ "200": {
1313
+ description: string;
1314
+ content: {
1315
+ "application/json": {
1316
+ schema: {
1317
+ $ref: string;
1318
+ };
1319
+ };
1320
+ };
1321
+ };
1322
+ };
1323
+ };
1324
+ post: {
1325
+ tags: string[];
1326
+ summary: string;
1327
+ requestBody: {
1328
+ content: {
1329
+ "application/json": {
1330
+ schema: {
1331
+ type: string;
1332
+ required: string[];
1333
+ properties: {
1334
+ id: {
1335
+ type: string;
1336
+ };
1337
+ workflowId: {
1338
+ type: string;
1339
+ };
1340
+ metric: {
1341
+ type: string;
1342
+ };
1343
+ threshold: {
1344
+ type: string;
1345
+ };
1346
+ };
1347
+ };
1348
+ };
1349
+ };
1350
+ };
1351
+ responses: {
1352
+ "201": {
1353
+ description: string;
1354
+ content: {
1355
+ "application/json": {
1356
+ schema: {
1357
+ $ref: string;
1358
+ };
1359
+ };
1360
+ };
1361
+ };
1362
+ "400": {
1363
+ description: string;
1364
+ content: {
1365
+ "application/json": {
1366
+ schema: {
1367
+ $ref: string;
1368
+ };
1369
+ };
1370
+ };
1371
+ };
1372
+ };
1373
+ };
1374
+ };
1375
+ "/analytics/sla/{id}": {
1376
+ delete: {
1377
+ tags: string[];
1378
+ summary: string;
1379
+ parameters: {
1380
+ name: string;
1381
+ in: string;
1382
+ required: boolean;
1383
+ schema: {
1384
+ type: string;
1385
+ };
1386
+ }[];
1387
+ responses: {
1388
+ "200": {
1389
+ description: string;
1390
+ content: {
1391
+ "application/json": {
1392
+ schema: {
1393
+ $ref: string;
1394
+ };
1395
+ };
1396
+ };
1397
+ };
1398
+ };
1399
+ };
1400
+ };
1401
+ "/functions": {
1402
+ get: {
1403
+ tags: string[];
1404
+ summary: string;
1405
+ responses: {
1406
+ "200": {
1407
+ description: string;
1408
+ content: {
1409
+ "application/json": {
1410
+ schema: {
1411
+ $ref: string;
1412
+ };
1413
+ };
1414
+ };
1415
+ };
1416
+ };
1417
+ };
1418
+ post: {
1419
+ tags: string[];
1420
+ summary: string;
1421
+ responses: {
1422
+ "201": {
1423
+ description: string;
1424
+ content: {
1425
+ "application/json": {
1426
+ schema: {
1427
+ $ref: string;
1428
+ };
1429
+ };
1430
+ };
1431
+ };
1432
+ };
1433
+ };
1434
+ };
1435
+ "/functions/{name}": {
1436
+ delete: {
1437
+ tags: string[];
1438
+ summary: string;
1439
+ parameters: {
1440
+ name: string;
1441
+ in: string;
1442
+ required: boolean;
1443
+ schema: {
1444
+ type: string;
1445
+ };
1446
+ }[];
1447
+ responses: {
1448
+ "200": {
1449
+ description: string;
1450
+ content: {
1451
+ "application/json": {
1452
+ schema: {
1453
+ $ref: string;
1454
+ };
1455
+ };
1456
+ };
1457
+ };
1458
+ };
1459
+ };
1460
+ };
1461
+ "/templates": {
1462
+ get: {
1463
+ tags: string[];
1464
+ summary: string;
1465
+ responses: {
1466
+ "200": {
1467
+ description: string;
1468
+ content: {
1469
+ "application/json": {
1470
+ schema: {
1471
+ $ref: string;
1472
+ };
1473
+ };
1474
+ };
1475
+ };
1476
+ };
1477
+ };
1478
+ post: {
1479
+ tags: string[];
1480
+ summary: string;
1481
+ responses: {
1482
+ "201": {
1483
+ description: string;
1484
+ content: {
1485
+ "application/json": {
1486
+ schema: {
1487
+ $ref: string;
1488
+ };
1489
+ };
1490
+ };
1491
+ };
1492
+ };
1493
+ };
1494
+ };
1495
+ "/templates/{id}": {
1496
+ get: {
1497
+ tags: string[];
1498
+ summary: string;
1499
+ parameters: {
1500
+ name: string;
1501
+ in: string;
1502
+ required: boolean;
1503
+ schema: {
1504
+ type: string;
1505
+ };
1506
+ }[];
1507
+ responses: {
1508
+ "200": {
1509
+ description: string;
1510
+ content: {
1511
+ "application/json": {
1512
+ schema: {
1513
+ $ref: string;
1514
+ };
1515
+ };
1516
+ };
1517
+ };
1518
+ };
1519
+ };
1520
+ delete: {
1521
+ tags: string[];
1522
+ summary: string;
1523
+ parameters: {
1524
+ name: string;
1525
+ in: string;
1526
+ required: boolean;
1527
+ schema: {
1528
+ type: string;
1529
+ };
1530
+ }[];
1531
+ responses: {
1532
+ "200": {
1533
+ description: string;
1534
+ content: {
1535
+ "application/json": {
1536
+ schema: {
1537
+ $ref: string;
1538
+ };
1539
+ };
1540
+ };
1541
+ };
1542
+ };
1543
+ };
1544
+ };
1545
+ "/workflows/schema": {
1546
+ get: {
1547
+ tags: string[];
1548
+ summary: string;
1549
+ responses: {
1550
+ "200": {
1551
+ description: string;
1552
+ content: {
1553
+ "application/json": {
1554
+ schema: {
1555
+ $ref: string;
1556
+ };
1557
+ };
1558
+ };
1559
+ };
1560
+ };
1561
+ };
1562
+ };
1563
+ "/workflows/node-templates": {
1564
+ get: {
1565
+ tags: string[];
1566
+ summary: string;
1567
+ responses: {
1568
+ "200": {
1569
+ description: string;
1570
+ content: {
1571
+ "application/json": {
1572
+ schema: {
1573
+ $ref: string;
1574
+ };
1575
+ };
1576
+ };
1577
+ };
1578
+ };
1579
+ };
1580
+ };
1581
+ "/workflows/{id}/graph": {
1582
+ get: {
1583
+ tags: string[];
1584
+ summary: string;
1585
+ parameters: {
1586
+ name: string;
1587
+ in: string;
1588
+ required: boolean;
1589
+ schema: {
1590
+ type: string;
1591
+ };
1592
+ }[];
1593
+ responses: {
1594
+ "200": {
1595
+ description: string;
1596
+ content: {
1597
+ "application/json": {
1598
+ schema: {
1599
+ $ref: string;
1600
+ };
1601
+ };
1602
+ };
1603
+ };
1604
+ };
1605
+ };
1606
+ put: {
1607
+ tags: string[];
1608
+ summary: string;
1609
+ parameters: {
1610
+ name: string;
1611
+ in: string;
1612
+ required: boolean;
1613
+ schema: {
1614
+ type: string;
1615
+ };
1616
+ }[];
1617
+ responses: {
1618
+ "200": {
1619
+ description: string;
1620
+ content: {
1621
+ "application/json": {
1622
+ schema: {
1623
+ $ref: string;
1624
+ };
1625
+ };
1626
+ };
1627
+ };
1628
+ };
1629
+ };
1630
+ };
1631
+ "/workflows/{id}/variables": {
1632
+ get: {
1633
+ tags: string[];
1634
+ summary: string;
1635
+ parameters: ({
1636
+ name: string;
1637
+ in: string;
1638
+ required: boolean;
1639
+ schema: {
1640
+ type: string;
1641
+ };
1642
+ description?: undefined;
1643
+ } | {
1644
+ name: string;
1645
+ in: string;
1646
+ required: boolean;
1647
+ description: string;
1648
+ schema: {
1649
+ type: string;
1650
+ };
1651
+ })[];
1652
+ responses: {
1653
+ "200": {
1654
+ description: string;
1655
+ content: {
1656
+ "application/json": {
1657
+ schema: {
1658
+ $ref: string;
1659
+ };
1660
+ };
1661
+ };
1662
+ };
1663
+ };
1664
+ };
1665
+ };
1666
+ "/workflows/{id}/versions": {
1667
+ get: {
1668
+ tags: string[];
1669
+ summary: string;
1670
+ parameters: {
1671
+ name: string;
1672
+ in: string;
1673
+ required: boolean;
1674
+ schema: {
1675
+ type: string;
1676
+ };
1677
+ }[];
1678
+ responses: {
1679
+ "200": {
1680
+ description: string;
1681
+ content: {
1682
+ "application/json": {
1683
+ schema: {
1684
+ $ref: string;
1685
+ };
1686
+ };
1687
+ };
1688
+ };
1689
+ };
1690
+ };
1691
+ };
1692
+ };
1693
+ components: {
1694
+ schemas: {
1695
+ WorkflowInstance: {
1696
+ type: string;
1697
+ properties: {
1698
+ instanceId: {
1699
+ type: string;
1700
+ };
1701
+ workflowId: {
1702
+ type: string;
1703
+ };
1704
+ status: {
1705
+ type: string;
1706
+ enum: string[];
1707
+ };
1708
+ currentNodes: {
1709
+ type: string;
1710
+ items: {
1711
+ type: string;
1712
+ };
1713
+ };
1714
+ context: {
1715
+ type: string;
1716
+ };
1717
+ createdAt: {
1718
+ type: string;
1719
+ format: string;
1720
+ };
1721
+ updatedAt: {
1722
+ type: string;
1723
+ format: string;
1724
+ };
1725
+ };
1726
+ };
1727
+ ApiSuccessResponse: {
1728
+ type: string;
1729
+ required: string[];
1730
+ properties: {
1731
+ code: {
1732
+ oneOf: ({
1733
+ type: string;
1734
+ enum: number[];
1735
+ } | {
1736
+ type: string;
1737
+ enum: string[];
1738
+ })[];
1739
+ };
1740
+ message: {
1741
+ type: string;
1742
+ };
1743
+ data: {
1744
+ type: string;
1745
+ };
1746
+ timestamp: {
1747
+ type: string;
1748
+ format: string;
1749
+ };
1750
+ };
1751
+ };
1752
+ ApiErrorResponse: {
1753
+ type: string;
1754
+ required: string[];
1755
+ properties: {
1756
+ code: {
1757
+ oneOf: {
1758
+ type: string;
1759
+ }[];
1760
+ };
1761
+ message: {
1762
+ type: string;
1763
+ };
1764
+ error: {
1765
+ oneOf: {
1766
+ type: string;
1767
+ }[];
1768
+ };
1769
+ timestamp: {
1770
+ type: string;
1771
+ format: string;
1772
+ };
1773
+ };
1774
+ };
1775
+ ApiResponse: {
1776
+ oneOf: {
1777
+ $ref: string;
1778
+ }[];
1779
+ };
1780
+ CreateWebhook: {
1781
+ type: string;
1782
+ required: string[];
1783
+ properties: {
1784
+ name: {
1785
+ type: string;
1786
+ };
1787
+ url: {
1788
+ type: string;
1789
+ format: string;
1790
+ };
1791
+ events: {
1792
+ type: string;
1793
+ items: {
1794
+ type: string;
1795
+ };
1796
+ };
1797
+ headers: {
1798
+ type: string;
1799
+ };
1800
+ secret: {
1801
+ type: string;
1802
+ };
1803
+ };
1804
+ };
1805
+ };
1806
+ examples: {
1807
+ WorkflowsListSuccess: {
1808
+ value: {
1809
+ code: number;
1810
+ message: string;
1811
+ data: {
1812
+ workflows: {
1813
+ id: string;
1814
+ name: string;
1815
+ version: number;
1816
+ }[];
1817
+ pagination: {
1818
+ page: number;
1819
+ pageSize: number;
1820
+ totalCount: number;
1821
+ totalPages: number;
1822
+ };
1823
+ };
1824
+ timestamp: string;
1825
+ };
1826
+ };
1827
+ WorkflowDetailSuccess: {
1828
+ value: {
1829
+ code: number;
1830
+ message: string;
1831
+ data: {
1832
+ id: string;
1833
+ name: string;
1834
+ version: number;
1835
+ };
1836
+ timestamp: string;
1837
+ };
1838
+ };
1839
+ WorkflowStartSuccess: {
1840
+ value: {
1841
+ code: number;
1842
+ message: string;
1843
+ data: {
1844
+ instanceId: string;
1845
+ };
1846
+ timestamp: string;
1847
+ };
1848
+ };
1849
+ InstancesListSuccess: {
1850
+ value: {
1851
+ code: number;
1852
+ message: string;
1853
+ data: {
1854
+ instances: {
1855
+ id: string;
1856
+ workflowId: string;
1857
+ status: string;
1858
+ }[];
1859
+ };
1860
+ timestamp: string;
1861
+ };
1862
+ };
1863
+ EventTriggeredSuccess: {
1864
+ value: {
1865
+ code: number;
1866
+ message: string;
1867
+ data: {
1868
+ event: string;
1869
+ withInstanceId: boolean;
1870
+ };
1871
+ timestamp: string;
1872
+ };
1873
+ };
1874
+ ValidationError: {
1875
+ value: {
1876
+ code: number;
1877
+ message: string;
1878
+ error: {
1879
+ field: string;
1880
+ reason: string;
1881
+ };
1882
+ timestamp: string;
1883
+ };
1884
+ };
1885
+ NotFoundError: {
1886
+ value: {
1887
+ code: number;
1888
+ message: string;
1889
+ error: {
1890
+ path: string;
1891
+ };
1892
+ timestamp: string;
1893
+ };
1894
+ };
1895
+ };
1896
+ securitySchemes: {
1897
+ bearerAuth: {
1898
+ type: string;
1899
+ scheme: string;
1900
+ bearerFormat: string;
1901
+ };
1902
+ apiKey: {
1903
+ type: string;
1904
+ in: string;
1905
+ name: string;
1906
+ };
1907
+ };
1908
+ };
1909
+ security: ({
1910
+ bearerAuth: never[];
1911
+ apiKey?: undefined;
1912
+ } | {
1913
+ apiKey: never[];
1914
+ bearerAuth?: undefined;
1915
+ })[];
1916
+ };
1917
+ export declare function generateApiDocsHtml(): string;