@sanity/workflow-engine 0.9.0 → 0.11.0
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/dist/_chunks-cjs/schema.cjs +94 -58
- package/dist/_chunks-cjs/schema.cjs.map +1 -1
- package/dist/_chunks-es/schema.js +94 -58
- package/dist/_chunks-es/schema.js.map +1 -1
- package/dist/define.cjs +109 -58
- package/dist/define.cjs.map +1 -1
- package/dist/define.d.cts +762 -384
- package/dist/define.d.ts +762 -384
- package/dist/define.js +110 -59
- package/dist/define.js.map +1 -1
- package/dist/index.cjs +290 -237
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1481 -765
- package/dist/index.d.ts +1481 -765
- package/dist/index.js +291 -238
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/define.d.ts
CHANGED
|
@@ -95,7 +95,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
95
95
|
[
|
|
96
96
|
v.StrictObjectSchema<
|
|
97
97
|
{
|
|
98
|
-
readonly type: v.LiteralSchema<"
|
|
98
|
+
readonly type: v.LiteralSchema<"field.set", undefined>;
|
|
99
99
|
readonly target: v.StrictObjectSchema<
|
|
100
100
|
{
|
|
101
101
|
readonly scope: v.OptionalSchema<
|
|
@@ -105,7 +105,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
105
105
|
>,
|
|
106
106
|
undefined
|
|
107
107
|
>;
|
|
108
|
-
readonly
|
|
108
|
+
readonly field: v.SchemaWithPipe<
|
|
109
109
|
readonly [
|
|
110
110
|
v.StringSchema<undefined>,
|
|
111
111
|
v.MinLengthAction<
|
|
@@ -124,7 +124,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
124
124
|
>,
|
|
125
125
|
v.StrictObjectSchema<
|
|
126
126
|
{
|
|
127
|
-
readonly type: v.LiteralSchema<"
|
|
127
|
+
readonly type: v.LiteralSchema<"field.unset", undefined>;
|
|
128
128
|
readonly target: v.StrictObjectSchema<
|
|
129
129
|
{
|
|
130
130
|
readonly scope: v.OptionalSchema<
|
|
@@ -134,7 +134,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
134
134
|
>,
|
|
135
135
|
undefined
|
|
136
136
|
>;
|
|
137
|
-
readonly
|
|
137
|
+
readonly field: v.SchemaWithPipe<
|
|
138
138
|
readonly [
|
|
139
139
|
v.StringSchema<undefined>,
|
|
140
140
|
v.MinLengthAction<
|
|
@@ -152,7 +152,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
152
152
|
>,
|
|
153
153
|
v.StrictObjectSchema<
|
|
154
154
|
{
|
|
155
|
-
readonly type: v.LiteralSchema<"
|
|
155
|
+
readonly type: v.LiteralSchema<"field.append", undefined>;
|
|
156
156
|
readonly target: v.StrictObjectSchema<
|
|
157
157
|
{
|
|
158
158
|
readonly scope: v.OptionalSchema<
|
|
@@ -162,7 +162,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
162
162
|
>,
|
|
163
163
|
undefined
|
|
164
164
|
>;
|
|
165
|
-
readonly
|
|
165
|
+
readonly field: v.SchemaWithPipe<
|
|
166
166
|
readonly [
|
|
167
167
|
v.StringSchema<undefined>,
|
|
168
168
|
v.MinLengthAction<
|
|
@@ -182,7 +182,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
182
182
|
v.StrictObjectSchema<
|
|
183
183
|
{
|
|
184
184
|
readonly type: v.LiteralSchema<
|
|
185
|
-
"
|
|
185
|
+
"field.updateWhere",
|
|
186
186
|
undefined
|
|
187
187
|
>;
|
|
188
188
|
readonly target: v.StrictObjectSchema<
|
|
@@ -194,7 +194,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
194
194
|
>,
|
|
195
195
|
undefined
|
|
196
196
|
>;
|
|
197
|
-
readonly
|
|
197
|
+
readonly field: v.SchemaWithPipe<
|
|
198
198
|
readonly [
|
|
199
199
|
v.StringSchema<undefined>,
|
|
200
200
|
v.MinLengthAction<
|
|
@@ -215,7 +215,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
215
215
|
v.StrictObjectSchema<
|
|
216
216
|
{
|
|
217
217
|
readonly type: v.LiteralSchema<
|
|
218
|
-
"
|
|
218
|
+
"field.removeWhere",
|
|
219
219
|
undefined
|
|
220
220
|
>;
|
|
221
221
|
readonly target: v.StrictObjectSchema<
|
|
@@ -227,7 +227,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
227
227
|
>,
|
|
228
228
|
undefined
|
|
229
229
|
>;
|
|
230
|
-
readonly
|
|
230
|
+
readonly field: v.SchemaWithPipe<
|
|
231
231
|
readonly [
|
|
232
232
|
v.StringSchema<undefined>,
|
|
233
233
|
v.MinLengthAction<
|
|
@@ -285,7 +285,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
285
285
|
>,
|
|
286
286
|
undefined
|
|
287
287
|
>;
|
|
288
|
-
readonly
|
|
288
|
+
readonly field: v.SchemaWithPipe<
|
|
289
289
|
readonly [
|
|
290
290
|
v.StringSchema<undefined>,
|
|
291
291
|
v.MinLengthAction<
|
|
@@ -412,7 +412,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
412
412
|
v.StringSchema<undefined>,
|
|
413
413
|
undefined
|
|
414
414
|
>;
|
|
415
|
-
readonly
|
|
415
|
+
readonly field: v.UnionSchema<
|
|
416
416
|
[
|
|
417
417
|
v.SchemaWithPipe<
|
|
418
418
|
readonly [
|
|
@@ -429,7 +429,7 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
429
429
|
>,
|
|
430
430
|
undefined
|
|
431
431
|
>;
|
|
432
|
-
readonly
|
|
432
|
+
readonly field: v.SchemaWithPipe<
|
|
433
433
|
readonly [
|
|
434
434
|
v.StringSchema<undefined>,
|
|
435
435
|
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
@@ -564,6 +564,92 @@ declare const AuthoringActionSchema: v.UnionSchema<
|
|
|
564
564
|
undefined
|
|
565
565
|
>;
|
|
566
566
|
|
|
567
|
+
declare type AuthoringFieldEntry = v.InferOutput<
|
|
568
|
+
typeof AuthoringFieldEntrySchema
|
|
569
|
+
>;
|
|
570
|
+
|
|
571
|
+
declare const AuthoringFieldEntrySchema: v.UnionSchema<
|
|
572
|
+
[
|
|
573
|
+
v.StrictObjectSchema<
|
|
574
|
+
{
|
|
575
|
+
type: v.PicklistSchema<
|
|
576
|
+
readonly [
|
|
577
|
+
"doc.ref",
|
|
578
|
+
"doc.refs",
|
|
579
|
+
"release.ref",
|
|
580
|
+
"query",
|
|
581
|
+
"value.string",
|
|
582
|
+
"value.url",
|
|
583
|
+
"value.number",
|
|
584
|
+
"value.boolean",
|
|
585
|
+
"value.dateTime",
|
|
586
|
+
"value.actor",
|
|
587
|
+
"checklist",
|
|
588
|
+
"notes",
|
|
589
|
+
"assignees",
|
|
590
|
+
],
|
|
591
|
+
`Invalid option: expected one of ${string}`
|
|
592
|
+
>;
|
|
593
|
+
name: v.SchemaWithPipe<
|
|
594
|
+
readonly [v.StringSchema<undefined>, v.RegexAction<string, string>]
|
|
595
|
+
>;
|
|
596
|
+
title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
597
|
+
description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
598
|
+
/**
|
|
599
|
+
* When true, the caller MUST supply this entry at start (via
|
|
600
|
+
* `initialFields`) or spawn (via the parent's `subworkflows.with`). A
|
|
601
|
+
* missing required entry throws rather than silently defaulting to
|
|
602
|
+
* `null`/`[]` — the same fail-fast an action's `required` param gets.
|
|
603
|
+
* Valid only on a workflow-scope `init`-sourced entry (deploy invariant).
|
|
604
|
+
*/
|
|
605
|
+
required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
606
|
+
source: v.GenericSchema<SourceInternal>;
|
|
607
|
+
/** Who-may-edit this slot via the edit seam — see {@link StoredEditableSchema}. */
|
|
608
|
+
editable: v.OptionalSchema<
|
|
609
|
+
v.UnionSchema<
|
|
610
|
+
[
|
|
611
|
+
v.LiteralSchema<true, undefined>,
|
|
612
|
+
v.ArraySchema<
|
|
613
|
+
v.SchemaWithPipe<
|
|
614
|
+
readonly [
|
|
615
|
+
v.StringSchema<undefined>,
|
|
616
|
+
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
617
|
+
]
|
|
618
|
+
>,
|
|
619
|
+
undefined
|
|
620
|
+
>,
|
|
621
|
+
v.SchemaWithPipe<
|
|
622
|
+
readonly [
|
|
623
|
+
v.StringSchema<undefined>,
|
|
624
|
+
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
625
|
+
]
|
|
626
|
+
>,
|
|
627
|
+
],
|
|
628
|
+
undefined
|
|
629
|
+
>,
|
|
630
|
+
undefined
|
|
631
|
+
>;
|
|
632
|
+
},
|
|
633
|
+
undefined
|
|
634
|
+
>,
|
|
635
|
+
v.StrictObjectSchema<
|
|
636
|
+
{
|
|
637
|
+
readonly type: v.LiteralSchema<"claim", undefined>;
|
|
638
|
+
readonly name: v.SchemaWithPipe<
|
|
639
|
+
readonly [v.StringSchema<undefined>, v.RegexAction<string, string>]
|
|
640
|
+
>;
|
|
641
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
642
|
+
readonly description: v.OptionalSchema<
|
|
643
|
+
v.StringSchema<undefined>,
|
|
644
|
+
undefined
|
|
645
|
+
>;
|
|
646
|
+
},
|
|
647
|
+
undefined
|
|
648
|
+
>,
|
|
649
|
+
],
|
|
650
|
+
undefined
|
|
651
|
+
>;
|
|
652
|
+
|
|
567
653
|
declare type AuthoringOp = v.InferOutput<typeof AuthoringOpSchema>;
|
|
568
654
|
|
|
569
655
|
declare const AuthoringOpSchema: v.VariantSchema<
|
|
@@ -571,7 +657,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
|
|
|
571
657
|
[
|
|
572
658
|
v.StrictObjectSchema<
|
|
573
659
|
{
|
|
574
|
-
readonly type: v.LiteralSchema<"
|
|
660
|
+
readonly type: v.LiteralSchema<"field.set", undefined>;
|
|
575
661
|
readonly target: v.StrictObjectSchema<
|
|
576
662
|
{
|
|
577
663
|
readonly scope: v.OptionalSchema<
|
|
@@ -581,7 +667,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
|
|
|
581
667
|
>,
|
|
582
668
|
undefined
|
|
583
669
|
>;
|
|
584
|
-
readonly
|
|
670
|
+
readonly field: v.SchemaWithPipe<
|
|
585
671
|
readonly [
|
|
586
672
|
v.StringSchema<undefined>,
|
|
587
673
|
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
@@ -596,7 +682,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
|
|
|
596
682
|
>,
|
|
597
683
|
v.StrictObjectSchema<
|
|
598
684
|
{
|
|
599
|
-
readonly type: v.LiteralSchema<"
|
|
685
|
+
readonly type: v.LiteralSchema<"field.unset", undefined>;
|
|
600
686
|
readonly target: v.StrictObjectSchema<
|
|
601
687
|
{
|
|
602
688
|
readonly scope: v.OptionalSchema<
|
|
@@ -606,7 +692,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
|
|
|
606
692
|
>,
|
|
607
693
|
undefined
|
|
608
694
|
>;
|
|
609
|
-
readonly
|
|
695
|
+
readonly field: v.SchemaWithPipe<
|
|
610
696
|
readonly [
|
|
611
697
|
v.StringSchema<undefined>,
|
|
612
698
|
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
@@ -620,7 +706,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
|
|
|
620
706
|
>,
|
|
621
707
|
v.StrictObjectSchema<
|
|
622
708
|
{
|
|
623
|
-
readonly type: v.LiteralSchema<"
|
|
709
|
+
readonly type: v.LiteralSchema<"field.append", undefined>;
|
|
624
710
|
readonly target: v.StrictObjectSchema<
|
|
625
711
|
{
|
|
626
712
|
readonly scope: v.OptionalSchema<
|
|
@@ -630,7 +716,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
|
|
|
630
716
|
>,
|
|
631
717
|
undefined
|
|
632
718
|
>;
|
|
633
|
-
readonly
|
|
719
|
+
readonly field: v.SchemaWithPipe<
|
|
634
720
|
readonly [
|
|
635
721
|
v.StringSchema<undefined>,
|
|
636
722
|
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
@@ -645,7 +731,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
|
|
|
645
731
|
>,
|
|
646
732
|
v.StrictObjectSchema<
|
|
647
733
|
{
|
|
648
|
-
readonly type: v.LiteralSchema<"
|
|
734
|
+
readonly type: v.LiteralSchema<"field.updateWhere", undefined>;
|
|
649
735
|
readonly target: v.StrictObjectSchema<
|
|
650
736
|
{
|
|
651
737
|
readonly scope: v.OptionalSchema<
|
|
@@ -655,7 +741,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
|
|
|
655
741
|
>,
|
|
656
742
|
undefined
|
|
657
743
|
>;
|
|
658
|
-
readonly
|
|
744
|
+
readonly field: v.SchemaWithPipe<
|
|
659
745
|
readonly [
|
|
660
746
|
v.StringSchema<undefined>,
|
|
661
747
|
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
@@ -671,7 +757,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
|
|
|
671
757
|
>,
|
|
672
758
|
v.StrictObjectSchema<
|
|
673
759
|
{
|
|
674
|
-
readonly type: v.LiteralSchema<"
|
|
760
|
+
readonly type: v.LiteralSchema<"field.removeWhere", undefined>;
|
|
675
761
|
readonly target: v.StrictObjectSchema<
|
|
676
762
|
{
|
|
677
763
|
readonly scope: v.OptionalSchema<
|
|
@@ -681,7 +767,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
|
|
|
681
767
|
>,
|
|
682
768
|
undefined
|
|
683
769
|
>;
|
|
684
|
-
readonly
|
|
770
|
+
readonly field: v.SchemaWithPipe<
|
|
685
771
|
readonly [
|
|
686
772
|
v.StringSchema<undefined>,
|
|
687
773
|
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
@@ -725,7 +811,7 @@ declare const AuthoringOpSchema: v.VariantSchema<
|
|
|
725
811
|
>,
|
|
726
812
|
undefined
|
|
727
813
|
>;
|
|
728
|
-
readonly
|
|
814
|
+
readonly field: v.SchemaWithPipe<
|
|
729
815
|
readonly [
|
|
730
816
|
v.StringSchema<undefined>,
|
|
731
817
|
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
@@ -792,6 +878,86 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
792
878
|
>;
|
|
793
879
|
title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
794
880
|
description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
881
|
+
/**
|
|
882
|
+
* Advisory BPMN-aligned classification of this task by its executor (see
|
|
883
|
+
* {@link TASK_KINDS}). Optional and derived from the task's shape when
|
|
884
|
+
* omitted; declaring it lets deploy check the shape matches the lane.
|
|
885
|
+
* Changes no gating or resolution — a label for tooling, like `assignees`.
|
|
886
|
+
*/
|
|
887
|
+
kind: v.OptionalSchema<
|
|
888
|
+
v.PicklistSchema<
|
|
889
|
+
readonly ["user", "service", "script", "manual", "receive"],
|
|
890
|
+
`Invalid option: expected one of ${string}`
|
|
891
|
+
>,
|
|
892
|
+
undefined
|
|
893
|
+
>;
|
|
894
|
+
/** Deep-link target for a `kind: "manual"` task (off-system work). Render-only
|
|
895
|
+
* metadata; only valid on a manual task (deploy-checked). */
|
|
896
|
+
target: v.OptionalSchema<
|
|
897
|
+
v.VariantSchema<
|
|
898
|
+
"type",
|
|
899
|
+
[
|
|
900
|
+
v.StrictObjectSchema<
|
|
901
|
+
{
|
|
902
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
903
|
+
readonly url: v.SchemaWithPipe<
|
|
904
|
+
readonly [
|
|
905
|
+
v.StringSchema<undefined>,
|
|
906
|
+
v.UrlAction<string, "must be a valid URL">,
|
|
907
|
+
v.CheckAction<string, "must be an http(s) URL">,
|
|
908
|
+
]
|
|
909
|
+
>;
|
|
910
|
+
},
|
|
911
|
+
undefined
|
|
912
|
+
>,
|
|
913
|
+
v.StrictObjectSchema<
|
|
914
|
+
{
|
|
915
|
+
readonly type: v.LiteralSchema<"field", undefined>;
|
|
916
|
+
readonly field: v.UnionSchema<
|
|
917
|
+
[
|
|
918
|
+
v.SchemaWithPipe<
|
|
919
|
+
readonly [
|
|
920
|
+
v.StringSchema<undefined>,
|
|
921
|
+
v.MinLengthAction<
|
|
922
|
+
string,
|
|
923
|
+
1,
|
|
924
|
+
"must be a non-empty string"
|
|
925
|
+
>,
|
|
926
|
+
]
|
|
927
|
+
>,
|
|
928
|
+
v.StrictObjectSchema<
|
|
929
|
+
{
|
|
930
|
+
readonly scope: v.OptionalSchema<
|
|
931
|
+
v.PicklistSchema<
|
|
932
|
+
readonly ["workflow", "stage", "task"],
|
|
933
|
+
`Invalid option: expected one of ${string}`
|
|
934
|
+
>,
|
|
935
|
+
undefined
|
|
936
|
+
>;
|
|
937
|
+
readonly field: v.SchemaWithPipe<
|
|
938
|
+
readonly [
|
|
939
|
+
v.StringSchema<undefined>,
|
|
940
|
+
v.MinLengthAction<
|
|
941
|
+
string,
|
|
942
|
+
1,
|
|
943
|
+
"must be a non-empty string"
|
|
944
|
+
>,
|
|
945
|
+
]
|
|
946
|
+
>;
|
|
947
|
+
},
|
|
948
|
+
undefined
|
|
949
|
+
>,
|
|
950
|
+
],
|
|
951
|
+
undefined
|
|
952
|
+
>;
|
|
953
|
+
},
|
|
954
|
+
undefined
|
|
955
|
+
>,
|
|
956
|
+
],
|
|
957
|
+
undefined
|
|
958
|
+
>,
|
|
959
|
+
undefined
|
|
960
|
+
>;
|
|
795
961
|
activation: v.OptionalSchema<
|
|
796
962
|
v.PicklistSchema<
|
|
797
963
|
readonly ["auto", "manual"],
|
|
@@ -870,7 +1036,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
870
1036
|
[
|
|
871
1037
|
v.StrictObjectSchema<
|
|
872
1038
|
{
|
|
873
|
-
readonly type: v.LiteralSchema<"
|
|
1039
|
+
readonly type: v.LiteralSchema<"field.set", undefined>;
|
|
874
1040
|
readonly target: v.StrictObjectSchema<
|
|
875
1041
|
{
|
|
876
1042
|
readonly scope: v.OptionalSchema<
|
|
@@ -880,7 +1046,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
880
1046
|
>,
|
|
881
1047
|
undefined
|
|
882
1048
|
>;
|
|
883
|
-
readonly
|
|
1049
|
+
readonly field: v.SchemaWithPipe<
|
|
884
1050
|
readonly [
|
|
885
1051
|
v.StringSchema<undefined>,
|
|
886
1052
|
v.MinLengthAction<
|
|
@@ -900,7 +1066,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
900
1066
|
v.StrictObjectSchema<
|
|
901
1067
|
{
|
|
902
1068
|
readonly type: v.LiteralSchema<
|
|
903
|
-
"
|
|
1069
|
+
"field.unset",
|
|
904
1070
|
undefined
|
|
905
1071
|
>;
|
|
906
1072
|
readonly target: v.StrictObjectSchema<
|
|
@@ -912,7 +1078,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
912
1078
|
>,
|
|
913
1079
|
undefined
|
|
914
1080
|
>;
|
|
915
|
-
readonly
|
|
1081
|
+
readonly field: v.SchemaWithPipe<
|
|
916
1082
|
readonly [
|
|
917
1083
|
v.StringSchema<undefined>,
|
|
918
1084
|
v.MinLengthAction<
|
|
@@ -931,7 +1097,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
931
1097
|
v.StrictObjectSchema<
|
|
932
1098
|
{
|
|
933
1099
|
readonly type: v.LiteralSchema<
|
|
934
|
-
"
|
|
1100
|
+
"field.append",
|
|
935
1101
|
undefined
|
|
936
1102
|
>;
|
|
937
1103
|
readonly target: v.StrictObjectSchema<
|
|
@@ -943,7 +1109,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
943
1109
|
>,
|
|
944
1110
|
undefined
|
|
945
1111
|
>;
|
|
946
|
-
readonly
|
|
1112
|
+
readonly field: v.SchemaWithPipe<
|
|
947
1113
|
readonly [
|
|
948
1114
|
v.StringSchema<undefined>,
|
|
949
1115
|
v.MinLengthAction<
|
|
@@ -963,7 +1129,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
963
1129
|
v.StrictObjectSchema<
|
|
964
1130
|
{
|
|
965
1131
|
readonly type: v.LiteralSchema<
|
|
966
|
-
"
|
|
1132
|
+
"field.updateWhere",
|
|
967
1133
|
undefined
|
|
968
1134
|
>;
|
|
969
1135
|
readonly target: v.StrictObjectSchema<
|
|
@@ -975,7 +1141,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
975
1141
|
>,
|
|
976
1142
|
undefined
|
|
977
1143
|
>;
|
|
978
|
-
readonly
|
|
1144
|
+
readonly field: v.SchemaWithPipe<
|
|
979
1145
|
readonly [
|
|
980
1146
|
v.StringSchema<undefined>,
|
|
981
1147
|
v.MinLengthAction<
|
|
@@ -996,7 +1162,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
996
1162
|
v.StrictObjectSchema<
|
|
997
1163
|
{
|
|
998
1164
|
readonly type: v.LiteralSchema<
|
|
999
|
-
"
|
|
1165
|
+
"field.removeWhere",
|
|
1000
1166
|
undefined
|
|
1001
1167
|
>;
|
|
1002
1168
|
readonly target: v.StrictObjectSchema<
|
|
@@ -1008,7 +1174,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1008
1174
|
>,
|
|
1009
1175
|
undefined
|
|
1010
1176
|
>;
|
|
1011
|
-
readonly
|
|
1177
|
+
readonly field: v.SchemaWithPipe<
|
|
1012
1178
|
readonly [
|
|
1013
1179
|
v.StringSchema<undefined>,
|
|
1014
1180
|
v.MinLengthAction<
|
|
@@ -1066,7 +1232,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1066
1232
|
>,
|
|
1067
1233
|
undefined
|
|
1068
1234
|
>;
|
|
1069
|
-
readonly
|
|
1235
|
+
readonly field: v.SchemaWithPipe<
|
|
1070
1236
|
readonly [
|
|
1071
1237
|
v.StringSchema<undefined>,
|
|
1072
1238
|
v.MinLengthAction<
|
|
@@ -1295,7 +1461,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1295
1461
|
v.StrictObjectSchema<
|
|
1296
1462
|
{
|
|
1297
1463
|
readonly type: v.LiteralSchema<
|
|
1298
|
-
"
|
|
1464
|
+
"field.set",
|
|
1299
1465
|
undefined
|
|
1300
1466
|
>;
|
|
1301
1467
|
readonly target: v.StrictObjectSchema<
|
|
@@ -1311,7 +1477,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1311
1477
|
>,
|
|
1312
1478
|
undefined
|
|
1313
1479
|
>;
|
|
1314
|
-
readonly
|
|
1480
|
+
readonly field: v.SchemaWithPipe<
|
|
1315
1481
|
readonly [
|
|
1316
1482
|
v.StringSchema<undefined>,
|
|
1317
1483
|
v.MinLengthAction<
|
|
@@ -1331,7 +1497,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1331
1497
|
v.StrictObjectSchema<
|
|
1332
1498
|
{
|
|
1333
1499
|
readonly type: v.LiteralSchema<
|
|
1334
|
-
"
|
|
1500
|
+
"field.unset",
|
|
1335
1501
|
undefined
|
|
1336
1502
|
>;
|
|
1337
1503
|
readonly target: v.StrictObjectSchema<
|
|
@@ -1347,7 +1513,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1347
1513
|
>,
|
|
1348
1514
|
undefined
|
|
1349
1515
|
>;
|
|
1350
|
-
readonly
|
|
1516
|
+
readonly field: v.SchemaWithPipe<
|
|
1351
1517
|
readonly [
|
|
1352
1518
|
v.StringSchema<undefined>,
|
|
1353
1519
|
v.MinLengthAction<
|
|
@@ -1366,7 +1532,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1366
1532
|
v.StrictObjectSchema<
|
|
1367
1533
|
{
|
|
1368
1534
|
readonly type: v.LiteralSchema<
|
|
1369
|
-
"
|
|
1535
|
+
"field.append",
|
|
1370
1536
|
undefined
|
|
1371
1537
|
>;
|
|
1372
1538
|
readonly target: v.StrictObjectSchema<
|
|
@@ -1382,7 +1548,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1382
1548
|
>,
|
|
1383
1549
|
undefined
|
|
1384
1550
|
>;
|
|
1385
|
-
readonly
|
|
1551
|
+
readonly field: v.SchemaWithPipe<
|
|
1386
1552
|
readonly [
|
|
1387
1553
|
v.StringSchema<undefined>,
|
|
1388
1554
|
v.MinLengthAction<
|
|
@@ -1402,7 +1568,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1402
1568
|
v.StrictObjectSchema<
|
|
1403
1569
|
{
|
|
1404
1570
|
readonly type: v.LiteralSchema<
|
|
1405
|
-
"
|
|
1571
|
+
"field.updateWhere",
|
|
1406
1572
|
undefined
|
|
1407
1573
|
>;
|
|
1408
1574
|
readonly target: v.StrictObjectSchema<
|
|
@@ -1418,7 +1584,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1418
1584
|
>,
|
|
1419
1585
|
undefined
|
|
1420
1586
|
>;
|
|
1421
|
-
readonly
|
|
1587
|
+
readonly field: v.SchemaWithPipe<
|
|
1422
1588
|
readonly [
|
|
1423
1589
|
v.StringSchema<undefined>,
|
|
1424
1590
|
v.MinLengthAction<
|
|
@@ -1439,7 +1605,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1439
1605
|
v.StrictObjectSchema<
|
|
1440
1606
|
{
|
|
1441
1607
|
readonly type: v.LiteralSchema<
|
|
1442
|
-
"
|
|
1608
|
+
"field.removeWhere",
|
|
1443
1609
|
undefined
|
|
1444
1610
|
>;
|
|
1445
1611
|
readonly target: v.StrictObjectSchema<
|
|
@@ -1455,7 +1621,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1455
1621
|
>,
|
|
1456
1622
|
undefined
|
|
1457
1623
|
>;
|
|
1458
|
-
readonly
|
|
1624
|
+
readonly field: v.SchemaWithPipe<
|
|
1459
1625
|
readonly [
|
|
1460
1626
|
v.StringSchema<undefined>,
|
|
1461
1627
|
v.MinLengthAction<
|
|
@@ -1523,7 +1689,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1523
1689
|
>,
|
|
1524
1690
|
undefined
|
|
1525
1691
|
>;
|
|
1526
|
-
readonly
|
|
1692
|
+
readonly field: v.SchemaWithPipe<
|
|
1527
1693
|
readonly [
|
|
1528
1694
|
v.StringSchema<undefined>,
|
|
1529
1695
|
v.MinLengthAction<
|
|
@@ -1661,7 +1827,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1661
1827
|
v.StringSchema<undefined>,
|
|
1662
1828
|
undefined
|
|
1663
1829
|
>;
|
|
1664
|
-
readonly
|
|
1830
|
+
readonly field: v.UnionSchema<
|
|
1665
1831
|
[
|
|
1666
1832
|
v.SchemaWithPipe<
|
|
1667
1833
|
readonly [
|
|
@@ -1682,7 +1848,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1682
1848
|
>,
|
|
1683
1849
|
undefined
|
|
1684
1850
|
>;
|
|
1685
|
-
readonly
|
|
1851
|
+
readonly field: v.SchemaWithPipe<
|
|
1686
1852
|
readonly [
|
|
1687
1853
|
v.StringSchema<undefined>,
|
|
1688
1854
|
v.MinLengthAction<
|
|
@@ -1885,7 +2051,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1885
2051
|
},
|
|
1886
2052
|
undefined
|
|
1887
2053
|
>;
|
|
1888
|
-
/** Initial
|
|
2054
|
+
/** Initial fields for each subworkflow — entry name → GROQ over `$row` + the parent scope. */
|
|
1889
2055
|
readonly with: v.OptionalSchema<
|
|
1890
2056
|
v.RecordSchema<
|
|
1891
2057
|
v.SchemaWithPipe<
|
|
@@ -1948,8 +2114,8 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1948
2114
|
>,
|
|
1949
2115
|
undefined
|
|
1950
2116
|
>;
|
|
1951
|
-
/** Task-scoped
|
|
1952
|
-
|
|
2117
|
+
/** Task-scoped field entries. Resolved at task activation time. */
|
|
2118
|
+
fields: v.OptionalSchema<
|
|
1953
2119
|
v.ArraySchema<
|
|
1954
2120
|
v.UnionSchema<
|
|
1955
2121
|
[
|
|
@@ -1989,7 +2155,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
1989
2155
|
>;
|
|
1990
2156
|
/**
|
|
1991
2157
|
* When true, the caller MUST supply this entry at start (via
|
|
1992
|
-
* `
|
|
2158
|
+
* `initialFields`) or spawn (via the parent's `subworkflows.with`). A
|
|
1993
2159
|
* missing required entry throws rather than silently defaulting to
|
|
1994
2160
|
* `null`/`[]` — the same fail-fast an action's `required` param gets.
|
|
1995
2161
|
* Valid only on a workflow-scope `init`-sourced entry (deploy invariant).
|
|
@@ -2096,7 +2262,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2096
2262
|
>,
|
|
2097
2263
|
undefined
|
|
2098
2264
|
>;
|
|
2099
|
-
/** The `
|
|
2265
|
+
/** The `field.*` subset — field-write-on-move, the stage's EXIT/ARRIVAL payload. */
|
|
2100
2266
|
ops: v.OptionalSchema<
|
|
2101
2267
|
v.ArraySchema<
|
|
2102
2268
|
v.VariantSchema<
|
|
@@ -2104,7 +2270,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2104
2270
|
[
|
|
2105
2271
|
v.StrictObjectSchema<
|
|
2106
2272
|
{
|
|
2107
|
-
readonly type: v.LiteralSchema<"
|
|
2273
|
+
readonly type: v.LiteralSchema<"field.set", undefined>;
|
|
2108
2274
|
readonly target: v.StrictObjectSchema<
|
|
2109
2275
|
{
|
|
2110
2276
|
readonly scope: v.OptionalSchema<
|
|
@@ -2114,7 +2280,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2114
2280
|
>,
|
|
2115
2281
|
undefined
|
|
2116
2282
|
>;
|
|
2117
|
-
readonly
|
|
2283
|
+
readonly field: v.SchemaWithPipe<
|
|
2118
2284
|
readonly [
|
|
2119
2285
|
v.StringSchema<undefined>,
|
|
2120
2286
|
v.MinLengthAction<
|
|
@@ -2134,7 +2300,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2134
2300
|
v.StrictObjectSchema<
|
|
2135
2301
|
{
|
|
2136
2302
|
readonly type: v.LiteralSchema<
|
|
2137
|
-
"
|
|
2303
|
+
"field.unset",
|
|
2138
2304
|
undefined
|
|
2139
2305
|
>;
|
|
2140
2306
|
readonly target: v.StrictObjectSchema<
|
|
@@ -2146,7 +2312,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2146
2312
|
>,
|
|
2147
2313
|
undefined
|
|
2148
2314
|
>;
|
|
2149
|
-
readonly
|
|
2315
|
+
readonly field: v.SchemaWithPipe<
|
|
2150
2316
|
readonly [
|
|
2151
2317
|
v.StringSchema<undefined>,
|
|
2152
2318
|
v.MinLengthAction<
|
|
@@ -2165,7 +2331,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2165
2331
|
v.StrictObjectSchema<
|
|
2166
2332
|
{
|
|
2167
2333
|
readonly type: v.LiteralSchema<
|
|
2168
|
-
"
|
|
2334
|
+
"field.append",
|
|
2169
2335
|
undefined
|
|
2170
2336
|
>;
|
|
2171
2337
|
readonly target: v.StrictObjectSchema<
|
|
@@ -2177,7 +2343,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2177
2343
|
>,
|
|
2178
2344
|
undefined
|
|
2179
2345
|
>;
|
|
2180
|
-
readonly
|
|
2346
|
+
readonly field: v.SchemaWithPipe<
|
|
2181
2347
|
readonly [
|
|
2182
2348
|
v.StringSchema<undefined>,
|
|
2183
2349
|
v.MinLengthAction<
|
|
@@ -2197,7 +2363,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2197
2363
|
v.StrictObjectSchema<
|
|
2198
2364
|
{
|
|
2199
2365
|
readonly type: v.LiteralSchema<
|
|
2200
|
-
"
|
|
2366
|
+
"field.updateWhere",
|
|
2201
2367
|
undefined
|
|
2202
2368
|
>;
|
|
2203
2369
|
readonly target: v.StrictObjectSchema<
|
|
@@ -2209,7 +2375,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2209
2375
|
>,
|
|
2210
2376
|
undefined
|
|
2211
2377
|
>;
|
|
2212
|
-
readonly
|
|
2378
|
+
readonly field: v.SchemaWithPipe<
|
|
2213
2379
|
readonly [
|
|
2214
2380
|
v.StringSchema<undefined>,
|
|
2215
2381
|
v.MinLengthAction<
|
|
@@ -2230,7 +2396,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2230
2396
|
v.StrictObjectSchema<
|
|
2231
2397
|
{
|
|
2232
2398
|
readonly type: v.LiteralSchema<
|
|
2233
|
-
"
|
|
2399
|
+
"field.removeWhere",
|
|
2234
2400
|
undefined
|
|
2235
2401
|
>;
|
|
2236
2402
|
readonly target: v.StrictObjectSchema<
|
|
@@ -2242,7 +2408,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2242
2408
|
>,
|
|
2243
2409
|
undefined
|
|
2244
2410
|
>;
|
|
2245
|
-
readonly
|
|
2411
|
+
readonly field: v.SchemaWithPipe<
|
|
2246
2412
|
readonly [
|
|
2247
2413
|
v.StringSchema<undefined>,
|
|
2248
2414
|
v.MinLengthAction<
|
|
@@ -2271,7 +2437,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2271
2437
|
>,
|
|
2272
2438
|
undefined
|
|
2273
2439
|
>;
|
|
2274
|
-
readonly
|
|
2440
|
+
readonly field: v.SchemaWithPipe<
|
|
2275
2441
|
readonly [
|
|
2276
2442
|
v.StringSchema<undefined>,
|
|
2277
2443
|
v.MinLengthAction<
|
|
@@ -2433,7 +2599,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2433
2599
|
>,
|
|
2434
2600
|
undefined
|
|
2435
2601
|
>;
|
|
2436
|
-
/** Target docs as `$
|
|
2602
|
+
/** Target docs as `$fields` reads (or `"$self"`), resolved at deploy to bare ids + the resource. */
|
|
2437
2603
|
readonly idRefs: v.OptionalSchema<
|
|
2438
2604
|
v.ArraySchema<
|
|
2439
2605
|
v.SchemaWithPipe<
|
|
@@ -2509,12 +2675,12 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2509
2675
|
undefined
|
|
2510
2676
|
>;
|
|
2511
2677
|
/**
|
|
2512
|
-
* Projected workflow
|
|
2513
|
-
* the only bridge from the lake eval context (which cannot see `$
|
|
2514
|
-
* to workflow
|
|
2678
|
+
* Projected workflow fields the predicate reads as `guard.metadata.*` —
|
|
2679
|
+
* the only bridge from the lake eval context (which cannot see `$fields`)
|
|
2680
|
+
* to workflow fields. Values are NOT GROQ: each is a deploy-time read in
|
|
2515
2681
|
* the guard mini-language — `"$self"`, `"$now"`, or
|
|
2516
|
-
* `"$
|
|
2517
|
-
* re-synced by the post-
|
|
2682
|
+
* `"$fields.<name>[.path]"` — resolved into a bare value at deploy and
|
|
2683
|
+
* re-synced by the post-field-op guard refresh.
|
|
2518
2684
|
*/
|
|
2519
2685
|
readonly metadata: v.OptionalSchema<
|
|
2520
2686
|
v.RecordSchema<
|
|
@@ -2541,8 +2707,8 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2541
2707
|
>,
|
|
2542
2708
|
undefined
|
|
2543
2709
|
>;
|
|
2544
|
-
/** Stage-scoped
|
|
2545
|
-
|
|
2710
|
+
/** Stage-scoped field entries. Resolved at stage entry. */
|
|
2711
|
+
fields: v.OptionalSchema<
|
|
2546
2712
|
v.ArraySchema<
|
|
2547
2713
|
v.UnionSchema<
|
|
2548
2714
|
[
|
|
@@ -2579,7 +2745,7 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2579
2745
|
>;
|
|
2580
2746
|
/**
|
|
2581
2747
|
* When true, the caller MUST supply this entry at start (via
|
|
2582
|
-
* `
|
|
2748
|
+
* `initialFields`) or spawn (via the parent's `subworkflows.with`). A
|
|
2583
2749
|
* missing required entry throws rather than silently defaulting to
|
|
2584
2750
|
* `null`/`[]` — the same fail-fast an action's `required` param gets.
|
|
2585
2751
|
* Valid only on a workflow-scope `init`-sourced entry (deploy invariant).
|
|
@@ -2693,92 +2859,6 @@ declare const AuthoringStageSchema: v.StrictObjectSchema<
|
|
|
2693
2859
|
undefined
|
|
2694
2860
|
>;
|
|
2695
2861
|
|
|
2696
|
-
declare type AuthoringStateEntry = v.InferOutput<
|
|
2697
|
-
typeof AuthoringStateEntrySchema
|
|
2698
|
-
>;
|
|
2699
|
-
|
|
2700
|
-
declare const AuthoringStateEntrySchema: v.UnionSchema<
|
|
2701
|
-
[
|
|
2702
|
-
v.StrictObjectSchema<
|
|
2703
|
-
{
|
|
2704
|
-
type: v.PicklistSchema<
|
|
2705
|
-
readonly [
|
|
2706
|
-
"doc.ref",
|
|
2707
|
-
"doc.refs",
|
|
2708
|
-
"release.ref",
|
|
2709
|
-
"query",
|
|
2710
|
-
"value.string",
|
|
2711
|
-
"value.url",
|
|
2712
|
-
"value.number",
|
|
2713
|
-
"value.boolean",
|
|
2714
|
-
"value.dateTime",
|
|
2715
|
-
"value.actor",
|
|
2716
|
-
"checklist",
|
|
2717
|
-
"notes",
|
|
2718
|
-
"assignees",
|
|
2719
|
-
],
|
|
2720
|
-
`Invalid option: expected one of ${string}`
|
|
2721
|
-
>;
|
|
2722
|
-
name: v.SchemaWithPipe<
|
|
2723
|
-
readonly [v.StringSchema<undefined>, v.RegexAction<string, string>]
|
|
2724
|
-
>;
|
|
2725
|
-
title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2726
|
-
description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2727
|
-
/**
|
|
2728
|
-
* When true, the caller MUST supply this entry at start (via
|
|
2729
|
-
* `initialState`) or spawn (via the parent's `subworkflows.with`). A
|
|
2730
|
-
* missing required entry throws rather than silently defaulting to
|
|
2731
|
-
* `null`/`[]` — the same fail-fast an action's `required` param gets.
|
|
2732
|
-
* Valid only on a workflow-scope `init`-sourced entry (deploy invariant).
|
|
2733
|
-
*/
|
|
2734
|
-
required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2735
|
-
source: v.GenericSchema<SourceInternal>;
|
|
2736
|
-
/** Who-may-edit this slot via the edit seam — see {@link StoredEditableSchema}. */
|
|
2737
|
-
editable: v.OptionalSchema<
|
|
2738
|
-
v.UnionSchema<
|
|
2739
|
-
[
|
|
2740
|
-
v.LiteralSchema<true, undefined>,
|
|
2741
|
-
v.ArraySchema<
|
|
2742
|
-
v.SchemaWithPipe<
|
|
2743
|
-
readonly [
|
|
2744
|
-
v.StringSchema<undefined>,
|
|
2745
|
-
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
2746
|
-
]
|
|
2747
|
-
>,
|
|
2748
|
-
undefined
|
|
2749
|
-
>,
|
|
2750
|
-
v.SchemaWithPipe<
|
|
2751
|
-
readonly [
|
|
2752
|
-
v.StringSchema<undefined>,
|
|
2753
|
-
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
2754
|
-
]
|
|
2755
|
-
>,
|
|
2756
|
-
],
|
|
2757
|
-
undefined
|
|
2758
|
-
>,
|
|
2759
|
-
undefined
|
|
2760
|
-
>;
|
|
2761
|
-
},
|
|
2762
|
-
undefined
|
|
2763
|
-
>,
|
|
2764
|
-
v.StrictObjectSchema<
|
|
2765
|
-
{
|
|
2766
|
-
readonly type: v.LiteralSchema<"claim", undefined>;
|
|
2767
|
-
readonly name: v.SchemaWithPipe<
|
|
2768
|
-
readonly [v.StringSchema<undefined>, v.RegexAction<string, string>]
|
|
2769
|
-
>;
|
|
2770
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2771
|
-
readonly description: v.OptionalSchema<
|
|
2772
|
-
v.StringSchema<undefined>,
|
|
2773
|
-
undefined
|
|
2774
|
-
>;
|
|
2775
|
-
},
|
|
2776
|
-
undefined
|
|
2777
|
-
>,
|
|
2778
|
-
],
|
|
2779
|
-
undefined
|
|
2780
|
-
>;
|
|
2781
|
-
|
|
2782
2862
|
declare type AuthoringTask = v.InferOutput<typeof AuthoringTaskSchema>;
|
|
2783
2863
|
|
|
2784
2864
|
declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
@@ -2791,6 +2871,86 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
2791
2871
|
>;
|
|
2792
2872
|
title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2793
2873
|
description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2874
|
+
/**
|
|
2875
|
+
* Advisory BPMN-aligned classification of this task by its executor (see
|
|
2876
|
+
* {@link TASK_KINDS}). Optional and derived from the task's shape when
|
|
2877
|
+
* omitted; declaring it lets deploy check the shape matches the lane.
|
|
2878
|
+
* Changes no gating or resolution — a label for tooling, like `assignees`.
|
|
2879
|
+
*/
|
|
2880
|
+
kind: v.OptionalSchema<
|
|
2881
|
+
v.PicklistSchema<
|
|
2882
|
+
readonly ["user", "service", "script", "manual", "receive"],
|
|
2883
|
+
`Invalid option: expected one of ${string}`
|
|
2884
|
+
>,
|
|
2885
|
+
undefined
|
|
2886
|
+
>;
|
|
2887
|
+
/** Deep-link target for a `kind: "manual"` task (off-system work). Render-only
|
|
2888
|
+
* metadata; only valid on a manual task (deploy-checked). */
|
|
2889
|
+
target: v.OptionalSchema<
|
|
2890
|
+
v.VariantSchema<
|
|
2891
|
+
"type",
|
|
2892
|
+
[
|
|
2893
|
+
v.StrictObjectSchema<
|
|
2894
|
+
{
|
|
2895
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
2896
|
+
readonly url: v.SchemaWithPipe<
|
|
2897
|
+
readonly [
|
|
2898
|
+
v.StringSchema<undefined>,
|
|
2899
|
+
v.UrlAction<string, "must be a valid URL">,
|
|
2900
|
+
v.CheckAction<string, "must be an http(s) URL">,
|
|
2901
|
+
]
|
|
2902
|
+
>;
|
|
2903
|
+
},
|
|
2904
|
+
undefined
|
|
2905
|
+
>,
|
|
2906
|
+
v.StrictObjectSchema<
|
|
2907
|
+
{
|
|
2908
|
+
readonly type: v.LiteralSchema<"field", undefined>;
|
|
2909
|
+
readonly field: v.UnionSchema<
|
|
2910
|
+
[
|
|
2911
|
+
v.SchemaWithPipe<
|
|
2912
|
+
readonly [
|
|
2913
|
+
v.StringSchema<undefined>,
|
|
2914
|
+
v.MinLengthAction<
|
|
2915
|
+
string,
|
|
2916
|
+
1,
|
|
2917
|
+
"must be a non-empty string"
|
|
2918
|
+
>,
|
|
2919
|
+
]
|
|
2920
|
+
>,
|
|
2921
|
+
v.StrictObjectSchema<
|
|
2922
|
+
{
|
|
2923
|
+
readonly scope: v.OptionalSchema<
|
|
2924
|
+
v.PicklistSchema<
|
|
2925
|
+
readonly ["workflow", "stage", "task"],
|
|
2926
|
+
`Invalid option: expected one of ${string}`
|
|
2927
|
+
>,
|
|
2928
|
+
undefined
|
|
2929
|
+
>;
|
|
2930
|
+
readonly field: v.SchemaWithPipe<
|
|
2931
|
+
readonly [
|
|
2932
|
+
v.StringSchema<undefined>,
|
|
2933
|
+
v.MinLengthAction<
|
|
2934
|
+
string,
|
|
2935
|
+
1,
|
|
2936
|
+
"must be a non-empty string"
|
|
2937
|
+
>,
|
|
2938
|
+
]
|
|
2939
|
+
>;
|
|
2940
|
+
},
|
|
2941
|
+
undefined
|
|
2942
|
+
>,
|
|
2943
|
+
],
|
|
2944
|
+
undefined
|
|
2945
|
+
>;
|
|
2946
|
+
},
|
|
2947
|
+
undefined
|
|
2948
|
+
>,
|
|
2949
|
+
],
|
|
2950
|
+
undefined
|
|
2951
|
+
>,
|
|
2952
|
+
undefined
|
|
2953
|
+
>;
|
|
2794
2954
|
activation: v.OptionalSchema<
|
|
2795
2955
|
v.PicklistSchema<
|
|
2796
2956
|
readonly ["auto", "manual"],
|
|
@@ -2869,7 +3029,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
2869
3029
|
[
|
|
2870
3030
|
v.StrictObjectSchema<
|
|
2871
3031
|
{
|
|
2872
|
-
readonly type: v.LiteralSchema<"
|
|
3032
|
+
readonly type: v.LiteralSchema<"field.set", undefined>;
|
|
2873
3033
|
readonly target: v.StrictObjectSchema<
|
|
2874
3034
|
{
|
|
2875
3035
|
readonly scope: v.OptionalSchema<
|
|
@@ -2879,7 +3039,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
2879
3039
|
>,
|
|
2880
3040
|
undefined
|
|
2881
3041
|
>;
|
|
2882
|
-
readonly
|
|
3042
|
+
readonly field: v.SchemaWithPipe<
|
|
2883
3043
|
readonly [
|
|
2884
3044
|
v.StringSchema<undefined>,
|
|
2885
3045
|
v.MinLengthAction<
|
|
@@ -2898,7 +3058,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
2898
3058
|
>,
|
|
2899
3059
|
v.StrictObjectSchema<
|
|
2900
3060
|
{
|
|
2901
|
-
readonly type: v.LiteralSchema<"
|
|
3061
|
+
readonly type: v.LiteralSchema<"field.unset", undefined>;
|
|
2902
3062
|
readonly target: v.StrictObjectSchema<
|
|
2903
3063
|
{
|
|
2904
3064
|
readonly scope: v.OptionalSchema<
|
|
@@ -2908,7 +3068,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
2908
3068
|
>,
|
|
2909
3069
|
undefined
|
|
2910
3070
|
>;
|
|
2911
|
-
readonly
|
|
3071
|
+
readonly field: v.SchemaWithPipe<
|
|
2912
3072
|
readonly [
|
|
2913
3073
|
v.StringSchema<undefined>,
|
|
2914
3074
|
v.MinLengthAction<
|
|
@@ -2926,7 +3086,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
2926
3086
|
>,
|
|
2927
3087
|
v.StrictObjectSchema<
|
|
2928
3088
|
{
|
|
2929
|
-
readonly type: v.LiteralSchema<"
|
|
3089
|
+
readonly type: v.LiteralSchema<"field.append", undefined>;
|
|
2930
3090
|
readonly target: v.StrictObjectSchema<
|
|
2931
3091
|
{
|
|
2932
3092
|
readonly scope: v.OptionalSchema<
|
|
@@ -2936,7 +3096,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
2936
3096
|
>,
|
|
2937
3097
|
undefined
|
|
2938
3098
|
>;
|
|
2939
|
-
readonly
|
|
3099
|
+
readonly field: v.SchemaWithPipe<
|
|
2940
3100
|
readonly [
|
|
2941
3101
|
v.StringSchema<undefined>,
|
|
2942
3102
|
v.MinLengthAction<
|
|
@@ -2955,7 +3115,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
2955
3115
|
>,
|
|
2956
3116
|
v.StrictObjectSchema<
|
|
2957
3117
|
{
|
|
2958
|
-
readonly type: v.LiteralSchema<"
|
|
3118
|
+
readonly type: v.LiteralSchema<"field.updateWhere", undefined>;
|
|
2959
3119
|
readonly target: v.StrictObjectSchema<
|
|
2960
3120
|
{
|
|
2961
3121
|
readonly scope: v.OptionalSchema<
|
|
@@ -2965,7 +3125,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
2965
3125
|
>,
|
|
2966
3126
|
undefined
|
|
2967
3127
|
>;
|
|
2968
|
-
readonly
|
|
3128
|
+
readonly field: v.SchemaWithPipe<
|
|
2969
3129
|
readonly [
|
|
2970
3130
|
v.StringSchema<undefined>,
|
|
2971
3131
|
v.MinLengthAction<
|
|
@@ -2985,7 +3145,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
2985
3145
|
>,
|
|
2986
3146
|
v.StrictObjectSchema<
|
|
2987
3147
|
{
|
|
2988
|
-
readonly type: v.LiteralSchema<"
|
|
3148
|
+
readonly type: v.LiteralSchema<"field.removeWhere", undefined>;
|
|
2989
3149
|
readonly target: v.StrictObjectSchema<
|
|
2990
3150
|
{
|
|
2991
3151
|
readonly scope: v.OptionalSchema<
|
|
@@ -2995,7 +3155,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
2995
3155
|
>,
|
|
2996
3156
|
undefined
|
|
2997
3157
|
>;
|
|
2998
|
-
readonly
|
|
3158
|
+
readonly field: v.SchemaWithPipe<
|
|
2999
3159
|
readonly [
|
|
3000
3160
|
v.StringSchema<undefined>,
|
|
3001
3161
|
v.MinLengthAction<
|
|
@@ -3047,7 +3207,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3047
3207
|
>,
|
|
3048
3208
|
undefined
|
|
3049
3209
|
>;
|
|
3050
|
-
readonly
|
|
3210
|
+
readonly field: v.SchemaWithPipe<
|
|
3051
3211
|
readonly [
|
|
3052
3212
|
v.StringSchema<undefined>,
|
|
3053
3213
|
v.MinLengthAction<
|
|
@@ -3264,7 +3424,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3264
3424
|
v.StrictObjectSchema<
|
|
3265
3425
|
{
|
|
3266
3426
|
readonly type: v.LiteralSchema<
|
|
3267
|
-
"
|
|
3427
|
+
"field.set",
|
|
3268
3428
|
undefined
|
|
3269
3429
|
>;
|
|
3270
3430
|
readonly target: v.StrictObjectSchema<
|
|
@@ -3276,7 +3436,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3276
3436
|
>,
|
|
3277
3437
|
undefined
|
|
3278
3438
|
>;
|
|
3279
|
-
readonly
|
|
3439
|
+
readonly field: v.SchemaWithPipe<
|
|
3280
3440
|
readonly [
|
|
3281
3441
|
v.StringSchema<undefined>,
|
|
3282
3442
|
v.MinLengthAction<
|
|
@@ -3296,7 +3456,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3296
3456
|
v.StrictObjectSchema<
|
|
3297
3457
|
{
|
|
3298
3458
|
readonly type: v.LiteralSchema<
|
|
3299
|
-
"
|
|
3459
|
+
"field.unset",
|
|
3300
3460
|
undefined
|
|
3301
3461
|
>;
|
|
3302
3462
|
readonly target: v.StrictObjectSchema<
|
|
@@ -3308,7 +3468,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3308
3468
|
>,
|
|
3309
3469
|
undefined
|
|
3310
3470
|
>;
|
|
3311
|
-
readonly
|
|
3471
|
+
readonly field: v.SchemaWithPipe<
|
|
3312
3472
|
readonly [
|
|
3313
3473
|
v.StringSchema<undefined>,
|
|
3314
3474
|
v.MinLengthAction<
|
|
@@ -3327,7 +3487,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3327
3487
|
v.StrictObjectSchema<
|
|
3328
3488
|
{
|
|
3329
3489
|
readonly type: v.LiteralSchema<
|
|
3330
|
-
"
|
|
3490
|
+
"field.append",
|
|
3331
3491
|
undefined
|
|
3332
3492
|
>;
|
|
3333
3493
|
readonly target: v.StrictObjectSchema<
|
|
@@ -3339,7 +3499,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3339
3499
|
>,
|
|
3340
3500
|
undefined
|
|
3341
3501
|
>;
|
|
3342
|
-
readonly
|
|
3502
|
+
readonly field: v.SchemaWithPipe<
|
|
3343
3503
|
readonly [
|
|
3344
3504
|
v.StringSchema<undefined>,
|
|
3345
3505
|
v.MinLengthAction<
|
|
@@ -3359,7 +3519,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3359
3519
|
v.StrictObjectSchema<
|
|
3360
3520
|
{
|
|
3361
3521
|
readonly type: v.LiteralSchema<
|
|
3362
|
-
"
|
|
3522
|
+
"field.updateWhere",
|
|
3363
3523
|
undefined
|
|
3364
3524
|
>;
|
|
3365
3525
|
readonly target: v.StrictObjectSchema<
|
|
@@ -3371,7 +3531,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3371
3531
|
>,
|
|
3372
3532
|
undefined
|
|
3373
3533
|
>;
|
|
3374
|
-
readonly
|
|
3534
|
+
readonly field: v.SchemaWithPipe<
|
|
3375
3535
|
readonly [
|
|
3376
3536
|
v.StringSchema<undefined>,
|
|
3377
3537
|
v.MinLengthAction<
|
|
@@ -3392,7 +3552,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3392
3552
|
v.StrictObjectSchema<
|
|
3393
3553
|
{
|
|
3394
3554
|
readonly type: v.LiteralSchema<
|
|
3395
|
-
"
|
|
3555
|
+
"field.removeWhere",
|
|
3396
3556
|
undefined
|
|
3397
3557
|
>;
|
|
3398
3558
|
readonly target: v.StrictObjectSchema<
|
|
@@ -3404,7 +3564,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3404
3564
|
>,
|
|
3405
3565
|
undefined
|
|
3406
3566
|
>;
|
|
3407
|
-
readonly
|
|
3567
|
+
readonly field: v.SchemaWithPipe<
|
|
3408
3568
|
readonly [
|
|
3409
3569
|
v.StringSchema<undefined>,
|
|
3410
3570
|
v.MinLengthAction<
|
|
@@ -3465,7 +3625,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3465
3625
|
>,
|
|
3466
3626
|
undefined
|
|
3467
3627
|
>;
|
|
3468
|
-
readonly
|
|
3628
|
+
readonly field: v.SchemaWithPipe<
|
|
3469
3629
|
readonly [
|
|
3470
3630
|
v.StringSchema<undefined>,
|
|
3471
3631
|
v.MinLengthAction<
|
|
@@ -3599,7 +3759,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3599
3759
|
v.StringSchema<undefined>,
|
|
3600
3760
|
undefined
|
|
3601
3761
|
>;
|
|
3602
|
-
readonly
|
|
3762
|
+
readonly field: v.UnionSchema<
|
|
3603
3763
|
[
|
|
3604
3764
|
v.SchemaWithPipe<
|
|
3605
3765
|
readonly [
|
|
@@ -3620,7 +3780,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3620
3780
|
>,
|
|
3621
3781
|
undefined
|
|
3622
3782
|
>;
|
|
3623
|
-
readonly
|
|
3783
|
+
readonly field: v.SchemaWithPipe<
|
|
3624
3784
|
readonly [
|
|
3625
3785
|
v.StringSchema<undefined>,
|
|
3626
3786
|
v.MinLengthAction<
|
|
@@ -3815,7 +3975,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3815
3975
|
},
|
|
3816
3976
|
undefined
|
|
3817
3977
|
>;
|
|
3818
|
-
/** Initial
|
|
3978
|
+
/** Initial fields for each subworkflow — entry name → GROQ over `$row` + the parent scope. */
|
|
3819
3979
|
readonly with: v.OptionalSchema<
|
|
3820
3980
|
v.RecordSchema<
|
|
3821
3981
|
v.SchemaWithPipe<
|
|
@@ -3862,8 +4022,8 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3862
4022
|
>,
|
|
3863
4023
|
undefined
|
|
3864
4024
|
>;
|
|
3865
|
-
/** Task-scoped
|
|
3866
|
-
|
|
4025
|
+
/** Task-scoped field entries. Resolved at task activation time. */
|
|
4026
|
+
fields: v.OptionalSchema<
|
|
3867
4027
|
v.ArraySchema<
|
|
3868
4028
|
v.UnionSchema<
|
|
3869
4029
|
[
|
|
@@ -3900,7 +4060,7 @@ declare const AuthoringTaskSchema: v.StrictObjectSchema<
|
|
|
3900
4060
|
>;
|
|
3901
4061
|
/**
|
|
3902
4062
|
* When true, the caller MUST supply this entry at start (via
|
|
3903
|
-
* `
|
|
4063
|
+
* `initialFields`) or spawn (via the parent's `subworkflows.with`). A
|
|
3904
4064
|
* missing required entry throws rather than silently defaulting to
|
|
3905
4065
|
* `null`/`[]` — the same fail-fast an action's `required` param gets.
|
|
3906
4066
|
* Valid only on a workflow-scope `init`-sourced entry (deploy invariant).
|
|
@@ -4006,7 +4166,7 @@ declare const AuthoringTransitionSchema: v.StrictObjectSchema<
|
|
|
4006
4166
|
>,
|
|
4007
4167
|
undefined
|
|
4008
4168
|
>;
|
|
4009
|
-
/** The `
|
|
4169
|
+
/** The `field.*` subset — field-write-on-move, the stage's EXIT/ARRIVAL payload. */
|
|
4010
4170
|
ops: v.OptionalSchema<
|
|
4011
4171
|
v.ArraySchema<
|
|
4012
4172
|
v.VariantSchema<
|
|
@@ -4014,7 +4174,7 @@ declare const AuthoringTransitionSchema: v.StrictObjectSchema<
|
|
|
4014
4174
|
[
|
|
4015
4175
|
v.StrictObjectSchema<
|
|
4016
4176
|
{
|
|
4017
|
-
readonly type: v.LiteralSchema<"
|
|
4177
|
+
readonly type: v.LiteralSchema<"field.set", undefined>;
|
|
4018
4178
|
readonly target: v.StrictObjectSchema<
|
|
4019
4179
|
{
|
|
4020
4180
|
readonly scope: v.OptionalSchema<
|
|
@@ -4024,7 +4184,7 @@ declare const AuthoringTransitionSchema: v.StrictObjectSchema<
|
|
|
4024
4184
|
>,
|
|
4025
4185
|
undefined
|
|
4026
4186
|
>;
|
|
4027
|
-
readonly
|
|
4187
|
+
readonly field: v.SchemaWithPipe<
|
|
4028
4188
|
readonly [
|
|
4029
4189
|
v.StringSchema<undefined>,
|
|
4030
4190
|
v.MinLengthAction<
|
|
@@ -4043,7 +4203,7 @@ declare const AuthoringTransitionSchema: v.StrictObjectSchema<
|
|
|
4043
4203
|
>,
|
|
4044
4204
|
v.StrictObjectSchema<
|
|
4045
4205
|
{
|
|
4046
|
-
readonly type: v.LiteralSchema<"
|
|
4206
|
+
readonly type: v.LiteralSchema<"field.unset", undefined>;
|
|
4047
4207
|
readonly target: v.StrictObjectSchema<
|
|
4048
4208
|
{
|
|
4049
4209
|
readonly scope: v.OptionalSchema<
|
|
@@ -4053,7 +4213,7 @@ declare const AuthoringTransitionSchema: v.StrictObjectSchema<
|
|
|
4053
4213
|
>,
|
|
4054
4214
|
undefined
|
|
4055
4215
|
>;
|
|
4056
|
-
readonly
|
|
4216
|
+
readonly field: v.SchemaWithPipe<
|
|
4057
4217
|
readonly [
|
|
4058
4218
|
v.StringSchema<undefined>,
|
|
4059
4219
|
v.MinLengthAction<
|
|
@@ -4071,7 +4231,7 @@ declare const AuthoringTransitionSchema: v.StrictObjectSchema<
|
|
|
4071
4231
|
>,
|
|
4072
4232
|
v.StrictObjectSchema<
|
|
4073
4233
|
{
|
|
4074
|
-
readonly type: v.LiteralSchema<"
|
|
4234
|
+
readonly type: v.LiteralSchema<"field.append", undefined>;
|
|
4075
4235
|
readonly target: v.StrictObjectSchema<
|
|
4076
4236
|
{
|
|
4077
4237
|
readonly scope: v.OptionalSchema<
|
|
@@ -4081,7 +4241,7 @@ declare const AuthoringTransitionSchema: v.StrictObjectSchema<
|
|
|
4081
4241
|
>,
|
|
4082
4242
|
undefined
|
|
4083
4243
|
>;
|
|
4084
|
-
readonly
|
|
4244
|
+
readonly field: v.SchemaWithPipe<
|
|
4085
4245
|
readonly [
|
|
4086
4246
|
v.StringSchema<undefined>,
|
|
4087
4247
|
v.MinLengthAction<
|
|
@@ -4100,7 +4260,7 @@ declare const AuthoringTransitionSchema: v.StrictObjectSchema<
|
|
|
4100
4260
|
>,
|
|
4101
4261
|
v.StrictObjectSchema<
|
|
4102
4262
|
{
|
|
4103
|
-
readonly type: v.LiteralSchema<"
|
|
4263
|
+
readonly type: v.LiteralSchema<"field.updateWhere", undefined>;
|
|
4104
4264
|
readonly target: v.StrictObjectSchema<
|
|
4105
4265
|
{
|
|
4106
4266
|
readonly scope: v.OptionalSchema<
|
|
@@ -4110,7 +4270,7 @@ declare const AuthoringTransitionSchema: v.StrictObjectSchema<
|
|
|
4110
4270
|
>,
|
|
4111
4271
|
undefined
|
|
4112
4272
|
>;
|
|
4113
|
-
readonly
|
|
4273
|
+
readonly field: v.SchemaWithPipe<
|
|
4114
4274
|
readonly [
|
|
4115
4275
|
v.StringSchema<undefined>,
|
|
4116
4276
|
v.MinLengthAction<
|
|
@@ -4130,7 +4290,7 @@ declare const AuthoringTransitionSchema: v.StrictObjectSchema<
|
|
|
4130
4290
|
>,
|
|
4131
4291
|
v.StrictObjectSchema<
|
|
4132
4292
|
{
|
|
4133
|
-
readonly type: v.LiteralSchema<"
|
|
4293
|
+
readonly type: v.LiteralSchema<"field.removeWhere", undefined>;
|
|
4134
4294
|
readonly target: v.StrictObjectSchema<
|
|
4135
4295
|
{
|
|
4136
4296
|
readonly scope: v.OptionalSchema<
|
|
@@ -4140,7 +4300,7 @@ declare const AuthoringTransitionSchema: v.StrictObjectSchema<
|
|
|
4140
4300
|
>,
|
|
4141
4301
|
undefined
|
|
4142
4302
|
>;
|
|
4143
|
-
readonly
|
|
4303
|
+
readonly field: v.SchemaWithPipe<
|
|
4144
4304
|
readonly [
|
|
4145
4305
|
v.StringSchema<undefined>,
|
|
4146
4306
|
v.MinLengthAction<
|
|
@@ -4169,7 +4329,7 @@ declare const AuthoringTransitionSchema: v.StrictObjectSchema<
|
|
|
4169
4329
|
>,
|
|
4170
4330
|
undefined
|
|
4171
4331
|
>;
|
|
4172
|
-
readonly
|
|
4332
|
+
readonly field: v.SchemaWithPipe<
|
|
4173
4333
|
readonly [
|
|
4174
4334
|
v.StringSchema<undefined>,
|
|
4175
4335
|
v.MinLengthAction<
|
|
@@ -4310,7 +4470,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4310
4470
|
* never started cold from a picker. Omitted ⇒ `'workflow'` (startable).
|
|
4311
4471
|
* Advisory: consumers filter their start pickers on it (see
|
|
4312
4472
|
* {@link isStartableDefinition}); the engine does NOT refuse a
|
|
4313
|
-
* `startInstance` on a `'child'` def — load-bearing `required`
|
|
4473
|
+
* `startInstance` on a `'child'` def — load-bearing `required` field is the
|
|
4314
4474
|
* runtime backstop.
|
|
4315
4475
|
*/
|
|
4316
4476
|
role: v.OptionalSchema<
|
|
@@ -4327,8 +4487,8 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4327
4487
|
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
4328
4488
|
]
|
|
4329
4489
|
>;
|
|
4330
|
-
/** Workflow-scope
|
|
4331
|
-
|
|
4490
|
+
/** Workflow-scope field entries. Persist for the instance lifetime. */
|
|
4491
|
+
fields: v.OptionalSchema<
|
|
4332
4492
|
v.ArraySchema<
|
|
4333
4493
|
v.UnionSchema<
|
|
4334
4494
|
[
|
|
@@ -4365,7 +4525,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4365
4525
|
>;
|
|
4366
4526
|
/**
|
|
4367
4527
|
* When true, the caller MUST supply this entry at start (via
|
|
4368
|
-
* `
|
|
4528
|
+
* `initialFields`) or spawn (via the parent's `subworkflows.with`). A
|
|
4369
4529
|
* missing required entry throws rather than silently defaulting to
|
|
4370
4530
|
* `null`/`[]` — the same fail-fast an action's `required` param gets.
|
|
4371
4531
|
* Valid only on a workflow-scope `init`-sourced entry (deploy invariant).
|
|
@@ -4476,6 +4636,105 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4476
4636
|
v.StringSchema<undefined>,
|
|
4477
4637
|
undefined
|
|
4478
4638
|
>;
|
|
4639
|
+
/**
|
|
4640
|
+
* Advisory BPMN-aligned classification of this task by its executor (see
|
|
4641
|
+
* {@link TASK_KINDS}). Optional and derived from the task's shape when
|
|
4642
|
+
* omitted; declaring it lets deploy check the shape matches the lane.
|
|
4643
|
+
* Changes no gating or resolution — a label for tooling, like `assignees`.
|
|
4644
|
+
*/
|
|
4645
|
+
kind: v.OptionalSchema<
|
|
4646
|
+
v.PicklistSchema<
|
|
4647
|
+
readonly [
|
|
4648
|
+
"user",
|
|
4649
|
+
"service",
|
|
4650
|
+
"script",
|
|
4651
|
+
"manual",
|
|
4652
|
+
"receive",
|
|
4653
|
+
],
|
|
4654
|
+
`Invalid option: expected one of ${string}`
|
|
4655
|
+
>,
|
|
4656
|
+
undefined
|
|
4657
|
+
>;
|
|
4658
|
+
/** Deep-link target for a `kind: "manual"` task (off-system work). Render-only
|
|
4659
|
+
* metadata; only valid on a manual task (deploy-checked). */
|
|
4660
|
+
target: v.OptionalSchema<
|
|
4661
|
+
v.VariantSchema<
|
|
4662
|
+
"type",
|
|
4663
|
+
[
|
|
4664
|
+
v.StrictObjectSchema<
|
|
4665
|
+
{
|
|
4666
|
+
readonly type: v.LiteralSchema<
|
|
4667
|
+
"url",
|
|
4668
|
+
undefined
|
|
4669
|
+
>;
|
|
4670
|
+
readonly url: v.SchemaWithPipe<
|
|
4671
|
+
readonly [
|
|
4672
|
+
v.StringSchema<undefined>,
|
|
4673
|
+
v.UrlAction<string, "must be a valid URL">,
|
|
4674
|
+
v.CheckAction<
|
|
4675
|
+
string,
|
|
4676
|
+
"must be an http(s) URL"
|
|
4677
|
+
>,
|
|
4678
|
+
]
|
|
4679
|
+
>;
|
|
4680
|
+
},
|
|
4681
|
+
undefined
|
|
4682
|
+
>,
|
|
4683
|
+
v.StrictObjectSchema<
|
|
4684
|
+
{
|
|
4685
|
+
readonly type: v.LiteralSchema<
|
|
4686
|
+
"field",
|
|
4687
|
+
undefined
|
|
4688
|
+
>;
|
|
4689
|
+
readonly field: v.UnionSchema<
|
|
4690
|
+
[
|
|
4691
|
+
v.SchemaWithPipe<
|
|
4692
|
+
readonly [
|
|
4693
|
+
v.StringSchema<undefined>,
|
|
4694
|
+
v.MinLengthAction<
|
|
4695
|
+
string,
|
|
4696
|
+
1,
|
|
4697
|
+
"must be a non-empty string"
|
|
4698
|
+
>,
|
|
4699
|
+
]
|
|
4700
|
+
>,
|
|
4701
|
+
v.StrictObjectSchema<
|
|
4702
|
+
{
|
|
4703
|
+
readonly scope: v.OptionalSchema<
|
|
4704
|
+
v.PicklistSchema<
|
|
4705
|
+
readonly [
|
|
4706
|
+
"workflow",
|
|
4707
|
+
"stage",
|
|
4708
|
+
"task",
|
|
4709
|
+
],
|
|
4710
|
+
`Invalid option: expected one of ${string}`
|
|
4711
|
+
>,
|
|
4712
|
+
undefined
|
|
4713
|
+
>;
|
|
4714
|
+
readonly field: v.SchemaWithPipe<
|
|
4715
|
+
readonly [
|
|
4716
|
+
v.StringSchema<undefined>,
|
|
4717
|
+
v.MinLengthAction<
|
|
4718
|
+
string,
|
|
4719
|
+
1,
|
|
4720
|
+
"must be a non-empty string"
|
|
4721
|
+
>,
|
|
4722
|
+
]
|
|
4723
|
+
>;
|
|
4724
|
+
},
|
|
4725
|
+
undefined
|
|
4726
|
+
>,
|
|
4727
|
+
],
|
|
4728
|
+
undefined
|
|
4729
|
+
>;
|
|
4730
|
+
},
|
|
4731
|
+
undefined
|
|
4732
|
+
>,
|
|
4733
|
+
],
|
|
4734
|
+
undefined
|
|
4735
|
+
>,
|
|
4736
|
+
undefined
|
|
4737
|
+
>;
|
|
4479
4738
|
activation: v.OptionalSchema<
|
|
4480
4739
|
v.PicklistSchema<
|
|
4481
4740
|
readonly ["auto", "manual"],
|
|
@@ -4575,7 +4834,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4575
4834
|
v.StrictObjectSchema<
|
|
4576
4835
|
{
|
|
4577
4836
|
readonly type: v.LiteralSchema<
|
|
4578
|
-
"
|
|
4837
|
+
"field.set",
|
|
4579
4838
|
undefined
|
|
4580
4839
|
>;
|
|
4581
4840
|
readonly target: v.StrictObjectSchema<
|
|
@@ -4591,7 +4850,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4591
4850
|
>,
|
|
4592
4851
|
undefined
|
|
4593
4852
|
>;
|
|
4594
|
-
readonly
|
|
4853
|
+
readonly field: v.SchemaWithPipe<
|
|
4595
4854
|
readonly [
|
|
4596
4855
|
v.StringSchema<undefined>,
|
|
4597
4856
|
v.MinLengthAction<
|
|
@@ -4611,7 +4870,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4611
4870
|
v.StrictObjectSchema<
|
|
4612
4871
|
{
|
|
4613
4872
|
readonly type: v.LiteralSchema<
|
|
4614
|
-
"
|
|
4873
|
+
"field.unset",
|
|
4615
4874
|
undefined
|
|
4616
4875
|
>;
|
|
4617
4876
|
readonly target: v.StrictObjectSchema<
|
|
@@ -4627,7 +4886,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4627
4886
|
>,
|
|
4628
4887
|
undefined
|
|
4629
4888
|
>;
|
|
4630
|
-
readonly
|
|
4889
|
+
readonly field: v.SchemaWithPipe<
|
|
4631
4890
|
readonly [
|
|
4632
4891
|
v.StringSchema<undefined>,
|
|
4633
4892
|
v.MinLengthAction<
|
|
@@ -4646,7 +4905,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4646
4905
|
v.StrictObjectSchema<
|
|
4647
4906
|
{
|
|
4648
4907
|
readonly type: v.LiteralSchema<
|
|
4649
|
-
"
|
|
4908
|
+
"field.append",
|
|
4650
4909
|
undefined
|
|
4651
4910
|
>;
|
|
4652
4911
|
readonly target: v.StrictObjectSchema<
|
|
@@ -4662,7 +4921,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4662
4921
|
>,
|
|
4663
4922
|
undefined
|
|
4664
4923
|
>;
|
|
4665
|
-
readonly
|
|
4924
|
+
readonly field: v.SchemaWithPipe<
|
|
4666
4925
|
readonly [
|
|
4667
4926
|
v.StringSchema<undefined>,
|
|
4668
4927
|
v.MinLengthAction<
|
|
@@ -4682,7 +4941,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4682
4941
|
v.StrictObjectSchema<
|
|
4683
4942
|
{
|
|
4684
4943
|
readonly type: v.LiteralSchema<
|
|
4685
|
-
"
|
|
4944
|
+
"field.updateWhere",
|
|
4686
4945
|
undefined
|
|
4687
4946
|
>;
|
|
4688
4947
|
readonly target: v.StrictObjectSchema<
|
|
@@ -4698,7 +4957,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4698
4957
|
>,
|
|
4699
4958
|
undefined
|
|
4700
4959
|
>;
|
|
4701
|
-
readonly
|
|
4960
|
+
readonly field: v.SchemaWithPipe<
|
|
4702
4961
|
readonly [
|
|
4703
4962
|
v.StringSchema<undefined>,
|
|
4704
4963
|
v.MinLengthAction<
|
|
@@ -4719,7 +4978,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4719
4978
|
v.StrictObjectSchema<
|
|
4720
4979
|
{
|
|
4721
4980
|
readonly type: v.LiteralSchema<
|
|
4722
|
-
"
|
|
4981
|
+
"field.removeWhere",
|
|
4723
4982
|
undefined
|
|
4724
4983
|
>;
|
|
4725
4984
|
readonly target: v.StrictObjectSchema<
|
|
@@ -4735,7 +4994,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4735
4994
|
>,
|
|
4736
4995
|
undefined
|
|
4737
4996
|
>;
|
|
4738
|
-
readonly
|
|
4997
|
+
readonly field: v.SchemaWithPipe<
|
|
4739
4998
|
readonly [
|
|
4740
4999
|
v.StringSchema<undefined>,
|
|
4741
5000
|
v.MinLengthAction<
|
|
@@ -4803,7 +5062,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
4803
5062
|
>,
|
|
4804
5063
|
undefined
|
|
4805
5064
|
>;
|
|
4806
|
-
readonly
|
|
5065
|
+
readonly field: v.SchemaWithPipe<
|
|
4807
5066
|
readonly [
|
|
4808
5067
|
v.StringSchema<undefined>,
|
|
4809
5068
|
v.MinLengthAction<
|
|
@@ -5032,7 +5291,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5032
5291
|
v.StrictObjectSchema<
|
|
5033
5292
|
{
|
|
5034
5293
|
readonly type: v.LiteralSchema<
|
|
5035
|
-
"
|
|
5294
|
+
"field.set",
|
|
5036
5295
|
undefined
|
|
5037
5296
|
>;
|
|
5038
5297
|
readonly target: v.StrictObjectSchema<
|
|
@@ -5048,7 +5307,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5048
5307
|
>,
|
|
5049
5308
|
undefined
|
|
5050
5309
|
>;
|
|
5051
|
-
readonly
|
|
5310
|
+
readonly field: v.SchemaWithPipe<
|
|
5052
5311
|
readonly [
|
|
5053
5312
|
v.StringSchema<undefined>,
|
|
5054
5313
|
v.MinLengthAction<
|
|
@@ -5068,7 +5327,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5068
5327
|
v.StrictObjectSchema<
|
|
5069
5328
|
{
|
|
5070
5329
|
readonly type: v.LiteralSchema<
|
|
5071
|
-
"
|
|
5330
|
+
"field.unset",
|
|
5072
5331
|
undefined
|
|
5073
5332
|
>;
|
|
5074
5333
|
readonly target: v.StrictObjectSchema<
|
|
@@ -5084,7 +5343,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5084
5343
|
>,
|
|
5085
5344
|
undefined
|
|
5086
5345
|
>;
|
|
5087
|
-
readonly
|
|
5346
|
+
readonly field: v.SchemaWithPipe<
|
|
5088
5347
|
readonly [
|
|
5089
5348
|
v.StringSchema<undefined>,
|
|
5090
5349
|
v.MinLengthAction<
|
|
@@ -5103,7 +5362,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5103
5362
|
v.StrictObjectSchema<
|
|
5104
5363
|
{
|
|
5105
5364
|
readonly type: v.LiteralSchema<
|
|
5106
|
-
"
|
|
5365
|
+
"field.append",
|
|
5107
5366
|
undefined
|
|
5108
5367
|
>;
|
|
5109
5368
|
readonly target: v.StrictObjectSchema<
|
|
@@ -5119,7 +5378,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5119
5378
|
>,
|
|
5120
5379
|
undefined
|
|
5121
5380
|
>;
|
|
5122
|
-
readonly
|
|
5381
|
+
readonly field: v.SchemaWithPipe<
|
|
5123
5382
|
readonly [
|
|
5124
5383
|
v.StringSchema<undefined>,
|
|
5125
5384
|
v.MinLengthAction<
|
|
@@ -5139,7 +5398,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5139
5398
|
v.StrictObjectSchema<
|
|
5140
5399
|
{
|
|
5141
5400
|
readonly type: v.LiteralSchema<
|
|
5142
|
-
"
|
|
5401
|
+
"field.updateWhere",
|
|
5143
5402
|
undefined
|
|
5144
5403
|
>;
|
|
5145
5404
|
readonly target: v.StrictObjectSchema<
|
|
@@ -5155,7 +5414,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5155
5414
|
>,
|
|
5156
5415
|
undefined
|
|
5157
5416
|
>;
|
|
5158
|
-
readonly
|
|
5417
|
+
readonly field: v.SchemaWithPipe<
|
|
5159
5418
|
readonly [
|
|
5160
5419
|
v.StringSchema<undefined>,
|
|
5161
5420
|
v.MinLengthAction<
|
|
@@ -5176,7 +5435,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5176
5435
|
v.StrictObjectSchema<
|
|
5177
5436
|
{
|
|
5178
5437
|
readonly type: v.LiteralSchema<
|
|
5179
|
-
"
|
|
5438
|
+
"field.removeWhere",
|
|
5180
5439
|
undefined
|
|
5181
5440
|
>;
|
|
5182
5441
|
readonly target: v.StrictObjectSchema<
|
|
@@ -5192,7 +5451,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5192
5451
|
>,
|
|
5193
5452
|
undefined
|
|
5194
5453
|
>;
|
|
5195
|
-
readonly
|
|
5454
|
+
readonly field: v.SchemaWithPipe<
|
|
5196
5455
|
readonly [
|
|
5197
5456
|
v.StringSchema<undefined>,
|
|
5198
5457
|
v.MinLengthAction<
|
|
@@ -5260,7 +5519,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5260
5519
|
>,
|
|
5261
5520
|
undefined
|
|
5262
5521
|
>;
|
|
5263
|
-
readonly
|
|
5522
|
+
readonly field: v.SchemaWithPipe<
|
|
5264
5523
|
readonly [
|
|
5265
5524
|
v.StringSchema<undefined>,
|
|
5266
5525
|
v.MinLengthAction<
|
|
@@ -5401,7 +5660,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5401
5660
|
v.StringSchema<undefined>,
|
|
5402
5661
|
undefined
|
|
5403
5662
|
>;
|
|
5404
|
-
readonly
|
|
5663
|
+
readonly field: v.UnionSchema<
|
|
5405
5664
|
[
|
|
5406
5665
|
v.SchemaWithPipe<
|
|
5407
5666
|
readonly [
|
|
@@ -5426,7 +5685,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5426
5685
|
>,
|
|
5427
5686
|
undefined
|
|
5428
5687
|
>;
|
|
5429
|
-
readonly
|
|
5688
|
+
readonly field: v.SchemaWithPipe<
|
|
5430
5689
|
readonly [
|
|
5431
5690
|
v.StringSchema<undefined>,
|
|
5432
5691
|
v.MinLengthAction<
|
|
@@ -5633,7 +5892,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5633
5892
|
},
|
|
5634
5893
|
undefined
|
|
5635
5894
|
>;
|
|
5636
|
-
/** Initial
|
|
5895
|
+
/** Initial fields for each subworkflow — entry name → GROQ over `$row` + the parent scope. */
|
|
5637
5896
|
readonly with: v.OptionalSchema<
|
|
5638
5897
|
v.RecordSchema<
|
|
5639
5898
|
v.SchemaWithPipe<
|
|
@@ -5696,8 +5955,8 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5696
5955
|
>,
|
|
5697
5956
|
undefined
|
|
5698
5957
|
>;
|
|
5699
|
-
/** Task-scoped
|
|
5700
|
-
|
|
5958
|
+
/** Task-scoped field entries. Resolved at task activation time. */
|
|
5959
|
+
fields: v.OptionalSchema<
|
|
5701
5960
|
v.ArraySchema<
|
|
5702
5961
|
v.UnionSchema<
|
|
5703
5962
|
[
|
|
@@ -5737,7 +5996,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5737
5996
|
>;
|
|
5738
5997
|
/**
|
|
5739
5998
|
* When true, the caller MUST supply this entry at start (via
|
|
5740
|
-
* `
|
|
5999
|
+
* `initialFields`) or spawn (via the parent's `subworkflows.with`). A
|
|
5741
6000
|
* missing required entry throws rather than silently defaulting to
|
|
5742
6001
|
* `null`/`[]` — the same fail-fast an action's `required` param gets.
|
|
5743
6002
|
* Valid only on a workflow-scope `init`-sourced entry (deploy invariant).
|
|
@@ -5865,7 +6124,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5865
6124
|
>,
|
|
5866
6125
|
undefined
|
|
5867
6126
|
>;
|
|
5868
|
-
/** The `
|
|
6127
|
+
/** The `field.*` subset — field-write-on-move, the stage's EXIT/ARRIVAL payload. */
|
|
5869
6128
|
ops: v.OptionalSchema<
|
|
5870
6129
|
v.ArraySchema<
|
|
5871
6130
|
v.VariantSchema<
|
|
@@ -5874,7 +6133,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5874
6133
|
v.StrictObjectSchema<
|
|
5875
6134
|
{
|
|
5876
6135
|
readonly type: v.LiteralSchema<
|
|
5877
|
-
"
|
|
6136
|
+
"field.set",
|
|
5878
6137
|
undefined
|
|
5879
6138
|
>;
|
|
5880
6139
|
readonly target: v.StrictObjectSchema<
|
|
@@ -5890,7 +6149,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5890
6149
|
>,
|
|
5891
6150
|
undefined
|
|
5892
6151
|
>;
|
|
5893
|
-
readonly
|
|
6152
|
+
readonly field: v.SchemaWithPipe<
|
|
5894
6153
|
readonly [
|
|
5895
6154
|
v.StringSchema<undefined>,
|
|
5896
6155
|
v.MinLengthAction<
|
|
@@ -5910,7 +6169,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5910
6169
|
v.StrictObjectSchema<
|
|
5911
6170
|
{
|
|
5912
6171
|
readonly type: v.LiteralSchema<
|
|
5913
|
-
"
|
|
6172
|
+
"field.unset",
|
|
5914
6173
|
undefined
|
|
5915
6174
|
>;
|
|
5916
6175
|
readonly target: v.StrictObjectSchema<
|
|
@@ -5926,7 +6185,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5926
6185
|
>,
|
|
5927
6186
|
undefined
|
|
5928
6187
|
>;
|
|
5929
|
-
readonly
|
|
6188
|
+
readonly field: v.SchemaWithPipe<
|
|
5930
6189
|
readonly [
|
|
5931
6190
|
v.StringSchema<undefined>,
|
|
5932
6191
|
v.MinLengthAction<
|
|
@@ -5945,7 +6204,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5945
6204
|
v.StrictObjectSchema<
|
|
5946
6205
|
{
|
|
5947
6206
|
readonly type: v.LiteralSchema<
|
|
5948
|
-
"
|
|
6207
|
+
"field.append",
|
|
5949
6208
|
undefined
|
|
5950
6209
|
>;
|
|
5951
6210
|
readonly target: v.StrictObjectSchema<
|
|
@@ -5961,7 +6220,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5961
6220
|
>,
|
|
5962
6221
|
undefined
|
|
5963
6222
|
>;
|
|
5964
|
-
readonly
|
|
6223
|
+
readonly field: v.SchemaWithPipe<
|
|
5965
6224
|
readonly [
|
|
5966
6225
|
v.StringSchema<undefined>,
|
|
5967
6226
|
v.MinLengthAction<
|
|
@@ -5981,7 +6240,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5981
6240
|
v.StrictObjectSchema<
|
|
5982
6241
|
{
|
|
5983
6242
|
readonly type: v.LiteralSchema<
|
|
5984
|
-
"
|
|
6243
|
+
"field.updateWhere",
|
|
5985
6244
|
undefined
|
|
5986
6245
|
>;
|
|
5987
6246
|
readonly target: v.StrictObjectSchema<
|
|
@@ -5997,7 +6256,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
5997
6256
|
>,
|
|
5998
6257
|
undefined
|
|
5999
6258
|
>;
|
|
6000
|
-
readonly
|
|
6259
|
+
readonly field: v.SchemaWithPipe<
|
|
6001
6260
|
readonly [
|
|
6002
6261
|
v.StringSchema<undefined>,
|
|
6003
6262
|
v.MinLengthAction<
|
|
@@ -6018,7 +6277,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6018
6277
|
v.StrictObjectSchema<
|
|
6019
6278
|
{
|
|
6020
6279
|
readonly type: v.LiteralSchema<
|
|
6021
|
-
"
|
|
6280
|
+
"field.removeWhere",
|
|
6022
6281
|
undefined
|
|
6023
6282
|
>;
|
|
6024
6283
|
readonly target: v.StrictObjectSchema<
|
|
@@ -6034,7 +6293,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6034
6293
|
>,
|
|
6035
6294
|
undefined
|
|
6036
6295
|
>;
|
|
6037
|
-
readonly
|
|
6296
|
+
readonly field: v.SchemaWithPipe<
|
|
6038
6297
|
readonly [
|
|
6039
6298
|
v.StringSchema<undefined>,
|
|
6040
6299
|
v.MinLengthAction<
|
|
@@ -6070,7 +6329,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6070
6329
|
>,
|
|
6071
6330
|
undefined
|
|
6072
6331
|
>;
|
|
6073
|
-
readonly
|
|
6332
|
+
readonly field: v.SchemaWithPipe<
|
|
6074
6333
|
readonly [
|
|
6075
6334
|
v.StringSchema<undefined>,
|
|
6076
6335
|
v.MinLengthAction<
|
|
@@ -6236,7 +6495,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6236
6495
|
>,
|
|
6237
6496
|
undefined
|
|
6238
6497
|
>;
|
|
6239
|
-
/** Target docs as `$
|
|
6498
|
+
/** Target docs as `$fields` reads (or `"$self"`), resolved at deploy to bare ids + the resource. */
|
|
6240
6499
|
readonly idRefs: v.OptionalSchema<
|
|
6241
6500
|
v.ArraySchema<
|
|
6242
6501
|
v.SchemaWithPipe<
|
|
@@ -6312,12 +6571,12 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6312
6571
|
undefined
|
|
6313
6572
|
>;
|
|
6314
6573
|
/**
|
|
6315
|
-
* Projected workflow
|
|
6316
|
-
* the only bridge from the lake eval context (which cannot see `$
|
|
6317
|
-
* to workflow
|
|
6574
|
+
* Projected workflow fields the predicate reads as `guard.metadata.*` —
|
|
6575
|
+
* the only bridge from the lake eval context (which cannot see `$fields`)
|
|
6576
|
+
* to workflow fields. Values are NOT GROQ: each is a deploy-time read in
|
|
6318
6577
|
* the guard mini-language — `"$self"`, `"$now"`, or
|
|
6319
|
-
* `"$
|
|
6320
|
-
* re-synced by the post-
|
|
6578
|
+
* `"$fields.<name>[.path]"` — resolved into a bare value at deploy and
|
|
6579
|
+
* re-synced by the post-field-op guard refresh.
|
|
6321
6580
|
*/
|
|
6322
6581
|
readonly metadata: v.OptionalSchema<
|
|
6323
6582
|
v.RecordSchema<
|
|
@@ -6352,8 +6611,8 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6352
6611
|
>,
|
|
6353
6612
|
undefined
|
|
6354
6613
|
>;
|
|
6355
|
-
/** Stage-scoped
|
|
6356
|
-
|
|
6614
|
+
/** Stage-scoped field entries. Resolved at stage entry. */
|
|
6615
|
+
fields: v.OptionalSchema<
|
|
6357
6616
|
v.ArraySchema<
|
|
6358
6617
|
v.UnionSchema<
|
|
6359
6618
|
[
|
|
@@ -6393,7 +6652,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6393
6652
|
>;
|
|
6394
6653
|
/**
|
|
6395
6654
|
* When true, the caller MUST supply this entry at start (via
|
|
6396
|
-
* `
|
|
6655
|
+
* `initialFields`) or spawn (via the parent's `subworkflows.with`). A
|
|
6397
6656
|
* missing required entry throws rather than silently defaulting to
|
|
6398
6657
|
* `null`/`[]` — the same fail-fast an action's `required` param gets.
|
|
6399
6658
|
* Valid only on a workflow-scope `init`-sourced entry (deploy invariant).
|
|
@@ -6529,7 +6788,29 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6529
6788
|
name: string;
|
|
6530
6789
|
title?: string | undefined;
|
|
6531
6790
|
description?: string | undefined;
|
|
6532
|
-
|
|
6791
|
+
kind?:
|
|
6792
|
+
| "user"
|
|
6793
|
+
| "service"
|
|
6794
|
+
| "script"
|
|
6795
|
+
| "manual"
|
|
6796
|
+
| "receive"
|
|
6797
|
+
| undefined;
|
|
6798
|
+
target?:
|
|
6799
|
+
| {
|
|
6800
|
+
type: "url";
|
|
6801
|
+
url: string;
|
|
6802
|
+
}
|
|
6803
|
+
| {
|
|
6804
|
+
type: "field";
|
|
6805
|
+
field:
|
|
6806
|
+
| string
|
|
6807
|
+
| {
|
|
6808
|
+
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6809
|
+
field: string;
|
|
6810
|
+
};
|
|
6811
|
+
}
|
|
6812
|
+
| undefined;
|
|
6813
|
+
activation?: "manual" | "auto" | undefined;
|
|
6533
6814
|
filter?: string | undefined;
|
|
6534
6815
|
requirements?:
|
|
6535
6816
|
| {
|
|
@@ -6554,7 +6835,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6554
6835
|
type: "audit";
|
|
6555
6836
|
target: {
|
|
6556
6837
|
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6557
|
-
|
|
6838
|
+
field: string;
|
|
6558
6839
|
};
|
|
6559
6840
|
value: SourceInternal;
|
|
6560
6841
|
stampFields?:
|
|
@@ -6565,42 +6846,42 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6565
6846
|
| undefined;
|
|
6566
6847
|
}
|
|
6567
6848
|
| {
|
|
6568
|
-
type: "
|
|
6849
|
+
type: "field.set";
|
|
6569
6850
|
target: {
|
|
6570
6851
|
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6571
|
-
|
|
6852
|
+
field: string;
|
|
6572
6853
|
};
|
|
6573
6854
|
value: SourceInternal;
|
|
6574
6855
|
}
|
|
6575
6856
|
| {
|
|
6576
|
-
type: "
|
|
6857
|
+
type: "field.unset";
|
|
6577
6858
|
target: {
|
|
6578
6859
|
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6579
|
-
|
|
6860
|
+
field: string;
|
|
6580
6861
|
};
|
|
6581
6862
|
}
|
|
6582
6863
|
| {
|
|
6583
|
-
type: "
|
|
6864
|
+
type: "field.append";
|
|
6584
6865
|
target: {
|
|
6585
6866
|
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6586
|
-
|
|
6867
|
+
field: string;
|
|
6587
6868
|
};
|
|
6588
6869
|
value: SourceInternal;
|
|
6589
6870
|
}
|
|
6590
6871
|
| {
|
|
6591
|
-
type: "
|
|
6872
|
+
type: "field.updateWhere";
|
|
6592
6873
|
target: {
|
|
6593
6874
|
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6594
|
-
|
|
6875
|
+
field: string;
|
|
6595
6876
|
};
|
|
6596
6877
|
where: OpPredicateInternal;
|
|
6597
6878
|
value: SourceInternal;
|
|
6598
6879
|
}
|
|
6599
6880
|
| {
|
|
6600
|
-
type: "
|
|
6881
|
+
type: "field.removeWhere";
|
|
6601
6882
|
target: {
|
|
6602
6883
|
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6603
|
-
|
|
6884
|
+
field: string;
|
|
6604
6885
|
};
|
|
6605
6886
|
where: OpPredicateInternal;
|
|
6606
6887
|
}
|
|
@@ -6670,7 +6951,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6670
6951
|
| "stage"
|
|
6671
6952
|
| "task"
|
|
6672
6953
|
| undefined;
|
|
6673
|
-
|
|
6954
|
+
field: string;
|
|
6674
6955
|
};
|
|
6675
6956
|
value: SourceInternal;
|
|
6676
6957
|
stampFields?:
|
|
@@ -6681,62 +6962,62 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6681
6962
|
| undefined;
|
|
6682
6963
|
}
|
|
6683
6964
|
| {
|
|
6684
|
-
type: "
|
|
6965
|
+
type: "field.set";
|
|
6685
6966
|
target: {
|
|
6686
6967
|
scope?:
|
|
6687
6968
|
| "workflow"
|
|
6688
6969
|
| "stage"
|
|
6689
6970
|
| "task"
|
|
6690
6971
|
| undefined;
|
|
6691
|
-
|
|
6972
|
+
field: string;
|
|
6692
6973
|
};
|
|
6693
6974
|
value: SourceInternal;
|
|
6694
6975
|
}
|
|
6695
6976
|
| {
|
|
6696
|
-
type: "
|
|
6977
|
+
type: "field.unset";
|
|
6697
6978
|
target: {
|
|
6698
6979
|
scope?:
|
|
6699
6980
|
| "workflow"
|
|
6700
6981
|
| "stage"
|
|
6701
6982
|
| "task"
|
|
6702
6983
|
| undefined;
|
|
6703
|
-
|
|
6984
|
+
field: string;
|
|
6704
6985
|
};
|
|
6705
6986
|
}
|
|
6706
6987
|
| {
|
|
6707
|
-
type: "
|
|
6988
|
+
type: "field.append";
|
|
6708
6989
|
target: {
|
|
6709
6990
|
scope?:
|
|
6710
6991
|
| "workflow"
|
|
6711
6992
|
| "stage"
|
|
6712
6993
|
| "task"
|
|
6713
6994
|
| undefined;
|
|
6714
|
-
|
|
6995
|
+
field: string;
|
|
6715
6996
|
};
|
|
6716
6997
|
value: SourceInternal;
|
|
6717
6998
|
}
|
|
6718
6999
|
| {
|
|
6719
|
-
type: "
|
|
7000
|
+
type: "field.updateWhere";
|
|
6720
7001
|
target: {
|
|
6721
7002
|
scope?:
|
|
6722
7003
|
| "workflow"
|
|
6723
7004
|
| "stage"
|
|
6724
7005
|
| "task"
|
|
6725
7006
|
| undefined;
|
|
6726
|
-
|
|
7007
|
+
field: string;
|
|
6727
7008
|
};
|
|
6728
7009
|
where: OpPredicateInternal;
|
|
6729
7010
|
value: SourceInternal;
|
|
6730
7011
|
}
|
|
6731
7012
|
| {
|
|
6732
|
-
type: "
|
|
7013
|
+
type: "field.removeWhere";
|
|
6733
7014
|
target: {
|
|
6734
7015
|
scope?:
|
|
6735
7016
|
| "workflow"
|
|
6736
7017
|
| "stage"
|
|
6737
7018
|
| "task"
|
|
6738
7019
|
| undefined;
|
|
6739
|
-
|
|
7020
|
+
field: string;
|
|
6740
7021
|
};
|
|
6741
7022
|
where: OpPredicateInternal;
|
|
6742
7023
|
}
|
|
@@ -6765,7 +7046,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6765
7046
|
name: string;
|
|
6766
7047
|
title?: string | undefined;
|
|
6767
7048
|
description?: string | undefined;
|
|
6768
|
-
|
|
7049
|
+
field:
|
|
6769
7050
|
| string
|
|
6770
7051
|
| {
|
|
6771
7052
|
scope?:
|
|
@@ -6773,7 +7054,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6773
7054
|
| "stage"
|
|
6774
7055
|
| "task"
|
|
6775
7056
|
| undefined;
|
|
6776
|
-
|
|
7057
|
+
field: string;
|
|
6777
7058
|
};
|
|
6778
7059
|
roles?: string[] | undefined;
|
|
6779
7060
|
filter?: string | undefined;
|
|
@@ -6834,7 +7115,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6834
7115
|
| undefined;
|
|
6835
7116
|
}
|
|
6836
7117
|
| undefined;
|
|
6837
|
-
|
|
7118
|
+
fields?:
|
|
6838
7119
|
| (
|
|
6839
7120
|
| {
|
|
6840
7121
|
type:
|
|
@@ -6881,7 +7162,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6881
7162
|
type: "audit";
|
|
6882
7163
|
target: {
|
|
6883
7164
|
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6884
|
-
|
|
7165
|
+
field: string;
|
|
6885
7166
|
};
|
|
6886
7167
|
value: SourceInternal;
|
|
6887
7168
|
stampFields?:
|
|
@@ -6892,42 +7173,42 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6892
7173
|
| undefined;
|
|
6893
7174
|
}
|
|
6894
7175
|
| {
|
|
6895
|
-
type: "
|
|
7176
|
+
type: "field.set";
|
|
6896
7177
|
target: {
|
|
6897
7178
|
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6898
|
-
|
|
7179
|
+
field: string;
|
|
6899
7180
|
};
|
|
6900
7181
|
value: SourceInternal;
|
|
6901
7182
|
}
|
|
6902
7183
|
| {
|
|
6903
|
-
type: "
|
|
7184
|
+
type: "field.unset";
|
|
6904
7185
|
target: {
|
|
6905
7186
|
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6906
|
-
|
|
7187
|
+
field: string;
|
|
6907
7188
|
};
|
|
6908
7189
|
}
|
|
6909
7190
|
| {
|
|
6910
|
-
type: "
|
|
7191
|
+
type: "field.append";
|
|
6911
7192
|
target: {
|
|
6912
7193
|
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6913
|
-
|
|
7194
|
+
field: string;
|
|
6914
7195
|
};
|
|
6915
7196
|
value: SourceInternal;
|
|
6916
7197
|
}
|
|
6917
7198
|
| {
|
|
6918
|
-
type: "
|
|
7199
|
+
type: "field.updateWhere";
|
|
6919
7200
|
target: {
|
|
6920
7201
|
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6921
|
-
|
|
7202
|
+
field: string;
|
|
6922
7203
|
};
|
|
6923
7204
|
where: OpPredicateInternal;
|
|
6924
7205
|
value: SourceInternal;
|
|
6925
7206
|
}
|
|
6926
7207
|
| {
|
|
6927
|
-
type: "
|
|
7208
|
+
type: "field.removeWhere";
|
|
6928
7209
|
target: {
|
|
6929
7210
|
scope?: "workflow" | "stage" | "task" | undefined;
|
|
6930
|
-
|
|
7211
|
+
field: string;
|
|
6931
7212
|
};
|
|
6932
7213
|
where: OpPredicateInternal;
|
|
6933
7214
|
}
|
|
@@ -6977,7 +7258,7 @@ declare const AuthoringWorkflowSchema: v.StrictObjectSchema<
|
|
|
6977
7258
|
| undefined;
|
|
6978
7259
|
}[]
|
|
6979
7260
|
| undefined;
|
|
6980
|
-
|
|
7261
|
+
fields?:
|
|
6981
7262
|
| (
|
|
6982
7263
|
| {
|
|
6983
7264
|
type:
|
|
@@ -7087,16 +7368,16 @@ export declare function defineEffectDescriptor(
|
|
|
7087
7368
|
descriptor: EffectDescriptor,
|
|
7088
7369
|
): EffectDescriptor;
|
|
7089
7370
|
|
|
7371
|
+
export declare function defineField(
|
|
7372
|
+
entry: AuthoringFieldEntry,
|
|
7373
|
+
): AuthoringFieldEntry;
|
|
7374
|
+
|
|
7090
7375
|
export declare function defineGuard(guard: Guard): Guard;
|
|
7091
7376
|
|
|
7092
7377
|
export declare function defineOp(op: AuthoringOp): AuthoringOp;
|
|
7093
7378
|
|
|
7094
7379
|
export declare function defineStage(stage: AuthoringStage): AuthoringStage;
|
|
7095
7380
|
|
|
7096
|
-
export declare function defineState(
|
|
7097
|
-
entry: AuthoringStateEntry,
|
|
7098
|
-
): AuthoringStateEntry;
|
|
7099
|
-
|
|
7100
7381
|
export declare function defineTask(task: AuthoringTask): AuthoringTask;
|
|
7101
7382
|
|
|
7102
7383
|
export declare function defineTransition(
|
|
@@ -7187,7 +7468,7 @@ declare const EffectSchema: v.StrictObjectSchema<
|
|
|
7187
7468
|
* deploy like any other.
|
|
7188
7469
|
*
|
|
7189
7470
|
* ```ts
|
|
7190
|
-
* const regulated = (kinds: string[]) => groq`$
|
|
7471
|
+
* const regulated = (kinds: string[]) => groq`$fields.subject.category in ${kinds}`
|
|
7191
7472
|
* defineTask({ name: "legal", filter: regulated(["finance", "health"]), … })
|
|
7192
7473
|
* ```
|
|
7193
7474
|
*/
|
|
@@ -7226,7 +7507,7 @@ declare const GuardSchema: v.StrictObjectSchema<
|
|
|
7226
7507
|
>,
|
|
7227
7508
|
undefined
|
|
7228
7509
|
>;
|
|
7229
|
-
/** Target docs as `$
|
|
7510
|
+
/** Target docs as `$fields` reads (or `"$self"`), resolved at deploy to bare ids + the resource. */
|
|
7230
7511
|
readonly idRefs: v.OptionalSchema<
|
|
7231
7512
|
v.ArraySchema<
|
|
7232
7513
|
v.SchemaWithPipe<
|
|
@@ -7279,12 +7560,12 @@ declare const GuardSchema: v.StrictObjectSchema<
|
|
|
7279
7560
|
*/
|
|
7280
7561
|
readonly predicate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7281
7562
|
/**
|
|
7282
|
-
* Projected workflow
|
|
7283
|
-
* the only bridge from the lake eval context (which cannot see `$
|
|
7284
|
-
* to workflow
|
|
7563
|
+
* Projected workflow fields the predicate reads as `guard.metadata.*` —
|
|
7564
|
+
* the only bridge from the lake eval context (which cannot see `$fields`)
|
|
7565
|
+
* to workflow fields. Values are NOT GROQ: each is a deploy-time read in
|
|
7285
7566
|
* the guard mini-language — `"$self"`, `"$now"`, or
|
|
7286
|
-
* `"$
|
|
7287
|
-
* re-synced by the post-
|
|
7567
|
+
* `"$fields.<name>[.path]"` — resolved into a bare value at deploy and
|
|
7568
|
+
* re-synced by the post-field-op guard refresh.
|
|
7288
7569
|
*/
|
|
7289
7570
|
readonly metadata: v.OptionalSchema<
|
|
7290
7571
|
v.RecordSchema<
|
|
@@ -7357,9 +7638,9 @@ declare type SourceInternal =
|
|
|
7357
7638
|
type: "stage";
|
|
7358
7639
|
}
|
|
7359
7640
|
| {
|
|
7360
|
-
type: "
|
|
7641
|
+
type: "fieldRead";
|
|
7361
7642
|
scope?: "workflow" | "stage" | undefined;
|
|
7362
|
-
|
|
7643
|
+
field: string;
|
|
7363
7644
|
path?: string | undefined;
|
|
7364
7645
|
}
|
|
7365
7646
|
| {
|
|
@@ -7405,7 +7686,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7405
7686
|
* never started cold from a picker. Omitted ⇒ `'workflow'` (startable).
|
|
7406
7687
|
* Advisory: consumers filter their start pickers on it (see
|
|
7407
7688
|
* {@link isStartableDefinition}); the engine does NOT refuse a
|
|
7408
|
-
* `startInstance` on a `'child'` def — load-bearing `required`
|
|
7689
|
+
* `startInstance` on a `'child'` def — load-bearing `required` field is the
|
|
7409
7690
|
* runtime backstop.
|
|
7410
7691
|
*/
|
|
7411
7692
|
role: v.OptionalSchema<
|
|
@@ -7422,8 +7703,8 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7422
7703
|
v.MinLengthAction<string, 1, "must be a non-empty string">,
|
|
7423
7704
|
]
|
|
7424
7705
|
>;
|
|
7425
|
-
/** Workflow-scope
|
|
7426
|
-
|
|
7706
|
+
/** Workflow-scope field entries. Persist for the instance lifetime. */
|
|
7707
|
+
fields: v.OptionalSchema<
|
|
7427
7708
|
v.ArraySchema<
|
|
7428
7709
|
v.StrictObjectSchema<
|
|
7429
7710
|
{
|
|
@@ -7455,7 +7736,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7455
7736
|
description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7456
7737
|
/**
|
|
7457
7738
|
* When true, the caller MUST supply this entry at start (via
|
|
7458
|
-
* `
|
|
7739
|
+
* `initialFields`) or spawn (via the parent's `subworkflows.with`). A
|
|
7459
7740
|
* missing required entry throws rather than silently defaulting to
|
|
7460
7741
|
* `null`/`[]` — the same fail-fast an action's `required` param gets.
|
|
7461
7742
|
* Valid only on a workflow-scope `init`-sourced entry (deploy invariant).
|
|
@@ -7527,6 +7808,83 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7527
7808
|
v.StringSchema<undefined>,
|
|
7528
7809
|
undefined
|
|
7529
7810
|
>;
|
|
7811
|
+
/**
|
|
7812
|
+
* Advisory BPMN-aligned classification of this task by its executor (see
|
|
7813
|
+
* {@link TASK_KINDS}). Optional and derived from the task's shape when
|
|
7814
|
+
* omitted; declaring it lets deploy check the shape matches the lane.
|
|
7815
|
+
* Changes no gating or resolution — a label for tooling, like `assignees`.
|
|
7816
|
+
*/
|
|
7817
|
+
kind: v.OptionalSchema<
|
|
7818
|
+
v.PicklistSchema<
|
|
7819
|
+
readonly [
|
|
7820
|
+
"user",
|
|
7821
|
+
"service",
|
|
7822
|
+
"script",
|
|
7823
|
+
"manual",
|
|
7824
|
+
"receive",
|
|
7825
|
+
],
|
|
7826
|
+
`Invalid option: expected one of ${string}`
|
|
7827
|
+
>,
|
|
7828
|
+
undefined
|
|
7829
|
+
>;
|
|
7830
|
+
/** Deep-link target for a `kind: "manual"` task (off-system work). Render-only
|
|
7831
|
+
* metadata; only valid on a manual task (deploy-checked). */
|
|
7832
|
+
target: v.OptionalSchema<
|
|
7833
|
+
v.VariantSchema<
|
|
7834
|
+
"type",
|
|
7835
|
+
[
|
|
7836
|
+
v.StrictObjectSchema<
|
|
7837
|
+
{
|
|
7838
|
+
readonly type: v.LiteralSchema<
|
|
7839
|
+
"url",
|
|
7840
|
+
undefined
|
|
7841
|
+
>;
|
|
7842
|
+
readonly url: v.SchemaWithPipe<
|
|
7843
|
+
readonly [
|
|
7844
|
+
v.StringSchema<undefined>,
|
|
7845
|
+
v.UrlAction<string, "must be a valid URL">,
|
|
7846
|
+
v.CheckAction<
|
|
7847
|
+
string,
|
|
7848
|
+
"must be an http(s) URL"
|
|
7849
|
+
>,
|
|
7850
|
+
]
|
|
7851
|
+
>;
|
|
7852
|
+
},
|
|
7853
|
+
undefined
|
|
7854
|
+
>,
|
|
7855
|
+
v.StrictObjectSchema<
|
|
7856
|
+
{
|
|
7857
|
+
readonly type: v.LiteralSchema<
|
|
7858
|
+
"field",
|
|
7859
|
+
undefined
|
|
7860
|
+
>;
|
|
7861
|
+
readonly field: v.StrictObjectSchema<
|
|
7862
|
+
{
|
|
7863
|
+
readonly scope: v.PicklistSchema<
|
|
7864
|
+
readonly ["workflow", "stage", "task"],
|
|
7865
|
+
`Invalid option: expected one of ${string}`
|
|
7866
|
+
>;
|
|
7867
|
+
readonly field: v.SchemaWithPipe<
|
|
7868
|
+
readonly [
|
|
7869
|
+
v.StringSchema<undefined>,
|
|
7870
|
+
v.MinLengthAction<
|
|
7871
|
+
string,
|
|
7872
|
+
1,
|
|
7873
|
+
"must be a non-empty string"
|
|
7874
|
+
>,
|
|
7875
|
+
]
|
|
7876
|
+
>;
|
|
7877
|
+
},
|
|
7878
|
+
undefined
|
|
7879
|
+
>;
|
|
7880
|
+
},
|
|
7881
|
+
undefined
|
|
7882
|
+
>,
|
|
7883
|
+
],
|
|
7884
|
+
undefined
|
|
7885
|
+
>,
|
|
7886
|
+
undefined
|
|
7887
|
+
>;
|
|
7530
7888
|
activation: v.OptionalSchema<
|
|
7531
7889
|
v.PicklistSchema<
|
|
7532
7890
|
readonly ["auto", "manual"],
|
|
@@ -7626,7 +7984,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7626
7984
|
v.StrictObjectSchema<
|
|
7627
7985
|
{
|
|
7628
7986
|
readonly type: v.LiteralSchema<
|
|
7629
|
-
"
|
|
7987
|
+
"field.set",
|
|
7630
7988
|
undefined
|
|
7631
7989
|
>;
|
|
7632
7990
|
readonly target: v.StrictObjectSchema<
|
|
@@ -7635,7 +7993,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7635
7993
|
readonly ["workflow", "stage", "task"],
|
|
7636
7994
|
`Invalid option: expected one of ${string}`
|
|
7637
7995
|
>;
|
|
7638
|
-
readonly
|
|
7996
|
+
readonly field: v.SchemaWithPipe<
|
|
7639
7997
|
readonly [
|
|
7640
7998
|
v.StringSchema<undefined>,
|
|
7641
7999
|
v.MinLengthAction<
|
|
@@ -7655,7 +8013,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7655
8013
|
v.StrictObjectSchema<
|
|
7656
8014
|
{
|
|
7657
8015
|
readonly type: v.LiteralSchema<
|
|
7658
|
-
"
|
|
8016
|
+
"field.unset",
|
|
7659
8017
|
undefined
|
|
7660
8018
|
>;
|
|
7661
8019
|
readonly target: v.StrictObjectSchema<
|
|
@@ -7664,7 +8022,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7664
8022
|
readonly ["workflow", "stage", "task"],
|
|
7665
8023
|
`Invalid option: expected one of ${string}`
|
|
7666
8024
|
>;
|
|
7667
|
-
readonly
|
|
8025
|
+
readonly field: v.SchemaWithPipe<
|
|
7668
8026
|
readonly [
|
|
7669
8027
|
v.StringSchema<undefined>,
|
|
7670
8028
|
v.MinLengthAction<
|
|
@@ -7683,7 +8041,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7683
8041
|
v.StrictObjectSchema<
|
|
7684
8042
|
{
|
|
7685
8043
|
readonly type: v.LiteralSchema<
|
|
7686
|
-
"
|
|
8044
|
+
"field.append",
|
|
7687
8045
|
undefined
|
|
7688
8046
|
>;
|
|
7689
8047
|
readonly target: v.StrictObjectSchema<
|
|
@@ -7692,7 +8050,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7692
8050
|
readonly ["workflow", "stage", "task"],
|
|
7693
8051
|
`Invalid option: expected one of ${string}`
|
|
7694
8052
|
>;
|
|
7695
|
-
readonly
|
|
8053
|
+
readonly field: v.SchemaWithPipe<
|
|
7696
8054
|
readonly [
|
|
7697
8055
|
v.StringSchema<undefined>,
|
|
7698
8056
|
v.MinLengthAction<
|
|
@@ -7712,7 +8070,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7712
8070
|
v.StrictObjectSchema<
|
|
7713
8071
|
{
|
|
7714
8072
|
readonly type: v.LiteralSchema<
|
|
7715
|
-
"
|
|
8073
|
+
"field.updateWhere",
|
|
7716
8074
|
undefined
|
|
7717
8075
|
>;
|
|
7718
8076
|
readonly target: v.StrictObjectSchema<
|
|
@@ -7721,7 +8079,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7721
8079
|
readonly ["workflow", "stage", "task"],
|
|
7722
8080
|
`Invalid option: expected one of ${string}`
|
|
7723
8081
|
>;
|
|
7724
|
-
readonly
|
|
8082
|
+
readonly field: v.SchemaWithPipe<
|
|
7725
8083
|
readonly [
|
|
7726
8084
|
v.StringSchema<undefined>,
|
|
7727
8085
|
v.MinLengthAction<
|
|
@@ -7742,7 +8100,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7742
8100
|
v.StrictObjectSchema<
|
|
7743
8101
|
{
|
|
7744
8102
|
readonly type: v.LiteralSchema<
|
|
7745
|
-
"
|
|
8103
|
+
"field.removeWhere",
|
|
7746
8104
|
undefined
|
|
7747
8105
|
>;
|
|
7748
8106
|
readonly target: v.StrictObjectSchema<
|
|
@@ -7751,7 +8109,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7751
8109
|
readonly ["workflow", "stage", "task"],
|
|
7752
8110
|
`Invalid option: expected one of ${string}`
|
|
7753
8111
|
>;
|
|
7754
|
-
readonly
|
|
8112
|
+
readonly field: v.SchemaWithPipe<
|
|
7755
8113
|
readonly [
|
|
7756
8114
|
v.StringSchema<undefined>,
|
|
7757
8115
|
v.MinLengthAction<
|
|
@@ -7955,7 +8313,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7955
8313
|
v.StrictObjectSchema<
|
|
7956
8314
|
{
|
|
7957
8315
|
readonly type: v.LiteralSchema<
|
|
7958
|
-
"
|
|
8316
|
+
"field.set",
|
|
7959
8317
|
undefined
|
|
7960
8318
|
>;
|
|
7961
8319
|
readonly target: v.StrictObjectSchema<
|
|
@@ -7968,7 +8326,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7968
8326
|
],
|
|
7969
8327
|
`Invalid option: expected one of ${string}`
|
|
7970
8328
|
>;
|
|
7971
|
-
readonly
|
|
8329
|
+
readonly field: v.SchemaWithPipe<
|
|
7972
8330
|
readonly [
|
|
7973
8331
|
v.StringSchema<undefined>,
|
|
7974
8332
|
v.MinLengthAction<
|
|
@@ -7988,7 +8346,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
7988
8346
|
v.StrictObjectSchema<
|
|
7989
8347
|
{
|
|
7990
8348
|
readonly type: v.LiteralSchema<
|
|
7991
|
-
"
|
|
8349
|
+
"field.unset",
|
|
7992
8350
|
undefined
|
|
7993
8351
|
>;
|
|
7994
8352
|
readonly target: v.StrictObjectSchema<
|
|
@@ -8001,7 +8359,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8001
8359
|
],
|
|
8002
8360
|
`Invalid option: expected one of ${string}`
|
|
8003
8361
|
>;
|
|
8004
|
-
readonly
|
|
8362
|
+
readonly field: v.SchemaWithPipe<
|
|
8005
8363
|
readonly [
|
|
8006
8364
|
v.StringSchema<undefined>,
|
|
8007
8365
|
v.MinLengthAction<
|
|
@@ -8020,7 +8378,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8020
8378
|
v.StrictObjectSchema<
|
|
8021
8379
|
{
|
|
8022
8380
|
readonly type: v.LiteralSchema<
|
|
8023
|
-
"
|
|
8381
|
+
"field.append",
|
|
8024
8382
|
undefined
|
|
8025
8383
|
>;
|
|
8026
8384
|
readonly target: v.StrictObjectSchema<
|
|
@@ -8033,7 +8391,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8033
8391
|
],
|
|
8034
8392
|
`Invalid option: expected one of ${string}`
|
|
8035
8393
|
>;
|
|
8036
|
-
readonly
|
|
8394
|
+
readonly field: v.SchemaWithPipe<
|
|
8037
8395
|
readonly [
|
|
8038
8396
|
v.StringSchema<undefined>,
|
|
8039
8397
|
v.MinLengthAction<
|
|
@@ -8053,7 +8411,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8053
8411
|
v.StrictObjectSchema<
|
|
8054
8412
|
{
|
|
8055
8413
|
readonly type: v.LiteralSchema<
|
|
8056
|
-
"
|
|
8414
|
+
"field.updateWhere",
|
|
8057
8415
|
undefined
|
|
8058
8416
|
>;
|
|
8059
8417
|
readonly target: v.StrictObjectSchema<
|
|
@@ -8066,7 +8424,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8066
8424
|
],
|
|
8067
8425
|
`Invalid option: expected one of ${string}`
|
|
8068
8426
|
>;
|
|
8069
|
-
readonly
|
|
8427
|
+
readonly field: v.SchemaWithPipe<
|
|
8070
8428
|
readonly [
|
|
8071
8429
|
v.StringSchema<undefined>,
|
|
8072
8430
|
v.MinLengthAction<
|
|
@@ -8087,7 +8445,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8087
8445
|
v.StrictObjectSchema<
|
|
8088
8446
|
{
|
|
8089
8447
|
readonly type: v.LiteralSchema<
|
|
8090
|
-
"
|
|
8448
|
+
"field.removeWhere",
|
|
8091
8449
|
undefined
|
|
8092
8450
|
>;
|
|
8093
8451
|
readonly target: v.StrictObjectSchema<
|
|
@@ -8100,7 +8458,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8100
8458
|
],
|
|
8101
8459
|
`Invalid option: expected one of ${string}`
|
|
8102
8460
|
>;
|
|
8103
|
-
readonly
|
|
8461
|
+
readonly field: v.SchemaWithPipe<
|
|
8104
8462
|
readonly [
|
|
8105
8463
|
v.StringSchema<undefined>,
|
|
8106
8464
|
v.MinLengthAction<
|
|
@@ -8265,7 +8623,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8265
8623
|
},
|
|
8266
8624
|
undefined
|
|
8267
8625
|
>;
|
|
8268
|
-
/** Initial
|
|
8626
|
+
/** Initial fields for each subworkflow — entry name → GROQ over `$row` + the parent scope. */
|
|
8269
8627
|
readonly with: v.OptionalSchema<
|
|
8270
8628
|
v.RecordSchema<
|
|
8271
8629
|
v.SchemaWithPipe<
|
|
@@ -8328,8 +8686,8 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8328
8686
|
>,
|
|
8329
8687
|
undefined
|
|
8330
8688
|
>;
|
|
8331
|
-
/** Task-scoped
|
|
8332
|
-
|
|
8689
|
+
/** Task-scoped field entries. Resolved at task activation time. */
|
|
8690
|
+
fields: v.OptionalSchema<
|
|
8333
8691
|
v.ArraySchema<
|
|
8334
8692
|
v.StrictObjectSchema<
|
|
8335
8693
|
{
|
|
@@ -8367,7 +8725,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8367
8725
|
>;
|
|
8368
8726
|
/**
|
|
8369
8727
|
* When true, the caller MUST supply this entry at start (via
|
|
8370
|
-
* `
|
|
8728
|
+
* `initialFields`) or spawn (via the parent's `subworkflows.with`). A
|
|
8371
8729
|
* missing required entry throws rather than silently defaulting to
|
|
8372
8730
|
* `null`/`[]` — the same fail-fast an action's `required` param gets.
|
|
8373
8731
|
* Valid only on a workflow-scope `init`-sourced entry (deploy invariant).
|
|
@@ -8453,7 +8811,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8453
8811
|
>,
|
|
8454
8812
|
]
|
|
8455
8813
|
>;
|
|
8456
|
-
/** The `
|
|
8814
|
+
/** The `field.*` subset — field-write-on-move, the stage's EXIT/ARRIVAL payload. */
|
|
8457
8815
|
ops: v.OptionalSchema<
|
|
8458
8816
|
v.ArraySchema<
|
|
8459
8817
|
v.VariantSchema<
|
|
@@ -8462,7 +8820,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8462
8820
|
v.StrictObjectSchema<
|
|
8463
8821
|
{
|
|
8464
8822
|
readonly type: v.LiteralSchema<
|
|
8465
|
-
"
|
|
8823
|
+
"field.set",
|
|
8466
8824
|
undefined
|
|
8467
8825
|
>;
|
|
8468
8826
|
readonly target: v.StrictObjectSchema<
|
|
@@ -8471,7 +8829,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8471
8829
|
readonly ["workflow", "stage", "task"],
|
|
8472
8830
|
`Invalid option: expected one of ${string}`
|
|
8473
8831
|
>;
|
|
8474
|
-
readonly
|
|
8832
|
+
readonly field: v.SchemaWithPipe<
|
|
8475
8833
|
readonly [
|
|
8476
8834
|
v.StringSchema<undefined>,
|
|
8477
8835
|
v.MinLengthAction<
|
|
@@ -8491,7 +8849,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8491
8849
|
v.StrictObjectSchema<
|
|
8492
8850
|
{
|
|
8493
8851
|
readonly type: v.LiteralSchema<
|
|
8494
|
-
"
|
|
8852
|
+
"field.unset",
|
|
8495
8853
|
undefined
|
|
8496
8854
|
>;
|
|
8497
8855
|
readonly target: v.StrictObjectSchema<
|
|
@@ -8500,7 +8858,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8500
8858
|
readonly ["workflow", "stage", "task"],
|
|
8501
8859
|
`Invalid option: expected one of ${string}`
|
|
8502
8860
|
>;
|
|
8503
|
-
readonly
|
|
8861
|
+
readonly field: v.SchemaWithPipe<
|
|
8504
8862
|
readonly [
|
|
8505
8863
|
v.StringSchema<undefined>,
|
|
8506
8864
|
v.MinLengthAction<
|
|
@@ -8519,7 +8877,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8519
8877
|
v.StrictObjectSchema<
|
|
8520
8878
|
{
|
|
8521
8879
|
readonly type: v.LiteralSchema<
|
|
8522
|
-
"
|
|
8880
|
+
"field.append",
|
|
8523
8881
|
undefined
|
|
8524
8882
|
>;
|
|
8525
8883
|
readonly target: v.StrictObjectSchema<
|
|
@@ -8528,7 +8886,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8528
8886
|
readonly ["workflow", "stage", "task"],
|
|
8529
8887
|
`Invalid option: expected one of ${string}`
|
|
8530
8888
|
>;
|
|
8531
|
-
readonly
|
|
8889
|
+
readonly field: v.SchemaWithPipe<
|
|
8532
8890
|
readonly [
|
|
8533
8891
|
v.StringSchema<undefined>,
|
|
8534
8892
|
v.MinLengthAction<
|
|
@@ -8548,7 +8906,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8548
8906
|
v.StrictObjectSchema<
|
|
8549
8907
|
{
|
|
8550
8908
|
readonly type: v.LiteralSchema<
|
|
8551
|
-
"
|
|
8909
|
+
"field.updateWhere",
|
|
8552
8910
|
undefined
|
|
8553
8911
|
>;
|
|
8554
8912
|
readonly target: v.StrictObjectSchema<
|
|
@@ -8557,7 +8915,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8557
8915
|
readonly ["workflow", "stage", "task"],
|
|
8558
8916
|
`Invalid option: expected one of ${string}`
|
|
8559
8917
|
>;
|
|
8560
|
-
readonly
|
|
8918
|
+
readonly field: v.SchemaWithPipe<
|
|
8561
8919
|
readonly [
|
|
8562
8920
|
v.StringSchema<undefined>,
|
|
8563
8921
|
v.MinLengthAction<
|
|
@@ -8578,7 +8936,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8578
8936
|
v.StrictObjectSchema<
|
|
8579
8937
|
{
|
|
8580
8938
|
readonly type: v.LiteralSchema<
|
|
8581
|
-
"
|
|
8939
|
+
"field.removeWhere",
|
|
8582
8940
|
undefined
|
|
8583
8941
|
>;
|
|
8584
8942
|
readonly target: v.StrictObjectSchema<
|
|
@@ -8587,7 +8945,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8587
8945
|
readonly ["workflow", "stage", "task"],
|
|
8588
8946
|
`Invalid option: expected one of ${string}`
|
|
8589
8947
|
>;
|
|
8590
|
-
readonly
|
|
8948
|
+
readonly field: v.SchemaWithPipe<
|
|
8591
8949
|
readonly [
|
|
8592
8950
|
v.StringSchema<undefined>,
|
|
8593
8951
|
v.MinLengthAction<
|
|
@@ -8719,7 +9077,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8719
9077
|
>,
|
|
8720
9078
|
undefined
|
|
8721
9079
|
>;
|
|
8722
|
-
/** Target docs as `$
|
|
9080
|
+
/** Target docs as `$fields` reads (or `"$self"`), resolved at deploy to bare ids + the resource. */
|
|
8723
9081
|
readonly idRefs: v.OptionalSchema<
|
|
8724
9082
|
v.ArraySchema<
|
|
8725
9083
|
v.SchemaWithPipe<
|
|
@@ -8795,12 +9153,12 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8795
9153
|
undefined
|
|
8796
9154
|
>;
|
|
8797
9155
|
/**
|
|
8798
|
-
* Projected workflow
|
|
8799
|
-
* the only bridge from the lake eval context (which cannot see `$
|
|
8800
|
-
* to workflow
|
|
9156
|
+
* Projected workflow fields the predicate reads as `guard.metadata.*` —
|
|
9157
|
+
* the only bridge from the lake eval context (which cannot see `$fields`)
|
|
9158
|
+
* to workflow fields. Values are NOT GROQ: each is a deploy-time read in
|
|
8801
9159
|
* the guard mini-language — `"$self"`, `"$now"`, or
|
|
8802
|
-
* `"$
|
|
8803
|
-
* re-synced by the post-
|
|
9160
|
+
* `"$fields.<name>[.path]"` — resolved into a bare value at deploy and
|
|
9161
|
+
* re-synced by the post-field-op guard refresh.
|
|
8804
9162
|
*/
|
|
8805
9163
|
readonly metadata: v.OptionalSchema<
|
|
8806
9164
|
v.RecordSchema<
|
|
@@ -8835,8 +9193,8 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8835
9193
|
>,
|
|
8836
9194
|
undefined
|
|
8837
9195
|
>;
|
|
8838
|
-
/** Stage-scoped
|
|
8839
|
-
|
|
9196
|
+
/** Stage-scoped field entries. Resolved at stage entry. */
|
|
9197
|
+
fields: v.OptionalSchema<
|
|
8840
9198
|
v.ArraySchema<
|
|
8841
9199
|
v.StrictObjectSchema<
|
|
8842
9200
|
{
|
|
@@ -8874,7 +9232,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8874
9232
|
>;
|
|
8875
9233
|
/**
|
|
8876
9234
|
* When true, the caller MUST supply this entry at start (via
|
|
8877
|
-
* `
|
|
9235
|
+
* `initialFields`) or spawn (via the parent's `subworkflows.with`). A
|
|
8878
9236
|
* missing required entry throws rather than silently defaulting to
|
|
8879
9237
|
* `null`/`[]` — the same fail-fast an action's `required` param gets.
|
|
8880
9238
|
* Valid only on a workflow-scope `init`-sourced entry (deploy invariant).
|
|
@@ -8961,7 +9319,27 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8961
9319
|
name: string;
|
|
8962
9320
|
title?: string | undefined;
|
|
8963
9321
|
description?: string | undefined;
|
|
8964
|
-
|
|
9322
|
+
kind?:
|
|
9323
|
+
| "user"
|
|
9324
|
+
| "service"
|
|
9325
|
+
| "script"
|
|
9326
|
+
| "manual"
|
|
9327
|
+
| "receive"
|
|
9328
|
+
| undefined;
|
|
9329
|
+
target?:
|
|
9330
|
+
| {
|
|
9331
|
+
type: "url";
|
|
9332
|
+
url: string;
|
|
9333
|
+
}
|
|
9334
|
+
| {
|
|
9335
|
+
type: "field";
|
|
9336
|
+
field: {
|
|
9337
|
+
scope: "workflow" | "stage" | "task";
|
|
9338
|
+
field: string;
|
|
9339
|
+
};
|
|
9340
|
+
}
|
|
9341
|
+
| undefined;
|
|
9342
|
+
activation?: "manual" | "auto" | undefined;
|
|
8965
9343
|
filter?: string | undefined;
|
|
8966
9344
|
requirements?:
|
|
8967
9345
|
| {
|
|
@@ -8983,42 +9361,42 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
8983
9361
|
| "failed";
|
|
8984
9362
|
}
|
|
8985
9363
|
| {
|
|
8986
|
-
type: "
|
|
9364
|
+
type: "field.set";
|
|
8987
9365
|
target: {
|
|
8988
9366
|
scope: "workflow" | "stage" | "task";
|
|
8989
|
-
|
|
9367
|
+
field: string;
|
|
8990
9368
|
};
|
|
8991
9369
|
value: SourceInternal;
|
|
8992
9370
|
}
|
|
8993
9371
|
| {
|
|
8994
|
-
type: "
|
|
9372
|
+
type: "field.unset";
|
|
8995
9373
|
target: {
|
|
8996
9374
|
scope: "workflow" | "stage" | "task";
|
|
8997
|
-
|
|
9375
|
+
field: string;
|
|
8998
9376
|
};
|
|
8999
9377
|
}
|
|
9000
9378
|
| {
|
|
9001
|
-
type: "
|
|
9379
|
+
type: "field.append";
|
|
9002
9380
|
target: {
|
|
9003
9381
|
scope: "workflow" | "stage" | "task";
|
|
9004
|
-
|
|
9382
|
+
field: string;
|
|
9005
9383
|
};
|
|
9006
9384
|
value: SourceInternal;
|
|
9007
9385
|
}
|
|
9008
9386
|
| {
|
|
9009
|
-
type: "
|
|
9387
|
+
type: "field.updateWhere";
|
|
9010
9388
|
target: {
|
|
9011
9389
|
scope: "workflow" | "stage" | "task";
|
|
9012
|
-
|
|
9390
|
+
field: string;
|
|
9013
9391
|
};
|
|
9014
9392
|
where: OpPredicateInternal;
|
|
9015
9393
|
value: SourceInternal;
|
|
9016
9394
|
}
|
|
9017
9395
|
| {
|
|
9018
|
-
type: "
|
|
9396
|
+
type: "field.removeWhere";
|
|
9019
9397
|
target: {
|
|
9020
9398
|
scope: "workflow" | "stage" | "task";
|
|
9021
|
-
|
|
9399
|
+
field: string;
|
|
9022
9400
|
};
|
|
9023
9401
|
where: OpPredicateInternal;
|
|
9024
9402
|
}
|
|
@@ -9078,42 +9456,42 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
9078
9456
|
| "failed";
|
|
9079
9457
|
}
|
|
9080
9458
|
| {
|
|
9081
|
-
type: "
|
|
9459
|
+
type: "field.set";
|
|
9082
9460
|
target: {
|
|
9083
9461
|
scope: "workflow" | "stage" | "task";
|
|
9084
|
-
|
|
9462
|
+
field: string;
|
|
9085
9463
|
};
|
|
9086
9464
|
value: SourceInternal;
|
|
9087
9465
|
}
|
|
9088
9466
|
| {
|
|
9089
|
-
type: "
|
|
9467
|
+
type: "field.unset";
|
|
9090
9468
|
target: {
|
|
9091
9469
|
scope: "workflow" | "stage" | "task";
|
|
9092
|
-
|
|
9470
|
+
field: string;
|
|
9093
9471
|
};
|
|
9094
9472
|
}
|
|
9095
9473
|
| {
|
|
9096
|
-
type: "
|
|
9474
|
+
type: "field.append";
|
|
9097
9475
|
target: {
|
|
9098
9476
|
scope: "workflow" | "stage" | "task";
|
|
9099
|
-
|
|
9477
|
+
field: string;
|
|
9100
9478
|
};
|
|
9101
9479
|
value: SourceInternal;
|
|
9102
9480
|
}
|
|
9103
9481
|
| {
|
|
9104
|
-
type: "
|
|
9482
|
+
type: "field.updateWhere";
|
|
9105
9483
|
target: {
|
|
9106
9484
|
scope: "workflow" | "stage" | "task";
|
|
9107
|
-
|
|
9485
|
+
field: string;
|
|
9108
9486
|
};
|
|
9109
9487
|
where: OpPredicateInternal;
|
|
9110
9488
|
value: SourceInternal;
|
|
9111
9489
|
}
|
|
9112
9490
|
| {
|
|
9113
|
-
type: "
|
|
9491
|
+
type: "field.removeWhere";
|
|
9114
9492
|
target: {
|
|
9115
9493
|
scope: "workflow" | "stage" | "task";
|
|
9116
|
-
|
|
9494
|
+
field: string;
|
|
9117
9495
|
};
|
|
9118
9496
|
where: OpPredicateInternal;
|
|
9119
9497
|
}
|
|
@@ -9157,7 +9535,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
9157
9535
|
| undefined;
|
|
9158
9536
|
}
|
|
9159
9537
|
| undefined;
|
|
9160
|
-
|
|
9538
|
+
fields?:
|
|
9161
9539
|
| {
|
|
9162
9540
|
type:
|
|
9163
9541
|
| "doc.ref"
|
|
@@ -9193,42 +9571,42 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
9193
9571
|
ops?:
|
|
9194
9572
|
| (
|
|
9195
9573
|
| {
|
|
9196
|
-
type: "
|
|
9574
|
+
type: "field.set";
|
|
9197
9575
|
target: {
|
|
9198
9576
|
scope: "workflow" | "stage" | "task";
|
|
9199
|
-
|
|
9577
|
+
field: string;
|
|
9200
9578
|
};
|
|
9201
9579
|
value: SourceInternal;
|
|
9202
9580
|
}
|
|
9203
9581
|
| {
|
|
9204
|
-
type: "
|
|
9582
|
+
type: "field.unset";
|
|
9205
9583
|
target: {
|
|
9206
9584
|
scope: "workflow" | "stage" | "task";
|
|
9207
|
-
|
|
9585
|
+
field: string;
|
|
9208
9586
|
};
|
|
9209
9587
|
}
|
|
9210
9588
|
| {
|
|
9211
|
-
type: "
|
|
9589
|
+
type: "field.append";
|
|
9212
9590
|
target: {
|
|
9213
9591
|
scope: "workflow" | "stage" | "task";
|
|
9214
|
-
|
|
9592
|
+
field: string;
|
|
9215
9593
|
};
|
|
9216
9594
|
value: SourceInternal;
|
|
9217
9595
|
}
|
|
9218
9596
|
| {
|
|
9219
|
-
type: "
|
|
9597
|
+
type: "field.updateWhere";
|
|
9220
9598
|
target: {
|
|
9221
9599
|
scope: "workflow" | "stage" | "task";
|
|
9222
|
-
|
|
9600
|
+
field: string;
|
|
9223
9601
|
};
|
|
9224
9602
|
where: OpPredicateInternal;
|
|
9225
9603
|
value: SourceInternal;
|
|
9226
9604
|
}
|
|
9227
9605
|
| {
|
|
9228
|
-
type: "
|
|
9606
|
+
type: "field.removeWhere";
|
|
9229
9607
|
target: {
|
|
9230
9608
|
scope: "workflow" | "stage" | "task";
|
|
9231
|
-
|
|
9609
|
+
field: string;
|
|
9232
9610
|
};
|
|
9233
9611
|
where: OpPredicateInternal;
|
|
9234
9612
|
}
|
|
@@ -9278,7 +9656,7 @@ declare const WorkflowDefinitionSchema: v.StrictObjectSchema<
|
|
|
9278
9656
|
| undefined;
|
|
9279
9657
|
}[]
|
|
9280
9658
|
| undefined;
|
|
9281
|
-
|
|
9659
|
+
fields?:
|
|
9282
9660
|
| {
|
|
9283
9661
|
type:
|
|
9284
9662
|
| "doc.ref"
|