@n8n/api-types 1.36.2 → 1.37.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/agents/agent-config-validation.schema.d.ts +8 -0
- package/dist/agents/agent-config-validation.schema.js +1 -0
- package/dist/agents/agent-config-validation.schema.js.map +1 -1
- package/dist/agents/agent-integration.schema.d.ts +43 -0
- package/dist/agents/agent-integration.schema.js +18 -4
- package/dist/agents/agent-integration.schema.js.map +1 -1
- package/dist/agents/agent-interaction.schema.d.ts +5 -0
- package/dist/agents/agent-json-config.schema.d.ts +307 -0
- package/dist/agents/agent-json-config.schema.js +15 -1
- package/dist/agents/agent-json-config.schema.js.map +1 -1
- package/dist/agents/agent-task.schema.d.ts +3 -0
- package/dist/agents/agent-task.schema.js +2 -0
- package/dist/agents/agent-task.schema.js.map +1 -1
- package/dist/agents/dto.d.ts +26 -0
- package/dist/agents/dto.js +32 -1
- package/dist/agents/dto.js.map +1 -1
- package/dist/agents/index.d.ts +1 -0
- package/dist/agents/index.js +1 -0
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/inline-agent-config.schema.d.ts +276 -0
- package/dist/agents/sanitize-agent-tool-name.d.ts +1 -0
- package/dist/agents/sanitize-agent-tool-name.js +15 -0
- package/dist/agents/sanitize-agent-tool-name.js.map +1 -0
- package/dist/agents/slack/types.d.ts +3 -0
- package/dist/agents/types.d.ts +15 -93
- package/dist/agents/types.js +28 -17
- package/dist/agents/types.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/constants/role-mapping.d.ts +2 -0
- package/dist/constants/role-mapping.js +3 -1
- package/dist/constants/role-mapping.js.map +1 -1
- package/dist/dto/data-table/create-data-table.dto.d.ts +1 -1
- package/dist/dto/data-table/public-api-create-data-table.dto.d.ts +1 -1
- package/dist/dto/executions/delete-executions.dto.d.ts +13 -0
- package/dist/dto/executions/delete-executions.dto.js +13 -0
- package/dist/dto/executions/delete-executions.dto.js.map +1 -0
- package/dist/dto/git-connections/git-connections.dto.d.ts +331 -0
- package/dist/dto/git-connections/git-connections.dto.js +94 -0
- package/dist/dto/git-connections/git-connections.dto.js.map +1 -0
- package/dist/dto/index.d.ts +10 -3
- package/dist/dto/index.js +37 -4
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/packages/export-package-request.dto.d.ts +2 -0
- package/dist/dto/packages/export-package-request.dto.js +4 -0
- package/dist/dto/packages/export-package-request.dto.js.map +1 -1
- package/dist/dto/packages/import-package-request.dto.d.ts +5 -3
- package/dist/dto/packages/import-package-request.dto.js +3 -1
- package/dist/dto/packages/import-package-request.dto.js.map +1 -1
- package/dist/dto/roles/role-mapping-rule-public.dto.d.ts +84 -0
- package/dist/dto/roles/role-mapping-rule-public.dto.js +18 -3
- package/dist/dto/roles/role-mapping-rule-public.dto.js.map +1 -1
- package/dist/dto/roles/role-public.dto.d.ts +2 -2
- package/dist/dto/roles/update-role-mapping-rule-public.dto.d.ts +13 -0
- package/dist/dto/roles/update-role-mapping-rule-public.dto.js +13 -0
- package/dist/dto/roles/update-role-mapping-rule-public.dto.js.map +1 -0
- package/dist/dto/saml/saml-preferences.dto.d.ts +1 -1
- package/dist/dto/workflow-history/list-workflow-history-query.dto.d.ts +0 -2
- package/dist/dto/workflow-history/list-workflow-history-query.dto.js +1 -1
- package/dist/dto/workflow-history/list-workflow-history-query.dto.js.map +1 -1
- package/dist/dto/workflow-reviews/get-workflow-review-request-detail.dto.d.ts +1 -0
- package/dist/dto/workflow-reviews/list-workflow-review-requests-query.dto.d.ts +2 -2
- package/dist/dto/workflows/create-workflow-public.dto.d.ts +373 -0
- package/dist/dto/workflows/create-workflow-public.dto.js +167 -0
- package/dist/dto/workflows/create-workflow-public.dto.js.map +1 -0
- package/dist/dto/workflows/publish-workflow-public.dto.d.ts +27 -0
- package/dist/dto/workflows/publish-workflow-public.dto.js +23 -0
- package/dist/dto/workflows/publish-workflow-public.dto.js.map +1 -0
- package/dist/dto/workflows/transfer-workflow-public.dto.d.ts +9 -0
- package/dist/dto/workflows/transfer-workflow-public.dto.js +11 -0
- package/dist/dto/workflows/transfer-workflow-public.dto.js.map +1 -0
- package/dist/dto/workflows/workflow-public.dto.d.ts +1343 -0
- package/dist/dto/workflows/workflow-public.dto.js +40 -11
- package/dist/dto/workflows/workflow-public.dto.js.map +1 -1
- package/dist/dto/workflows/workflow-public.openapi.d.ts +217 -0
- package/dist/dto/workflows/workflow-public.openapi.js +390 -0
- package/dist/dto/workflows/workflow-public.openapi.js.map +1 -0
- package/dist/dto/workflows/workflow-publish-blocked-error-public.dto.d.ts +26 -0
- package/dist/dto/workflows/workflow-publish-blocked-error-public.dto.js +14 -0
- package/dist/dto/workflows/workflow-publish-blocked-error-public.dto.js.map +1 -0
- package/dist/frontend-settings.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/openapi-extend.d.ts +1 -0
- package/dist/openapi-extend.js +6 -0
- package/dist/openapi-extend.js.map +1 -0
- package/dist/push/execution.d.ts +27 -1
- package/dist/push/index.d.ts +1 -0
- package/dist/schemas/agent-evals.schema.d.ts +4 -4
- package/dist/schemas/agent-evals.schema.js +2 -9
- package/dist/schemas/agent-evals.schema.js.map +1 -1
- package/dist/schemas/agent-run-reducer.js +1 -0
- package/dist/schemas/agent-run-reducer.js.map +1 -1
- package/dist/schemas/instance-ai.schema.d.ts +333 -0
- package/dist/schemas/instance-ai.schema.js +18 -4
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/json-value.schema.d.ts +3 -0
- package/dist/schemas/json-value.schema.js +13 -0
- package/dist/schemas/json-value.schema.js.map +1 -0
- package/dist/schemas/mcp.schema.d.ts +1 -0
- package/dist/schemas/mcp.schema.js +4 -0
- package/dist/schemas/mcp.schema.js.map +1 -1
- package/dist/workflow-review-activity.d.ts +33 -6
- package/dist/workflow-review-activity.js +11 -6
- package/dist/workflow-review-activity.js.map +1 -1
- package/dist/zod-class.d.ts +4 -2
- package/dist/zod-class.js +3 -3
- package/dist/zod-class.js.map +1 -1
- package/package.json +5 -4
|
@@ -600,6 +600,22 @@ export declare const AgentVectorStoreConfigSchema: z.ZodDiscriminatedUnion<"prov
|
|
|
600
600
|
provider: "postgres";
|
|
601
601
|
tableName: string;
|
|
602
602
|
}>]>;
|
|
603
|
+
export declare const WorkflowToolInputFieldSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
604
|
+
mode: z.ZodLiteral<"ai">;
|
|
605
|
+
}, "strict", z.ZodTypeAny, {
|
|
606
|
+
mode: "ai";
|
|
607
|
+
}, {
|
|
608
|
+
mode: "ai";
|
|
609
|
+
}>, z.ZodObject<{
|
|
610
|
+
mode: z.ZodLiteral<"fixed">;
|
|
611
|
+
value: z.ZodType<import("n8n-workflow").JsonValue, z.ZodTypeDef, import("n8n-workflow").JsonValue>;
|
|
612
|
+
}, "strict", z.ZodTypeAny, {
|
|
613
|
+
mode: "fixed";
|
|
614
|
+
value: import("n8n-workflow").JsonValue;
|
|
615
|
+
}, {
|
|
616
|
+
mode: "fixed";
|
|
617
|
+
value: import("n8n-workflow").JsonValue;
|
|
618
|
+
}>]>;
|
|
603
619
|
export declare const WorkflowToolJsonConfigSchema: z.ZodObject<{
|
|
604
620
|
type: z.ZodLiteral<"workflow">;
|
|
605
621
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
@@ -608,6 +624,22 @@ export declare const WorkflowToolJsonConfigSchema: z.ZodObject<{
|
|
|
608
624
|
description: z.ZodOptional<z.ZodString>;
|
|
609
625
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
610
626
|
allOutputs: z.ZodOptional<z.ZodBoolean>;
|
|
627
|
+
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
628
|
+
mode: z.ZodLiteral<"ai">;
|
|
629
|
+
}, "strict", z.ZodTypeAny, {
|
|
630
|
+
mode: "ai";
|
|
631
|
+
}, {
|
|
632
|
+
mode: "ai";
|
|
633
|
+
}>, z.ZodObject<{
|
|
634
|
+
mode: z.ZodLiteral<"fixed">;
|
|
635
|
+
value: z.ZodType<import("n8n-workflow").JsonValue, z.ZodTypeDef, import("n8n-workflow").JsonValue>;
|
|
636
|
+
}, "strict", z.ZodTypeAny, {
|
|
637
|
+
mode: "fixed";
|
|
638
|
+
value: import("n8n-workflow").JsonValue;
|
|
639
|
+
}, {
|
|
640
|
+
mode: "fixed";
|
|
641
|
+
value: import("n8n-workflow").JsonValue;
|
|
642
|
+
}>]>>>;
|
|
611
643
|
}, "strict", z.ZodTypeAny, {
|
|
612
644
|
type: "workflow";
|
|
613
645
|
workflowId?: string | undefined;
|
|
@@ -616,6 +648,12 @@ export declare const WorkflowToolJsonConfigSchema: z.ZodObject<{
|
|
|
616
648
|
description?: string | undefined;
|
|
617
649
|
requireApproval?: boolean | undefined;
|
|
618
650
|
allOutputs?: boolean | undefined;
|
|
651
|
+
inputs?: Record<string, {
|
|
652
|
+
mode: "ai";
|
|
653
|
+
} | {
|
|
654
|
+
mode: "fixed";
|
|
655
|
+
value: import("n8n-workflow").JsonValue;
|
|
656
|
+
}> | undefined;
|
|
619
657
|
}, {
|
|
620
658
|
type: "workflow";
|
|
621
659
|
workflowId?: string | undefined;
|
|
@@ -624,6 +662,12 @@ export declare const WorkflowToolJsonConfigSchema: z.ZodObject<{
|
|
|
624
662
|
description?: string | undefined;
|
|
625
663
|
requireApproval?: boolean | undefined;
|
|
626
664
|
allOutputs?: boolean | undefined;
|
|
665
|
+
inputs?: Record<string, {
|
|
666
|
+
mode: "ai";
|
|
667
|
+
} | {
|
|
668
|
+
mode: "fixed";
|
|
669
|
+
value: import("n8n-workflow").JsonValue;
|
|
670
|
+
}> | undefined;
|
|
627
671
|
}>;
|
|
628
672
|
export declare const NodeToolJsonConfigSchema: z.ZodObject<{
|
|
629
673
|
type: z.ZodLiteral<"node">;
|
|
@@ -741,6 +785,22 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
741
785
|
description: z.ZodOptional<z.ZodString>;
|
|
742
786
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
743
787
|
allOutputs: z.ZodOptional<z.ZodBoolean>;
|
|
788
|
+
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
789
|
+
mode: z.ZodLiteral<"ai">;
|
|
790
|
+
}, "strict", z.ZodTypeAny, {
|
|
791
|
+
mode: "ai";
|
|
792
|
+
}, {
|
|
793
|
+
mode: "ai";
|
|
794
|
+
}>, z.ZodObject<{
|
|
795
|
+
mode: z.ZodLiteral<"fixed">;
|
|
796
|
+
value: z.ZodType<import("n8n-workflow").JsonValue, z.ZodTypeDef, import("n8n-workflow").JsonValue>;
|
|
797
|
+
}, "strict", z.ZodTypeAny, {
|
|
798
|
+
mode: "fixed";
|
|
799
|
+
value: import("n8n-workflow").JsonValue;
|
|
800
|
+
}, {
|
|
801
|
+
mode: "fixed";
|
|
802
|
+
value: import("n8n-workflow").JsonValue;
|
|
803
|
+
}>]>>>;
|
|
744
804
|
}, "strict", z.ZodTypeAny, {
|
|
745
805
|
type: "workflow";
|
|
746
806
|
workflowId?: string | undefined;
|
|
@@ -749,6 +809,12 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
749
809
|
description?: string | undefined;
|
|
750
810
|
requireApproval?: boolean | undefined;
|
|
751
811
|
allOutputs?: boolean | undefined;
|
|
812
|
+
inputs?: Record<string, {
|
|
813
|
+
mode: "ai";
|
|
814
|
+
} | {
|
|
815
|
+
mode: "fixed";
|
|
816
|
+
value: import("n8n-workflow").JsonValue;
|
|
817
|
+
}> | undefined;
|
|
752
818
|
}, {
|
|
753
819
|
type: "workflow";
|
|
754
820
|
workflowId?: string | undefined;
|
|
@@ -757,6 +823,12 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
757
823
|
description?: string | undefined;
|
|
758
824
|
requireApproval?: boolean | undefined;
|
|
759
825
|
allOutputs?: boolean | undefined;
|
|
826
|
+
inputs?: Record<string, {
|
|
827
|
+
mode: "ai";
|
|
828
|
+
} | {
|
|
829
|
+
mode: "fixed";
|
|
830
|
+
value: import("n8n-workflow").JsonValue;
|
|
831
|
+
}> | undefined;
|
|
760
832
|
}>, z.ZodObject<{
|
|
761
833
|
type: z.ZodLiteral<"node">;
|
|
762
834
|
name: z.ZodString;
|
|
@@ -1219,6 +1291,22 @@ export declare const AgentJsonConfigBaseSchema: z.ZodObject<{
|
|
|
1219
1291
|
description: z.ZodOptional<z.ZodString>;
|
|
1220
1292
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
1221
1293
|
allOutputs: z.ZodOptional<z.ZodBoolean>;
|
|
1294
|
+
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
1295
|
+
mode: z.ZodLiteral<"ai">;
|
|
1296
|
+
}, "strict", z.ZodTypeAny, {
|
|
1297
|
+
mode: "ai";
|
|
1298
|
+
}, {
|
|
1299
|
+
mode: "ai";
|
|
1300
|
+
}>, z.ZodObject<{
|
|
1301
|
+
mode: z.ZodLiteral<"fixed">;
|
|
1302
|
+
value: z.ZodType<import("n8n-workflow").JsonValue, z.ZodTypeDef, import("n8n-workflow").JsonValue>;
|
|
1303
|
+
}, "strict", z.ZodTypeAny, {
|
|
1304
|
+
mode: "fixed";
|
|
1305
|
+
value: import("n8n-workflow").JsonValue;
|
|
1306
|
+
}, {
|
|
1307
|
+
mode: "fixed";
|
|
1308
|
+
value: import("n8n-workflow").JsonValue;
|
|
1309
|
+
}>]>>>;
|
|
1222
1310
|
}, "strict", z.ZodTypeAny, {
|
|
1223
1311
|
type: "workflow";
|
|
1224
1312
|
workflowId?: string | undefined;
|
|
@@ -1227,6 +1315,12 @@ export declare const AgentJsonConfigBaseSchema: z.ZodObject<{
|
|
|
1227
1315
|
description?: string | undefined;
|
|
1228
1316
|
requireApproval?: boolean | undefined;
|
|
1229
1317
|
allOutputs?: boolean | undefined;
|
|
1318
|
+
inputs?: Record<string, {
|
|
1319
|
+
mode: "ai";
|
|
1320
|
+
} | {
|
|
1321
|
+
mode: "fixed";
|
|
1322
|
+
value: import("n8n-workflow").JsonValue;
|
|
1323
|
+
}> | undefined;
|
|
1230
1324
|
}, {
|
|
1231
1325
|
type: "workflow";
|
|
1232
1326
|
workflowId?: string | undefined;
|
|
@@ -1235,6 +1329,12 @@ export declare const AgentJsonConfigBaseSchema: z.ZodObject<{
|
|
|
1235
1329
|
description?: string | undefined;
|
|
1236
1330
|
requireApproval?: boolean | undefined;
|
|
1237
1331
|
allOutputs?: boolean | undefined;
|
|
1332
|
+
inputs?: Record<string, {
|
|
1333
|
+
mode: "ai";
|
|
1334
|
+
} | {
|
|
1335
|
+
mode: "fixed";
|
|
1336
|
+
value: import("n8n-workflow").JsonValue;
|
|
1337
|
+
}> | undefined;
|
|
1238
1338
|
}>, z.ZodObject<{
|
|
1239
1339
|
type: z.ZodLiteral<"node">;
|
|
1240
1340
|
name: z.ZodString;
|
|
@@ -1342,6 +1442,12 @@ export declare const AgentJsonConfigBaseSchema: z.ZodObject<{
|
|
|
1342
1442
|
description?: string | undefined;
|
|
1343
1443
|
requireApproval?: boolean | undefined;
|
|
1344
1444
|
allOutputs?: boolean | undefined;
|
|
1445
|
+
inputs?: Record<string, {
|
|
1446
|
+
mode: "ai";
|
|
1447
|
+
} | {
|
|
1448
|
+
mode: "fixed";
|
|
1449
|
+
value: import("n8n-workflow").JsonValue;
|
|
1450
|
+
}> | undefined;
|
|
1345
1451
|
} | {
|
|
1346
1452
|
type: "node";
|
|
1347
1453
|
name: string;
|
|
@@ -1373,6 +1479,12 @@ export declare const AgentJsonConfigBaseSchema: z.ZodObject<{
|
|
|
1373
1479
|
description?: string | undefined;
|
|
1374
1480
|
requireApproval?: boolean | undefined;
|
|
1375
1481
|
allOutputs?: boolean | undefined;
|
|
1482
|
+
inputs?: Record<string, {
|
|
1483
|
+
mode: "ai";
|
|
1484
|
+
} | {
|
|
1485
|
+
mode: "fixed";
|
|
1486
|
+
value: import("n8n-workflow").JsonValue;
|
|
1487
|
+
}> | undefined;
|
|
1376
1488
|
} | {
|
|
1377
1489
|
type: "node";
|
|
1378
1490
|
name: string;
|
|
@@ -1460,12 +1572,26 @@ export declare const AgentJsonConfigBaseSchema: z.ZodObject<{
|
|
|
1460
1572
|
}>, z.ZodObject<{
|
|
1461
1573
|
type: z.ZodLiteral<"slack">;
|
|
1462
1574
|
credentialId: z.ZodString;
|
|
1575
|
+
} & {
|
|
1576
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1577
|
+
messagingExperience: z.ZodEnum<["assistant", "agent"]>;
|
|
1578
|
+
}, "strict", z.ZodTypeAny, {
|
|
1579
|
+
messagingExperience: "agent" | "assistant";
|
|
1580
|
+
}, {
|
|
1581
|
+
messagingExperience: "agent" | "assistant";
|
|
1582
|
+
}>>;
|
|
1463
1583
|
}, "strip", z.ZodTypeAny, {
|
|
1464
1584
|
type: "slack";
|
|
1465
1585
|
credentialId: string;
|
|
1586
|
+
settings?: {
|
|
1587
|
+
messagingExperience: "agent" | "assistant";
|
|
1588
|
+
} | undefined;
|
|
1466
1589
|
}, {
|
|
1467
1590
|
type: "slack";
|
|
1468
1591
|
credentialId: string;
|
|
1592
|
+
settings?: {
|
|
1593
|
+
messagingExperience: "agent" | "assistant";
|
|
1594
|
+
} | undefined;
|
|
1469
1595
|
}>, z.ZodObject<{
|
|
1470
1596
|
type: z.ZodLiteral<"linear">;
|
|
1471
1597
|
credentialId: z.ZodString;
|
|
@@ -2019,6 +2145,12 @@ export declare const AgentJsonConfigBaseSchema: z.ZodObject<{
|
|
|
2019
2145
|
description?: string | undefined;
|
|
2020
2146
|
requireApproval?: boolean | undefined;
|
|
2021
2147
|
allOutputs?: boolean | undefined;
|
|
2148
|
+
inputs?: Record<string, {
|
|
2149
|
+
mode: "ai";
|
|
2150
|
+
} | {
|
|
2151
|
+
mode: "fixed";
|
|
2152
|
+
value: import("n8n-workflow").JsonValue;
|
|
2153
|
+
}> | undefined;
|
|
2022
2154
|
} | {
|
|
2023
2155
|
type: "node";
|
|
2024
2156
|
name: string;
|
|
@@ -2059,6 +2191,9 @@ export declare const AgentJsonConfigBaseSchema: z.ZodObject<{
|
|
|
2059
2191
|
} | {
|
|
2060
2192
|
type: "slack";
|
|
2061
2193
|
credentialId: string;
|
|
2194
|
+
settings?: {
|
|
2195
|
+
messagingExperience: "agent" | "assistant";
|
|
2196
|
+
} | undefined;
|
|
2062
2197
|
} | {
|
|
2063
2198
|
type: "linear";
|
|
2064
2199
|
credentialId: string;
|
|
@@ -2234,6 +2369,12 @@ export declare const AgentJsonConfigBaseSchema: z.ZodObject<{
|
|
|
2234
2369
|
description?: string | undefined;
|
|
2235
2370
|
requireApproval?: boolean | undefined;
|
|
2236
2371
|
allOutputs?: boolean | undefined;
|
|
2372
|
+
inputs?: Record<string, {
|
|
2373
|
+
mode: "ai";
|
|
2374
|
+
} | {
|
|
2375
|
+
mode: "fixed";
|
|
2376
|
+
value: import("n8n-workflow").JsonValue;
|
|
2377
|
+
}> | undefined;
|
|
2237
2378
|
} | {
|
|
2238
2379
|
type: "node";
|
|
2239
2380
|
name: string;
|
|
@@ -2274,6 +2415,9 @@ export declare const AgentJsonConfigBaseSchema: z.ZodObject<{
|
|
|
2274
2415
|
} | {
|
|
2275
2416
|
type: "slack";
|
|
2276
2417
|
credentialId: string;
|
|
2418
|
+
settings?: {
|
|
2419
|
+
messagingExperience: "agent" | "assistant";
|
|
2420
|
+
} | undefined;
|
|
2277
2421
|
} | {
|
|
2278
2422
|
type: "linear";
|
|
2279
2423
|
credentialId: string;
|
|
@@ -2732,6 +2876,22 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2732
2876
|
description: z.ZodOptional<z.ZodString>;
|
|
2733
2877
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
2734
2878
|
allOutputs: z.ZodOptional<z.ZodBoolean>;
|
|
2879
|
+
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
2880
|
+
mode: z.ZodLiteral<"ai">;
|
|
2881
|
+
}, "strict", z.ZodTypeAny, {
|
|
2882
|
+
mode: "ai";
|
|
2883
|
+
}, {
|
|
2884
|
+
mode: "ai";
|
|
2885
|
+
}>, z.ZodObject<{
|
|
2886
|
+
mode: z.ZodLiteral<"fixed">;
|
|
2887
|
+
value: z.ZodType<import("n8n-workflow").JsonValue, z.ZodTypeDef, import("n8n-workflow").JsonValue>;
|
|
2888
|
+
}, "strict", z.ZodTypeAny, {
|
|
2889
|
+
mode: "fixed";
|
|
2890
|
+
value: import("n8n-workflow").JsonValue;
|
|
2891
|
+
}, {
|
|
2892
|
+
mode: "fixed";
|
|
2893
|
+
value: import("n8n-workflow").JsonValue;
|
|
2894
|
+
}>]>>>;
|
|
2735
2895
|
}, "strict", z.ZodTypeAny, {
|
|
2736
2896
|
type: "workflow";
|
|
2737
2897
|
workflowId?: string | undefined;
|
|
@@ -2740,6 +2900,12 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2740
2900
|
description?: string | undefined;
|
|
2741
2901
|
requireApproval?: boolean | undefined;
|
|
2742
2902
|
allOutputs?: boolean | undefined;
|
|
2903
|
+
inputs?: Record<string, {
|
|
2904
|
+
mode: "ai";
|
|
2905
|
+
} | {
|
|
2906
|
+
mode: "fixed";
|
|
2907
|
+
value: import("n8n-workflow").JsonValue;
|
|
2908
|
+
}> | undefined;
|
|
2743
2909
|
}, {
|
|
2744
2910
|
type: "workflow";
|
|
2745
2911
|
workflowId?: string | undefined;
|
|
@@ -2748,6 +2914,12 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2748
2914
|
description?: string | undefined;
|
|
2749
2915
|
requireApproval?: boolean | undefined;
|
|
2750
2916
|
allOutputs?: boolean | undefined;
|
|
2917
|
+
inputs?: Record<string, {
|
|
2918
|
+
mode: "ai";
|
|
2919
|
+
} | {
|
|
2920
|
+
mode: "fixed";
|
|
2921
|
+
value: import("n8n-workflow").JsonValue;
|
|
2922
|
+
}> | undefined;
|
|
2751
2923
|
}>, z.ZodObject<{
|
|
2752
2924
|
type: z.ZodLiteral<"node">;
|
|
2753
2925
|
name: z.ZodString;
|
|
@@ -2855,6 +3027,12 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2855
3027
|
description?: string | undefined;
|
|
2856
3028
|
requireApproval?: boolean | undefined;
|
|
2857
3029
|
allOutputs?: boolean | undefined;
|
|
3030
|
+
inputs?: Record<string, {
|
|
3031
|
+
mode: "ai";
|
|
3032
|
+
} | {
|
|
3033
|
+
mode: "fixed";
|
|
3034
|
+
value: import("n8n-workflow").JsonValue;
|
|
3035
|
+
}> | undefined;
|
|
2858
3036
|
} | {
|
|
2859
3037
|
type: "node";
|
|
2860
3038
|
name: string;
|
|
@@ -2886,6 +3064,12 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2886
3064
|
description?: string | undefined;
|
|
2887
3065
|
requireApproval?: boolean | undefined;
|
|
2888
3066
|
allOutputs?: boolean | undefined;
|
|
3067
|
+
inputs?: Record<string, {
|
|
3068
|
+
mode: "ai";
|
|
3069
|
+
} | {
|
|
3070
|
+
mode: "fixed";
|
|
3071
|
+
value: import("n8n-workflow").JsonValue;
|
|
3072
|
+
}> | undefined;
|
|
2889
3073
|
} | {
|
|
2890
3074
|
type: "node";
|
|
2891
3075
|
name: string;
|
|
@@ -2973,12 +3157,26 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2973
3157
|
}>, z.ZodObject<{
|
|
2974
3158
|
type: z.ZodLiteral<"slack">;
|
|
2975
3159
|
credentialId: z.ZodString;
|
|
3160
|
+
} & {
|
|
3161
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
3162
|
+
messagingExperience: z.ZodEnum<["assistant", "agent"]>;
|
|
3163
|
+
}, "strict", z.ZodTypeAny, {
|
|
3164
|
+
messagingExperience: "agent" | "assistant";
|
|
3165
|
+
}, {
|
|
3166
|
+
messagingExperience: "agent" | "assistant";
|
|
3167
|
+
}>>;
|
|
2976
3168
|
}, "strip", z.ZodTypeAny, {
|
|
2977
3169
|
type: "slack";
|
|
2978
3170
|
credentialId: string;
|
|
3171
|
+
settings?: {
|
|
3172
|
+
messagingExperience: "agent" | "assistant";
|
|
3173
|
+
} | undefined;
|
|
2979
3174
|
}, {
|
|
2980
3175
|
type: "slack";
|
|
2981
3176
|
credentialId: string;
|
|
3177
|
+
settings?: {
|
|
3178
|
+
messagingExperience: "agent" | "assistant";
|
|
3179
|
+
} | undefined;
|
|
2982
3180
|
}>, z.ZodObject<{
|
|
2983
3181
|
type: z.ZodLiteral<"linear">;
|
|
2984
3182
|
credentialId: z.ZodString;
|
|
@@ -3532,6 +3730,12 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3532
3730
|
description?: string | undefined;
|
|
3533
3731
|
requireApproval?: boolean | undefined;
|
|
3534
3732
|
allOutputs?: boolean | undefined;
|
|
3733
|
+
inputs?: Record<string, {
|
|
3734
|
+
mode: "ai";
|
|
3735
|
+
} | {
|
|
3736
|
+
mode: "fixed";
|
|
3737
|
+
value: import("n8n-workflow").JsonValue;
|
|
3738
|
+
}> | undefined;
|
|
3535
3739
|
} | {
|
|
3536
3740
|
type: "node";
|
|
3537
3741
|
name: string;
|
|
@@ -3572,6 +3776,9 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3572
3776
|
} | {
|
|
3573
3777
|
type: "slack";
|
|
3574
3778
|
credentialId: string;
|
|
3779
|
+
settings?: {
|
|
3780
|
+
messagingExperience: "agent" | "assistant";
|
|
3781
|
+
} | undefined;
|
|
3575
3782
|
} | {
|
|
3576
3783
|
type: "linear";
|
|
3577
3784
|
credentialId: string;
|
|
@@ -3747,6 +3954,12 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3747
3954
|
description?: string | undefined;
|
|
3748
3955
|
requireApproval?: boolean | undefined;
|
|
3749
3956
|
allOutputs?: boolean | undefined;
|
|
3957
|
+
inputs?: Record<string, {
|
|
3958
|
+
mode: "ai";
|
|
3959
|
+
} | {
|
|
3960
|
+
mode: "fixed";
|
|
3961
|
+
value: import("n8n-workflow").JsonValue;
|
|
3962
|
+
}> | undefined;
|
|
3750
3963
|
} | {
|
|
3751
3964
|
type: "node";
|
|
3752
3965
|
name: string;
|
|
@@ -3787,6 +4000,9 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3787
4000
|
} | {
|
|
3788
4001
|
type: "slack";
|
|
3789
4002
|
credentialId: string;
|
|
4003
|
+
settings?: {
|
|
4004
|
+
messagingExperience: "agent" | "assistant";
|
|
4005
|
+
} | undefined;
|
|
3790
4006
|
} | {
|
|
3791
4007
|
type: "linear";
|
|
3792
4008
|
credentialId: string;
|
|
@@ -3962,6 +4178,12 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3962
4178
|
description?: string | undefined;
|
|
3963
4179
|
requireApproval?: boolean | undefined;
|
|
3964
4180
|
allOutputs?: boolean | undefined;
|
|
4181
|
+
inputs?: Record<string, {
|
|
4182
|
+
mode: "ai";
|
|
4183
|
+
} | {
|
|
4184
|
+
mode: "fixed";
|
|
4185
|
+
value: import("n8n-workflow").JsonValue;
|
|
4186
|
+
}> | undefined;
|
|
3965
4187
|
} | {
|
|
3966
4188
|
type: "node";
|
|
3967
4189
|
name: string;
|
|
@@ -4002,6 +4224,9 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4002
4224
|
} | {
|
|
4003
4225
|
type: "slack";
|
|
4004
4226
|
credentialId: string;
|
|
4227
|
+
settings?: {
|
|
4228
|
+
messagingExperience: "agent" | "assistant";
|
|
4229
|
+
} | undefined;
|
|
4005
4230
|
} | {
|
|
4006
4231
|
type: "linear";
|
|
4007
4232
|
credentialId: string;
|
|
@@ -4177,6 +4402,12 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4177
4402
|
description?: string | undefined;
|
|
4178
4403
|
requireApproval?: boolean | undefined;
|
|
4179
4404
|
allOutputs?: boolean | undefined;
|
|
4405
|
+
inputs?: Record<string, {
|
|
4406
|
+
mode: "ai";
|
|
4407
|
+
} | {
|
|
4408
|
+
mode: "fixed";
|
|
4409
|
+
value: import("n8n-workflow").JsonValue;
|
|
4410
|
+
}> | undefined;
|
|
4180
4411
|
} | {
|
|
4181
4412
|
type: "node";
|
|
4182
4413
|
name: string;
|
|
@@ -4217,6 +4448,9 @@ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4217
4448
|
} | {
|
|
4218
4449
|
type: "slack";
|
|
4219
4450
|
credentialId: string;
|
|
4451
|
+
settings?: {
|
|
4452
|
+
messagingExperience: "agent" | "assistant";
|
|
4453
|
+
} | undefined;
|
|
4220
4454
|
} | {
|
|
4221
4455
|
type: "linear";
|
|
4222
4456
|
credentialId: string;
|
|
@@ -4673,6 +4907,22 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
4673
4907
|
description: z.ZodOptional<z.ZodString>;
|
|
4674
4908
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
4675
4909
|
allOutputs: z.ZodOptional<z.ZodBoolean>;
|
|
4910
|
+
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
4911
|
+
mode: z.ZodLiteral<"ai">;
|
|
4912
|
+
}, "strict", z.ZodTypeAny, {
|
|
4913
|
+
mode: "ai";
|
|
4914
|
+
}, {
|
|
4915
|
+
mode: "ai";
|
|
4916
|
+
}>, z.ZodObject<{
|
|
4917
|
+
mode: z.ZodLiteral<"fixed">;
|
|
4918
|
+
value: z.ZodType<import("n8n-workflow").JsonValue, z.ZodTypeDef, import("n8n-workflow").JsonValue>;
|
|
4919
|
+
}, "strict", z.ZodTypeAny, {
|
|
4920
|
+
mode: "fixed";
|
|
4921
|
+
value: import("n8n-workflow").JsonValue;
|
|
4922
|
+
}, {
|
|
4923
|
+
mode: "fixed";
|
|
4924
|
+
value: import("n8n-workflow").JsonValue;
|
|
4925
|
+
}>]>>>;
|
|
4676
4926
|
}, "strict", z.ZodTypeAny, {
|
|
4677
4927
|
type: "workflow";
|
|
4678
4928
|
workflowId?: string | undefined;
|
|
@@ -4681,6 +4931,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
4681
4931
|
description?: string | undefined;
|
|
4682
4932
|
requireApproval?: boolean | undefined;
|
|
4683
4933
|
allOutputs?: boolean | undefined;
|
|
4934
|
+
inputs?: Record<string, {
|
|
4935
|
+
mode: "ai";
|
|
4936
|
+
} | {
|
|
4937
|
+
mode: "fixed";
|
|
4938
|
+
value: import("n8n-workflow").JsonValue;
|
|
4939
|
+
}> | undefined;
|
|
4684
4940
|
}, {
|
|
4685
4941
|
type: "workflow";
|
|
4686
4942
|
workflowId?: string | undefined;
|
|
@@ -4689,6 +4945,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
4689
4945
|
description?: string | undefined;
|
|
4690
4946
|
requireApproval?: boolean | undefined;
|
|
4691
4947
|
allOutputs?: boolean | undefined;
|
|
4948
|
+
inputs?: Record<string, {
|
|
4949
|
+
mode: "ai";
|
|
4950
|
+
} | {
|
|
4951
|
+
mode: "fixed";
|
|
4952
|
+
value: import("n8n-workflow").JsonValue;
|
|
4953
|
+
}> | undefined;
|
|
4692
4954
|
}>, z.ZodObject<{
|
|
4693
4955
|
type: z.ZodLiteral<"node">;
|
|
4694
4956
|
name: z.ZodString;
|
|
@@ -4796,6 +5058,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
4796
5058
|
description?: string | undefined;
|
|
4797
5059
|
requireApproval?: boolean | undefined;
|
|
4798
5060
|
allOutputs?: boolean | undefined;
|
|
5061
|
+
inputs?: Record<string, {
|
|
5062
|
+
mode: "ai";
|
|
5063
|
+
} | {
|
|
5064
|
+
mode: "fixed";
|
|
5065
|
+
value: import("n8n-workflow").JsonValue;
|
|
5066
|
+
}> | undefined;
|
|
4799
5067
|
} | {
|
|
4800
5068
|
type: "node";
|
|
4801
5069
|
name: string;
|
|
@@ -4827,6 +5095,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
4827
5095
|
description?: string | undefined;
|
|
4828
5096
|
requireApproval?: boolean | undefined;
|
|
4829
5097
|
allOutputs?: boolean | undefined;
|
|
5098
|
+
inputs?: Record<string, {
|
|
5099
|
+
mode: "ai";
|
|
5100
|
+
} | {
|
|
5101
|
+
mode: "fixed";
|
|
5102
|
+
value: import("n8n-workflow").JsonValue;
|
|
5103
|
+
}> | undefined;
|
|
4830
5104
|
} | {
|
|
4831
5105
|
type: "node";
|
|
4832
5106
|
name: string;
|
|
@@ -4914,12 +5188,26 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
4914
5188
|
}>, z.ZodObject<{
|
|
4915
5189
|
type: z.ZodLiteral<"slack">;
|
|
4916
5190
|
credentialId: z.ZodString;
|
|
5191
|
+
} & {
|
|
5192
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
5193
|
+
messagingExperience: z.ZodEnum<["assistant", "agent"]>;
|
|
5194
|
+
}, "strict", z.ZodTypeAny, {
|
|
5195
|
+
messagingExperience: "agent" | "assistant";
|
|
5196
|
+
}, {
|
|
5197
|
+
messagingExperience: "agent" | "assistant";
|
|
5198
|
+
}>>;
|
|
4917
5199
|
}, "strip", z.ZodTypeAny, {
|
|
4918
5200
|
type: "slack";
|
|
4919
5201
|
credentialId: string;
|
|
5202
|
+
settings?: {
|
|
5203
|
+
messagingExperience: "agent" | "assistant";
|
|
5204
|
+
} | undefined;
|
|
4920
5205
|
}, {
|
|
4921
5206
|
type: "slack";
|
|
4922
5207
|
credentialId: string;
|
|
5208
|
+
settings?: {
|
|
5209
|
+
messagingExperience: "agent" | "assistant";
|
|
5210
|
+
} | undefined;
|
|
4923
5211
|
}>, z.ZodObject<{
|
|
4924
5212
|
type: z.ZodLiteral<"linear">;
|
|
4925
5213
|
credentialId: z.ZodString;
|
|
@@ -5474,6 +5762,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
5474
5762
|
description?: string | undefined;
|
|
5475
5763
|
requireApproval?: boolean | undefined;
|
|
5476
5764
|
allOutputs?: boolean | undefined;
|
|
5765
|
+
inputs?: Record<string, {
|
|
5766
|
+
mode: "ai";
|
|
5767
|
+
} | {
|
|
5768
|
+
mode: "fixed";
|
|
5769
|
+
value: import("n8n-workflow").JsonValue;
|
|
5770
|
+
}> | undefined;
|
|
5477
5771
|
} | {
|
|
5478
5772
|
type: "node";
|
|
5479
5773
|
name: string;
|
|
@@ -5514,6 +5808,9 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
5514
5808
|
} | {
|
|
5515
5809
|
type: "slack";
|
|
5516
5810
|
credentialId: string;
|
|
5811
|
+
settings?: {
|
|
5812
|
+
messagingExperience: "agent" | "assistant";
|
|
5813
|
+
} | undefined;
|
|
5517
5814
|
} | {
|
|
5518
5815
|
type: "linear";
|
|
5519
5816
|
credentialId: string;
|
|
@@ -5689,6 +5986,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
5689
5986
|
description?: string | undefined;
|
|
5690
5987
|
requireApproval?: boolean | undefined;
|
|
5691
5988
|
allOutputs?: boolean | undefined;
|
|
5989
|
+
inputs?: Record<string, {
|
|
5990
|
+
mode: "ai";
|
|
5991
|
+
} | {
|
|
5992
|
+
mode: "fixed";
|
|
5993
|
+
value: import("n8n-workflow").JsonValue;
|
|
5994
|
+
}> | undefined;
|
|
5692
5995
|
} | {
|
|
5693
5996
|
type: "node";
|
|
5694
5997
|
name: string;
|
|
@@ -5729,6 +6032,9 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
5729
6032
|
} | {
|
|
5730
6033
|
type: "slack";
|
|
5731
6034
|
credentialId: string;
|
|
6035
|
+
settings?: {
|
|
6036
|
+
messagingExperience: "agent" | "assistant";
|
|
6037
|
+
} | undefined;
|
|
5732
6038
|
} | {
|
|
5733
6039
|
type: "linear";
|
|
5734
6040
|
credentialId: string;
|
|
@@ -5829,6 +6135,7 @@ export type AgentJsonToolConfig = z.infer<typeof AgentJsonToolConfigSchema>;
|
|
|
5829
6135
|
export type AgentJsonWorkflowToolConfig = Extract<AgentJsonToolConfig, {
|
|
5830
6136
|
type: 'workflow';
|
|
5831
6137
|
}>;
|
|
6138
|
+
export type AgentJsonWorkflowToolInputField = NonNullable<AgentJsonWorkflowToolConfig['inputs']>[string];
|
|
5832
6139
|
export type AgentJsonNodeToolConfig = Extract<AgentJsonToolConfig, {
|
|
5833
6140
|
type: 'node';
|
|
5834
6141
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RunnableAgentJsonConfigSchema = exports.AgentJsonConfigSchema = exports.AgentJsonConfigBaseSchema = exports.NodeToolJsonConfigSchema = exports.WorkflowToolJsonConfigSchema = exports.AgentVectorStoreConfigSchema = exports.VECTOR_STORE_NAME_REGEX = exports.VECTOR_STORE_USE_WHEN_MAX_LENGTH = exports.AGENT_VECTOR_STORE_CREDENTIAL_TYPES = exports.AGENT_VECTOR_STORE_PROVIDERS = exports.McpServerConfigSchema = exports.McpAuthenticationSchemaTypes = exports.NodeConfigSchema = exports.DraftAgentModelSchema = exports.SUB_AGENT_TASK_DIFFICULTIES = exports.SUB_AGENT_USE_WHEN_MAX_LENGTH = exports.DEFAULT_AGENT_PERSONALISATION = exports.PromptCachingConfigSchema = exports.AgentModelSchema = exports.MANAGED_CREDENTIAL_TOKEN = exports.CUSTOM_TOOL_ID_REGEX = void 0;
|
|
3
|
+
exports.RunnableAgentJsonConfigSchema = exports.AgentJsonConfigSchema = exports.AgentJsonConfigBaseSchema = exports.NodeToolJsonConfigSchema = exports.WorkflowToolJsonConfigSchema = exports.WorkflowToolInputFieldSchema = exports.AgentVectorStoreConfigSchema = exports.VECTOR_STORE_NAME_REGEX = exports.VECTOR_STORE_USE_WHEN_MAX_LENGTH = exports.AGENT_VECTOR_STORE_CREDENTIAL_TYPES = exports.AGENT_VECTOR_STORE_PROVIDERS = exports.McpServerConfigSchema = exports.McpAuthenticationSchemaTypes = exports.NodeConfigSchema = exports.DraftAgentModelSchema = exports.SUB_AGENT_TASK_DIFFICULTIES = exports.SUB_AGENT_USE_WHEN_MAX_LENGTH = exports.DEFAULT_AGENT_PERSONALISATION = exports.PromptCachingConfigSchema = exports.AgentModelSchema = exports.MANAGED_CREDENTIAL_TOKEN = exports.CUSTOM_TOOL_ID_REGEX = void 0;
|
|
4
4
|
exports.tryParseConfigJson = tryParseConfigJson;
|
|
5
5
|
exports.findVectorStoreToolNameCollisions = findVectorStoreToolNameCollisions;
|
|
6
6
|
exports.formatZodErrors = formatZodErrors;
|
|
@@ -12,6 +12,7 @@ const model_providers_1 = require("./model-providers");
|
|
|
12
12
|
const reasoning_1 = require("./reasoning");
|
|
13
13
|
exports.CUSTOM_TOOL_ID_REGEX = /^[A-Za-z0-9_]+$/;
|
|
14
14
|
const sub_agent_schema_1 = require("./sub-agent.schema");
|
|
15
|
+
const json_value_schema_1 = require("../schemas/json-value.schema");
|
|
15
16
|
exports.MANAGED_CREDENTIAL_TOKEN = 'managed';
|
|
16
17
|
exports.AgentModelSchema = zod_1.z.string().min(1).regex(model_providers_1.AGENT_MODEL_STRING_REGEX, 'Model must be "provider/model-name" format (e.g. "anthropic/claude-sonnet-4-5" or "openrouter/amazon/nova-micro-v1")');
|
|
17
18
|
const CredentialIdSchema = zod_1.z.string().trim();
|
|
@@ -305,6 +306,15 @@ const CustomToolJsonConfigSchema = zod_1.z.object({
|
|
|
305
306
|
.regex(exports.CUSTOM_TOOL_ID_REGEX, 'Custom tool id can only contain letters, numbers, and underscores'),
|
|
306
307
|
requireApproval: zod_1.z.boolean().optional(),
|
|
307
308
|
});
|
|
309
|
+
exports.WorkflowToolInputFieldSchema = zod_1.z.discriminatedUnion('mode', [
|
|
310
|
+
zod_1.z.object({ mode: zod_1.z.literal('ai') }).strict(),
|
|
311
|
+
zod_1.z
|
|
312
|
+
.object({
|
|
313
|
+
mode: zod_1.z.literal('fixed'),
|
|
314
|
+
value: json_value_schema_1.jsonValueSchema,
|
|
315
|
+
})
|
|
316
|
+
.strict(),
|
|
317
|
+
]);
|
|
308
318
|
exports.WorkflowToolJsonConfigSchema = zod_1.z
|
|
309
319
|
.object({
|
|
310
320
|
type: zod_1.z.literal('workflow'),
|
|
@@ -317,6 +327,10 @@ exports.WorkflowToolJsonConfigSchema = zod_1.z
|
|
|
317
327
|
.boolean()
|
|
318
328
|
.optional()
|
|
319
329
|
.describe('Whether to return all node outputs instead of just the last node'),
|
|
330
|
+
inputs: zod_1.z
|
|
331
|
+
.record(zod_1.z.string(), exports.WorkflowToolInputFieldSchema)
|
|
332
|
+
.optional()
|
|
333
|
+
.describe('Optional per-field bindings for Execute Workflow Trigger inputs. Missing keys default to AI-determined.'),
|
|
320
334
|
})
|
|
321
335
|
.strict();
|
|
322
336
|
exports.NodeToolJsonConfigSchema = zod_1.z
|