@n8n/api-types 1.28.0 → 1.29.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/agent-builder-interactive.d.ts +34 -1
- package/dist/agent-builder-interactive.js +5 -1
- package/dist/agent-builder-interactive.js.map +1 -1
- package/dist/agents/agent-json-config.schema.d.ts +262 -131
- package/dist/agents/agent-json-config.schema.js +48 -21
- package/dist/agents/agent-json-config.schema.js.map +1 -1
- package/dist/agents/dto.d.ts +362 -13
- package/dist/agents/dto.js +97 -19
- package/dist/agents/dto.js.map +1 -1
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/index.js +3 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/types.d.ts +6 -0
- package/dist/agents/types.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat-hub.d.ts +21 -14
- package/dist/chat-hub.js +6 -1
- package/dist/chat-hub.js.map +1 -1
- package/dist/dto/ai/ai-build-request.dto.d.ts +0 -21
- package/dist/dto/binary-data/binary-data-query.dto.js +1 -1
- package/dist/dto/binary-data/binary-data-query.dto.js.map +1 -1
- package/dist/dto/data-table/list-data-table-query.dto.d.ts +4 -4
- package/dist/dto/evaluations/evaluation-config.dto.d.ts +52 -52
- package/dist/dto/folders/list-folder-query.dto.d.ts +2 -2
- package/dist/dto/index.d.ts +1 -0
- package/dist/dto/index.js +4 -2
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/oauth/oauth-client.dto.d.ts +8 -8
- package/dist/dto/packages/import-package-request.dto.d.ts +1 -1
- package/dist/dto/roles/role-member.schema.d.ts +20 -0
- package/dist/dto/roles/role-member.schema.js +12 -0
- package/dist/dto/roles/role-member.schema.js.map +1 -0
- package/dist/dto/roles/role-members-response.dto.d.ts +38 -0
- package/dist/dto/roles/role-members-response.dto.js +13 -0
- package/dist/dto/roles/role-members-response.dto.js.map +1 -0
- package/dist/dto/roles/role-project-members-response.dto.d.ts +2 -20
- package/dist/dto/roles/role-project-members-response.dto.js +2 -8
- package/dist/dto/roles/role-project-members-response.dto.js.map +1 -1
- package/dist/dto/source-control/push-work-folder-request.dto.d.ts +3 -3
- package/dist/dto/workflows/base-workflow.dto.d.ts +7 -7
- package/dist/dto/workflows/create-workflow.dto.d.ts +6 -6
- package/dist/dto/workflows/update-workflow.dto.d.ts +6 -6
- package/dist/frontend-settings.d.ts +3 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/push/instance-ai.d.ts +7 -0
- package/dist/schemas/breaking-changes.schema.d.ts +16 -16
- package/dist/schemas/credential-resolver.schema.d.ts +12 -12
- package/dist/schemas/credential-response.schema.d.ts +4 -4
- package/dist/schemas/data-table.schema.d.ts +4 -4
- package/dist/schemas/encryption-key.schema.d.ts +6 -6
- package/dist/schemas/instance-ai.schema.d.ts +410 -120
- package/dist/schemas/instance-ai.schema.js +43 -2
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/secrets-provider.schema.d.ts +10 -10
- package/dist/schemas/source-controlled-file.schema.d.ts +2 -2
- package/dist/schemas/user.schema.d.ts +24 -24
- package/dist/schemas/user.schema.js +1 -2
- package/dist/schemas/user.schema.js.map +1 -1
- package/package.json +9 -8
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z, type ZodError } from 'zod';
|
|
2
|
+
export declare const CUSTOM_TOOL_ID_REGEX: RegExp;
|
|
3
|
+
export declare const MANAGED_CREDENTIAL_TOKEN: "managed";
|
|
2
4
|
export declare const AgentModelSchema: z.ZodString;
|
|
3
5
|
declare const MemoryConfigSchema: z.ZodObject<{
|
|
4
6
|
enabled: z.ZodBoolean;
|
|
@@ -69,7 +71,7 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
69
71
|
enabled: false;
|
|
70
72
|
}>, z.ZodObject<{
|
|
71
73
|
enabled: z.ZodLiteral<true>;
|
|
72
|
-
credential: z.ZodString
|
|
74
|
+
credential: z.ZodUnion<[z.ZodLiteral<"managed">, z.ZodString]>;
|
|
73
75
|
extractorModel: z.ZodOptional<z.ZodObject<{
|
|
74
76
|
model: z.ZodString;
|
|
75
77
|
credential: z.ZodString;
|
|
@@ -190,6 +192,7 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
190
192
|
maxEntriesPerRun?: number | undefined;
|
|
191
193
|
} | undefined;
|
|
192
194
|
}>;
|
|
195
|
+
export declare const SUB_AGENT_USE_WHEN_MAX_LENGTH = 512;
|
|
193
196
|
export declare const SUB_AGENT_TASK_DIFFICULTIES: readonly ["low", "medium", "high"];
|
|
194
197
|
declare const SubAgentTaskDifficultySchema: z.ZodEnum<["low", "medium", "high"]>;
|
|
195
198
|
export declare const NodeConfigSchema: z.ZodObject<{
|
|
@@ -200,27 +203,27 @@ export declare const NodeConfigSchema: z.ZodObject<{
|
|
|
200
203
|
id: z.ZodString;
|
|
201
204
|
name: z.ZodString;
|
|
202
205
|
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
name: string;
|
|
204
206
|
id: string;
|
|
205
|
-
}, {
|
|
206
207
|
name: string;
|
|
208
|
+
}, {
|
|
207
209
|
id: string;
|
|
210
|
+
name: string;
|
|
208
211
|
}>>>;
|
|
209
212
|
}, "strip", z.ZodTypeAny, {
|
|
210
213
|
nodeType: string;
|
|
211
214
|
nodeTypeVersion: number;
|
|
212
215
|
nodeParameters: Record<string, unknown>;
|
|
213
216
|
credentials?: Record<string, {
|
|
214
|
-
name: string;
|
|
215
217
|
id: string;
|
|
218
|
+
name: string;
|
|
216
219
|
}> | undefined;
|
|
217
220
|
}, {
|
|
218
221
|
nodeType: string;
|
|
219
222
|
nodeTypeVersion: number;
|
|
220
223
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
221
224
|
credentials?: Record<string, {
|
|
222
|
-
name: string;
|
|
223
225
|
id: string;
|
|
226
|
+
name: string;
|
|
224
227
|
}> | undefined;
|
|
225
228
|
}>;
|
|
226
229
|
declare const AgentJsonSkillConfigSchema: z.ZodObject<{
|
|
@@ -369,15 +372,15 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
369
372
|
type: "workflow";
|
|
370
373
|
workflow: string;
|
|
371
374
|
description?: string | undefined;
|
|
372
|
-
name?: string | undefined;
|
|
373
375
|
requireApproval?: boolean | undefined;
|
|
376
|
+
name?: string | undefined;
|
|
374
377
|
allOutputs?: boolean | undefined;
|
|
375
378
|
}, {
|
|
376
379
|
type: "workflow";
|
|
377
380
|
workflow: string;
|
|
378
381
|
description?: string | undefined;
|
|
379
|
-
name?: string | undefined;
|
|
380
382
|
requireApproval?: boolean | undefined;
|
|
383
|
+
name?: string | undefined;
|
|
381
384
|
allOutputs?: boolean | undefined;
|
|
382
385
|
}>, z.ZodObject<{
|
|
383
386
|
type: z.ZodLiteral<"node">;
|
|
@@ -392,27 +395,27 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
392
395
|
id: z.ZodString;
|
|
393
396
|
name: z.ZodString;
|
|
394
397
|
}, "strip", z.ZodTypeAny, {
|
|
395
|
-
name: string;
|
|
396
398
|
id: string;
|
|
397
|
-
}, {
|
|
398
399
|
name: string;
|
|
400
|
+
}, {
|
|
399
401
|
id: string;
|
|
402
|
+
name: string;
|
|
400
403
|
}>>>;
|
|
401
404
|
}, "strip", z.ZodTypeAny, {
|
|
402
405
|
nodeType: string;
|
|
403
406
|
nodeTypeVersion: number;
|
|
404
407
|
nodeParameters: Record<string, unknown>;
|
|
405
408
|
credentials?: Record<string, {
|
|
406
|
-
name: string;
|
|
407
409
|
id: string;
|
|
410
|
+
name: string;
|
|
408
411
|
}> | undefined;
|
|
409
412
|
}, {
|
|
410
413
|
nodeType: string;
|
|
411
414
|
nodeTypeVersion: number;
|
|
412
415
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
413
416
|
credentials?: Record<string, {
|
|
414
|
-
name: string;
|
|
415
417
|
id: string;
|
|
418
|
+
name: string;
|
|
416
419
|
}> | undefined;
|
|
417
420
|
}>;
|
|
418
421
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -424,8 +427,8 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
424
427
|
nodeTypeVersion: number;
|
|
425
428
|
nodeParameters: Record<string, unknown>;
|
|
426
429
|
credentials?: Record<string, {
|
|
427
|
-
name: string;
|
|
428
430
|
id: string;
|
|
431
|
+
name: string;
|
|
429
432
|
}> | undefined;
|
|
430
433
|
};
|
|
431
434
|
description?: string | undefined;
|
|
@@ -439,8 +442,8 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
439
442
|
nodeTypeVersion: number;
|
|
440
443
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
441
444
|
credentials?: Record<string, {
|
|
442
|
-
name: string;
|
|
443
445
|
id: string;
|
|
446
|
+
name: string;
|
|
444
447
|
}> | undefined;
|
|
445
448
|
};
|
|
446
449
|
description?: string | undefined;
|
|
@@ -449,7 +452,6 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
449
452
|
}>]>;
|
|
450
453
|
export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
451
454
|
name: z.ZodString;
|
|
452
|
-
description: z.ZodOptional<z.ZodString>;
|
|
453
455
|
model: z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>;
|
|
454
456
|
credential: z.ZodOptional<z.ZodString>;
|
|
455
457
|
instructions: z.ZodString;
|
|
@@ -522,7 +524,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
522
524
|
enabled: false;
|
|
523
525
|
}>, z.ZodObject<{
|
|
524
526
|
enabled: z.ZodLiteral<true>;
|
|
525
|
-
credential: z.ZodString
|
|
527
|
+
credential: z.ZodUnion<[z.ZodLiteral<"managed">, z.ZodString]>;
|
|
526
528
|
extractorModel: z.ZodOptional<z.ZodObject<{
|
|
527
529
|
model: z.ZodString;
|
|
528
530
|
credential: z.ZodString;
|
|
@@ -647,10 +649,13 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
647
649
|
maxChildren: z.ZodOptional<z.ZodNumber>;
|
|
648
650
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
649
651
|
agentId: z.ZodString;
|
|
650
|
-
|
|
652
|
+
useWhen: z.ZodOptional<z.ZodString>;
|
|
653
|
+
}, "strict", z.ZodTypeAny, {
|
|
651
654
|
agentId: string;
|
|
655
|
+
useWhen?: string | undefined;
|
|
652
656
|
}, {
|
|
653
657
|
agentId: string;
|
|
658
|
+
useWhen?: string | undefined;
|
|
654
659
|
}>, "many">>;
|
|
655
660
|
modelsByDifficulty: z.ZodOptional<z.ZodObject<{
|
|
656
661
|
low: z.ZodOptional<z.ZodObject<{
|
|
@@ -714,6 +719,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
714
719
|
maxChildren?: number | undefined;
|
|
715
720
|
agents?: {
|
|
716
721
|
agentId: string;
|
|
722
|
+
useWhen?: string | undefined;
|
|
717
723
|
}[] | undefined;
|
|
718
724
|
modelsByDifficulty?: {
|
|
719
725
|
low?: {
|
|
@@ -733,6 +739,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
733
739
|
maxChildren?: number | undefined;
|
|
734
740
|
agents?: {
|
|
735
741
|
agentId: string;
|
|
742
|
+
useWhen?: string | undefined;
|
|
736
743
|
}[] | undefined;
|
|
737
744
|
modelsByDifficulty?: {
|
|
738
745
|
low?: {
|
|
@@ -749,7 +756,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
749
756
|
} | undefined;
|
|
750
757
|
} | undefined;
|
|
751
758
|
}>>;
|
|
752
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
759
|
+
tools: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
753
760
|
type: z.ZodLiteral<"custom">;
|
|
754
761
|
id: z.ZodString;
|
|
755
762
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -772,15 +779,15 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
772
779
|
type: "workflow";
|
|
773
780
|
workflow: string;
|
|
774
781
|
description?: string | undefined;
|
|
775
|
-
name?: string | undefined;
|
|
776
782
|
requireApproval?: boolean | undefined;
|
|
783
|
+
name?: string | undefined;
|
|
777
784
|
allOutputs?: boolean | undefined;
|
|
778
785
|
}, {
|
|
779
786
|
type: "workflow";
|
|
780
787
|
workflow: string;
|
|
781
788
|
description?: string | undefined;
|
|
782
|
-
name?: string | undefined;
|
|
783
789
|
requireApproval?: boolean | undefined;
|
|
790
|
+
name?: string | undefined;
|
|
784
791
|
allOutputs?: boolean | undefined;
|
|
785
792
|
}>, z.ZodObject<{
|
|
786
793
|
type: z.ZodLiteral<"node">;
|
|
@@ -795,27 +802,27 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
795
802
|
id: z.ZodString;
|
|
796
803
|
name: z.ZodString;
|
|
797
804
|
}, "strip", z.ZodTypeAny, {
|
|
798
|
-
name: string;
|
|
799
805
|
id: string;
|
|
800
|
-
}, {
|
|
801
806
|
name: string;
|
|
807
|
+
}, {
|
|
802
808
|
id: string;
|
|
809
|
+
name: string;
|
|
803
810
|
}>>>;
|
|
804
811
|
}, "strip", z.ZodTypeAny, {
|
|
805
812
|
nodeType: string;
|
|
806
813
|
nodeTypeVersion: number;
|
|
807
814
|
nodeParameters: Record<string, unknown>;
|
|
808
815
|
credentials?: Record<string, {
|
|
809
|
-
name: string;
|
|
810
816
|
id: string;
|
|
817
|
+
name: string;
|
|
811
818
|
}> | undefined;
|
|
812
819
|
}, {
|
|
813
820
|
nodeType: string;
|
|
814
821
|
nodeTypeVersion: number;
|
|
815
822
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
816
823
|
credentials?: Record<string, {
|
|
817
|
-
name: string;
|
|
818
824
|
id: string;
|
|
825
|
+
name: string;
|
|
819
826
|
}> | undefined;
|
|
820
827
|
}>;
|
|
821
828
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -827,8 +834,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
827
834
|
nodeTypeVersion: number;
|
|
828
835
|
nodeParameters: Record<string, unknown>;
|
|
829
836
|
credentials?: Record<string, {
|
|
830
|
-
name: string;
|
|
831
837
|
id: string;
|
|
838
|
+
name: string;
|
|
832
839
|
}> | undefined;
|
|
833
840
|
};
|
|
834
841
|
description?: string | undefined;
|
|
@@ -842,15 +849,67 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
842
849
|
nodeTypeVersion: number;
|
|
843
850
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
844
851
|
credentials?: Record<string, {
|
|
852
|
+
id: string;
|
|
845
853
|
name: string;
|
|
854
|
+
}> | undefined;
|
|
855
|
+
};
|
|
856
|
+
description?: string | undefined;
|
|
857
|
+
requireApproval?: boolean | undefined;
|
|
858
|
+
inputSchema?: undefined;
|
|
859
|
+
}>]>, "many">, ({
|
|
860
|
+
type: "custom";
|
|
861
|
+
id: string;
|
|
862
|
+
requireApproval?: boolean | undefined;
|
|
863
|
+
} | {
|
|
864
|
+
type: "workflow";
|
|
865
|
+
workflow: string;
|
|
866
|
+
description?: string | undefined;
|
|
867
|
+
requireApproval?: boolean | undefined;
|
|
868
|
+
name?: string | undefined;
|
|
869
|
+
allOutputs?: boolean | undefined;
|
|
870
|
+
} | {
|
|
871
|
+
type: "node";
|
|
872
|
+
name: string;
|
|
873
|
+
node: {
|
|
874
|
+
nodeType: string;
|
|
875
|
+
nodeTypeVersion: number;
|
|
876
|
+
nodeParameters: Record<string, unknown>;
|
|
877
|
+
credentials?: Record<string, {
|
|
846
878
|
id: string;
|
|
879
|
+
name: string;
|
|
847
880
|
}> | undefined;
|
|
848
881
|
};
|
|
849
882
|
description?: string | undefined;
|
|
850
883
|
requireApproval?: boolean | undefined;
|
|
851
884
|
inputSchema?: undefined;
|
|
852
|
-
}
|
|
853
|
-
|
|
885
|
+
})[], ({
|
|
886
|
+
type: "custom";
|
|
887
|
+
id: string;
|
|
888
|
+
requireApproval?: boolean | undefined;
|
|
889
|
+
} | {
|
|
890
|
+
type: "workflow";
|
|
891
|
+
workflow: string;
|
|
892
|
+
description?: string | undefined;
|
|
893
|
+
requireApproval?: boolean | undefined;
|
|
894
|
+
name?: string | undefined;
|
|
895
|
+
allOutputs?: boolean | undefined;
|
|
896
|
+
} | {
|
|
897
|
+
type: "node";
|
|
898
|
+
name: string;
|
|
899
|
+
node: {
|
|
900
|
+
nodeType: string;
|
|
901
|
+
nodeTypeVersion: number;
|
|
902
|
+
nodeParameters?: Record<string, unknown> | undefined;
|
|
903
|
+
credentials?: Record<string, {
|
|
904
|
+
id: string;
|
|
905
|
+
name: string;
|
|
906
|
+
}> | undefined;
|
|
907
|
+
};
|
|
908
|
+
description?: string | undefined;
|
|
909
|
+
requireApproval?: boolean | undefined;
|
|
910
|
+
inputSchema?: undefined;
|
|
911
|
+
})[]>>;
|
|
912
|
+
skills: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
854
913
|
type: z.ZodLiteral<"skill">;
|
|
855
914
|
id: z.ZodString;
|
|
856
915
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -859,7 +918,13 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
859
918
|
}, {
|
|
860
919
|
type: "skill";
|
|
861
920
|
id: string;
|
|
862
|
-
}>, "many"
|
|
921
|
+
}>, "many">, {
|
|
922
|
+
type: "skill";
|
|
923
|
+
id: string;
|
|
924
|
+
}[], {
|
|
925
|
+
type: "skill";
|
|
926
|
+
id: string;
|
|
927
|
+
}[]>>;
|
|
863
928
|
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
864
929
|
type: z.ZodLiteral<"task">;
|
|
865
930
|
id: z.ZodString;
|
|
@@ -1103,13 +1168,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1103
1168
|
}>>;
|
|
1104
1169
|
toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
1105
1170
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1106
|
-
nodeTools: z.ZodOptional<z.ZodObject<{
|
|
1107
|
-
enabled: z.ZodBoolean;
|
|
1108
|
-
}, "strip", z.ZodTypeAny, {
|
|
1109
|
-
enabled: boolean;
|
|
1110
|
-
}, {
|
|
1111
|
-
enabled: boolean;
|
|
1112
|
-
}>>;
|
|
1113
1171
|
}, "strip", z.ZodTypeAny, {
|
|
1114
1172
|
thinking?: {
|
|
1115
1173
|
provider: "anthropic" | "openai";
|
|
@@ -1123,9 +1181,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1123
1181
|
} | undefined;
|
|
1124
1182
|
toolCallConcurrency?: number | undefined;
|
|
1125
1183
|
maxIterations?: number | undefined;
|
|
1126
|
-
nodeTools?: {
|
|
1127
|
-
enabled: boolean;
|
|
1128
|
-
} | undefined;
|
|
1129
1184
|
}, {
|
|
1130
1185
|
thinking?: {
|
|
1131
1186
|
provider: "anthropic" | "openai";
|
|
@@ -1139,15 +1194,11 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1139
1194
|
} | undefined;
|
|
1140
1195
|
toolCallConcurrency?: number | undefined;
|
|
1141
1196
|
maxIterations?: number | undefined;
|
|
1142
|
-
nodeTools?: {
|
|
1143
|
-
enabled: boolean;
|
|
1144
|
-
} | undefined;
|
|
1145
1197
|
}>>;
|
|
1146
1198
|
}, "strip", z.ZodTypeAny, {
|
|
1147
1199
|
model: string;
|
|
1148
1200
|
name: string;
|
|
1149
1201
|
instructions: string;
|
|
1150
|
-
description?: string | undefined;
|
|
1151
1202
|
credential?: string | undefined;
|
|
1152
1203
|
tools?: ({
|
|
1153
1204
|
type: "custom";
|
|
@@ -1157,8 +1208,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1157
1208
|
type: "workflow";
|
|
1158
1209
|
workflow: string;
|
|
1159
1210
|
description?: string | undefined;
|
|
1160
|
-
name?: string | undefined;
|
|
1161
1211
|
requireApproval?: boolean | undefined;
|
|
1212
|
+
name?: string | undefined;
|
|
1162
1213
|
allOutputs?: boolean | undefined;
|
|
1163
1214
|
} | {
|
|
1164
1215
|
type: "node";
|
|
@@ -1168,8 +1219,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1168
1219
|
nodeTypeVersion: number;
|
|
1169
1220
|
nodeParameters: Record<string, unknown>;
|
|
1170
1221
|
credentials?: Record<string, {
|
|
1171
|
-
name: string;
|
|
1172
1222
|
id: string;
|
|
1223
|
+
name: string;
|
|
1173
1224
|
}> | undefined;
|
|
1174
1225
|
};
|
|
1175
1226
|
description?: string | undefined;
|
|
@@ -1216,6 +1267,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1216
1267
|
maxChildren?: number | undefined;
|
|
1217
1268
|
agents?: {
|
|
1218
1269
|
agentId: string;
|
|
1270
|
+
useWhen?: string | undefined;
|
|
1219
1271
|
}[] | undefined;
|
|
1220
1272
|
modelsByDifficulty?: {
|
|
1221
1273
|
low?: {
|
|
@@ -1294,15 +1346,11 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1294
1346
|
} | undefined;
|
|
1295
1347
|
toolCallConcurrency?: number | undefined;
|
|
1296
1348
|
maxIterations?: number | undefined;
|
|
1297
|
-
nodeTools?: {
|
|
1298
|
-
enabled: boolean;
|
|
1299
|
-
} | undefined;
|
|
1300
1349
|
} | undefined;
|
|
1301
1350
|
}, {
|
|
1302
1351
|
model: string;
|
|
1303
1352
|
name: string;
|
|
1304
1353
|
instructions: string;
|
|
1305
|
-
description?: string | undefined;
|
|
1306
1354
|
credential?: string | undefined;
|
|
1307
1355
|
tools?: ({
|
|
1308
1356
|
type: "custom";
|
|
@@ -1312,8 +1360,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1312
1360
|
type: "workflow";
|
|
1313
1361
|
workflow: string;
|
|
1314
1362
|
description?: string | undefined;
|
|
1315
|
-
name?: string | undefined;
|
|
1316
1363
|
requireApproval?: boolean | undefined;
|
|
1364
|
+
name?: string | undefined;
|
|
1317
1365
|
allOutputs?: boolean | undefined;
|
|
1318
1366
|
} | {
|
|
1319
1367
|
type: "node";
|
|
@@ -1323,8 +1371,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1323
1371
|
nodeTypeVersion: number;
|
|
1324
1372
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
1325
1373
|
credentials?: Record<string, {
|
|
1326
|
-
name: string;
|
|
1327
1374
|
id: string;
|
|
1375
|
+
name: string;
|
|
1328
1376
|
}> | undefined;
|
|
1329
1377
|
};
|
|
1330
1378
|
description?: string | undefined;
|
|
@@ -1371,6 +1419,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1371
1419
|
maxChildren?: number | undefined;
|
|
1372
1420
|
agents?: {
|
|
1373
1421
|
agentId: string;
|
|
1422
|
+
useWhen?: string | undefined;
|
|
1374
1423
|
}[] | undefined;
|
|
1375
1424
|
modelsByDifficulty?: {
|
|
1376
1425
|
low?: {
|
|
@@ -1449,14 +1498,10 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1449
1498
|
} | undefined;
|
|
1450
1499
|
toolCallConcurrency?: number | undefined;
|
|
1451
1500
|
maxIterations?: number | undefined;
|
|
1452
|
-
nodeTools?: {
|
|
1453
|
-
enabled: boolean;
|
|
1454
|
-
} | undefined;
|
|
1455
1501
|
} | undefined;
|
|
1456
1502
|
}>;
|
|
1457
1503
|
export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
1458
1504
|
name: z.ZodString;
|
|
1459
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1460
1505
|
instructions: z.ZodString;
|
|
1461
1506
|
memory: z.ZodOptional<z.ZodObject<{
|
|
1462
1507
|
enabled: z.ZodBoolean;
|
|
@@ -1527,7 +1572,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1527
1572
|
enabled: false;
|
|
1528
1573
|
}>, z.ZodObject<{
|
|
1529
1574
|
enabled: z.ZodLiteral<true>;
|
|
1530
|
-
credential: z.ZodString
|
|
1575
|
+
credential: z.ZodUnion<[z.ZodLiteral<"managed">, z.ZodString]>;
|
|
1531
1576
|
extractorModel: z.ZodOptional<z.ZodObject<{
|
|
1532
1577
|
model: z.ZodString;
|
|
1533
1578
|
credential: z.ZodString;
|
|
@@ -1652,10 +1697,13 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1652
1697
|
maxChildren: z.ZodOptional<z.ZodNumber>;
|
|
1653
1698
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1654
1699
|
agentId: z.ZodString;
|
|
1655
|
-
|
|
1700
|
+
useWhen: z.ZodOptional<z.ZodString>;
|
|
1701
|
+
}, "strict", z.ZodTypeAny, {
|
|
1656
1702
|
agentId: string;
|
|
1703
|
+
useWhen?: string | undefined;
|
|
1657
1704
|
}, {
|
|
1658
1705
|
agentId: string;
|
|
1706
|
+
useWhen?: string | undefined;
|
|
1659
1707
|
}>, "many">>;
|
|
1660
1708
|
modelsByDifficulty: z.ZodOptional<z.ZodObject<{
|
|
1661
1709
|
low: z.ZodOptional<z.ZodObject<{
|
|
@@ -1719,6 +1767,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1719
1767
|
maxChildren?: number | undefined;
|
|
1720
1768
|
agents?: {
|
|
1721
1769
|
agentId: string;
|
|
1770
|
+
useWhen?: string | undefined;
|
|
1722
1771
|
}[] | undefined;
|
|
1723
1772
|
modelsByDifficulty?: {
|
|
1724
1773
|
low?: {
|
|
@@ -1738,6 +1787,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1738
1787
|
maxChildren?: number | undefined;
|
|
1739
1788
|
agents?: {
|
|
1740
1789
|
agentId: string;
|
|
1790
|
+
useWhen?: string | undefined;
|
|
1741
1791
|
}[] | undefined;
|
|
1742
1792
|
modelsByDifficulty?: {
|
|
1743
1793
|
low?: {
|
|
@@ -1754,7 +1804,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1754
1804
|
} | undefined;
|
|
1755
1805
|
} | undefined;
|
|
1756
1806
|
}>>;
|
|
1757
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1807
|
+
tools: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1758
1808
|
type: z.ZodLiteral<"custom">;
|
|
1759
1809
|
id: z.ZodString;
|
|
1760
1810
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1777,15 +1827,15 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1777
1827
|
type: "workflow";
|
|
1778
1828
|
workflow: string;
|
|
1779
1829
|
description?: string | undefined;
|
|
1780
|
-
name?: string | undefined;
|
|
1781
1830
|
requireApproval?: boolean | undefined;
|
|
1831
|
+
name?: string | undefined;
|
|
1782
1832
|
allOutputs?: boolean | undefined;
|
|
1783
1833
|
}, {
|
|
1784
1834
|
type: "workflow";
|
|
1785
1835
|
workflow: string;
|
|
1786
1836
|
description?: string | undefined;
|
|
1787
|
-
name?: string | undefined;
|
|
1788
1837
|
requireApproval?: boolean | undefined;
|
|
1838
|
+
name?: string | undefined;
|
|
1789
1839
|
allOutputs?: boolean | undefined;
|
|
1790
1840
|
}>, z.ZodObject<{
|
|
1791
1841
|
type: z.ZodLiteral<"node">;
|
|
@@ -1800,27 +1850,27 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1800
1850
|
id: z.ZodString;
|
|
1801
1851
|
name: z.ZodString;
|
|
1802
1852
|
}, "strip", z.ZodTypeAny, {
|
|
1803
|
-
name: string;
|
|
1804
1853
|
id: string;
|
|
1805
|
-
}, {
|
|
1806
1854
|
name: string;
|
|
1855
|
+
}, {
|
|
1807
1856
|
id: string;
|
|
1857
|
+
name: string;
|
|
1808
1858
|
}>>>;
|
|
1809
1859
|
}, "strip", z.ZodTypeAny, {
|
|
1810
1860
|
nodeType: string;
|
|
1811
1861
|
nodeTypeVersion: number;
|
|
1812
1862
|
nodeParameters: Record<string, unknown>;
|
|
1813
1863
|
credentials?: Record<string, {
|
|
1814
|
-
name: string;
|
|
1815
1864
|
id: string;
|
|
1865
|
+
name: string;
|
|
1816
1866
|
}> | undefined;
|
|
1817
1867
|
}, {
|
|
1818
1868
|
nodeType: string;
|
|
1819
1869
|
nodeTypeVersion: number;
|
|
1820
1870
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
1821
1871
|
credentials?: Record<string, {
|
|
1822
|
-
name: string;
|
|
1823
1872
|
id: string;
|
|
1873
|
+
name: string;
|
|
1824
1874
|
}> | undefined;
|
|
1825
1875
|
}>;
|
|
1826
1876
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1832,8 +1882,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1832
1882
|
nodeTypeVersion: number;
|
|
1833
1883
|
nodeParameters: Record<string, unknown>;
|
|
1834
1884
|
credentials?: Record<string, {
|
|
1835
|
-
name: string;
|
|
1836
1885
|
id: string;
|
|
1886
|
+
name: string;
|
|
1837
1887
|
}> | undefined;
|
|
1838
1888
|
};
|
|
1839
1889
|
description?: string | undefined;
|
|
@@ -1847,15 +1897,67 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1847
1897
|
nodeTypeVersion: number;
|
|
1848
1898
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
1849
1899
|
credentials?: Record<string, {
|
|
1900
|
+
id: string;
|
|
1901
|
+
name: string;
|
|
1902
|
+
}> | undefined;
|
|
1903
|
+
};
|
|
1904
|
+
description?: string | undefined;
|
|
1905
|
+
requireApproval?: boolean | undefined;
|
|
1906
|
+
inputSchema?: undefined;
|
|
1907
|
+
}>]>, "many">, ({
|
|
1908
|
+
type: "custom";
|
|
1909
|
+
id: string;
|
|
1910
|
+
requireApproval?: boolean | undefined;
|
|
1911
|
+
} | {
|
|
1912
|
+
type: "workflow";
|
|
1913
|
+
workflow: string;
|
|
1914
|
+
description?: string | undefined;
|
|
1915
|
+
requireApproval?: boolean | undefined;
|
|
1916
|
+
name?: string | undefined;
|
|
1917
|
+
allOutputs?: boolean | undefined;
|
|
1918
|
+
} | {
|
|
1919
|
+
type: "node";
|
|
1920
|
+
name: string;
|
|
1921
|
+
node: {
|
|
1922
|
+
nodeType: string;
|
|
1923
|
+
nodeTypeVersion: number;
|
|
1924
|
+
nodeParameters: Record<string, unknown>;
|
|
1925
|
+
credentials?: Record<string, {
|
|
1926
|
+
id: string;
|
|
1850
1927
|
name: string;
|
|
1928
|
+
}> | undefined;
|
|
1929
|
+
};
|
|
1930
|
+
description?: string | undefined;
|
|
1931
|
+
requireApproval?: boolean | undefined;
|
|
1932
|
+
inputSchema?: undefined;
|
|
1933
|
+
})[], ({
|
|
1934
|
+
type: "custom";
|
|
1935
|
+
id: string;
|
|
1936
|
+
requireApproval?: boolean | undefined;
|
|
1937
|
+
} | {
|
|
1938
|
+
type: "workflow";
|
|
1939
|
+
workflow: string;
|
|
1940
|
+
description?: string | undefined;
|
|
1941
|
+
requireApproval?: boolean | undefined;
|
|
1942
|
+
name?: string | undefined;
|
|
1943
|
+
allOutputs?: boolean | undefined;
|
|
1944
|
+
} | {
|
|
1945
|
+
type: "node";
|
|
1946
|
+
name: string;
|
|
1947
|
+
node: {
|
|
1948
|
+
nodeType: string;
|
|
1949
|
+
nodeTypeVersion: number;
|
|
1950
|
+
nodeParameters?: Record<string, unknown> | undefined;
|
|
1951
|
+
credentials?: Record<string, {
|
|
1851
1952
|
id: string;
|
|
1953
|
+
name: string;
|
|
1852
1954
|
}> | undefined;
|
|
1853
1955
|
};
|
|
1854
1956
|
description?: string | undefined;
|
|
1855
1957
|
requireApproval?: boolean | undefined;
|
|
1856
1958
|
inputSchema?: undefined;
|
|
1857
|
-
}
|
|
1858
|
-
skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1959
|
+
})[]>>;
|
|
1960
|
+
skills: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
1859
1961
|
type: z.ZodLiteral<"skill">;
|
|
1860
1962
|
id: z.ZodString;
|
|
1861
1963
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1864,7 +1966,13 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1864
1966
|
}, {
|
|
1865
1967
|
type: "skill";
|
|
1866
1968
|
id: string;
|
|
1867
|
-
}>, "many"
|
|
1969
|
+
}>, "many">, {
|
|
1970
|
+
type: "skill";
|
|
1971
|
+
id: string;
|
|
1972
|
+
}[], {
|
|
1973
|
+
type: "skill";
|
|
1974
|
+
id: string;
|
|
1975
|
+
}[]>>;
|
|
1868
1976
|
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1869
1977
|
type: z.ZodLiteral<"task">;
|
|
1870
1978
|
id: z.ZodString;
|
|
@@ -2108,13 +2216,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2108
2216
|
}>>;
|
|
2109
2217
|
toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
2110
2218
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
2111
|
-
nodeTools: z.ZodOptional<z.ZodObject<{
|
|
2112
|
-
enabled: z.ZodBoolean;
|
|
2113
|
-
}, "strip", z.ZodTypeAny, {
|
|
2114
|
-
enabled: boolean;
|
|
2115
|
-
}, {
|
|
2116
|
-
enabled: boolean;
|
|
2117
|
-
}>>;
|
|
2118
2219
|
}, "strip", z.ZodTypeAny, {
|
|
2119
2220
|
thinking?: {
|
|
2120
2221
|
provider: "anthropic" | "openai";
|
|
@@ -2128,9 +2229,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2128
2229
|
} | undefined;
|
|
2129
2230
|
toolCallConcurrency?: number | undefined;
|
|
2130
2231
|
maxIterations?: number | undefined;
|
|
2131
|
-
nodeTools?: {
|
|
2132
|
-
enabled: boolean;
|
|
2133
|
-
} | undefined;
|
|
2134
2232
|
}, {
|
|
2135
2233
|
thinking?: {
|
|
2136
2234
|
provider: "anthropic" | "openai";
|
|
@@ -2144,9 +2242,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2144
2242
|
} | undefined;
|
|
2145
2243
|
toolCallConcurrency?: number | undefined;
|
|
2146
2244
|
maxIterations?: number | undefined;
|
|
2147
|
-
nodeTools?: {
|
|
2148
|
-
enabled: boolean;
|
|
2149
|
-
} | undefined;
|
|
2150
2245
|
}>>;
|
|
2151
2246
|
} & {
|
|
2152
2247
|
model: z.ZodString;
|
|
@@ -2156,7 +2251,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2156
2251
|
credential: string;
|
|
2157
2252
|
name: string;
|
|
2158
2253
|
instructions: string;
|
|
2159
|
-
description?: string | undefined;
|
|
2160
2254
|
tools?: ({
|
|
2161
2255
|
type: "custom";
|
|
2162
2256
|
id: string;
|
|
@@ -2165,8 +2259,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2165
2259
|
type: "workflow";
|
|
2166
2260
|
workflow: string;
|
|
2167
2261
|
description?: string | undefined;
|
|
2168
|
-
name?: string | undefined;
|
|
2169
2262
|
requireApproval?: boolean | undefined;
|
|
2263
|
+
name?: string | undefined;
|
|
2170
2264
|
allOutputs?: boolean | undefined;
|
|
2171
2265
|
} | {
|
|
2172
2266
|
type: "node";
|
|
@@ -2176,8 +2270,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2176
2270
|
nodeTypeVersion: number;
|
|
2177
2271
|
nodeParameters: Record<string, unknown>;
|
|
2178
2272
|
credentials?: Record<string, {
|
|
2179
|
-
name: string;
|
|
2180
2273
|
id: string;
|
|
2274
|
+
name: string;
|
|
2181
2275
|
}> | undefined;
|
|
2182
2276
|
};
|
|
2183
2277
|
description?: string | undefined;
|
|
@@ -2224,6 +2318,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2224
2318
|
maxChildren?: number | undefined;
|
|
2225
2319
|
agents?: {
|
|
2226
2320
|
agentId: string;
|
|
2321
|
+
useWhen?: string | undefined;
|
|
2227
2322
|
}[] | undefined;
|
|
2228
2323
|
modelsByDifficulty?: {
|
|
2229
2324
|
low?: {
|
|
@@ -2302,16 +2397,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2302
2397
|
} | undefined;
|
|
2303
2398
|
toolCallConcurrency?: number | undefined;
|
|
2304
2399
|
maxIterations?: number | undefined;
|
|
2305
|
-
nodeTools?: {
|
|
2306
|
-
enabled: boolean;
|
|
2307
|
-
} | undefined;
|
|
2308
2400
|
} | undefined;
|
|
2309
2401
|
}, {
|
|
2310
2402
|
model: string;
|
|
2311
2403
|
credential: string;
|
|
2312
2404
|
name: string;
|
|
2313
2405
|
instructions: string;
|
|
2314
|
-
description?: string | undefined;
|
|
2315
2406
|
tools?: ({
|
|
2316
2407
|
type: "custom";
|
|
2317
2408
|
id: string;
|
|
@@ -2320,8 +2411,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2320
2411
|
type: "workflow";
|
|
2321
2412
|
workflow: string;
|
|
2322
2413
|
description?: string | undefined;
|
|
2323
|
-
name?: string | undefined;
|
|
2324
2414
|
requireApproval?: boolean | undefined;
|
|
2415
|
+
name?: string | undefined;
|
|
2325
2416
|
allOutputs?: boolean | undefined;
|
|
2326
2417
|
} | {
|
|
2327
2418
|
type: "node";
|
|
@@ -2331,8 +2422,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2331
2422
|
nodeTypeVersion: number;
|
|
2332
2423
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
2333
2424
|
credentials?: Record<string, {
|
|
2334
|
-
name: string;
|
|
2335
2425
|
id: string;
|
|
2426
|
+
name: string;
|
|
2336
2427
|
}> | undefined;
|
|
2337
2428
|
};
|
|
2338
2429
|
description?: string | undefined;
|
|
@@ -2379,6 +2470,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2379
2470
|
maxChildren?: number | undefined;
|
|
2380
2471
|
agents?: {
|
|
2381
2472
|
agentId: string;
|
|
2473
|
+
useWhen?: string | undefined;
|
|
2382
2474
|
}[] | undefined;
|
|
2383
2475
|
modelsByDifficulty?: {
|
|
2384
2476
|
low?: {
|
|
@@ -2457,14 +2549,10 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2457
2549
|
} | undefined;
|
|
2458
2550
|
toolCallConcurrency?: number | undefined;
|
|
2459
2551
|
maxIterations?: number | undefined;
|
|
2460
|
-
nodeTools?: {
|
|
2461
|
-
enabled: boolean;
|
|
2462
|
-
} | undefined;
|
|
2463
2552
|
} | undefined;
|
|
2464
2553
|
}>;
|
|
2465
2554
|
export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
2466
2555
|
name: z.ZodOptional<z.ZodString>;
|
|
2467
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2468
2556
|
model: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>>;
|
|
2469
2557
|
credential: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2470
2558
|
instructions: z.ZodOptional<z.ZodString>;
|
|
@@ -2537,7 +2625,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2537
2625
|
enabled: false;
|
|
2538
2626
|
}>, z.ZodObject<{
|
|
2539
2627
|
enabled: z.ZodLiteral<true>;
|
|
2540
|
-
credential: z.ZodString
|
|
2628
|
+
credential: z.ZodUnion<[z.ZodLiteral<"managed">, z.ZodString]>;
|
|
2541
2629
|
extractorModel: z.ZodOptional<z.ZodObject<{
|
|
2542
2630
|
model: z.ZodString;
|
|
2543
2631
|
credential: z.ZodString;
|
|
@@ -2662,10 +2750,13 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2662
2750
|
maxChildren: z.ZodOptional<z.ZodNumber>;
|
|
2663
2751
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2664
2752
|
agentId: z.ZodString;
|
|
2665
|
-
|
|
2753
|
+
useWhen: z.ZodOptional<z.ZodString>;
|
|
2754
|
+
}, "strict", z.ZodTypeAny, {
|
|
2666
2755
|
agentId: string;
|
|
2756
|
+
useWhen?: string | undefined;
|
|
2667
2757
|
}, {
|
|
2668
2758
|
agentId: string;
|
|
2759
|
+
useWhen?: string | undefined;
|
|
2669
2760
|
}>, "many">>;
|
|
2670
2761
|
modelsByDifficulty: z.ZodOptional<z.ZodObject<{
|
|
2671
2762
|
low: z.ZodOptional<z.ZodObject<{
|
|
@@ -2729,6 +2820,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2729
2820
|
maxChildren?: number | undefined;
|
|
2730
2821
|
agents?: {
|
|
2731
2822
|
agentId: string;
|
|
2823
|
+
useWhen?: string | undefined;
|
|
2732
2824
|
}[] | undefined;
|
|
2733
2825
|
modelsByDifficulty?: {
|
|
2734
2826
|
low?: {
|
|
@@ -2748,6 +2840,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2748
2840
|
maxChildren?: number | undefined;
|
|
2749
2841
|
agents?: {
|
|
2750
2842
|
agentId: string;
|
|
2843
|
+
useWhen?: string | undefined;
|
|
2751
2844
|
}[] | undefined;
|
|
2752
2845
|
modelsByDifficulty?: {
|
|
2753
2846
|
low?: {
|
|
@@ -2764,7 +2857,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2764
2857
|
} | undefined;
|
|
2765
2858
|
} | undefined;
|
|
2766
2859
|
}>>>;
|
|
2767
|
-
tools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2860
|
+
tools: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2768
2861
|
type: z.ZodLiteral<"custom">;
|
|
2769
2862
|
id: z.ZodString;
|
|
2770
2863
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2787,15 +2880,15 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2787
2880
|
type: "workflow";
|
|
2788
2881
|
workflow: string;
|
|
2789
2882
|
description?: string | undefined;
|
|
2790
|
-
name?: string | undefined;
|
|
2791
2883
|
requireApproval?: boolean | undefined;
|
|
2884
|
+
name?: string | undefined;
|
|
2792
2885
|
allOutputs?: boolean | undefined;
|
|
2793
2886
|
}, {
|
|
2794
2887
|
type: "workflow";
|
|
2795
2888
|
workflow: string;
|
|
2796
2889
|
description?: string | undefined;
|
|
2797
|
-
name?: string | undefined;
|
|
2798
2890
|
requireApproval?: boolean | undefined;
|
|
2891
|
+
name?: string | undefined;
|
|
2799
2892
|
allOutputs?: boolean | undefined;
|
|
2800
2893
|
}>, z.ZodObject<{
|
|
2801
2894
|
type: z.ZodLiteral<"node">;
|
|
@@ -2810,27 +2903,27 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2810
2903
|
id: z.ZodString;
|
|
2811
2904
|
name: z.ZodString;
|
|
2812
2905
|
}, "strip", z.ZodTypeAny, {
|
|
2813
|
-
name: string;
|
|
2814
2906
|
id: string;
|
|
2815
|
-
}, {
|
|
2816
2907
|
name: string;
|
|
2908
|
+
}, {
|
|
2817
2909
|
id: string;
|
|
2910
|
+
name: string;
|
|
2818
2911
|
}>>>;
|
|
2819
2912
|
}, "strip", z.ZodTypeAny, {
|
|
2820
2913
|
nodeType: string;
|
|
2821
2914
|
nodeTypeVersion: number;
|
|
2822
2915
|
nodeParameters: Record<string, unknown>;
|
|
2823
2916
|
credentials?: Record<string, {
|
|
2824
|
-
name: string;
|
|
2825
2917
|
id: string;
|
|
2918
|
+
name: string;
|
|
2826
2919
|
}> | undefined;
|
|
2827
2920
|
}, {
|
|
2828
2921
|
nodeType: string;
|
|
2829
2922
|
nodeTypeVersion: number;
|
|
2830
2923
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
2831
2924
|
credentials?: Record<string, {
|
|
2832
|
-
name: string;
|
|
2833
2925
|
id: string;
|
|
2926
|
+
name: string;
|
|
2834
2927
|
}> | undefined;
|
|
2835
2928
|
}>;
|
|
2836
2929
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2842,8 +2935,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2842
2935
|
nodeTypeVersion: number;
|
|
2843
2936
|
nodeParameters: Record<string, unknown>;
|
|
2844
2937
|
credentials?: Record<string, {
|
|
2845
|
-
name: string;
|
|
2846
2938
|
id: string;
|
|
2939
|
+
name: string;
|
|
2847
2940
|
}> | undefined;
|
|
2848
2941
|
};
|
|
2849
2942
|
description?: string | undefined;
|
|
@@ -2857,15 +2950,67 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2857
2950
|
nodeTypeVersion: number;
|
|
2858
2951
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
2859
2952
|
credentials?: Record<string, {
|
|
2953
|
+
id: string;
|
|
2860
2954
|
name: string;
|
|
2955
|
+
}> | undefined;
|
|
2956
|
+
};
|
|
2957
|
+
description?: string | undefined;
|
|
2958
|
+
requireApproval?: boolean | undefined;
|
|
2959
|
+
inputSchema?: undefined;
|
|
2960
|
+
}>]>, "many">, ({
|
|
2961
|
+
type: "custom";
|
|
2962
|
+
id: string;
|
|
2963
|
+
requireApproval?: boolean | undefined;
|
|
2964
|
+
} | {
|
|
2965
|
+
type: "workflow";
|
|
2966
|
+
workflow: string;
|
|
2967
|
+
description?: string | undefined;
|
|
2968
|
+
requireApproval?: boolean | undefined;
|
|
2969
|
+
name?: string | undefined;
|
|
2970
|
+
allOutputs?: boolean | undefined;
|
|
2971
|
+
} | {
|
|
2972
|
+
type: "node";
|
|
2973
|
+
name: string;
|
|
2974
|
+
node: {
|
|
2975
|
+
nodeType: string;
|
|
2976
|
+
nodeTypeVersion: number;
|
|
2977
|
+
nodeParameters: Record<string, unknown>;
|
|
2978
|
+
credentials?: Record<string, {
|
|
2861
2979
|
id: string;
|
|
2980
|
+
name: string;
|
|
2862
2981
|
}> | undefined;
|
|
2863
2982
|
};
|
|
2864
2983
|
description?: string | undefined;
|
|
2865
2984
|
requireApproval?: boolean | undefined;
|
|
2866
2985
|
inputSchema?: undefined;
|
|
2867
|
-
}
|
|
2868
|
-
|
|
2986
|
+
})[], ({
|
|
2987
|
+
type: "custom";
|
|
2988
|
+
id: string;
|
|
2989
|
+
requireApproval?: boolean | undefined;
|
|
2990
|
+
} | {
|
|
2991
|
+
type: "workflow";
|
|
2992
|
+
workflow: string;
|
|
2993
|
+
description?: string | undefined;
|
|
2994
|
+
requireApproval?: boolean | undefined;
|
|
2995
|
+
name?: string | undefined;
|
|
2996
|
+
allOutputs?: boolean | undefined;
|
|
2997
|
+
} | {
|
|
2998
|
+
type: "node";
|
|
2999
|
+
name: string;
|
|
3000
|
+
node: {
|
|
3001
|
+
nodeType: string;
|
|
3002
|
+
nodeTypeVersion: number;
|
|
3003
|
+
nodeParameters?: Record<string, unknown> | undefined;
|
|
3004
|
+
credentials?: Record<string, {
|
|
3005
|
+
id: string;
|
|
3006
|
+
name: string;
|
|
3007
|
+
}> | undefined;
|
|
3008
|
+
};
|
|
3009
|
+
description?: string | undefined;
|
|
3010
|
+
requireApproval?: boolean | undefined;
|
|
3011
|
+
inputSchema?: undefined;
|
|
3012
|
+
})[]>>>;
|
|
3013
|
+
skills: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
2869
3014
|
type: z.ZodLiteral<"skill">;
|
|
2870
3015
|
id: z.ZodString;
|
|
2871
3016
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2874,7 +3019,13 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2874
3019
|
}, {
|
|
2875
3020
|
type: "skill";
|
|
2876
3021
|
id: string;
|
|
2877
|
-
}>, "many"
|
|
3022
|
+
}>, "many">, {
|
|
3023
|
+
type: "skill";
|
|
3024
|
+
id: string;
|
|
3025
|
+
}[], {
|
|
3026
|
+
type: "skill";
|
|
3027
|
+
id: string;
|
|
3028
|
+
}[]>>>;
|
|
2878
3029
|
tasks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2879
3030
|
type: z.ZodLiteral<"task">;
|
|
2880
3031
|
id: z.ZodString;
|
|
@@ -3118,13 +3269,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3118
3269
|
}>>;
|
|
3119
3270
|
toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
3120
3271
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
3121
|
-
nodeTools: z.ZodOptional<z.ZodObject<{
|
|
3122
|
-
enabled: z.ZodBoolean;
|
|
3123
|
-
}, "strip", z.ZodTypeAny, {
|
|
3124
|
-
enabled: boolean;
|
|
3125
|
-
}, {
|
|
3126
|
-
enabled: boolean;
|
|
3127
|
-
}>>;
|
|
3128
3272
|
}, "strip", z.ZodTypeAny, {
|
|
3129
3273
|
thinking?: {
|
|
3130
3274
|
provider: "anthropic" | "openai";
|
|
@@ -3138,9 +3282,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3138
3282
|
} | undefined;
|
|
3139
3283
|
toolCallConcurrency?: number | undefined;
|
|
3140
3284
|
maxIterations?: number | undefined;
|
|
3141
|
-
nodeTools?: {
|
|
3142
|
-
enabled: boolean;
|
|
3143
|
-
} | undefined;
|
|
3144
3285
|
}, {
|
|
3145
3286
|
thinking?: {
|
|
3146
3287
|
provider: "anthropic" | "openai";
|
|
@@ -3154,12 +3295,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3154
3295
|
} | undefined;
|
|
3155
3296
|
toolCallConcurrency?: number | undefined;
|
|
3156
3297
|
maxIterations?: number | undefined;
|
|
3157
|
-
nodeTools?: {
|
|
3158
|
-
enabled: boolean;
|
|
3159
|
-
} | undefined;
|
|
3160
3298
|
}>>>;
|
|
3161
3299
|
}, "strip", z.ZodTypeAny, {
|
|
3162
|
-
description?: string | undefined;
|
|
3163
3300
|
model?: string | undefined;
|
|
3164
3301
|
credential?: string | undefined;
|
|
3165
3302
|
name?: string | undefined;
|
|
@@ -3171,8 +3308,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3171
3308
|
type: "workflow";
|
|
3172
3309
|
workflow: string;
|
|
3173
3310
|
description?: string | undefined;
|
|
3174
|
-
name?: string | undefined;
|
|
3175
3311
|
requireApproval?: boolean | undefined;
|
|
3312
|
+
name?: string | undefined;
|
|
3176
3313
|
allOutputs?: boolean | undefined;
|
|
3177
3314
|
} | {
|
|
3178
3315
|
type: "node";
|
|
@@ -3182,8 +3319,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3182
3319
|
nodeTypeVersion: number;
|
|
3183
3320
|
nodeParameters: Record<string, unknown>;
|
|
3184
3321
|
credentials?: Record<string, {
|
|
3185
|
-
name: string;
|
|
3186
3322
|
id: string;
|
|
3323
|
+
name: string;
|
|
3187
3324
|
}> | undefined;
|
|
3188
3325
|
};
|
|
3189
3326
|
description?: string | undefined;
|
|
@@ -3231,6 +3368,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3231
3368
|
maxChildren?: number | undefined;
|
|
3232
3369
|
agents?: {
|
|
3233
3370
|
agentId: string;
|
|
3371
|
+
useWhen?: string | undefined;
|
|
3234
3372
|
}[] | undefined;
|
|
3235
3373
|
modelsByDifficulty?: {
|
|
3236
3374
|
low?: {
|
|
@@ -3309,12 +3447,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3309
3447
|
} | undefined;
|
|
3310
3448
|
toolCallConcurrency?: number | undefined;
|
|
3311
3449
|
maxIterations?: number | undefined;
|
|
3312
|
-
nodeTools?: {
|
|
3313
|
-
enabled: boolean;
|
|
3314
|
-
} | undefined;
|
|
3315
3450
|
} | undefined;
|
|
3316
3451
|
}, {
|
|
3317
|
-
description?: string | undefined;
|
|
3318
3452
|
model?: string | undefined;
|
|
3319
3453
|
credential?: string | undefined;
|
|
3320
3454
|
name?: string | undefined;
|
|
@@ -3326,8 +3460,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3326
3460
|
type: "workflow";
|
|
3327
3461
|
workflow: string;
|
|
3328
3462
|
description?: string | undefined;
|
|
3329
|
-
name?: string | undefined;
|
|
3330
3463
|
requireApproval?: boolean | undefined;
|
|
3464
|
+
name?: string | undefined;
|
|
3331
3465
|
allOutputs?: boolean | undefined;
|
|
3332
3466
|
} | {
|
|
3333
3467
|
type: "node";
|
|
@@ -3337,8 +3471,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3337
3471
|
nodeTypeVersion: number;
|
|
3338
3472
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
3339
3473
|
credentials?: Record<string, {
|
|
3340
|
-
name: string;
|
|
3341
3474
|
id: string;
|
|
3475
|
+
name: string;
|
|
3342
3476
|
}> | undefined;
|
|
3343
3477
|
};
|
|
3344
3478
|
description?: string | undefined;
|
|
@@ -3386,6 +3520,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3386
3520
|
maxChildren?: number | undefined;
|
|
3387
3521
|
agents?: {
|
|
3388
3522
|
agentId: string;
|
|
3523
|
+
useWhen?: string | undefined;
|
|
3389
3524
|
}[] | undefined;
|
|
3390
3525
|
modelsByDifficulty?: {
|
|
3391
3526
|
low?: {
|
|
@@ -3464,9 +3599,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3464
3599
|
} | undefined;
|
|
3465
3600
|
toolCallConcurrency?: number | undefined;
|
|
3466
3601
|
maxIterations?: number | undefined;
|
|
3467
|
-
nodeTools?: {
|
|
3468
|
-
enabled: boolean;
|
|
3469
|
-
} | undefined;
|
|
3470
3602
|
} | undefined;
|
|
3471
3603
|
}>;
|
|
3472
3604
|
export type AgentJsonConfig = z.infer<typeof AgentJsonConfigSchema>;
|
|
@@ -3502,5 +3634,4 @@ export declare function tryParseConfigJson(raw: string): {
|
|
|
3502
3634
|
errors: ConfigValidationError[];
|
|
3503
3635
|
};
|
|
3504
3636
|
export declare function formatZodErrors(error: ZodError): ConfigValidationError[];
|
|
3505
|
-
export declare function isNodeToolsEnabled(config: AgentJsonConfig['config']): boolean;
|
|
3506
3637
|
export {};
|