@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,2374 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://docs.fluidgrids.ai/schemas/run-event.schema.json",
4
+ "title": "FluidGrids durable-function history event",
5
+ "description": "One row of workflow_run_events as the service returns it (offloaded payloads inlined). type is UPPER_SNAKE.",
6
+ "type": "object",
7
+ "required": [
8
+ "seq",
9
+ "type",
10
+ "payload",
11
+ "createdAt"
12
+ ],
13
+ "properties": {
14
+ "seq": {
15
+ "type": "integer",
16
+ "minimum": 1
17
+ },
18
+ "type": {
19
+ "enum": [
20
+ "WORKFLOW_STARTED",
21
+ "WORKFLOW_TASK_SCHEDULED",
22
+ "WORKFLOW_TASK_STARTED",
23
+ "WORKFLOW_TASK_COMPLETED",
24
+ "WORKFLOW_TASK_FAILED",
25
+ "WORKFLOW_TASK_TIMED_OUT",
26
+ "ACTIVITY_SCHEDULED",
27
+ "ACTIVITY_STARTED",
28
+ "ACTIVITY_HEARTBEAT",
29
+ "ACTIVITY_COMPLETED",
30
+ "ACTIVITY_FAILED",
31
+ "ACTIVITY_TIMED_OUT",
32
+ "ACTIVITY_CANCEL_REQUESTED",
33
+ "ACTIVITY_CANCELLED",
34
+ "ACTIVITY_PAUSED",
35
+ "ACTIVITY_UNPAUSED",
36
+ "ACTIVITY_RESET",
37
+ "ACTIVITY_OPTIONS_UPDATED",
38
+ "TIMER_STARTED",
39
+ "TIMER_FIRED",
40
+ "TIMER_CANCELLED",
41
+ "SIGNAL_RECEIVED",
42
+ "UPDATE_ADMITTED",
43
+ "UPDATE_ACCEPTED",
44
+ "UPDATE_COMPLETED",
45
+ "CHILD_RUN_INITIATED",
46
+ "CHILD_RUN_STARTED",
47
+ "CHILD_RUN_COMPLETED",
48
+ "CHILD_RUN_FAILED",
49
+ "CHILD_RUN_CANCELLED",
50
+ "CHILD_RUN_TERMINATED",
51
+ "CHILD_RUN_TIMED_OUT",
52
+ "EXTERNAL_RUN_CANCEL_REQUESTED",
53
+ "EXTERNAL_RUN_CANCEL_RESOLVED",
54
+ "EXTERNAL_RUN_SIGNALED",
55
+ "SIDE_EFFECT_RECORDED",
56
+ "LOCAL_ACTIVITY_COMPLETED",
57
+ "LOCAL_ACTIVITY_FAILED",
58
+ "SEARCH_ATTRIBUTES_UPSERTED",
59
+ "CONTEXT_UPSERTED",
60
+ "MARKER_RECORDED",
61
+ "WORKFLOW_CANCEL_REQUESTED",
62
+ "WORKFLOW_RESET",
63
+ "VERSIONING_OVERRIDE_SET",
64
+ "WORKFLOW_COMPLETED",
65
+ "WORKFLOW_FAILED",
66
+ "WORKFLOW_CANCELLED",
67
+ "WORKFLOW_TERMINATED",
68
+ "WORKFLOW_TIMED_OUT",
69
+ "WORKFLOW_CONTINUED_AS_NEW"
70
+ ]
71
+ },
72
+ "taskId": {
73
+ "type": [
74
+ "string",
75
+ "null"
76
+ ]
77
+ },
78
+ "payload": {
79
+ "type": "object"
80
+ },
81
+ "createdAt": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ },
85
+ "dedupeKey": {
86
+ "type": [
87
+ "string",
88
+ "null"
89
+ ]
90
+ }
91
+ },
92
+ "allOf": [
93
+ {
94
+ "if": {
95
+ "properties": {
96
+ "type": {
97
+ "const": "WORKFLOW_STARTED"
98
+ }
99
+ },
100
+ "required": [
101
+ "type"
102
+ ]
103
+ },
104
+ "then": {
105
+ "properties": {
106
+ "payload": {
107
+ "$ref": "#/$defs/payload_WORKFLOW_STARTED"
108
+ }
109
+ }
110
+ }
111
+ },
112
+ {
113
+ "if": {
114
+ "properties": {
115
+ "type": {
116
+ "const": "WORKFLOW_TASK_SCHEDULED"
117
+ }
118
+ },
119
+ "required": [
120
+ "type"
121
+ ]
122
+ },
123
+ "then": {
124
+ "properties": {
125
+ "payload": {
126
+ "$ref": "#/$defs/payload_WORKFLOW_TASK_SCHEDULED"
127
+ }
128
+ }
129
+ }
130
+ },
131
+ {
132
+ "if": {
133
+ "properties": {
134
+ "type": {
135
+ "const": "WORKFLOW_TASK_STARTED"
136
+ }
137
+ },
138
+ "required": [
139
+ "type"
140
+ ]
141
+ },
142
+ "then": {
143
+ "properties": {
144
+ "payload": {
145
+ "$ref": "#/$defs/payload_WORKFLOW_TASK_STARTED"
146
+ }
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "if": {
152
+ "properties": {
153
+ "type": {
154
+ "const": "WORKFLOW_TASK_COMPLETED"
155
+ }
156
+ },
157
+ "required": [
158
+ "type"
159
+ ]
160
+ },
161
+ "then": {
162
+ "properties": {
163
+ "payload": {
164
+ "$ref": "#/$defs/payload_WORKFLOW_TASK_COMPLETED"
165
+ }
166
+ }
167
+ }
168
+ },
169
+ {
170
+ "if": {
171
+ "properties": {
172
+ "type": {
173
+ "const": "WORKFLOW_TASK_FAILED"
174
+ }
175
+ },
176
+ "required": [
177
+ "type"
178
+ ]
179
+ },
180
+ "then": {
181
+ "properties": {
182
+ "payload": {
183
+ "$ref": "#/$defs/payload_WORKFLOW_TASK_FAILED"
184
+ }
185
+ }
186
+ }
187
+ },
188
+ {
189
+ "if": {
190
+ "properties": {
191
+ "type": {
192
+ "const": "WORKFLOW_TASK_TIMED_OUT"
193
+ }
194
+ },
195
+ "required": [
196
+ "type"
197
+ ]
198
+ },
199
+ "then": {
200
+ "properties": {
201
+ "payload": {
202
+ "$ref": "#/$defs/payload_WORKFLOW_TASK_TIMED_OUT"
203
+ }
204
+ }
205
+ }
206
+ },
207
+ {
208
+ "if": {
209
+ "properties": {
210
+ "type": {
211
+ "const": "ACTIVITY_SCHEDULED"
212
+ }
213
+ },
214
+ "required": [
215
+ "type"
216
+ ]
217
+ },
218
+ "then": {
219
+ "properties": {
220
+ "payload": {
221
+ "$ref": "#/$defs/payload_ACTIVITY_SCHEDULED"
222
+ }
223
+ }
224
+ }
225
+ },
226
+ {
227
+ "if": {
228
+ "properties": {
229
+ "type": {
230
+ "const": "ACTIVITY_STARTED"
231
+ }
232
+ },
233
+ "required": [
234
+ "type"
235
+ ]
236
+ },
237
+ "then": {
238
+ "properties": {
239
+ "payload": {
240
+ "$ref": "#/$defs/payload_ACTIVITY_STARTED"
241
+ }
242
+ }
243
+ }
244
+ },
245
+ {
246
+ "if": {
247
+ "properties": {
248
+ "type": {
249
+ "const": "ACTIVITY_HEARTBEAT"
250
+ }
251
+ },
252
+ "required": [
253
+ "type"
254
+ ]
255
+ },
256
+ "then": {
257
+ "properties": {
258
+ "payload": {
259
+ "$ref": "#/$defs/payload_ACTIVITY_HEARTBEAT"
260
+ }
261
+ }
262
+ }
263
+ },
264
+ {
265
+ "if": {
266
+ "properties": {
267
+ "type": {
268
+ "const": "ACTIVITY_COMPLETED"
269
+ }
270
+ },
271
+ "required": [
272
+ "type"
273
+ ]
274
+ },
275
+ "then": {
276
+ "properties": {
277
+ "payload": {
278
+ "$ref": "#/$defs/payload_ACTIVITY_COMPLETED"
279
+ }
280
+ }
281
+ }
282
+ },
283
+ {
284
+ "if": {
285
+ "properties": {
286
+ "type": {
287
+ "const": "ACTIVITY_FAILED"
288
+ }
289
+ },
290
+ "required": [
291
+ "type"
292
+ ]
293
+ },
294
+ "then": {
295
+ "properties": {
296
+ "payload": {
297
+ "$ref": "#/$defs/payload_ACTIVITY_FAILED"
298
+ }
299
+ }
300
+ }
301
+ },
302
+ {
303
+ "if": {
304
+ "properties": {
305
+ "type": {
306
+ "const": "ACTIVITY_TIMED_OUT"
307
+ }
308
+ },
309
+ "required": [
310
+ "type"
311
+ ]
312
+ },
313
+ "then": {
314
+ "properties": {
315
+ "payload": {
316
+ "$ref": "#/$defs/payload_ACTIVITY_TIMED_OUT"
317
+ }
318
+ }
319
+ }
320
+ },
321
+ {
322
+ "if": {
323
+ "properties": {
324
+ "type": {
325
+ "const": "ACTIVITY_CANCEL_REQUESTED"
326
+ }
327
+ },
328
+ "required": [
329
+ "type"
330
+ ]
331
+ },
332
+ "then": {
333
+ "properties": {
334
+ "payload": {
335
+ "$ref": "#/$defs/payload_ACTIVITY_CANCEL_REQUESTED"
336
+ }
337
+ }
338
+ }
339
+ },
340
+ {
341
+ "if": {
342
+ "properties": {
343
+ "type": {
344
+ "const": "ACTIVITY_CANCELLED"
345
+ }
346
+ },
347
+ "required": [
348
+ "type"
349
+ ]
350
+ },
351
+ "then": {
352
+ "properties": {
353
+ "payload": {
354
+ "$ref": "#/$defs/payload_ACTIVITY_CANCELLED"
355
+ }
356
+ }
357
+ }
358
+ },
359
+ {
360
+ "if": {
361
+ "properties": {
362
+ "type": {
363
+ "const": "ACTIVITY_PAUSED"
364
+ }
365
+ },
366
+ "required": [
367
+ "type"
368
+ ]
369
+ },
370
+ "then": {
371
+ "properties": {
372
+ "payload": {
373
+ "$ref": "#/$defs/payload_ACTIVITY_PAUSED"
374
+ }
375
+ }
376
+ }
377
+ },
378
+ {
379
+ "if": {
380
+ "properties": {
381
+ "type": {
382
+ "const": "ACTIVITY_UNPAUSED"
383
+ }
384
+ },
385
+ "required": [
386
+ "type"
387
+ ]
388
+ },
389
+ "then": {
390
+ "properties": {
391
+ "payload": {
392
+ "$ref": "#/$defs/payload_ACTIVITY_UNPAUSED"
393
+ }
394
+ }
395
+ }
396
+ },
397
+ {
398
+ "if": {
399
+ "properties": {
400
+ "type": {
401
+ "const": "ACTIVITY_RESET"
402
+ }
403
+ },
404
+ "required": [
405
+ "type"
406
+ ]
407
+ },
408
+ "then": {
409
+ "properties": {
410
+ "payload": {
411
+ "$ref": "#/$defs/payload_ACTIVITY_RESET"
412
+ }
413
+ }
414
+ }
415
+ },
416
+ {
417
+ "if": {
418
+ "properties": {
419
+ "type": {
420
+ "const": "ACTIVITY_OPTIONS_UPDATED"
421
+ }
422
+ },
423
+ "required": [
424
+ "type"
425
+ ]
426
+ },
427
+ "then": {
428
+ "properties": {
429
+ "payload": {
430
+ "$ref": "#/$defs/payload_ACTIVITY_OPTIONS_UPDATED"
431
+ }
432
+ }
433
+ }
434
+ },
435
+ {
436
+ "if": {
437
+ "properties": {
438
+ "type": {
439
+ "const": "TIMER_STARTED"
440
+ }
441
+ },
442
+ "required": [
443
+ "type"
444
+ ]
445
+ },
446
+ "then": {
447
+ "properties": {
448
+ "payload": {
449
+ "$ref": "#/$defs/payload_TIMER_STARTED"
450
+ }
451
+ }
452
+ }
453
+ },
454
+ {
455
+ "if": {
456
+ "properties": {
457
+ "type": {
458
+ "const": "TIMER_FIRED"
459
+ }
460
+ },
461
+ "required": [
462
+ "type"
463
+ ]
464
+ },
465
+ "then": {
466
+ "properties": {
467
+ "payload": {
468
+ "$ref": "#/$defs/payload_TIMER_FIRED"
469
+ }
470
+ }
471
+ }
472
+ },
473
+ {
474
+ "if": {
475
+ "properties": {
476
+ "type": {
477
+ "const": "TIMER_CANCELLED"
478
+ }
479
+ },
480
+ "required": [
481
+ "type"
482
+ ]
483
+ },
484
+ "then": {
485
+ "properties": {
486
+ "payload": {
487
+ "$ref": "#/$defs/payload_TIMER_CANCELLED"
488
+ }
489
+ }
490
+ }
491
+ },
492
+ {
493
+ "if": {
494
+ "properties": {
495
+ "type": {
496
+ "const": "SIGNAL_RECEIVED"
497
+ }
498
+ },
499
+ "required": [
500
+ "type"
501
+ ]
502
+ },
503
+ "then": {
504
+ "properties": {
505
+ "payload": {
506
+ "$ref": "#/$defs/payload_SIGNAL_RECEIVED"
507
+ }
508
+ }
509
+ }
510
+ },
511
+ {
512
+ "if": {
513
+ "properties": {
514
+ "type": {
515
+ "const": "UPDATE_ADMITTED"
516
+ }
517
+ },
518
+ "required": [
519
+ "type"
520
+ ]
521
+ },
522
+ "then": {
523
+ "properties": {
524
+ "payload": {
525
+ "$ref": "#/$defs/payload_UPDATE_ADMITTED"
526
+ }
527
+ }
528
+ }
529
+ },
530
+ {
531
+ "if": {
532
+ "properties": {
533
+ "type": {
534
+ "const": "UPDATE_ACCEPTED"
535
+ }
536
+ },
537
+ "required": [
538
+ "type"
539
+ ]
540
+ },
541
+ "then": {
542
+ "properties": {
543
+ "payload": {
544
+ "$ref": "#/$defs/payload_UPDATE_ACCEPTED"
545
+ }
546
+ }
547
+ }
548
+ },
549
+ {
550
+ "if": {
551
+ "properties": {
552
+ "type": {
553
+ "const": "UPDATE_COMPLETED"
554
+ }
555
+ },
556
+ "required": [
557
+ "type"
558
+ ]
559
+ },
560
+ "then": {
561
+ "properties": {
562
+ "payload": {
563
+ "$ref": "#/$defs/payload_UPDATE_COMPLETED"
564
+ }
565
+ }
566
+ }
567
+ },
568
+ {
569
+ "if": {
570
+ "properties": {
571
+ "type": {
572
+ "const": "CHILD_RUN_INITIATED"
573
+ }
574
+ },
575
+ "required": [
576
+ "type"
577
+ ]
578
+ },
579
+ "then": {
580
+ "properties": {
581
+ "payload": {
582
+ "$ref": "#/$defs/payload_CHILD_RUN_INITIATED"
583
+ }
584
+ }
585
+ }
586
+ },
587
+ {
588
+ "if": {
589
+ "properties": {
590
+ "type": {
591
+ "const": "CHILD_RUN_STARTED"
592
+ }
593
+ },
594
+ "required": [
595
+ "type"
596
+ ]
597
+ },
598
+ "then": {
599
+ "properties": {
600
+ "payload": {
601
+ "$ref": "#/$defs/payload_CHILD_RUN_STARTED"
602
+ }
603
+ }
604
+ }
605
+ },
606
+ {
607
+ "if": {
608
+ "properties": {
609
+ "type": {
610
+ "const": "CHILD_RUN_COMPLETED"
611
+ }
612
+ },
613
+ "required": [
614
+ "type"
615
+ ]
616
+ },
617
+ "then": {
618
+ "properties": {
619
+ "payload": {
620
+ "$ref": "#/$defs/payload_CHILD_RUN_COMPLETED"
621
+ }
622
+ }
623
+ }
624
+ },
625
+ {
626
+ "if": {
627
+ "properties": {
628
+ "type": {
629
+ "const": "CHILD_RUN_FAILED"
630
+ }
631
+ },
632
+ "required": [
633
+ "type"
634
+ ]
635
+ },
636
+ "then": {
637
+ "properties": {
638
+ "payload": {
639
+ "$ref": "#/$defs/payload_CHILD_RUN_FAILED"
640
+ }
641
+ }
642
+ }
643
+ },
644
+ {
645
+ "if": {
646
+ "properties": {
647
+ "type": {
648
+ "const": "CHILD_RUN_CANCELLED"
649
+ }
650
+ },
651
+ "required": [
652
+ "type"
653
+ ]
654
+ },
655
+ "then": {
656
+ "properties": {
657
+ "payload": {
658
+ "$ref": "#/$defs/payload_CHILD_RUN_CANCELLED"
659
+ }
660
+ }
661
+ }
662
+ },
663
+ {
664
+ "if": {
665
+ "properties": {
666
+ "type": {
667
+ "const": "CHILD_RUN_TERMINATED"
668
+ }
669
+ },
670
+ "required": [
671
+ "type"
672
+ ]
673
+ },
674
+ "then": {
675
+ "properties": {
676
+ "payload": {
677
+ "$ref": "#/$defs/payload_CHILD_RUN_TERMINATED"
678
+ }
679
+ }
680
+ }
681
+ },
682
+ {
683
+ "if": {
684
+ "properties": {
685
+ "type": {
686
+ "const": "CHILD_RUN_TIMED_OUT"
687
+ }
688
+ },
689
+ "required": [
690
+ "type"
691
+ ]
692
+ },
693
+ "then": {
694
+ "properties": {
695
+ "payload": {
696
+ "$ref": "#/$defs/payload_CHILD_RUN_TIMED_OUT"
697
+ }
698
+ }
699
+ }
700
+ },
701
+ {
702
+ "if": {
703
+ "properties": {
704
+ "type": {
705
+ "const": "EXTERNAL_RUN_CANCEL_REQUESTED"
706
+ }
707
+ },
708
+ "required": [
709
+ "type"
710
+ ]
711
+ },
712
+ "then": {
713
+ "properties": {
714
+ "payload": {
715
+ "$ref": "#/$defs/payload_EXTERNAL_RUN_CANCEL_REQUESTED"
716
+ }
717
+ }
718
+ }
719
+ },
720
+ {
721
+ "if": {
722
+ "properties": {
723
+ "type": {
724
+ "const": "EXTERNAL_RUN_CANCEL_RESOLVED"
725
+ }
726
+ },
727
+ "required": [
728
+ "type"
729
+ ]
730
+ },
731
+ "then": {
732
+ "properties": {
733
+ "payload": {
734
+ "$ref": "#/$defs/payload_EXTERNAL_RUN_CANCEL_RESOLVED"
735
+ }
736
+ }
737
+ }
738
+ },
739
+ {
740
+ "if": {
741
+ "properties": {
742
+ "type": {
743
+ "const": "EXTERNAL_RUN_SIGNALED"
744
+ }
745
+ },
746
+ "required": [
747
+ "type"
748
+ ]
749
+ },
750
+ "then": {
751
+ "properties": {
752
+ "payload": {
753
+ "$ref": "#/$defs/payload_EXTERNAL_RUN_SIGNALED"
754
+ }
755
+ }
756
+ }
757
+ },
758
+ {
759
+ "if": {
760
+ "properties": {
761
+ "type": {
762
+ "const": "SIDE_EFFECT_RECORDED"
763
+ }
764
+ },
765
+ "required": [
766
+ "type"
767
+ ]
768
+ },
769
+ "then": {
770
+ "properties": {
771
+ "payload": {
772
+ "$ref": "#/$defs/payload_SIDE_EFFECT_RECORDED"
773
+ }
774
+ }
775
+ }
776
+ },
777
+ {
778
+ "if": {
779
+ "properties": {
780
+ "type": {
781
+ "const": "LOCAL_ACTIVITY_COMPLETED"
782
+ }
783
+ },
784
+ "required": [
785
+ "type"
786
+ ]
787
+ },
788
+ "then": {
789
+ "properties": {
790
+ "payload": {
791
+ "$ref": "#/$defs/payload_LOCAL_ACTIVITY_COMPLETED"
792
+ }
793
+ }
794
+ }
795
+ },
796
+ {
797
+ "if": {
798
+ "properties": {
799
+ "type": {
800
+ "const": "LOCAL_ACTIVITY_FAILED"
801
+ }
802
+ },
803
+ "required": [
804
+ "type"
805
+ ]
806
+ },
807
+ "then": {
808
+ "properties": {
809
+ "payload": {
810
+ "$ref": "#/$defs/payload_LOCAL_ACTIVITY_FAILED"
811
+ }
812
+ }
813
+ }
814
+ },
815
+ {
816
+ "if": {
817
+ "properties": {
818
+ "type": {
819
+ "const": "SEARCH_ATTRIBUTES_UPSERTED"
820
+ }
821
+ },
822
+ "required": [
823
+ "type"
824
+ ]
825
+ },
826
+ "then": {
827
+ "properties": {
828
+ "payload": {
829
+ "$ref": "#/$defs/payload_SEARCH_ATTRIBUTES_UPSERTED"
830
+ }
831
+ }
832
+ }
833
+ },
834
+ {
835
+ "if": {
836
+ "properties": {
837
+ "type": {
838
+ "const": "CONTEXT_UPSERTED"
839
+ }
840
+ },
841
+ "required": [
842
+ "type"
843
+ ]
844
+ },
845
+ "then": {
846
+ "properties": {
847
+ "payload": {
848
+ "$ref": "#/$defs/payload_CONTEXT_UPSERTED"
849
+ }
850
+ }
851
+ }
852
+ },
853
+ {
854
+ "if": {
855
+ "properties": {
856
+ "type": {
857
+ "const": "MARKER_RECORDED"
858
+ }
859
+ },
860
+ "required": [
861
+ "type"
862
+ ]
863
+ },
864
+ "then": {
865
+ "properties": {
866
+ "payload": {
867
+ "$ref": "#/$defs/payload_MARKER_RECORDED"
868
+ }
869
+ }
870
+ }
871
+ },
872
+ {
873
+ "if": {
874
+ "properties": {
875
+ "type": {
876
+ "const": "WORKFLOW_CANCEL_REQUESTED"
877
+ }
878
+ },
879
+ "required": [
880
+ "type"
881
+ ]
882
+ },
883
+ "then": {
884
+ "properties": {
885
+ "payload": {
886
+ "$ref": "#/$defs/payload_WORKFLOW_CANCEL_REQUESTED"
887
+ }
888
+ }
889
+ }
890
+ },
891
+ {
892
+ "if": {
893
+ "properties": {
894
+ "type": {
895
+ "const": "WORKFLOW_RESET"
896
+ }
897
+ },
898
+ "required": [
899
+ "type"
900
+ ]
901
+ },
902
+ "then": {
903
+ "properties": {
904
+ "payload": {
905
+ "$ref": "#/$defs/payload_WORKFLOW_RESET"
906
+ }
907
+ }
908
+ }
909
+ },
910
+ {
911
+ "if": {
912
+ "properties": {
913
+ "type": {
914
+ "const": "VERSIONING_OVERRIDE_SET"
915
+ }
916
+ },
917
+ "required": [
918
+ "type"
919
+ ]
920
+ },
921
+ "then": {
922
+ "properties": {
923
+ "payload": {
924
+ "$ref": "#/$defs/payload_VERSIONING_OVERRIDE_SET"
925
+ }
926
+ }
927
+ }
928
+ },
929
+ {
930
+ "if": {
931
+ "properties": {
932
+ "type": {
933
+ "const": "WORKFLOW_COMPLETED"
934
+ }
935
+ },
936
+ "required": [
937
+ "type"
938
+ ]
939
+ },
940
+ "then": {
941
+ "properties": {
942
+ "payload": {
943
+ "$ref": "#/$defs/payload_WORKFLOW_COMPLETED"
944
+ }
945
+ }
946
+ }
947
+ },
948
+ {
949
+ "if": {
950
+ "properties": {
951
+ "type": {
952
+ "const": "WORKFLOW_FAILED"
953
+ }
954
+ },
955
+ "required": [
956
+ "type"
957
+ ]
958
+ },
959
+ "then": {
960
+ "properties": {
961
+ "payload": {
962
+ "$ref": "#/$defs/payload_WORKFLOW_FAILED"
963
+ }
964
+ }
965
+ }
966
+ },
967
+ {
968
+ "if": {
969
+ "properties": {
970
+ "type": {
971
+ "const": "WORKFLOW_CANCELLED"
972
+ }
973
+ },
974
+ "required": [
975
+ "type"
976
+ ]
977
+ },
978
+ "then": {
979
+ "properties": {
980
+ "payload": {
981
+ "$ref": "#/$defs/payload_WORKFLOW_CANCELLED"
982
+ }
983
+ }
984
+ }
985
+ },
986
+ {
987
+ "if": {
988
+ "properties": {
989
+ "type": {
990
+ "const": "WORKFLOW_TERMINATED"
991
+ }
992
+ },
993
+ "required": [
994
+ "type"
995
+ ]
996
+ },
997
+ "then": {
998
+ "properties": {
999
+ "payload": {
1000
+ "$ref": "#/$defs/payload_WORKFLOW_TERMINATED"
1001
+ }
1002
+ }
1003
+ }
1004
+ },
1005
+ {
1006
+ "if": {
1007
+ "properties": {
1008
+ "type": {
1009
+ "const": "WORKFLOW_TIMED_OUT"
1010
+ }
1011
+ },
1012
+ "required": [
1013
+ "type"
1014
+ ]
1015
+ },
1016
+ "then": {
1017
+ "properties": {
1018
+ "payload": {
1019
+ "$ref": "#/$defs/payload_WORKFLOW_TIMED_OUT"
1020
+ }
1021
+ }
1022
+ }
1023
+ },
1024
+ {
1025
+ "if": {
1026
+ "properties": {
1027
+ "type": {
1028
+ "const": "WORKFLOW_CONTINUED_AS_NEW"
1029
+ }
1030
+ },
1031
+ "required": [
1032
+ "type"
1033
+ ]
1034
+ },
1035
+ "then": {
1036
+ "properties": {
1037
+ "payload": {
1038
+ "$ref": "#/$defs/payload_WORKFLOW_CONTINUED_AS_NEW"
1039
+ }
1040
+ }
1041
+ }
1042
+ }
1043
+ ],
1044
+ "$defs": {
1045
+ "json": {
1046
+ "description": "Any JSON value."
1047
+ },
1048
+ "failure": {
1049
+ "type": "object",
1050
+ "required": [
1051
+ "errorType",
1052
+ "message"
1053
+ ],
1054
+ "properties": {
1055
+ "errorType": {
1056
+ "enum": [
1057
+ "TIMEOUT",
1058
+ "TRANSIENT",
1059
+ "DEPENDENCY",
1060
+ "AUTHORIZATION",
1061
+ "VALIDATION",
1062
+ "PERMANENT",
1063
+ "UNKNOWN"
1064
+ ]
1065
+ },
1066
+ "message": {
1067
+ "type": "string"
1068
+ },
1069
+ "type": {
1070
+ "type": "string"
1071
+ },
1072
+ "details": {},
1073
+ "nonRetryable": {
1074
+ "type": "boolean"
1075
+ },
1076
+ "nextRetryDelayMs": {
1077
+ "type": "integer",
1078
+ "minimum": 0
1079
+ },
1080
+ "category": {
1081
+ "const": "BENIGN"
1082
+ },
1083
+ "timeoutType": {
1084
+ "type": "string"
1085
+ },
1086
+ "cause": {
1087
+ "$ref": "#/$defs/failure"
1088
+ },
1089
+ "stackTrace": {
1090
+ "type": "string"
1091
+ },
1092
+ "source": {
1093
+ "type": "string"
1094
+ }
1095
+ },
1096
+ "additionalProperties": false
1097
+ },
1098
+ "retryPolicy": {
1099
+ "type": "object",
1100
+ "required": [
1101
+ "retryDelay"
1102
+ ],
1103
+ "description": "maxRetries absent means unlimited attempts, bounded by scheduleToCloseTimeout.",
1104
+ "properties": {
1105
+ "maxRetries": {
1106
+ "type": "integer",
1107
+ "minimum": 0
1108
+ },
1109
+ "retryDelay": {
1110
+ "type": "integer",
1111
+ "minimum": 0
1112
+ },
1113
+ "backoffMultiplier": {
1114
+ "type": "number",
1115
+ "minimum": 1
1116
+ },
1117
+ "maxDelay": {
1118
+ "type": "integer",
1119
+ "minimum": 0
1120
+ },
1121
+ "retryOnErrorTypes": {
1122
+ "type": "array",
1123
+ "items": {
1124
+ "enum": [
1125
+ "TIMEOUT",
1126
+ "TRANSIENT",
1127
+ "DEPENDENCY",
1128
+ "AUTHORIZATION",
1129
+ "VALIDATION",
1130
+ "PERMANENT",
1131
+ "UNKNOWN"
1132
+ ]
1133
+ }
1134
+ },
1135
+ "nonRetryableErrorTypes": {
1136
+ "type": "array",
1137
+ "items": {
1138
+ "type": "string"
1139
+ }
1140
+ }
1141
+ },
1142
+ "additionalProperties": false
1143
+ },
1144
+ "runTarget": {
1145
+ "oneOf": [
1146
+ {
1147
+ "type": "object",
1148
+ "required": [
1149
+ "runId"
1150
+ ],
1151
+ "properties": {
1152
+ "runId": {
1153
+ "type": "string",
1154
+ "minLength": 1,
1155
+ "maxLength": 256
1156
+ }
1157
+ },
1158
+ "additionalProperties": false
1159
+ },
1160
+ {
1161
+ "type": "object",
1162
+ "required": [
1163
+ "parent"
1164
+ ],
1165
+ "properties": {
1166
+ "parent": {
1167
+ "const": true
1168
+ }
1169
+ },
1170
+ "additionalProperties": false
1171
+ },
1172
+ {
1173
+ "type": "object",
1174
+ "required": [
1175
+ "childId"
1176
+ ],
1177
+ "properties": {
1178
+ "childId": {
1179
+ "type": "string",
1180
+ "minLength": 1,
1181
+ "maxLength": 256
1182
+ }
1183
+ },
1184
+ "additionalProperties": false
1185
+ },
1186
+ {
1187
+ "type": "object",
1188
+ "required": [
1189
+ "workflowKey",
1190
+ "workflowId"
1191
+ ],
1192
+ "properties": {
1193
+ "workflowKey": {
1194
+ "type": "string",
1195
+ "minLength": 1,
1196
+ "maxLength": 256
1197
+ },
1198
+ "workflowId": {
1199
+ "type": "string",
1200
+ "minLength": 1,
1201
+ "maxLength": 256
1202
+ }
1203
+ },
1204
+ "additionalProperties": false
1205
+ }
1206
+ ]
1207
+ },
1208
+ "childOptions": {
1209
+ "type": "object",
1210
+ "required": [
1211
+ "parentClosePolicy"
1212
+ ],
1213
+ "properties": {
1214
+ "parentClosePolicy": {
1215
+ "enum": [
1216
+ "TERMINATE",
1217
+ "ABANDON",
1218
+ "REQUEST_CANCEL"
1219
+ ]
1220
+ },
1221
+ "cancellationType": {
1222
+ "enum": [
1223
+ "WAIT_CANCELLATION_COMPLETED",
1224
+ "WAIT_CANCELLATION_REQUESTED",
1225
+ "TRY_CANCEL",
1226
+ "ABANDON"
1227
+ ]
1228
+ },
1229
+ "taskQueue": {
1230
+ "type": "string",
1231
+ "minLength": 1,
1232
+ "maxLength": 256
1233
+ },
1234
+ "workflowId": {
1235
+ "type": "string",
1236
+ "minLength": 1,
1237
+ "maxLength": 256
1238
+ },
1239
+ "priority": {
1240
+ "type": "integer",
1241
+ "minimum": 1,
1242
+ "maximum": 5
1243
+ },
1244
+ "summary": {
1245
+ "type": "string",
1246
+ "maxLength": 200
1247
+ },
1248
+ "details": {
1249
+ "type": "string"
1250
+ },
1251
+ "context": {
1252
+ "type": "object"
1253
+ },
1254
+ "executionTimeout": {
1255
+ "type": "integer",
1256
+ "minimum": 0
1257
+ },
1258
+ "runTimeout": {
1259
+ "type": "integer",
1260
+ "minimum": 0
1261
+ },
1262
+ "workflowTaskTimeout": {
1263
+ "type": "integer",
1264
+ "minimum": 0
1265
+ },
1266
+ "startDelay": {
1267
+ "type": "integer",
1268
+ "minimum": 0
1269
+ }
1270
+ }
1271
+ },
1272
+ "headers": {
1273
+ "type": "object",
1274
+ "additionalProperties": {
1275
+ "type": "string"
1276
+ }
1277
+ },
1278
+ "payload_WORKFLOW_STARTED": {
1279
+ "type": "object",
1280
+ "required": [
1281
+ "workflowFn",
1282
+ "input"
1283
+ ],
1284
+ "properties": {
1285
+ "workflowFn": {
1286
+ "type": "string",
1287
+ "minLength": 1,
1288
+ "maxLength": 256
1289
+ },
1290
+ "input": {},
1291
+ "workflowKey": {
1292
+ "type": "string"
1293
+ },
1294
+ "version": {},
1295
+ "buildId": {
1296
+ "type": "string"
1297
+ },
1298
+ "taskQueue": {
1299
+ "type": "string"
1300
+ },
1301
+ "parentRunId": {
1302
+ "type": [
1303
+ "string",
1304
+ "null"
1305
+ ]
1306
+ },
1307
+ "rootRunId": {
1308
+ "type": [
1309
+ "string",
1310
+ "null"
1311
+ ]
1312
+ },
1313
+ "firstRunId": {
1314
+ "type": [
1315
+ "string",
1316
+ "null"
1317
+ ]
1318
+ },
1319
+ "continuedFromRunId": {
1320
+ "type": [
1321
+ "string",
1322
+ "null"
1323
+ ]
1324
+ },
1325
+ "parentClosePolicy": {
1326
+ "enum": [
1327
+ "TERMINATE",
1328
+ "ABANDON",
1329
+ "REQUEST_CANCEL"
1330
+ ]
1331
+ },
1332
+ "startDelay": {
1333
+ "type": "integer",
1334
+ "minimum": 0
1335
+ },
1336
+ "lastCompletionResult": {},
1337
+ "lastFailure": {
1338
+ "oneOf": [
1339
+ {
1340
+ "type": "null"
1341
+ },
1342
+ {
1343
+ "$ref": "#/$defs/failure"
1344
+ }
1345
+ ]
1346
+ },
1347
+ "summary": {
1348
+ "type": "string"
1349
+ },
1350
+ "details": {
1351
+ "type": "string"
1352
+ },
1353
+ "context": {
1354
+ "type": "object"
1355
+ },
1356
+ "executionTimeout": {
1357
+ "type": "integer",
1358
+ "minimum": 0
1359
+ },
1360
+ "runTimeout": {
1361
+ "type": "integer",
1362
+ "minimum": 0
1363
+ },
1364
+ "workflowTaskTimeout": {
1365
+ "type": "integer",
1366
+ "minimum": 0
1367
+ },
1368
+ "versioningBehavior": {
1369
+ "enum": [
1370
+ "PINNED",
1371
+ "AUTO_UPGRADE"
1372
+ ]
1373
+ },
1374
+ "randomnessSeed": {
1375
+ "type": "string",
1376
+ "minLength": 1,
1377
+ "maxLength": 256
1378
+ }
1379
+ }
1380
+ },
1381
+ "payload_WORKFLOW_TASK_SCHEDULED": {
1382
+ "type": "object",
1383
+ "required": [
1384
+ "taskId"
1385
+ ],
1386
+ "properties": {
1387
+ "taskId": {
1388
+ "type": "string",
1389
+ "minLength": 1,
1390
+ "maxLength": 256
1391
+ },
1392
+ "attempt": {
1393
+ "type": "integer",
1394
+ "minimum": 1
1395
+ }
1396
+ }
1397
+ },
1398
+ "payload_WORKFLOW_TASK_STARTED": {
1399
+ "type": "object",
1400
+ "required": [
1401
+ "taskId",
1402
+ "attempt"
1403
+ ],
1404
+ "properties": {
1405
+ "taskId": {
1406
+ "type": "string",
1407
+ "minLength": 1,
1408
+ "maxLength": 256
1409
+ },
1410
+ "attempt": {
1411
+ "type": "integer",
1412
+ "minimum": 1
1413
+ },
1414
+ "workerId": {
1415
+ "type": "string"
1416
+ },
1417
+ "buildId": {
1418
+ "type": "string"
1419
+ },
1420
+ "startedAt": {
1421
+ "type": "string",
1422
+ "description": "When the attempt started, if different from the event time (a transient attempt is recorded at completion). This is the clock the task saw: nowMs of its request."
1423
+ },
1424
+ "historyLength": {
1425
+ "type": "integer",
1426
+ "minimum": 1,
1427
+ "description": "The history length the attempt was leased with (run.taskStartedSeq), when it is not this event's own seq. Required on the WORKFLOW_TASK_STARTED of a transient attempt: input events with a higher seq that precede this event arrived during the attempt and belong to the next activation."
1428
+ }
1429
+ }
1430
+ },
1431
+ "payload_WORKFLOW_TASK_COMPLETED": {
1432
+ "type": "object",
1433
+ "required": [
1434
+ "taskId"
1435
+ ],
1436
+ "properties": {
1437
+ "taskId": {
1438
+ "type": "string",
1439
+ "minLength": 1,
1440
+ "maxLength": 256
1441
+ },
1442
+ "buildId": {
1443
+ "type": "string"
1444
+ },
1445
+ "workerId": {
1446
+ "type": "string"
1447
+ }
1448
+ }
1449
+ },
1450
+ "payload_WORKFLOW_TASK_FAILED": {
1451
+ "type": "object",
1452
+ "required": [
1453
+ "taskId",
1454
+ "attempt",
1455
+ "cause"
1456
+ ],
1457
+ "properties": {
1458
+ "taskId": {
1459
+ "type": "string",
1460
+ "minLength": 1,
1461
+ "maxLength": 256
1462
+ },
1463
+ "attempt": {
1464
+ "type": "integer",
1465
+ "minimum": 1
1466
+ },
1467
+ "cause": {
1468
+ "enum": [
1469
+ "NON_DETERMINISM",
1470
+ "TASK_TIMEOUT",
1471
+ "ISOLATE_MEMORY",
1472
+ "PROTOCOL_MISMATCH",
1473
+ "BUNDLE_UNAVAILABLE",
1474
+ "BUNDLE_INTEGRITY",
1475
+ "WORKFLOW_CODE_ERROR",
1476
+ "HISTORY_LIMIT",
1477
+ "UNSUPPORTED_COMMAND",
1478
+ "INVALID_REQUEST",
1479
+ "INTERNAL"
1480
+ ]
1481
+ },
1482
+ "message": {
1483
+ "type": "string"
1484
+ },
1485
+ "stackTrace": {
1486
+ "type": "string"
1487
+ },
1488
+ "buildId": {
1489
+ "type": "string"
1490
+ }
1491
+ }
1492
+ },
1493
+ "payload_WORKFLOW_TASK_TIMED_OUT": {
1494
+ "type": "object",
1495
+ "required": [
1496
+ "taskId",
1497
+ "attempt"
1498
+ ],
1499
+ "properties": {
1500
+ "taskId": {
1501
+ "type": "string",
1502
+ "minLength": 1,
1503
+ "maxLength": 256
1504
+ },
1505
+ "attempt": {
1506
+ "type": "integer",
1507
+ "minimum": 1
1508
+ }
1509
+ }
1510
+ },
1511
+ "payload_ACTIVITY_SCHEDULED": {
1512
+ "type": "object",
1513
+ "required": [
1514
+ "activityId",
1515
+ "kind",
1516
+ "nodeType",
1517
+ "operation",
1518
+ "args",
1519
+ "retry"
1520
+ ],
1521
+ "properties": {
1522
+ "headers": {
1523
+ "$ref": "#/$defs/headers"
1524
+ },
1525
+ "activityId": {
1526
+ "type": "string",
1527
+ "minLength": 1,
1528
+ "maxLength": 256
1529
+ },
1530
+ "kind": {
1531
+ "const": "node"
1532
+ },
1533
+ "nodeType": {
1534
+ "type": "string",
1535
+ "minLength": 1,
1536
+ "maxLength": 256
1537
+ },
1538
+ "nodeVersion": {
1539
+ "type": "string"
1540
+ },
1541
+ "operation": {
1542
+ "type": "string",
1543
+ "minLength": 1,
1544
+ "maxLength": 256
1545
+ },
1546
+ "args": {},
1547
+ "connection": {
1548
+ "type": "string",
1549
+ "minLength": 1,
1550
+ "maxLength": 256
1551
+ },
1552
+ "retry": {
1553
+ "$ref": "#/$defs/retryPolicy"
1554
+ },
1555
+ "startToCloseTimeout": {
1556
+ "type": "integer",
1557
+ "minimum": 0
1558
+ },
1559
+ "scheduleToCloseTimeout": {
1560
+ "type": "integer",
1561
+ "minimum": 0
1562
+ },
1563
+ "scheduleToStartTimeout": {
1564
+ "type": "integer",
1565
+ "minimum": 0
1566
+ },
1567
+ "heartbeatTimeout": {
1568
+ "type": "integer",
1569
+ "minimum": 0
1570
+ },
1571
+ "cancellationType": {
1572
+ "enum": [
1573
+ "WAIT_CANCELLATION_COMPLETED",
1574
+ "TRY_CANCEL",
1575
+ "ABANDON"
1576
+ ]
1577
+ },
1578
+ "priority": {
1579
+ "type": "integer",
1580
+ "minimum": 1,
1581
+ "maximum": 5
1582
+ },
1583
+ "summary": {
1584
+ "type": "string",
1585
+ "maxLength": 200
1586
+ },
1587
+ "runOn": {
1588
+ "type": "string"
1589
+ }
1590
+ }
1591
+ },
1592
+ "payload_ACTIVITY_STARTED": {
1593
+ "type": "object",
1594
+ "required": [
1595
+ "activityId",
1596
+ "attempt"
1597
+ ],
1598
+ "properties": {
1599
+ "activityId": {
1600
+ "type": "string",
1601
+ "minLength": 1,
1602
+ "maxLength": 256
1603
+ },
1604
+ "attempt": {
1605
+ "type": "integer",
1606
+ "minimum": 1
1607
+ },
1608
+ "workerId": {
1609
+ "type": "string"
1610
+ }
1611
+ }
1612
+ },
1613
+ "payload_ACTIVITY_HEARTBEAT": {
1614
+ "type": "object",
1615
+ "required": [
1616
+ "activityId"
1617
+ ],
1618
+ "properties": {
1619
+ "activityId": {
1620
+ "type": "string",
1621
+ "minLength": 1,
1622
+ "maxLength": 256
1623
+ },
1624
+ "details": {}
1625
+ }
1626
+ },
1627
+ "payload_ACTIVITY_COMPLETED": {
1628
+ "type": "object",
1629
+ "required": [
1630
+ "activityId",
1631
+ "attempt"
1632
+ ],
1633
+ "properties": {
1634
+ "activityId": {
1635
+ "type": "string",
1636
+ "minLength": 1,
1637
+ "maxLength": 256
1638
+ },
1639
+ "attempt": {
1640
+ "type": "integer",
1641
+ "minimum": 1
1642
+ },
1643
+ "result": {}
1644
+ }
1645
+ },
1646
+ "payload_ACTIVITY_FAILED": {
1647
+ "type": "object",
1648
+ "required": [
1649
+ "activityId",
1650
+ "attempt",
1651
+ "failure"
1652
+ ],
1653
+ "properties": {
1654
+ "activityId": {
1655
+ "type": "string",
1656
+ "minLength": 1,
1657
+ "maxLength": 256
1658
+ },
1659
+ "attempt": {
1660
+ "type": "integer",
1661
+ "minimum": 1
1662
+ },
1663
+ "failure": {
1664
+ "$ref": "#/$defs/failure"
1665
+ }
1666
+ }
1667
+ },
1668
+ "payload_ACTIVITY_TIMED_OUT": {
1669
+ "type": "object",
1670
+ "required": [
1671
+ "activityId",
1672
+ "attempt",
1673
+ "timeoutType"
1674
+ ],
1675
+ "properties": {
1676
+ "activityId": {
1677
+ "type": "string",
1678
+ "minLength": 1,
1679
+ "maxLength": 256
1680
+ },
1681
+ "attempt": {
1682
+ "type": "integer",
1683
+ "minimum": 1
1684
+ },
1685
+ "timeoutType": {
1686
+ "enum": [
1687
+ "START_TO_CLOSE",
1688
+ "SCHEDULE_TO_START",
1689
+ "SCHEDULE_TO_CLOSE",
1690
+ "HEARTBEAT"
1691
+ ]
1692
+ },
1693
+ "failure": {
1694
+ "$ref": "#/$defs/failure"
1695
+ }
1696
+ }
1697
+ },
1698
+ "payload_ACTIVITY_CANCEL_REQUESTED": {
1699
+ "type": "object",
1700
+ "required": [
1701
+ "activityId"
1702
+ ],
1703
+ "properties": {
1704
+ "activityId": {
1705
+ "type": "string",
1706
+ "minLength": 1,
1707
+ "maxLength": 256
1708
+ }
1709
+ }
1710
+ },
1711
+ "payload_ACTIVITY_CANCELLED": {
1712
+ "type": "object",
1713
+ "required": [
1714
+ "activityId"
1715
+ ],
1716
+ "properties": {
1717
+ "activityId": {
1718
+ "type": "string",
1719
+ "minLength": 1,
1720
+ "maxLength": 256
1721
+ },
1722
+ "details": {}
1723
+ }
1724
+ },
1725
+ "payload_ACTIVITY_PAUSED": {
1726
+ "type": "object",
1727
+ "required": [
1728
+ "activityId"
1729
+ ],
1730
+ "properties": {
1731
+ "activityId": {
1732
+ "type": "string",
1733
+ "minLength": 1,
1734
+ "maxLength": 256
1735
+ },
1736
+ "reason": {
1737
+ "type": "string"
1738
+ }
1739
+ }
1740
+ },
1741
+ "payload_ACTIVITY_UNPAUSED": {
1742
+ "type": "object",
1743
+ "required": [
1744
+ "activityId"
1745
+ ],
1746
+ "properties": {
1747
+ "activityId": {
1748
+ "type": "string",
1749
+ "minLength": 1,
1750
+ "maxLength": 256
1751
+ }
1752
+ }
1753
+ },
1754
+ "payload_ACTIVITY_RESET": {
1755
+ "type": "object",
1756
+ "required": [
1757
+ "activityId"
1758
+ ],
1759
+ "properties": {
1760
+ "activityId": {
1761
+ "type": "string",
1762
+ "minLength": 1,
1763
+ "maxLength": 256
1764
+ }
1765
+ }
1766
+ },
1767
+ "payload_ACTIVITY_OPTIONS_UPDATED": {
1768
+ "type": "object",
1769
+ "required": [
1770
+ "activityId"
1771
+ ],
1772
+ "properties": {
1773
+ "activityId": {
1774
+ "type": "string",
1775
+ "minLength": 1,
1776
+ "maxLength": 256
1777
+ },
1778
+ "options": {
1779
+ "type": "object"
1780
+ }
1781
+ }
1782
+ },
1783
+ "payload_TIMER_STARTED": {
1784
+ "type": "object",
1785
+ "required": [
1786
+ "timerId",
1787
+ "durationMs",
1788
+ "fireAt"
1789
+ ],
1790
+ "properties": {
1791
+ "timerId": {
1792
+ "type": "string",
1793
+ "minLength": 1,
1794
+ "maxLength": 256
1795
+ },
1796
+ "durationMs": {
1797
+ "type": "integer",
1798
+ "minimum": 1
1799
+ },
1800
+ "fireAt": {
1801
+ "type": "string"
1802
+ },
1803
+ "summary": {
1804
+ "type": "string"
1805
+ }
1806
+ }
1807
+ },
1808
+ "payload_TIMER_FIRED": {
1809
+ "type": "object",
1810
+ "required": [
1811
+ "timerId"
1812
+ ],
1813
+ "properties": {
1814
+ "timerId": {
1815
+ "type": "string",
1816
+ "minLength": 1,
1817
+ "maxLength": 256
1818
+ }
1819
+ }
1820
+ },
1821
+ "payload_TIMER_CANCELLED": {
1822
+ "type": "object",
1823
+ "required": [
1824
+ "timerId"
1825
+ ],
1826
+ "properties": {
1827
+ "timerId": {
1828
+ "type": "string",
1829
+ "minLength": 1,
1830
+ "maxLength": 256
1831
+ }
1832
+ }
1833
+ },
1834
+ "payload_SIGNAL_RECEIVED": {
1835
+ "type": "object",
1836
+ "required": [
1837
+ "name"
1838
+ ],
1839
+ "properties": {
1840
+ "name": {
1841
+ "type": "string",
1842
+ "minLength": 1,
1843
+ "maxLength": 256
1844
+ },
1845
+ "payload": {},
1846
+ "receivedAt": {
1847
+ "type": "string"
1848
+ },
1849
+ "actor": {},
1850
+ "idempotencyKey": {
1851
+ "type": "string"
1852
+ }
1853
+ }
1854
+ },
1855
+ "payload_UPDATE_ADMITTED": {
1856
+ "type": "object",
1857
+ "required": [
1858
+ "updateId",
1859
+ "name"
1860
+ ],
1861
+ "properties": {
1862
+ "updateId": {
1863
+ "type": "string",
1864
+ "minLength": 1,
1865
+ "maxLength": 256
1866
+ },
1867
+ "name": {
1868
+ "type": "string",
1869
+ "minLength": 1,
1870
+ "maxLength": 256
1871
+ },
1872
+ "args": {}
1873
+ }
1874
+ },
1875
+ "payload_UPDATE_ACCEPTED": {
1876
+ "type": "object",
1877
+ "required": [
1878
+ "updateId",
1879
+ "name"
1880
+ ],
1881
+ "properties": {
1882
+ "updateId": {
1883
+ "type": "string",
1884
+ "minLength": 1,
1885
+ "maxLength": 256
1886
+ },
1887
+ "name": {
1888
+ "type": "string",
1889
+ "minLength": 1,
1890
+ "maxLength": 256
1891
+ },
1892
+ "args": {}
1893
+ }
1894
+ },
1895
+ "payload_UPDATE_COMPLETED": {
1896
+ "type": "object",
1897
+ "required": [
1898
+ "updateId"
1899
+ ],
1900
+ "properties": {
1901
+ "updateId": {
1902
+ "type": "string",
1903
+ "minLength": 1,
1904
+ "maxLength": 256
1905
+ },
1906
+ "result": {},
1907
+ "failure": {
1908
+ "$ref": "#/$defs/failure"
1909
+ }
1910
+ }
1911
+ },
1912
+ "payload_CHILD_RUN_INITIATED": {
1913
+ "type": "object",
1914
+ "required": [
1915
+ "childId",
1916
+ "input",
1917
+ "options"
1918
+ ],
1919
+ "properties": {
1920
+ "childId": {
1921
+ "type": "string",
1922
+ "minLength": 1,
1923
+ "maxLength": 256
1924
+ },
1925
+ "workflowKey": {
1926
+ "type": "string",
1927
+ "minLength": 1,
1928
+ "maxLength": 256
1929
+ },
1930
+ "workflowFn": {
1931
+ "type": "string",
1932
+ "minLength": 1,
1933
+ "maxLength": 256
1934
+ },
1935
+ "version": {
1936
+ "type": "string"
1937
+ },
1938
+ "input": {},
1939
+ "options": {
1940
+ "$ref": "#/$defs/childOptions"
1941
+ },
1942
+ "childRunId": {
1943
+ "type": "string"
1944
+ },
1945
+ "executionKind": {
1946
+ "enum": [
1947
+ "GRAPH",
1948
+ "DURABLE_FN"
1949
+ ]
1950
+ }
1951
+ }
1952
+ },
1953
+ "payload_CHILD_RUN_STARTED": {
1954
+ "type": "object",
1955
+ "required": [
1956
+ "childId",
1957
+ "childRunId"
1958
+ ],
1959
+ "properties": {
1960
+ "childId": {
1961
+ "type": "string",
1962
+ "minLength": 1,
1963
+ "maxLength": 256
1964
+ },
1965
+ "childRunId": {
1966
+ "type": "string",
1967
+ "minLength": 1,
1968
+ "maxLength": 256
1969
+ },
1970
+ "executionKind": {
1971
+ "enum": [
1972
+ "GRAPH",
1973
+ "DURABLE_FN"
1974
+ ]
1975
+ }
1976
+ }
1977
+ },
1978
+ "payload_CHILD_RUN_COMPLETED": {
1979
+ "type": "object",
1980
+ "required": [
1981
+ "childId"
1982
+ ],
1983
+ "properties": {
1984
+ "childId": {
1985
+ "type": "string",
1986
+ "minLength": 1,
1987
+ "maxLength": 256
1988
+ },
1989
+ "childRunId": {
1990
+ "type": "string",
1991
+ "minLength": 1,
1992
+ "maxLength": 256
1993
+ },
1994
+ "result": {}
1995
+ }
1996
+ },
1997
+ "payload_CHILD_RUN_FAILED": {
1998
+ "type": "object",
1999
+ "required": [
2000
+ "childId",
2001
+ "failure"
2002
+ ],
2003
+ "properties": {
2004
+ "childId": {
2005
+ "type": "string",
2006
+ "minLength": 1,
2007
+ "maxLength": 256
2008
+ },
2009
+ "childRunId": {
2010
+ "type": "string",
2011
+ "minLength": 1,
2012
+ "maxLength": 256
2013
+ },
2014
+ "failure": {
2015
+ "$ref": "#/$defs/failure"
2016
+ }
2017
+ }
2018
+ },
2019
+ "payload_CHILD_RUN_CANCELLED": {
2020
+ "type": "object",
2021
+ "required": [
2022
+ "childId"
2023
+ ],
2024
+ "properties": {
2025
+ "childId": {
2026
+ "type": "string",
2027
+ "minLength": 1,
2028
+ "maxLength": 256
2029
+ },
2030
+ "childRunId": {
2031
+ "type": "string",
2032
+ "minLength": 1,
2033
+ "maxLength": 256
2034
+ }
2035
+ }
2036
+ },
2037
+ "payload_CHILD_RUN_TERMINATED": {
2038
+ "type": "object",
2039
+ "required": [
2040
+ "childId"
2041
+ ],
2042
+ "properties": {
2043
+ "childId": {
2044
+ "type": "string",
2045
+ "minLength": 1,
2046
+ "maxLength": 256
2047
+ },
2048
+ "childRunId": {
2049
+ "type": "string",
2050
+ "minLength": 1,
2051
+ "maxLength": 256
2052
+ },
2053
+ "reason": {
2054
+ "type": "string"
2055
+ }
2056
+ }
2057
+ },
2058
+ "payload_CHILD_RUN_TIMED_OUT": {
2059
+ "type": "object",
2060
+ "required": [
2061
+ "childId"
2062
+ ],
2063
+ "properties": {
2064
+ "childId": {
2065
+ "type": "string",
2066
+ "minLength": 1,
2067
+ "maxLength": 256
2068
+ },
2069
+ "childRunId": {
2070
+ "type": "string",
2071
+ "minLength": 1,
2072
+ "maxLength": 256
2073
+ },
2074
+ "timeoutType": {
2075
+ "enum": [
2076
+ "WORKFLOW_RUN",
2077
+ "WORKFLOW_EXECUTION"
2078
+ ]
2079
+ }
2080
+ }
2081
+ },
2082
+ "payload_EXTERNAL_RUN_CANCEL_REQUESTED": {
2083
+ "type": "object",
2084
+ "required": [
2085
+ "externalId",
2086
+ "target"
2087
+ ],
2088
+ "properties": {
2089
+ "externalId": {
2090
+ "type": "string",
2091
+ "minLength": 1,
2092
+ "maxLength": 256
2093
+ },
2094
+ "target": {
2095
+ "$ref": "#/$defs/runTarget"
2096
+ }
2097
+ }
2098
+ },
2099
+ "payload_EXTERNAL_RUN_CANCEL_RESOLVED": {
2100
+ "type": "object",
2101
+ "required": [
2102
+ "externalId",
2103
+ "ok"
2104
+ ],
2105
+ "properties": {
2106
+ "externalId": {
2107
+ "type": "string",
2108
+ "minLength": 1,
2109
+ "maxLength": 256
2110
+ },
2111
+ "ok": {
2112
+ "type": "boolean"
2113
+ },
2114
+ "targetRunId": {
2115
+ "type": "string"
2116
+ },
2117
+ "failure": {
2118
+ "$ref": "#/$defs/failure"
2119
+ }
2120
+ }
2121
+ },
2122
+ "payload_EXTERNAL_RUN_SIGNALED": {
2123
+ "type": "object",
2124
+ "required": [
2125
+ "externalId"
2126
+ ],
2127
+ "description": "Two forms. Initiated (appended for the SIGNAL_RUN command): {externalId, target, name, payload}. Resolved (appended by the service after delivery, dedupeKey signal-out:<runId>:<externalId>): {externalId, resolved: true, ok, failure?, targetRunId?}.",
2128
+ "properties": {
2129
+ "externalId": {
2130
+ "type": "string",
2131
+ "minLength": 1,
2132
+ "maxLength": 256
2133
+ },
2134
+ "target": {
2135
+ "$ref": "#/$defs/runTarget"
2136
+ },
2137
+ "name": {
2138
+ "type": "string",
2139
+ "minLength": 1,
2140
+ "maxLength": 256
2141
+ },
2142
+ "payload": {},
2143
+ "resolved": {
2144
+ "const": true
2145
+ },
2146
+ "ok": {
2147
+ "type": "boolean"
2148
+ },
2149
+ "targetRunId": {
2150
+ "type": "string"
2151
+ },
2152
+ "failure": {
2153
+ "$ref": "#/$defs/failure"
2154
+ }
2155
+ },
2156
+ "if": {
2157
+ "required": [
2158
+ "resolved"
2159
+ ]
2160
+ },
2161
+ "then": {
2162
+ "required": [
2163
+ "ok"
2164
+ ]
2165
+ },
2166
+ "else": {
2167
+ "required": [
2168
+ "target",
2169
+ "name"
2170
+ ]
2171
+ }
2172
+ },
2173
+ "payload_SIDE_EFFECT_RECORDED": {
2174
+ "type": "object",
2175
+ "required": [
2176
+ "sideEffectId",
2177
+ "value"
2178
+ ],
2179
+ "properties": {
2180
+ "sideEffectId": {
2181
+ "type": "string",
2182
+ "minLength": 1,
2183
+ "maxLength": 256
2184
+ },
2185
+ "value": {}
2186
+ }
2187
+ },
2188
+ "payload_LOCAL_ACTIVITY_COMPLETED": {
2189
+ "type": "object",
2190
+ "required": [
2191
+ "localActivityId",
2192
+ "attempts"
2193
+ ],
2194
+ "properties": {
2195
+ "localActivityId": {
2196
+ "type": "string",
2197
+ "minLength": 1,
2198
+ "maxLength": 256
2199
+ },
2200
+ "result": {},
2201
+ "attempts": {
2202
+ "type": "integer",
2203
+ "minimum": 1
2204
+ }
2205
+ }
2206
+ },
2207
+ "payload_LOCAL_ACTIVITY_FAILED": {
2208
+ "type": "object",
2209
+ "required": [
2210
+ "localActivityId",
2211
+ "attempts",
2212
+ "failure"
2213
+ ],
2214
+ "properties": {
2215
+ "localActivityId": {
2216
+ "type": "string",
2217
+ "minLength": 1,
2218
+ "maxLength": 256
2219
+ },
2220
+ "failure": {
2221
+ "$ref": "#/$defs/failure"
2222
+ },
2223
+ "attempts": {
2224
+ "type": "integer",
2225
+ "minimum": 1
2226
+ }
2227
+ }
2228
+ },
2229
+ "payload_SEARCH_ATTRIBUTES_UPSERTED": {
2230
+ "type": "object",
2231
+ "required": [
2232
+ "attributes"
2233
+ ],
2234
+ "properties": {
2235
+ "attributes": {
2236
+ "type": "object"
2237
+ }
2238
+ }
2239
+ },
2240
+ "payload_CONTEXT_UPSERTED": {
2241
+ "type": "object",
2242
+ "required": [
2243
+ "entries"
2244
+ ],
2245
+ "properties": {
2246
+ "entries": {
2247
+ "type": "object"
2248
+ }
2249
+ }
2250
+ },
2251
+ "payload_MARKER_RECORDED": {
2252
+ "type": "object",
2253
+ "required": [
2254
+ "markerId",
2255
+ "data"
2256
+ ],
2257
+ "properties": {
2258
+ "markerId": {
2259
+ "type": "string",
2260
+ "minLength": 1,
2261
+ "maxLength": 256
2262
+ },
2263
+ "data": {}
2264
+ }
2265
+ },
2266
+ "payload_WORKFLOW_CANCEL_REQUESTED": {
2267
+ "type": "object",
2268
+ "required": [],
2269
+ "properties": {
2270
+ "actor": {},
2271
+ "reason": {
2272
+ "type": "string"
2273
+ }
2274
+ }
2275
+ },
2276
+ "payload_WORKFLOW_RESET": {
2277
+ "type": "object",
2278
+ "required": [
2279
+ "fromRunId",
2280
+ "toSeq"
2281
+ ],
2282
+ "properties": {
2283
+ "fromRunId": {
2284
+ "type": "string",
2285
+ "minLength": 1,
2286
+ "maxLength": 256
2287
+ },
2288
+ "toSeq": {
2289
+ "type": "integer",
2290
+ "minimum": 1
2291
+ },
2292
+ "reason": {
2293
+ "type": "string"
2294
+ }
2295
+ }
2296
+ },
2297
+ "payload_VERSIONING_OVERRIDE_SET": {
2298
+ "type": "object",
2299
+ "required": [
2300
+ "override"
2301
+ ],
2302
+ "properties": {
2303
+ "override": {}
2304
+ }
2305
+ },
2306
+ "payload_WORKFLOW_COMPLETED": {
2307
+ "type": "object",
2308
+ "required": [
2309
+ "output"
2310
+ ],
2311
+ "properties": {
2312
+ "output": {}
2313
+ }
2314
+ },
2315
+ "payload_WORKFLOW_FAILED": {
2316
+ "type": "object",
2317
+ "required": [
2318
+ "failure"
2319
+ ],
2320
+ "properties": {
2321
+ "failure": {
2322
+ "$ref": "#/$defs/failure"
2323
+ }
2324
+ }
2325
+ },
2326
+ "payload_WORKFLOW_CANCELLED": {
2327
+ "type": "object",
2328
+ "required": [],
2329
+ "properties": {
2330
+ "details": {}
2331
+ }
2332
+ },
2333
+ "payload_WORKFLOW_TERMINATED": {
2334
+ "type": "object",
2335
+ "required": [],
2336
+ "properties": {
2337
+ "reason": {
2338
+ "type": "string"
2339
+ },
2340
+ "actor": {}
2341
+ }
2342
+ },
2343
+ "payload_WORKFLOW_TIMED_OUT": {
2344
+ "type": "object",
2345
+ "required": [
2346
+ "timeoutType"
2347
+ ],
2348
+ "properties": {
2349
+ "timeoutType": {
2350
+ "enum": [
2351
+ "WORKFLOW_RUN",
2352
+ "WORKFLOW_EXECUTION"
2353
+ ]
2354
+ }
2355
+ }
2356
+ },
2357
+ "payload_WORKFLOW_CONTINUED_AS_NEW": {
2358
+ "type": "object",
2359
+ "required": [
2360
+ "input",
2361
+ "options"
2362
+ ],
2363
+ "properties": {
2364
+ "input": {},
2365
+ "options": {
2366
+ "type": "object"
2367
+ },
2368
+ "newRunId": {
2369
+ "type": "string"
2370
+ }
2371
+ }
2372
+ }
2373
+ }
2374
+ }