@n8n/api-types 1.32.1 → 1.33.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.
Files changed (101) hide show
  1. package/dist/agent-sse.d.ts +7 -0
  2. package/dist/agents/agent-config-lifecycle.d.ts +6 -0
  3. package/dist/agents/agent-config-lifecycle.js +11 -0
  4. package/dist/agents/agent-config-lifecycle.js.map +1 -0
  5. package/dist/agents/agent-config-validation.schema.d.ts +16 -16
  6. package/dist/agents/agent-config-validation.schema.js +1 -0
  7. package/dist/agents/agent-config-validation.schema.js.map +1 -1
  8. package/dist/agents/agent-json-config.schema.d.ts +469 -46
  9. package/dist/agents/agent-json-config.schema.js +31 -11
  10. package/dist/agents/agent-json-config.schema.js.map +1 -1
  11. package/dist/agents/agent-node-tool-operations.d.ts +1 -0
  12. package/dist/agents/agent-node-tool-operations.js +8 -0
  13. package/dist/agents/agent-node-tool-operations.js.map +1 -0
  14. package/dist/agents/dto.js +1 -1
  15. package/dist/agents/dto.js.map +1 -1
  16. package/dist/agents/index.d.ts +2 -0
  17. package/dist/agents/index.js +2 -0
  18. package/dist/agents/index.js.map +1 -1
  19. package/dist/agents/inline-agent-config.schema.d.ts +17 -17
  20. package/dist/agents/inline-agent-config.schema.js +2 -2
  21. package/dist/agents/inline-agent-config.schema.js.map +1 -1
  22. package/dist/agents/sanitize-agent-json-config.js +2 -2
  23. package/dist/agents/sanitize-agent-json-config.js.map +1 -1
  24. package/dist/agents/types.d.ts +1 -0
  25. package/dist/agents/types.js.map +1 -1
  26. package/dist/build.tsbuildinfo +1 -1
  27. package/dist/dto/credentials/create-credential.dto.d.ts +2 -0
  28. package/dist/dto/credentials/create-credential.dto.js +1 -0
  29. package/dist/dto/credentials/create-credential.dto.js.map +1 -1
  30. package/dist/dto/index.d.ts +10 -1
  31. package/dist/dto/index.js +23 -4
  32. package/dist/dto/index.js.map +1 -1
  33. package/dist/dto/otel/{test-otel-connection.dto.d.ts → test-otel-trace.dto.d.ts} +2 -2
  34. package/dist/dto/otel/{test-otel-connection.dto.js → test-otel-trace.dto.js} +4 -4
  35. package/dist/dto/otel/test-otel-trace.dto.js.map +1 -0
  36. package/dist/dto/packages/import-package-request.dto.d.ts +14 -10
  37. package/dist/dto/packages/import-package-request.dto.js +14 -21
  38. package/dist/dto/packages/import-package-request.dto.js.map +1 -1
  39. package/dist/dto/roles/role-delete-query.dto.d.ts +9 -0
  40. package/dist/dto/roles/role-delete-query.dto.js +11 -0
  41. package/dist/dto/roles/role-delete-query.dto.js.map +1 -0
  42. package/dist/dto/workflow-history/list-workflow-history-query.dto.d.ts +13 -0
  43. package/dist/dto/workflow-history/list-workflow-history-query.dto.js +13 -0
  44. package/dist/dto/workflow-history/list-workflow-history-query.dto.js.map +1 -0
  45. package/dist/dto/workflow-history/workflow-history-list-item.dto.d.ts +51 -0
  46. package/dist/dto/workflow-history/workflow-history-list-item.dto.js +19 -0
  47. package/dist/dto/workflow-history/workflow-history-list-item.dto.js.map +1 -0
  48. package/dist/dto/workflow-history/workflow-version-history-public.dto.d.ts +70 -0
  49. package/dist/dto/workflow-history/workflow-version-history-public.dto.js +16 -0
  50. package/dist/dto/workflow-history/workflow-version-history-public.dto.js.map +1 -0
  51. package/dist/dto/workflow-reviews/create-workflow-review-request.dto.d.ts +27 -0
  52. package/dist/dto/workflow-reviews/create-workflow-review-request.dto.js +20 -0
  53. package/dist/dto/workflow-reviews/create-workflow-review-request.dto.js.map +1 -0
  54. package/dist/dto/workflow-reviews/get-eligible-reviewers-query.dto.d.ts +8 -0
  55. package/dist/dto/workflow-reviews/get-eligible-reviewers-query.dto.js +11 -0
  56. package/dist/dto/workflow-reviews/get-eligible-reviewers-query.dto.js.map +1 -0
  57. package/dist/dto/workflow-reviews/list-workflow-review-inbox.dto.d.ts +31 -0
  58. package/dist/dto/workflow-reviews/list-workflow-review-inbox.dto.js +14 -0
  59. package/dist/dto/workflow-reviews/list-workflow-review-inbox.dto.js.map +1 -0
  60. package/dist/dto/workflow-reviews/list-workflow-review-requests-query.dto.d.ts +14 -0
  61. package/dist/dto/workflow-reviews/list-workflow-review-requests-query.dto.js +15 -0
  62. package/dist/dto/workflow-reviews/list-workflow-review-requests-query.dto.js.map +1 -0
  63. package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.d.ts +10 -0
  64. package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.js +12 -0
  65. package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.js.map +1 -0
  66. package/dist/frontend-settings.d.ts +2 -0
  67. package/dist/index.d.ts +9 -5
  68. package/dist/index.js +22 -6
  69. package/dist/index.js.map +1 -1
  70. package/dist/push/index.d.ts +2 -1
  71. package/dist/push/workflow-review.d.ts +7 -0
  72. package/dist/push/workflow-review.js +3 -0
  73. package/dist/push/workflow-review.js.map +1 -0
  74. package/dist/schemas/agent-evals.schema.d.ts +1 -0
  75. package/dist/schemas/agent-evals.schema.js +5 -0
  76. package/dist/schemas/agent-evals.schema.js.map +1 -0
  77. package/dist/schemas/eval-collections.schema.d.ts +10 -1
  78. package/dist/schemas/eval-collections.schema.js +58 -4
  79. package/dist/schemas/eval-collections.schema.js.map +1 -1
  80. package/dist/schemas/eval-insights.schema.js +14 -10
  81. package/dist/schemas/eval-insights.schema.js.map +1 -1
  82. package/dist/schemas/id.schema.d.ts +2 -0
  83. package/dist/schemas/id.schema.js +6 -0
  84. package/dist/schemas/id.schema.js.map +1 -0
  85. package/dist/schemas/instance-ai.schema.d.ts +126 -9
  86. package/dist/schemas/instance-ai.schema.js +44 -12
  87. package/dist/schemas/instance-ai.schema.js.map +1 -1
  88. package/dist/schemas/mcp.schema.d.ts +1 -0
  89. package/dist/schemas/mcp.schema.js +2 -1
  90. package/dist/schemas/mcp.schema.js.map +1 -1
  91. package/dist/schemas/user.schema.d.ts +100 -0
  92. package/dist/schemas/user.schema.js +2 -0
  93. package/dist/schemas/user.schema.js.map +1 -1
  94. package/dist/workflow-review-eligible-reviewer.d.ts +10 -0
  95. package/dist/workflow-review-eligible-reviewer.js +3 -0
  96. package/dist/workflow-review-eligible-reviewer.js.map +1 -0
  97. package/dist/workflow-review-request-summary.d.ts +18 -0
  98. package/dist/workflow-review-request-summary.js +11 -0
  99. package/dist/workflow-review-request-summary.js.map +1 -0
  100. package/package.json +4 -4
  101. package/dist/dto/otel/test-otel-connection.dto.js.map +0 -1
@@ -322,7 +322,7 @@ declare const AgentJsonTaskConfigSchema: z.ZodObject<{
322
322
  }>;
323
323
  export declare const McpAuthenticationSchemaTypes: z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>;
324
324
  export declare const McpServerConfigSchema: z.ZodObject<{
325
- name: z.ZodString;
325
+ name: z.ZodEffects<z.ZodString, string, string>;
326
326
  description: z.ZodOptional<z.ZodString>;
327
327
  url: z.ZodString;
328
328
  transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
@@ -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 AgentJsonConfigSchema: z.ZodObject<{
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>;
@@ -1354,7 +1354,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1354
1354
  credentialId: string;
1355
1355
  }>]>, "many">>;
1356
1356
  mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
1357
- name: z.ZodString;
1357
+ name: z.ZodEffects<z.ZodString, string, string>;
1358
1358
  description: z.ZodOptional<z.ZodString>;
1359
1359
  url: z.ZodString;
1360
1360
  transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
@@ -2246,8 +2246,10 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
2246
2246
  maxIterations?: number | undefined;
2247
2247
  } | undefined;
2248
2248
  }>;
2249
- export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2249
+ export declare const AgentJsonConfigSchema: z.ZodEffects<z.ZodObject<{
2250
2250
  name: z.ZodString;
2251
+ model: z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>;
2252
+ credential: z.ZodOptional<z.ZodString>;
2251
2253
  instructions: z.ZodString;
2252
2254
  personalisation: z.ZodOptional<z.ZodObject<{
2253
2255
  icon: z.ZodString;
@@ -2827,7 +2829,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2827
2829
  credentialId: string;
2828
2830
  }>]>, "many">>;
2829
2831
  mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
2830
- name: z.ZodString;
2832
+ name: z.ZodEffects<z.ZodString, string, string>;
2831
2833
  description: z.ZodOptional<z.ZodString>;
2832
2834
  url: z.ZodString;
2833
2835
  transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
@@ -3296,11 +3298,10 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
3296
3298
  toolCallConcurrency?: number | undefined;
3297
3299
  maxIterations?: number | undefined;
3298
3300
  }>>;
3299
- } & {
3300
- model: z.ZodString;
3301
- credential: z.ZodEffects<z.ZodString, string, string>;
3302
3301
  }, "strip", z.ZodTypeAny, {
3303
3302
  name: string;
3303
+ model: string;
3304
+ credential?: string | undefined;
3304
3305
  instructions: string;
3305
3306
  personalisation?: {
3306
3307
  icon: string;
@@ -3508,10 +3509,10 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
3508
3509
  toolCallConcurrency?: number | undefined;
3509
3510
  maxIterations?: number | undefined;
3510
3511
  } | undefined;
3511
- model: string;
3512
- credential: string;
3513
3512
  }, {
3514
3513
  name: string;
3514
+ model: string;
3515
+ credential?: string | undefined;
3515
3516
  instructions: string;
3516
3517
  personalisation?: {
3517
3518
  icon: string;
@@ -3719,15 +3720,433 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
3719
3720
  toolCallConcurrency?: number | undefined;
3720
3721
  maxIterations?: number | undefined;
3721
3722
  } | undefined;
3723
+ }>, {
3724
+ name: string;
3722
3725
  model: string;
3723
- credential: string;
3726
+ credential?: string | undefined;
3727
+ instructions: string;
3728
+ personalisation?: {
3729
+ icon: string;
3730
+ gradient: {
3731
+ from: string;
3732
+ to: string;
3733
+ angle: number;
3734
+ fromStop: number;
3735
+ toStop: number;
3736
+ };
3737
+ } | undefined;
3738
+ memory?: {
3739
+ enabled: boolean;
3740
+ storage: "n8n";
3741
+ observationalMemory?: {
3742
+ enabled?: boolean | undefined;
3743
+ observerModel?: {
3744
+ model: string;
3745
+ credential: string;
3746
+ } | undefined;
3747
+ reflectorModel?: {
3748
+ model: string;
3749
+ credential: string;
3750
+ } | undefined;
3751
+ observerThresholdTokens?: number | undefined;
3752
+ reflectorThresholdTokens?: number | undefined;
3753
+ renderTokenBudget?: number | undefined;
3754
+ observationLogTailLimit?: number | undefined;
3755
+ lockTtlMs?: number | undefined;
3756
+ } | undefined;
3757
+ episodicMemory?: {
3758
+ enabled: false;
3759
+ } | {
3760
+ enabled: true;
3761
+ credential: string;
3762
+ extractorModel?: {
3763
+ model: string;
3764
+ credential: string;
3765
+ } | undefined;
3766
+ reflectorModel?: {
3767
+ model: string;
3768
+ credential: string;
3769
+ } | undefined;
3770
+ topK?: number | undefined;
3771
+ maxEntriesPerRun?: number | undefined;
3772
+ } | undefined;
3773
+ } | undefined;
3774
+ subAgents?: {
3775
+ maxChildren?: number | undefined;
3776
+ agents?: {
3777
+ agentId: string;
3778
+ useWhen?: string | undefined;
3779
+ }[] | undefined;
3780
+ modelsByDifficulty?: {
3781
+ low?: {
3782
+ model: string;
3783
+ credential: string;
3784
+ } | undefined;
3785
+ medium?: {
3786
+ model: string;
3787
+ credential: string;
3788
+ } | undefined;
3789
+ high?: {
3790
+ model: string;
3791
+ credential: string;
3792
+ } | undefined;
3793
+ } | undefined;
3794
+ } | undefined;
3795
+ tools?: ({
3796
+ type: "custom";
3797
+ id: string;
3798
+ requireApproval?: boolean | undefined;
3799
+ } | {
3800
+ type: "workflow";
3801
+ workflow: string;
3802
+ name?: string | undefined;
3803
+ description?: string | undefined;
3804
+ requireApproval?: boolean | undefined;
3805
+ allOutputs?: boolean | undefined;
3806
+ } | {
3807
+ type: "node";
3808
+ name: string;
3809
+ description?: string | undefined;
3810
+ inputSchema?: undefined;
3811
+ node: {
3812
+ nodeType: string;
3813
+ nodeTypeVersion: number;
3814
+ nodeParameters: Record<string, unknown>;
3815
+ credentials?: Record<string, {
3816
+ id: string;
3817
+ name: string;
3818
+ }> | undefined;
3819
+ };
3820
+ requireApproval?: boolean | undefined;
3821
+ })[] | undefined;
3822
+ skills?: {
3823
+ type: "skill";
3824
+ id: string;
3825
+ }[] | undefined;
3826
+ tasks?: {
3827
+ type: "task";
3828
+ id: string;
3829
+ enabled: boolean;
3830
+ }[] | undefined;
3831
+ providerTools?: Record<string, Record<string, unknown>> | undefined;
3832
+ integrations?: ({
3833
+ type: "telegram";
3834
+ credentialId: string;
3835
+ settings?: {
3836
+ accessMode: "private" | "public";
3837
+ allowedUsers: string[];
3838
+ } | undefined;
3839
+ } | {
3840
+ type: "slack";
3841
+ credentialId: string;
3842
+ } | {
3843
+ type: "linear";
3844
+ credentialId: string;
3845
+ })[] | undefined;
3846
+ mcpServers?: {
3847
+ name: string;
3848
+ description?: string | undefined;
3849
+ url: string;
3850
+ transport: "sse" | "streamableHttp";
3851
+ authentication: string;
3852
+ credential?: string | undefined;
3853
+ metadata?: {
3854
+ nodeTypeName?: string | undefined;
3855
+ } | undefined;
3856
+ toolFilter?: {
3857
+ mode: "allow";
3858
+ tools: string[];
3859
+ } | {
3860
+ mode: "exclude";
3861
+ tools: string[];
3862
+ } | undefined;
3863
+ approval?: {
3864
+ mode: "global";
3865
+ } | {
3866
+ mode: "selected";
3867
+ tools: string[];
3868
+ } | undefined;
3869
+ connectionTimeoutMs?: number | undefined;
3870
+ }[] | undefined;
3871
+ vectorStores?: ({
3872
+ name: string;
3873
+ credential: string;
3874
+ useWhen: string;
3875
+ embedding: {
3876
+ model: string;
3877
+ credential: string;
3878
+ };
3879
+ provider: "pinecone";
3880
+ indexName: string;
3881
+ namespace?: string | undefined;
3882
+ } | {
3883
+ name: string;
3884
+ credential: string;
3885
+ useWhen: string;
3886
+ embedding: {
3887
+ model: string;
3888
+ credential: string;
3889
+ };
3890
+ provider: "qdrant";
3891
+ collectionName: string;
3892
+ } | {
3893
+ name: string;
3894
+ credential: string;
3895
+ useWhen: string;
3896
+ embedding: {
3897
+ model: string;
3898
+ credential: string;
3899
+ };
3900
+ provider: "supabase";
3901
+ tableName: string;
3902
+ queryName?: string | undefined;
3903
+ } | {
3904
+ name: string;
3905
+ credential: string;
3906
+ useWhen: string;
3907
+ embedding: {
3908
+ model: string;
3909
+ credential: string;
3910
+ };
3911
+ provider: "postgres";
3912
+ tableName: string;
3913
+ })[] | undefined;
3914
+ config?: {
3915
+ thinking?: {
3916
+ provider: "anthropic" | "openai";
3917
+ budgetTokens?: number | undefined;
3918
+ reasoningEffort?: string | undefined;
3919
+ } | undefined;
3920
+ promptCaching?: {
3921
+ enabled: boolean;
3922
+ anthropic?: {
3923
+ ttl?: "1h" | "5m" | undefined;
3924
+ } | undefined;
3925
+ } | undefined;
3926
+ webSearch?: {
3927
+ enabled: boolean;
3928
+ provider?: "auto" | "brave" | "native" | "searxng" | undefined;
3929
+ credential?: string | undefined;
3930
+ } | undefined;
3931
+ toolCallConcurrency?: number | undefined;
3932
+ maxIterations?: number | undefined;
3933
+ } | undefined;
3934
+ }, {
3935
+ name: string;
3936
+ model: string;
3937
+ credential?: string | undefined;
3938
+ instructions: string;
3939
+ personalisation?: {
3940
+ icon: string;
3941
+ gradient?: {
3942
+ from: string;
3943
+ to: string;
3944
+ angle?: number | undefined;
3945
+ fromStop?: number | undefined;
3946
+ toStop?: number | undefined;
3947
+ } | undefined;
3948
+ } | undefined;
3949
+ memory?: {
3950
+ enabled: boolean;
3951
+ storage: "n8n";
3952
+ observationalMemory?: {
3953
+ enabled?: boolean | undefined;
3954
+ observerModel?: {
3955
+ model: string;
3956
+ credential: string;
3957
+ } | undefined;
3958
+ reflectorModel?: {
3959
+ model: string;
3960
+ credential: string;
3961
+ } | undefined;
3962
+ observerThresholdTokens?: number | undefined;
3963
+ reflectorThresholdTokens?: number | undefined;
3964
+ renderTokenBudget?: number | undefined;
3965
+ observationLogTailLimit?: number | undefined;
3966
+ lockTtlMs?: number | undefined;
3967
+ } | undefined;
3968
+ episodicMemory?: {
3969
+ enabled: false;
3970
+ } | {
3971
+ enabled: true;
3972
+ credential: string;
3973
+ extractorModel?: {
3974
+ model: string;
3975
+ credential: string;
3976
+ } | undefined;
3977
+ reflectorModel?: {
3978
+ model: string;
3979
+ credential: string;
3980
+ } | undefined;
3981
+ topK?: number | undefined;
3982
+ maxEntriesPerRun?: number | undefined;
3983
+ } | undefined;
3984
+ } | undefined;
3985
+ subAgents?: {
3986
+ maxChildren?: number | undefined;
3987
+ agents?: {
3988
+ agentId: string;
3989
+ useWhen?: string | undefined;
3990
+ }[] | undefined;
3991
+ modelsByDifficulty?: {
3992
+ low?: {
3993
+ model: string;
3994
+ credential: string;
3995
+ } | undefined;
3996
+ medium?: {
3997
+ model: string;
3998
+ credential: string;
3999
+ } | undefined;
4000
+ high?: {
4001
+ model: string;
4002
+ credential: string;
4003
+ } | undefined;
4004
+ } | undefined;
4005
+ } | undefined;
4006
+ tools?: ({
4007
+ type: "custom";
4008
+ id: string;
4009
+ requireApproval?: boolean | undefined;
4010
+ } | {
4011
+ type: "workflow";
4012
+ workflow: string;
4013
+ name?: string | undefined;
4014
+ description?: string | undefined;
4015
+ requireApproval?: boolean | undefined;
4016
+ allOutputs?: boolean | undefined;
4017
+ } | {
4018
+ type: "node";
4019
+ name: string;
4020
+ description?: string | undefined;
4021
+ inputSchema?: undefined;
4022
+ node: {
4023
+ nodeType: string;
4024
+ nodeTypeVersion: number;
4025
+ nodeParameters?: Record<string, unknown> | undefined;
4026
+ credentials?: Record<string, {
4027
+ id: string;
4028
+ name: string;
4029
+ }> | undefined;
4030
+ };
4031
+ requireApproval?: boolean | undefined;
4032
+ })[] | undefined;
4033
+ skills?: {
4034
+ type: "skill";
4035
+ id: string;
4036
+ }[] | undefined;
4037
+ tasks?: {
4038
+ type: "task";
4039
+ id: string;
4040
+ enabled: boolean;
4041
+ }[] | undefined;
4042
+ providerTools?: Record<string, Record<string, unknown>> | undefined;
4043
+ integrations?: ({
4044
+ type: "telegram";
4045
+ credentialId: string;
4046
+ settings?: {
4047
+ accessMode: "private" | "public";
4048
+ allowedUsers?: string[] | undefined;
4049
+ } | undefined;
4050
+ } | {
4051
+ type: "slack";
4052
+ credentialId: string;
4053
+ } | {
4054
+ type: "linear";
4055
+ credentialId: string;
4056
+ })[] | undefined;
4057
+ mcpServers?: {
4058
+ name: string;
4059
+ description?: string | undefined;
4060
+ url: string;
4061
+ transport?: "sse" | "streamableHttp" | undefined;
4062
+ authentication?: string | undefined;
4063
+ credential?: string | undefined;
4064
+ metadata?: {
4065
+ nodeTypeName?: string | undefined;
4066
+ } | undefined;
4067
+ toolFilter?: {
4068
+ mode: "allow";
4069
+ tools?: string[] | undefined;
4070
+ } | {
4071
+ mode: "exclude";
4072
+ tools?: string[] | undefined;
4073
+ } | undefined;
4074
+ approval?: {
4075
+ mode: "global";
4076
+ } | {
4077
+ mode: "selected";
4078
+ tools: string[];
4079
+ } | undefined;
4080
+ connectionTimeoutMs?: number | undefined;
4081
+ }[] | undefined;
4082
+ vectorStores?: ({
4083
+ name: string;
4084
+ credential: string;
4085
+ useWhen: string;
4086
+ embedding: {
4087
+ model: string;
4088
+ credential: string;
4089
+ };
4090
+ provider: "pinecone";
4091
+ indexName: string;
4092
+ namespace?: string | undefined;
4093
+ } | {
4094
+ name: string;
4095
+ credential: string;
4096
+ useWhen: string;
4097
+ embedding: {
4098
+ model: string;
4099
+ credential: string;
4100
+ };
4101
+ provider: "qdrant";
4102
+ collectionName: string;
4103
+ } | {
4104
+ name: string;
4105
+ credential: string;
4106
+ useWhen: string;
4107
+ embedding: {
4108
+ model: string;
4109
+ credential: string;
4110
+ };
4111
+ provider: "supabase";
4112
+ tableName: string;
4113
+ queryName?: string | undefined;
4114
+ } | {
4115
+ name: string;
4116
+ credential: string;
4117
+ useWhen: string;
4118
+ embedding: {
4119
+ model: string;
4120
+ credential: string;
4121
+ };
4122
+ provider: "postgres";
4123
+ tableName: string;
4124
+ })[] | undefined;
4125
+ config?: {
4126
+ thinking?: {
4127
+ provider: "anthropic" | "openai";
4128
+ budgetTokens?: number | undefined;
4129
+ reasoningEffort?: string | undefined;
4130
+ } | undefined;
4131
+ promptCaching?: {
4132
+ enabled: boolean;
4133
+ anthropic?: {
4134
+ ttl?: "1h" | "5m" | undefined;
4135
+ } | undefined;
4136
+ } | undefined;
4137
+ webSearch?: {
4138
+ enabled: boolean;
4139
+ provider?: "auto" | "brave" | "native" | "searxng" | undefined;
4140
+ credential?: string | undefined;
4141
+ } | undefined;
4142
+ toolCallConcurrency?: number | undefined;
4143
+ maxIterations?: number | undefined;
4144
+ } | undefined;
3724
4145
  }>;
3725
- export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3726
- name: z.ZodOptional<z.ZodString>;
3727
- model: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>>;
3728
- credential: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3729
- instructions: z.ZodOptional<z.ZodString>;
3730
- personalisation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
4146
+ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
4147
+ name: z.ZodString;
4148
+ instructions: z.ZodString;
4149
+ personalisation: z.ZodOptional<z.ZodObject<{
3731
4150
  icon: z.ZodString;
3732
4151
  gradient: z.ZodDefault<z.ZodObject<{
3733
4152
  from: z.ZodString;
@@ -3766,8 +4185,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3766
4185
  fromStop?: number | undefined;
3767
4186
  toStop?: number | undefined;
3768
4187
  } | undefined;
3769
- }>>>;
3770
- memory: z.ZodOptional<z.ZodOptional<z.ZodObject<{
4188
+ }>>;
4189
+ memory: z.ZodOptional<z.ZodObject<{
3771
4190
  enabled: z.ZodBoolean;
3772
4191
  storage: z.ZodEnum<["n8n"]>;
3773
4192
  observationalMemory: z.ZodOptional<z.ZodObject<{
@@ -3956,8 +4375,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3956
4375
  topK?: number | undefined;
3957
4376
  maxEntriesPerRun?: number | undefined;
3958
4377
  } | undefined;
3959
- }>>>;
3960
- subAgents: z.ZodOptional<z.ZodOptional<z.ZodObject<{
4378
+ }>>;
4379
+ subAgents: z.ZodOptional<z.ZodObject<{
3961
4380
  maxChildren: z.ZodOptional<z.ZodNumber>;
3962
4381
  agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
3963
4382
  agentId: z.ZodString;
@@ -4067,8 +4486,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
4067
4486
  credential: string;
4068
4487
  } | undefined;
4069
4488
  } | undefined;
4070
- }>>>;
4071
- tools: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4489
+ }>>;
4490
+ tools: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4072
4491
  type: z.ZodLiteral<"custom">;
4073
4492
  id: z.ZodString;
4074
4493
  requireApproval: z.ZodOptional<z.ZodBoolean>;
@@ -4220,8 +4639,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
4220
4639
  }> | undefined;
4221
4640
  };
4222
4641
  requireApproval?: boolean | undefined;
4223
- })[]>>>;
4224
- skills: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
4642
+ })[]>>;
4643
+ skills: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
4225
4644
  type: z.ZodLiteral<"skill">;
4226
4645
  id: z.ZodString;
4227
4646
  }, "strip", z.ZodTypeAny, {
@@ -4236,8 +4655,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
4236
4655
  }[], {
4237
4656
  type: "skill";
4238
4657
  id: string;
4239
- }[]>>>;
4240
- tasks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
4658
+ }[]>>;
4659
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4241
4660
  type: z.ZodLiteral<"task">;
4242
4661
  id: z.ZodString;
4243
4662
  enabled: z.ZodBoolean;
@@ -4249,9 +4668,9 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
4249
4668
  type: "task";
4250
4669
  id: string;
4251
4670
  enabled: boolean;
4252
- }>, "many">>>;
4253
- providerTools: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
4254
- integrations: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
4671
+ }>, "many">>;
4672
+ providerTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4673
+ integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
4255
4674
  type: z.ZodLiteral<"telegram">;
4256
4675
  credentialId: z.ZodString;
4257
4676
  } & {
@@ -4303,9 +4722,9 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
4303
4722
  }, {
4304
4723
  type: "linear";
4305
4724
  credentialId: string;
4306
- }>]>, "many">>>;
4307
- mcpServers: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
4308
- name: z.ZodString;
4725
+ }>]>, "many">>;
4726
+ mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
4727
+ name: z.ZodEffects<z.ZodString, string, string>;
4309
4728
  description: z.ZodOptional<z.ZodString>;
4310
4729
  url: z.ZodString;
4311
4730
  transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
@@ -4450,8 +4869,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
4450
4869
  tools: string[];
4451
4870
  } | undefined;
4452
4871
  connectionTimeoutMs?: number | undefined;
4453
- }[]>>>;
4454
- vectorStores: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
4872
+ }[]>>;
4873
+ vectorStores: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
4455
4874
  name: z.ZodString;
4456
4875
  credential: z.ZodString;
4457
4876
  useWhen: z.ZodString;
@@ -4685,8 +5104,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
4685
5104
  };
4686
5105
  provider: "postgres";
4687
5106
  tableName: string;
4688
- })[]>>>;
4689
- config: z.ZodOptional<z.ZodOptional<z.ZodObject<{
5107
+ })[]>>;
5108
+ config: z.ZodOptional<z.ZodObject<{
4690
5109
  thinking: z.ZodOptional<z.ZodObject<{
4691
5110
  provider: z.ZodEnum<["anthropic", "openai"]>;
4692
5111
  budgetTokens: z.ZodOptional<z.ZodNumber>;
@@ -4773,12 +5192,13 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
4773
5192
  } | undefined;
4774
5193
  toolCallConcurrency?: number | undefined;
4775
5194
  maxIterations?: number | undefined;
4776
- }>>>;
5195
+ }>>;
5196
+ } & {
5197
+ model: z.ZodString;
5198
+ credential: z.ZodEffects<z.ZodString, string, string>;
4777
5199
  }, "strip", z.ZodTypeAny, {
4778
- name?: string | undefined;
4779
- model?: string | undefined;
4780
- credential?: string | undefined;
4781
- instructions?: string | undefined;
5200
+ name: string;
5201
+ instructions: string;
4782
5202
  personalisation?: {
4783
5203
  icon: string;
4784
5204
  gradient: {
@@ -4985,11 +5405,11 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
4985
5405
  toolCallConcurrency?: number | undefined;
4986
5406
  maxIterations?: number | undefined;
4987
5407
  } | undefined;
5408
+ model: string;
5409
+ credential: string;
4988
5410
  }, {
4989
- name?: string | undefined;
4990
- model?: string | undefined;
4991
- credential?: string | undefined;
4992
- instructions?: string | undefined;
5411
+ name: string;
5412
+ instructions: string;
4993
5413
  personalisation?: {
4994
5414
  icon: string;
4995
5415
  gradient?: {
@@ -5196,6 +5616,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
5196
5616
  toolCallConcurrency?: number | undefined;
5197
5617
  maxIterations?: number | undefined;
5198
5618
  } | undefined;
5619
+ model: string;
5620
+ credential: string;
5199
5621
  }>;
5200
5622
  export type AgentJsonConfig = z.infer<typeof AgentJsonConfigSchema>;
5201
5623
  export type RunnableAgentJsonConfig = z.infer<typeof RunnableAgentJsonConfigSchema>;
@@ -5234,4 +5656,5 @@ export declare function tryParseConfigJson(raw: string): {
5234
5656
  };
5235
5657
  export declare function findVectorStoreToolNameCollisions(config: Pick<AgentJsonConfig, 'tools' | 'vectorStores'>): string[];
5236
5658
  export declare function formatZodErrors(error: ZodError): ConfigValidationError[];
5659
+ export declare function formatAgentConfigZodError(error: ZodError): string;
5237
5660
  export {};