@n8n/api-types 1.32.2 → 1.34.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-tool-node-types.d.ts +0 -1
- package/dist/agent-builder-tool-node-types.js +9 -7
- package/dist/agent-builder-tool-node-types.js.map +1 -1
- package/dist/agent-sse.d.ts +42 -0
- package/dist/agents/agent-chat-attachments.constants.d.ts +6 -0
- package/dist/agents/agent-chat-attachments.constants.js +10 -0
- package/dist/agents/agent-chat-attachments.constants.js.map +1 -0
- package/dist/agents/agent-config-lifecycle.d.ts +6 -0
- package/dist/agents/agent-config-lifecycle.js +11 -0
- package/dist/agents/agent-config-lifecycle.js.map +1 -0
- package/dist/agents/agent-config-validation.schema.d.ts +16 -16
- 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-interaction.schema.js.map +1 -1
- package/dist/agents/agent-json-config.schema.d.ts +471 -140
- package/dist/agents/agent-json-config.schema.js +34 -20
- package/dist/agents/agent-json-config.schema.js.map +1 -1
- package/dist/agents/agent-node-tool-operations.d.ts +1 -0
- package/dist/agents/agent-node-tool-operations.js +8 -0
- package/dist/agents/agent-node-tool-operations.js.map +1 -0
- package/dist/agents/agent-personalisation.d.ts +6 -0
- package/dist/agents/agent-personalisation.js +79 -0
- package/dist/agents/agent-personalisation.js.map +1 -0
- package/dist/agents/agent-task.schema.js +5 -1
- package/dist/agents/agent-task.schema.js.map +1 -1
- package/dist/agents/child-trace.d.ts +5 -0
- package/dist/agents/child-trace.js +67 -0
- package/dist/agents/child-trace.js.map +1 -0
- package/dist/agents/dto.d.ts +125 -0
- package/dist/agents/dto.js +47 -5
- package/dist/agents/dto.js.map +1 -1
- package/dist/agents/index.d.ts +8 -2
- package/dist/agents/index.js +7 -2
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/inline-agent-config.schema.d.ts +18 -58
- package/dist/agents/inline-agent-config.schema.js +2 -2
- package/dist/agents/inline-agent-config.schema.js.map +1 -1
- package/dist/agents/model-providers.d.ts +19 -1
- package/dist/agents/model-providers.js +21 -1
- package/dist/agents/model-providers.js.map +1 -1
- package/dist/agents/provider-capabilities.d.ts +7 -0
- package/dist/agents/provider-capabilities.js +68 -7
- package/dist/agents/provider-capabilities.js.map +1 -1
- package/dist/agents/reasoning.d.ts +2 -0
- package/dist/agents/reasoning.js +5 -0
- package/dist/agents/reasoning.js.map +1 -0
- package/dist/agents/sanitize-agent-json-config.js +2 -2
- package/dist/agents/sanitize-agent-json-config.js.map +1 -1
- package/dist/agents/types.d.ts +26 -2
- package/dist/agents/types.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/constants/role-mapping.d.ts +1 -0
- package/dist/constants/role-mapping.js +5 -0
- package/dist/constants/role-mapping.js.map +1 -0
- package/dist/dto/credentials/create-credential.dto.d.ts +2 -0
- package/dist/dto/credentials/create-credential.dto.js +1 -0
- package/dist/dto/credentials/create-credential.dto.js.map +1 -1
- package/dist/dto/index.d.ts +16 -2
- package/dist/dto/index.js +31 -5
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/ldap/ldap-configuration-response.dto.d.ts +2 -0
- package/dist/dto/ldap/ldap-configuration-response.dto.js +3 -0
- package/dist/dto/ldap/ldap-configuration-response.dto.js.map +1 -0
- package/dist/dto/ldap/ldap-configuration.dto.d.ts +47 -0
- package/dist/dto/ldap/ldap-configuration.dto.js +31 -0
- package/dist/dto/ldap/ldap-configuration.dto.js.map +1 -0
- package/dist/dto/ldap/ldap-sync.dto.d.ts +9 -0
- package/dist/dto/ldap/ldap-sync.dto.js +9 -0
- package/dist/dto/ldap/ldap-sync.dto.js.map +1 -0
- package/dist/dto/oidc/config.dto.d.ts +35 -0
- package/dist/dto/oidc/config.dto.js +11 -1
- package/dist/dto/oidc/config.dto.js.map +1 -1
- package/dist/dto/otel/{test-otel-connection.dto.d.ts → test-otel-trace.dto.d.ts} +2 -2
- package/dist/dto/otel/{test-otel-connection.dto.js → test-otel-trace.dto.js} +4 -4
- package/dist/dto/otel/test-otel-trace.dto.js.map +1 -0
- package/dist/dto/packages/export-package-request.dto.d.ts +2 -0
- package/dist/dto/packages/export-package-request.dto.js +1 -0
- package/dist/dto/packages/export-package-request.dto.js.map +1 -1
- package/dist/dto/packages/import-package-request.dto.d.ts +20 -10
- package/dist/dto/packages/import-package-request.dto.js +21 -21
- package/dist/dto/packages/import-package-request.dto.js.map +1 -1
- package/dist/dto/provisioning/config.dto.d.ts +4 -0
- package/dist/dto/provisioning/config.dto.js +2 -0
- package/dist/dto/provisioning/config.dto.js.map +1 -1
- package/dist/dto/roles/role-delete-query.dto.d.ts +9 -0
- package/dist/dto/roles/role-delete-query.dto.js +11 -0
- package/dist/dto/roles/role-delete-query.dto.js.map +1 -0
- package/dist/dto/source-control/push-work-folder-request.dto.d.ts +22 -0
- package/dist/dto/workflow-history/list-workflow-history-query.dto.d.ts +13 -0
- package/dist/dto/workflow-history/list-workflow-history-query.dto.js +13 -0
- package/dist/dto/workflow-history/list-workflow-history-query.dto.js.map +1 -0
- package/dist/dto/workflow-history/workflow-history-list-item.dto.d.ts +51 -0
- package/dist/dto/workflow-history/workflow-history-list-item.dto.js +19 -0
- package/dist/dto/workflow-history/workflow-history-list-item.dto.js.map +1 -0
- package/dist/dto/workflow-history/workflow-version-history-public.dto.d.ts +70 -0
- package/dist/dto/workflow-history/workflow-version-history-public.dto.js +16 -0
- package/dist/dto/workflow-history/workflow-version-history-public.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/create-workflow-review-request.dto.d.ts +27 -0
- package/dist/dto/workflow-reviews/create-workflow-review-request.dto.js +20 -0
- package/dist/dto/workflow-reviews/create-workflow-review-request.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/decide-workflow-review-request.dto.d.ts +8 -0
- package/dist/dto/workflow-reviews/decide-workflow-review-request.dto.js +11 -0
- package/dist/dto/workflow-reviews/decide-workflow-review-request.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/get-eligible-reviewers-query.dto.d.ts +8 -0
- package/dist/dto/workflow-reviews/get-eligible-reviewers-query.dto.js +11 -0
- package/dist/dto/workflow-reviews/get-eligible-reviewers-query.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/get-workflow-review-request-detail.dto.d.ts +21 -0
- package/dist/dto/workflow-reviews/get-workflow-review-request-detail.dto.js +3 -0
- package/dist/dto/workflow-reviews/get-workflow-review-request-detail.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/list-workflow-review-inbox.dto.d.ts +31 -0
- package/dist/dto/workflow-reviews/list-workflow-review-inbox.dto.js +14 -0
- package/dist/dto/workflow-reviews/list-workflow-review-inbox.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/list-workflow-review-requests-query.dto.d.ts +25 -0
- package/dist/dto/workflow-reviews/list-workflow-review-requests-query.dto.js +15 -0
- package/dist/dto/workflow-reviews/list-workflow-review-requests-query.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.d.ts +10 -0
- package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.js +12 -0
- package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.js.map +1 -0
- package/dist/frontend-settings.d.ts +3 -0
- package/dist/index.d.ts +13 -6
- package/dist/index.js +41 -6
- package/dist/index.js.map +1 -1
- package/dist/push/index.d.ts +2 -1
- package/dist/push/workflow-review.d.ts +7 -0
- package/dist/push/workflow-review.js +3 -0
- package/dist/push/workflow-review.js.map +1 -0
- package/dist/schemas/agent-evals.schema.d.ts +343 -0
- package/dist/schemas/agent-evals.schema.js +84 -0
- package/dist/schemas/agent-evals.schema.js.map +1 -0
- package/dist/schemas/agent-run-reducer.js +1 -1
- package/dist/schemas/agent-run-reducer.js.map +1 -1
- package/dist/schemas/breaking-changes.schema.d.ts +57 -0
- package/dist/schemas/breaking-changes.schema.js +9 -0
- package/dist/schemas/breaking-changes.schema.js.map +1 -1
- package/dist/schemas/eval-collections.schema.d.ts +10 -1
- package/dist/schemas/eval-collections.schema.js +58 -4
- package/dist/schemas/eval-collections.schema.js.map +1 -1
- package/dist/schemas/eval-insights.schema.js +14 -10
- package/dist/schemas/eval-insights.schema.js.map +1 -1
- package/dist/schemas/id.schema.d.ts +2 -0
- package/dist/schemas/id.schema.js +6 -0
- package/dist/schemas/id.schema.js.map +1 -0
- package/dist/schemas/instance-ai.schema.d.ts +136 -9
- package/dist/schemas/instance-ai.schema.js +46 -12
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/mcp.schema.d.ts +3 -1
- package/dist/schemas/mcp.schema.js +4 -1
- package/dist/schemas/mcp.schema.js.map +1 -1
- package/dist/schemas/source-controlled-file.schema.d.ts +18 -0
- package/dist/schemas/source-controlled-file.schema.js +2 -0
- package/dist/schemas/source-controlled-file.schema.js.map +1 -1
- package/dist/schemas/user.schema.d.ts +100 -0
- package/dist/schemas/user.schema.js +2 -0
- package/dist/schemas/user.schema.js.map +1 -1
- package/dist/workflow-publish-blocked-details.d.ts +14 -0
- package/dist/workflow-publish-blocked-details.js +15 -0
- package/dist/workflow-publish-blocked-details.js.map +1 -0
- package/dist/workflow-review-eligible-reviewer.d.ts +10 -0
- package/dist/workflow-review-eligible-reviewer.js +3 -0
- package/dist/workflow-review-eligible-reviewer.js.map +1 -0
- package/dist/workflow-review-request-summary.d.ts +23 -0
- package/dist/workflow-review-request-summary.js +11 -0
- package/dist/workflow-review-request-summary.js.map +1 -0
- package/package.json +6 -6
- package/dist/dto/otel/test-otel-connection.dto.js.map +0 -1
|
@@ -771,7 +771,7 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
771
771
|
};
|
|
772
772
|
requireApproval?: boolean | undefined;
|
|
773
773
|
}>]>;
|
|
774
|
-
export declare const
|
|
774
|
+
export declare const AgentJsonConfigBaseSchema: z.ZodObject<{
|
|
775
775
|
name: z.ZodString;
|
|
776
776
|
model: z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>;
|
|
777
777
|
credential: z.ZodOptional<z.ZodString>;
|
|
@@ -1736,19 +1736,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1736
1736
|
tableName: string;
|
|
1737
1737
|
})[]>>;
|
|
1738
1738
|
config: z.ZodOptional<z.ZodObject<{
|
|
1739
|
-
|
|
1740
|
-
provider: z.ZodEnum<["anthropic", "openai"]>;
|
|
1741
|
-
budgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
1742
|
-
reasoningEffort: z.ZodOptional<z.ZodString>;
|
|
1743
|
-
}, "strip", z.ZodTypeAny, {
|
|
1744
|
-
provider: "anthropic" | "openai";
|
|
1745
|
-
budgetTokens?: number | undefined;
|
|
1746
|
-
reasoningEffort?: string | undefined;
|
|
1747
|
-
}, {
|
|
1748
|
-
provider: "anthropic" | "openai";
|
|
1749
|
-
budgetTokens?: number | undefined;
|
|
1750
|
-
reasoningEffort?: string | undefined;
|
|
1751
|
-
}>>;
|
|
1739
|
+
reasoning: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1752
1740
|
promptCaching: z.ZodOptional<z.ZodObject<{
|
|
1753
1741
|
enabled: z.ZodBoolean;
|
|
1754
1742
|
anthropic: z.ZodOptional<z.ZodObject<{
|
|
@@ -1785,11 +1773,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1785
1773
|
toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
1786
1774
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1787
1775
|
}, "strip", z.ZodTypeAny, {
|
|
1788
|
-
|
|
1789
|
-
provider: "anthropic" | "openai";
|
|
1790
|
-
budgetTokens?: number | undefined;
|
|
1791
|
-
reasoningEffort?: string | undefined;
|
|
1792
|
-
} | undefined;
|
|
1776
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
1793
1777
|
promptCaching?: {
|
|
1794
1778
|
enabled: boolean;
|
|
1795
1779
|
anthropic?: {
|
|
@@ -1804,11 +1788,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1804
1788
|
toolCallConcurrency?: number | undefined;
|
|
1805
1789
|
maxIterations?: number | undefined;
|
|
1806
1790
|
}, {
|
|
1807
|
-
|
|
1808
|
-
provider: "anthropic" | "openai";
|
|
1809
|
-
budgetTokens?: number | undefined;
|
|
1810
|
-
reasoningEffort?: string | undefined;
|
|
1811
|
-
} | undefined;
|
|
1791
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
1812
1792
|
promptCaching?: {
|
|
1813
1793
|
enabled: boolean;
|
|
1814
1794
|
anthropic?: {
|
|
@@ -2015,11 +1995,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
2015
1995
|
tableName: string;
|
|
2016
1996
|
})[] | undefined;
|
|
2017
1997
|
config?: {
|
|
2018
|
-
|
|
2019
|
-
provider: "anthropic" | "openai";
|
|
2020
|
-
budgetTokens?: number | undefined;
|
|
2021
|
-
reasoningEffort?: string | undefined;
|
|
2022
|
-
} | undefined;
|
|
1998
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
2023
1999
|
promptCaching?: {
|
|
2024
2000
|
enabled: boolean;
|
|
2025
2001
|
anthropic?: {
|
|
@@ -2226,11 +2202,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
2226
2202
|
tableName: string;
|
|
2227
2203
|
})[] | undefined;
|
|
2228
2204
|
config?: {
|
|
2229
|
-
|
|
2230
|
-
provider: "anthropic" | "openai";
|
|
2231
|
-
budgetTokens?: number | undefined;
|
|
2232
|
-
reasoningEffort?: string | undefined;
|
|
2233
|
-
} | undefined;
|
|
2205
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
2234
2206
|
promptCaching?: {
|
|
2235
2207
|
enabled: boolean;
|
|
2236
2208
|
anthropic?: {
|
|
@@ -2246,8 +2218,10 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
2246
2218
|
maxIterations?: number | undefined;
|
|
2247
2219
|
} | undefined;
|
|
2248
2220
|
}>;
|
|
2249
|
-
export declare const
|
|
2221
|
+
export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
2250
2222
|
name: z.ZodString;
|
|
2223
|
+
model: z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>;
|
|
2224
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
2251
2225
|
instructions: z.ZodString;
|
|
2252
2226
|
personalisation: z.ZodOptional<z.ZodObject<{
|
|
2253
2227
|
icon: z.ZodString;
|
|
@@ -3209,19 +3183,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
3209
3183
|
tableName: string;
|
|
3210
3184
|
})[]>>;
|
|
3211
3185
|
config: z.ZodOptional<z.ZodObject<{
|
|
3212
|
-
|
|
3213
|
-
provider: z.ZodEnum<["anthropic", "openai"]>;
|
|
3214
|
-
budgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
3215
|
-
reasoningEffort: z.ZodOptional<z.ZodString>;
|
|
3216
|
-
}, "strip", z.ZodTypeAny, {
|
|
3217
|
-
provider: "anthropic" | "openai";
|
|
3218
|
-
budgetTokens?: number | undefined;
|
|
3219
|
-
reasoningEffort?: string | undefined;
|
|
3220
|
-
}, {
|
|
3221
|
-
provider: "anthropic" | "openai";
|
|
3222
|
-
budgetTokens?: number | undefined;
|
|
3223
|
-
reasoningEffort?: string | undefined;
|
|
3224
|
-
}>>;
|
|
3186
|
+
reasoning: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
3225
3187
|
promptCaching: z.ZodOptional<z.ZodObject<{
|
|
3226
3188
|
enabled: z.ZodBoolean;
|
|
3227
3189
|
anthropic: z.ZodOptional<z.ZodObject<{
|
|
@@ -3258,11 +3220,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
3258
3220
|
toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
3259
3221
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
3260
3222
|
}, "strip", z.ZodTypeAny, {
|
|
3261
|
-
|
|
3262
|
-
provider: "anthropic" | "openai";
|
|
3263
|
-
budgetTokens?: number | undefined;
|
|
3264
|
-
reasoningEffort?: string | undefined;
|
|
3265
|
-
} | undefined;
|
|
3223
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
3266
3224
|
promptCaching?: {
|
|
3267
3225
|
enabled: boolean;
|
|
3268
3226
|
anthropic?: {
|
|
@@ -3277,11 +3235,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
3277
3235
|
toolCallConcurrency?: number | undefined;
|
|
3278
3236
|
maxIterations?: number | undefined;
|
|
3279
3237
|
}, {
|
|
3280
|
-
|
|
3281
|
-
provider: "anthropic" | "openai";
|
|
3282
|
-
budgetTokens?: number | undefined;
|
|
3283
|
-
reasoningEffort?: string | undefined;
|
|
3284
|
-
} | undefined;
|
|
3238
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
3285
3239
|
promptCaching?: {
|
|
3286
3240
|
enabled: boolean;
|
|
3287
3241
|
anthropic?: {
|
|
@@ -3296,11 +3250,10 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
3296
3250
|
toolCallConcurrency?: number | undefined;
|
|
3297
3251
|
maxIterations?: number | undefined;
|
|
3298
3252
|
}>>;
|
|
3299
|
-
} & {
|
|
3300
|
-
model: z.ZodString;
|
|
3301
|
-
credential: z.ZodEffects<z.ZodString, string, string>;
|
|
3302
3253
|
}, "strip", z.ZodTypeAny, {
|
|
3303
3254
|
name: string;
|
|
3255
|
+
model: string;
|
|
3256
|
+
credential?: string | undefined;
|
|
3304
3257
|
instructions: string;
|
|
3305
3258
|
personalisation?: {
|
|
3306
3259
|
icon: string;
|
|
@@ -3489,11 +3442,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
3489
3442
|
tableName: string;
|
|
3490
3443
|
})[] | undefined;
|
|
3491
3444
|
config?: {
|
|
3492
|
-
|
|
3493
|
-
provider: "anthropic" | "openai";
|
|
3494
|
-
budgetTokens?: number | undefined;
|
|
3495
|
-
reasoningEffort?: string | undefined;
|
|
3496
|
-
} | undefined;
|
|
3445
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
3497
3446
|
promptCaching?: {
|
|
3498
3447
|
enabled: boolean;
|
|
3499
3448
|
anthropic?: {
|
|
@@ -3508,10 +3457,10 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
3508
3457
|
toolCallConcurrency?: number | undefined;
|
|
3509
3458
|
maxIterations?: number | undefined;
|
|
3510
3459
|
} | undefined;
|
|
3511
|
-
model: string;
|
|
3512
|
-
credential: string;
|
|
3513
3460
|
}, {
|
|
3514
3461
|
name: string;
|
|
3462
|
+
model: string;
|
|
3463
|
+
credential?: string | undefined;
|
|
3515
3464
|
instructions: string;
|
|
3516
3465
|
personalisation?: {
|
|
3517
3466
|
icon: string;
|
|
@@ -3700,11 +3649,214 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
3700
3649
|
tableName: string;
|
|
3701
3650
|
})[] | undefined;
|
|
3702
3651
|
config?: {
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3652
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
3653
|
+
promptCaching?: {
|
|
3654
|
+
enabled: boolean;
|
|
3655
|
+
anthropic?: {
|
|
3656
|
+
ttl?: "1h" | "5m" | undefined;
|
|
3657
|
+
} | undefined;
|
|
3658
|
+
} | undefined;
|
|
3659
|
+
webSearch?: {
|
|
3660
|
+
enabled: boolean;
|
|
3661
|
+
provider?: "auto" | "brave" | "native" | "searxng" | undefined;
|
|
3662
|
+
credential?: string | undefined;
|
|
3663
|
+
} | undefined;
|
|
3664
|
+
toolCallConcurrency?: number | undefined;
|
|
3665
|
+
maxIterations?: number | undefined;
|
|
3666
|
+
} | undefined;
|
|
3667
|
+
}>, {
|
|
3668
|
+
name: string;
|
|
3669
|
+
model: string;
|
|
3670
|
+
credential?: string | undefined;
|
|
3671
|
+
instructions: string;
|
|
3672
|
+
personalisation?: {
|
|
3673
|
+
icon: string;
|
|
3674
|
+
gradient: {
|
|
3675
|
+
from: string;
|
|
3676
|
+
to: string;
|
|
3677
|
+
angle: number;
|
|
3678
|
+
fromStop: number;
|
|
3679
|
+
toStop: number;
|
|
3680
|
+
};
|
|
3681
|
+
} | undefined;
|
|
3682
|
+
memory?: {
|
|
3683
|
+
enabled: boolean;
|
|
3684
|
+
storage: "n8n";
|
|
3685
|
+
observationalMemory?: {
|
|
3686
|
+
enabled?: boolean | undefined;
|
|
3687
|
+
observerModel?: {
|
|
3688
|
+
model: string;
|
|
3689
|
+
credential: string;
|
|
3690
|
+
} | undefined;
|
|
3691
|
+
reflectorModel?: {
|
|
3692
|
+
model: string;
|
|
3693
|
+
credential: string;
|
|
3694
|
+
} | undefined;
|
|
3695
|
+
observerThresholdTokens?: number | undefined;
|
|
3696
|
+
reflectorThresholdTokens?: number | undefined;
|
|
3697
|
+
renderTokenBudget?: number | undefined;
|
|
3698
|
+
observationLogTailLimit?: number | undefined;
|
|
3699
|
+
lockTtlMs?: number | undefined;
|
|
3707
3700
|
} | undefined;
|
|
3701
|
+
episodicMemory?: {
|
|
3702
|
+
enabled: false;
|
|
3703
|
+
} | {
|
|
3704
|
+
enabled: true;
|
|
3705
|
+
credential: string;
|
|
3706
|
+
extractorModel?: {
|
|
3707
|
+
model: string;
|
|
3708
|
+
credential: string;
|
|
3709
|
+
} | undefined;
|
|
3710
|
+
reflectorModel?: {
|
|
3711
|
+
model: string;
|
|
3712
|
+
credential: string;
|
|
3713
|
+
} | undefined;
|
|
3714
|
+
topK?: number | undefined;
|
|
3715
|
+
maxEntriesPerRun?: number | undefined;
|
|
3716
|
+
} | undefined;
|
|
3717
|
+
} | undefined;
|
|
3718
|
+
subAgents?: {
|
|
3719
|
+
maxChildren?: number | undefined;
|
|
3720
|
+
agents?: {
|
|
3721
|
+
agentId: string;
|
|
3722
|
+
useWhen?: string | undefined;
|
|
3723
|
+
}[] | undefined;
|
|
3724
|
+
modelsByDifficulty?: {
|
|
3725
|
+
low?: {
|
|
3726
|
+
model: string;
|
|
3727
|
+
credential: string;
|
|
3728
|
+
} | undefined;
|
|
3729
|
+
medium?: {
|
|
3730
|
+
model: string;
|
|
3731
|
+
credential: string;
|
|
3732
|
+
} | undefined;
|
|
3733
|
+
high?: {
|
|
3734
|
+
model: string;
|
|
3735
|
+
credential: string;
|
|
3736
|
+
} | undefined;
|
|
3737
|
+
} | undefined;
|
|
3738
|
+
} | undefined;
|
|
3739
|
+
tools?: ({
|
|
3740
|
+
type: "custom";
|
|
3741
|
+
id: string;
|
|
3742
|
+
requireApproval?: boolean | undefined;
|
|
3743
|
+
} | {
|
|
3744
|
+
type: "workflow";
|
|
3745
|
+
workflow: string;
|
|
3746
|
+
name?: string | undefined;
|
|
3747
|
+
description?: string | undefined;
|
|
3748
|
+
requireApproval?: boolean | undefined;
|
|
3749
|
+
allOutputs?: boolean | undefined;
|
|
3750
|
+
} | {
|
|
3751
|
+
type: "node";
|
|
3752
|
+
name: string;
|
|
3753
|
+
description?: string | undefined;
|
|
3754
|
+
inputSchema?: undefined;
|
|
3755
|
+
node: {
|
|
3756
|
+
nodeType: string;
|
|
3757
|
+
nodeTypeVersion: number;
|
|
3758
|
+
nodeParameters: Record<string, unknown>;
|
|
3759
|
+
credentials?: Record<string, {
|
|
3760
|
+
id: string;
|
|
3761
|
+
name: string;
|
|
3762
|
+
}> | undefined;
|
|
3763
|
+
};
|
|
3764
|
+
requireApproval?: boolean | undefined;
|
|
3765
|
+
})[] | undefined;
|
|
3766
|
+
skills?: {
|
|
3767
|
+
type: "skill";
|
|
3768
|
+
id: string;
|
|
3769
|
+
}[] | undefined;
|
|
3770
|
+
tasks?: {
|
|
3771
|
+
type: "task";
|
|
3772
|
+
id: string;
|
|
3773
|
+
enabled: boolean;
|
|
3774
|
+
}[] | undefined;
|
|
3775
|
+
providerTools?: Record<string, Record<string, unknown>> | undefined;
|
|
3776
|
+
integrations?: ({
|
|
3777
|
+
type: "telegram";
|
|
3778
|
+
credentialId: string;
|
|
3779
|
+
settings?: {
|
|
3780
|
+
accessMode: "private" | "public";
|
|
3781
|
+
allowedUsers: string[];
|
|
3782
|
+
} | undefined;
|
|
3783
|
+
} | {
|
|
3784
|
+
type: "slack";
|
|
3785
|
+
credentialId: string;
|
|
3786
|
+
} | {
|
|
3787
|
+
type: "linear";
|
|
3788
|
+
credentialId: string;
|
|
3789
|
+
})[] | undefined;
|
|
3790
|
+
mcpServers?: {
|
|
3791
|
+
name: string;
|
|
3792
|
+
description?: string | undefined;
|
|
3793
|
+
url: string;
|
|
3794
|
+
transport: "sse" | "streamableHttp";
|
|
3795
|
+
authentication: string;
|
|
3796
|
+
credential?: string | undefined;
|
|
3797
|
+
metadata?: {
|
|
3798
|
+
nodeTypeName?: string | undefined;
|
|
3799
|
+
} | undefined;
|
|
3800
|
+
toolFilter?: {
|
|
3801
|
+
mode: "allow";
|
|
3802
|
+
tools: string[];
|
|
3803
|
+
} | {
|
|
3804
|
+
mode: "exclude";
|
|
3805
|
+
tools: string[];
|
|
3806
|
+
} | undefined;
|
|
3807
|
+
approval?: {
|
|
3808
|
+
mode: "global";
|
|
3809
|
+
} | {
|
|
3810
|
+
mode: "selected";
|
|
3811
|
+
tools: string[];
|
|
3812
|
+
} | undefined;
|
|
3813
|
+
connectionTimeoutMs?: number | undefined;
|
|
3814
|
+
}[] | undefined;
|
|
3815
|
+
vectorStores?: ({
|
|
3816
|
+
name: string;
|
|
3817
|
+
credential: string;
|
|
3818
|
+
useWhen: string;
|
|
3819
|
+
embedding: {
|
|
3820
|
+
model: string;
|
|
3821
|
+
credential: string;
|
|
3822
|
+
};
|
|
3823
|
+
provider: "pinecone";
|
|
3824
|
+
indexName: string;
|
|
3825
|
+
namespace?: string | undefined;
|
|
3826
|
+
} | {
|
|
3827
|
+
name: string;
|
|
3828
|
+
credential: string;
|
|
3829
|
+
useWhen: string;
|
|
3830
|
+
embedding: {
|
|
3831
|
+
model: string;
|
|
3832
|
+
credential: string;
|
|
3833
|
+
};
|
|
3834
|
+
provider: "qdrant";
|
|
3835
|
+
collectionName: string;
|
|
3836
|
+
} | {
|
|
3837
|
+
name: string;
|
|
3838
|
+
credential: string;
|
|
3839
|
+
useWhen: string;
|
|
3840
|
+
embedding: {
|
|
3841
|
+
model: string;
|
|
3842
|
+
credential: string;
|
|
3843
|
+
};
|
|
3844
|
+
provider: "supabase";
|
|
3845
|
+
tableName: string;
|
|
3846
|
+
queryName?: string | undefined;
|
|
3847
|
+
} | {
|
|
3848
|
+
name: string;
|
|
3849
|
+
credential: string;
|
|
3850
|
+
useWhen: string;
|
|
3851
|
+
embedding: {
|
|
3852
|
+
model: string;
|
|
3853
|
+
credential: string;
|
|
3854
|
+
};
|
|
3855
|
+
provider: "postgres";
|
|
3856
|
+
tableName: string;
|
|
3857
|
+
})[] | undefined;
|
|
3858
|
+
config?: {
|
|
3859
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
3708
3860
|
promptCaching?: {
|
|
3709
3861
|
enabled: boolean;
|
|
3710
3862
|
anthropic?: {
|
|
@@ -3719,15 +3871,218 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
3719
3871
|
toolCallConcurrency?: number | undefined;
|
|
3720
3872
|
maxIterations?: number | undefined;
|
|
3721
3873
|
} | undefined;
|
|
3874
|
+
}, {
|
|
3875
|
+
name: string;
|
|
3722
3876
|
model: string;
|
|
3723
|
-
credential
|
|
3877
|
+
credential?: string | undefined;
|
|
3878
|
+
instructions: string;
|
|
3879
|
+
personalisation?: {
|
|
3880
|
+
icon: string;
|
|
3881
|
+
gradient?: {
|
|
3882
|
+
from: string;
|
|
3883
|
+
to: string;
|
|
3884
|
+
angle?: number | undefined;
|
|
3885
|
+
fromStop?: number | undefined;
|
|
3886
|
+
toStop?: number | undefined;
|
|
3887
|
+
} | undefined;
|
|
3888
|
+
} | undefined;
|
|
3889
|
+
memory?: {
|
|
3890
|
+
enabled: boolean;
|
|
3891
|
+
storage: "n8n";
|
|
3892
|
+
observationalMemory?: {
|
|
3893
|
+
enabled?: boolean | undefined;
|
|
3894
|
+
observerModel?: {
|
|
3895
|
+
model: string;
|
|
3896
|
+
credential: string;
|
|
3897
|
+
} | undefined;
|
|
3898
|
+
reflectorModel?: {
|
|
3899
|
+
model: string;
|
|
3900
|
+
credential: string;
|
|
3901
|
+
} | undefined;
|
|
3902
|
+
observerThresholdTokens?: number | undefined;
|
|
3903
|
+
reflectorThresholdTokens?: number | undefined;
|
|
3904
|
+
renderTokenBudget?: number | undefined;
|
|
3905
|
+
observationLogTailLimit?: number | undefined;
|
|
3906
|
+
lockTtlMs?: number | undefined;
|
|
3907
|
+
} | undefined;
|
|
3908
|
+
episodicMemory?: {
|
|
3909
|
+
enabled: false;
|
|
3910
|
+
} | {
|
|
3911
|
+
enabled: true;
|
|
3912
|
+
credential: string;
|
|
3913
|
+
extractorModel?: {
|
|
3914
|
+
model: string;
|
|
3915
|
+
credential: string;
|
|
3916
|
+
} | undefined;
|
|
3917
|
+
reflectorModel?: {
|
|
3918
|
+
model: string;
|
|
3919
|
+
credential: string;
|
|
3920
|
+
} | undefined;
|
|
3921
|
+
topK?: number | undefined;
|
|
3922
|
+
maxEntriesPerRun?: number | undefined;
|
|
3923
|
+
} | undefined;
|
|
3924
|
+
} | undefined;
|
|
3925
|
+
subAgents?: {
|
|
3926
|
+
maxChildren?: number | undefined;
|
|
3927
|
+
agents?: {
|
|
3928
|
+
agentId: string;
|
|
3929
|
+
useWhen?: string | undefined;
|
|
3930
|
+
}[] | undefined;
|
|
3931
|
+
modelsByDifficulty?: {
|
|
3932
|
+
low?: {
|
|
3933
|
+
model: string;
|
|
3934
|
+
credential: string;
|
|
3935
|
+
} | undefined;
|
|
3936
|
+
medium?: {
|
|
3937
|
+
model: string;
|
|
3938
|
+
credential: string;
|
|
3939
|
+
} | undefined;
|
|
3940
|
+
high?: {
|
|
3941
|
+
model: string;
|
|
3942
|
+
credential: string;
|
|
3943
|
+
} | undefined;
|
|
3944
|
+
} | undefined;
|
|
3945
|
+
} | undefined;
|
|
3946
|
+
tools?: ({
|
|
3947
|
+
type: "custom";
|
|
3948
|
+
id: string;
|
|
3949
|
+
requireApproval?: boolean | undefined;
|
|
3950
|
+
} | {
|
|
3951
|
+
type: "workflow";
|
|
3952
|
+
workflow: string;
|
|
3953
|
+
name?: string | undefined;
|
|
3954
|
+
description?: string | undefined;
|
|
3955
|
+
requireApproval?: boolean | undefined;
|
|
3956
|
+
allOutputs?: boolean | undefined;
|
|
3957
|
+
} | {
|
|
3958
|
+
type: "node";
|
|
3959
|
+
name: string;
|
|
3960
|
+
description?: string | undefined;
|
|
3961
|
+
inputSchema?: undefined;
|
|
3962
|
+
node: {
|
|
3963
|
+
nodeType: string;
|
|
3964
|
+
nodeTypeVersion: number;
|
|
3965
|
+
nodeParameters?: Record<string, unknown> | undefined;
|
|
3966
|
+
credentials?: Record<string, {
|
|
3967
|
+
id: string;
|
|
3968
|
+
name: string;
|
|
3969
|
+
}> | undefined;
|
|
3970
|
+
};
|
|
3971
|
+
requireApproval?: boolean | undefined;
|
|
3972
|
+
})[] | undefined;
|
|
3973
|
+
skills?: {
|
|
3974
|
+
type: "skill";
|
|
3975
|
+
id: string;
|
|
3976
|
+
}[] | undefined;
|
|
3977
|
+
tasks?: {
|
|
3978
|
+
type: "task";
|
|
3979
|
+
id: string;
|
|
3980
|
+
enabled: boolean;
|
|
3981
|
+
}[] | undefined;
|
|
3982
|
+
providerTools?: Record<string, Record<string, unknown>> | undefined;
|
|
3983
|
+
integrations?: ({
|
|
3984
|
+
type: "telegram";
|
|
3985
|
+
credentialId: string;
|
|
3986
|
+
settings?: {
|
|
3987
|
+
accessMode: "private" | "public";
|
|
3988
|
+
allowedUsers?: string[] | undefined;
|
|
3989
|
+
} | undefined;
|
|
3990
|
+
} | {
|
|
3991
|
+
type: "slack";
|
|
3992
|
+
credentialId: string;
|
|
3993
|
+
} | {
|
|
3994
|
+
type: "linear";
|
|
3995
|
+
credentialId: string;
|
|
3996
|
+
})[] | undefined;
|
|
3997
|
+
mcpServers?: {
|
|
3998
|
+
name: string;
|
|
3999
|
+
description?: string | undefined;
|
|
4000
|
+
url: string;
|
|
4001
|
+
transport?: "sse" | "streamableHttp" | undefined;
|
|
4002
|
+
authentication?: string | undefined;
|
|
4003
|
+
credential?: string | undefined;
|
|
4004
|
+
metadata?: {
|
|
4005
|
+
nodeTypeName?: string | undefined;
|
|
4006
|
+
} | undefined;
|
|
4007
|
+
toolFilter?: {
|
|
4008
|
+
mode: "allow";
|
|
4009
|
+
tools?: string[] | undefined;
|
|
4010
|
+
} | {
|
|
4011
|
+
mode: "exclude";
|
|
4012
|
+
tools?: string[] | undefined;
|
|
4013
|
+
} | undefined;
|
|
4014
|
+
approval?: {
|
|
4015
|
+
mode: "global";
|
|
4016
|
+
} | {
|
|
4017
|
+
mode: "selected";
|
|
4018
|
+
tools: string[];
|
|
4019
|
+
} | undefined;
|
|
4020
|
+
connectionTimeoutMs?: number | undefined;
|
|
4021
|
+
}[] | undefined;
|
|
4022
|
+
vectorStores?: ({
|
|
4023
|
+
name: string;
|
|
4024
|
+
credential: string;
|
|
4025
|
+
useWhen: string;
|
|
4026
|
+
embedding: {
|
|
4027
|
+
model: string;
|
|
4028
|
+
credential: string;
|
|
4029
|
+
};
|
|
4030
|
+
provider: "pinecone";
|
|
4031
|
+
indexName: string;
|
|
4032
|
+
namespace?: string | undefined;
|
|
4033
|
+
} | {
|
|
4034
|
+
name: string;
|
|
4035
|
+
credential: string;
|
|
4036
|
+
useWhen: string;
|
|
4037
|
+
embedding: {
|
|
4038
|
+
model: string;
|
|
4039
|
+
credential: string;
|
|
4040
|
+
};
|
|
4041
|
+
provider: "qdrant";
|
|
4042
|
+
collectionName: string;
|
|
4043
|
+
} | {
|
|
4044
|
+
name: string;
|
|
4045
|
+
credential: string;
|
|
4046
|
+
useWhen: string;
|
|
4047
|
+
embedding: {
|
|
4048
|
+
model: string;
|
|
4049
|
+
credential: string;
|
|
4050
|
+
};
|
|
4051
|
+
provider: "supabase";
|
|
4052
|
+
tableName: string;
|
|
4053
|
+
queryName?: string | undefined;
|
|
4054
|
+
} | {
|
|
4055
|
+
name: string;
|
|
4056
|
+
credential: string;
|
|
4057
|
+
useWhen: string;
|
|
4058
|
+
embedding: {
|
|
4059
|
+
model: string;
|
|
4060
|
+
credential: string;
|
|
4061
|
+
};
|
|
4062
|
+
provider: "postgres";
|
|
4063
|
+
tableName: string;
|
|
4064
|
+
})[] | undefined;
|
|
4065
|
+
config?: {
|
|
4066
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
4067
|
+
promptCaching?: {
|
|
4068
|
+
enabled: boolean;
|
|
4069
|
+
anthropic?: {
|
|
4070
|
+
ttl?: "1h" | "5m" | undefined;
|
|
4071
|
+
} | undefined;
|
|
4072
|
+
} | undefined;
|
|
4073
|
+
webSearch?: {
|
|
4074
|
+
enabled: boolean;
|
|
4075
|
+
provider?: "auto" | "brave" | "native" | "searxng" | undefined;
|
|
4076
|
+
credential?: string | undefined;
|
|
4077
|
+
} | undefined;
|
|
4078
|
+
toolCallConcurrency?: number | undefined;
|
|
4079
|
+
maxIterations?: number | undefined;
|
|
4080
|
+
} | undefined;
|
|
3724
4081
|
}>;
|
|
3725
|
-
export declare const
|
|
3726
|
-
name: z.
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
instructions: z.ZodOptional<z.ZodString>;
|
|
3730
|
-
personalisation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
4082
|
+
export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
4083
|
+
name: z.ZodString;
|
|
4084
|
+
instructions: z.ZodString;
|
|
4085
|
+
personalisation: z.ZodOptional<z.ZodObject<{
|
|
3731
4086
|
icon: z.ZodString;
|
|
3732
4087
|
gradient: z.ZodDefault<z.ZodObject<{
|
|
3733
4088
|
from: z.ZodString;
|
|
@@ -3766,8 +4121,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3766
4121
|
fromStop?: number | undefined;
|
|
3767
4122
|
toStop?: number | undefined;
|
|
3768
4123
|
} | undefined;
|
|
3769
|
-
}
|
|
3770
|
-
memory: z.ZodOptional<z.
|
|
4124
|
+
}>>;
|
|
4125
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
3771
4126
|
enabled: z.ZodBoolean;
|
|
3772
4127
|
storage: z.ZodEnum<["n8n"]>;
|
|
3773
4128
|
observationalMemory: z.ZodOptional<z.ZodObject<{
|
|
@@ -3956,8 +4311,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3956
4311
|
topK?: number | undefined;
|
|
3957
4312
|
maxEntriesPerRun?: number | undefined;
|
|
3958
4313
|
} | undefined;
|
|
3959
|
-
}
|
|
3960
|
-
subAgents: z.ZodOptional<z.
|
|
4314
|
+
}>>;
|
|
4315
|
+
subAgents: z.ZodOptional<z.ZodObject<{
|
|
3961
4316
|
maxChildren: z.ZodOptional<z.ZodNumber>;
|
|
3962
4317
|
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3963
4318
|
agentId: z.ZodString;
|
|
@@ -4067,8 +4422,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
4067
4422
|
credential: string;
|
|
4068
4423
|
} | undefined;
|
|
4069
4424
|
} | undefined;
|
|
4070
|
-
}
|
|
4071
|
-
tools: z.ZodOptional<z.
|
|
4425
|
+
}>>;
|
|
4426
|
+
tools: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4072
4427
|
type: z.ZodLiteral<"custom">;
|
|
4073
4428
|
id: z.ZodString;
|
|
4074
4429
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4220,8 +4575,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
4220
4575
|
}> | undefined;
|
|
4221
4576
|
};
|
|
4222
4577
|
requireApproval?: boolean | undefined;
|
|
4223
|
-
})[]
|
|
4224
|
-
skills: z.ZodOptional<z.
|
|
4578
|
+
})[]>>;
|
|
4579
|
+
skills: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
4225
4580
|
type: z.ZodLiteral<"skill">;
|
|
4226
4581
|
id: z.ZodString;
|
|
4227
4582
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4236,8 +4591,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
4236
4591
|
}[], {
|
|
4237
4592
|
type: "skill";
|
|
4238
4593
|
id: string;
|
|
4239
|
-
}[]
|
|
4240
|
-
tasks: z.ZodOptional<z.
|
|
4594
|
+
}[]>>;
|
|
4595
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4241
4596
|
type: z.ZodLiteral<"task">;
|
|
4242
4597
|
id: z.ZodString;
|
|
4243
4598
|
enabled: z.ZodBoolean;
|
|
@@ -4249,9 +4604,9 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
4249
4604
|
type: "task";
|
|
4250
4605
|
id: string;
|
|
4251
4606
|
enabled: boolean;
|
|
4252
|
-
}>, "many"
|
|
4253
|
-
providerTools: z.ZodOptional<z.
|
|
4254
|
-
integrations: z.ZodOptional<z.
|
|
4607
|
+
}>, "many">>;
|
|
4608
|
+
providerTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
4609
|
+
integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
|
|
4255
4610
|
type: z.ZodLiteral<"telegram">;
|
|
4256
4611
|
credentialId: z.ZodString;
|
|
4257
4612
|
} & {
|
|
@@ -4303,8 +4658,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
4303
4658
|
}, {
|
|
4304
4659
|
type: "linear";
|
|
4305
4660
|
credentialId: string;
|
|
4306
|
-
}>]>, "many"
|
|
4307
|
-
mcpServers: z.ZodOptional<z.
|
|
4661
|
+
}>]>, "many">>;
|
|
4662
|
+
mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
4308
4663
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
4309
4664
|
description: z.ZodOptional<z.ZodString>;
|
|
4310
4665
|
url: z.ZodString;
|
|
@@ -4450,8 +4805,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
4450
4805
|
tools: string[];
|
|
4451
4806
|
} | undefined;
|
|
4452
4807
|
connectionTimeoutMs?: number | undefined;
|
|
4453
|
-
}[]
|
|
4454
|
-
vectorStores: z.ZodOptional<z.
|
|
4808
|
+
}[]>>;
|
|
4809
|
+
vectorStores: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
4455
4810
|
name: z.ZodString;
|
|
4456
4811
|
credential: z.ZodString;
|
|
4457
4812
|
useWhen: z.ZodString;
|
|
@@ -4685,21 +5040,9 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
4685
5040
|
};
|
|
4686
5041
|
provider: "postgres";
|
|
4687
5042
|
tableName: string;
|
|
4688
|
-
})[]
|
|
4689
|
-
config: z.ZodOptional<z.
|
|
4690
|
-
|
|
4691
|
-
provider: z.ZodEnum<["anthropic", "openai"]>;
|
|
4692
|
-
budgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
4693
|
-
reasoningEffort: z.ZodOptional<z.ZodString>;
|
|
4694
|
-
}, "strip", z.ZodTypeAny, {
|
|
4695
|
-
provider: "anthropic" | "openai";
|
|
4696
|
-
budgetTokens?: number | undefined;
|
|
4697
|
-
reasoningEffort?: string | undefined;
|
|
4698
|
-
}, {
|
|
4699
|
-
provider: "anthropic" | "openai";
|
|
4700
|
-
budgetTokens?: number | undefined;
|
|
4701
|
-
reasoningEffort?: string | undefined;
|
|
4702
|
-
}>>;
|
|
5043
|
+
})[]>>;
|
|
5044
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
5045
|
+
reasoning: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
4703
5046
|
promptCaching: z.ZodOptional<z.ZodObject<{
|
|
4704
5047
|
enabled: z.ZodBoolean;
|
|
4705
5048
|
anthropic: z.ZodOptional<z.ZodObject<{
|
|
@@ -4736,11 +5079,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
4736
5079
|
toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
4737
5080
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
4738
5081
|
}, "strip", z.ZodTypeAny, {
|
|
4739
|
-
|
|
4740
|
-
provider: "anthropic" | "openai";
|
|
4741
|
-
budgetTokens?: number | undefined;
|
|
4742
|
-
reasoningEffort?: string | undefined;
|
|
4743
|
-
} | undefined;
|
|
5082
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
4744
5083
|
promptCaching?: {
|
|
4745
5084
|
enabled: boolean;
|
|
4746
5085
|
anthropic?: {
|
|
@@ -4755,11 +5094,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
4755
5094
|
toolCallConcurrency?: number | undefined;
|
|
4756
5095
|
maxIterations?: number | undefined;
|
|
4757
5096
|
}, {
|
|
4758
|
-
|
|
4759
|
-
provider: "anthropic" | "openai";
|
|
4760
|
-
budgetTokens?: number | undefined;
|
|
4761
|
-
reasoningEffort?: string | undefined;
|
|
4762
|
-
} | undefined;
|
|
5097
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
4763
5098
|
promptCaching?: {
|
|
4764
5099
|
enabled: boolean;
|
|
4765
5100
|
anthropic?: {
|
|
@@ -4773,12 +5108,13 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
4773
5108
|
} | undefined;
|
|
4774
5109
|
toolCallConcurrency?: number | undefined;
|
|
4775
5110
|
maxIterations?: number | undefined;
|
|
4776
|
-
}
|
|
5111
|
+
}>>;
|
|
5112
|
+
} & {
|
|
5113
|
+
model: z.ZodString;
|
|
5114
|
+
credential: z.ZodEffects<z.ZodString, string, string>;
|
|
4777
5115
|
}, "strip", z.ZodTypeAny, {
|
|
4778
|
-
name
|
|
4779
|
-
|
|
4780
|
-
credential?: string | undefined;
|
|
4781
|
-
instructions?: string | undefined;
|
|
5116
|
+
name: string;
|
|
5117
|
+
instructions: string;
|
|
4782
5118
|
personalisation?: {
|
|
4783
5119
|
icon: string;
|
|
4784
5120
|
gradient: {
|
|
@@ -4966,11 +5302,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
4966
5302
|
tableName: string;
|
|
4967
5303
|
})[] | undefined;
|
|
4968
5304
|
config?: {
|
|
4969
|
-
|
|
4970
|
-
provider: "anthropic" | "openai";
|
|
4971
|
-
budgetTokens?: number | undefined;
|
|
4972
|
-
reasoningEffort?: string | undefined;
|
|
4973
|
-
} | undefined;
|
|
5305
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
4974
5306
|
promptCaching?: {
|
|
4975
5307
|
enabled: boolean;
|
|
4976
5308
|
anthropic?: {
|
|
@@ -4985,11 +5317,11 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
4985
5317
|
toolCallConcurrency?: number | undefined;
|
|
4986
5318
|
maxIterations?: number | undefined;
|
|
4987
5319
|
} | undefined;
|
|
5320
|
+
model: string;
|
|
5321
|
+
credential: string;
|
|
4988
5322
|
}, {
|
|
4989
|
-
name
|
|
4990
|
-
|
|
4991
|
-
credential?: string | undefined;
|
|
4992
|
-
instructions?: string | undefined;
|
|
5323
|
+
name: string;
|
|
5324
|
+
instructions: string;
|
|
4993
5325
|
personalisation?: {
|
|
4994
5326
|
icon: string;
|
|
4995
5327
|
gradient?: {
|
|
@@ -5177,11 +5509,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
5177
5509
|
tableName: string;
|
|
5178
5510
|
})[] | undefined;
|
|
5179
5511
|
config?: {
|
|
5180
|
-
|
|
5181
|
-
provider: "anthropic" | "openai";
|
|
5182
|
-
budgetTokens?: number | undefined;
|
|
5183
|
-
reasoningEffort?: string | undefined;
|
|
5184
|
-
} | undefined;
|
|
5512
|
+
reasoning?: "high" | "low" | "medium" | undefined;
|
|
5185
5513
|
promptCaching?: {
|
|
5186
5514
|
enabled: boolean;
|
|
5187
5515
|
anthropic?: {
|
|
@@ -5196,6 +5524,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
5196
5524
|
toolCallConcurrency?: number | undefined;
|
|
5197
5525
|
maxIterations?: number | undefined;
|
|
5198
5526
|
} | undefined;
|
|
5527
|
+
model: string;
|
|
5528
|
+
credential: string;
|
|
5199
5529
|
}>;
|
|
5200
5530
|
export type AgentJsonConfig = z.infer<typeof AgentJsonConfigSchema>;
|
|
5201
5531
|
export type RunnableAgentJsonConfig = z.infer<typeof RunnableAgentJsonConfigSchema>;
|
|
@@ -5234,4 +5564,5 @@ export declare function tryParseConfigJson(raw: string): {
|
|
|
5234
5564
|
};
|
|
5235
5565
|
export declare function findVectorStoreToolNameCollisions(config: Pick<AgentJsonConfig, 'tools' | 'vectorStores'>): string[];
|
|
5236
5566
|
export declare function formatZodErrors(error: ZodError): ConfigValidationError[];
|
|
5567
|
+
export declare function formatAgentConfigZodError(error: ZodError): string;
|
|
5237
5568
|
export {};
|