@nocobase/plugin-workflow 2.1.0-alpha.2 → 2.1.0-alpha.20

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 (136) hide show
  1. package/LICENSE +201 -661
  2. package/README.md +79 -10
  3. package/dist/client/214.88c6cd534bd4fc1c.js +10 -0
  4. package/dist/client/261.404a35cf5ae2ceba.js +10 -0
  5. package/dist/client/67.f904ef4520868b8a.js +10 -0
  6. package/dist/client/964.6251d37b35710747.js +10 -0
  7. package/dist/client/hooks/{useWorkflowFilterActionProps.d.ts → useResourceFilterActionProps.d.ts} +1 -1
  8. package/dist/client/index.js +1 -1
  9. package/dist/client/nodes/create.d.ts +10 -0
  10. package/dist/client/nodes/destroy.d.ts +10 -0
  11. package/dist/client/nodes/index.d.ts +3 -0
  12. package/dist/client/nodes/query.d.ts +18 -2
  13. package/dist/client/nodes/update.d.ts +10 -0
  14. package/dist/client/schemas/collection.d.ts +8 -2
  15. package/dist/client/schemas/executions.d.ts +41 -22
  16. package/dist/client/triggers/collection.d.ts +14 -1
  17. package/dist/client/triggers/index.d.ts +4 -0
  18. package/dist/client/triggers/schedule/constants.d.ts +4 -0
  19. package/dist/client/triggers/schedule/index.d.ts +15 -0
  20. package/dist/common/collections/executions.d.ts +22 -22
  21. package/dist/common/collections/executions.js +12 -0
  22. package/dist/common/collections/jobs.js +7 -0
  23. package/dist/common/collections/workflows.d.ts +22 -9
  24. package/dist/common/collections/workflows.js +9 -1
  25. package/dist/externalVersion.js +15 -13
  26. package/dist/locale/zh-CN.json +4 -1
  27. package/dist/node_modules/cron-parser/package.json +1 -1
  28. package/dist/node_modules/joi/dist/joi-browser.min.js +1 -0
  29. package/dist/node_modules/joi/lib/annotate.js +175 -0
  30. package/dist/node_modules/joi/lib/base.js +1069 -0
  31. package/dist/node_modules/joi/lib/cache.js +143 -0
  32. package/dist/node_modules/joi/lib/common.js +216 -0
  33. package/dist/node_modules/joi/lib/compile.js +283 -0
  34. package/dist/node_modules/joi/lib/errors.js +271 -0
  35. package/dist/node_modules/joi/lib/extend.js +312 -0
  36. package/dist/node_modules/joi/lib/index.d.ts +2365 -0
  37. package/dist/node_modules/joi/lib/index.js +1 -0
  38. package/dist/node_modules/joi/lib/manifest.js +476 -0
  39. package/dist/node_modules/joi/lib/messages.js +178 -0
  40. package/dist/node_modules/joi/lib/modify.js +267 -0
  41. package/dist/node_modules/joi/lib/ref.js +414 -0
  42. package/dist/node_modules/joi/lib/schemas.js +302 -0
  43. package/dist/node_modules/joi/lib/state.js +166 -0
  44. package/dist/node_modules/joi/lib/template.js +463 -0
  45. package/dist/node_modules/joi/lib/trace.js +346 -0
  46. package/dist/node_modules/joi/lib/types/alternatives.js +364 -0
  47. package/dist/node_modules/joi/lib/types/any.js +174 -0
  48. package/dist/node_modules/joi/lib/types/array.js +809 -0
  49. package/dist/node_modules/joi/lib/types/binary.js +100 -0
  50. package/dist/node_modules/joi/lib/types/boolean.js +150 -0
  51. package/dist/node_modules/joi/lib/types/date.js +233 -0
  52. package/dist/node_modules/joi/lib/types/function.js +93 -0
  53. package/dist/node_modules/joi/lib/types/keys.js +1067 -0
  54. package/dist/node_modules/joi/lib/types/link.js +168 -0
  55. package/dist/node_modules/joi/lib/types/number.js +363 -0
  56. package/dist/node_modules/joi/lib/types/object.js +22 -0
  57. package/dist/node_modules/joi/lib/types/string.js +850 -0
  58. package/dist/node_modules/joi/lib/types/symbol.js +102 -0
  59. package/dist/node_modules/joi/lib/validator.js +750 -0
  60. package/dist/node_modules/joi/lib/values.js +263 -0
  61. package/dist/node_modules/joi/node_modules/@hapi/topo/lib/index.d.ts +60 -0
  62. package/dist/node_modules/joi/node_modules/@hapi/topo/lib/index.js +225 -0
  63. package/dist/node_modules/joi/node_modules/@hapi/topo/package.json +30 -0
  64. package/dist/node_modules/joi/package.json +1 -0
  65. package/dist/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
  66. package/dist/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +10 -0
  67. package/dist/node_modules/lru-cache/dist/commonjs/index.d.ts +1381 -0
  68. package/dist/node_modules/lru-cache/dist/commonjs/index.js +1692 -0
  69. package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +1 -0
  70. package/dist/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
  71. package/dist/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  72. package/dist/node_modules/lru-cache/dist/esm/browser/index.d.ts +1381 -0
  73. package/dist/node_modules/lru-cache/dist/{mjs → esm/browser}/index.js +537 -179
  74. package/dist/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  75. package/dist/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
  76. package/dist/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  77. package/dist/node_modules/lru-cache/dist/esm/index.d.ts +1381 -0
  78. package/dist/node_modules/lru-cache/dist/{cjs → esm}/index.js +538 -184
  79. package/dist/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  80. package/dist/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
  81. package/dist/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +7 -0
  82. package/dist/node_modules/lru-cache/dist/esm/node/index.d.ts +1381 -0
  83. package/dist/node_modules/lru-cache/dist/esm/node/index.js +1688 -0
  84. package/dist/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  85. package/dist/node_modules/lru-cache/package.json +1 -1
  86. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  87. package/dist/server/Dispatcher.d.ts +3 -2
  88. package/dist/server/Dispatcher.js +74 -61
  89. package/dist/server/Plugin.d.ts +1 -0
  90. package/dist/server/Plugin.js +28 -2
  91. package/dist/server/actions/nodes.d.ts +5 -0
  92. package/dist/server/actions/nodes.js +34 -2
  93. package/dist/server/actions/workflows.d.ts +6 -0
  94. package/dist/server/actions/workflows.js +38 -0
  95. package/dist/server/instructions/ConditionInstruction.d.ts +2 -0
  96. package/dist/server/instructions/ConditionInstruction.js +17 -0
  97. package/dist/server/instructions/CreateInstruction.d.ts +3 -0
  98. package/dist/server/instructions/CreateInstruction.js +25 -0
  99. package/dist/server/instructions/DestroyInstruction.d.ts +3 -0
  100. package/dist/server/instructions/DestroyInstruction.js +25 -0
  101. package/dist/server/instructions/EndInstruction.d.ts +2 -0
  102. package/dist/server/instructions/EndInstruction.js +4 -0
  103. package/dist/server/instructions/MultiConditionsInstruction.d.ts +2 -0
  104. package/dist/server/instructions/MultiConditionsInstruction.js +23 -0
  105. package/dist/server/instructions/OutputInstruction.d.ts +2 -0
  106. package/dist/server/instructions/OutputInstruction.js +14 -0
  107. package/dist/server/instructions/QueryInstruction.d.ts +3 -0
  108. package/dist/server/instructions/QueryInstruction.js +32 -7
  109. package/dist/server/instructions/UpdateInstruction.d.ts +3 -0
  110. package/dist/server/instructions/UpdateInstruction.js +27 -0
  111. package/dist/server/instructions/index.d.ts +4 -0
  112. package/dist/server/instructions/index.js +18 -0
  113. package/dist/server/triggers/CollectionTrigger.d.ts +3 -0
  114. package/dist/server/triggers/CollectionTrigger.js +28 -0
  115. package/dist/server/triggers/ScheduleTrigger/index.d.ts +3 -0
  116. package/dist/server/triggers/ScheduleTrigger/index.js +18 -3
  117. package/dist/server/triggers/index.d.ts +3 -0
  118. package/dist/server/triggers/index.js +18 -0
  119. package/dist/server/utils.d.ts +17 -0
  120. package/dist/server/utils.js +51 -2
  121. package/dist/swagger/index.d.ts +830 -109
  122. package/dist/swagger/index.js +947 -208
  123. package/package.json +6 -5
  124. package/dist/client/27bd65abee87cafa.js +0 -10
  125. package/dist/client/478692c1637f2742.js +0 -10
  126. package/dist/client/c1347b9d21f864d9.js +0 -10
  127. package/dist/client/f39e94207f92e352.js +0 -10
  128. package/dist/node_modules/lru-cache/LICENSE +0 -15
  129. package/dist/node_modules/lru-cache/dist/cjs/index-cjs.d.ts +0 -7
  130. package/dist/node_modules/lru-cache/dist/cjs/index-cjs.js +0 -1
  131. package/dist/node_modules/lru-cache/dist/cjs/index.d.ts +0 -807
  132. package/dist/node_modules/lru-cache/dist/cjs/index.min.js +0 -2
  133. package/dist/node_modules/lru-cache/dist/mjs/index.d.ts +0 -807
  134. package/dist/node_modules/lru-cache/dist/mjs/index.min.js +0 -2
  135. /package/dist/node_modules/lru-cache/dist/{cjs → commonjs}/package.json +0 -0
  136. /package/dist/node_modules/lru-cache/dist/{mjs → esm}/package.json +0 -0
@@ -6,20 +6,85 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
+ /**
10
+ * NocoBase Workflow Plugin — Swagger / OpenAPI 3.0 document
11
+ *
12
+ * Resources covered:
13
+ * workflows — Workflow CRUD, versioning, sync and manual execution
14
+ * workflows.nodes — Create nodes inside a workflow (association resource)
15
+ * flow_nodes — Update / delete / move / duplicate / test nodes
16
+ * executions — Execution record queries, cancellation and deletion
17
+ * jobs — Node job queries and resuming paused executions
18
+ * userWorkflowTasks — Current-user's pending workflow tasks
19
+ *
20
+ * API conventions:
21
+ * Base URL : /api
22
+ * Route fmt : /api/<resource>:<action>
23
+ * Assoc fmt : /api/<resource>/<sourceId>/<association>:<action>
24
+ *
25
+ * Client-side usage (example):
26
+ * import { useAPIClient } from '@nocobase/client';
27
+ * const api = useAPIClient();
28
+ * await api.resource('workflows').list({ filter: { current: true } });
29
+ *
30
+ * Direct HTTP usage (example):
31
+ * GET /api/workflows:list?filter={"current":true}&sort=-createdAt&except[]=config
32
+ * Headers: Authorization: Bearer <token>
33
+ */
9
34
  declare const _default: {
10
35
  openapi: string;
11
36
  info: {
12
37
  title: string;
13
38
  };
14
- tags: any[];
39
+ tags: {
40
+ name: string;
41
+ description: string;
42
+ }[];
15
43
  paths: {
16
44
  '/workflows:list': {
17
45
  get: {
18
46
  tags: string[];
47
+ summary: string;
19
48
  description: string;
20
- parameters: {
49
+ parameters: ({
21
50
  $ref: string;
22
- }[];
51
+ name?: undefined;
52
+ in?: undefined;
53
+ description?: undefined;
54
+ schema?: undefined;
55
+ } | {
56
+ name: string;
57
+ in: string;
58
+ description: string;
59
+ schema: {
60
+ type: string;
61
+ items?: undefined;
62
+ default?: undefined;
63
+ };
64
+ $ref?: undefined;
65
+ } | {
66
+ name: string;
67
+ in: string;
68
+ description: string;
69
+ schema: {
70
+ type: string;
71
+ items: {
72
+ type: string;
73
+ };
74
+ default?: undefined;
75
+ };
76
+ $ref?: undefined;
77
+ } | {
78
+ name: string;
79
+ in: string;
80
+ description: string;
81
+ schema: {
82
+ type: string;
83
+ default: number;
84
+ items?: undefined;
85
+ };
86
+ $ref?: undefined;
87
+ })[];
23
88
  responses: {
24
89
  200: {
25
90
  description: string;
@@ -40,10 +105,26 @@ declare const _default: {
40
105
  '/workflows:get': {
41
106
  get: {
42
107
  tags: string[];
108
+ summary: string;
43
109
  description: string;
44
- parameters: {
110
+ parameters: ({
45
111
  $ref: string;
46
- }[];
112
+ name?: undefined;
113
+ in?: undefined;
114
+ description?: undefined;
115
+ schema?: undefined;
116
+ } | {
117
+ name: string;
118
+ in: string;
119
+ description: string;
120
+ schema: {
121
+ type: string;
122
+ items: {
123
+ type: string;
124
+ };
125
+ };
126
+ $ref?: undefined;
127
+ })[];
47
128
  responses: {
48
129
  200: {
49
130
  description: string;
@@ -76,6 +157,7 @@ declare const _default: {
76
157
  '/workflows:create': {
77
158
  post: {
78
159
  tags: string[];
160
+ summary: string;
79
161
  description: string;
80
162
  parameters: any[];
81
163
  requestBody: {
@@ -83,6 +165,7 @@ declare const _default: {
83
165
  'application/json': {
84
166
  schema: {
85
167
  type: string;
168
+ required: string[];
86
169
  properties: {
87
170
  title: {
88
171
  $ref: string;
@@ -93,6 +176,24 @@ declare const _default: {
93
176
  description: {
94
177
  $ref: string;
95
178
  };
179
+ enabled: {
180
+ $ref: string;
181
+ };
182
+ sync: {
183
+ $ref: string;
184
+ };
185
+ triggerTitle: {
186
+ $ref: string;
187
+ };
188
+ config: {
189
+ $ref: string;
190
+ };
191
+ options: {
192
+ $ref: string;
193
+ };
194
+ categories: {
195
+ $ref: string;
196
+ };
96
197
  };
97
198
  };
98
199
  };
@@ -104,9 +205,7 @@ declare const _default: {
104
205
  content: {
105
206
  'application/json': {
106
207
  schema: {
107
- allOf: {
108
- $ref: string;
109
- }[];
208
+ $ref: string;
110
209
  };
111
210
  };
112
211
  };
@@ -117,8 +216,11 @@ declare const _default: {
117
216
  '/workflows:update': {
118
217
  post: {
119
218
  tags: string[];
219
+ summary: string;
120
220
  description: string;
121
- parameters: any[];
221
+ parameters: {
222
+ $ref: string;
223
+ }[];
122
224
  requestBody: {
123
225
  content: {
124
226
  'application/json': {
@@ -134,9 +236,18 @@ declare const _default: {
134
236
  description: {
135
237
  $ref: string;
136
238
  };
239
+ triggerTitle: {
240
+ $ref: string;
241
+ };
137
242
  config: {
138
243
  $ref: string;
139
244
  };
245
+ options: {
246
+ $ref: string;
247
+ };
248
+ categories: {
249
+ $ref: string;
250
+ };
140
251
  };
141
252
  };
142
253
  };
@@ -146,12 +257,16 @@ declare const _default: {
146
257
  200: {
147
258
  description: string;
148
259
  };
260
+ 400: {
261
+ description: string;
262
+ };
149
263
  };
150
264
  };
151
265
  };
152
266
  '/workflows:destroy': {
153
267
  post: {
154
268
  tags: string[];
269
+ summary: string;
155
270
  description: string;
156
271
  parameters: ({
157
272
  name: string;
@@ -159,7 +274,6 @@ declare const _default: {
159
274
  description: string;
160
275
  schema: {
161
276
  type: string;
162
- description: string;
163
277
  properties?: undefined;
164
278
  };
165
279
  } | {
@@ -174,7 +288,6 @@ declare const _default: {
174
288
  description: string;
175
289
  };
176
290
  };
177
- description?: undefined;
178
291
  };
179
292
  })[];
180
293
  responses: {
@@ -187,6 +300,7 @@ declare const _default: {
187
300
  '/workflows:revision': {
188
301
  post: {
189
302
  tags: string[];
303
+ summary: string;
190
304
  description: string;
191
305
  parameters: ({
192
306
  name: string;
@@ -194,7 +308,6 @@ declare const _default: {
194
308
  description: string;
195
309
  schema: {
196
310
  type: string;
197
- description: string;
198
311
  properties?: undefined;
199
312
  };
200
313
  } | {
@@ -209,19 +322,50 @@ declare const _default: {
209
322
  description: string;
210
323
  };
211
324
  };
212
- description?: undefined;
213
325
  };
214
326
  })[];
327
+ requestBody: {
328
+ content: {
329
+ 'application/json': {
330
+ schema: {
331
+ type: string;
332
+ description: string;
333
+ properties: {
334
+ title: {
335
+ type: string;
336
+ description: string;
337
+ };
338
+ enabled: {
339
+ type: string;
340
+ description: string;
341
+ };
342
+ current: {
343
+ type: string;
344
+ description: string;
345
+ };
346
+ };
347
+ };
348
+ };
349
+ };
350
+ };
215
351
  responses: {
216
352
  200: {
217
353
  description: string;
354
+ content: {
355
+ 'application/json': {
356
+ schema: {
357
+ $ref: string;
358
+ };
359
+ };
360
+ };
218
361
  };
219
362
  };
220
363
  };
221
364
  };
222
- '/workflows:trigger': {
365
+ '/workflows:sync': {
223
366
  post: {
224
367
  tags: string[];
368
+ summary: string;
225
369
  description: string;
226
370
  parameters: {
227
371
  name: string;
@@ -232,52 +376,511 @@ declare const _default: {
232
376
  };
233
377
  }[];
234
378
  responses: {
235
- 202: {
379
+ 204: {
380
+ description: string;
381
+ };
382
+ };
383
+ };
384
+ };
385
+ '/workflows:execute': {
386
+ post: {
387
+ tags: string[];
388
+ summary: string;
389
+ description: string;
390
+ parameters: ({
391
+ name: string;
392
+ in: string;
393
+ required: boolean;
394
+ description: string;
395
+ schema: {
396
+ type: string;
397
+ enum?: undefined;
398
+ };
399
+ } | {
400
+ name: string;
401
+ in: string;
402
+ description: string;
403
+ schema: {
404
+ type: string;
405
+ enum: number[];
406
+ };
407
+ required?: undefined;
408
+ })[];
409
+ requestBody: {
410
+ required: boolean;
411
+ content: {
412
+ 'application/json': {
413
+ schema: {
414
+ type: string;
415
+ description: string;
416
+ additionalProperties: boolean;
417
+ };
418
+ };
419
+ };
420
+ };
421
+ responses: {
422
+ 200: {
236
423
  description: string;
424
+ content: {
425
+ 'application/json': {
426
+ schema: {
427
+ type: string;
428
+ properties: {
429
+ execution: {
430
+ type: string;
431
+ properties: {
432
+ id: {
433
+ type: string;
434
+ description: string;
435
+ };
436
+ status: {
437
+ type: string;
438
+ description: string;
439
+ };
440
+ };
441
+ };
442
+ newVersionId: {
443
+ type: string;
444
+ nullable: boolean;
445
+ description: string;
446
+ };
447
+ };
448
+ };
449
+ };
450
+ };
237
451
  };
238
452
  400: {
239
453
  description: string;
240
454
  };
455
+ 404: {
456
+ description: string;
457
+ };
241
458
  };
242
459
  };
243
460
  };
244
461
  '/workflows/{workflowId}/nodes:create': {
245
462
  post: {
246
463
  tags: string[];
464
+ summary: string;
247
465
  description: string;
248
- parameters: any[];
466
+ parameters: {
467
+ name: string;
468
+ in: string;
469
+ required: boolean;
470
+ description: string;
471
+ schema: {
472
+ type: string;
473
+ };
474
+ }[];
249
475
  requestBody: {
250
476
  content: {
251
477
  'application/json': {
252
478
  schema: {
253
479
  type: string;
480
+ required: string[];
254
481
  properties: {
482
+ type: {
483
+ $ref: string;
484
+ };
255
485
  title: {
256
486
  $ref: string;
257
487
  };
258
- type: {
488
+ config: {
489
+ $ref: string;
490
+ };
491
+ upstreamId: {
492
+ $ref: string;
493
+ };
494
+ branchIndex: {
495
+ $ref: string;
496
+ };
497
+ };
498
+ };
499
+ };
500
+ };
501
+ };
502
+ responses: {
503
+ 200: {
504
+ description: string;
505
+ content: {
506
+ 'application/json': {
507
+ schema: {
508
+ allOf: {
509
+ $ref: string;
510
+ }[];
511
+ };
512
+ };
513
+ };
514
+ };
515
+ 400: {
516
+ description: string;
517
+ };
518
+ };
519
+ };
520
+ };
521
+ '/flow_nodes:get': {
522
+ get: {
523
+ tags: string[];
524
+ summary: string;
525
+ description: string;
526
+ parameters: ({
527
+ name: string;
528
+ in: string;
529
+ required: boolean;
530
+ description: string;
531
+ schema: {
532
+ type: string;
533
+ items?: undefined;
534
+ };
535
+ } | {
536
+ name: string;
537
+ in: string;
538
+ description: string;
539
+ schema: {
540
+ type: string;
541
+ items: {
542
+ type: string;
543
+ };
544
+ };
545
+ required?: undefined;
546
+ })[];
547
+ responses: {
548
+ 200: {
549
+ description: string;
550
+ content: {
551
+ 'application/json': {
552
+ schema: {
553
+ $ref: string;
554
+ };
555
+ };
556
+ };
557
+ };
558
+ };
559
+ };
560
+ };
561
+ '/flow_nodes:update': {
562
+ post: {
563
+ tags: string[];
564
+ summary: string;
565
+ description: string;
566
+ parameters: {
567
+ name: string;
568
+ in: string;
569
+ required: boolean;
570
+ description: string;
571
+ schema: {
572
+ type: string;
573
+ };
574
+ }[];
575
+ requestBody: {
576
+ content: {
577
+ 'application/json': {
578
+ schema: {
579
+ type: string;
580
+ properties: {
581
+ title: {
582
+ $ref: string;
583
+ };
584
+ config: {
259
585
  $ref: string;
260
586
  };
587
+ branchIndex: {
588
+ $ref: string;
589
+ };
590
+ updateAssociationValues: {
591
+ type: string;
592
+ description: string;
593
+ items: {
594
+ type: string;
595
+ };
596
+ };
597
+ };
598
+ };
599
+ };
600
+ };
601
+ };
602
+ responses: {
603
+ 200: {
604
+ description: string;
605
+ };
606
+ 400: {
607
+ description: string;
608
+ };
609
+ };
610
+ };
611
+ };
612
+ '/flow_nodes:destroy': {
613
+ post: {
614
+ tags: string[];
615
+ summary: string;
616
+ description: string;
617
+ parameters: ({
618
+ name: string;
619
+ in: string;
620
+ required: boolean;
621
+ description: string;
622
+ schema: {
623
+ type: string;
624
+ };
625
+ } | {
626
+ name: string;
627
+ in: string;
628
+ description: string;
629
+ schema: {
630
+ type: string;
631
+ };
632
+ required?: undefined;
633
+ })[];
634
+ responses: {
635
+ 200: {
636
+ description: string;
637
+ };
638
+ 400: {
639
+ description: string;
640
+ };
641
+ };
642
+ };
643
+ };
644
+ '/flow_nodes:destroyBranch': {
645
+ post: {
646
+ tags: string[];
647
+ summary: string;
648
+ description: string;
649
+ parameters: ({
650
+ name: string;
651
+ in: string;
652
+ required: boolean;
653
+ description: string;
654
+ schema: {
655
+ type: string;
656
+ enum?: undefined;
657
+ };
658
+ } | {
659
+ name: string;
660
+ in: string;
661
+ description: string;
662
+ schema: {
663
+ type: string;
664
+ enum: number[];
665
+ };
666
+ required?: undefined;
667
+ })[];
668
+ responses: {
669
+ 200: {
670
+ description: string;
671
+ };
672
+ 400: {
673
+ description: string;
674
+ };
675
+ };
676
+ };
677
+ };
678
+ '/flow_nodes:duplicate': {
679
+ post: {
680
+ tags: string[];
681
+ summary: string;
682
+ description: string;
683
+ parameters: {
684
+ name: string;
685
+ in: string;
686
+ required: boolean;
687
+ description: string;
688
+ schema: {
689
+ type: string;
690
+ };
691
+ }[];
692
+ requestBody: {
693
+ content: {
694
+ 'application/json': {
695
+ schema: {
696
+ type: string;
697
+ description: string;
698
+ properties: {
261
699
  upstreamId: {
262
700
  $ref: string;
263
701
  };
264
702
  branchIndex: {
265
703
  $ref: string;
266
704
  };
705
+ config: {
706
+ $ref: string;
707
+ };
708
+ };
709
+ };
710
+ };
711
+ };
712
+ };
713
+ responses: {
714
+ 200: {
715
+ description: string;
716
+ content: {
717
+ 'application/json': {
718
+ schema: {
719
+ $ref: string;
720
+ };
721
+ };
722
+ };
723
+ };
724
+ 400: {
725
+ description: string;
726
+ };
727
+ 404: {
728
+ description: string;
729
+ };
730
+ };
731
+ };
732
+ };
733
+ '/flow_nodes:move': {
734
+ post: {
735
+ tags: string[];
736
+ summary: string;
737
+ description: string;
738
+ parameters: {
739
+ name: string;
740
+ in: string;
741
+ required: boolean;
742
+ description: string;
743
+ schema: {
744
+ type: string;
745
+ };
746
+ }[];
747
+ requestBody: {
748
+ content: {
749
+ 'application/json': {
750
+ schema: {
751
+ type: string;
752
+ description: string;
753
+ properties: {
754
+ upstreamId: {
755
+ type: string;
756
+ nullable: boolean;
757
+ description: string;
758
+ };
759
+ branchIndex: {
760
+ type: string;
761
+ nullable: boolean;
762
+ description: string;
763
+ };
764
+ };
765
+ };
766
+ };
767
+ };
768
+ };
769
+ responses: {
770
+ 200: {
771
+ description: string;
772
+ content: {
773
+ 'application/json': {
774
+ schema: {
775
+ $ref: string;
776
+ };
777
+ };
778
+ };
779
+ };
780
+ 400: {
781
+ description: string;
782
+ };
783
+ 404: {
784
+ description: string;
785
+ };
786
+ };
787
+ };
788
+ };
789
+ '/flow_nodes:test': {
790
+ post: {
791
+ tags: string[];
792
+ summary: string;
793
+ description: string;
794
+ parameters: any[];
795
+ requestBody: {
796
+ required: boolean;
797
+ content: {
798
+ 'application/json': {
799
+ schema: {
800
+ type: string;
801
+ required: string[];
802
+ properties: {
803
+ type: {
804
+ $ref: string;
805
+ };
806
+ config: {
807
+ $ref: string;
808
+ };
267
809
  };
268
810
  };
269
811
  };
270
812
  };
271
- };
813
+ };
814
+ responses: {
815
+ 200: {
816
+ description: string;
817
+ content: {
818
+ 'application/json': {
819
+ schema: {
820
+ type: string;
821
+ };
822
+ };
823
+ };
824
+ };
825
+ 400: {
826
+ description: string;
827
+ };
828
+ 500: {
829
+ description: string;
830
+ };
831
+ };
832
+ };
833
+ };
834
+ '/executions:list': {
835
+ get: {
836
+ tags: string[];
837
+ summary: string;
838
+ description: string;
839
+ parameters: ({
840
+ name: string;
841
+ in: string;
842
+ description: string;
843
+ schema: {
844
+ type: string;
845
+ items?: undefined;
846
+ default?: undefined;
847
+ };
848
+ } | {
849
+ name: string;
850
+ in: string;
851
+ description: string;
852
+ schema: {
853
+ type: string;
854
+ items: {
855
+ type: string;
856
+ };
857
+ default?: undefined;
858
+ };
859
+ } | {
860
+ name: string;
861
+ in: string;
862
+ schema: {
863
+ type: string;
864
+ default: number;
865
+ items?: undefined;
866
+ };
867
+ description?: undefined;
868
+ })[];
272
869
  responses: {
273
870
  200: {
274
871
  description: string;
275
872
  content: {
276
873
  'application/json': {
277
874
  schema: {
278
- allOf: {
875
+ type: string;
876
+ description: string;
877
+ items: {
279
878
  $ref: string;
280
- }[];
879
+ type: string;
880
+ not: {
881
+ $ref: string;
882
+ };
883
+ };
281
884
  };
282
885
  };
283
886
  };
@@ -285,99 +888,84 @@ declare const _default: {
285
888
  };
286
889
  };
287
890
  };
288
- '/flow_nodes:update': {
289
- post: {
891
+ '/executions:get': {
892
+ get: {
290
893
  tags: string[];
894
+ summary: string;
291
895
  description: string;
292
- parameters: {
896
+ parameters: ({
293
897
  name: string;
294
898
  in: string;
899
+ required: boolean;
295
900
  description: string;
296
901
  schema: {
297
902
  type: string;
298
- description: string;
903
+ items?: undefined;
299
904
  };
300
- }[];
301
- requestBody: {
302
- content: {
303
- 'application/json': {
304
- schema: {
305
- type: string;
306
- properties: {
307
- title: {
308
- $ref: string;
309
- };
310
- config: {
311
- $ref: string;
312
- };
313
- };
314
- };
905
+ } | {
906
+ name: string;
907
+ in: string;
908
+ description: string;
909
+ schema: {
910
+ type: string;
911
+ items: {
912
+ type: string;
315
913
  };
316
914
  };
317
- };
915
+ required?: undefined;
916
+ })[];
318
917
  responses: {
319
918
  200: {
320
919
  description: string;
321
- };
322
- 400: {
323
- description: string;
920
+ content: {
921
+ 'application/json': {
922
+ schema: {
923
+ $ref: string;
924
+ };
925
+ };
926
+ };
324
927
  };
325
928
  };
326
929
  };
327
930
  };
328
- '/flow_nodes:destroy': {
931
+ '/executions:cancel': {
329
932
  post: {
330
933
  tags: string[];
934
+ summary: string;
331
935
  description: string;
332
936
  parameters: {
333
937
  name: string;
334
938
  in: string;
939
+ required: boolean;
335
940
  description: string;
336
941
  schema: {
337
942
  type: string;
338
- description: string;
339
943
  };
340
944
  }[];
341
- responses: {
342
- 200: {
343
- description: string;
344
- };
345
- 400: {
346
- description: string;
347
- };
348
- };
349
- };
350
- };
351
- '/executions:list': {
352
- get: {
353
- tags: string[];
354
- description: string;
355
- parameters: any[];
356
945
  responses: {
357
946
  200: {
358
947
  description: string;
359
948
  content: {
360
949
  'application/json': {
361
950
  schema: {
362
- type: string;
363
- description: string;
364
- items: {
365
- $ref: string;
366
- type: string;
367
- not: {
368
- $ref: string;
369
- };
370
- };
951
+ $ref: string;
371
952
  };
372
953
  };
373
954
  };
374
955
  };
956
+ 400: {
957
+ description: string;
958
+ };
959
+ 404: {
960
+ description: string;
961
+ };
375
962
  };
376
963
  };
377
964
  };
378
- '/executions:get': {
379
- get: {
965
+ '/executions:destroy': {
966
+ post: {
380
967
  tags: string[];
968
+ summary: string;
381
969
  description: string;
382
970
  parameters: {
383
971
  name: string;
@@ -385,28 +973,47 @@ declare const _default: {
385
973
  description: string;
386
974
  schema: {
387
975
  type: string;
388
- description: string;
389
976
  };
390
977
  }[];
391
978
  responses: {
392
979
  200: {
393
980
  description: string;
394
- content: {
395
- 'application/json': {
396
- schema: {
397
- $ref: string;
398
- };
399
- };
400
- };
401
981
  };
402
982
  };
403
983
  };
404
984
  };
405
- '/workflowManualTasks:list': {
985
+ '/jobs:list': {
406
986
  get: {
407
987
  tags: string[];
988
+ summary: string;
408
989
  description: string;
409
- parameters: any[];
990
+ parameters: ({
991
+ name: string;
992
+ in: string;
993
+ description: string;
994
+ schema: {
995
+ type: string;
996
+ items?: undefined;
997
+ };
998
+ } | {
999
+ name: string;
1000
+ in: string;
1001
+ description: string;
1002
+ schema: {
1003
+ type: string;
1004
+ items: {
1005
+ type: string;
1006
+ };
1007
+ };
1008
+ } | {
1009
+ name: string;
1010
+ in: string;
1011
+ schema: {
1012
+ type: string;
1013
+ items?: undefined;
1014
+ };
1015
+ description?: undefined;
1016
+ })[];
410
1017
  responses: {
411
1018
  200: {
412
1019
  description: string;
@@ -414,7 +1021,6 @@ declare const _default: {
414
1021
  'application/json': {
415
1022
  schema: {
416
1023
  type: string;
417
- description: string;
418
1024
  items: {
419
1025
  $ref: string;
420
1026
  };
@@ -425,30 +1031,39 @@ declare const _default: {
425
1031
  };
426
1032
  };
427
1033
  };
428
- '/workflowManualTasks:get': {
1034
+ '/jobs:get': {
429
1035
  get: {
430
1036
  tags: string[];
1037
+ summary: string;
431
1038
  description: string;
432
- parameters: any[];
1039
+ parameters: ({
1040
+ name: string;
1041
+ in: string;
1042
+ required: boolean;
1043
+ description: string;
1044
+ schema: {
1045
+ type: string;
1046
+ items?: undefined;
1047
+ };
1048
+ } | {
1049
+ name: string;
1050
+ in: string;
1051
+ description: string;
1052
+ schema: {
1053
+ type: string;
1054
+ items: {
1055
+ type: string;
1056
+ };
1057
+ };
1058
+ required?: undefined;
1059
+ })[];
433
1060
  responses: {
434
1061
  200: {
435
1062
  description: string;
436
1063
  content: {
437
1064
  'application/json': {
438
1065
  schema: {
439
- allOf: ({
440
- $ref: string;
441
- type?: undefined;
442
- properties?: undefined;
443
- } | {
444
- type: string;
445
- properties: {
446
- execution: {
447
- $ref: string;
448
- };
449
- };
450
- $ref?: undefined;
451
- })[];
1066
+ $ref: string;
452
1067
  };
453
1068
  };
454
1069
  };
@@ -456,17 +1071,18 @@ declare const _default: {
456
1071
  };
457
1072
  };
458
1073
  };
459
- '/workflowManualTasks:submit': {
1074
+ '/jobs:resume': {
460
1075
  post: {
461
1076
  tags: string[];
1077
+ summary: string;
462
1078
  description: string;
463
1079
  parameters: {
464
1080
  name: string;
465
1081
  in: string;
1082
+ required: boolean;
466
1083
  description: string;
467
1084
  schema: {
468
1085
  type: string;
469
- description: string;
470
1086
  };
471
1087
  }[];
472
1088
  requestBody: {
@@ -474,17 +1090,19 @@ declare const _default: {
474
1090
  'application/json': {
475
1091
  schema: {
476
1092
  type: string;
1093
+ description: string;
477
1094
  properties: {
1095
+ status: {
1096
+ type: string;
1097
+ description: string;
1098
+ };
478
1099
  result: {
479
1100
  type: string;
480
- properties: {
481
- $formKey: {
482
- type: string;
483
- };
484
- _: {
485
- type: string;
486
- };
487
- };
1101
+ description: string;
1102
+ };
1103
+ meta: {
1104
+ type: string;
1105
+ description: string;
488
1106
  };
489
1107
  };
490
1108
  };
@@ -494,9 +1112,65 @@ declare const _default: {
494
1112
  responses: {
495
1113
  202: {
496
1114
  description: string;
1115
+ content: {
1116
+ 'application/json': {
1117
+ schema: {
1118
+ $ref: string;
1119
+ };
1120
+ };
1121
+ };
1122
+ };
1123
+ 404: {
1124
+ description: string;
497
1125
  };
498
- 400: {
1126
+ };
1127
+ };
1128
+ };
1129
+ '/userWorkflowTasks:listMine': {
1130
+ get: {
1131
+ tags: string[];
1132
+ summary: string;
1133
+ description: string;
1134
+ parameters: ({
1135
+ name: string;
1136
+ in: string;
1137
+ description: string;
1138
+ schema: {
1139
+ type: string;
1140
+ items?: undefined;
1141
+ };
1142
+ } | {
1143
+ name: string;
1144
+ in: string;
1145
+ description: string;
1146
+ schema: {
1147
+ type: string;
1148
+ items: {
1149
+ type: string;
1150
+ };
1151
+ };
1152
+ } | {
1153
+ name: string;
1154
+ in: string;
1155
+ schema: {
1156
+ type: string;
1157
+ items?: undefined;
1158
+ };
1159
+ description?: undefined;
1160
+ })[];
1161
+ responses: {
1162
+ 200: {
499
1163
  description: string;
1164
+ content: {
1165
+ 'application/json': {
1166
+ schema: {
1167
+ type: string;
1168
+ items: {
1169
+ $ref: string;
1170
+ };
1171
+ };
1172
+ };
1173
+ };
500
1174
  };
501
1175
  };
502
1176
  };
@@ -525,6 +1199,10 @@ declare const _default: {
525
1199
  type: string;
526
1200
  description: string;
527
1201
  };
1202
+ triggerTitle: {
1203
+ type: string;
1204
+ description: string;
1205
+ };
528
1206
  current: {
529
1207
  type: string;
530
1208
  description: string;
@@ -537,10 +1215,39 @@ declare const _default: {
537
1215
  type: string;
538
1216
  description: string;
539
1217
  };
1218
+ sync: {
1219
+ type: string;
1220
+ description: string;
1221
+ };
540
1222
  config: {
541
1223
  type: string;
542
1224
  description: string;
543
1225
  };
1226
+ options: {
1227
+ type: string;
1228
+ description: string;
1229
+ properties: {
1230
+ deleteExecutionOnStatus: {
1231
+ type: string;
1232
+ description: string;
1233
+ items: {
1234
+ type: string;
1235
+ };
1236
+ };
1237
+ stackLimit: {
1238
+ type: string;
1239
+ description: string;
1240
+ default: number;
1241
+ };
1242
+ };
1243
+ };
1244
+ categories: {
1245
+ type: string;
1246
+ description: string;
1247
+ items: {
1248
+ type: string;
1249
+ };
1250
+ };
544
1251
  nodes: {
545
1252
  type: string;
546
1253
  description: string;
@@ -611,6 +1318,7 @@ declare const _default: {
611
1318
  };
612
1319
  upstreamId: {
613
1320
  type: string;
1321
+ nullable: boolean;
614
1322
  description: string;
615
1323
  };
616
1324
  upstream: {
@@ -620,8 +1328,8 @@ declare const _default: {
620
1328
  };
621
1329
  downstreamId: {
622
1330
  type: string;
1331
+ nullable: boolean;
623
1332
  description: string;
624
- $ref: string;
625
1333
  };
626
1334
  downstream: {
627
1335
  type: string;
@@ -638,6 +1346,7 @@ declare const _default: {
638
1346
  };
639
1347
  branchIndex: {
640
1348
  type: string;
1349
+ nullable: boolean;
641
1350
  description: string;
642
1351
  };
643
1352
  branches: {
@@ -673,6 +1382,10 @@ declare const _default: {
673
1382
  type: string;
674
1383
  description: string;
675
1384
  };
1385
+ output: {
1386
+ type: string;
1387
+ description: string;
1388
+ };
676
1389
  jobs: {
677
1390
  type: string;
678
1391
  description: string;
@@ -698,6 +1411,10 @@ declare const _default: {
698
1411
  type: string;
699
1412
  description: string;
700
1413
  };
1414
+ nodeKey: {
1415
+ type: string;
1416
+ description: string;
1417
+ };
701
1418
  status: {
702
1419
  type: string;
703
1420
  description: string;
@@ -706,6 +1423,10 @@ declare const _default: {
706
1423
  type: string;
707
1424
  description: string;
708
1425
  };
1426
+ meta: {
1427
+ type: string;
1428
+ description: string;
1429
+ };
709
1430
  };
710
1431
  };
711
1432
  user_job: {