@fluidgrids/workflows 2026.1027.1 → 2026.1028.2

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