@fluidgrids/workflows 2026.1029.1 → 2026.1030.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 (118) hide show
  1. package/README.md +112 -4
  2. package/dist/{activation-CESehfYi.d.cts → activation-DqUfpHzk.d.cts} +1 -1
  3. package/dist/{activation-BnVQMv9y.d.ts → activation-xpx1oWuo.d.ts} +1 -1
  4. package/dist/{chunk-MJ5TGYVG.js → chunk-2D3MYIIF.js} +969 -153
  5. package/dist/{chunk-2B37XAFQ.cjs → chunk-3U2NU7YC.cjs} +24 -11
  6. package/dist/{chunk-NEIUQASE.cjs → chunk-4QKB4ARC.cjs} +3 -3
  7. package/dist/{chunk-GBQ33SIZ.cjs → chunk-54FLQNUM.cjs} +12 -1
  8. package/dist/{chunk-2DDULZFM.js → chunk-5HIVIV53.js} +86 -75
  9. package/dist/chunk-5MFVJM76.js +1222 -0
  10. package/dist/{chunk-EWYADREB.cjs → chunk-672KMMBK.cjs} +2 -2
  11. package/dist/{chunk-KXJDRQ6G.js → chunk-6A2FGSUS.js} +22 -2
  12. package/dist/{chunk-OIX4O6UR.js → chunk-6OLN6BMB.js} +16 -3
  13. package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
  14. package/dist/chunk-A5SXCA62.cjs +93 -0
  15. package/dist/chunk-AC6ZEXVR.js +85 -0
  16. package/dist/{chunk-FWBRQWRX.js → chunk-AE5Q6ZAJ.js} +167 -10
  17. package/dist/{chunk-7ILGCUI6.js → chunk-C4F5KJTI.js} +142 -3
  18. package/dist/{chunk-WXXNCHUY.js → chunk-G5H32GIG.js} +1 -1
  19. package/dist/{chunk-OMY3CKUZ.cjs → chunk-GEQDGUGB.cjs} +1042 -226
  20. package/dist/{chunk-25BKWR2O.js → chunk-HCM7ZC7Q.js} +1 -1
  21. package/dist/{chunk-I47EENR4.cjs → chunk-HMZUGSMU.cjs} +673 -156
  22. package/dist/{chunk-NXFBVDOI.cjs → chunk-IQPXHQQQ.cjs} +8 -4
  23. package/dist/{chunk-RUQIMTN5.cjs → chunk-ISOIA7NV.cjs} +178 -15
  24. package/dist/chunk-JSC75O5C.cjs +167 -0
  25. package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
  26. package/dist/chunk-ODZ2IAR2.cjs +1247 -0
  27. package/dist/{chunk-FQSJI5NV.js → chunk-SR7TR5KX.js} +6 -2
  28. package/dist/{chunk-OKX3FYIM.cjs → chunk-TCTE7DX5.cjs} +3 -3
  29. package/dist/{chunk-3FIDHONL.cjs → chunk-TYF56RGB.cjs} +99 -80
  30. package/dist/{chunk-J3PYFGKA.cjs → chunk-VA4OFR72.cjs} +162 -4
  31. package/dist/chunk-VU5S5A7V.js +150 -0
  32. package/dist/{chunk-A36CCOWS.js → chunk-YEHR4NNE.js} +633 -128
  33. package/dist/{chunk-ELL2RBML.cjs → chunk-ZCGKGDCL.cjs} +23 -1
  34. package/dist/codegen/index.d.cts +2 -2
  35. package/dist/codegen/index.d.ts +2 -2
  36. package/dist/{collect-BTHjQaSp.d.ts → collect-6NIEufHd.d.ts} +20 -3
  37. package/dist/{collect-CSyOg5XC.d.cts → collect-CcTCKqx6.d.cts} +20 -3
  38. package/dist/{file-cgL9l9l8.d.cts → file-BxYpwjRQ.d.cts} +250 -15
  39. package/dist/{file-olQudcx5.d.ts → file-CFdPQJI9.d.ts} +250 -15
  40. package/dist/history/index.cjs +283 -106
  41. package/dist/history/index.d.cts +549 -10
  42. package/dist/history/index.d.ts +549 -10
  43. package/dist/history/index.js +5 -4
  44. package/dist/index.cjs +146 -53
  45. package/dist/index.d.cts +38 -14
  46. package/dist/index.d.ts +38 -14
  47. package/dist/index.js +6 -5
  48. package/dist/interceptors-CNcr2dlk.d.ts +159 -0
  49. package/dist/interceptors-CqkNZVfI.d.cts +159 -0
  50. package/dist/ir/index.cjs +339 -36
  51. package/dist/ir/index.d.cts +244 -8
  52. package/dist/ir/index.d.ts +244 -8
  53. package/dist/ir/index.js +306 -21
  54. package/dist/{lower-3S6PsqjJ.d.cts → lower-BtRfIW2A.d.cts} +23 -9
  55. package/dist/{lower-DmZpQ8hJ.d.ts → lower-CpsMFOFX.d.ts} +23 -9
  56. package/dist/{manifest-BJjrQt77.d.ts → manifest-D-I_twys.d.ts} +1 -1
  57. package/dist/{manifest-gRI2Q5Fj.d.cts → manifest-DahBQVM8.d.cts} +1 -1
  58. package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
  59. package/dist/node-evaluator-LEEVD7H7.js +14 -0
  60. package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
  61. package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
  62. package/dist/quickjs/index.cjs +27 -27
  63. package/dist/quickjs/index.d.cts +6 -6
  64. package/dist/quickjs/index.d.ts +6 -6
  65. package/dist/quickjs/index.js +9 -9
  66. package/dist/roundtrip/index.cjs +72 -66
  67. package/dist/roundtrip/index.d.cts +25 -11
  68. package/dist/roundtrip/index.d.ts +25 -11
  69. package/dist/roundtrip/index.js +13 -11
  70. package/dist/runtime/index.cjs +19 -19
  71. package/dist/runtime/index.d.cts +139 -12
  72. package/dist/runtime/index.d.ts +139 -12
  73. package/dist/runtime/index.js +6 -6
  74. package/dist/testing/index.cjs +688 -121
  75. package/dist/testing/index.d.cts +174 -10
  76. package/dist/testing/index.d.ts +174 -10
  77. package/dist/testing/index.js +646 -82
  78. package/dist/{types-CnIOinoz.d.ts → types-Bv2i4cBX.d.cts} +126 -23
  79. package/dist/{types-CQKOhPTa.d.cts → types-DGx-b9eq.d.ts} +126 -23
  80. package/dist/{types-Bb2wRnJ5.d.cts → types-V7jEEUaL.d.cts} +1 -1
  81. package/dist/{types-Bb2wRnJ5.d.ts → types-V7jEEUaL.d.ts} +1 -1
  82. package/dist/{workflow-8uRU9rhL.d.ts → workflow-B18OeF7g.d.ts} +2 -2
  83. package/dist/{workflow-DWTPHFbt.d.ts → workflow-BGnv8SS6.d.ts} +261 -14
  84. package/dist/{workflow-CZOXUlQ5.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
  85. package/dist/{workflow-O6e64ZcG.d.cts → workflow-DS32Gtws.d.cts} +261 -14
  86. package/fixtures/histories/activity-options-updated.history.json +159 -0
  87. package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
  88. package/fixtures/histories/codec-opaque.history.json +229 -0
  89. package/fixtures/histories/dynamic-workflow.history.json +150 -0
  90. package/fixtures/histories/interceptor-headers.history.json +339 -0
  91. package/fixtures/histories/query-custom.history.json +213 -0
  92. package/fixtures/histories/query-default-handler.history.json +120 -0
  93. package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
  94. package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -0
  95. package/fixtures/histories/search-attributes-upserted.history.json +177 -0
  96. package/fixtures/histories/update-accepted-completed.history.json +45 -30
  97. package/fixtures/histories/update-default-handler.history.json +246 -0
  98. package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
  99. package/fixtures/histories/update-not-handled.history.json +138 -0
  100. package/fixtures/histories/update-rejected-no-event.history.json +190 -0
  101. package/fixtures/histories/update-with-start-admitted.history.json +150 -0
  102. package/fixtures/histories/user-activity-cancel.history.json +149 -0
  103. package/fixtures/histories/user-activity-retry.history.json +143 -0
  104. package/fixtures/histories/user-activity.history.json +149 -0
  105. package/package.json +1 -1
  106. package/schema/bridge-v2.schema.json +1062 -0
  107. package/schema/history-file.schema.json +255 -81
  108. package/schema/ir-v2.schema.json +246 -1
  109. package/schema/payload-fields.json +162 -0
  110. package/schema/run-event.schema.json +239 -80
  111. package/schema/workflow-command.schema.json +210 -84
  112. package/schema/workflow-task.schema.json +532 -167
  113. package/dist/chunk-6QPOJZT6.cjs +0 -1180
  114. package/dist/chunk-A2OHX3UQ.js +0 -1156
  115. package/dist/chunk-PWIUEWC3.js +0 -81
  116. package/dist/chunk-YHBVMOMK.cjs +0 -87
  117. package/dist/node-evaluator-SOADN23V.js +0 -14
  118. package/dist/node-evaluator-YGDEXK4U.cjs +0 -24
@@ -0,0 +1,162 @@
1
+ {
2
+ "format": "fluidgrids.payload-fields",
3
+ "formatVersion": 2,
4
+ "description": "JSON pointers of user payloads per event type (relative to the payload) and per command type (relative to the command). `events` and `commands` are plain payload pointers. `eventFailures` and `commandFailures` point at failure objects: the payloads of a failure are the `failure.payloads` pointers relative to it, and the same rule applies again to the failure at `failure.cause` (recursively, to the end of the cause chain). Payload codecs and the at-rest envelope apply to these pointers only; everything else stays in clear text. A value that is not plain JSON is carried as {\"$fgp\": 1, \"encoding\", \"metadata\"?, \"data\" (base64)}.",
5
+ "encodedMarker": "$fgp",
6
+ "encodedVersion": 1,
7
+ "encodings": [
8
+ "json/plain",
9
+ "binary/plain",
10
+ "binary/encrypted",
11
+ "kms/envelope"
12
+ ],
13
+ "events": {
14
+ "WORKFLOW_STARTED": [
15
+ "/input",
16
+ "/lastCompletionResult",
17
+ "/context"
18
+ ],
19
+ "ACTIVITY_SCHEDULED": [
20
+ "/args"
21
+ ],
22
+ "ACTIVITY_HEARTBEAT": [
23
+ "/details"
24
+ ],
25
+ "ACTIVITY_COMPLETED": [
26
+ "/result"
27
+ ],
28
+ "ACTIVITY_CANCELLED": [
29
+ "/details"
30
+ ],
31
+ "SIGNAL_RECEIVED": [
32
+ "/payload"
33
+ ],
34
+ "UPDATE_ADMITTED": [
35
+ "/args"
36
+ ],
37
+ "UPDATE_ACCEPTED": [
38
+ "/args"
39
+ ],
40
+ "UPDATE_COMPLETED": [
41
+ "/result"
42
+ ],
43
+ "CHILD_RUN_INITIATED": [
44
+ "/input",
45
+ "/options/context"
46
+ ],
47
+ "CHILD_RUN_COMPLETED": [
48
+ "/result"
49
+ ],
50
+ "EXTERNAL_RUN_SIGNALED": [
51
+ "/payload"
52
+ ],
53
+ "SIDE_EFFECT_RECORDED": [
54
+ "/value"
55
+ ],
56
+ "LOCAL_ACTIVITY_COMPLETED": [
57
+ "/result"
58
+ ],
59
+ "CONTEXT_UPSERTED": [
60
+ "/entries"
61
+ ],
62
+ "MARKER_RECORDED": [
63
+ "/data/currentDetails"
64
+ ],
65
+ "WORKFLOW_COMPLETED": [
66
+ "/output"
67
+ ],
68
+ "WORKFLOW_CANCELLED": [
69
+ "/details"
70
+ ],
71
+ "WORKFLOW_CONTINUED_AS_NEW": [
72
+ "/input",
73
+ "/options/context"
74
+ ]
75
+ },
76
+ "commands": {
77
+ "SCHEDULE_ACTIVITY": [
78
+ "/args"
79
+ ],
80
+ "START_CHILD_RUN": [
81
+ "/input",
82
+ "/options/context"
83
+ ],
84
+ "SIGNAL_RUN": [
85
+ "/payload"
86
+ ],
87
+ "RECORD_SIDE_EFFECT": [
88
+ "/value"
89
+ ],
90
+ "RECORD_MARKER": [
91
+ "/data/currentDetails"
92
+ ],
93
+ "COMPLETE_WORKFLOW": [
94
+ "/output"
95
+ ],
96
+ "UPSERT_CONTEXT": [
97
+ "/entries"
98
+ ],
99
+ "RECORD_LOCAL_ACTIVITY": [
100
+ "/result"
101
+ ],
102
+ "CONTINUE_AS_NEW": [
103
+ "/input",
104
+ "/options/context"
105
+ ],
106
+ "COMPLETE_UPDATE": [
107
+ "/result"
108
+ ]
109
+ },
110
+ "eventFailures": {
111
+ "WORKFLOW_STARTED": [
112
+ "/lastFailure"
113
+ ],
114
+ "ACTIVITY_FAILED": [
115
+ "/failure"
116
+ ],
117
+ "ACTIVITY_TIMED_OUT": [
118
+ "/failure"
119
+ ],
120
+ "UPDATE_COMPLETED": [
121
+ "/failure"
122
+ ],
123
+ "CHILD_RUN_FAILED": [
124
+ "/failure"
125
+ ],
126
+ "EXTERNAL_RUN_SIGNALED": [
127
+ "/failure"
128
+ ],
129
+ "EXTERNAL_RUN_CANCEL_RESOLVED": [
130
+ "/failure"
131
+ ],
132
+ "LOCAL_ACTIVITY_FAILED": [
133
+ "/failure"
134
+ ],
135
+ "WORKFLOW_FAILED": [
136
+ "/failure"
137
+ ],
138
+ "WORKFLOW_TIMED_OUT": [
139
+ "/failure"
140
+ ]
141
+ },
142
+ "commandFailures": {
143
+ "FAIL_WORKFLOW": [
144
+ "/failure"
145
+ ],
146
+ "RECORD_LOCAL_ACTIVITY": [
147
+ "/failure"
148
+ ],
149
+ "REJECT_UPDATE": [
150
+ "/failure"
151
+ ],
152
+ "COMPLETE_UPDATE": [
153
+ "/failure"
154
+ ]
155
+ },
156
+ "failure": {
157
+ "payloads": [
158
+ "/details"
159
+ ],
160
+ "cause": "/cause"
161
+ }
162
+ }
@@ -1360,6 +1360,18 @@
1360
1360
  "USE_EXISTING",
1361
1361
  "TERMINATE_EXISTING"
1362
1362
  ]
1363
+ },
1364
+ "fairnessKey": {
1365
+ "type": "string",
1366
+ "minLength": 1,
1367
+ "maxLength": 255,
1368
+ "description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
1369
+ },
1370
+ "fairnessWeight": {
1371
+ "type": "number",
1372
+ "minimum": 0.1,
1373
+ "maximum": 10,
1374
+ "description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
1363
1375
  }
1364
1376
  }
1365
1377
  },
@@ -1436,7 +1448,8 @@
1436
1448
  "type": "object",
1437
1449
  "additionalProperties": {
1438
1450
  "type": "string"
1439
- }
1451
+ },
1452
+ "description": "Interceptor headers (11 §2.10): string values; a user activity carries at most 16 KiB of JSON (checked by validateCommands)."
1440
1453
  },
1441
1454
  "payload_WORKFLOW_STARTED": {
1442
1455
  "type": "object",
@@ -1567,6 +1580,25 @@
1567
1580
  "type": "integer",
1568
1581
  "minimum": 1,
1569
1582
  "maximum": 5
1583
+ },
1584
+ "headers": {
1585
+ "$ref": "#/$defs/headers"
1586
+ },
1587
+ "searchAttributes": {
1588
+ "type": "object",
1589
+ "description": "Phase C: the search attributes the start set (11 §2.8)."
1590
+ },
1591
+ "fairnessKey": {
1592
+ "type": "string",
1593
+ "minLength": 1,
1594
+ "maxLength": 255,
1595
+ "description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
1596
+ },
1597
+ "fairnessWeight": {
1598
+ "type": "number",
1599
+ "minimum": 0.1,
1600
+ "maximum": 10,
1601
+ "description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
1570
1602
  }
1571
1603
  }
1572
1604
  },
@@ -1704,85 +1736,193 @@
1704
1736
  }
1705
1737
  },
1706
1738
  "payload_ACTIVITY_SCHEDULED": {
1707
- "type": "object",
1708
- "required": [
1709
- "activityId",
1710
- "kind",
1711
- "nodeType",
1712
- "operation",
1713
- "args",
1714
- "retry"
1715
- ],
1716
- "properties": {
1717
- "headers": {
1718
- "$ref": "#/$defs/headers"
1719
- },
1720
- "activityId": {
1721
- "type": "string",
1722
- "minLength": 1,
1723
- "maxLength": 256
1724
- },
1725
- "kind": {
1726
- "const": "node"
1727
- },
1728
- "nodeType": {
1729
- "type": "string",
1730
- "minLength": 1,
1731
- "maxLength": 256
1732
- },
1733
- "nodeVersion": {
1734
- "type": "string"
1735
- },
1736
- "operation": {
1737
- "type": "string",
1738
- "minLength": 1,
1739
- "maxLength": 256
1740
- },
1741
- "args": {},
1742
- "connection": {
1743
- "type": "string",
1744
- "minLength": 1,
1745
- "maxLength": 256
1746
- },
1747
- "retry": {
1748
- "$ref": "#/$defs/retryPolicy"
1749
- },
1750
- "startToCloseTimeout": {
1751
- "type": "integer",
1752
- "minimum": 0
1753
- },
1754
- "scheduleToCloseTimeout": {
1755
- "type": "integer",
1756
- "minimum": 0
1757
- },
1758
- "scheduleToStartTimeout": {
1759
- "type": "integer",
1760
- "minimum": 0
1761
- },
1762
- "heartbeatTimeout": {
1763
- "type": "integer",
1764
- "minimum": 0
1765
- },
1766
- "cancellationType": {
1767
- "enum": [
1768
- "WAIT_CANCELLATION_COMPLETED",
1769
- "TRY_CANCEL",
1770
- "ABANDON"
1771
- ]
1772
- },
1773
- "priority": {
1774
- "type": "integer",
1775
- "minimum": 1,
1776
- "maximum": 5
1777
- },
1778
- "summary": {
1779
- "type": "string",
1780
- "maxLength": 200
1739
+ "description": "The SCHEDULE_ACTIVITY command as the service accepted it: kind node, or kind user (Phase C) with activityName, taskQueue, fairness, connections and headers.",
1740
+ "oneOf": [
1741
+ {
1742
+ "type": "object",
1743
+ "required": [
1744
+ "activityId",
1745
+ "kind",
1746
+ "nodeType",
1747
+ "operation",
1748
+ "args",
1749
+ "retry"
1750
+ ],
1751
+ "properties": {
1752
+ "activityId": {
1753
+ "type": "string",
1754
+ "minLength": 1,
1755
+ "maxLength": 256
1756
+ },
1757
+ "args": {},
1758
+ "retry": {
1759
+ "$ref": "#/$defs/retryPolicy"
1760
+ },
1761
+ "startToCloseTimeout": {
1762
+ "type": "integer",
1763
+ "minimum": 0
1764
+ },
1765
+ "scheduleToCloseTimeout": {
1766
+ "type": "integer",
1767
+ "minimum": 0
1768
+ },
1769
+ "scheduleToStartTimeout": {
1770
+ "type": "integer",
1771
+ "minimum": 0
1772
+ },
1773
+ "heartbeatTimeout": {
1774
+ "type": "integer",
1775
+ "minimum": 0
1776
+ },
1777
+ "cancellationType": {
1778
+ "enum": [
1779
+ "WAIT_CANCELLATION_COMPLETED",
1780
+ "TRY_CANCEL",
1781
+ "ABANDON"
1782
+ ]
1783
+ },
1784
+ "priority": {
1785
+ "type": "integer",
1786
+ "minimum": 1,
1787
+ "maximum": 5
1788
+ },
1789
+ "summary": {
1790
+ "type": "string",
1791
+ "maxLength": 200
1792
+ },
1793
+ "fairnessKey": {
1794
+ "type": "string",
1795
+ "minLength": 1,
1796
+ "maxLength": 255,
1797
+ "description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
1798
+ },
1799
+ "fairnessWeight": {
1800
+ "type": "number",
1801
+ "minimum": 0.1,
1802
+ "maximum": 10,
1803
+ "description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
1804
+ },
1805
+ "kind": {
1806
+ "const": "node"
1807
+ },
1808
+ "nodeType": {
1809
+ "type": "string",
1810
+ "minLength": 1,
1811
+ "maxLength": 256
1812
+ },
1813
+ "nodeVersion": {
1814
+ "type": "string"
1815
+ },
1816
+ "operation": {
1817
+ "type": "string",
1818
+ "minLength": 1,
1819
+ "maxLength": 256
1820
+ },
1821
+ "connection": {
1822
+ "type": "string",
1823
+ "minLength": 1,
1824
+ "maxLength": 256
1825
+ },
1826
+ "runOn": {
1827
+ "type": "string"
1828
+ },
1829
+ "headers": {
1830
+ "$ref": "#/$defs/headers"
1831
+ }
1832
+ }
1781
1833
  },
1782
- "runOn": {
1783
- "type": "string"
1834
+ {
1835
+ "type": "object",
1836
+ "required": [
1837
+ "activityId",
1838
+ "kind",
1839
+ "activityName",
1840
+ "taskQueue",
1841
+ "args",
1842
+ "retry"
1843
+ ],
1844
+ "properties": {
1845
+ "activityId": {
1846
+ "type": "string",
1847
+ "minLength": 1,
1848
+ "maxLength": 256
1849
+ },
1850
+ "args": {},
1851
+ "retry": {
1852
+ "$ref": "#/$defs/retryPolicy"
1853
+ },
1854
+ "startToCloseTimeout": {
1855
+ "type": "integer",
1856
+ "minimum": 0
1857
+ },
1858
+ "scheduleToCloseTimeout": {
1859
+ "type": "integer",
1860
+ "minimum": 0
1861
+ },
1862
+ "scheduleToStartTimeout": {
1863
+ "type": "integer",
1864
+ "minimum": 0
1865
+ },
1866
+ "heartbeatTimeout": {
1867
+ "type": "integer",
1868
+ "minimum": 0
1869
+ },
1870
+ "cancellationType": {
1871
+ "enum": [
1872
+ "WAIT_CANCELLATION_COMPLETED",
1873
+ "TRY_CANCEL",
1874
+ "ABANDON"
1875
+ ]
1876
+ },
1877
+ "priority": {
1878
+ "type": "integer",
1879
+ "minimum": 1,
1880
+ "maximum": 5
1881
+ },
1882
+ "summary": {
1883
+ "type": "string",
1884
+ "maxLength": 200
1885
+ },
1886
+ "fairnessKey": {
1887
+ "type": "string",
1888
+ "minLength": 1,
1889
+ "maxLength": 255,
1890
+ "description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
1891
+ },
1892
+ "fairnessWeight": {
1893
+ "type": "number",
1894
+ "minimum": 0.1,
1895
+ "maximum": 10,
1896
+ "description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
1897
+ },
1898
+ "kind": {
1899
+ "const": "user"
1900
+ },
1901
+ "activityName": {
1902
+ "type": "string",
1903
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,127}$"
1904
+ },
1905
+ "taskQueue": {
1906
+ "type": "string",
1907
+ "pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
1908
+ },
1909
+ "connections": {
1910
+ "type": "array",
1911
+ "maxItems": 16,
1912
+ "uniqueItems": true,
1913
+ "items": {
1914
+ "type": "string",
1915
+ "minLength": 1,
1916
+ "maxLength": 256
1917
+ },
1918
+ "description": "Connection names the worker may resolve for each started attempt (H2: declared by the definition and on the worker token allow-list)."
1919
+ },
1920
+ "headers": {
1921
+ "$ref": "#/$defs/headers"
1922
+ }
1923
+ }
1784
1924
  }
1785
- }
1925
+ ]
1786
1926
  },
1787
1927
  "payload_ACTIVITY_STARTED": {
1788
1928
  "type": "object",
@@ -2044,6 +2184,9 @@
2044
2184
  "actor": {},
2045
2185
  "idempotencyKey": {
2046
2186
  "type": "string"
2187
+ },
2188
+ "headers": {
2189
+ "$ref": "#/$defs/headers"
2047
2190
  }
2048
2191
  }
2049
2192
  },
@@ -2064,7 +2207,10 @@
2064
2207
  "minLength": 1,
2065
2208
  "maxLength": 256
2066
2209
  },
2067
- "args": {}
2210
+ "args": {},
2211
+ "headers": {
2212
+ "$ref": "#/$defs/headers"
2213
+ }
2068
2214
  }
2069
2215
  },
2070
2216
  "payload_UPDATE_ACCEPTED": {
@@ -2084,7 +2230,10 @@
2084
2230
  "minLength": 1,
2085
2231
  "maxLength": 256
2086
2232
  },
2087
- "args": {}
2233
+ "args": {},
2234
+ "headers": {
2235
+ "$ref": "#/$defs/headers"
2236
+ }
2088
2237
  }
2089
2238
  },
2090
2239
  "payload_UPDATE_COMPLETED": {
@@ -2142,6 +2291,9 @@
2142
2291
  "GRAPH",
2143
2292
  "DURABLE_FN"
2144
2293
  ]
2294
+ },
2295
+ "headers": {
2296
+ "$ref": "#/$defs/headers"
2145
2297
  }
2146
2298
  }
2147
2299
  },
@@ -2512,6 +2664,13 @@
2512
2664
  },
2513
2665
  "reason": {
2514
2666
  "type": "string"
2667
+ },
2668
+ "actor": {},
2669
+ "reapplySignals": {
2670
+ "type": "boolean"
2671
+ },
2672
+ "reapplyUpdates": {
2673
+ "type": "boolean"
2515
2674
  }
2516
2675
  }
2517
2676
  },