@fluidgrids/workflows 2026.1027.0 → 2026.1028.1

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 (168) hide show
  1. package/README.md +170 -18
  2. package/dist/activation-BBh1p82z.d.cts +57 -0
  3. package/dist/activation-DnhG7SmF.d.ts +57 -0
  4. package/dist/assemble-BLqQ8lSu.d.cts +39 -0
  5. package/dist/assemble-DWgaXHd-.d.ts +39 -0
  6. package/dist/chunk-2DP2Y6EU.cjs +832 -0
  7. package/dist/chunk-2J6TF7YI.cjs +86 -0
  8. package/dist/chunk-3FOTFQ3J.js +1622 -0
  9. package/dist/chunk-4LYSEANA.js +199 -0
  10. package/dist/{chunk-KUTMY2IO.cjs → chunk-57MSZ24T.cjs} +162 -98
  11. package/dist/{chunk-BWSLWF2E.js → chunk-5HDSBTBX.js} +99 -32
  12. package/dist/chunk-623FVQSN.cjs +251 -0
  13. package/dist/{chunk-4DPEGDPW.js → chunk-6FSHT5IL.js} +4 -4
  14. package/dist/{chunk-REV7ZOA4.js → chunk-7AAZGVKD.js} +1 -35
  15. package/dist/chunk-7NQ37GZU.js +73 -0
  16. package/dist/chunk-ABFZWYHT.js +612 -0
  17. package/dist/{chunk-SS4LT2IP.js → chunk-BD7ZPG53.js} +5 -10
  18. package/dist/chunk-BO6OVILK.js +79 -0
  19. package/dist/chunk-C5OLWZ42.js +245 -0
  20. package/dist/chunk-CBL5JSCC.cjs +75 -0
  21. package/dist/{chunk-LSKSBVL4.cjs → chunk-CPDK3K5N.cjs} +6 -6
  22. package/dist/chunk-CSNWNFKU.cjs +1635 -0
  23. package/dist/chunk-DJYMDLV5.js +227 -0
  24. package/dist/{chunk-X4HKU3MX.js → chunk-E2VK7J2C.js} +3 -1
  25. package/dist/chunk-FMSW2HDF.cjs +267 -0
  26. package/dist/chunk-FQIHX7YI.cjs +80 -0
  27. package/dist/chunk-FR7KYWRO.cjs +41 -0
  28. package/dist/{chunk-AU3YW7FZ.cjs → chunk-GBQ33SIZ.cjs} +46 -51
  29. package/dist/{chunk-RRQ5HOBF.cjs → chunk-GVTZMA5C.cjs} +4 -4
  30. package/dist/chunk-H7KEVW2M.js +816 -0
  31. package/dist/chunk-HR3BN4C4.cjs +27 -0
  32. package/dist/chunk-IISBRUWJ.js +13 -0
  33. package/dist/chunk-JD2VQIDZ.cjs +15 -0
  34. package/dist/{chunk-PL73GJR4.js → chunk-JZ4TOOLN.js} +1 -1
  35. package/dist/chunk-L24YIZY7.cjs +207 -0
  36. package/dist/chunk-LNUQE6D6.js +39 -0
  37. package/dist/{chunk-BYJ7QTLY.cjs → chunk-NEIUQASE.cjs} +13 -13
  38. package/dist/chunk-P6TA5EZT.cjs +634 -0
  39. package/dist/chunk-PDHLTDZB.js +72 -0
  40. package/dist/chunk-PMCM2OH4.js +46 -0
  41. package/dist/chunk-PZCVF76Q.cjs +868 -0
  42. package/dist/{chunk-GO34UHSY.js → chunk-QAN5MZEM.js} +3 -3
  43. package/dist/{chunk-27HASETB.cjs → chunk-QKZL3ONM.cjs} +3 -1
  44. package/dist/chunk-SAENRNBJ.cjs +52 -0
  45. package/dist/{chunk-LMX35GNQ.js → chunk-SMCANK3F.js} +5 -4
  46. package/dist/{chunk-IZQNUNSU.cjs → chunk-SX2PNKKT.cjs} +18 -17
  47. package/dist/{chunk-LRM6JXJA.cjs → chunk-TBDXTV22.cjs} +0 -37
  48. package/dist/chunk-VOKMAAJP.js +848 -0
  49. package/dist/chunk-XB53G2DK.js +25 -0
  50. package/dist/chunk-Z2Y65YOY.cjs +7 -0
  51. package/dist/codegen/index.cjs +9 -7
  52. package/dist/codegen/index.d.cts +2 -2
  53. package/dist/codegen/index.d.ts +2 -2
  54. package/dist/codegen/index.js +6 -5
  55. package/dist/file-BOoHZgoQ.d.cts +1557 -0
  56. package/dist/file-yuPCFU5b.d.ts +1557 -0
  57. package/dist/history/index.cjs +287 -0
  58. package/dist/history/index.d.cts +157 -0
  59. package/dist/history/index.d.ts +157 -0
  60. package/dist/history/index.js +5 -0
  61. package/dist/index.cjs +134 -36
  62. package/dist/index.d.cts +137 -9
  63. package/dist/index.d.ts +137 -9
  64. package/dist/index.js +8 -3
  65. package/dist/ir/index.cjs +161 -165
  66. package/dist/ir/index.d.cts +32 -12
  67. package/dist/ir/index.d.ts +32 -12
  68. package/dist/ir/index.js +54 -61
  69. package/dist/lower-BuSvAFqi.d.cts +129 -0
  70. package/dist/lower-C_Qv_34S.d.ts +129 -0
  71. package/dist/lower-types-nofRXw9c.d.cts +15 -0
  72. package/dist/lower-types-nofRXw9c.d.ts +15 -0
  73. package/dist/{manifest-Duf-gHdO.d.cts → manifest-0OLw0i7k.d.cts} +1 -1
  74. package/dist/{manifest-Bp9ZJlav.d.ts → manifest-C8N6HDYl.d.ts} +1 -1
  75. package/dist/node-evaluator-CJNP4GHX.js +12 -0
  76. package/dist/node-evaluator-DMKPKUWA.cjs +22 -0
  77. package/dist/quickjs/index.cjs +256 -78
  78. package/dist/quickjs/index.d.cts +48 -7
  79. package/dist/quickjs/index.d.ts +48 -7
  80. package/dist/quickjs/index.js +254 -79
  81. package/dist/roundtrip/index.cjs +404 -129
  82. package/dist/roundtrip/index.d.cts +43 -8
  83. package/dist/roundtrip/index.d.ts +43 -8
  84. package/dist/roundtrip/index.js +260 -19
  85. package/dist/runtime/index.cjs +90 -0
  86. package/dist/runtime/index.d.cts +297 -0
  87. package/dist/runtime/index.d.ts +297 -0
  88. package/dist/runtime/index.js +8 -0
  89. package/dist/testing/index.cjs +1057 -0
  90. package/dist/testing/index.d.cts +305 -0
  91. package/dist/testing/index.d.ts +305 -0
  92. package/dist/testing/index.js +1037 -0
  93. package/dist/{types-Dr2Fn1Ax.d.ts → types-BGoPzgcl.d.cts} +1 -1
  94. package/dist/{types-Dr2Fn1Ax.d.cts → types-BGoPzgcl.d.ts} +1 -1
  95. package/dist/types-CpBBjaGX.d.cts +380 -0
  96. package/dist/types-DV-HX_Gt.d.ts +380 -0
  97. package/dist/{assemble-DMOuaxRI.d.ts → workflow-Bpr3vnA_.d.ts} +60 -162
  98. package/dist/workflow-C2a05WUJ.d.ts +444 -0
  99. package/dist/{assemble-BJo9TECS.d.cts → workflow-FXUkpIBc.d.cts} +60 -162
  100. package/dist/workflow-J-yYixny.d.cts +444 -0
  101. package/fixtures/README.md +128 -0
  102. package/fixtures/histories/activity-failure-fails-run.history.json +163 -0
  103. package/fixtures/histories/activity-retry-then-success.history.json +147 -0
  104. package/fixtures/histories/cancel-activity-abandon.history.json +126 -0
  105. package/fixtures/histories/cancel-activity-compensate.history.json +307 -0
  106. package/fixtures/histories/cancel-concurrent-non-cancellable.history.json +234 -0
  107. package/fixtures/histories/cancel-concurrent-scope-timeout.history.json +184 -0
  108. package/fixtures/histories/cancel-condition-after-cancel.history.json +200 -0
  109. package/fixtures/histories/cancel-during-timer.history.json +123 -0
  110. package/fixtures/histories/cancel-saga-compensations.history.json +325 -0
  111. package/fixtures/histories/cancel-scope-timeout.history.json +148 -0
  112. package/fixtures/histories/child-abandon-outlives-parent.history.json +191 -0
  113. package/fixtures/histories/child-cancel-default.history.json +234 -0
  114. package/fixtures/histories/child-cancel-request.history.json +206 -0
  115. package/fixtures/histories/child-durable-child-side.history.json +124 -0
  116. package/fixtures/histories/child-durable-result.history.json +163 -0
  117. package/fixtures/histories/child-failure-caught.history.json +166 -0
  118. package/fixtures/histories/child-graph-by-key.history.json +138 -0
  119. package/fixtures/histories/child-terminated-by-parent-close.history.json +85 -0
  120. package/fixtures/histories/continue-as-new-first-run.history.json +146 -0
  121. package/fixtures/histories/continue-as-new-history-limit.history.json +489 -0
  122. package/fixtures/histories/continue-as-new-last-run.history.json +147 -0
  123. package/fixtures/histories/continue-as-new-suggested.history.json +352 -0
  124. package/fixtures/histories/details-and-context.history.json +176 -0
  125. package/fixtures/histories/deterministic-values.history.json +128 -0
  126. package/fixtures/histories/engine-builtins.history.json +172 -0
  127. package/fixtures/histories/gather-activities.history.json +291 -0
  128. package/fixtures/histories/gather-all-settled.history.json +219 -0
  129. package/fixtures/histories/gather-mixed.history.json +281 -0
  130. package/fixtures/histories/input-during-running-task.history.json +111 -0
  131. package/fixtures/histories/nondeterminism-reordered.history.json +218 -0
  132. package/fixtures/histories/patched-deprecated.history.json +271 -0
  133. package/fixtures/histories/patched-new-run.history.json +270 -0
  134. package/fixtures/histories/patched-old-history.history.json +190 -0
  135. package/fixtures/histories/race-activity-wins.history.json +152 -0
  136. package/fixtures/histories/race-signal-beats-child.history.json +161 -0
  137. package/fixtures/histories/race-timeout-wins.history.json +118 -0
  138. package/fixtures/histories/side-effect-recorded.history.json +153 -0
  139. package/fixtures/histories/signal-buffered-at-start.history.json +157 -0
  140. package/fixtures/histories/signal-default-handler.history.json +187 -0
  141. package/fixtures/histories/signal-handler.history.json +191 -0
  142. package/fixtures/histories/signal-parent-child-side.history.json +132 -0
  143. package/fixtures/histories/signal-parent.history.json +202 -0
  144. package/fixtures/histories/signal-run-delivered.history.json +128 -0
  145. package/fixtures/histories/signal-run-undelivered.history.json +134 -0
  146. package/fixtures/histories/signal-wait.history.json +111 -0
  147. package/fixtures/histories/task-failure-code-error.history.json +137 -0
  148. package/fixtures/histories/task-failure-then-transient-attempt.history.json +140 -0
  149. package/fixtures/histories/timer-condition-met.history.json +201 -0
  150. package/fixtures/histories/timer-condition-timeout.history.json +118 -0
  151. package/fixtures/histories/timer-sleep-once.history.json +118 -0
  152. package/fixtures/histories/timer-sleep-sequence.history.json +210 -0
  153. package/fixtures/histories/update-accepted-completed.history.json +149 -0
  154. package/fixtures/histories/update-with-start-rejected-validation.history.json +91 -0
  155. package/package.json +85 -20
  156. package/schema/history-file.schema.json +2544 -0
  157. package/schema/ir-v2.schema.json +16 -0
  158. package/schema/run-event.schema.json +2374 -0
  159. package/schema/workflow-command.schema.json +1095 -0
  160. package/schema/workflow-task.schema.json +3560 -0
  161. package/dist/chunk-265J2FCH.cjs +0 -33
  162. package/dist/chunk-LUXCXFOE.cjs +0 -269
  163. package/dist/chunk-S34NJE3A.js +0 -262
  164. package/dist/chunk-SRQRLWOS.js +0 -31
  165. package/dist/lower-DcOY8ux0.d.cts +0 -49
  166. package/dist/lower-Dw5grNrI.d.ts +0 -49
  167. package/dist/node-evaluator-2GTUZVPK.cjs +0 -17
  168. package/dist/node-evaluator-RMYEWCXZ.js +0 -8
@@ -0,0 +1,1095 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://docs.fluidgrids.ai/schemas/workflow-command.schema.json",
4
+ "title": "FluidGrids workflow-task command",
5
+ "description": "A flat object discriminated by an UPPER_SNAKE type. Commands travel as [JSON!]! (DB4). UPSERT_SEARCH_ATTRIBUTES, ACCEPT_UPDATE, REJECT_UPDATE and COMPLETE_UPDATE are defined but refused in Phase B.",
6
+ "type": "object",
7
+ "required": [
8
+ "type"
9
+ ],
10
+ "properties": {
11
+ "type": {
12
+ "enum": [
13
+ "SCHEDULE_ACTIVITY",
14
+ "REQUEST_CANCEL_ACTIVITY",
15
+ "START_TIMER",
16
+ "CANCEL_TIMER",
17
+ "START_CHILD_RUN",
18
+ "SIGNAL_RUN",
19
+ "RECORD_SIDE_EFFECT",
20
+ "RECORD_MARKER",
21
+ "COMPLETE_WORKFLOW",
22
+ "FAIL_WORKFLOW",
23
+ "CANCEL_WORKFLOW",
24
+ "UPSERT_CONTEXT",
25
+ "RECORD_LOCAL_ACTIVITY",
26
+ "CONTINUE_AS_NEW",
27
+ "REQUEST_CANCEL_EXTERNAL_RUN",
28
+ "UPSERT_SEARCH_ATTRIBUTES",
29
+ "ACCEPT_UPDATE",
30
+ "REJECT_UPDATE",
31
+ "COMPLETE_UPDATE"
32
+ ]
33
+ }
34
+ },
35
+ "allOf": [
36
+ {
37
+ "if": {
38
+ "properties": {
39
+ "type": {
40
+ "const": "SCHEDULE_ACTIVITY"
41
+ }
42
+ },
43
+ "required": [
44
+ "type"
45
+ ]
46
+ },
47
+ "then": {
48
+ "$ref": "#/$defs/command_SCHEDULE_ACTIVITY"
49
+ }
50
+ },
51
+ {
52
+ "if": {
53
+ "properties": {
54
+ "type": {
55
+ "const": "REQUEST_CANCEL_ACTIVITY"
56
+ }
57
+ },
58
+ "required": [
59
+ "type"
60
+ ]
61
+ },
62
+ "then": {
63
+ "$ref": "#/$defs/command_REQUEST_CANCEL_ACTIVITY"
64
+ }
65
+ },
66
+ {
67
+ "if": {
68
+ "properties": {
69
+ "type": {
70
+ "const": "START_TIMER"
71
+ }
72
+ },
73
+ "required": [
74
+ "type"
75
+ ]
76
+ },
77
+ "then": {
78
+ "$ref": "#/$defs/command_START_TIMER"
79
+ }
80
+ },
81
+ {
82
+ "if": {
83
+ "properties": {
84
+ "type": {
85
+ "const": "CANCEL_TIMER"
86
+ }
87
+ },
88
+ "required": [
89
+ "type"
90
+ ]
91
+ },
92
+ "then": {
93
+ "$ref": "#/$defs/command_CANCEL_TIMER"
94
+ }
95
+ },
96
+ {
97
+ "if": {
98
+ "properties": {
99
+ "type": {
100
+ "const": "START_CHILD_RUN"
101
+ }
102
+ },
103
+ "required": [
104
+ "type"
105
+ ]
106
+ },
107
+ "then": {
108
+ "$ref": "#/$defs/command_START_CHILD_RUN"
109
+ }
110
+ },
111
+ {
112
+ "if": {
113
+ "properties": {
114
+ "type": {
115
+ "const": "SIGNAL_RUN"
116
+ }
117
+ },
118
+ "required": [
119
+ "type"
120
+ ]
121
+ },
122
+ "then": {
123
+ "$ref": "#/$defs/command_SIGNAL_RUN"
124
+ }
125
+ },
126
+ {
127
+ "if": {
128
+ "properties": {
129
+ "type": {
130
+ "const": "RECORD_SIDE_EFFECT"
131
+ }
132
+ },
133
+ "required": [
134
+ "type"
135
+ ]
136
+ },
137
+ "then": {
138
+ "$ref": "#/$defs/command_RECORD_SIDE_EFFECT"
139
+ }
140
+ },
141
+ {
142
+ "if": {
143
+ "properties": {
144
+ "type": {
145
+ "const": "RECORD_MARKER"
146
+ }
147
+ },
148
+ "required": [
149
+ "type"
150
+ ]
151
+ },
152
+ "then": {
153
+ "$ref": "#/$defs/command_RECORD_MARKER"
154
+ }
155
+ },
156
+ {
157
+ "if": {
158
+ "properties": {
159
+ "type": {
160
+ "const": "COMPLETE_WORKFLOW"
161
+ }
162
+ },
163
+ "required": [
164
+ "type"
165
+ ]
166
+ },
167
+ "then": {
168
+ "$ref": "#/$defs/command_COMPLETE_WORKFLOW"
169
+ }
170
+ },
171
+ {
172
+ "if": {
173
+ "properties": {
174
+ "type": {
175
+ "const": "FAIL_WORKFLOW"
176
+ }
177
+ },
178
+ "required": [
179
+ "type"
180
+ ]
181
+ },
182
+ "then": {
183
+ "$ref": "#/$defs/command_FAIL_WORKFLOW"
184
+ }
185
+ },
186
+ {
187
+ "if": {
188
+ "properties": {
189
+ "type": {
190
+ "const": "CANCEL_WORKFLOW"
191
+ }
192
+ },
193
+ "required": [
194
+ "type"
195
+ ]
196
+ },
197
+ "then": {
198
+ "$ref": "#/$defs/command_CANCEL_WORKFLOW"
199
+ }
200
+ },
201
+ {
202
+ "if": {
203
+ "properties": {
204
+ "type": {
205
+ "const": "UPSERT_CONTEXT"
206
+ }
207
+ },
208
+ "required": [
209
+ "type"
210
+ ]
211
+ },
212
+ "then": {
213
+ "$ref": "#/$defs/command_UPSERT_CONTEXT"
214
+ }
215
+ },
216
+ {
217
+ "if": {
218
+ "properties": {
219
+ "type": {
220
+ "const": "RECORD_LOCAL_ACTIVITY"
221
+ }
222
+ },
223
+ "required": [
224
+ "type"
225
+ ]
226
+ },
227
+ "then": {
228
+ "$ref": "#/$defs/command_RECORD_LOCAL_ACTIVITY"
229
+ }
230
+ },
231
+ {
232
+ "if": {
233
+ "properties": {
234
+ "type": {
235
+ "const": "CONTINUE_AS_NEW"
236
+ }
237
+ },
238
+ "required": [
239
+ "type"
240
+ ]
241
+ },
242
+ "then": {
243
+ "$ref": "#/$defs/command_CONTINUE_AS_NEW"
244
+ }
245
+ },
246
+ {
247
+ "if": {
248
+ "properties": {
249
+ "type": {
250
+ "const": "REQUEST_CANCEL_EXTERNAL_RUN"
251
+ }
252
+ },
253
+ "required": [
254
+ "type"
255
+ ]
256
+ },
257
+ "then": {
258
+ "$ref": "#/$defs/command_REQUEST_CANCEL_EXTERNAL_RUN"
259
+ }
260
+ },
261
+ {
262
+ "if": {
263
+ "properties": {
264
+ "type": {
265
+ "const": "UPSERT_SEARCH_ATTRIBUTES"
266
+ }
267
+ },
268
+ "required": [
269
+ "type"
270
+ ]
271
+ },
272
+ "then": {
273
+ "$ref": "#/$defs/command_UPSERT_SEARCH_ATTRIBUTES"
274
+ }
275
+ },
276
+ {
277
+ "if": {
278
+ "properties": {
279
+ "type": {
280
+ "const": "ACCEPT_UPDATE"
281
+ }
282
+ },
283
+ "required": [
284
+ "type"
285
+ ]
286
+ },
287
+ "then": {
288
+ "$ref": "#/$defs/command_ACCEPT_UPDATE"
289
+ }
290
+ },
291
+ {
292
+ "if": {
293
+ "properties": {
294
+ "type": {
295
+ "const": "REJECT_UPDATE"
296
+ }
297
+ },
298
+ "required": [
299
+ "type"
300
+ ]
301
+ },
302
+ "then": {
303
+ "$ref": "#/$defs/command_REJECT_UPDATE"
304
+ }
305
+ },
306
+ {
307
+ "if": {
308
+ "properties": {
309
+ "type": {
310
+ "const": "COMPLETE_UPDATE"
311
+ }
312
+ },
313
+ "required": [
314
+ "type"
315
+ ]
316
+ },
317
+ "then": {
318
+ "$ref": "#/$defs/command_COMPLETE_UPDATE"
319
+ }
320
+ }
321
+ ],
322
+ "$defs": {
323
+ "json": {
324
+ "description": "Any JSON value."
325
+ },
326
+ "failure": {
327
+ "type": "object",
328
+ "required": [
329
+ "errorType",
330
+ "message"
331
+ ],
332
+ "properties": {
333
+ "errorType": {
334
+ "enum": [
335
+ "TIMEOUT",
336
+ "TRANSIENT",
337
+ "DEPENDENCY",
338
+ "AUTHORIZATION",
339
+ "VALIDATION",
340
+ "PERMANENT",
341
+ "UNKNOWN"
342
+ ]
343
+ },
344
+ "message": {
345
+ "type": "string"
346
+ },
347
+ "type": {
348
+ "type": "string"
349
+ },
350
+ "details": {},
351
+ "nonRetryable": {
352
+ "type": "boolean"
353
+ },
354
+ "nextRetryDelayMs": {
355
+ "type": "integer",
356
+ "minimum": 0
357
+ },
358
+ "category": {
359
+ "const": "BENIGN"
360
+ },
361
+ "timeoutType": {
362
+ "type": "string"
363
+ },
364
+ "cause": {
365
+ "$ref": "#/$defs/failure"
366
+ },
367
+ "stackTrace": {
368
+ "type": "string"
369
+ },
370
+ "source": {
371
+ "type": "string"
372
+ }
373
+ },
374
+ "additionalProperties": false
375
+ },
376
+ "retryPolicy": {
377
+ "type": "object",
378
+ "required": [
379
+ "retryDelay"
380
+ ],
381
+ "description": "maxRetries absent means unlimited attempts, bounded by scheduleToCloseTimeout.",
382
+ "properties": {
383
+ "maxRetries": {
384
+ "type": "integer",
385
+ "minimum": 0
386
+ },
387
+ "retryDelay": {
388
+ "type": "integer",
389
+ "minimum": 0
390
+ },
391
+ "backoffMultiplier": {
392
+ "type": "number",
393
+ "minimum": 1
394
+ },
395
+ "maxDelay": {
396
+ "type": "integer",
397
+ "minimum": 0
398
+ },
399
+ "retryOnErrorTypes": {
400
+ "type": "array",
401
+ "items": {
402
+ "enum": [
403
+ "TIMEOUT",
404
+ "TRANSIENT",
405
+ "DEPENDENCY",
406
+ "AUTHORIZATION",
407
+ "VALIDATION",
408
+ "PERMANENT",
409
+ "UNKNOWN"
410
+ ]
411
+ }
412
+ },
413
+ "nonRetryableErrorTypes": {
414
+ "type": "array",
415
+ "items": {
416
+ "type": "string"
417
+ }
418
+ }
419
+ },
420
+ "additionalProperties": false
421
+ },
422
+ "runTarget": {
423
+ "oneOf": [
424
+ {
425
+ "type": "object",
426
+ "required": [
427
+ "runId"
428
+ ],
429
+ "properties": {
430
+ "runId": {
431
+ "type": "string",
432
+ "minLength": 1,
433
+ "maxLength": 256
434
+ }
435
+ },
436
+ "additionalProperties": false
437
+ },
438
+ {
439
+ "type": "object",
440
+ "required": [
441
+ "parent"
442
+ ],
443
+ "properties": {
444
+ "parent": {
445
+ "const": true
446
+ }
447
+ },
448
+ "additionalProperties": false
449
+ },
450
+ {
451
+ "type": "object",
452
+ "required": [
453
+ "childId"
454
+ ],
455
+ "properties": {
456
+ "childId": {
457
+ "type": "string",
458
+ "minLength": 1,
459
+ "maxLength": 256
460
+ }
461
+ },
462
+ "additionalProperties": false
463
+ },
464
+ {
465
+ "type": "object",
466
+ "required": [
467
+ "workflowKey",
468
+ "workflowId"
469
+ ],
470
+ "properties": {
471
+ "workflowKey": {
472
+ "type": "string",
473
+ "minLength": 1,
474
+ "maxLength": 256
475
+ },
476
+ "workflowId": {
477
+ "type": "string",
478
+ "minLength": 1,
479
+ "maxLength": 256
480
+ }
481
+ },
482
+ "additionalProperties": false
483
+ }
484
+ ]
485
+ },
486
+ "childOptions": {
487
+ "type": "object",
488
+ "required": [
489
+ "parentClosePolicy"
490
+ ],
491
+ "properties": {
492
+ "parentClosePolicy": {
493
+ "enum": [
494
+ "TERMINATE",
495
+ "ABANDON",
496
+ "REQUEST_CANCEL"
497
+ ]
498
+ },
499
+ "cancellationType": {
500
+ "enum": [
501
+ "WAIT_CANCELLATION_COMPLETED",
502
+ "WAIT_CANCELLATION_REQUESTED",
503
+ "TRY_CANCEL",
504
+ "ABANDON"
505
+ ]
506
+ },
507
+ "taskQueue": {
508
+ "type": "string",
509
+ "minLength": 1,
510
+ "maxLength": 256
511
+ },
512
+ "workflowId": {
513
+ "type": "string",
514
+ "minLength": 1,
515
+ "maxLength": 256
516
+ },
517
+ "priority": {
518
+ "type": "integer",
519
+ "minimum": 1,
520
+ "maximum": 5
521
+ },
522
+ "summary": {
523
+ "type": "string",
524
+ "maxLength": 200
525
+ },
526
+ "details": {
527
+ "type": "string"
528
+ },
529
+ "context": {
530
+ "type": "object"
531
+ },
532
+ "executionTimeout": {
533
+ "type": "integer",
534
+ "minimum": 0
535
+ },
536
+ "runTimeout": {
537
+ "type": "integer",
538
+ "minimum": 0
539
+ },
540
+ "workflowTaskTimeout": {
541
+ "type": "integer",
542
+ "minimum": 0
543
+ },
544
+ "startDelay": {
545
+ "type": "integer",
546
+ "minimum": 0
547
+ }
548
+ }
549
+ },
550
+ "headers": {
551
+ "type": "object",
552
+ "additionalProperties": {
553
+ "type": "string"
554
+ }
555
+ },
556
+ "command_SCHEDULE_ACTIVITY": {
557
+ "type": "object",
558
+ "required": [
559
+ "type",
560
+ "activityId",
561
+ "kind",
562
+ "nodeType",
563
+ "operation",
564
+ "args",
565
+ "retry"
566
+ ],
567
+ "properties": {
568
+ "type": {
569
+ "const": "SCHEDULE_ACTIVITY"
570
+ },
571
+ "headers": {
572
+ "$ref": "#/$defs/headers"
573
+ },
574
+ "activityId": {
575
+ "type": "string",
576
+ "minLength": 1,
577
+ "maxLength": 256
578
+ },
579
+ "kind": {
580
+ "const": "node"
581
+ },
582
+ "nodeType": {
583
+ "type": "string",
584
+ "minLength": 1,
585
+ "maxLength": 256
586
+ },
587
+ "nodeVersion": {
588
+ "type": "string"
589
+ },
590
+ "operation": {
591
+ "type": "string",
592
+ "minLength": 1,
593
+ "maxLength": 256
594
+ },
595
+ "args": {},
596
+ "connection": {
597
+ "type": "string",
598
+ "minLength": 1,
599
+ "maxLength": 256
600
+ },
601
+ "retry": {
602
+ "$ref": "#/$defs/retryPolicy"
603
+ },
604
+ "startToCloseTimeout": {
605
+ "type": "integer",
606
+ "minimum": 0
607
+ },
608
+ "scheduleToCloseTimeout": {
609
+ "type": "integer",
610
+ "minimum": 0
611
+ },
612
+ "scheduleToStartTimeout": {
613
+ "type": "integer",
614
+ "minimum": 0
615
+ },
616
+ "heartbeatTimeout": {
617
+ "type": "integer",
618
+ "minimum": 0
619
+ },
620
+ "cancellationType": {
621
+ "enum": [
622
+ "WAIT_CANCELLATION_COMPLETED",
623
+ "TRY_CANCEL",
624
+ "ABANDON"
625
+ ]
626
+ },
627
+ "priority": {
628
+ "type": "integer",
629
+ "minimum": 1,
630
+ "maximum": 5
631
+ },
632
+ "summary": {
633
+ "type": "string",
634
+ "maxLength": 200
635
+ },
636
+ "runOn": {
637
+ "type": "string"
638
+ }
639
+ },
640
+ "additionalProperties": false
641
+ },
642
+ "command_REQUEST_CANCEL_ACTIVITY": {
643
+ "type": "object",
644
+ "required": [
645
+ "type",
646
+ "activityId"
647
+ ],
648
+ "properties": {
649
+ "type": {
650
+ "const": "REQUEST_CANCEL_ACTIVITY"
651
+ },
652
+ "headers": {
653
+ "$ref": "#/$defs/headers"
654
+ },
655
+ "activityId": {
656
+ "type": "string",
657
+ "minLength": 1,
658
+ "maxLength": 256
659
+ }
660
+ },
661
+ "additionalProperties": false
662
+ },
663
+ "command_START_TIMER": {
664
+ "type": "object",
665
+ "required": [
666
+ "type",
667
+ "timerId",
668
+ "durationMs"
669
+ ],
670
+ "properties": {
671
+ "type": {
672
+ "const": "START_TIMER"
673
+ },
674
+ "headers": {
675
+ "$ref": "#/$defs/headers"
676
+ },
677
+ "timerId": {
678
+ "type": "string",
679
+ "minLength": 1,
680
+ "maxLength": 256
681
+ },
682
+ "durationMs": {
683
+ "type": "integer",
684
+ "minimum": 1
685
+ },
686
+ "summary": {
687
+ "type": "string",
688
+ "maxLength": 200
689
+ }
690
+ },
691
+ "additionalProperties": false
692
+ },
693
+ "command_CANCEL_TIMER": {
694
+ "type": "object",
695
+ "required": [
696
+ "type",
697
+ "timerId"
698
+ ],
699
+ "properties": {
700
+ "type": {
701
+ "const": "CANCEL_TIMER"
702
+ },
703
+ "headers": {
704
+ "$ref": "#/$defs/headers"
705
+ },
706
+ "timerId": {
707
+ "type": "string",
708
+ "minLength": 1,
709
+ "maxLength": 256
710
+ }
711
+ },
712
+ "additionalProperties": false
713
+ },
714
+ "command_START_CHILD_RUN": {
715
+ "type": "object",
716
+ "required": [
717
+ "type",
718
+ "childId",
719
+ "input",
720
+ "options"
721
+ ],
722
+ "properties": {
723
+ "type": {
724
+ "const": "START_CHILD_RUN"
725
+ },
726
+ "headers": {
727
+ "$ref": "#/$defs/headers"
728
+ },
729
+ "childId": {
730
+ "type": "string",
731
+ "minLength": 1,
732
+ "maxLength": 256
733
+ },
734
+ "workflowKey": {
735
+ "type": "string",
736
+ "minLength": 1,
737
+ "maxLength": 256
738
+ },
739
+ "workflowFn": {
740
+ "type": "string",
741
+ "minLength": 1,
742
+ "maxLength": 256
743
+ },
744
+ "version": {
745
+ "type": "string",
746
+ "minLength": 1
747
+ },
748
+ "input": {},
749
+ "options": {
750
+ "$ref": "#/$defs/childOptions"
751
+ }
752
+ },
753
+ "additionalProperties": false,
754
+ "oneOf": [
755
+ {
756
+ "required": [
757
+ "workflowKey"
758
+ ]
759
+ },
760
+ {
761
+ "required": [
762
+ "workflowFn"
763
+ ]
764
+ }
765
+ ]
766
+ },
767
+ "command_SIGNAL_RUN": {
768
+ "type": "object",
769
+ "required": [
770
+ "type",
771
+ "externalId",
772
+ "target",
773
+ "name",
774
+ "payload"
775
+ ],
776
+ "properties": {
777
+ "type": {
778
+ "const": "SIGNAL_RUN"
779
+ },
780
+ "headers": {
781
+ "$ref": "#/$defs/headers"
782
+ },
783
+ "externalId": {
784
+ "type": "string",
785
+ "minLength": 1,
786
+ "maxLength": 256
787
+ },
788
+ "target": {
789
+ "$ref": "#/$defs/runTarget"
790
+ },
791
+ "name": {
792
+ "type": "string",
793
+ "minLength": 1,
794
+ "maxLength": 256
795
+ },
796
+ "payload": {}
797
+ },
798
+ "additionalProperties": false
799
+ },
800
+ "command_RECORD_SIDE_EFFECT": {
801
+ "type": "object",
802
+ "required": [
803
+ "type",
804
+ "sideEffectId",
805
+ "value"
806
+ ],
807
+ "properties": {
808
+ "type": {
809
+ "const": "RECORD_SIDE_EFFECT"
810
+ },
811
+ "headers": {
812
+ "$ref": "#/$defs/headers"
813
+ },
814
+ "sideEffectId": {
815
+ "type": "string",
816
+ "minLength": 1,
817
+ "maxLength": 256
818
+ },
819
+ "value": {}
820
+ },
821
+ "additionalProperties": false
822
+ },
823
+ "command_RECORD_MARKER": {
824
+ "type": "object",
825
+ "required": [
826
+ "type",
827
+ "markerId",
828
+ "data"
829
+ ],
830
+ "properties": {
831
+ "type": {
832
+ "const": "RECORD_MARKER"
833
+ },
834
+ "headers": {
835
+ "$ref": "#/$defs/headers"
836
+ },
837
+ "markerId": {
838
+ "type": "string",
839
+ "minLength": 1,
840
+ "maxLength": 256
841
+ },
842
+ "data": {}
843
+ },
844
+ "additionalProperties": false
845
+ },
846
+ "command_COMPLETE_WORKFLOW": {
847
+ "type": "object",
848
+ "required": [
849
+ "type",
850
+ "output"
851
+ ],
852
+ "properties": {
853
+ "type": {
854
+ "const": "COMPLETE_WORKFLOW"
855
+ },
856
+ "headers": {
857
+ "$ref": "#/$defs/headers"
858
+ },
859
+ "output": {}
860
+ },
861
+ "additionalProperties": false
862
+ },
863
+ "command_FAIL_WORKFLOW": {
864
+ "type": "object",
865
+ "required": [
866
+ "type",
867
+ "failure"
868
+ ],
869
+ "properties": {
870
+ "type": {
871
+ "const": "FAIL_WORKFLOW"
872
+ },
873
+ "headers": {
874
+ "$ref": "#/$defs/headers"
875
+ },
876
+ "failure": {
877
+ "$ref": "#/$defs/failure"
878
+ }
879
+ },
880
+ "additionalProperties": false
881
+ },
882
+ "command_CANCEL_WORKFLOW": {
883
+ "type": "object",
884
+ "required": [
885
+ "type"
886
+ ],
887
+ "properties": {
888
+ "type": {
889
+ "const": "CANCEL_WORKFLOW"
890
+ },
891
+ "headers": {
892
+ "$ref": "#/$defs/headers"
893
+ }
894
+ },
895
+ "additionalProperties": false
896
+ },
897
+ "command_UPSERT_CONTEXT": {
898
+ "type": "object",
899
+ "required": [
900
+ "type",
901
+ "entries"
902
+ ],
903
+ "properties": {
904
+ "type": {
905
+ "const": "UPSERT_CONTEXT"
906
+ },
907
+ "headers": {
908
+ "$ref": "#/$defs/headers"
909
+ },
910
+ "entries": {
911
+ "type": "object"
912
+ }
913
+ },
914
+ "additionalProperties": false
915
+ },
916
+ "command_RECORD_LOCAL_ACTIVITY": {
917
+ "type": "object",
918
+ "required": [
919
+ "type",
920
+ "localActivityId",
921
+ "attempts"
922
+ ],
923
+ "properties": {
924
+ "type": {
925
+ "const": "RECORD_LOCAL_ACTIVITY"
926
+ },
927
+ "headers": {
928
+ "$ref": "#/$defs/headers"
929
+ },
930
+ "localActivityId": {
931
+ "type": "string",
932
+ "minLength": 1,
933
+ "maxLength": 256
934
+ },
935
+ "result": {},
936
+ "failure": {
937
+ "$ref": "#/$defs/failure"
938
+ },
939
+ "attempts": {
940
+ "type": "integer",
941
+ "minimum": 1
942
+ }
943
+ },
944
+ "additionalProperties": false,
945
+ "oneOf": [
946
+ {
947
+ "required": [
948
+ "result"
949
+ ]
950
+ },
951
+ {
952
+ "required": [
953
+ "failure"
954
+ ]
955
+ }
956
+ ]
957
+ },
958
+ "command_CONTINUE_AS_NEW": {
959
+ "type": "object",
960
+ "required": [
961
+ "type",
962
+ "input",
963
+ "options"
964
+ ],
965
+ "properties": {
966
+ "type": {
967
+ "const": "CONTINUE_AS_NEW"
968
+ },
969
+ "headers": {
970
+ "$ref": "#/$defs/headers"
971
+ },
972
+ "input": {},
973
+ "options": {
974
+ "type": "object"
975
+ }
976
+ },
977
+ "additionalProperties": false
978
+ },
979
+ "command_REQUEST_CANCEL_EXTERNAL_RUN": {
980
+ "type": "object",
981
+ "required": [
982
+ "type",
983
+ "externalId",
984
+ "target"
985
+ ],
986
+ "properties": {
987
+ "type": {
988
+ "const": "REQUEST_CANCEL_EXTERNAL_RUN"
989
+ },
990
+ "headers": {
991
+ "$ref": "#/$defs/headers"
992
+ },
993
+ "externalId": {
994
+ "type": "string",
995
+ "minLength": 1,
996
+ "maxLength": 256
997
+ },
998
+ "target": {
999
+ "$ref": "#/$defs/runTarget"
1000
+ }
1001
+ },
1002
+ "additionalProperties": false
1003
+ },
1004
+ "command_UPSERT_SEARCH_ATTRIBUTES": {
1005
+ "type": "object",
1006
+ "required": [
1007
+ "type",
1008
+ "attributes"
1009
+ ],
1010
+ "properties": {
1011
+ "type": {
1012
+ "const": "UPSERT_SEARCH_ATTRIBUTES"
1013
+ },
1014
+ "headers": {
1015
+ "$ref": "#/$defs/headers"
1016
+ },
1017
+ "attributes": {
1018
+ "type": "object"
1019
+ }
1020
+ },
1021
+ "additionalProperties": false
1022
+ },
1023
+ "command_ACCEPT_UPDATE": {
1024
+ "type": "object",
1025
+ "required": [
1026
+ "type",
1027
+ "updateId"
1028
+ ],
1029
+ "properties": {
1030
+ "type": {
1031
+ "const": "ACCEPT_UPDATE"
1032
+ },
1033
+ "headers": {
1034
+ "$ref": "#/$defs/headers"
1035
+ },
1036
+ "updateId": {
1037
+ "type": "string",
1038
+ "minLength": 1,
1039
+ "maxLength": 256
1040
+ }
1041
+ },
1042
+ "additionalProperties": false
1043
+ },
1044
+ "command_REJECT_UPDATE": {
1045
+ "type": "object",
1046
+ "required": [
1047
+ "type",
1048
+ "updateId",
1049
+ "failure"
1050
+ ],
1051
+ "properties": {
1052
+ "type": {
1053
+ "const": "REJECT_UPDATE"
1054
+ },
1055
+ "headers": {
1056
+ "$ref": "#/$defs/headers"
1057
+ },
1058
+ "updateId": {
1059
+ "type": "string",
1060
+ "minLength": 1,
1061
+ "maxLength": 256
1062
+ },
1063
+ "failure": {
1064
+ "$ref": "#/$defs/failure"
1065
+ }
1066
+ },
1067
+ "additionalProperties": false
1068
+ },
1069
+ "command_COMPLETE_UPDATE": {
1070
+ "type": "object",
1071
+ "required": [
1072
+ "type",
1073
+ "updateId"
1074
+ ],
1075
+ "properties": {
1076
+ "type": {
1077
+ "const": "COMPLETE_UPDATE"
1078
+ },
1079
+ "headers": {
1080
+ "$ref": "#/$defs/headers"
1081
+ },
1082
+ "updateId": {
1083
+ "type": "string",
1084
+ "minLength": 1,
1085
+ "maxLength": 256
1086
+ },
1087
+ "result": {},
1088
+ "failure": {
1089
+ "$ref": "#/$defs/failure"
1090
+ }
1091
+ },
1092
+ "additionalProperties": false
1093
+ }
1094
+ }
1095
+ }