@n8n/api-types 1.30.2 → 1.31.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 (95) hide show
  1. package/dist/agent-builder-interactive.d.ts +5 -182
  2. package/dist/agent-builder-interactive.js +6 -50
  3. package/dist/agent-builder-interactive.js.map +1 -1
  4. package/dist/agents/agent-interaction.schema.d.ts +262 -0
  5. package/dist/agents/agent-interaction.schema.js +56 -0
  6. package/dist/agents/agent-interaction.schema.js.map +1 -0
  7. package/dist/agents/agent-json-config.schema.d.ts +1878 -752
  8. package/dist/agents/agent-json-config.schema.js +82 -1
  9. package/dist/agents/agent-json-config.schema.js.map +1 -1
  10. package/dist/agents/dto.d.ts +232 -103
  11. package/dist/agents/dto.js +8 -3
  12. package/dist/agents/dto.js.map +1 -1
  13. package/dist/agents/index.d.ts +2 -1
  14. package/dist/agents/index.js +2 -11
  15. package/dist/agents/index.js.map +1 -1
  16. package/dist/agents/rich-card.schema.d.ts +108 -108
  17. package/dist/agents/types.d.ts +39 -8
  18. package/dist/agents/types.js.map +1 -1
  19. package/dist/build.tsbuildinfo +1 -1
  20. package/dist/chat-hub.d.ts +85 -85
  21. package/dist/dto/ai/ai-ask-request.dto.d.ts +13 -13
  22. package/dist/dto/ai/ai-build-request.dto.d.ts +3 -3
  23. package/dist/dto/ai/ai-truncate-messages-request.dto.d.ts +1 -1
  24. package/dist/dto/api-keys/list-api-keys-query.dto.d.ts +1 -1
  25. package/dist/dto/data-table/list-data-table-query.dto.d.ts +4 -4
  26. package/dist/dto/dynamic-node-parameters/action-result-request.dto.d.ts +1 -1
  27. package/dist/dto/dynamic-node-parameters/base-dynamic-parameters-request.dto.d.ts +1 -1
  28. package/dist/dto/dynamic-node-parameters/options-request.dto.d.ts +1 -1
  29. package/dist/dto/dynamic-node-parameters/resource-locator-request.dto.d.ts +1 -1
  30. package/dist/dto/dynamic-node-parameters/resource-mapper-fields-request.dto.d.ts +1 -1
  31. package/dist/dto/evaluations/evaluation-config.dto.d.ts +78 -78
  32. package/dist/dto/folders/list-folder-query.dto.d.ts +2 -2
  33. package/dist/dto/index.d.ts +2 -0
  34. package/dist/dto/index.js +7 -3
  35. package/dist/dto/index.js.map +1 -1
  36. package/dist/dto/insights/list-workflow-query.dto.d.ts +1 -1
  37. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +8 -8
  38. package/dist/dto/instance-ai/instance-ai-rename-thread-request.dto.d.ts +1 -1
  39. package/dist/dto/oauth/oauth-client.dto.d.ts +4 -4
  40. package/dist/dto/oidc/config.dto.d.ts +1 -1
  41. package/dist/dto/packages/import-package-request.dto.d.ts +11 -5
  42. package/dist/dto/packages/import-package-request.dto.js +19 -19
  43. package/dist/dto/packages/import-package-request.dto.js.map +1 -1
  44. package/dist/dto/project/update-project.dto.d.ts +2 -2
  45. package/dist/dto/roles/role-member.schema.d.ts +2 -2
  46. package/dist/dto/roles/role-members-response.dto.d.ts +3 -3
  47. package/dist/dto/roles/role-project-members-response.dto.d.ts +3 -3
  48. package/dist/dto/roles/update-role.dto.d.ts +1 -1
  49. package/dist/dto/security-settings/security-policy.dto.d.ts +32 -0
  50. package/dist/dto/security-settings/security-policy.dto.js +17 -0
  51. package/dist/dto/security-settings/security-policy.dto.js.map +1 -0
  52. package/dist/dto/security-settings/security-settings.dto.d.ts +20 -0
  53. package/dist/dto/security-settings/security-settings.dto.js +4 -0
  54. package/dist/dto/security-settings/security-settings.dto.js.map +1 -1
  55. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +9 -9
  56. package/dist/dto/variables/update-variable-request.dto.d.ts +1 -1
  57. package/dist/dto/workflow-history/update-workflow-history-version.dto.d.ts +1 -1
  58. package/dist/dto/workflows/activate-workflow.dto.d.ts +1 -1
  59. package/dist/dto/workflows/base-workflow.dto.d.ts +7 -7
  60. package/dist/dto/workflows/create-workflow.dto.d.ts +8 -8
  61. package/dist/dto/workflows/get-resource-dependencies.dto.d.ts +1 -1
  62. package/dist/dto/workflows/get-resource-dependency-counts.dto.d.ts +1 -1
  63. package/dist/dto/workflows/manual-run.dto.d.ts +112 -0
  64. package/dist/dto/workflows/manual-run.dto.js +51 -0
  65. package/dist/dto/workflows/manual-run.dto.js.map +1 -0
  66. package/dist/dto/workflows/update-workflow.dto.d.ts +8 -8
  67. package/dist/frontend-settings.d.ts +4 -0
  68. package/dist/index.d.ts +5 -3
  69. package/dist/index.js +8 -3
  70. package/dist/index.js.map +1 -1
  71. package/dist/instance-registry-types.d.ts +16 -16
  72. package/dist/schemas/agent-run-reducer.js +61 -1
  73. package/dist/schemas/agent-run-reducer.js.map +1 -1
  74. package/dist/schemas/breaking-changes.schema.d.ts +128 -128
  75. package/dist/schemas/credential-resolver.schema.d.ts +8 -8
  76. package/dist/schemas/credential-response.schema.d.ts +2 -2
  77. package/dist/schemas/data-table.schema.d.ts +6 -6
  78. package/dist/schemas/encryption-key.schema.d.ts +6 -6
  79. package/dist/schemas/eval-collections.schema.d.ts +3 -3
  80. package/dist/schemas/favorites.schema.d.ts +2 -2
  81. package/dist/schemas/favorites.schema.js +7 -1
  82. package/dist/schemas/favorites.schema.js.map +1 -1
  83. package/dist/schemas/insights.schema.d.ts +22 -22
  84. package/dist/schemas/instance-ai.schema.d.ts +599 -419
  85. package/dist/schemas/instance-ai.schema.js +55 -8
  86. package/dist/schemas/instance-ai.schema.js.map +1 -1
  87. package/dist/schemas/secrets-provider.schema.d.ts +16 -16
  88. package/dist/schemas/source-controlled-file.schema.d.ts +6 -6
  89. package/dist/schemas/user.schema.d.ts +18 -18
  90. package/dist/schemas/workflow-execution-status.schema.d.ts +4 -4
  91. package/dist/schemas/workflow-publication-status.schema.d.ts +2 -2
  92. package/dist/workflow-reviews-policy.d.ts +9 -0
  93. package/dist/workflow-reviews-policy.js +8 -0
  94. package/dist/workflow-reviews-policy.js.map +1 -0
  95. package/package.json +7 -6
@@ -46,8 +46,8 @@ export declare const llmJudgeMetricConfigSchema: z.ZodEffects<z.ZodObject<{
46
46
  }>;
47
47
  }, "strip", z.ZodTypeAny, {
48
48
  provider: string;
49
- model: string;
50
49
  credentialId: string;
50
+ model: string;
51
51
  outputType: "boolean" | "numeric";
52
52
  preset: "correctness" | "helpfulness";
53
53
  inputs: {
@@ -58,8 +58,8 @@ export declare const llmJudgeMetricConfigSchema: z.ZodEffects<z.ZodObject<{
58
58
  prompt?: string | undefined;
59
59
  }, {
60
60
  provider: string;
61
- model: string;
62
61
  credentialId: string;
62
+ model: string;
63
63
  outputType: "boolean" | "numeric";
64
64
  preset: "correctness" | "helpfulness";
65
65
  inputs: {
@@ -70,8 +70,8 @@ export declare const llmJudgeMetricConfigSchema: z.ZodEffects<z.ZodObject<{
70
70
  prompt?: string | undefined;
71
71
  }>, {
72
72
  provider: string;
73
- model: string;
74
73
  credentialId: string;
74
+ model: string;
75
75
  outputType: "boolean" | "numeric";
76
76
  preset: "correctness" | "helpfulness";
77
77
  inputs: {
@@ -82,8 +82,8 @@ export declare const llmJudgeMetricConfigSchema: z.ZodEffects<z.ZodObject<{
82
82
  prompt?: string | undefined;
83
83
  }, {
84
84
  provider: string;
85
- model: string;
86
85
  credentialId: string;
86
+ model: string;
87
87
  outputType: "boolean" | "numeric";
88
88
  preset: "correctness" | "helpfulness";
89
89
  inputs: {
@@ -197,16 +197,16 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
197
197
  }>;
198
198
  }, "strip", z.ZodTypeAny, {
199
199
  type: "expression";
200
- name: string;
201
200
  id: string;
201
+ name: string;
202
202
  config: {
203
203
  expression: string;
204
204
  outputType: "boolean" | "numeric";
205
205
  };
206
206
  }, {
207
207
  type: "expression";
208
- name: string;
209
208
  id: string;
209
+ name: string;
210
210
  config: {
211
211
  expression: string;
212
212
  outputType: "boolean" | "numeric";
@@ -237,8 +237,8 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
237
237
  }>;
238
238
  }, "strip", z.ZodTypeAny, {
239
239
  provider: string;
240
- model: string;
241
240
  credentialId: string;
241
+ model: string;
242
242
  outputType: "boolean" | "numeric";
243
243
  preset: "correctness" | "helpfulness";
244
244
  inputs: {
@@ -249,8 +249,8 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
249
249
  prompt?: string | undefined;
250
250
  }, {
251
251
  provider: string;
252
- model: string;
253
252
  credentialId: string;
253
+ model: string;
254
254
  outputType: "boolean" | "numeric";
255
255
  preset: "correctness" | "helpfulness";
256
256
  inputs: {
@@ -261,8 +261,8 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
261
261
  prompt?: string | undefined;
262
262
  }>, {
263
263
  provider: string;
264
- model: string;
265
264
  credentialId: string;
265
+ model: string;
266
266
  outputType: "boolean" | "numeric";
267
267
  preset: "correctness" | "helpfulness";
268
268
  inputs: {
@@ -273,8 +273,8 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
273
273
  prompt?: string | undefined;
274
274
  }, {
275
275
  provider: string;
276
- model: string;
277
276
  credentialId: string;
277
+ model: string;
278
278
  outputType: "boolean" | "numeric";
279
279
  preset: "correctness" | "helpfulness";
280
280
  inputs: {
@@ -286,12 +286,12 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
286
286
  }>;
287
287
  }, "strip", z.ZodTypeAny, {
288
288
  type: "llm_judge";
289
- name: string;
290
289
  id: string;
290
+ name: string;
291
291
  config: {
292
292
  provider: string;
293
- model: string;
294
293
  credentialId: string;
294
+ model: string;
295
295
  outputType: "boolean" | "numeric";
296
296
  preset: "correctness" | "helpfulness";
297
297
  inputs: {
@@ -303,12 +303,12 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
303
303
  };
304
304
  }, {
305
305
  type: "llm_judge";
306
- name: string;
307
306
  id: string;
307
+ name: string;
308
308
  config: {
309
309
  provider: string;
310
- model: string;
311
310
  credentialId: string;
311
+ model: string;
312
312
  outputType: "boolean" | "numeric";
313
313
  preset: "correctness" | "helpfulness";
314
314
  inputs: {
@@ -346,8 +346,8 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
346
346
  }>;
347
347
  }, "strip", z.ZodTypeAny, {
348
348
  type: "string_similarity";
349
- name: string;
350
349
  id: string;
350
+ name: string;
351
351
  config: {
352
352
  inputs: {
353
353
  actualAnswer: string;
@@ -356,8 +356,8 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
356
356
  };
357
357
  }, {
358
358
  type: "string_similarity";
359
- name: string;
360
359
  id: string;
360
+ name: string;
361
361
  config: {
362
362
  inputs: {
363
363
  actualAnswer: string;
@@ -392,8 +392,8 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
392
392
  }>;
393
393
  }, "strip", z.ZodTypeAny, {
394
394
  type: "categorization";
395
- name: string;
396
395
  id: string;
396
+ name: string;
397
397
  config: {
398
398
  inputs: {
399
399
  actualAnswer: string;
@@ -402,8 +402,8 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
402
402
  };
403
403
  }, {
404
404
  type: "categorization";
405
- name: string;
406
405
  id: string;
406
+ name: string;
407
407
  config: {
408
408
  inputs: {
409
409
  actualAnswer: string;
@@ -438,8 +438,8 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
438
438
  }>;
439
439
  }, "strip", z.ZodTypeAny, {
440
440
  type: "tools_used";
441
- name: string;
442
441
  id: string;
442
+ name: string;
443
443
  config: {
444
444
  inputs: {
445
445
  expectedTools: string;
@@ -448,8 +448,8 @@ export declare const evaluationMetricSchema: z.ZodDiscriminatedUnion<"type", [z.
448
448
  };
449
449
  }, {
450
450
  type: "tools_used";
451
- name: string;
452
451
  id: string;
452
+ name: string;
453
453
  config: {
454
454
  inputs: {
455
455
  expectedTools: string;
@@ -565,16 +565,16 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
565
565
  }>;
566
566
  }, "strip", z.ZodTypeAny, {
567
567
  type: "expression";
568
- name: string;
569
568
  id: string;
569
+ name: string;
570
570
  config: {
571
571
  expression: string;
572
572
  outputType: "boolean" | "numeric";
573
573
  };
574
574
  }, {
575
575
  type: "expression";
576
- name: string;
577
576
  id: string;
577
+ name: string;
578
578
  config: {
579
579
  expression: string;
580
580
  outputType: "boolean" | "numeric";
@@ -605,8 +605,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
605
605
  }>;
606
606
  }, "strip", z.ZodTypeAny, {
607
607
  provider: string;
608
- model: string;
609
608
  credentialId: string;
609
+ model: string;
610
610
  outputType: "boolean" | "numeric";
611
611
  preset: "correctness" | "helpfulness";
612
612
  inputs: {
@@ -617,8 +617,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
617
617
  prompt?: string | undefined;
618
618
  }, {
619
619
  provider: string;
620
- model: string;
621
620
  credentialId: string;
621
+ model: string;
622
622
  outputType: "boolean" | "numeric";
623
623
  preset: "correctness" | "helpfulness";
624
624
  inputs: {
@@ -629,8 +629,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
629
629
  prompt?: string | undefined;
630
630
  }>, {
631
631
  provider: string;
632
- model: string;
633
632
  credentialId: string;
633
+ model: string;
634
634
  outputType: "boolean" | "numeric";
635
635
  preset: "correctness" | "helpfulness";
636
636
  inputs: {
@@ -641,8 +641,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
641
641
  prompt?: string | undefined;
642
642
  }, {
643
643
  provider: string;
644
- model: string;
645
644
  credentialId: string;
645
+ model: string;
646
646
  outputType: "boolean" | "numeric";
647
647
  preset: "correctness" | "helpfulness";
648
648
  inputs: {
@@ -654,12 +654,12 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
654
654
  }>;
655
655
  }, "strip", z.ZodTypeAny, {
656
656
  type: "llm_judge";
657
- name: string;
658
657
  id: string;
658
+ name: string;
659
659
  config: {
660
660
  provider: string;
661
- model: string;
662
661
  credentialId: string;
662
+ model: string;
663
663
  outputType: "boolean" | "numeric";
664
664
  preset: "correctness" | "helpfulness";
665
665
  inputs: {
@@ -671,12 +671,12 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
671
671
  };
672
672
  }, {
673
673
  type: "llm_judge";
674
- name: string;
675
674
  id: string;
675
+ name: string;
676
676
  config: {
677
677
  provider: string;
678
- model: string;
679
678
  credentialId: string;
679
+ model: string;
680
680
  outputType: "boolean" | "numeric";
681
681
  preset: "correctness" | "helpfulness";
682
682
  inputs: {
@@ -714,8 +714,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
714
714
  }>;
715
715
  }, "strip", z.ZodTypeAny, {
716
716
  type: "string_similarity";
717
- name: string;
718
717
  id: string;
718
+ name: string;
719
719
  config: {
720
720
  inputs: {
721
721
  actualAnswer: string;
@@ -724,8 +724,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
724
724
  };
725
725
  }, {
726
726
  type: "string_similarity";
727
- name: string;
728
727
  id: string;
728
+ name: string;
729
729
  config: {
730
730
  inputs: {
731
731
  actualAnswer: string;
@@ -760,8 +760,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
760
760
  }>;
761
761
  }, "strip", z.ZodTypeAny, {
762
762
  type: "categorization";
763
- name: string;
764
763
  id: string;
764
+ name: string;
765
765
  config: {
766
766
  inputs: {
767
767
  actualAnswer: string;
@@ -770,8 +770,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
770
770
  };
771
771
  }, {
772
772
  type: "categorization";
773
- name: string;
774
773
  id: string;
774
+ name: string;
775
775
  config: {
776
776
  inputs: {
777
777
  actualAnswer: string;
@@ -806,8 +806,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
806
806
  }>;
807
807
  }, "strip", z.ZodTypeAny, {
808
808
  type: "tools_used";
809
- name: string;
810
809
  id: string;
810
+ name: string;
811
811
  config: {
812
812
  inputs: {
813
813
  expectedTools: string;
@@ -816,8 +816,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
816
816
  };
817
817
  }, {
818
818
  type: "tools_used";
819
- name: string;
820
819
  id: string;
820
+ name: string;
821
821
  config: {
822
822
  inputs: {
823
823
  expectedTools: string;
@@ -827,28 +827,28 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
827
827
  }>]>, "many">;
828
828
  }, "strip", z.ZodTypeAny, {
829
829
  status: "valid" | "invalid";
830
- name: string;
831
830
  id: string;
831
+ name: string;
832
832
  workflowId: string;
833
833
  invalidReason: string | null;
834
834
  startNodeName: string;
835
835
  endNodeName: string;
836
836
  metrics: ({
837
837
  type: "expression";
838
- name: string;
839
838
  id: string;
839
+ name: string;
840
840
  config: {
841
841
  expression: string;
842
842
  outputType: "boolean" | "numeric";
843
843
  };
844
844
  } | {
845
845
  type: "llm_judge";
846
- name: string;
847
846
  id: string;
847
+ name: string;
848
848
  config: {
849
849
  provider: string;
850
- model: string;
851
850
  credentialId: string;
851
+ model: string;
852
852
  outputType: "boolean" | "numeric";
853
853
  preset: "correctness" | "helpfulness";
854
854
  inputs: {
@@ -860,8 +860,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
860
860
  };
861
861
  } | {
862
862
  type: "string_similarity";
863
- name: string;
864
863
  id: string;
864
+ name: string;
865
865
  config: {
866
866
  inputs: {
867
867
  actualAnswer: string;
@@ -870,8 +870,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
870
870
  };
871
871
  } | {
872
872
  type: "categorization";
873
- name: string;
874
873
  id: string;
874
+ name: string;
875
875
  config: {
876
876
  inputs: {
877
877
  actualAnswer: string;
@@ -880,8 +880,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
880
880
  };
881
881
  } | {
882
882
  type: "tools_used";
883
- name: string;
884
883
  id: string;
884
+ name: string;
885
885
  config: {
886
886
  inputs: {
887
887
  expectedTools: string;
@@ -891,28 +891,28 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
891
891
  })[];
892
892
  }, {
893
893
  status: "valid" | "invalid";
894
- name: string;
895
894
  id: string;
895
+ name: string;
896
896
  workflowId: string;
897
897
  invalidReason: string | null;
898
898
  startNodeName: string;
899
899
  endNodeName: string;
900
900
  metrics: ({
901
901
  type: "expression";
902
- name: string;
903
902
  id: string;
903
+ name: string;
904
904
  config: {
905
905
  expression: string;
906
906
  outputType: "boolean" | "numeric";
907
907
  };
908
908
  } | {
909
909
  type: "llm_judge";
910
- name: string;
911
910
  id: string;
911
+ name: string;
912
912
  config: {
913
913
  provider: string;
914
- model: string;
915
914
  credentialId: string;
915
+ model: string;
916
916
  outputType: "boolean" | "numeric";
917
917
  preset: "correctness" | "helpfulness";
918
918
  inputs: {
@@ -924,8 +924,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
924
924
  };
925
925
  } | {
926
926
  type: "string_similarity";
927
- name: string;
928
927
  id: string;
928
+ name: string;
929
929
  config: {
930
930
  inputs: {
931
931
  actualAnswer: string;
@@ -934,8 +934,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
934
934
  };
935
935
  } | {
936
936
  type: "categorization";
937
- name: string;
938
937
  id: string;
938
+ name: string;
939
939
  config: {
940
940
  inputs: {
941
941
  actualAnswer: string;
@@ -944,8 +944,8 @@ export declare const evaluationConfigSchema: z.ZodIntersection<z.ZodObject<{
944
944
  };
945
945
  } | {
946
946
  type: "tools_used";
947
- name: string;
948
947
  id: string;
948
+ name: string;
949
949
  config: {
950
950
  inputs: {
951
951
  expectedTools: string;
@@ -1028,16 +1028,16 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1028
1028
  }>;
1029
1029
  }, "strip", z.ZodTypeAny, {
1030
1030
  type: "expression";
1031
- name: string;
1032
1031
  id: string;
1032
+ name: string;
1033
1033
  config: {
1034
1034
  expression: string;
1035
1035
  outputType: "boolean" | "numeric";
1036
1036
  };
1037
1037
  }, {
1038
1038
  type: "expression";
1039
- name: string;
1040
1039
  id: string;
1040
+ name: string;
1041
1041
  config: {
1042
1042
  expression: string;
1043
1043
  outputType: "boolean" | "numeric";
@@ -1068,8 +1068,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1068
1068
  }>;
1069
1069
  }, "strip", z.ZodTypeAny, {
1070
1070
  provider: string;
1071
- model: string;
1072
1071
  credentialId: string;
1072
+ model: string;
1073
1073
  outputType: "boolean" | "numeric";
1074
1074
  preset: "correctness" | "helpfulness";
1075
1075
  inputs: {
@@ -1080,8 +1080,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1080
1080
  prompt?: string | undefined;
1081
1081
  }, {
1082
1082
  provider: string;
1083
- model: string;
1084
1083
  credentialId: string;
1084
+ model: string;
1085
1085
  outputType: "boolean" | "numeric";
1086
1086
  preset: "correctness" | "helpfulness";
1087
1087
  inputs: {
@@ -1092,8 +1092,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1092
1092
  prompt?: string | undefined;
1093
1093
  }>, {
1094
1094
  provider: string;
1095
- model: string;
1096
1095
  credentialId: string;
1096
+ model: string;
1097
1097
  outputType: "boolean" | "numeric";
1098
1098
  preset: "correctness" | "helpfulness";
1099
1099
  inputs: {
@@ -1104,8 +1104,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1104
1104
  prompt?: string | undefined;
1105
1105
  }, {
1106
1106
  provider: string;
1107
- model: string;
1108
1107
  credentialId: string;
1108
+ model: string;
1109
1109
  outputType: "boolean" | "numeric";
1110
1110
  preset: "correctness" | "helpfulness";
1111
1111
  inputs: {
@@ -1117,12 +1117,12 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1117
1117
  }>;
1118
1118
  }, "strip", z.ZodTypeAny, {
1119
1119
  type: "llm_judge";
1120
- name: string;
1121
1120
  id: string;
1121
+ name: string;
1122
1122
  config: {
1123
1123
  provider: string;
1124
- model: string;
1125
1124
  credentialId: string;
1125
+ model: string;
1126
1126
  outputType: "boolean" | "numeric";
1127
1127
  preset: "correctness" | "helpfulness";
1128
1128
  inputs: {
@@ -1134,12 +1134,12 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1134
1134
  };
1135
1135
  }, {
1136
1136
  type: "llm_judge";
1137
- name: string;
1138
1137
  id: string;
1138
+ name: string;
1139
1139
  config: {
1140
1140
  provider: string;
1141
- model: string;
1142
1141
  credentialId: string;
1142
+ model: string;
1143
1143
  outputType: "boolean" | "numeric";
1144
1144
  preset: "correctness" | "helpfulness";
1145
1145
  inputs: {
@@ -1177,8 +1177,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1177
1177
  }>;
1178
1178
  }, "strip", z.ZodTypeAny, {
1179
1179
  type: "string_similarity";
1180
- name: string;
1181
1180
  id: string;
1181
+ name: string;
1182
1182
  config: {
1183
1183
  inputs: {
1184
1184
  actualAnswer: string;
@@ -1187,8 +1187,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1187
1187
  };
1188
1188
  }, {
1189
1189
  type: "string_similarity";
1190
- name: string;
1191
1190
  id: string;
1191
+ name: string;
1192
1192
  config: {
1193
1193
  inputs: {
1194
1194
  actualAnswer: string;
@@ -1223,8 +1223,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1223
1223
  }>;
1224
1224
  }, "strip", z.ZodTypeAny, {
1225
1225
  type: "categorization";
1226
- name: string;
1227
1226
  id: string;
1227
+ name: string;
1228
1228
  config: {
1229
1229
  inputs: {
1230
1230
  actualAnswer: string;
@@ -1233,8 +1233,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1233
1233
  };
1234
1234
  }, {
1235
1235
  type: "categorization";
1236
- name: string;
1237
1236
  id: string;
1237
+ name: string;
1238
1238
  config: {
1239
1239
  inputs: {
1240
1240
  actualAnswer: string;
@@ -1269,8 +1269,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1269
1269
  }>;
1270
1270
  }, "strip", z.ZodTypeAny, {
1271
1271
  type: "tools_used";
1272
- name: string;
1273
1272
  id: string;
1273
+ name: string;
1274
1274
  config: {
1275
1275
  inputs: {
1276
1276
  expectedTools: string;
@@ -1279,8 +1279,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1279
1279
  };
1280
1280
  }, {
1281
1281
  type: "tools_used";
1282
- name: string;
1283
1282
  id: string;
1283
+ name: string;
1284
1284
  config: {
1285
1285
  inputs: {
1286
1286
  expectedTools: string;
@@ -1294,20 +1294,20 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1294
1294
  endNodeName: string;
1295
1295
  metrics: ({
1296
1296
  type: "expression";
1297
- name: string;
1298
1297
  id: string;
1298
+ name: string;
1299
1299
  config: {
1300
1300
  expression: string;
1301
1301
  outputType: "boolean" | "numeric";
1302
1302
  };
1303
1303
  } | {
1304
1304
  type: "llm_judge";
1305
- name: string;
1306
1305
  id: string;
1306
+ name: string;
1307
1307
  config: {
1308
1308
  provider: string;
1309
- model: string;
1310
1309
  credentialId: string;
1310
+ model: string;
1311
1311
  outputType: "boolean" | "numeric";
1312
1312
  preset: "correctness" | "helpfulness";
1313
1313
  inputs: {
@@ -1319,8 +1319,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1319
1319
  };
1320
1320
  } | {
1321
1321
  type: "string_similarity";
1322
- name: string;
1323
1322
  id: string;
1323
+ name: string;
1324
1324
  config: {
1325
1325
  inputs: {
1326
1326
  actualAnswer: string;
@@ -1329,8 +1329,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1329
1329
  };
1330
1330
  } | {
1331
1331
  type: "categorization";
1332
- name: string;
1333
1332
  id: string;
1333
+ name: string;
1334
1334
  config: {
1335
1335
  inputs: {
1336
1336
  actualAnswer: string;
@@ -1339,8 +1339,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1339
1339
  };
1340
1340
  } | {
1341
1341
  type: "tools_used";
1342
- name: string;
1343
1342
  id: string;
1343
+ name: string;
1344
1344
  config: {
1345
1345
  inputs: {
1346
1346
  expectedTools: string;
@@ -1354,20 +1354,20 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1354
1354
  endNodeName: string;
1355
1355
  metrics: ({
1356
1356
  type: "expression";
1357
- name: string;
1358
1357
  id: string;
1358
+ name: string;
1359
1359
  config: {
1360
1360
  expression: string;
1361
1361
  outputType: "boolean" | "numeric";
1362
1362
  };
1363
1363
  } | {
1364
1364
  type: "llm_judge";
1365
- name: string;
1366
1365
  id: string;
1366
+ name: string;
1367
1367
  config: {
1368
1368
  provider: string;
1369
- model: string;
1370
1369
  credentialId: string;
1370
+ model: string;
1371
1371
  outputType: "boolean" | "numeric";
1372
1372
  preset: "correctness" | "helpfulness";
1373
1373
  inputs: {
@@ -1379,8 +1379,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1379
1379
  };
1380
1380
  } | {
1381
1381
  type: "string_similarity";
1382
- name: string;
1383
1382
  id: string;
1383
+ name: string;
1384
1384
  config: {
1385
1385
  inputs: {
1386
1386
  actualAnswer: string;
@@ -1389,8 +1389,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1389
1389
  };
1390
1390
  } | {
1391
1391
  type: "categorization";
1392
- name: string;
1393
1392
  id: string;
1393
+ name: string;
1394
1394
  config: {
1395
1395
  inputs: {
1396
1396
  actualAnswer: string;
@@ -1399,8 +1399,8 @@ export declare const upsertEvaluationConfigSchema: z.ZodIntersection<z.ZodObject
1399
1399
  };
1400
1400
  } | {
1401
1401
  type: "tools_used";
1402
- name: string;
1403
1402
  id: string;
1403
+ name: string;
1404
1404
  config: {
1405
1405
  inputs: {
1406
1406
  expectedTools: string;