@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.
- package/README.md +112 -4
- package/dist/{activation-CESehfYi.d.cts → activation-DqUfpHzk.d.cts} +1 -1
- package/dist/{activation-BnVQMv9y.d.ts → activation-xpx1oWuo.d.ts} +1 -1
- package/dist/{chunk-MJ5TGYVG.js → chunk-2D3MYIIF.js} +969 -153
- package/dist/{chunk-2B37XAFQ.cjs → chunk-3U2NU7YC.cjs} +24 -11
- package/dist/{chunk-NEIUQASE.cjs → chunk-4QKB4ARC.cjs} +3 -3
- package/dist/{chunk-GBQ33SIZ.cjs → chunk-54FLQNUM.cjs} +12 -1
- package/dist/{chunk-2DDULZFM.js → chunk-5HIVIV53.js} +86 -75
- package/dist/chunk-5MFVJM76.js +1222 -0
- package/dist/{chunk-EWYADREB.cjs → chunk-672KMMBK.cjs} +2 -2
- package/dist/{chunk-KXJDRQ6G.js → chunk-6A2FGSUS.js} +22 -2
- package/dist/{chunk-OIX4O6UR.js → chunk-6OLN6BMB.js} +16 -3
- package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
- package/dist/chunk-A5SXCA62.cjs +93 -0
- package/dist/chunk-AC6ZEXVR.js +85 -0
- package/dist/{chunk-FWBRQWRX.js → chunk-AE5Q6ZAJ.js} +167 -10
- package/dist/{chunk-7ILGCUI6.js → chunk-C4F5KJTI.js} +142 -3
- package/dist/{chunk-WXXNCHUY.js → chunk-G5H32GIG.js} +1 -1
- package/dist/{chunk-OMY3CKUZ.cjs → chunk-GEQDGUGB.cjs} +1042 -226
- package/dist/{chunk-25BKWR2O.js → chunk-HCM7ZC7Q.js} +1 -1
- package/dist/{chunk-I47EENR4.cjs → chunk-HMZUGSMU.cjs} +673 -156
- package/dist/{chunk-NXFBVDOI.cjs → chunk-IQPXHQQQ.cjs} +8 -4
- package/dist/{chunk-RUQIMTN5.cjs → chunk-ISOIA7NV.cjs} +178 -15
- package/dist/chunk-JSC75O5C.cjs +167 -0
- package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
- package/dist/chunk-ODZ2IAR2.cjs +1247 -0
- package/dist/{chunk-FQSJI5NV.js → chunk-SR7TR5KX.js} +6 -2
- package/dist/{chunk-OKX3FYIM.cjs → chunk-TCTE7DX5.cjs} +3 -3
- package/dist/{chunk-3FIDHONL.cjs → chunk-TYF56RGB.cjs} +99 -80
- package/dist/{chunk-J3PYFGKA.cjs → chunk-VA4OFR72.cjs} +162 -4
- package/dist/chunk-VU5S5A7V.js +150 -0
- package/dist/{chunk-A36CCOWS.js → chunk-YEHR4NNE.js} +633 -128
- package/dist/{chunk-ELL2RBML.cjs → chunk-ZCGKGDCL.cjs} +23 -1
- package/dist/codegen/index.d.cts +2 -2
- package/dist/codegen/index.d.ts +2 -2
- package/dist/{collect-BTHjQaSp.d.ts → collect-6NIEufHd.d.ts} +20 -3
- package/dist/{collect-CSyOg5XC.d.cts → collect-CcTCKqx6.d.cts} +20 -3
- package/dist/{file-cgL9l9l8.d.cts → file-BxYpwjRQ.d.cts} +250 -15
- package/dist/{file-olQudcx5.d.ts → file-CFdPQJI9.d.ts} +250 -15
- package/dist/history/index.cjs +283 -106
- package/dist/history/index.d.cts +549 -10
- package/dist/history/index.d.ts +549 -10
- package/dist/history/index.js +5 -4
- package/dist/index.cjs +146 -53
- package/dist/index.d.cts +38 -14
- package/dist/index.d.ts +38 -14
- package/dist/index.js +6 -5
- package/dist/interceptors-CNcr2dlk.d.ts +159 -0
- package/dist/interceptors-CqkNZVfI.d.cts +159 -0
- package/dist/ir/index.cjs +339 -36
- package/dist/ir/index.d.cts +244 -8
- package/dist/ir/index.d.ts +244 -8
- package/dist/ir/index.js +306 -21
- package/dist/{lower-3S6PsqjJ.d.cts → lower-BtRfIW2A.d.cts} +23 -9
- package/dist/{lower-DmZpQ8hJ.d.ts → lower-CpsMFOFX.d.ts} +23 -9
- package/dist/{manifest-BJjrQt77.d.ts → manifest-D-I_twys.d.ts} +1 -1
- package/dist/{manifest-gRI2Q5Fj.d.cts → manifest-DahBQVM8.d.cts} +1 -1
- package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
- package/dist/node-evaluator-LEEVD7H7.js +14 -0
- package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
- package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
- package/dist/quickjs/index.cjs +27 -27
- package/dist/quickjs/index.d.cts +6 -6
- package/dist/quickjs/index.d.ts +6 -6
- package/dist/quickjs/index.js +9 -9
- package/dist/roundtrip/index.cjs +72 -66
- package/dist/roundtrip/index.d.cts +25 -11
- package/dist/roundtrip/index.d.ts +25 -11
- package/dist/roundtrip/index.js +13 -11
- package/dist/runtime/index.cjs +19 -19
- package/dist/runtime/index.d.cts +139 -12
- package/dist/runtime/index.d.ts +139 -12
- package/dist/runtime/index.js +6 -6
- package/dist/testing/index.cjs +688 -121
- package/dist/testing/index.d.cts +174 -10
- package/dist/testing/index.d.ts +174 -10
- package/dist/testing/index.js +646 -82
- package/dist/{types-CnIOinoz.d.ts → types-Bv2i4cBX.d.cts} +126 -23
- package/dist/{types-CQKOhPTa.d.cts → types-DGx-b9eq.d.ts} +126 -23
- package/dist/{types-Bb2wRnJ5.d.cts → types-V7jEEUaL.d.cts} +1 -1
- package/dist/{types-Bb2wRnJ5.d.ts → types-V7jEEUaL.d.ts} +1 -1
- package/dist/{workflow-8uRU9rhL.d.ts → workflow-B18OeF7g.d.ts} +2 -2
- package/dist/{workflow-DWTPHFbt.d.ts → workflow-BGnv8SS6.d.ts} +261 -14
- package/dist/{workflow-CZOXUlQ5.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
- package/dist/{workflow-O6e64ZcG.d.cts → workflow-DS32Gtws.d.cts} +261 -14
- package/fixtures/histories/activity-options-updated.history.json +159 -0
- package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
- package/fixtures/histories/codec-opaque.history.json +229 -0
- package/fixtures/histories/dynamic-workflow.history.json +150 -0
- package/fixtures/histories/interceptor-headers.history.json +339 -0
- package/fixtures/histories/query-custom.history.json +213 -0
- package/fixtures/histories/query-default-handler.history.json +120 -0
- package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
- package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -0
- package/fixtures/histories/search-attributes-upserted.history.json +177 -0
- package/fixtures/histories/update-accepted-completed.history.json +45 -30
- package/fixtures/histories/update-default-handler.history.json +246 -0
- package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
- package/fixtures/histories/update-not-handled.history.json +138 -0
- package/fixtures/histories/update-rejected-no-event.history.json +190 -0
- package/fixtures/histories/update-with-start-admitted.history.json +150 -0
- package/fixtures/histories/user-activity-cancel.history.json +149 -0
- package/fixtures/histories/user-activity-retry.history.json +143 -0
- package/fixtures/histories/user-activity.history.json +149 -0
- package/package.json +1 -1
- package/schema/bridge-v2.schema.json +1062 -0
- package/schema/history-file.schema.json +255 -81
- package/schema/ir-v2.schema.json +246 -1
- package/schema/payload-fields.json +162 -0
- package/schema/run-event.schema.json +239 -80
- package/schema/workflow-command.schema.json +210 -84
- package/schema/workflow-task.schema.json +532 -167
- package/dist/chunk-6QPOJZT6.cjs +0 -1180
- package/dist/chunk-A2OHX3UQ.js +0 -1156
- package/dist/chunk-PWIUEWC3.js +0 -81
- package/dist/chunk-YHBVMOMK.cjs +0 -87
- package/dist/node-evaluator-SOADN23V.js +0 -14
- package/dist/node-evaluator-YGDEXK4U.cjs +0 -24
|
@@ -330,6 +330,18 @@
|
|
|
330
330
|
"USE_EXISTING",
|
|
331
331
|
"TERMINATE_EXISTING"
|
|
332
332
|
]
|
|
333
|
+
},
|
|
334
|
+
"fairnessKey": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"minLength": 1,
|
|
337
|
+
"maxLength": 255,
|
|
338
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
339
|
+
},
|
|
340
|
+
"fairnessWeight": {
|
|
341
|
+
"type": "number",
|
|
342
|
+
"minimum": 0.1,
|
|
343
|
+
"maximum": 10,
|
|
344
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
333
345
|
}
|
|
334
346
|
}
|
|
335
347
|
},
|
|
@@ -406,7 +418,8 @@
|
|
|
406
418
|
"type": "object",
|
|
407
419
|
"additionalProperties": {
|
|
408
420
|
"type": "string"
|
|
409
|
-
}
|
|
421
|
+
},
|
|
422
|
+
"description": "Interceptor headers (11 §2.10): string values; a user activity carries at most 16 KiB of JSON (checked by validateCommands)."
|
|
410
423
|
},
|
|
411
424
|
"payload_WORKFLOW_STARTED": {
|
|
412
425
|
"type": "object",
|
|
@@ -537,6 +550,25 @@
|
|
|
537
550
|
"type": "integer",
|
|
538
551
|
"minimum": 1,
|
|
539
552
|
"maximum": 5
|
|
553
|
+
},
|
|
554
|
+
"headers": {
|
|
555
|
+
"$ref": "#/$defs/headers"
|
|
556
|
+
},
|
|
557
|
+
"searchAttributes": {
|
|
558
|
+
"type": "object",
|
|
559
|
+
"description": "Phase C: the search attributes the start set (11 §2.8)."
|
|
560
|
+
},
|
|
561
|
+
"fairnessKey": {
|
|
562
|
+
"type": "string",
|
|
563
|
+
"minLength": 1,
|
|
564
|
+
"maxLength": 255,
|
|
565
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
566
|
+
},
|
|
567
|
+
"fairnessWeight": {
|
|
568
|
+
"type": "number",
|
|
569
|
+
"minimum": 0.1,
|
|
570
|
+
"maximum": 10,
|
|
571
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
540
572
|
}
|
|
541
573
|
}
|
|
542
574
|
},
|
|
@@ -674,85 +706,193 @@
|
|
|
674
706
|
}
|
|
675
707
|
},
|
|
676
708
|
"payload_ACTIVITY_SCHEDULED": {
|
|
677
|
-
"
|
|
678
|
-
"
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
709
|
+
"description": "The SCHEDULE_ACTIVITY command as the service accepted it: kind node, or kind user (Phase C) with activityName, taskQueue, fairness, connections and headers.",
|
|
710
|
+
"oneOf": [
|
|
711
|
+
{
|
|
712
|
+
"type": "object",
|
|
713
|
+
"required": [
|
|
714
|
+
"activityId",
|
|
715
|
+
"kind",
|
|
716
|
+
"nodeType",
|
|
717
|
+
"operation",
|
|
718
|
+
"args",
|
|
719
|
+
"retry"
|
|
720
|
+
],
|
|
721
|
+
"properties": {
|
|
722
|
+
"activityId": {
|
|
723
|
+
"type": "string",
|
|
724
|
+
"minLength": 1,
|
|
725
|
+
"maxLength": 256
|
|
726
|
+
},
|
|
727
|
+
"args": {},
|
|
728
|
+
"retry": {
|
|
729
|
+
"$ref": "#/$defs/retryPolicy"
|
|
730
|
+
},
|
|
731
|
+
"startToCloseTimeout": {
|
|
732
|
+
"type": "integer",
|
|
733
|
+
"minimum": 0
|
|
734
|
+
},
|
|
735
|
+
"scheduleToCloseTimeout": {
|
|
736
|
+
"type": "integer",
|
|
737
|
+
"minimum": 0
|
|
738
|
+
},
|
|
739
|
+
"scheduleToStartTimeout": {
|
|
740
|
+
"type": "integer",
|
|
741
|
+
"minimum": 0
|
|
742
|
+
},
|
|
743
|
+
"heartbeatTimeout": {
|
|
744
|
+
"type": "integer",
|
|
745
|
+
"minimum": 0
|
|
746
|
+
},
|
|
747
|
+
"cancellationType": {
|
|
748
|
+
"enum": [
|
|
749
|
+
"WAIT_CANCELLATION_COMPLETED",
|
|
750
|
+
"TRY_CANCEL",
|
|
751
|
+
"ABANDON"
|
|
752
|
+
]
|
|
753
|
+
},
|
|
754
|
+
"priority": {
|
|
755
|
+
"type": "integer",
|
|
756
|
+
"minimum": 1,
|
|
757
|
+
"maximum": 5
|
|
758
|
+
},
|
|
759
|
+
"summary": {
|
|
760
|
+
"type": "string",
|
|
761
|
+
"maxLength": 200
|
|
762
|
+
},
|
|
763
|
+
"fairnessKey": {
|
|
764
|
+
"type": "string",
|
|
765
|
+
"minLength": 1,
|
|
766
|
+
"maxLength": 255,
|
|
767
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
768
|
+
},
|
|
769
|
+
"fairnessWeight": {
|
|
770
|
+
"type": "number",
|
|
771
|
+
"minimum": 0.1,
|
|
772
|
+
"maximum": 10,
|
|
773
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
774
|
+
},
|
|
775
|
+
"kind": {
|
|
776
|
+
"const": "node"
|
|
777
|
+
},
|
|
778
|
+
"nodeType": {
|
|
779
|
+
"type": "string",
|
|
780
|
+
"minLength": 1,
|
|
781
|
+
"maxLength": 256
|
|
782
|
+
},
|
|
783
|
+
"nodeVersion": {
|
|
784
|
+
"type": "string"
|
|
785
|
+
},
|
|
786
|
+
"operation": {
|
|
787
|
+
"type": "string",
|
|
788
|
+
"minLength": 1,
|
|
789
|
+
"maxLength": 256
|
|
790
|
+
},
|
|
791
|
+
"connection": {
|
|
792
|
+
"type": "string",
|
|
793
|
+
"minLength": 1,
|
|
794
|
+
"maxLength": 256
|
|
795
|
+
},
|
|
796
|
+
"runOn": {
|
|
797
|
+
"type": "string"
|
|
798
|
+
},
|
|
799
|
+
"headers": {
|
|
800
|
+
"$ref": "#/$defs/headers"
|
|
801
|
+
}
|
|
802
|
+
}
|
|
751
803
|
},
|
|
752
|
-
|
|
753
|
-
"type": "
|
|
804
|
+
{
|
|
805
|
+
"type": "object",
|
|
806
|
+
"required": [
|
|
807
|
+
"activityId",
|
|
808
|
+
"kind",
|
|
809
|
+
"activityName",
|
|
810
|
+
"taskQueue",
|
|
811
|
+
"args",
|
|
812
|
+
"retry"
|
|
813
|
+
],
|
|
814
|
+
"properties": {
|
|
815
|
+
"activityId": {
|
|
816
|
+
"type": "string",
|
|
817
|
+
"minLength": 1,
|
|
818
|
+
"maxLength": 256
|
|
819
|
+
},
|
|
820
|
+
"args": {},
|
|
821
|
+
"retry": {
|
|
822
|
+
"$ref": "#/$defs/retryPolicy"
|
|
823
|
+
},
|
|
824
|
+
"startToCloseTimeout": {
|
|
825
|
+
"type": "integer",
|
|
826
|
+
"minimum": 0
|
|
827
|
+
},
|
|
828
|
+
"scheduleToCloseTimeout": {
|
|
829
|
+
"type": "integer",
|
|
830
|
+
"minimum": 0
|
|
831
|
+
},
|
|
832
|
+
"scheduleToStartTimeout": {
|
|
833
|
+
"type": "integer",
|
|
834
|
+
"minimum": 0
|
|
835
|
+
},
|
|
836
|
+
"heartbeatTimeout": {
|
|
837
|
+
"type": "integer",
|
|
838
|
+
"minimum": 0
|
|
839
|
+
},
|
|
840
|
+
"cancellationType": {
|
|
841
|
+
"enum": [
|
|
842
|
+
"WAIT_CANCELLATION_COMPLETED",
|
|
843
|
+
"TRY_CANCEL",
|
|
844
|
+
"ABANDON"
|
|
845
|
+
]
|
|
846
|
+
},
|
|
847
|
+
"priority": {
|
|
848
|
+
"type": "integer",
|
|
849
|
+
"minimum": 1,
|
|
850
|
+
"maximum": 5
|
|
851
|
+
},
|
|
852
|
+
"summary": {
|
|
853
|
+
"type": "string",
|
|
854
|
+
"maxLength": 200
|
|
855
|
+
},
|
|
856
|
+
"fairnessKey": {
|
|
857
|
+
"type": "string",
|
|
858
|
+
"minLength": 1,
|
|
859
|
+
"maxLength": 255,
|
|
860
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
861
|
+
},
|
|
862
|
+
"fairnessWeight": {
|
|
863
|
+
"type": "number",
|
|
864
|
+
"minimum": 0.1,
|
|
865
|
+
"maximum": 10,
|
|
866
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
867
|
+
},
|
|
868
|
+
"kind": {
|
|
869
|
+
"const": "user"
|
|
870
|
+
},
|
|
871
|
+
"activityName": {
|
|
872
|
+
"type": "string",
|
|
873
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,127}$"
|
|
874
|
+
},
|
|
875
|
+
"taskQueue": {
|
|
876
|
+
"type": "string",
|
|
877
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
|
|
878
|
+
},
|
|
879
|
+
"connections": {
|
|
880
|
+
"type": "array",
|
|
881
|
+
"maxItems": 16,
|
|
882
|
+
"uniqueItems": true,
|
|
883
|
+
"items": {
|
|
884
|
+
"type": "string",
|
|
885
|
+
"minLength": 1,
|
|
886
|
+
"maxLength": 256
|
|
887
|
+
},
|
|
888
|
+
"description": "Connection names the worker may resolve for each started attempt (H2: declared by the definition and on the worker token allow-list)."
|
|
889
|
+
},
|
|
890
|
+
"headers": {
|
|
891
|
+
"$ref": "#/$defs/headers"
|
|
892
|
+
}
|
|
893
|
+
}
|
|
754
894
|
}
|
|
755
|
-
|
|
895
|
+
]
|
|
756
896
|
},
|
|
757
897
|
"payload_ACTIVITY_STARTED": {
|
|
758
898
|
"type": "object",
|
|
@@ -1014,6 +1154,9 @@
|
|
|
1014
1154
|
"actor": {},
|
|
1015
1155
|
"idempotencyKey": {
|
|
1016
1156
|
"type": "string"
|
|
1157
|
+
},
|
|
1158
|
+
"headers": {
|
|
1159
|
+
"$ref": "#/$defs/headers"
|
|
1017
1160
|
}
|
|
1018
1161
|
}
|
|
1019
1162
|
},
|
|
@@ -1034,7 +1177,10 @@
|
|
|
1034
1177
|
"minLength": 1,
|
|
1035
1178
|
"maxLength": 256
|
|
1036
1179
|
},
|
|
1037
|
-
"args": {}
|
|
1180
|
+
"args": {},
|
|
1181
|
+
"headers": {
|
|
1182
|
+
"$ref": "#/$defs/headers"
|
|
1183
|
+
}
|
|
1038
1184
|
}
|
|
1039
1185
|
},
|
|
1040
1186
|
"payload_UPDATE_ACCEPTED": {
|
|
@@ -1054,7 +1200,10 @@
|
|
|
1054
1200
|
"minLength": 1,
|
|
1055
1201
|
"maxLength": 256
|
|
1056
1202
|
},
|
|
1057
|
-
"args": {}
|
|
1203
|
+
"args": {},
|
|
1204
|
+
"headers": {
|
|
1205
|
+
"$ref": "#/$defs/headers"
|
|
1206
|
+
}
|
|
1058
1207
|
}
|
|
1059
1208
|
},
|
|
1060
1209
|
"payload_UPDATE_COMPLETED": {
|
|
@@ -1112,6 +1261,9 @@
|
|
|
1112
1261
|
"GRAPH",
|
|
1113
1262
|
"DURABLE_FN"
|
|
1114
1263
|
]
|
|
1264
|
+
},
|
|
1265
|
+
"headers": {
|
|
1266
|
+
"$ref": "#/$defs/headers"
|
|
1115
1267
|
}
|
|
1116
1268
|
}
|
|
1117
1269
|
},
|
|
@@ -1482,6 +1634,13 @@
|
|
|
1482
1634
|
},
|
|
1483
1635
|
"reason": {
|
|
1484
1636
|
"type": "string"
|
|
1637
|
+
},
|
|
1638
|
+
"actor": {},
|
|
1639
|
+
"reapplySignals": {
|
|
1640
|
+
"type": "boolean"
|
|
1641
|
+
},
|
|
1642
|
+
"reapplyUpdates": {
|
|
1643
|
+
"type": "boolean"
|
|
1485
1644
|
}
|
|
1486
1645
|
}
|
|
1487
1646
|
},
|
|
@@ -1603,90 +1762,203 @@
|
|
|
1603
1762
|
}
|
|
1604
1763
|
},
|
|
1605
1764
|
"command_SCHEDULE_ACTIVITY": {
|
|
1606
|
-
"
|
|
1607
|
-
"
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
"
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1765
|
+
"description": "A oneOf on kind (C-CMD-C): node runs a canvas node operation; user (Phase C) runs a user activity on a self-hosted task queue.",
|
|
1766
|
+
"oneOf": [
|
|
1767
|
+
{
|
|
1768
|
+
"type": "object",
|
|
1769
|
+
"required": [
|
|
1770
|
+
"type",
|
|
1771
|
+
"activityId",
|
|
1772
|
+
"kind",
|
|
1773
|
+
"nodeType",
|
|
1774
|
+
"operation",
|
|
1775
|
+
"args",
|
|
1776
|
+
"retry"
|
|
1777
|
+
],
|
|
1778
|
+
"properties": {
|
|
1779
|
+
"type": {
|
|
1780
|
+
"const": "SCHEDULE_ACTIVITY"
|
|
1781
|
+
},
|
|
1782
|
+
"headers": {
|
|
1783
|
+
"$ref": "#/$defs/headers"
|
|
1784
|
+
},
|
|
1785
|
+
"activityId": {
|
|
1786
|
+
"type": "string",
|
|
1787
|
+
"minLength": 1,
|
|
1788
|
+
"maxLength": 256
|
|
1789
|
+
},
|
|
1790
|
+
"args": {},
|
|
1791
|
+
"retry": {
|
|
1792
|
+
"$ref": "#/$defs/retryPolicy"
|
|
1793
|
+
},
|
|
1794
|
+
"startToCloseTimeout": {
|
|
1795
|
+
"type": "integer",
|
|
1796
|
+
"minimum": 0
|
|
1797
|
+
},
|
|
1798
|
+
"scheduleToCloseTimeout": {
|
|
1799
|
+
"type": "integer",
|
|
1800
|
+
"minimum": 0
|
|
1801
|
+
},
|
|
1802
|
+
"scheduleToStartTimeout": {
|
|
1803
|
+
"type": "integer",
|
|
1804
|
+
"minimum": 0
|
|
1805
|
+
},
|
|
1806
|
+
"heartbeatTimeout": {
|
|
1807
|
+
"type": "integer",
|
|
1808
|
+
"minimum": 0
|
|
1809
|
+
},
|
|
1810
|
+
"cancellationType": {
|
|
1811
|
+
"enum": [
|
|
1812
|
+
"WAIT_CANCELLATION_COMPLETED",
|
|
1813
|
+
"TRY_CANCEL",
|
|
1814
|
+
"ABANDON"
|
|
1815
|
+
]
|
|
1816
|
+
},
|
|
1817
|
+
"priority": {
|
|
1818
|
+
"type": "integer",
|
|
1819
|
+
"minimum": 1,
|
|
1820
|
+
"maximum": 5
|
|
1821
|
+
},
|
|
1822
|
+
"summary": {
|
|
1823
|
+
"type": "string",
|
|
1824
|
+
"maxLength": 200
|
|
1825
|
+
},
|
|
1826
|
+
"fairnessKey": {
|
|
1827
|
+
"type": "string",
|
|
1828
|
+
"minLength": 1,
|
|
1829
|
+
"maxLength": 255,
|
|
1830
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
1831
|
+
},
|
|
1832
|
+
"fairnessWeight": {
|
|
1833
|
+
"type": "number",
|
|
1834
|
+
"minimum": 0.1,
|
|
1835
|
+
"maximum": 10,
|
|
1836
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
1837
|
+
},
|
|
1838
|
+
"kind": {
|
|
1839
|
+
"const": "node"
|
|
1840
|
+
},
|
|
1841
|
+
"nodeType": {
|
|
1842
|
+
"type": "string",
|
|
1843
|
+
"minLength": 1,
|
|
1844
|
+
"maxLength": 256
|
|
1845
|
+
},
|
|
1846
|
+
"nodeVersion": {
|
|
1847
|
+
"type": "string"
|
|
1848
|
+
},
|
|
1849
|
+
"operation": {
|
|
1850
|
+
"type": "string",
|
|
1851
|
+
"minLength": 1,
|
|
1852
|
+
"maxLength": 256
|
|
1853
|
+
},
|
|
1854
|
+
"connection": {
|
|
1855
|
+
"type": "string",
|
|
1856
|
+
"minLength": 1,
|
|
1857
|
+
"maxLength": 256
|
|
1858
|
+
},
|
|
1859
|
+
"runOn": {
|
|
1860
|
+
"type": "string"
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1863
|
+
"additionalProperties": false
|
|
1684
1864
|
},
|
|
1685
|
-
|
|
1686
|
-
"type": "
|
|
1865
|
+
{
|
|
1866
|
+
"type": "object",
|
|
1867
|
+
"required": [
|
|
1868
|
+
"type",
|
|
1869
|
+
"activityId",
|
|
1870
|
+
"kind",
|
|
1871
|
+
"activityName",
|
|
1872
|
+
"taskQueue",
|
|
1873
|
+
"args",
|
|
1874
|
+
"retry"
|
|
1875
|
+
],
|
|
1876
|
+
"properties": {
|
|
1877
|
+
"type": {
|
|
1878
|
+
"const": "SCHEDULE_ACTIVITY"
|
|
1879
|
+
},
|
|
1880
|
+
"headers": {
|
|
1881
|
+
"$ref": "#/$defs/headers"
|
|
1882
|
+
},
|
|
1883
|
+
"activityId": {
|
|
1884
|
+
"type": "string",
|
|
1885
|
+
"minLength": 1,
|
|
1886
|
+
"maxLength": 256
|
|
1887
|
+
},
|
|
1888
|
+
"args": {},
|
|
1889
|
+
"retry": {
|
|
1890
|
+
"$ref": "#/$defs/retryPolicy"
|
|
1891
|
+
},
|
|
1892
|
+
"startToCloseTimeout": {
|
|
1893
|
+
"type": "integer",
|
|
1894
|
+
"minimum": 0
|
|
1895
|
+
},
|
|
1896
|
+
"scheduleToCloseTimeout": {
|
|
1897
|
+
"type": "integer",
|
|
1898
|
+
"minimum": 0
|
|
1899
|
+
},
|
|
1900
|
+
"scheduleToStartTimeout": {
|
|
1901
|
+
"type": "integer",
|
|
1902
|
+
"minimum": 0
|
|
1903
|
+
},
|
|
1904
|
+
"heartbeatTimeout": {
|
|
1905
|
+
"type": "integer",
|
|
1906
|
+
"minimum": 0
|
|
1907
|
+
},
|
|
1908
|
+
"cancellationType": {
|
|
1909
|
+
"enum": [
|
|
1910
|
+
"WAIT_CANCELLATION_COMPLETED",
|
|
1911
|
+
"TRY_CANCEL",
|
|
1912
|
+
"ABANDON"
|
|
1913
|
+
]
|
|
1914
|
+
},
|
|
1915
|
+
"priority": {
|
|
1916
|
+
"type": "integer",
|
|
1917
|
+
"minimum": 1,
|
|
1918
|
+
"maximum": 5
|
|
1919
|
+
},
|
|
1920
|
+
"summary": {
|
|
1921
|
+
"type": "string",
|
|
1922
|
+
"maxLength": 200
|
|
1923
|
+
},
|
|
1924
|
+
"fairnessKey": {
|
|
1925
|
+
"type": "string",
|
|
1926
|
+
"minLength": 1,
|
|
1927
|
+
"maxLength": 255,
|
|
1928
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
1929
|
+
},
|
|
1930
|
+
"fairnessWeight": {
|
|
1931
|
+
"type": "number",
|
|
1932
|
+
"minimum": 0.1,
|
|
1933
|
+
"maximum": 10,
|
|
1934
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
1935
|
+
},
|
|
1936
|
+
"kind": {
|
|
1937
|
+
"const": "user"
|
|
1938
|
+
},
|
|
1939
|
+
"activityName": {
|
|
1940
|
+
"type": "string",
|
|
1941
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,127}$"
|
|
1942
|
+
},
|
|
1943
|
+
"taskQueue": {
|
|
1944
|
+
"type": "string",
|
|
1945
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
|
|
1946
|
+
},
|
|
1947
|
+
"connections": {
|
|
1948
|
+
"type": "array",
|
|
1949
|
+
"maxItems": 16,
|
|
1950
|
+
"uniqueItems": true,
|
|
1951
|
+
"items": {
|
|
1952
|
+
"type": "string",
|
|
1953
|
+
"minLength": 1,
|
|
1954
|
+
"maxLength": 256
|
|
1955
|
+
},
|
|
1956
|
+
"description": "Connection names the worker may resolve for each started attempt (H2: declared by the definition and on the worker token allow-list)."
|
|
1957
|
+
}
|
|
1958
|
+
},
|
|
1959
|
+
"additionalProperties": false
|
|
1687
1960
|
}
|
|
1688
|
-
|
|
1689
|
-
"additionalProperties": false
|
|
1961
|
+
]
|
|
1690
1962
|
},
|
|
1691
1963
|
"command_REQUEST_CANCEL_ACTIVITY": {
|
|
1692
1964
|
"type": "object",
|
|
@@ -3642,9 +3914,77 @@
|
|
|
3642
3914
|
},
|
|
3643
3915
|
"retry": {
|
|
3644
3916
|
"$ref": "#/$defs/runRetryPolicy"
|
|
3917
|
+
},
|
|
3918
|
+
"searchAttributes": {
|
|
3919
|
+
"type": "object"
|
|
3920
|
+
},
|
|
3921
|
+
"fairnessKey": {
|
|
3922
|
+
"type": "string",
|
|
3923
|
+
"minLength": 1,
|
|
3924
|
+
"maxLength": 255,
|
|
3925
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
3926
|
+
},
|
|
3927
|
+
"fairnessWeight": {
|
|
3928
|
+
"type": "number",
|
|
3929
|
+
"minimum": 0.1,
|
|
3930
|
+
"maximum": 10,
|
|
3931
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
3645
3932
|
}
|
|
3646
3933
|
}
|
|
3647
3934
|
},
|
|
3935
|
+
"updateRequest": {
|
|
3936
|
+
"type": "object",
|
|
3937
|
+
"required": [
|
|
3938
|
+
"updateId",
|
|
3939
|
+
"name"
|
|
3940
|
+
],
|
|
3941
|
+
"description": "Phase C (C-ABI-H): a pending update the lease delivers. admitted marks one history already holds as UPDATE_ADMITTED; the runtime delivers that one from the event.",
|
|
3942
|
+
"properties": {
|
|
3943
|
+
"updateId": {
|
|
3944
|
+
"type": "string",
|
|
3945
|
+
"minLength": 1,
|
|
3946
|
+
"maxLength": 256
|
|
3947
|
+
},
|
|
3948
|
+
"name": {
|
|
3949
|
+
"type": "string",
|
|
3950
|
+
"minLength": 1,
|
|
3951
|
+
"maxLength": 256
|
|
3952
|
+
},
|
|
3953
|
+
"args": {},
|
|
3954
|
+
"admitted": {
|
|
3955
|
+
"type": "boolean"
|
|
3956
|
+
},
|
|
3957
|
+
"headers": {
|
|
3958
|
+
"$ref": "#/$defs/headers"
|
|
3959
|
+
}
|
|
3960
|
+
},
|
|
3961
|
+
"additionalProperties": false
|
|
3962
|
+
},
|
|
3963
|
+
"sinkCall": {
|
|
3964
|
+
"type": "object",
|
|
3965
|
+
"required": [
|
|
3966
|
+
"sink",
|
|
3967
|
+
"fn",
|
|
3968
|
+
"args"
|
|
3969
|
+
],
|
|
3970
|
+
"description": "Phase C: a call of ctx.sinks.<sink>.<fn>(...args), never made on replay.",
|
|
3971
|
+
"properties": {
|
|
3972
|
+
"sink": {
|
|
3973
|
+
"type": "string",
|
|
3974
|
+
"minLength": 1,
|
|
3975
|
+
"maxLength": 256
|
|
3976
|
+
},
|
|
3977
|
+
"fn": {
|
|
3978
|
+
"type": "string",
|
|
3979
|
+
"minLength": 1,
|
|
3980
|
+
"maxLength": 256
|
|
3981
|
+
},
|
|
3982
|
+
"args": {
|
|
3983
|
+
"type": "array"
|
|
3984
|
+
}
|
|
3985
|
+
},
|
|
3986
|
+
"additionalProperties": false
|
|
3987
|
+
},
|
|
3648
3988
|
"localActivityRequest": {
|
|
3649
3989
|
"type": "object",
|
|
3650
3990
|
"required": [
|
|
@@ -3773,6 +4113,12 @@
|
|
|
3773
4113
|
}
|
|
3774
4114
|
}
|
|
3775
4115
|
},
|
|
4116
|
+
"updates": {
|
|
4117
|
+
"type": "array",
|
|
4118
|
+
"items": {
|
|
4119
|
+
"$ref": "#/$defs/updateRequest"
|
|
4120
|
+
}
|
|
4121
|
+
},
|
|
3776
4122
|
"queries": {
|
|
3777
4123
|
"type": "array",
|
|
3778
4124
|
"items": {
|
|
@@ -3788,15 +4134,23 @@
|
|
|
3788
4134
|
"maxLength": 256
|
|
3789
4135
|
},
|
|
3790
4136
|
"name": {
|
|
3791
|
-
"
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
]
|
|
4137
|
+
"type": "string",
|
|
4138
|
+
"minLength": 1,
|
|
4139
|
+
"maxLength": 256,
|
|
4140
|
+
"description": "A built-in query (__stack_trace, __enhanced_stack_trace, __metadata) or, from C-R1, the name of a custom query."
|
|
3796
4141
|
},
|
|
3797
4142
|
"args": {}
|
|
3798
4143
|
}
|
|
3799
4144
|
}
|
|
4145
|
+
},
|
|
4146
|
+
"features": {
|
|
4147
|
+
"type": "array",
|
|
4148
|
+
"items": {
|
|
4149
|
+
"type": "string",
|
|
4150
|
+
"minLength": 1
|
|
4151
|
+
},
|
|
4152
|
+
"uniqueItems": true,
|
|
4153
|
+
"description": "The bundle features (code.features names) the workspace enables for this task. From C-R1 the runtime reads `interceptors`: a task of a bundle that exports interceptors fails with UNSUPPORTED_COMMAND unless it is listed."
|
|
3800
4154
|
}
|
|
3801
4155
|
}
|
|
3802
4156
|
},
|
|
@@ -3875,10 +4229,21 @@
|
|
|
3875
4229
|
"value": {},
|
|
3876
4230
|
"error": {
|
|
3877
4231
|
"type": "string"
|
|
4232
|
+
},
|
|
4233
|
+
"rejected": {
|
|
4234
|
+
"type": "boolean",
|
|
4235
|
+
"description": "Phase C: no handler took the query name (the service answers VALIDATION)."
|
|
3878
4236
|
}
|
|
3879
4237
|
}
|
|
3880
4238
|
}
|
|
3881
4239
|
},
|
|
4240
|
+
"sinkCalls": {
|
|
4241
|
+
"type": "array",
|
|
4242
|
+
"maxItems": 256,
|
|
4243
|
+
"items": {
|
|
4244
|
+
"$ref": "#/$defs/sinkCall"
|
|
4245
|
+
}
|
|
4246
|
+
},
|
|
3882
4247
|
"failure": {
|
|
3883
4248
|
"type": "object",
|
|
3884
4249
|
"required": [
|