@n8n/api-types 1.29.3 → 1.30.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 (82) hide show
  1. package/dist/agent-builder-interactive.d.ts +6 -6
  2. package/dist/agents/agent-files.constants.d.ts +1 -1
  3. package/dist/agents/agent-files.constants.js +1 -1
  4. package/dist/agents/agent-files.constants.js.map +1 -1
  5. package/dist/agents/agent-json-config.schema.d.ts +685 -302
  6. package/dist/agents/agent-json-config.schema.js +45 -1
  7. package/dist/agents/agent-json-config.schema.js.map +1 -1
  8. package/dist/agents/dto.d.ts +8 -1
  9. package/dist/agents/dto.js +6 -1
  10. package/dist/agents/dto.js.map +1 -1
  11. package/dist/agents/model-providers.d.ts +22 -0
  12. package/dist/agents/provider-capabilities.d.ts +7 -0
  13. package/dist/agents/provider-capabilities.js +21 -8
  14. package/dist/agents/provider-capabilities.js.map +1 -1
  15. package/dist/agents/rich-card.schema.d.ts +158 -158
  16. package/dist/build.tsbuildinfo +1 -1
  17. package/dist/chat-hub.d.ts +24 -24
  18. package/dist/dto/api-keys/list-api-keys-query.dto.d.ts +1 -1
  19. package/dist/dto/breaking-changes/breaking-change-report-query.dto.d.ts +8 -0
  20. package/dist/dto/breaking-changes/breaking-change-report-query.dto.js +11 -0
  21. package/dist/dto/breaking-changes/breaking-change-report-query.dto.js.map +1 -0
  22. package/dist/dto/data-table/add-data-table-rows.dto.d.ts +1 -1
  23. package/dist/dto/data-table/list-data-table-query.dto.d.ts +4 -4
  24. package/dist/dto/evaluations/evaluation-config.dto.d.ts +78 -78
  25. package/dist/dto/evaluations/index.d.ts +1 -0
  26. package/dist/dto/evaluations/public-api-test-run.dto.d.ts +28 -0
  27. package/dist/dto/evaluations/public-api-test-run.dto.js +3 -0
  28. package/dist/dto/evaluations/public-api-test-run.dto.js.map +1 -0
  29. package/dist/dto/folders/list-folder-query.dto.d.ts +2 -2
  30. package/dist/dto/index.d.ts +2 -1
  31. package/dist/dto/index.js +8 -6
  32. package/dist/dto/index.js.map +1 -1
  33. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +9 -0
  34. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js +5 -0
  35. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js.map +1 -1
  36. package/dist/dto/instance-version-history/version-query.dto.d.ts +1 -1
  37. package/dist/dto/log-streaming/create-destination.dto.d.ts +102 -102
  38. package/dist/dto/oauth/oauth-client.dto.d.ts +4 -4
  39. package/dist/dto/owner/owner-setup-request.dto.d.ts +1 -1
  40. package/dist/dto/packages/export-package-request.dto.d.ts +13 -0
  41. package/dist/dto/packages/export-package-request.dto.js +13 -0
  42. package/dist/dto/packages/export-package-request.dto.js.map +1 -0
  43. package/dist/dto/roles/role-member.schema.d.ts +2 -2
  44. package/dist/dto/roles/role-members-response.dto.d.ts +3 -3
  45. package/dist/dto/roles/role-project-members-response.dto.d.ts +3 -3
  46. package/dist/dto/saml/saml-preferences.dto.d.ts +5 -5
  47. package/dist/dto/security-settings/security-settings.dto.d.ts +6 -6
  48. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +6 -6
  49. package/dist/dto/user/users-list-filter.dto.d.ts +3 -3
  50. package/dist/dto/variables/update-variable-request.dto.d.ts +1 -1
  51. package/dist/dto/workflows/base-workflow.dto.d.ts +7 -7
  52. package/dist/dto/workflows/create-workflow.dto.d.ts +6 -6
  53. package/dist/dto/workflows/update-workflow.dto.d.ts +6 -6
  54. package/dist/frontend-settings.d.ts +2 -0
  55. package/dist/index.d.ts +4 -3
  56. package/dist/index.js +12 -3
  57. package/dist/index.js.map +1 -1
  58. package/dist/instance-registry-types.d.ts +22 -22
  59. package/dist/schemas/agent-run-reducer.d.ts +2 -0
  60. package/dist/schemas/agent-run-reducer.js +40 -1
  61. package/dist/schemas/agent-run-reducer.js.map +1 -1
  62. package/dist/schemas/breaking-changes.schema.d.ts +65 -65
  63. package/dist/schemas/breaking-changes.schema.js +2 -2
  64. package/dist/schemas/breaking-changes.schema.js.map +1 -1
  65. package/dist/schemas/credential-resolver.schema.d.ts +12 -12
  66. package/dist/schemas/credential-response.schema.d.ts +2 -2
  67. package/dist/schemas/data-table.schema.d.ts +2 -2
  68. package/dist/schemas/encryption-key.schema.d.ts +6 -6
  69. package/dist/schemas/instance-ai.schema.d.ts +337 -199
  70. package/dist/schemas/instance-ai.schema.js +34 -3
  71. package/dist/schemas/instance-ai.schema.js.map +1 -1
  72. package/dist/schemas/secrets-provider.schema.d.ts +12 -12
  73. package/dist/schemas/source-controlled-file.schema.d.ts +4 -4
  74. package/dist/schemas/usage.schema.d.ts +14 -14
  75. package/dist/schemas/user.schema.d.ts +18 -18
  76. package/dist/schemas/workflow-publication-status.schema.d.ts +38 -0
  77. package/dist/schemas/workflow-publication-status.schema.js +15 -0
  78. package/dist/schemas/workflow-publication-status.schema.js.map +1 -0
  79. package/package.json +13 -9
  80. package/dist/dto/packages/export-workflows-request.dto.d.ts +0 -9
  81. package/dist/dto/packages/export-workflows-request.dto.js +0 -11
  82. package/dist/dto/packages/export-workflows-request.dto.js.map +0 -1
@@ -192,6 +192,76 @@ declare const MemoryConfigSchema: z.ZodObject<{
192
192
  maxEntriesPerRun?: number | undefined;
193
193
  } | undefined;
194
194
  }>;
195
+ export declare const PromptCachingConfigSchema: z.ZodObject<{
196
+ enabled: z.ZodBoolean;
197
+ anthropic: z.ZodOptional<z.ZodObject<{
198
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ ttl?: "5m" | "1h" | undefined;
201
+ }, {
202
+ ttl?: "5m" | "1h" | undefined;
203
+ }>>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ enabled: boolean;
206
+ anthropic?: {
207
+ ttl?: "5m" | "1h" | undefined;
208
+ } | undefined;
209
+ }, {
210
+ enabled: boolean;
211
+ anthropic?: {
212
+ ttl?: "5m" | "1h" | undefined;
213
+ } | undefined;
214
+ }>;
215
+ export declare const DEFAULT_AGENT_PERSONALISATION: {
216
+ readonly icon: "bot";
217
+ readonly gradient: {
218
+ readonly from: "#FF1500";
219
+ readonly to: "#FF6900";
220
+ readonly angle: 135;
221
+ readonly fromStop: 0;
222
+ readonly toStop: 100;
223
+ };
224
+ };
225
+ declare const AgentPersonalisationConfigSchema: z.ZodObject<{
226
+ icon: z.ZodString;
227
+ gradient: z.ZodDefault<z.ZodObject<{
228
+ from: z.ZodString;
229
+ to: z.ZodString;
230
+ angle: z.ZodDefault<z.ZodNumber>;
231
+ fromStop: z.ZodDefault<z.ZodNumber>;
232
+ toStop: z.ZodDefault<z.ZodNumber>;
233
+ }, "strict", z.ZodTypeAny, {
234
+ from: string;
235
+ to: string;
236
+ angle: number;
237
+ fromStop: number;
238
+ toStop: number;
239
+ }, {
240
+ from: string;
241
+ to: string;
242
+ angle?: number | undefined;
243
+ fromStop?: number | undefined;
244
+ toStop?: number | undefined;
245
+ }>>;
246
+ }, "strict", z.ZodTypeAny, {
247
+ icon: string;
248
+ gradient: {
249
+ from: string;
250
+ to: string;
251
+ angle: number;
252
+ fromStop: number;
253
+ toStop: number;
254
+ };
255
+ }, {
256
+ icon: string;
257
+ gradient?: {
258
+ from: string;
259
+ to: string;
260
+ angle?: number | undefined;
261
+ fromStop?: number | undefined;
262
+ toStop?: number | undefined;
263
+ } | undefined;
264
+ }>;
195
265
  export declare const SUB_AGENT_USE_WHEN_MAX_LENGTH = 512;
196
266
  export declare const SUB_AGENT_TASK_DIFFICULTIES: readonly ["low", "medium", "high"];
197
267
  declare const SubAgentTaskDifficultySchema: z.ZodEnum<["low", "medium", "high"]>;
@@ -203,27 +273,27 @@ export declare const NodeConfigSchema: z.ZodObject<{
203
273
  id: z.ZodString;
204
274
  name: z.ZodString;
205
275
  }, "strip", z.ZodTypeAny, {
206
- id: string;
207
276
  name: string;
208
- }, {
209
277
  id: string;
278
+ }, {
210
279
  name: string;
280
+ id: string;
211
281
  }>>>;
212
282
  }, "strip", z.ZodTypeAny, {
213
283
  nodeType: string;
214
284
  nodeTypeVersion: number;
215
285
  nodeParameters: Record<string, unknown>;
216
286
  credentials?: Record<string, {
217
- id: string;
218
287
  name: string;
288
+ id: string;
219
289
  }> | undefined;
220
290
  }, {
221
291
  nodeType: string;
222
292
  nodeTypeVersion: number;
223
293
  nodeParameters?: Record<string, unknown> | undefined;
224
294
  credentials?: Record<string, {
225
- id: string;
226
295
  name: string;
296
+ id: string;
227
297
  }> | undefined;
228
298
  }>;
229
299
  declare const AgentJsonSkillConfigSchema: z.ZodObject<{
@@ -268,8 +338,8 @@ export declare const McpServerConfigSchema: z.ZodObject<{
268
338
  mode: z.ZodLiteral<"allow">;
269
339
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
270
340
  }, "strict", z.ZodTypeAny, {
271
- mode: "allow";
272
341
  tools: string[];
342
+ mode: "allow";
273
343
  }, {
274
344
  mode: "allow";
275
345
  tools?: string[] | undefined;
@@ -277,8 +347,8 @@ export declare const McpServerConfigSchema: z.ZodObject<{
277
347
  mode: z.ZodLiteral<"exclude">;
278
348
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
279
349
  }, "strict", z.ZodTypeAny, {
280
- mode: "exclude";
281
350
  tools: string[];
351
+ mode: "exclude";
282
352
  }, {
283
353
  mode: "exclude";
284
354
  tools?: string[] | undefined;
@@ -293,11 +363,11 @@ export declare const McpServerConfigSchema: z.ZodObject<{
293
363
  mode: z.ZodLiteral<"selected">;
294
364
  tools: z.ZodArray<z.ZodString, "many">;
295
365
  }, "strict", z.ZodTypeAny, {
296
- mode: "selected";
297
366
  tools: string[];
298
- }, {
299
367
  mode: "selected";
368
+ }, {
300
369
  tools: string[];
370
+ mode: "selected";
301
371
  }>]>>;
302
372
  connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
303
373
  }, "strict", z.ZodTypeAny, {
@@ -305,35 +375,35 @@ export declare const McpServerConfigSchema: z.ZodObject<{
305
375
  url: string;
306
376
  transport: "sse" | "streamableHttp";
307
377
  authentication: string;
308
- description?: string | undefined;
309
378
  approval?: {
310
379
  mode: "global";
311
380
  } | {
312
- mode: "selected";
313
381
  tools: string[];
382
+ mode: "selected";
314
383
  } | undefined;
384
+ description?: string | undefined;
315
385
  credential?: string | undefined;
316
386
  metadata?: {
317
387
  nodeTypeName?: string | undefined;
318
388
  } | undefined;
319
389
  toolFilter?: {
320
- mode: "allow";
321
390
  tools: string[];
391
+ mode: "allow";
322
392
  } | {
323
- mode: "exclude";
324
393
  tools: string[];
394
+ mode: "exclude";
325
395
  } | undefined;
326
396
  connectionTimeoutMs?: number | undefined;
327
397
  }, {
328
398
  name: string;
329
399
  url: string;
330
- description?: string | undefined;
331
400
  approval?: {
332
401
  mode: "global";
333
402
  } | {
334
- mode: "selected";
335
403
  tools: string[];
404
+ mode: "selected";
336
405
  } | undefined;
406
+ description?: string | undefined;
337
407
  credential?: string | undefined;
338
408
  transport?: "sse" | "streamableHttp" | undefined;
339
409
  authentication?: string | undefined;
@@ -372,15 +442,15 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
372
442
  type: "workflow";
373
443
  workflow: string;
374
444
  description?: string | undefined;
375
- requireApproval?: boolean | undefined;
376
445
  name?: string | undefined;
446
+ requireApproval?: boolean | undefined;
377
447
  allOutputs?: boolean | undefined;
378
448
  }, {
379
449
  type: "workflow";
380
450
  workflow: string;
381
451
  description?: string | undefined;
382
- requireApproval?: boolean | undefined;
383
452
  name?: string | undefined;
453
+ requireApproval?: boolean | undefined;
384
454
  allOutputs?: boolean | undefined;
385
455
  }>, z.ZodObject<{
386
456
  type: z.ZodLiteral<"node">;
@@ -395,27 +465,27 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
395
465
  id: z.ZodString;
396
466
  name: z.ZodString;
397
467
  }, "strip", z.ZodTypeAny, {
398
- id: string;
399
468
  name: string;
400
- }, {
401
469
  id: string;
470
+ }, {
402
471
  name: string;
472
+ id: string;
403
473
  }>>>;
404
474
  }, "strip", z.ZodTypeAny, {
405
475
  nodeType: string;
406
476
  nodeTypeVersion: number;
407
477
  nodeParameters: Record<string, unknown>;
408
478
  credentials?: Record<string, {
409
- id: string;
410
479
  name: string;
480
+ id: string;
411
481
  }> | undefined;
412
482
  }, {
413
483
  nodeType: string;
414
484
  nodeTypeVersion: number;
415
485
  nodeParameters?: Record<string, unknown> | undefined;
416
486
  credentials?: Record<string, {
417
- id: string;
418
487
  name: string;
488
+ id: string;
419
489
  }> | undefined;
420
490
  }>;
421
491
  requireApproval: z.ZodOptional<z.ZodBoolean>;
@@ -427,8 +497,8 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
427
497
  nodeTypeVersion: number;
428
498
  nodeParameters: Record<string, unknown>;
429
499
  credentials?: Record<string, {
430
- id: string;
431
500
  name: string;
501
+ id: string;
432
502
  }> | undefined;
433
503
  };
434
504
  description?: string | undefined;
@@ -442,8 +512,8 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
442
512
  nodeTypeVersion: number;
443
513
  nodeParameters?: Record<string, unknown> | undefined;
444
514
  credentials?: Record<string, {
445
- id: string;
446
515
  name: string;
516
+ id: string;
447
517
  }> | undefined;
448
518
  };
449
519
  description?: string | undefined;
@@ -455,6 +525,46 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
455
525
  model: z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>;
456
526
  credential: z.ZodOptional<z.ZodString>;
457
527
  instructions: z.ZodString;
528
+ personalisation: z.ZodOptional<z.ZodObject<{
529
+ icon: z.ZodString;
530
+ gradient: z.ZodDefault<z.ZodObject<{
531
+ from: z.ZodString;
532
+ to: z.ZodString;
533
+ angle: z.ZodDefault<z.ZodNumber>;
534
+ fromStop: z.ZodDefault<z.ZodNumber>;
535
+ toStop: z.ZodDefault<z.ZodNumber>;
536
+ }, "strict", z.ZodTypeAny, {
537
+ from: string;
538
+ to: string;
539
+ angle: number;
540
+ fromStop: number;
541
+ toStop: number;
542
+ }, {
543
+ from: string;
544
+ to: string;
545
+ angle?: number | undefined;
546
+ fromStop?: number | undefined;
547
+ toStop?: number | undefined;
548
+ }>>;
549
+ }, "strict", z.ZodTypeAny, {
550
+ icon: string;
551
+ gradient: {
552
+ from: string;
553
+ to: string;
554
+ angle: number;
555
+ fromStop: number;
556
+ toStop: number;
557
+ };
558
+ }, {
559
+ icon: string;
560
+ gradient?: {
561
+ from: string;
562
+ to: string;
563
+ angle?: number | undefined;
564
+ fromStop?: number | undefined;
565
+ toStop?: number | undefined;
566
+ } | undefined;
567
+ }>>;
458
568
  memory: z.ZodOptional<z.ZodObject<{
459
569
  enabled: z.ZodBoolean;
460
570
  storage: z.ZodEnum<["n8n"]>;
@@ -779,15 +889,15 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
779
889
  type: "workflow";
780
890
  workflow: string;
781
891
  description?: string | undefined;
782
- requireApproval?: boolean | undefined;
783
892
  name?: string | undefined;
893
+ requireApproval?: boolean | undefined;
784
894
  allOutputs?: boolean | undefined;
785
895
  }, {
786
896
  type: "workflow";
787
897
  workflow: string;
788
898
  description?: string | undefined;
789
- requireApproval?: boolean | undefined;
790
899
  name?: string | undefined;
900
+ requireApproval?: boolean | undefined;
791
901
  allOutputs?: boolean | undefined;
792
902
  }>, z.ZodObject<{
793
903
  type: z.ZodLiteral<"node">;
@@ -802,27 +912,27 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
802
912
  id: z.ZodString;
803
913
  name: z.ZodString;
804
914
  }, "strip", z.ZodTypeAny, {
805
- id: string;
806
915
  name: string;
807
- }, {
808
916
  id: string;
917
+ }, {
809
918
  name: string;
919
+ id: string;
810
920
  }>>>;
811
921
  }, "strip", z.ZodTypeAny, {
812
922
  nodeType: string;
813
923
  nodeTypeVersion: number;
814
924
  nodeParameters: Record<string, unknown>;
815
925
  credentials?: Record<string, {
816
- id: string;
817
926
  name: string;
927
+ id: string;
818
928
  }> | undefined;
819
929
  }, {
820
930
  nodeType: string;
821
931
  nodeTypeVersion: number;
822
932
  nodeParameters?: Record<string, unknown> | undefined;
823
933
  credentials?: Record<string, {
824
- id: string;
825
934
  name: string;
935
+ id: string;
826
936
  }> | undefined;
827
937
  }>;
828
938
  requireApproval: z.ZodOptional<z.ZodBoolean>;
@@ -834,8 +944,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
834
944
  nodeTypeVersion: number;
835
945
  nodeParameters: Record<string, unknown>;
836
946
  credentials?: Record<string, {
837
- id: string;
838
947
  name: string;
948
+ id: string;
839
949
  }> | undefined;
840
950
  };
841
951
  description?: string | undefined;
@@ -849,8 +959,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
849
959
  nodeTypeVersion: number;
850
960
  nodeParameters?: Record<string, unknown> | undefined;
851
961
  credentials?: Record<string, {
852
- id: string;
853
962
  name: string;
963
+ id: string;
854
964
  }> | undefined;
855
965
  };
856
966
  description?: string | undefined;
@@ -864,8 +974,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
864
974
  type: "workflow";
865
975
  workflow: string;
866
976
  description?: string | undefined;
867
- requireApproval?: boolean | undefined;
868
977
  name?: string | undefined;
978
+ requireApproval?: boolean | undefined;
869
979
  allOutputs?: boolean | undefined;
870
980
  } | {
871
981
  type: "node";
@@ -875,8 +985,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
875
985
  nodeTypeVersion: number;
876
986
  nodeParameters: Record<string, unknown>;
877
987
  credentials?: Record<string, {
878
- id: string;
879
988
  name: string;
989
+ id: string;
880
990
  }> | undefined;
881
991
  };
882
992
  description?: string | undefined;
@@ -890,8 +1000,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
890
1000
  type: "workflow";
891
1001
  workflow: string;
892
1002
  description?: string | undefined;
893
- requireApproval?: boolean | undefined;
894
1003
  name?: string | undefined;
1004
+ requireApproval?: boolean | undefined;
895
1005
  allOutputs?: boolean | undefined;
896
1006
  } | {
897
1007
  type: "node";
@@ -901,8 +1011,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
901
1011
  nodeTypeVersion: number;
902
1012
  nodeParameters?: Record<string, unknown> | undefined;
903
1013
  credentials?: Record<string, {
904
- id: string;
905
1014
  name: string;
1015
+ id: string;
906
1016
  }> | undefined;
907
1017
  };
908
1018
  description?: string | undefined;
@@ -1010,8 +1120,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1010
1120
  mode: z.ZodLiteral<"allow">;
1011
1121
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1012
1122
  }, "strict", z.ZodTypeAny, {
1013
- mode: "allow";
1014
1123
  tools: string[];
1124
+ mode: "allow";
1015
1125
  }, {
1016
1126
  mode: "allow";
1017
1127
  tools?: string[] | undefined;
@@ -1019,8 +1129,8 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1019
1129
  mode: z.ZodLiteral<"exclude">;
1020
1130
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1021
1131
  }, "strict", z.ZodTypeAny, {
1022
- mode: "exclude";
1023
1132
  tools: string[];
1133
+ mode: "exclude";
1024
1134
  }, {
1025
1135
  mode: "exclude";
1026
1136
  tools?: string[] | undefined;
@@ -1035,11 +1145,11 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1035
1145
  mode: z.ZodLiteral<"selected">;
1036
1146
  tools: z.ZodArray<z.ZodString, "many">;
1037
1147
  }, "strict", z.ZodTypeAny, {
1038
- mode: "selected";
1039
1148
  tools: string[];
1040
- }, {
1041
1149
  mode: "selected";
1150
+ }, {
1042
1151
  tools: string[];
1152
+ mode: "selected";
1043
1153
  }>]>>;
1044
1154
  connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
1045
1155
  }, "strict", z.ZodTypeAny, {
@@ -1047,35 +1157,35 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1047
1157
  url: string;
1048
1158
  transport: "sse" | "streamableHttp";
1049
1159
  authentication: string;
1050
- description?: string | undefined;
1051
1160
  approval?: {
1052
1161
  mode: "global";
1053
1162
  } | {
1054
- mode: "selected";
1055
1163
  tools: string[];
1164
+ mode: "selected";
1056
1165
  } | undefined;
1166
+ description?: string | undefined;
1057
1167
  credential?: string | undefined;
1058
1168
  metadata?: {
1059
1169
  nodeTypeName?: string | undefined;
1060
1170
  } | undefined;
1061
1171
  toolFilter?: {
1062
- mode: "allow";
1063
1172
  tools: string[];
1173
+ mode: "allow";
1064
1174
  } | {
1065
- mode: "exclude";
1066
1175
  tools: string[];
1176
+ mode: "exclude";
1067
1177
  } | undefined;
1068
1178
  connectionTimeoutMs?: number | undefined;
1069
1179
  }, {
1070
1180
  name: string;
1071
1181
  url: string;
1072
- description?: string | undefined;
1073
1182
  approval?: {
1074
1183
  mode: "global";
1075
1184
  } | {
1076
- mode: "selected";
1077
1185
  tools: string[];
1186
+ mode: "selected";
1078
1187
  } | undefined;
1188
+ description?: string | undefined;
1079
1189
  credential?: string | undefined;
1080
1190
  transport?: "sse" | "streamableHttp" | undefined;
1081
1191
  authentication?: string | undefined;
@@ -1095,35 +1205,35 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1095
1205
  url: string;
1096
1206
  transport: "sse" | "streamableHttp";
1097
1207
  authentication: string;
1098
- description?: string | undefined;
1099
1208
  approval?: {
1100
1209
  mode: "global";
1101
1210
  } | {
1102
- mode: "selected";
1103
1211
  tools: string[];
1212
+ mode: "selected";
1104
1213
  } | undefined;
1214
+ description?: string | undefined;
1105
1215
  credential?: string | undefined;
1106
1216
  metadata?: {
1107
1217
  nodeTypeName?: string | undefined;
1108
1218
  } | undefined;
1109
1219
  toolFilter?: {
1110
- mode: "allow";
1111
1220
  tools: string[];
1221
+ mode: "allow";
1112
1222
  } | {
1113
- mode: "exclude";
1114
1223
  tools: string[];
1224
+ mode: "exclude";
1115
1225
  } | undefined;
1116
1226
  connectionTimeoutMs?: number | undefined;
1117
1227
  }[], {
1118
1228
  name: string;
1119
1229
  url: string;
1120
- description?: string | undefined;
1121
1230
  approval?: {
1122
1231
  mode: "global";
1123
1232
  } | {
1124
- mode: "selected";
1125
1233
  tools: string[];
1234
+ mode: "selected";
1126
1235
  } | undefined;
1236
+ description?: string | undefined;
1127
1237
  credential?: string | undefined;
1128
1238
  transport?: "sse" | "streamableHttp" | undefined;
1129
1239
  authentication?: string | undefined;
@@ -1153,6 +1263,26 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1153
1263
  budgetTokens?: number | undefined;
1154
1264
  reasoningEffort?: string | undefined;
1155
1265
  }>>;
1266
+ promptCaching: z.ZodOptional<z.ZodObject<{
1267
+ enabled: z.ZodBoolean;
1268
+ anthropic: z.ZodOptional<z.ZodObject<{
1269
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
1270
+ }, "strip", z.ZodTypeAny, {
1271
+ ttl?: "5m" | "1h" | undefined;
1272
+ }, {
1273
+ ttl?: "5m" | "1h" | undefined;
1274
+ }>>;
1275
+ }, "strip", z.ZodTypeAny, {
1276
+ enabled: boolean;
1277
+ anthropic?: {
1278
+ ttl?: "5m" | "1h" | undefined;
1279
+ } | undefined;
1280
+ }, {
1281
+ enabled: boolean;
1282
+ anthropic?: {
1283
+ ttl?: "5m" | "1h" | undefined;
1284
+ } | undefined;
1285
+ }>>;
1156
1286
  webSearch: z.ZodOptional<z.ZodObject<{
1157
1287
  enabled: z.ZodBoolean;
1158
1288
  provider: z.ZodOptional<z.ZodEnum<["auto", "native", "brave", "searxng"]>>;
@@ -1174,6 +1304,12 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1174
1304
  budgetTokens?: number | undefined;
1175
1305
  reasoningEffort?: string | undefined;
1176
1306
  } | undefined;
1307
+ promptCaching?: {
1308
+ enabled: boolean;
1309
+ anthropic?: {
1310
+ ttl?: "5m" | "1h" | undefined;
1311
+ } | undefined;
1312
+ } | undefined;
1177
1313
  webSearch?: {
1178
1314
  enabled: boolean;
1179
1315
  provider?: "auto" | "native" | "brave" | "searxng" | undefined;
@@ -1187,6 +1323,12 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1187
1323
  budgetTokens?: number | undefined;
1188
1324
  reasoningEffort?: string | undefined;
1189
1325
  } | undefined;
1326
+ promptCaching?: {
1327
+ enabled: boolean;
1328
+ anthropic?: {
1329
+ ttl?: "5m" | "1h" | undefined;
1330
+ } | undefined;
1331
+ } | undefined;
1190
1332
  webSearch?: {
1191
1333
  enabled: boolean;
1192
1334
  provider?: "auto" | "native" | "brave" | "searxng" | undefined;
@@ -1200,33 +1342,16 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1200
1342
  name: string;
1201
1343
  instructions: string;
1202
1344
  credential?: string | undefined;
1203
- tools?: ({
1204
- type: "custom";
1205
- id: string;
1206
- requireApproval?: boolean | undefined;
1207
- } | {
1208
- type: "workflow";
1209
- workflow: string;
1210
- description?: string | undefined;
1211
- requireApproval?: boolean | undefined;
1212
- name?: string | undefined;
1213
- allOutputs?: boolean | undefined;
1214
- } | {
1215
- type: "node";
1216
- name: string;
1217
- node: {
1218
- nodeType: string;
1219
- nodeTypeVersion: number;
1220
- nodeParameters: Record<string, unknown>;
1221
- credentials?: Record<string, {
1222
- id: string;
1223
- name: string;
1224
- }> | undefined;
1345
+ personalisation?: {
1346
+ icon: string;
1347
+ gradient: {
1348
+ from: string;
1349
+ to: string;
1350
+ angle: number;
1351
+ fromStop: number;
1352
+ toStop: number;
1225
1353
  };
1226
- description?: string | undefined;
1227
- requireApproval?: boolean | undefined;
1228
- inputSchema?: undefined;
1229
- })[] | undefined;
1354
+ } | undefined;
1230
1355
  memory?: {
1231
1356
  enabled: boolean;
1232
1357
  storage: "n8n";
@@ -1284,6 +1409,33 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1284
1409
  } | undefined;
1285
1410
  } | undefined;
1286
1411
  } | undefined;
1412
+ tools?: ({
1413
+ type: "custom";
1414
+ id: string;
1415
+ requireApproval?: boolean | undefined;
1416
+ } | {
1417
+ type: "workflow";
1418
+ workflow: string;
1419
+ description?: string | undefined;
1420
+ name?: string | undefined;
1421
+ requireApproval?: boolean | undefined;
1422
+ allOutputs?: boolean | undefined;
1423
+ } | {
1424
+ type: "node";
1425
+ name: string;
1426
+ node: {
1427
+ nodeType: string;
1428
+ nodeTypeVersion: number;
1429
+ nodeParameters: Record<string, unknown>;
1430
+ credentials?: Record<string, {
1431
+ name: string;
1432
+ id: string;
1433
+ }> | undefined;
1434
+ };
1435
+ description?: string | undefined;
1436
+ requireApproval?: boolean | undefined;
1437
+ inputSchema?: undefined;
1438
+ })[] | undefined;
1287
1439
  skills?: {
1288
1440
  type: "skill";
1289
1441
  id: string;
@@ -1313,23 +1465,23 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1313
1465
  url: string;
1314
1466
  transport: "sse" | "streamableHttp";
1315
1467
  authentication: string;
1316
- description?: string | undefined;
1317
1468
  approval?: {
1318
1469
  mode: "global";
1319
1470
  } | {
1320
- mode: "selected";
1321
1471
  tools: string[];
1472
+ mode: "selected";
1322
1473
  } | undefined;
1474
+ description?: string | undefined;
1323
1475
  credential?: string | undefined;
1324
1476
  metadata?: {
1325
1477
  nodeTypeName?: string | undefined;
1326
1478
  } | undefined;
1327
1479
  toolFilter?: {
1328
- mode: "allow";
1329
1480
  tools: string[];
1481
+ mode: "allow";
1330
1482
  } | {
1331
- mode: "exclude";
1332
1483
  tools: string[];
1484
+ mode: "exclude";
1333
1485
  } | undefined;
1334
1486
  connectionTimeoutMs?: number | undefined;
1335
1487
  }[] | undefined;
@@ -1339,6 +1491,12 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1339
1491
  budgetTokens?: number | undefined;
1340
1492
  reasoningEffort?: string | undefined;
1341
1493
  } | undefined;
1494
+ promptCaching?: {
1495
+ enabled: boolean;
1496
+ anthropic?: {
1497
+ ttl?: "5m" | "1h" | undefined;
1498
+ } | undefined;
1499
+ } | undefined;
1342
1500
  webSearch?: {
1343
1501
  enabled: boolean;
1344
1502
  provider?: "auto" | "native" | "brave" | "searxng" | undefined;
@@ -1352,33 +1510,16 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1352
1510
  name: string;
1353
1511
  instructions: string;
1354
1512
  credential?: string | undefined;
1355
- tools?: ({
1356
- type: "custom";
1357
- id: string;
1358
- requireApproval?: boolean | undefined;
1359
- } | {
1360
- type: "workflow";
1361
- workflow: string;
1362
- description?: string | undefined;
1363
- requireApproval?: boolean | undefined;
1364
- name?: string | undefined;
1365
- allOutputs?: boolean | undefined;
1366
- } | {
1367
- type: "node";
1368
- name: string;
1369
- node: {
1370
- nodeType: string;
1371
- nodeTypeVersion: number;
1372
- nodeParameters?: Record<string, unknown> | undefined;
1373
- credentials?: Record<string, {
1374
- id: string;
1375
- name: string;
1376
- }> | undefined;
1377
- };
1378
- description?: string | undefined;
1379
- requireApproval?: boolean | undefined;
1380
- inputSchema?: undefined;
1381
- })[] | undefined;
1513
+ personalisation?: {
1514
+ icon: string;
1515
+ gradient?: {
1516
+ from: string;
1517
+ to: string;
1518
+ angle?: number | undefined;
1519
+ fromStop?: number | undefined;
1520
+ toStop?: number | undefined;
1521
+ } | undefined;
1522
+ } | undefined;
1382
1523
  memory?: {
1383
1524
  enabled: boolean;
1384
1525
  storage: "n8n";
@@ -1436,21 +1577,48 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1436
1577
  } | undefined;
1437
1578
  } | undefined;
1438
1579
  } | undefined;
1439
- skills?: {
1440
- type: "skill";
1441
- id: string;
1442
- }[] | undefined;
1443
- tasks?: {
1444
- type: "task";
1445
- enabled: boolean;
1580
+ tools?: ({
1581
+ type: "custom";
1446
1582
  id: string;
1447
- }[] | undefined;
1448
- providerTools?: Record<string, Record<string, unknown>> | undefined;
1449
- integrations?: ({
1450
- type: "telegram";
1451
- credentialId: string;
1452
- settings?: {
1453
- accessMode: "private" | "public";
1583
+ requireApproval?: boolean | undefined;
1584
+ } | {
1585
+ type: "workflow";
1586
+ workflow: string;
1587
+ description?: string | undefined;
1588
+ name?: string | undefined;
1589
+ requireApproval?: boolean | undefined;
1590
+ allOutputs?: boolean | undefined;
1591
+ } | {
1592
+ type: "node";
1593
+ name: string;
1594
+ node: {
1595
+ nodeType: string;
1596
+ nodeTypeVersion: number;
1597
+ nodeParameters?: Record<string, unknown> | undefined;
1598
+ credentials?: Record<string, {
1599
+ name: string;
1600
+ id: string;
1601
+ }> | undefined;
1602
+ };
1603
+ description?: string | undefined;
1604
+ requireApproval?: boolean | undefined;
1605
+ inputSchema?: undefined;
1606
+ })[] | undefined;
1607
+ skills?: {
1608
+ type: "skill";
1609
+ id: string;
1610
+ }[] | undefined;
1611
+ tasks?: {
1612
+ type: "task";
1613
+ enabled: boolean;
1614
+ id: string;
1615
+ }[] | undefined;
1616
+ providerTools?: Record<string, Record<string, unknown>> | undefined;
1617
+ integrations?: ({
1618
+ type: "telegram";
1619
+ credentialId: string;
1620
+ settings?: {
1621
+ accessMode: "private" | "public";
1454
1622
  allowedUsers?: string[] | undefined;
1455
1623
  } | undefined;
1456
1624
  } | {
@@ -1463,13 +1631,13 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1463
1631
  mcpServers?: {
1464
1632
  name: string;
1465
1633
  url: string;
1466
- description?: string | undefined;
1467
1634
  approval?: {
1468
1635
  mode: "global";
1469
1636
  } | {
1470
- mode: "selected";
1471
1637
  tools: string[];
1638
+ mode: "selected";
1472
1639
  } | undefined;
1640
+ description?: string | undefined;
1473
1641
  credential?: string | undefined;
1474
1642
  transport?: "sse" | "streamableHttp" | undefined;
1475
1643
  authentication?: string | undefined;
@@ -1491,6 +1659,12 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1491
1659
  budgetTokens?: number | undefined;
1492
1660
  reasoningEffort?: string | undefined;
1493
1661
  } | undefined;
1662
+ promptCaching?: {
1663
+ enabled: boolean;
1664
+ anthropic?: {
1665
+ ttl?: "5m" | "1h" | undefined;
1666
+ } | undefined;
1667
+ } | undefined;
1494
1668
  webSearch?: {
1495
1669
  enabled: boolean;
1496
1670
  provider?: "auto" | "native" | "brave" | "searxng" | undefined;
@@ -1503,6 +1677,46 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
1503
1677
  export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
1504
1678
  name: z.ZodString;
1505
1679
  instructions: z.ZodString;
1680
+ personalisation: z.ZodOptional<z.ZodObject<{
1681
+ icon: z.ZodString;
1682
+ gradient: z.ZodDefault<z.ZodObject<{
1683
+ from: z.ZodString;
1684
+ to: z.ZodString;
1685
+ angle: z.ZodDefault<z.ZodNumber>;
1686
+ fromStop: z.ZodDefault<z.ZodNumber>;
1687
+ toStop: z.ZodDefault<z.ZodNumber>;
1688
+ }, "strict", z.ZodTypeAny, {
1689
+ from: string;
1690
+ to: string;
1691
+ angle: number;
1692
+ fromStop: number;
1693
+ toStop: number;
1694
+ }, {
1695
+ from: string;
1696
+ to: string;
1697
+ angle?: number | undefined;
1698
+ fromStop?: number | undefined;
1699
+ toStop?: number | undefined;
1700
+ }>>;
1701
+ }, "strict", z.ZodTypeAny, {
1702
+ icon: string;
1703
+ gradient: {
1704
+ from: string;
1705
+ to: string;
1706
+ angle: number;
1707
+ fromStop: number;
1708
+ toStop: number;
1709
+ };
1710
+ }, {
1711
+ icon: string;
1712
+ gradient?: {
1713
+ from: string;
1714
+ to: string;
1715
+ angle?: number | undefined;
1716
+ fromStop?: number | undefined;
1717
+ toStop?: number | undefined;
1718
+ } | undefined;
1719
+ }>>;
1506
1720
  memory: z.ZodOptional<z.ZodObject<{
1507
1721
  enabled: z.ZodBoolean;
1508
1722
  storage: z.ZodEnum<["n8n"]>;
@@ -1827,15 +2041,15 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
1827
2041
  type: "workflow";
1828
2042
  workflow: string;
1829
2043
  description?: string | undefined;
1830
- requireApproval?: boolean | undefined;
1831
2044
  name?: string | undefined;
2045
+ requireApproval?: boolean | undefined;
1832
2046
  allOutputs?: boolean | undefined;
1833
2047
  }, {
1834
2048
  type: "workflow";
1835
2049
  workflow: string;
1836
2050
  description?: string | undefined;
1837
- requireApproval?: boolean | undefined;
1838
2051
  name?: string | undefined;
2052
+ requireApproval?: boolean | undefined;
1839
2053
  allOutputs?: boolean | undefined;
1840
2054
  }>, z.ZodObject<{
1841
2055
  type: z.ZodLiteral<"node">;
@@ -1850,27 +2064,27 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
1850
2064
  id: z.ZodString;
1851
2065
  name: z.ZodString;
1852
2066
  }, "strip", z.ZodTypeAny, {
1853
- id: string;
1854
2067
  name: string;
1855
- }, {
1856
2068
  id: string;
2069
+ }, {
1857
2070
  name: string;
2071
+ id: string;
1858
2072
  }>>>;
1859
2073
  }, "strip", z.ZodTypeAny, {
1860
2074
  nodeType: string;
1861
2075
  nodeTypeVersion: number;
1862
2076
  nodeParameters: Record<string, unknown>;
1863
2077
  credentials?: Record<string, {
1864
- id: string;
1865
2078
  name: string;
2079
+ id: string;
1866
2080
  }> | undefined;
1867
2081
  }, {
1868
2082
  nodeType: string;
1869
2083
  nodeTypeVersion: number;
1870
2084
  nodeParameters?: Record<string, unknown> | undefined;
1871
2085
  credentials?: Record<string, {
1872
- id: string;
1873
2086
  name: string;
2087
+ id: string;
1874
2088
  }> | undefined;
1875
2089
  }>;
1876
2090
  requireApproval: z.ZodOptional<z.ZodBoolean>;
@@ -1882,8 +2096,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
1882
2096
  nodeTypeVersion: number;
1883
2097
  nodeParameters: Record<string, unknown>;
1884
2098
  credentials?: Record<string, {
1885
- id: string;
1886
2099
  name: string;
2100
+ id: string;
1887
2101
  }> | undefined;
1888
2102
  };
1889
2103
  description?: string | undefined;
@@ -1897,8 +2111,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
1897
2111
  nodeTypeVersion: number;
1898
2112
  nodeParameters?: Record<string, unknown> | undefined;
1899
2113
  credentials?: Record<string, {
1900
- id: string;
1901
2114
  name: string;
2115
+ id: string;
1902
2116
  }> | undefined;
1903
2117
  };
1904
2118
  description?: string | undefined;
@@ -1912,8 +2126,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
1912
2126
  type: "workflow";
1913
2127
  workflow: string;
1914
2128
  description?: string | undefined;
1915
- requireApproval?: boolean | undefined;
1916
2129
  name?: string | undefined;
2130
+ requireApproval?: boolean | undefined;
1917
2131
  allOutputs?: boolean | undefined;
1918
2132
  } | {
1919
2133
  type: "node";
@@ -1923,8 +2137,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
1923
2137
  nodeTypeVersion: number;
1924
2138
  nodeParameters: Record<string, unknown>;
1925
2139
  credentials?: Record<string, {
1926
- id: string;
1927
2140
  name: string;
2141
+ id: string;
1928
2142
  }> | undefined;
1929
2143
  };
1930
2144
  description?: string | undefined;
@@ -1938,8 +2152,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
1938
2152
  type: "workflow";
1939
2153
  workflow: string;
1940
2154
  description?: string | undefined;
1941
- requireApproval?: boolean | undefined;
1942
2155
  name?: string | undefined;
2156
+ requireApproval?: boolean | undefined;
1943
2157
  allOutputs?: boolean | undefined;
1944
2158
  } | {
1945
2159
  type: "node";
@@ -1949,8 +2163,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
1949
2163
  nodeTypeVersion: number;
1950
2164
  nodeParameters?: Record<string, unknown> | undefined;
1951
2165
  credentials?: Record<string, {
1952
- id: string;
1953
2166
  name: string;
2167
+ id: string;
1954
2168
  }> | undefined;
1955
2169
  };
1956
2170
  description?: string | undefined;
@@ -2058,8 +2272,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2058
2272
  mode: z.ZodLiteral<"allow">;
2059
2273
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2060
2274
  }, "strict", z.ZodTypeAny, {
2061
- mode: "allow";
2062
2275
  tools: string[];
2276
+ mode: "allow";
2063
2277
  }, {
2064
2278
  mode: "allow";
2065
2279
  tools?: string[] | undefined;
@@ -2067,8 +2281,8 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2067
2281
  mode: z.ZodLiteral<"exclude">;
2068
2282
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2069
2283
  }, "strict", z.ZodTypeAny, {
2070
- mode: "exclude";
2071
2284
  tools: string[];
2285
+ mode: "exclude";
2072
2286
  }, {
2073
2287
  mode: "exclude";
2074
2288
  tools?: string[] | undefined;
@@ -2083,11 +2297,11 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2083
2297
  mode: z.ZodLiteral<"selected">;
2084
2298
  tools: z.ZodArray<z.ZodString, "many">;
2085
2299
  }, "strict", z.ZodTypeAny, {
2086
- mode: "selected";
2087
2300
  tools: string[];
2088
- }, {
2089
2301
  mode: "selected";
2302
+ }, {
2090
2303
  tools: string[];
2304
+ mode: "selected";
2091
2305
  }>]>>;
2092
2306
  connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
2093
2307
  }, "strict", z.ZodTypeAny, {
@@ -2095,35 +2309,35 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2095
2309
  url: string;
2096
2310
  transport: "sse" | "streamableHttp";
2097
2311
  authentication: string;
2098
- description?: string | undefined;
2099
2312
  approval?: {
2100
2313
  mode: "global";
2101
2314
  } | {
2102
- mode: "selected";
2103
2315
  tools: string[];
2316
+ mode: "selected";
2104
2317
  } | undefined;
2318
+ description?: string | undefined;
2105
2319
  credential?: string | undefined;
2106
2320
  metadata?: {
2107
2321
  nodeTypeName?: string | undefined;
2108
2322
  } | undefined;
2109
2323
  toolFilter?: {
2110
- mode: "allow";
2111
2324
  tools: string[];
2325
+ mode: "allow";
2112
2326
  } | {
2113
- mode: "exclude";
2114
2327
  tools: string[];
2328
+ mode: "exclude";
2115
2329
  } | undefined;
2116
2330
  connectionTimeoutMs?: number | undefined;
2117
2331
  }, {
2118
2332
  name: string;
2119
2333
  url: string;
2120
- description?: string | undefined;
2121
2334
  approval?: {
2122
2335
  mode: "global";
2123
2336
  } | {
2124
- mode: "selected";
2125
2337
  tools: string[];
2338
+ mode: "selected";
2126
2339
  } | undefined;
2340
+ description?: string | undefined;
2127
2341
  credential?: string | undefined;
2128
2342
  transport?: "sse" | "streamableHttp" | undefined;
2129
2343
  authentication?: string | undefined;
@@ -2143,35 +2357,35 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2143
2357
  url: string;
2144
2358
  transport: "sse" | "streamableHttp";
2145
2359
  authentication: string;
2146
- description?: string | undefined;
2147
2360
  approval?: {
2148
2361
  mode: "global";
2149
2362
  } | {
2150
- mode: "selected";
2151
2363
  tools: string[];
2364
+ mode: "selected";
2152
2365
  } | undefined;
2366
+ description?: string | undefined;
2153
2367
  credential?: string | undefined;
2154
2368
  metadata?: {
2155
2369
  nodeTypeName?: string | undefined;
2156
2370
  } | undefined;
2157
2371
  toolFilter?: {
2158
- mode: "allow";
2159
2372
  tools: string[];
2373
+ mode: "allow";
2160
2374
  } | {
2161
- mode: "exclude";
2162
2375
  tools: string[];
2376
+ mode: "exclude";
2163
2377
  } | undefined;
2164
2378
  connectionTimeoutMs?: number | undefined;
2165
2379
  }[], {
2166
2380
  name: string;
2167
2381
  url: string;
2168
- description?: string | undefined;
2169
2382
  approval?: {
2170
2383
  mode: "global";
2171
2384
  } | {
2172
- mode: "selected";
2173
2385
  tools: string[];
2386
+ mode: "selected";
2174
2387
  } | undefined;
2388
+ description?: string | undefined;
2175
2389
  credential?: string | undefined;
2176
2390
  transport?: "sse" | "streamableHttp" | undefined;
2177
2391
  authentication?: string | undefined;
@@ -2201,6 +2415,26 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2201
2415
  budgetTokens?: number | undefined;
2202
2416
  reasoningEffort?: string | undefined;
2203
2417
  }>>;
2418
+ promptCaching: z.ZodOptional<z.ZodObject<{
2419
+ enabled: z.ZodBoolean;
2420
+ anthropic: z.ZodOptional<z.ZodObject<{
2421
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
2422
+ }, "strip", z.ZodTypeAny, {
2423
+ ttl?: "5m" | "1h" | undefined;
2424
+ }, {
2425
+ ttl?: "5m" | "1h" | undefined;
2426
+ }>>;
2427
+ }, "strip", z.ZodTypeAny, {
2428
+ enabled: boolean;
2429
+ anthropic?: {
2430
+ ttl?: "5m" | "1h" | undefined;
2431
+ } | undefined;
2432
+ }, {
2433
+ enabled: boolean;
2434
+ anthropic?: {
2435
+ ttl?: "5m" | "1h" | undefined;
2436
+ } | undefined;
2437
+ }>>;
2204
2438
  webSearch: z.ZodOptional<z.ZodObject<{
2205
2439
  enabled: z.ZodBoolean;
2206
2440
  provider: z.ZodOptional<z.ZodEnum<["auto", "native", "brave", "searxng"]>>;
@@ -2222,6 +2456,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2222
2456
  budgetTokens?: number | undefined;
2223
2457
  reasoningEffort?: string | undefined;
2224
2458
  } | undefined;
2459
+ promptCaching?: {
2460
+ enabled: boolean;
2461
+ anthropic?: {
2462
+ ttl?: "5m" | "1h" | undefined;
2463
+ } | undefined;
2464
+ } | undefined;
2225
2465
  webSearch?: {
2226
2466
  enabled: boolean;
2227
2467
  provider?: "auto" | "native" | "brave" | "searxng" | undefined;
@@ -2235,6 +2475,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2235
2475
  budgetTokens?: number | undefined;
2236
2476
  reasoningEffort?: string | undefined;
2237
2477
  } | undefined;
2478
+ promptCaching?: {
2479
+ enabled: boolean;
2480
+ anthropic?: {
2481
+ ttl?: "5m" | "1h" | undefined;
2482
+ } | undefined;
2483
+ } | undefined;
2238
2484
  webSearch?: {
2239
2485
  enabled: boolean;
2240
2486
  provider?: "auto" | "native" | "brave" | "searxng" | undefined;
@@ -2248,36 +2494,19 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2248
2494
  credential: z.ZodEffects<z.ZodString, string, string>;
2249
2495
  }, "strip", z.ZodTypeAny, {
2250
2496
  model: string;
2251
- credential: string;
2252
2497
  name: string;
2498
+ credential: string;
2253
2499
  instructions: string;
2254
- tools?: ({
2255
- type: "custom";
2256
- id: string;
2257
- requireApproval?: boolean | undefined;
2258
- } | {
2259
- type: "workflow";
2260
- workflow: string;
2261
- description?: string | undefined;
2262
- requireApproval?: boolean | undefined;
2263
- name?: string | undefined;
2264
- allOutputs?: boolean | undefined;
2265
- } | {
2266
- type: "node";
2267
- name: string;
2268
- node: {
2269
- nodeType: string;
2270
- nodeTypeVersion: number;
2271
- nodeParameters: Record<string, unknown>;
2272
- credentials?: Record<string, {
2273
- id: string;
2274
- name: string;
2275
- }> | undefined;
2500
+ personalisation?: {
2501
+ icon: string;
2502
+ gradient: {
2503
+ from: string;
2504
+ to: string;
2505
+ angle: number;
2506
+ fromStop: number;
2507
+ toStop: number;
2276
2508
  };
2277
- description?: string | undefined;
2278
- requireApproval?: boolean | undefined;
2279
- inputSchema?: undefined;
2280
- })[] | undefined;
2509
+ } | undefined;
2281
2510
  memory?: {
2282
2511
  enabled: boolean;
2283
2512
  storage: "n8n";
@@ -2335,6 +2564,33 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2335
2564
  } | undefined;
2336
2565
  } | undefined;
2337
2566
  } | undefined;
2567
+ tools?: ({
2568
+ type: "custom";
2569
+ id: string;
2570
+ requireApproval?: boolean | undefined;
2571
+ } | {
2572
+ type: "workflow";
2573
+ workflow: string;
2574
+ description?: string | undefined;
2575
+ name?: string | undefined;
2576
+ requireApproval?: boolean | undefined;
2577
+ allOutputs?: boolean | undefined;
2578
+ } | {
2579
+ type: "node";
2580
+ name: string;
2581
+ node: {
2582
+ nodeType: string;
2583
+ nodeTypeVersion: number;
2584
+ nodeParameters: Record<string, unknown>;
2585
+ credentials?: Record<string, {
2586
+ name: string;
2587
+ id: string;
2588
+ }> | undefined;
2589
+ };
2590
+ description?: string | undefined;
2591
+ requireApproval?: boolean | undefined;
2592
+ inputSchema?: undefined;
2593
+ })[] | undefined;
2338
2594
  skills?: {
2339
2595
  type: "skill";
2340
2596
  id: string;
@@ -2364,23 +2620,23 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2364
2620
  url: string;
2365
2621
  transport: "sse" | "streamableHttp";
2366
2622
  authentication: string;
2367
- description?: string | undefined;
2368
2623
  approval?: {
2369
2624
  mode: "global";
2370
2625
  } | {
2371
- mode: "selected";
2372
2626
  tools: string[];
2627
+ mode: "selected";
2373
2628
  } | undefined;
2629
+ description?: string | undefined;
2374
2630
  credential?: string | undefined;
2375
2631
  metadata?: {
2376
2632
  nodeTypeName?: string | undefined;
2377
2633
  } | undefined;
2378
2634
  toolFilter?: {
2379
- mode: "allow";
2380
2635
  tools: string[];
2636
+ mode: "allow";
2381
2637
  } | {
2382
- mode: "exclude";
2383
2638
  tools: string[];
2639
+ mode: "exclude";
2384
2640
  } | undefined;
2385
2641
  connectionTimeoutMs?: number | undefined;
2386
2642
  }[] | undefined;
@@ -2390,6 +2646,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2390
2646
  budgetTokens?: number | undefined;
2391
2647
  reasoningEffort?: string | undefined;
2392
2648
  } | undefined;
2649
+ promptCaching?: {
2650
+ enabled: boolean;
2651
+ anthropic?: {
2652
+ ttl?: "5m" | "1h" | undefined;
2653
+ } | undefined;
2654
+ } | undefined;
2393
2655
  webSearch?: {
2394
2656
  enabled: boolean;
2395
2657
  provider?: "auto" | "native" | "brave" | "searxng" | undefined;
@@ -2400,36 +2662,19 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2400
2662
  } | undefined;
2401
2663
  }, {
2402
2664
  model: string;
2403
- credential: string;
2404
2665
  name: string;
2666
+ credential: string;
2405
2667
  instructions: string;
2406
- tools?: ({
2407
- type: "custom";
2408
- id: string;
2409
- requireApproval?: boolean | undefined;
2410
- } | {
2411
- type: "workflow";
2412
- workflow: string;
2413
- description?: string | undefined;
2414
- requireApproval?: boolean | undefined;
2415
- name?: string | undefined;
2416
- allOutputs?: boolean | undefined;
2417
- } | {
2418
- type: "node";
2419
- name: string;
2420
- node: {
2421
- nodeType: string;
2422
- nodeTypeVersion: number;
2423
- nodeParameters?: Record<string, unknown> | undefined;
2424
- credentials?: Record<string, {
2425
- id: string;
2426
- name: string;
2427
- }> | undefined;
2428
- };
2429
- description?: string | undefined;
2430
- requireApproval?: boolean | undefined;
2431
- inputSchema?: undefined;
2432
- })[] | undefined;
2668
+ personalisation?: {
2669
+ icon: string;
2670
+ gradient?: {
2671
+ from: string;
2672
+ to: string;
2673
+ angle?: number | undefined;
2674
+ fromStop?: number | undefined;
2675
+ toStop?: number | undefined;
2676
+ } | undefined;
2677
+ } | undefined;
2433
2678
  memory?: {
2434
2679
  enabled: boolean;
2435
2680
  storage: "n8n";
@@ -2487,6 +2732,33 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2487
2732
  } | undefined;
2488
2733
  } | undefined;
2489
2734
  } | undefined;
2735
+ tools?: ({
2736
+ type: "custom";
2737
+ id: string;
2738
+ requireApproval?: boolean | undefined;
2739
+ } | {
2740
+ type: "workflow";
2741
+ workflow: string;
2742
+ description?: string | undefined;
2743
+ name?: string | undefined;
2744
+ requireApproval?: boolean | undefined;
2745
+ allOutputs?: boolean | undefined;
2746
+ } | {
2747
+ type: "node";
2748
+ name: string;
2749
+ node: {
2750
+ nodeType: string;
2751
+ nodeTypeVersion: number;
2752
+ nodeParameters?: Record<string, unknown> | undefined;
2753
+ credentials?: Record<string, {
2754
+ name: string;
2755
+ id: string;
2756
+ }> | undefined;
2757
+ };
2758
+ description?: string | undefined;
2759
+ requireApproval?: boolean | undefined;
2760
+ inputSchema?: undefined;
2761
+ })[] | undefined;
2490
2762
  skills?: {
2491
2763
  type: "skill";
2492
2764
  id: string;
@@ -2514,13 +2786,13 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2514
2786
  mcpServers?: {
2515
2787
  name: string;
2516
2788
  url: string;
2517
- description?: string | undefined;
2518
2789
  approval?: {
2519
2790
  mode: "global";
2520
2791
  } | {
2521
- mode: "selected";
2522
2792
  tools: string[];
2793
+ mode: "selected";
2523
2794
  } | undefined;
2795
+ description?: string | undefined;
2524
2796
  credential?: string | undefined;
2525
2797
  transport?: "sse" | "streamableHttp" | undefined;
2526
2798
  authentication?: string | undefined;
@@ -2542,6 +2814,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
2542
2814
  budgetTokens?: number | undefined;
2543
2815
  reasoningEffort?: string | undefined;
2544
2816
  } | undefined;
2817
+ promptCaching?: {
2818
+ enabled: boolean;
2819
+ anthropic?: {
2820
+ ttl?: "5m" | "1h" | undefined;
2821
+ } | undefined;
2822
+ } | undefined;
2545
2823
  webSearch?: {
2546
2824
  enabled: boolean;
2547
2825
  provider?: "auto" | "native" | "brave" | "searxng" | undefined;
@@ -2556,6 +2834,46 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
2556
2834
  model: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"">, z.ZodString]>>;
2557
2835
  credential: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2558
2836
  instructions: z.ZodOptional<z.ZodString>;
2837
+ personalisation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2838
+ icon: z.ZodString;
2839
+ gradient: z.ZodDefault<z.ZodObject<{
2840
+ from: z.ZodString;
2841
+ to: z.ZodString;
2842
+ angle: z.ZodDefault<z.ZodNumber>;
2843
+ fromStop: z.ZodDefault<z.ZodNumber>;
2844
+ toStop: z.ZodDefault<z.ZodNumber>;
2845
+ }, "strict", z.ZodTypeAny, {
2846
+ from: string;
2847
+ to: string;
2848
+ angle: number;
2849
+ fromStop: number;
2850
+ toStop: number;
2851
+ }, {
2852
+ from: string;
2853
+ to: string;
2854
+ angle?: number | undefined;
2855
+ fromStop?: number | undefined;
2856
+ toStop?: number | undefined;
2857
+ }>>;
2858
+ }, "strict", z.ZodTypeAny, {
2859
+ icon: string;
2860
+ gradient: {
2861
+ from: string;
2862
+ to: string;
2863
+ angle: number;
2864
+ fromStop: number;
2865
+ toStop: number;
2866
+ };
2867
+ }, {
2868
+ icon: string;
2869
+ gradient?: {
2870
+ from: string;
2871
+ to: string;
2872
+ angle?: number | undefined;
2873
+ fromStop?: number | undefined;
2874
+ toStop?: number | undefined;
2875
+ } | undefined;
2876
+ }>>>;
2559
2877
  memory: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2560
2878
  enabled: z.ZodBoolean;
2561
2879
  storage: z.ZodEnum<["n8n"]>;
@@ -2880,15 +3198,15 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
2880
3198
  type: "workflow";
2881
3199
  workflow: string;
2882
3200
  description?: string | undefined;
2883
- requireApproval?: boolean | undefined;
2884
3201
  name?: string | undefined;
3202
+ requireApproval?: boolean | undefined;
2885
3203
  allOutputs?: boolean | undefined;
2886
3204
  }, {
2887
3205
  type: "workflow";
2888
3206
  workflow: string;
2889
3207
  description?: string | undefined;
2890
- requireApproval?: boolean | undefined;
2891
3208
  name?: string | undefined;
3209
+ requireApproval?: boolean | undefined;
2892
3210
  allOutputs?: boolean | undefined;
2893
3211
  }>, z.ZodObject<{
2894
3212
  type: z.ZodLiteral<"node">;
@@ -2903,27 +3221,27 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
2903
3221
  id: z.ZodString;
2904
3222
  name: z.ZodString;
2905
3223
  }, "strip", z.ZodTypeAny, {
2906
- id: string;
2907
3224
  name: string;
2908
- }, {
2909
3225
  id: string;
3226
+ }, {
2910
3227
  name: string;
3228
+ id: string;
2911
3229
  }>>>;
2912
3230
  }, "strip", z.ZodTypeAny, {
2913
3231
  nodeType: string;
2914
3232
  nodeTypeVersion: number;
2915
3233
  nodeParameters: Record<string, unknown>;
2916
3234
  credentials?: Record<string, {
2917
- id: string;
2918
3235
  name: string;
3236
+ id: string;
2919
3237
  }> | undefined;
2920
3238
  }, {
2921
3239
  nodeType: string;
2922
3240
  nodeTypeVersion: number;
2923
3241
  nodeParameters?: Record<string, unknown> | undefined;
2924
3242
  credentials?: Record<string, {
2925
- id: string;
2926
3243
  name: string;
3244
+ id: string;
2927
3245
  }> | undefined;
2928
3246
  }>;
2929
3247
  requireApproval: z.ZodOptional<z.ZodBoolean>;
@@ -2935,8 +3253,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
2935
3253
  nodeTypeVersion: number;
2936
3254
  nodeParameters: Record<string, unknown>;
2937
3255
  credentials?: Record<string, {
2938
- id: string;
2939
3256
  name: string;
3257
+ id: string;
2940
3258
  }> | undefined;
2941
3259
  };
2942
3260
  description?: string | undefined;
@@ -2950,8 +3268,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
2950
3268
  nodeTypeVersion: number;
2951
3269
  nodeParameters?: Record<string, unknown> | undefined;
2952
3270
  credentials?: Record<string, {
2953
- id: string;
2954
3271
  name: string;
3272
+ id: string;
2955
3273
  }> | undefined;
2956
3274
  };
2957
3275
  description?: string | undefined;
@@ -2965,8 +3283,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
2965
3283
  type: "workflow";
2966
3284
  workflow: string;
2967
3285
  description?: string | undefined;
2968
- requireApproval?: boolean | undefined;
2969
3286
  name?: string | undefined;
3287
+ requireApproval?: boolean | undefined;
2970
3288
  allOutputs?: boolean | undefined;
2971
3289
  } | {
2972
3290
  type: "node";
@@ -2976,8 +3294,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
2976
3294
  nodeTypeVersion: number;
2977
3295
  nodeParameters: Record<string, unknown>;
2978
3296
  credentials?: Record<string, {
2979
- id: string;
2980
3297
  name: string;
3298
+ id: string;
2981
3299
  }> | undefined;
2982
3300
  };
2983
3301
  description?: string | undefined;
@@ -2991,8 +3309,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
2991
3309
  type: "workflow";
2992
3310
  workflow: string;
2993
3311
  description?: string | undefined;
2994
- requireApproval?: boolean | undefined;
2995
3312
  name?: string | undefined;
3313
+ requireApproval?: boolean | undefined;
2996
3314
  allOutputs?: boolean | undefined;
2997
3315
  } | {
2998
3316
  type: "node";
@@ -3002,8 +3320,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3002
3320
  nodeTypeVersion: number;
3003
3321
  nodeParameters?: Record<string, unknown> | undefined;
3004
3322
  credentials?: Record<string, {
3005
- id: string;
3006
3323
  name: string;
3324
+ id: string;
3007
3325
  }> | undefined;
3008
3326
  };
3009
3327
  description?: string | undefined;
@@ -3111,8 +3429,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3111
3429
  mode: z.ZodLiteral<"allow">;
3112
3430
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3113
3431
  }, "strict", z.ZodTypeAny, {
3114
- mode: "allow";
3115
3432
  tools: string[];
3433
+ mode: "allow";
3116
3434
  }, {
3117
3435
  mode: "allow";
3118
3436
  tools?: string[] | undefined;
@@ -3120,8 +3438,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3120
3438
  mode: z.ZodLiteral<"exclude">;
3121
3439
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3122
3440
  }, "strict", z.ZodTypeAny, {
3123
- mode: "exclude";
3124
3441
  tools: string[];
3442
+ mode: "exclude";
3125
3443
  }, {
3126
3444
  mode: "exclude";
3127
3445
  tools?: string[] | undefined;
@@ -3136,11 +3454,11 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3136
3454
  mode: z.ZodLiteral<"selected">;
3137
3455
  tools: z.ZodArray<z.ZodString, "many">;
3138
3456
  }, "strict", z.ZodTypeAny, {
3139
- mode: "selected";
3140
3457
  tools: string[];
3141
- }, {
3142
3458
  mode: "selected";
3459
+ }, {
3143
3460
  tools: string[];
3461
+ mode: "selected";
3144
3462
  }>]>>;
3145
3463
  connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
3146
3464
  }, "strict", z.ZodTypeAny, {
@@ -3148,35 +3466,35 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3148
3466
  url: string;
3149
3467
  transport: "sse" | "streamableHttp";
3150
3468
  authentication: string;
3151
- description?: string | undefined;
3152
3469
  approval?: {
3153
3470
  mode: "global";
3154
3471
  } | {
3155
- mode: "selected";
3156
3472
  tools: string[];
3473
+ mode: "selected";
3157
3474
  } | undefined;
3475
+ description?: string | undefined;
3158
3476
  credential?: string | undefined;
3159
3477
  metadata?: {
3160
3478
  nodeTypeName?: string | undefined;
3161
3479
  } | undefined;
3162
3480
  toolFilter?: {
3163
- mode: "allow";
3164
3481
  tools: string[];
3482
+ mode: "allow";
3165
3483
  } | {
3166
- mode: "exclude";
3167
3484
  tools: string[];
3485
+ mode: "exclude";
3168
3486
  } | undefined;
3169
3487
  connectionTimeoutMs?: number | undefined;
3170
3488
  }, {
3171
3489
  name: string;
3172
3490
  url: string;
3173
- description?: string | undefined;
3174
3491
  approval?: {
3175
3492
  mode: "global";
3176
3493
  } | {
3177
- mode: "selected";
3178
3494
  tools: string[];
3495
+ mode: "selected";
3179
3496
  } | undefined;
3497
+ description?: string | undefined;
3180
3498
  credential?: string | undefined;
3181
3499
  transport?: "sse" | "streamableHttp" | undefined;
3182
3500
  authentication?: string | undefined;
@@ -3196,35 +3514,35 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3196
3514
  url: string;
3197
3515
  transport: "sse" | "streamableHttp";
3198
3516
  authentication: string;
3199
- description?: string | undefined;
3200
3517
  approval?: {
3201
3518
  mode: "global";
3202
3519
  } | {
3203
- mode: "selected";
3204
3520
  tools: string[];
3521
+ mode: "selected";
3205
3522
  } | undefined;
3523
+ description?: string | undefined;
3206
3524
  credential?: string | undefined;
3207
3525
  metadata?: {
3208
3526
  nodeTypeName?: string | undefined;
3209
3527
  } | undefined;
3210
3528
  toolFilter?: {
3211
- mode: "allow";
3212
3529
  tools: string[];
3530
+ mode: "allow";
3213
3531
  } | {
3214
- mode: "exclude";
3215
3532
  tools: string[];
3533
+ mode: "exclude";
3216
3534
  } | undefined;
3217
3535
  connectionTimeoutMs?: number | undefined;
3218
3536
  }[], {
3219
3537
  name: string;
3220
3538
  url: string;
3221
- description?: string | undefined;
3222
3539
  approval?: {
3223
3540
  mode: "global";
3224
3541
  } | {
3225
- mode: "selected";
3226
3542
  tools: string[];
3543
+ mode: "selected";
3227
3544
  } | undefined;
3545
+ description?: string | undefined;
3228
3546
  credential?: string | undefined;
3229
3547
  transport?: "sse" | "streamableHttp" | undefined;
3230
3548
  authentication?: string | undefined;
@@ -3254,6 +3572,26 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3254
3572
  budgetTokens?: number | undefined;
3255
3573
  reasoningEffort?: string | undefined;
3256
3574
  }>>;
3575
+ promptCaching: z.ZodOptional<z.ZodObject<{
3576
+ enabled: z.ZodBoolean;
3577
+ anthropic: z.ZodOptional<z.ZodObject<{
3578
+ ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
3579
+ }, "strip", z.ZodTypeAny, {
3580
+ ttl?: "5m" | "1h" | undefined;
3581
+ }, {
3582
+ ttl?: "5m" | "1h" | undefined;
3583
+ }>>;
3584
+ }, "strip", z.ZodTypeAny, {
3585
+ enabled: boolean;
3586
+ anthropic?: {
3587
+ ttl?: "5m" | "1h" | undefined;
3588
+ } | undefined;
3589
+ }, {
3590
+ enabled: boolean;
3591
+ anthropic?: {
3592
+ ttl?: "5m" | "1h" | undefined;
3593
+ } | undefined;
3594
+ }>>;
3257
3595
  webSearch: z.ZodOptional<z.ZodObject<{
3258
3596
  enabled: z.ZodBoolean;
3259
3597
  provider: z.ZodOptional<z.ZodEnum<["auto", "native", "brave", "searxng"]>>;
@@ -3275,6 +3613,12 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3275
3613
  budgetTokens?: number | undefined;
3276
3614
  reasoningEffort?: string | undefined;
3277
3615
  } | undefined;
3616
+ promptCaching?: {
3617
+ enabled: boolean;
3618
+ anthropic?: {
3619
+ ttl?: "5m" | "1h" | undefined;
3620
+ } | undefined;
3621
+ } | undefined;
3278
3622
  webSearch?: {
3279
3623
  enabled: boolean;
3280
3624
  provider?: "auto" | "native" | "brave" | "searxng" | undefined;
@@ -3288,6 +3632,12 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3288
3632
  budgetTokens?: number | undefined;
3289
3633
  reasoningEffort?: string | undefined;
3290
3634
  } | undefined;
3635
+ promptCaching?: {
3636
+ enabled: boolean;
3637
+ anthropic?: {
3638
+ ttl?: "5m" | "1h" | undefined;
3639
+ } | undefined;
3640
+ } | undefined;
3291
3641
  webSearch?: {
3292
3642
  enabled: boolean;
3293
3643
  provider?: "auto" | "native" | "brave" | "searxng" | undefined;
@@ -3298,36 +3648,19 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3298
3648
  }>>>;
3299
3649
  }, "strip", z.ZodTypeAny, {
3300
3650
  model?: string | undefined;
3301
- credential?: string | undefined;
3302
3651
  name?: string | undefined;
3303
- tools?: ({
3304
- type: "custom";
3305
- id: string;
3306
- requireApproval?: boolean | undefined;
3307
- } | {
3308
- type: "workflow";
3309
- workflow: string;
3310
- description?: string | undefined;
3311
- requireApproval?: boolean | undefined;
3312
- name?: string | undefined;
3313
- allOutputs?: boolean | undefined;
3314
- } | {
3315
- type: "node";
3316
- name: string;
3317
- node: {
3318
- nodeType: string;
3319
- nodeTypeVersion: number;
3320
- nodeParameters: Record<string, unknown>;
3321
- credentials?: Record<string, {
3322
- id: string;
3323
- name: string;
3324
- }> | undefined;
3325
- };
3326
- description?: string | undefined;
3327
- requireApproval?: boolean | undefined;
3328
- inputSchema?: undefined;
3329
- })[] | undefined;
3652
+ credential?: string | undefined;
3330
3653
  instructions?: string | undefined;
3654
+ personalisation?: {
3655
+ icon: string;
3656
+ gradient: {
3657
+ from: string;
3658
+ to: string;
3659
+ angle: number;
3660
+ fromStop: number;
3661
+ toStop: number;
3662
+ };
3663
+ } | undefined;
3331
3664
  memory?: {
3332
3665
  enabled: boolean;
3333
3666
  storage: "n8n";
@@ -3385,6 +3718,33 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3385
3718
  } | undefined;
3386
3719
  } | undefined;
3387
3720
  } | undefined;
3721
+ tools?: ({
3722
+ type: "custom";
3723
+ id: string;
3724
+ requireApproval?: boolean | undefined;
3725
+ } | {
3726
+ type: "workflow";
3727
+ workflow: string;
3728
+ description?: string | undefined;
3729
+ name?: string | undefined;
3730
+ requireApproval?: boolean | undefined;
3731
+ allOutputs?: boolean | undefined;
3732
+ } | {
3733
+ type: "node";
3734
+ name: string;
3735
+ node: {
3736
+ nodeType: string;
3737
+ nodeTypeVersion: number;
3738
+ nodeParameters: Record<string, unknown>;
3739
+ credentials?: Record<string, {
3740
+ name: string;
3741
+ id: string;
3742
+ }> | undefined;
3743
+ };
3744
+ description?: string | undefined;
3745
+ requireApproval?: boolean | undefined;
3746
+ inputSchema?: undefined;
3747
+ })[] | undefined;
3388
3748
  skills?: {
3389
3749
  type: "skill";
3390
3750
  id: string;
@@ -3414,23 +3774,23 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3414
3774
  url: string;
3415
3775
  transport: "sse" | "streamableHttp";
3416
3776
  authentication: string;
3417
- description?: string | undefined;
3418
3777
  approval?: {
3419
3778
  mode: "global";
3420
3779
  } | {
3421
- mode: "selected";
3422
3780
  tools: string[];
3781
+ mode: "selected";
3423
3782
  } | undefined;
3783
+ description?: string | undefined;
3424
3784
  credential?: string | undefined;
3425
3785
  metadata?: {
3426
3786
  nodeTypeName?: string | undefined;
3427
3787
  } | undefined;
3428
3788
  toolFilter?: {
3429
- mode: "allow";
3430
3789
  tools: string[];
3790
+ mode: "allow";
3431
3791
  } | {
3432
- mode: "exclude";
3433
3792
  tools: string[];
3793
+ mode: "exclude";
3434
3794
  } | undefined;
3435
3795
  connectionTimeoutMs?: number | undefined;
3436
3796
  }[] | undefined;
@@ -3440,6 +3800,12 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3440
3800
  budgetTokens?: number | undefined;
3441
3801
  reasoningEffort?: string | undefined;
3442
3802
  } | undefined;
3803
+ promptCaching?: {
3804
+ enabled: boolean;
3805
+ anthropic?: {
3806
+ ttl?: "5m" | "1h" | undefined;
3807
+ } | undefined;
3808
+ } | undefined;
3443
3809
  webSearch?: {
3444
3810
  enabled: boolean;
3445
3811
  provider?: "auto" | "native" | "brave" | "searxng" | undefined;
@@ -3450,36 +3816,19 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3450
3816
  } | undefined;
3451
3817
  }, {
3452
3818
  model?: string | undefined;
3453
- credential?: string | undefined;
3454
3819
  name?: string | undefined;
3455
- tools?: ({
3456
- type: "custom";
3457
- id: string;
3458
- requireApproval?: boolean | undefined;
3459
- } | {
3460
- type: "workflow";
3461
- workflow: string;
3462
- description?: string | undefined;
3463
- requireApproval?: boolean | undefined;
3464
- name?: string | undefined;
3465
- allOutputs?: boolean | undefined;
3466
- } | {
3467
- type: "node";
3468
- name: string;
3469
- node: {
3470
- nodeType: string;
3471
- nodeTypeVersion: number;
3472
- nodeParameters?: Record<string, unknown> | undefined;
3473
- credentials?: Record<string, {
3474
- id: string;
3475
- name: string;
3476
- }> | undefined;
3477
- };
3478
- description?: string | undefined;
3479
- requireApproval?: boolean | undefined;
3480
- inputSchema?: undefined;
3481
- })[] | undefined;
3820
+ credential?: string | undefined;
3482
3821
  instructions?: string | undefined;
3822
+ personalisation?: {
3823
+ icon: string;
3824
+ gradient?: {
3825
+ from: string;
3826
+ to: string;
3827
+ angle?: number | undefined;
3828
+ fromStop?: number | undefined;
3829
+ toStop?: number | undefined;
3830
+ } | undefined;
3831
+ } | undefined;
3483
3832
  memory?: {
3484
3833
  enabled: boolean;
3485
3834
  storage: "n8n";
@@ -3537,6 +3886,33 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3537
3886
  } | undefined;
3538
3887
  } | undefined;
3539
3888
  } | undefined;
3889
+ tools?: ({
3890
+ type: "custom";
3891
+ id: string;
3892
+ requireApproval?: boolean | undefined;
3893
+ } | {
3894
+ type: "workflow";
3895
+ workflow: string;
3896
+ description?: string | undefined;
3897
+ name?: string | undefined;
3898
+ requireApproval?: boolean | undefined;
3899
+ allOutputs?: boolean | undefined;
3900
+ } | {
3901
+ type: "node";
3902
+ name: string;
3903
+ node: {
3904
+ nodeType: string;
3905
+ nodeTypeVersion: number;
3906
+ nodeParameters?: Record<string, unknown> | undefined;
3907
+ credentials?: Record<string, {
3908
+ name: string;
3909
+ id: string;
3910
+ }> | undefined;
3911
+ };
3912
+ description?: string | undefined;
3913
+ requireApproval?: boolean | undefined;
3914
+ inputSchema?: undefined;
3915
+ })[] | undefined;
3540
3916
  skills?: {
3541
3917
  type: "skill";
3542
3918
  id: string;
@@ -3564,13 +3940,13 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3564
3940
  mcpServers?: {
3565
3941
  name: string;
3566
3942
  url: string;
3567
- description?: string | undefined;
3568
3943
  approval?: {
3569
3944
  mode: "global";
3570
3945
  } | {
3571
- mode: "selected";
3572
3946
  tools: string[];
3947
+ mode: "selected";
3573
3948
  } | undefined;
3949
+ description?: string | undefined;
3574
3950
  credential?: string | undefined;
3575
3951
  transport?: "sse" | "streamableHttp" | undefined;
3576
3952
  authentication?: string | undefined;
@@ -3592,6 +3968,12 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
3592
3968
  budgetTokens?: number | undefined;
3593
3969
  reasoningEffort?: string | undefined;
3594
3970
  } | undefined;
3971
+ promptCaching?: {
3972
+ enabled: boolean;
3973
+ anthropic?: {
3974
+ ttl?: "5m" | "1h" | undefined;
3975
+ } | undefined;
3976
+ } | undefined;
3595
3977
  webSearch?: {
3596
3978
  enabled: boolean;
3597
3979
  provider?: "auto" | "native" | "brave" | "searxng" | undefined;
@@ -3616,6 +3998,7 @@ export type AgentJsonCustomToolConfig = Extract<AgentJsonToolConfig, {
3616
3998
  export type AgentJsonSkillConfig = z.infer<typeof AgentJsonSkillConfigSchema>;
3617
3999
  export type AgentJsonTaskConfig = z.infer<typeof AgentJsonTaskConfigSchema>;
3618
4000
  export type AgentJsonMemoryConfig = z.infer<typeof MemoryConfigSchema>;
4001
+ export type AgentPersonalisationConfig = z.infer<typeof AgentPersonalisationConfigSchema>;
3619
4002
  export type NodeToolConfig = z.infer<typeof NodeConfigSchema>;
3620
4003
  export type AgentJsonMcpServerConfig = z.infer<typeof McpServerConfigSchema>;
3621
4004
  export type McpAuthenticationSchemaType = z.infer<typeof McpAuthenticationSchemaTypes>;