@requence/task 0.8.2-edge.1151 → 0.8.2-edge.1155
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/build/chunk-vnx9bdvh.js +181 -0
- package/build/chunk-vnx9bdvh.js.map +14 -0
- package/build/cli.js +11 -13
- package/build/cli.js.map +3 -3
- package/build/index.js +11 -11
- package/build/index.js.map +6 -6
- package/build/types/helpers/src/index.d.ts +5 -0
- package/build/types/helpers/src/index.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/NodeTree.d.ts +29 -0
- package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/command.d.ts +859 -7
- package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/index.d.ts +1 -0
- package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/sliceTreeList.d.ts +81 -0
- package/build/types/helpers/src/protocol/sliceTreeList.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts +577 -2
- package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/update.d.ts +128 -10
- package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
- package/build/types/helpers/src/utils/amqpPublishRetry.d.ts +113 -18
- package/build/types/helpers/src/utils/amqpPublishRetry.d.ts.map +1 -1
- package/build/types/helpers/src/utils/matchSchema.d.ts +14 -0
- package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -1
- package/build/types/helpers/src/utils/serviceRender.d.ts +73 -0
- package/build/types/helpers/src/utils/serviceRender.d.ts.map +1 -0
- package/build/types/helpers/src/utils/sliceClock.d.ts +61 -0
- package/build/types/helpers/src/utils/sliceClock.d.ts.map +1 -0
- package/build/types/helpers/src/utils/surfaceComponent.d.ts +116 -0
- package/build/types/helpers/src/utils/surfaceComponent.d.ts.map +1 -0
- package/build/types/helpers/src/utils/surfaceHandler.d.ts +171 -0
- package/build/types/helpers/src/utils/surfaceHandler.d.ts.map +1 -0
- package/build/types/helpers/src/utils/uiRebuild.d.ts +48 -0
- package/build/types/helpers/src/utils/uiRebuild.d.ts.map +1 -0
- package/build/types/task/src/createTask.d.ts.map +1 -1
- package/build/types/task/src/getTask.d.ts.map +1 -1
- package/build/types/task/src/types.d.ts +4 -4
- package/build/types/task/src/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/build/chunk-f7g9gsa0.js +0 -65
- package/build/chunk-f7g9gsa0.js.map +0 -11
|
@@ -116,7 +116,7 @@ export declare const treeSchema: z.ZodObject<{
|
|
|
116
116
|
}, z.core.$strip>>;
|
|
117
117
|
}, z.core.$strict>;
|
|
118
118
|
export type Tree = z.output<typeof treeSchema>;
|
|
119
|
-
declare const extendedTreeSchema: z.ZodObject<{
|
|
119
|
+
export declare const extendedTreeSchema: z.ZodObject<{
|
|
120
120
|
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
121
121
|
id: z.ZodDefault<z.ZodUUID>;
|
|
122
122
|
type: z.ZodLiteral<"entry">;
|
|
@@ -234,6 +234,16 @@ declare const extendedTreeSchema: z.ZodObject<{
|
|
|
234
234
|
allowMultipleOutputs: z.ZodDefault<z.ZodBoolean>;
|
|
235
235
|
}, z.core.$strict>;
|
|
236
236
|
export type ExtendendTree = z.output<typeof extendedTreeSchema>;
|
|
237
|
+
/**
|
|
238
|
+
* EVERY STRUCTURAL RULE OF A TREE, as a plain function of already-parsed nodes
|
|
239
|
+
* and edges. Throws `NodeTransformError`; never touches zod.
|
|
240
|
+
*
|
|
241
|
+
* Extracted from `validatedTreeSchema`'s transform (where it used to live
|
|
242
|
+
* inline) so the sliced validator of `sliceTreeList.ts` can run the SAME checks
|
|
243
|
+
* after validating the nodes and edges one at a time (#134). Two copies of these
|
|
244
|
+
* rules would be two definitions of what a valid task is.
|
|
245
|
+
*/
|
|
246
|
+
export declare function checkTreeStructure({ nodes, edges, allowMultipleOutputs, }: ExtendendTree): Tree;
|
|
237
247
|
export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
|
|
238
248
|
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
239
249
|
id: z.ZodDefault<z.ZodUUID>;
|
|
@@ -620,6 +630,556 @@ export declare const validatedTreeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
620
630
|
}[];
|
|
621
631
|
allowMultipleOutputs: boolean;
|
|
622
632
|
}>>;
|
|
633
|
+
/**
|
|
634
|
+
* `validatedTreeSchema` for a tree whose nodes and edges are ALREADY validated.
|
|
635
|
+
*
|
|
636
|
+
* The sliced validator (#134) parses nodes and edges one at a time so it can
|
|
637
|
+
* yield to the event loop between them, and then needs the structural pass — the
|
|
638
|
+
* part that has to see the whole graph at once. Running it through this twin
|
|
639
|
+
* rather than calling `checkTreeStructure` directly is what makes its issue
|
|
640
|
+
* identical to the one `validatedTreeSchema` produces: same `safeTransform`,
|
|
641
|
+
* same zod finalisation, no hand-built issue to drift from.
|
|
642
|
+
*
|
|
643
|
+
* `z.custom` with no validator accepts anything, which is exactly right here:
|
|
644
|
+
* the items were validated by `nodeSchema`/`edgeSchema` a moment ago and must
|
|
645
|
+
* not pay for it twice.
|
|
646
|
+
*/
|
|
647
|
+
export declare const preparsedTreeSchema: z.ZodPipe<z.ZodObject<{
|
|
648
|
+
allowMultipleOutputs: z.ZodDefault<z.ZodBoolean>;
|
|
649
|
+
nodes: z.ZodArray<z.ZodCustom<{
|
|
650
|
+
id: string;
|
|
651
|
+
type: "entry";
|
|
652
|
+
alias?: string | undefined;
|
|
653
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
654
|
+
} | {
|
|
655
|
+
outputs: {
|
|
656
|
+
name: string | null;
|
|
657
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
658
|
+
}[];
|
|
659
|
+
id: string;
|
|
660
|
+
type: "service";
|
|
661
|
+
alias?: string | undefined;
|
|
662
|
+
inputSchema: {
|
|
663
|
+
type: "null";
|
|
664
|
+
} | ({
|
|
665
|
+
type: "object";
|
|
666
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
667
|
+
$ref: string;
|
|
668
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
669
|
+
oneOf: ({
|
|
670
|
+
type: "null";
|
|
671
|
+
} | ({
|
|
672
|
+
type: "object";
|
|
673
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
674
|
+
$ref: string;
|
|
675
|
+
} & import("json-schema").JSONSchema7))[];
|
|
676
|
+
} & import("json-schema").JSONSchema7);
|
|
677
|
+
name: string;
|
|
678
|
+
version: string;
|
|
679
|
+
configuration?: any;
|
|
680
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
681
|
+
ttl?: number | undefined;
|
|
682
|
+
retry: number;
|
|
683
|
+
retryDelay?: number | undefined;
|
|
684
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
685
|
+
privileged: boolean;
|
|
686
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
687
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
688
|
+
configurationServices?: {
|
|
689
|
+
outputs: {
|
|
690
|
+
name: string | null;
|
|
691
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
692
|
+
}[];
|
|
693
|
+
id: string;
|
|
694
|
+
type: "service";
|
|
695
|
+
alias?: string | undefined;
|
|
696
|
+
inputSchema: {
|
|
697
|
+
type: "null";
|
|
698
|
+
} | ({
|
|
699
|
+
type: "object";
|
|
700
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
701
|
+
$ref: string;
|
|
702
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
703
|
+
oneOf: ({
|
|
704
|
+
type: "null";
|
|
705
|
+
} | ({
|
|
706
|
+
type: "object";
|
|
707
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
708
|
+
$ref: string;
|
|
709
|
+
} & import("json-schema").JSONSchema7))[];
|
|
710
|
+
} & import("json-schema").JSONSchema7);
|
|
711
|
+
name: string;
|
|
712
|
+
version: string;
|
|
713
|
+
configuration?: any;
|
|
714
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
715
|
+
ttl?: number | undefined;
|
|
716
|
+
retry: number;
|
|
717
|
+
retryDelay?: number | undefined;
|
|
718
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
719
|
+
privileged: boolean;
|
|
720
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
721
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
722
|
+
configurationServices?: /*elided*/ any[] | undefined;
|
|
723
|
+
}[] | undefined;
|
|
724
|
+
} | {
|
|
725
|
+
outputs: {
|
|
726
|
+
name: string | null;
|
|
727
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
728
|
+
}[];
|
|
729
|
+
id: string;
|
|
730
|
+
type: "logic";
|
|
731
|
+
alias?: string | undefined;
|
|
732
|
+
script: string;
|
|
733
|
+
concurrency: boolean;
|
|
734
|
+
language: "javascript" | "python" | "typescript";
|
|
735
|
+
maxExecutionTime: number;
|
|
736
|
+
} | {
|
|
737
|
+
id: string;
|
|
738
|
+
type: "or";
|
|
739
|
+
alias?: string | undefined;
|
|
740
|
+
} | {
|
|
741
|
+
outputs: {
|
|
742
|
+
name: string | null;
|
|
743
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
744
|
+
}[];
|
|
745
|
+
id: string;
|
|
746
|
+
type: "reference";
|
|
747
|
+
alias?: string | undefined;
|
|
748
|
+
reference: string;
|
|
749
|
+
enabled: boolean;
|
|
750
|
+
inputSchema: {
|
|
751
|
+
type: "null";
|
|
752
|
+
} | ({
|
|
753
|
+
type: "object";
|
|
754
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
755
|
+
$ref: string;
|
|
756
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
757
|
+
oneOf: ({
|
|
758
|
+
type: "null";
|
|
759
|
+
} | ({
|
|
760
|
+
type: "object";
|
|
761
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
762
|
+
$ref: string;
|
|
763
|
+
} & import("json-schema").JSONSchema7))[];
|
|
764
|
+
} & import("json-schema").JSONSchema7);
|
|
765
|
+
} | {
|
|
766
|
+
id: string;
|
|
767
|
+
type: "exit";
|
|
768
|
+
alias?: string | undefined;
|
|
769
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
770
|
+
} | {
|
|
771
|
+
id: string;
|
|
772
|
+
type: "comment";
|
|
773
|
+
text: string;
|
|
774
|
+
alias?: string | undefined;
|
|
775
|
+
}, {
|
|
776
|
+
id: string;
|
|
777
|
+
type: "entry";
|
|
778
|
+
alias?: string | undefined;
|
|
779
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
780
|
+
} | {
|
|
781
|
+
outputs: {
|
|
782
|
+
name: string | null;
|
|
783
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
784
|
+
}[];
|
|
785
|
+
id: string;
|
|
786
|
+
type: "service";
|
|
787
|
+
alias?: string | undefined;
|
|
788
|
+
inputSchema: {
|
|
789
|
+
type: "null";
|
|
790
|
+
} | ({
|
|
791
|
+
type: "object";
|
|
792
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
793
|
+
$ref: string;
|
|
794
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
795
|
+
oneOf: ({
|
|
796
|
+
type: "null";
|
|
797
|
+
} | ({
|
|
798
|
+
type: "object";
|
|
799
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
800
|
+
$ref: string;
|
|
801
|
+
} & import("json-schema").JSONSchema7))[];
|
|
802
|
+
} & import("json-schema").JSONSchema7);
|
|
803
|
+
name: string;
|
|
804
|
+
version: string;
|
|
805
|
+
configuration?: any;
|
|
806
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
807
|
+
ttl?: number | undefined;
|
|
808
|
+
retry: number;
|
|
809
|
+
retryDelay?: number | undefined;
|
|
810
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
811
|
+
privileged: boolean;
|
|
812
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
813
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
814
|
+
configurationServices?: {
|
|
815
|
+
outputs: {
|
|
816
|
+
name: string | null;
|
|
817
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
818
|
+
}[];
|
|
819
|
+
id: string;
|
|
820
|
+
type: "service";
|
|
821
|
+
alias?: string | undefined;
|
|
822
|
+
inputSchema: {
|
|
823
|
+
type: "null";
|
|
824
|
+
} | ({
|
|
825
|
+
type: "object";
|
|
826
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
827
|
+
$ref: string;
|
|
828
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
829
|
+
oneOf: ({
|
|
830
|
+
type: "null";
|
|
831
|
+
} | ({
|
|
832
|
+
type: "object";
|
|
833
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
834
|
+
$ref: string;
|
|
835
|
+
} & import("json-schema").JSONSchema7))[];
|
|
836
|
+
} & import("json-schema").JSONSchema7);
|
|
837
|
+
name: string;
|
|
838
|
+
version: string;
|
|
839
|
+
configuration?: any;
|
|
840
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
841
|
+
ttl?: number | undefined;
|
|
842
|
+
retry: number;
|
|
843
|
+
retryDelay?: number | undefined;
|
|
844
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
845
|
+
privileged: boolean;
|
|
846
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
847
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
848
|
+
configurationServices?: any[] | undefined;
|
|
849
|
+
}[] | undefined;
|
|
850
|
+
} | {
|
|
851
|
+
outputs: {
|
|
852
|
+
name: string | null;
|
|
853
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
854
|
+
}[];
|
|
855
|
+
id: string;
|
|
856
|
+
type: "logic";
|
|
857
|
+
alias?: string | undefined;
|
|
858
|
+
script: string;
|
|
859
|
+
concurrency: boolean;
|
|
860
|
+
language: "javascript" | "python" | "typescript";
|
|
861
|
+
maxExecutionTime: number;
|
|
862
|
+
} | {
|
|
863
|
+
id: string;
|
|
864
|
+
type: "or";
|
|
865
|
+
alias?: string | undefined;
|
|
866
|
+
} | {
|
|
867
|
+
outputs: {
|
|
868
|
+
name: string | null;
|
|
869
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
870
|
+
}[];
|
|
871
|
+
id: string;
|
|
872
|
+
type: "reference";
|
|
873
|
+
alias?: string | undefined;
|
|
874
|
+
reference: string;
|
|
875
|
+
enabled: boolean;
|
|
876
|
+
inputSchema: {
|
|
877
|
+
type: "null";
|
|
878
|
+
} | ({
|
|
879
|
+
type: "object";
|
|
880
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
881
|
+
$ref: string;
|
|
882
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
883
|
+
oneOf: ({
|
|
884
|
+
type: "null";
|
|
885
|
+
} | ({
|
|
886
|
+
type: "object";
|
|
887
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
888
|
+
$ref: string;
|
|
889
|
+
} & import("json-schema").JSONSchema7))[];
|
|
890
|
+
} & import("json-schema").JSONSchema7);
|
|
891
|
+
} | {
|
|
892
|
+
id: string;
|
|
893
|
+
type: "exit";
|
|
894
|
+
alias?: string | undefined;
|
|
895
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
896
|
+
} | {
|
|
897
|
+
id: string;
|
|
898
|
+
type: "comment";
|
|
899
|
+
text: string;
|
|
900
|
+
alias?: string | undefined;
|
|
901
|
+
}>>;
|
|
902
|
+
edges: z.ZodArray<z.ZodCustom<{
|
|
903
|
+
id: string;
|
|
904
|
+
source: string;
|
|
905
|
+
sourceHandle: string | null;
|
|
906
|
+
target: string;
|
|
907
|
+
}, {
|
|
908
|
+
id: string;
|
|
909
|
+
source: string;
|
|
910
|
+
sourceHandle: string | null;
|
|
911
|
+
target: string;
|
|
912
|
+
}>>;
|
|
913
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
914
|
+
nodes: ({
|
|
915
|
+
id: string;
|
|
916
|
+
type: "entry";
|
|
917
|
+
alias?: string | undefined;
|
|
918
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
919
|
+
} | {
|
|
920
|
+
outputs: {
|
|
921
|
+
name: string | null;
|
|
922
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
923
|
+
}[];
|
|
924
|
+
id: string;
|
|
925
|
+
type: "service";
|
|
926
|
+
alias?: string | undefined;
|
|
927
|
+
inputSchema: {
|
|
928
|
+
type: "null";
|
|
929
|
+
} | ({
|
|
930
|
+
type: "object";
|
|
931
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
932
|
+
$ref: string;
|
|
933
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
934
|
+
oneOf: ({
|
|
935
|
+
type: "null";
|
|
936
|
+
} | ({
|
|
937
|
+
type: "object";
|
|
938
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
939
|
+
$ref: string;
|
|
940
|
+
} & import("json-schema").JSONSchema7))[];
|
|
941
|
+
} & import("json-schema").JSONSchema7);
|
|
942
|
+
name: string;
|
|
943
|
+
version: string;
|
|
944
|
+
configuration?: any;
|
|
945
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
946
|
+
ttl?: number | undefined;
|
|
947
|
+
retry: number;
|
|
948
|
+
retryDelay?: number | undefined;
|
|
949
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
950
|
+
privileged: boolean;
|
|
951
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
952
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
953
|
+
configurationServices?: {
|
|
954
|
+
outputs: {
|
|
955
|
+
name: string | null;
|
|
956
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
957
|
+
}[];
|
|
958
|
+
id: string;
|
|
959
|
+
type: "service";
|
|
960
|
+
alias?: string | undefined;
|
|
961
|
+
inputSchema: {
|
|
962
|
+
type: "null";
|
|
963
|
+
} | ({
|
|
964
|
+
type: "object";
|
|
965
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
966
|
+
$ref: string;
|
|
967
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
968
|
+
oneOf: ({
|
|
969
|
+
type: "null";
|
|
970
|
+
} | ({
|
|
971
|
+
type: "object";
|
|
972
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
973
|
+
$ref: string;
|
|
974
|
+
} & import("json-schema").JSONSchema7))[];
|
|
975
|
+
} & import("json-schema").JSONSchema7);
|
|
976
|
+
name: string;
|
|
977
|
+
version: string;
|
|
978
|
+
configuration?: any;
|
|
979
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
980
|
+
ttl?: number | undefined;
|
|
981
|
+
retry: number;
|
|
982
|
+
retryDelay?: number | undefined;
|
|
983
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
984
|
+
privileged: boolean;
|
|
985
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
986
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
987
|
+
configurationServices?: any[] | undefined;
|
|
988
|
+
}[] | undefined;
|
|
989
|
+
} | {
|
|
990
|
+
outputs: {
|
|
991
|
+
name: string | null;
|
|
992
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
993
|
+
}[];
|
|
994
|
+
id: string;
|
|
995
|
+
type: "logic";
|
|
996
|
+
alias?: string | undefined;
|
|
997
|
+
script: string;
|
|
998
|
+
concurrency: boolean;
|
|
999
|
+
language: "javascript" | "python" | "typescript";
|
|
1000
|
+
maxExecutionTime: number;
|
|
1001
|
+
} | {
|
|
1002
|
+
id: string;
|
|
1003
|
+
type: "or";
|
|
1004
|
+
alias?: string | undefined;
|
|
1005
|
+
} | {
|
|
1006
|
+
outputs: {
|
|
1007
|
+
name: string | null;
|
|
1008
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
1009
|
+
}[];
|
|
1010
|
+
id: string;
|
|
1011
|
+
type: "reference";
|
|
1012
|
+
alias?: string | undefined;
|
|
1013
|
+
reference: string;
|
|
1014
|
+
enabled: boolean;
|
|
1015
|
+
inputSchema: {
|
|
1016
|
+
type: "null";
|
|
1017
|
+
} | ({
|
|
1018
|
+
type: "object";
|
|
1019
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
1020
|
+
$ref: string;
|
|
1021
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
1022
|
+
oneOf: ({
|
|
1023
|
+
type: "null";
|
|
1024
|
+
} | ({
|
|
1025
|
+
type: "object";
|
|
1026
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
1027
|
+
$ref: string;
|
|
1028
|
+
} & import("json-schema").JSONSchema7))[];
|
|
1029
|
+
} & import("json-schema").JSONSchema7);
|
|
1030
|
+
} | {
|
|
1031
|
+
id: string;
|
|
1032
|
+
type: "exit";
|
|
1033
|
+
alias?: string | undefined;
|
|
1034
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
1035
|
+
} | {
|
|
1036
|
+
id: string;
|
|
1037
|
+
type: "comment";
|
|
1038
|
+
text: string;
|
|
1039
|
+
alias?: string | undefined;
|
|
1040
|
+
})[];
|
|
1041
|
+
edges: {
|
|
1042
|
+
id: string;
|
|
1043
|
+
source: string;
|
|
1044
|
+
sourceHandle: string | null;
|
|
1045
|
+
target: string;
|
|
1046
|
+
}[];
|
|
1047
|
+
}, {
|
|
1048
|
+
allowMultipleOutputs: boolean;
|
|
1049
|
+
nodes: ({
|
|
1050
|
+
id: string;
|
|
1051
|
+
type: "entry";
|
|
1052
|
+
alias?: string | undefined;
|
|
1053
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
1054
|
+
} | {
|
|
1055
|
+
outputs: {
|
|
1056
|
+
name: string | null;
|
|
1057
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
1058
|
+
}[];
|
|
1059
|
+
id: string;
|
|
1060
|
+
type: "service";
|
|
1061
|
+
alias?: string | undefined;
|
|
1062
|
+
inputSchema: {
|
|
1063
|
+
type: "null";
|
|
1064
|
+
} | ({
|
|
1065
|
+
type: "object";
|
|
1066
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
1067
|
+
$ref: string;
|
|
1068
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
1069
|
+
oneOf: ({
|
|
1070
|
+
type: "null";
|
|
1071
|
+
} | ({
|
|
1072
|
+
type: "object";
|
|
1073
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
1074
|
+
$ref: string;
|
|
1075
|
+
} & import("json-schema").JSONSchema7))[];
|
|
1076
|
+
} & import("json-schema").JSONSchema7);
|
|
1077
|
+
name: string;
|
|
1078
|
+
version: string;
|
|
1079
|
+
configuration?: any;
|
|
1080
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
1081
|
+
ttl?: number | undefined;
|
|
1082
|
+
retry: number;
|
|
1083
|
+
retryDelay?: number | undefined;
|
|
1084
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
1085
|
+
privileged: boolean;
|
|
1086
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
1087
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
1088
|
+
configurationServices?: {
|
|
1089
|
+
outputs: {
|
|
1090
|
+
name: string | null;
|
|
1091
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
1092
|
+
}[];
|
|
1093
|
+
id: string;
|
|
1094
|
+
type: "service";
|
|
1095
|
+
alias?: string | undefined;
|
|
1096
|
+
inputSchema: {
|
|
1097
|
+
type: "null";
|
|
1098
|
+
} | ({
|
|
1099
|
+
type: "object";
|
|
1100
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
1101
|
+
$ref: string;
|
|
1102
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
1103
|
+
oneOf: ({
|
|
1104
|
+
type: "null";
|
|
1105
|
+
} | ({
|
|
1106
|
+
type: "object";
|
|
1107
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
1108
|
+
$ref: string;
|
|
1109
|
+
} & import("json-schema").JSONSchema7))[];
|
|
1110
|
+
} & import("json-schema").JSONSchema7);
|
|
1111
|
+
name: string;
|
|
1112
|
+
version: string;
|
|
1113
|
+
configuration?: any;
|
|
1114
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
1115
|
+
ttl?: number | undefined;
|
|
1116
|
+
retry: number;
|
|
1117
|
+
retryDelay?: number | undefined;
|
|
1118
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
1119
|
+
privileged: boolean;
|
|
1120
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
1121
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
1122
|
+
configurationServices?: any[] | undefined;
|
|
1123
|
+
}[] | undefined;
|
|
1124
|
+
} | {
|
|
1125
|
+
outputs: {
|
|
1126
|
+
name: string | null;
|
|
1127
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
1128
|
+
}[];
|
|
1129
|
+
id: string;
|
|
1130
|
+
type: "logic";
|
|
1131
|
+
alias?: string | undefined;
|
|
1132
|
+
script: string;
|
|
1133
|
+
concurrency: boolean;
|
|
1134
|
+
language: "javascript" | "python" | "typescript";
|
|
1135
|
+
maxExecutionTime: number;
|
|
1136
|
+
} | {
|
|
1137
|
+
id: string;
|
|
1138
|
+
type: "or";
|
|
1139
|
+
alias?: string | undefined;
|
|
1140
|
+
} | {
|
|
1141
|
+
outputs: {
|
|
1142
|
+
name: string | null;
|
|
1143
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
1144
|
+
}[];
|
|
1145
|
+
id: string;
|
|
1146
|
+
type: "reference";
|
|
1147
|
+
alias?: string | undefined;
|
|
1148
|
+
reference: string;
|
|
1149
|
+
enabled: boolean;
|
|
1150
|
+
inputSchema: {
|
|
1151
|
+
type: "null";
|
|
1152
|
+
} | ({
|
|
1153
|
+
type: "object";
|
|
1154
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
1155
|
+
$ref: string;
|
|
1156
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
1157
|
+
oneOf: ({
|
|
1158
|
+
type: "null";
|
|
1159
|
+
} | ({
|
|
1160
|
+
type: "object";
|
|
1161
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
1162
|
+
$ref: string;
|
|
1163
|
+
} & import("json-schema").JSONSchema7))[];
|
|
1164
|
+
} & import("json-schema").JSONSchema7);
|
|
1165
|
+
} | {
|
|
1166
|
+
id: string;
|
|
1167
|
+
type: "exit";
|
|
1168
|
+
alias?: string | undefined;
|
|
1169
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
1170
|
+
} | {
|
|
1171
|
+
id: string;
|
|
1172
|
+
type: "comment";
|
|
1173
|
+
text: string;
|
|
1174
|
+
alias?: string | undefined;
|
|
1175
|
+
})[];
|
|
1176
|
+
edges: {
|
|
1177
|
+
id: string;
|
|
1178
|
+
source: string;
|
|
1179
|
+
sourceHandle: string | null;
|
|
1180
|
+
target: string;
|
|
1181
|
+
}[];
|
|
1182
|
+
}>>;
|
|
623
1183
|
export declare const treeReferenceSchema: z.ZodObject<{
|
|
624
1184
|
id: z.ZodString;
|
|
625
1185
|
options: z.ZodObject<{
|
|
@@ -747,6 +1307,22 @@ export declare const treeReferenceSchema: z.ZodObject<{
|
|
|
747
1307
|
}, z.core.$strip>;
|
|
748
1308
|
}, z.core.$strip>;
|
|
749
1309
|
export type TreeReference = z.output<typeof treeReferenceSchema>;
|
|
1310
|
+
/**
|
|
1311
|
+
* That rule on its own, for a tree list that is already validated.
|
|
1312
|
+
*
|
|
1313
|
+
* The sliced validator (#134) runs this as its last step, in place of the
|
|
1314
|
+
* `.check` below. A schema rather than a bare call so its issue is finalised by
|
|
1315
|
+
* zod exactly as the inline one is — the same reason `preparsedTreeSchema`
|
|
1316
|
+
* exists. `z.custom` accepts anything, which is right: by the time either path
|
|
1317
|
+
* gets here the value has been validated in full.
|
|
1318
|
+
*/
|
|
1319
|
+
export declare const definedReferencesSchema: z.ZodCustom<{
|
|
1320
|
+
tree: Tree;
|
|
1321
|
+
references?: ReadonlyArray<Pick<TreeReference, 'id'>>;
|
|
1322
|
+
}, {
|
|
1323
|
+
tree: Tree;
|
|
1324
|
+
references?: ReadonlyArray<Pick<TreeReference, 'id'>>;
|
|
1325
|
+
}>;
|
|
750
1326
|
export declare const treeListSchema: z.ZodObject<{
|
|
751
1327
|
tree: z.ZodPipe<z.ZodObject<{
|
|
752
1328
|
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1264,5 +1840,4 @@ export declare const treeListSchema: z.ZodObject<{
|
|
|
1264
1840
|
}, z.core.$strip>;
|
|
1265
1841
|
export type TreeList = z.output<typeof treeListSchema>;
|
|
1266
1842
|
export type InputTreeList = z.input<typeof treeListSchema>;
|
|
1267
|
-
export {};
|
|
1268
1843
|
//# sourceMappingURL=treeNodes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeNodes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/treeNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAmB1B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGrB,CAAA;AAEF,MAAM,MAAM,IAAI,GAA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