@n8n/api-types 1.34.2 → 1.35.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 (92) hide show
  1. package/dist/agents/agent-integration.schema.d.ts +18 -0
  2. package/dist/agents/agent-integration.schema.js +2 -0
  3. package/dist/agents/agent-integration.schema.js.map +1 -1
  4. package/dist/agents/agent-interaction.schema.d.ts +151 -0
  5. package/dist/agents/agent-json-config.schema.d.ts +308 -12
  6. package/dist/agents/agent-json-config.schema.js +6 -5
  7. package/dist/agents/agent-json-config.schema.js.map +1 -1
  8. package/dist/agents/dto.d.ts +0 -7
  9. package/dist/agents/dto.js +1 -6
  10. package/dist/agents/dto.js.map +1 -1
  11. package/dist/agents/index.d.ts +1 -0
  12. package/dist/agents/index.js +1 -0
  13. package/dist/agents/index.js.map +1 -1
  14. package/dist/agents/inline-agent-config.schema.d.ts +273 -10
  15. package/dist/agents/sanitize-agent-json-config.js +7 -0
  16. package/dist/agents/sanitize-agent-json-config.js.map +1 -1
  17. package/dist/agents/slack/dto.d.ts +9 -0
  18. package/dist/agents/slack/dto.js +11 -0
  19. package/dist/agents/slack/dto.js.map +1 -0
  20. package/dist/agents/slack/index.d.ts +2 -0
  21. package/dist/agents/slack/index.js +18 -0
  22. package/dist/agents/slack/index.js.map +1 -0
  23. package/dist/agents/slack/types.d.ts +42 -0
  24. package/dist/agents/slack/types.js +3 -0
  25. package/dist/agents/slack/types.js.map +1 -0
  26. package/dist/agents/types.d.ts +1 -43
  27. package/dist/agents/types.js.map +1 -1
  28. package/dist/build.tsbuildinfo +1 -1
  29. package/dist/dto/index.d.ts +4 -0
  30. package/dist/dto/index.js +15 -3
  31. package/dist/dto/index.js.map +1 -1
  32. package/dist/dto/insights/date-filter.dto.d.ts +2 -0
  33. package/dist/dto/insights/date-filter.dto.js +2 -0
  34. package/dist/dto/insights/date-filter.dto.js.map +1 -1
  35. package/dist/dto/insights/list-workflow-query.dto.d.ts +2 -0
  36. package/dist/dto/insights/list-workflow-query.dto.js +2 -0
  37. package/dist/dto/insights/list-workflow-query.dto.js.map +1 -1
  38. package/dist/dto/packages/import-package-request.dto.d.ts +7 -3
  39. package/dist/dto/packages/import-package-request.dto.js +5 -1
  40. package/dist/dto/packages/import-package-request.dto.js.map +1 -1
  41. package/dist/dto/pagination/pagination.dto.d.ts +1 -1
  42. package/dist/dto/pagination/pagination.dto.js +2 -2
  43. package/dist/dto/pagination/pagination.dto.js.map +1 -1
  44. package/dist/dto/roles/role-public.dto.d.ts +23 -0
  45. package/dist/dto/roles/role-public.dto.js +18 -0
  46. package/dist/dto/roles/role-public.dto.js.map +1 -0
  47. package/dist/dto/tag/tag-public.dto.d.ts +18 -18
  48. package/dist/dto/tag/tag-public.dto.js +4 -4
  49. package/dist/dto/tag/tag-public.dto.js.map +1 -1
  50. package/dist/dto/workflow-history/workflow-history-list-item.dto.js +2 -2
  51. package/dist/dto/workflow-history/workflow-history-list-item.dto.js.map +1 -1
  52. package/dist/dto/workflow-history/workflow-version-history-public.dto.d.ts +20 -20
  53. package/dist/dto/workflow-history/workflow-version-history-public.dto.js +5 -2
  54. package/dist/dto/workflow-history/workflow-version-history-public.dto.js.map +1 -1
  55. package/dist/dto/workflow-reviews/create-workflow-review-request.dto.d.ts +8 -0
  56. package/dist/dto/workflow-reviews/create-workflow-review-request.dto.js +3 -0
  57. package/dist/dto/workflow-reviews/create-workflow-review-request.dto.js.map +1 -1
  58. package/dist/dto/workflow-reviews/get-workflow-review-request-detail.dto.d.ts +4 -0
  59. package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.d.ts +4 -0
  60. package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.js +3 -0
  61. package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.js.map +1 -1
  62. package/dist/dto/workflows/get-workflow-query.dto.d.ts +8 -0
  63. package/dist/dto/workflows/get-workflow-query.dto.js +11 -0
  64. package/dist/dto/workflows/get-workflow-query.dto.js.map +1 -0
  65. package/dist/dto/workflows/workflow-public.dto.d.ts +859 -0
  66. package/dist/dto/workflows/workflow-public.dto.js +93 -0
  67. package/dist/dto/workflows/workflow-public.dto.js.map +1 -0
  68. package/dist/frontend-settings.d.ts +1 -0
  69. package/dist/index.d.ts +5 -5
  70. package/dist/index.js +18 -3
  71. package/dist/index.js.map +1 -1
  72. package/dist/push/agents.d.ts +10 -0
  73. package/dist/push/agents.js +3 -0
  74. package/dist/push/agents.js.map +1 -0
  75. package/dist/push/index.d.ts +2 -1
  76. package/dist/schemas/agent-evals.schema.d.ts +25 -10
  77. package/dist/schemas/agent-evals.schema.js +9 -1
  78. package/dist/schemas/agent-evals.schema.js.map +1 -1
  79. package/dist/schemas/agent-run-reducer.js +1 -0
  80. package/dist/schemas/agent-run-reducer.js.map +1 -1
  81. package/dist/schemas/dependency-counts.schema.d.ts +1 -0
  82. package/dist/schemas/dependency.schema.d.ts +1 -1
  83. package/dist/schemas/instance-ai.schema.d.ts +7878 -53
  84. package/dist/schemas/instance-ai.schema.js +152 -3
  85. package/dist/schemas/instance-ai.schema.js.map +1 -1
  86. package/dist/schemas/mcp.schema.d.ts +2 -2
  87. package/dist/schemas/mcp.schema.js +1 -1
  88. package/dist/schemas/mcp.schema.js.map +1 -1
  89. package/dist/schemas/workflow-version.schema.d.ts +1 -0
  90. package/dist/schemas/workflow-version.schema.js +10 -4
  91. package/dist/schemas/workflow-version.schema.js.map +1 -1
  92. package/package.json +7 -7
@@ -359,6 +359,7 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
359
359
  requireApproval?: boolean | undefined;
360
360
  }>, z.ZodObject<{
361
361
  type: z.ZodLiteral<"workflow">;
362
+ workflowId: z.ZodOptional<z.ZodString>;
362
363
  workflow: z.ZodString;
363
364
  name: z.ZodOptional<z.ZodString>;
364
365
  description: z.ZodOptional<z.ZodString>;
@@ -366,6 +367,7 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
366
367
  allOutputs: z.ZodOptional<z.ZodBoolean>;
367
368
  }, "strict", z.ZodTypeAny, {
368
369
  type: "workflow";
370
+ workflowId?: string | undefined;
369
371
  workflow: string;
370
372
  name?: string | undefined;
371
373
  description?: string | undefined;
@@ -373,6 +375,7 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
373
375
  allOutputs?: boolean | undefined;
374
376
  }, {
375
377
  type: "workflow";
378
+ workflowId?: string | undefined;
376
379
  workflow: string;
377
380
  name?: string | undefined;
378
381
  description?: string | undefined;
@@ -387,7 +390,7 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
387
390
  nodeType: z.ZodString;
388
391
  nodeTypeVersion: z.ZodNumber;
389
392
  nodeParameters: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
390
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
393
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
391
394
  id: z.ZodString;
392
395
  name: z.ZodString;
393
396
  }, "strip", z.ZodTypeAny, {
@@ -396,7 +399,19 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
396
399
  }, {
397
400
  id: string;
398
401
  name: string;
399
- }>>>;
402
+ }>, z.ZodObject<{
403
+ id: z.ZodNull;
404
+ name: z.ZodString;
405
+ __aiGatewayManaged: z.ZodLiteral<true>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ id: null;
408
+ name: string;
409
+ __aiGatewayManaged: true;
410
+ }, {
411
+ id: null;
412
+ name: string;
413
+ __aiGatewayManaged: true;
414
+ }>]>>>;
400
415
  }, "strip", z.ZodTypeAny, {
401
416
  nodeType: string;
402
417
  nodeTypeVersion: number;
@@ -404,6 +419,10 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
404
419
  credentials?: Record<string, {
405
420
  id: string;
406
421
  name: string;
422
+ } | {
423
+ id: null;
424
+ name: string;
425
+ __aiGatewayManaged: true;
407
426
  }> | undefined;
408
427
  }, {
409
428
  nodeType: string;
@@ -412,6 +431,10 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
412
431
  credentials?: Record<string, {
413
432
  id: string;
414
433
  name: string;
434
+ } | {
435
+ id: null;
436
+ name: string;
437
+ __aiGatewayManaged: true;
415
438
  }> | undefined;
416
439
  }>;
417
440
  requireApproval: z.ZodOptional<z.ZodBoolean>;
@@ -427,6 +450,10 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
427
450
  credentials?: Record<string, {
428
451
  id: string;
429
452
  name: string;
453
+ } | {
454
+ id: null;
455
+ name: string;
456
+ __aiGatewayManaged: true;
430
457
  }> | undefined;
431
458
  };
432
459
  requireApproval?: boolean | undefined;
@@ -442,6 +469,10 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
442
469
  credentials?: Record<string, {
443
470
  id: string;
444
471
  name: string;
472
+ } | {
473
+ id: null;
474
+ name: string;
475
+ __aiGatewayManaged: true;
445
476
  }> | undefined;
446
477
  };
447
478
  requireApproval?: boolean | undefined;
@@ -451,6 +482,7 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
451
482
  requireApproval?: boolean | undefined;
452
483
  } | {
453
484
  type: "workflow";
485
+ workflowId?: string | undefined;
454
486
  workflow: string;
455
487
  name?: string | undefined;
456
488
  description?: string | undefined;
@@ -468,6 +500,10 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
468
500
  credentials?: Record<string, {
469
501
  id: string;
470
502
  name: string;
503
+ } | {
504
+ id: null;
505
+ name: string;
506
+ __aiGatewayManaged: true;
471
507
  }> | undefined;
472
508
  };
473
509
  requireApproval?: boolean | undefined;
@@ -477,6 +513,7 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
477
513
  requireApproval?: boolean | undefined;
478
514
  } | {
479
515
  type: "workflow";
516
+ workflowId?: string | undefined;
480
517
  workflow: string;
481
518
  name?: string | undefined;
482
519
  description?: string | undefined;
@@ -494,6 +531,10 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
494
531
  credentials?: Record<string, {
495
532
  id: string;
496
533
  name: string;
534
+ } | {
535
+ id: null;
536
+ name: string;
537
+ __aiGatewayManaged: true;
497
538
  }> | undefined;
498
539
  };
499
540
  requireApproval?: boolean | undefined;
@@ -580,6 +621,15 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
580
621
  }, {
581
622
  type: "linear";
582
623
  credentialId: string;
624
+ }>, z.ZodObject<{
625
+ type: z.ZodLiteral<"discord">;
626
+ credentialId: z.ZodString;
627
+ }, "strip", z.ZodTypeAny, {
628
+ type: "discord";
629
+ credentialId: string;
630
+ }, {
631
+ type: "discord";
632
+ credentialId: string;
583
633
  }>]>, "many">>;
584
634
  mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
585
635
  name: z.ZodEffects<z.ZodString, string, string>;
@@ -1034,6 +1084,7 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
1034
1084
  }, "credential" | "instructions" | "model" | "name" | "skills"> & {
1035
1085
  tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
1036
1086
  type: z.ZodLiteral<"workflow">;
1087
+ workflowId: z.ZodOptional<z.ZodString>;
1037
1088
  workflow: z.ZodString;
1038
1089
  name: z.ZodOptional<z.ZodString>;
1039
1090
  description: z.ZodOptional<z.ZodString>;
@@ -1041,12 +1092,14 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
1041
1092
  allOutputs: z.ZodOptional<z.ZodBoolean>;
1042
1093
  }, "requireApproval">, "strict", z.ZodTypeAny, {
1043
1094
  type: "workflow";
1095
+ workflowId?: string | undefined;
1044
1096
  workflow: string;
1045
1097
  name?: string | undefined;
1046
1098
  description?: string | undefined;
1047
1099
  allOutputs?: boolean | undefined;
1048
1100
  }, {
1049
1101
  type: "workflow";
1102
+ workflowId?: string | undefined;
1050
1103
  workflow: string;
1051
1104
  name?: string | undefined;
1052
1105
  description?: string | undefined;
@@ -1060,7 +1113,7 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
1060
1113
  nodeType: z.ZodString;
1061
1114
  nodeTypeVersion: z.ZodNumber;
1062
1115
  nodeParameters: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1063
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1116
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1064
1117
  id: z.ZodString;
1065
1118
  name: z.ZodString;
1066
1119
  }, "strip", z.ZodTypeAny, {
@@ -1069,7 +1122,19 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
1069
1122
  }, {
1070
1123
  id: string;
1071
1124
  name: string;
1072
- }>>>;
1125
+ }>, z.ZodObject<{
1126
+ id: z.ZodNull;
1127
+ name: z.ZodString;
1128
+ __aiGatewayManaged: z.ZodLiteral<true>;
1129
+ }, "strip", z.ZodTypeAny, {
1130
+ id: null;
1131
+ name: string;
1132
+ __aiGatewayManaged: true;
1133
+ }, {
1134
+ id: null;
1135
+ name: string;
1136
+ __aiGatewayManaged: true;
1137
+ }>]>>>;
1073
1138
  }, "strip", z.ZodTypeAny, {
1074
1139
  nodeType: string;
1075
1140
  nodeTypeVersion: number;
@@ -1077,6 +1142,10 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
1077
1142
  credentials?: Record<string, {
1078
1143
  id: string;
1079
1144
  name: string;
1145
+ } | {
1146
+ id: null;
1147
+ name: string;
1148
+ __aiGatewayManaged: true;
1080
1149
  }> | undefined;
1081
1150
  }, {
1082
1151
  nodeType: string;
@@ -1085,6 +1154,10 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
1085
1154
  credentials?: Record<string, {
1086
1155
  id: string;
1087
1156
  name: string;
1157
+ } | {
1158
+ id: null;
1159
+ name: string;
1160
+ __aiGatewayManaged: true;
1088
1161
  }> | undefined;
1089
1162
  }>;
1090
1163
  requireApproval: z.ZodOptional<z.ZodBoolean>;
@@ -1100,6 +1173,10 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
1100
1173
  credentials?: Record<string, {
1101
1174
  id: string;
1102
1175
  name: string;
1176
+ } | {
1177
+ id: null;
1178
+ name: string;
1179
+ __aiGatewayManaged: true;
1103
1180
  }> | undefined;
1104
1181
  };
1105
1182
  }, {
@@ -1114,6 +1191,10 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
1114
1191
  credentials?: Record<string, {
1115
1192
  id: string;
1116
1193
  name: string;
1194
+ } | {
1195
+ id: null;
1196
+ name: string;
1197
+ __aiGatewayManaged: true;
1117
1198
  }> | undefined;
1118
1199
  };
1119
1200
  }>]>, "many">>;
@@ -1323,6 +1404,7 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
1323
1404
  }[] | undefined;
1324
1405
  tools?: ({
1325
1406
  type: "workflow";
1407
+ workflowId?: string | undefined;
1326
1408
  workflow: string;
1327
1409
  name?: string | undefined;
1328
1410
  description?: string | undefined;
@@ -1339,6 +1421,10 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
1339
1421
  credentials?: Record<string, {
1340
1422
  id: string;
1341
1423
  name: string;
1424
+ } | {
1425
+ id: null;
1426
+ name: string;
1427
+ __aiGatewayManaged: true;
1342
1428
  }> | undefined;
1343
1429
  };
1344
1430
  })[] | undefined;
@@ -1378,6 +1464,7 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
1378
1464
  }[] | undefined;
1379
1465
  tools?: ({
1380
1466
  type: "workflow";
1467
+ workflowId?: string | undefined;
1381
1468
  workflow: string;
1382
1469
  name?: string | undefined;
1383
1470
  description?: string | undefined;
@@ -1394,6 +1481,10 @@ export declare const InlineAgentJsonConfigSchema: z.ZodObject<Pick<{
1394
1481
  credentials?: Record<string, {
1395
1482
  id: string;
1396
1483
  name: string;
1484
+ } | {
1485
+ id: null;
1486
+ name: string;
1487
+ __aiGatewayManaged: true;
1397
1488
  }> | undefined;
1398
1489
  };
1399
1490
  })[] | undefined;
@@ -1784,6 +1875,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1784
1875
  requireApproval?: boolean | undefined;
1785
1876
  }>, z.ZodObject<{
1786
1877
  type: z.ZodLiteral<"workflow">;
1878
+ workflowId: z.ZodOptional<z.ZodString>;
1787
1879
  workflow: z.ZodString;
1788
1880
  name: z.ZodOptional<z.ZodString>;
1789
1881
  description: z.ZodOptional<z.ZodString>;
@@ -1791,6 +1883,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1791
1883
  allOutputs: z.ZodOptional<z.ZodBoolean>;
1792
1884
  }, "strict", z.ZodTypeAny, {
1793
1885
  type: "workflow";
1886
+ workflowId?: string | undefined;
1794
1887
  workflow: string;
1795
1888
  name?: string | undefined;
1796
1889
  description?: string | undefined;
@@ -1798,6 +1891,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1798
1891
  allOutputs?: boolean | undefined;
1799
1892
  }, {
1800
1893
  type: "workflow";
1894
+ workflowId?: string | undefined;
1801
1895
  workflow: string;
1802
1896
  name?: string | undefined;
1803
1897
  description?: string | undefined;
@@ -1812,7 +1906,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1812
1906
  nodeType: z.ZodString;
1813
1907
  nodeTypeVersion: z.ZodNumber;
1814
1908
  nodeParameters: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1815
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1909
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1816
1910
  id: z.ZodString;
1817
1911
  name: z.ZodString;
1818
1912
  }, "strip", z.ZodTypeAny, {
@@ -1821,7 +1915,19 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1821
1915
  }, {
1822
1916
  id: string;
1823
1917
  name: string;
1824
- }>>>;
1918
+ }>, z.ZodObject<{
1919
+ id: z.ZodNull;
1920
+ name: z.ZodString;
1921
+ __aiGatewayManaged: z.ZodLiteral<true>;
1922
+ }, "strip", z.ZodTypeAny, {
1923
+ id: null;
1924
+ name: string;
1925
+ __aiGatewayManaged: true;
1926
+ }, {
1927
+ id: null;
1928
+ name: string;
1929
+ __aiGatewayManaged: true;
1930
+ }>]>>>;
1825
1931
  }, "strip", z.ZodTypeAny, {
1826
1932
  nodeType: string;
1827
1933
  nodeTypeVersion: number;
@@ -1829,6 +1935,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1829
1935
  credentials?: Record<string, {
1830
1936
  id: string;
1831
1937
  name: string;
1938
+ } | {
1939
+ id: null;
1940
+ name: string;
1941
+ __aiGatewayManaged: true;
1832
1942
  }> | undefined;
1833
1943
  }, {
1834
1944
  nodeType: string;
@@ -1837,6 +1947,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1837
1947
  credentials?: Record<string, {
1838
1948
  id: string;
1839
1949
  name: string;
1950
+ } | {
1951
+ id: null;
1952
+ name: string;
1953
+ __aiGatewayManaged: true;
1840
1954
  }> | undefined;
1841
1955
  }>;
1842
1956
  requireApproval: z.ZodOptional<z.ZodBoolean>;
@@ -1852,6 +1966,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1852
1966
  credentials?: Record<string, {
1853
1967
  id: string;
1854
1968
  name: string;
1969
+ } | {
1970
+ id: null;
1971
+ name: string;
1972
+ __aiGatewayManaged: true;
1855
1973
  }> | undefined;
1856
1974
  };
1857
1975
  requireApproval?: boolean | undefined;
@@ -1867,6 +1985,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1867
1985
  credentials?: Record<string, {
1868
1986
  id: string;
1869
1987
  name: string;
1988
+ } | {
1989
+ id: null;
1990
+ name: string;
1991
+ __aiGatewayManaged: true;
1870
1992
  }> | undefined;
1871
1993
  };
1872
1994
  requireApproval?: boolean | undefined;
@@ -1876,6 +1998,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1876
1998
  requireApproval?: boolean | undefined;
1877
1999
  } | {
1878
2000
  type: "workflow";
2001
+ workflowId?: string | undefined;
1879
2002
  workflow: string;
1880
2003
  name?: string | undefined;
1881
2004
  description?: string | undefined;
@@ -1893,6 +2016,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1893
2016
  credentials?: Record<string, {
1894
2017
  id: string;
1895
2018
  name: string;
2019
+ } | {
2020
+ id: null;
2021
+ name: string;
2022
+ __aiGatewayManaged: true;
1896
2023
  }> | undefined;
1897
2024
  };
1898
2025
  requireApproval?: boolean | undefined;
@@ -1902,6 +2029,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1902
2029
  requireApproval?: boolean | undefined;
1903
2030
  } | {
1904
2031
  type: "workflow";
2032
+ workflowId?: string | undefined;
1905
2033
  workflow: string;
1906
2034
  name?: string | undefined;
1907
2035
  description?: string | undefined;
@@ -1919,6 +2047,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
1919
2047
  credentials?: Record<string, {
1920
2048
  id: string;
1921
2049
  name: string;
2050
+ } | {
2051
+ id: null;
2052
+ name: string;
2053
+ __aiGatewayManaged: true;
1922
2054
  }> | undefined;
1923
2055
  };
1924
2056
  requireApproval?: boolean | undefined;
@@ -2005,6 +2137,15 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2005
2137
  }, {
2006
2138
  type: "linear";
2007
2139
  credentialId: string;
2140
+ }>, z.ZodObject<{
2141
+ type: z.ZodLiteral<"discord">;
2142
+ credentialId: z.ZodString;
2143
+ }, "strip", z.ZodTypeAny, {
2144
+ type: "discord";
2145
+ credentialId: string;
2146
+ }, {
2147
+ type: "discord";
2148
+ credentialId: string;
2008
2149
  }>]>, "many">>;
2009
2150
  mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
2010
2151
  name: z.ZodEffects<z.ZodString, string, string>;
@@ -2459,6 +2600,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2459
2600
  }, "credential" | "instructions" | "model" | "name" | "skills"> & {
2460
2601
  tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
2461
2602
  type: z.ZodLiteral<"workflow">;
2603
+ workflowId: z.ZodOptional<z.ZodString>;
2462
2604
  workflow: z.ZodString;
2463
2605
  name: z.ZodOptional<z.ZodString>;
2464
2606
  description: z.ZodOptional<z.ZodString>;
@@ -2466,12 +2608,14 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2466
2608
  allOutputs: z.ZodOptional<z.ZodBoolean>;
2467
2609
  }, "requireApproval">, "strict", z.ZodTypeAny, {
2468
2610
  type: "workflow";
2611
+ workflowId?: string | undefined;
2469
2612
  workflow: string;
2470
2613
  name?: string | undefined;
2471
2614
  description?: string | undefined;
2472
2615
  allOutputs?: boolean | undefined;
2473
2616
  }, {
2474
2617
  type: "workflow";
2618
+ workflowId?: string | undefined;
2475
2619
  workflow: string;
2476
2620
  name?: string | undefined;
2477
2621
  description?: string | undefined;
@@ -2485,7 +2629,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2485
2629
  nodeType: z.ZodString;
2486
2630
  nodeTypeVersion: z.ZodNumber;
2487
2631
  nodeParameters: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2488
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2632
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
2489
2633
  id: z.ZodString;
2490
2634
  name: z.ZodString;
2491
2635
  }, "strip", z.ZodTypeAny, {
@@ -2494,7 +2638,19 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2494
2638
  }, {
2495
2639
  id: string;
2496
2640
  name: string;
2497
- }>>>;
2641
+ }>, z.ZodObject<{
2642
+ id: z.ZodNull;
2643
+ name: z.ZodString;
2644
+ __aiGatewayManaged: z.ZodLiteral<true>;
2645
+ }, "strip", z.ZodTypeAny, {
2646
+ id: null;
2647
+ name: string;
2648
+ __aiGatewayManaged: true;
2649
+ }, {
2650
+ id: null;
2651
+ name: string;
2652
+ __aiGatewayManaged: true;
2653
+ }>]>>>;
2498
2654
  }, "strip", z.ZodTypeAny, {
2499
2655
  nodeType: string;
2500
2656
  nodeTypeVersion: number;
@@ -2502,6 +2658,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2502
2658
  credentials?: Record<string, {
2503
2659
  id: string;
2504
2660
  name: string;
2661
+ } | {
2662
+ id: null;
2663
+ name: string;
2664
+ __aiGatewayManaged: true;
2505
2665
  }> | undefined;
2506
2666
  }, {
2507
2667
  nodeType: string;
@@ -2510,6 +2670,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2510
2670
  credentials?: Record<string, {
2511
2671
  id: string;
2512
2672
  name: string;
2673
+ } | {
2674
+ id: null;
2675
+ name: string;
2676
+ __aiGatewayManaged: true;
2513
2677
  }> | undefined;
2514
2678
  }>;
2515
2679
  requireApproval: z.ZodOptional<z.ZodBoolean>;
@@ -2525,6 +2689,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2525
2689
  credentials?: Record<string, {
2526
2690
  id: string;
2527
2691
  name: string;
2692
+ } | {
2693
+ id: null;
2694
+ name: string;
2695
+ __aiGatewayManaged: true;
2528
2696
  }> | undefined;
2529
2697
  };
2530
2698
  }, {
@@ -2539,6 +2707,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2539
2707
  credentials?: Record<string, {
2540
2708
  id: string;
2541
2709
  name: string;
2710
+ } | {
2711
+ id: null;
2712
+ name: string;
2713
+ __aiGatewayManaged: true;
2542
2714
  }> | undefined;
2543
2715
  };
2544
2716
  }>]>, "many">>;
@@ -2748,6 +2920,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2748
2920
  }[] | undefined;
2749
2921
  tools?: ({
2750
2922
  type: "workflow";
2923
+ workflowId?: string | undefined;
2751
2924
  workflow: string;
2752
2925
  name?: string | undefined;
2753
2926
  description?: string | undefined;
@@ -2764,6 +2937,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2764
2937
  credentials?: Record<string, {
2765
2938
  id: string;
2766
2939
  name: string;
2940
+ } | {
2941
+ id: null;
2942
+ name: string;
2943
+ __aiGatewayManaged: true;
2767
2944
  }> | undefined;
2768
2945
  };
2769
2946
  })[] | undefined;
@@ -2803,6 +2980,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2803
2980
  }[] | undefined;
2804
2981
  tools?: ({
2805
2982
  type: "workflow";
2983
+ workflowId?: string | undefined;
2806
2984
  workflow: string;
2807
2985
  name?: string | undefined;
2808
2986
  description?: string | undefined;
@@ -2819,6 +2997,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2819
2997
  credentials?: Record<string, {
2820
2998
  id: string;
2821
2999
  name: string;
3000
+ } | {
3001
+ id: null;
3002
+ name: string;
3003
+ __aiGatewayManaged: true;
2822
3004
  }> | undefined;
2823
3005
  };
2824
3006
  })[] | undefined;
@@ -2921,6 +3103,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2921
3103
  }[] | undefined;
2922
3104
  tools?: ({
2923
3105
  type: "workflow";
3106
+ workflowId?: string | undefined;
2924
3107
  workflow: string;
2925
3108
  name?: string | undefined;
2926
3109
  description?: string | undefined;
@@ -2937,6 +3120,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2937
3120
  credentials?: Record<string, {
2938
3121
  id: string;
2939
3122
  name: string;
3123
+ } | {
3124
+ id: null;
3125
+ name: string;
3126
+ __aiGatewayManaged: true;
2940
3127
  }> | undefined;
2941
3128
  };
2942
3129
  })[] | undefined;
@@ -2993,6 +3180,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
2993
3180
  }[] | undefined;
2994
3181
  tools?: ({
2995
3182
  type: "workflow";
3183
+ workflowId?: string | undefined;
2996
3184
  workflow: string;
2997
3185
  name?: string | undefined;
2998
3186
  description?: string | undefined;
@@ -3009,6 +3197,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3009
3197
  credentials?: Record<string, {
3010
3198
  id: string;
3011
3199
  name: string;
3200
+ } | {
3201
+ id: null;
3202
+ name: string;
3203
+ __aiGatewayManaged: true;
3012
3204
  }> | undefined;
3013
3205
  };
3014
3206
  })[] | undefined;
@@ -3065,6 +3257,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3065
3257
  }[] | undefined;
3066
3258
  tools?: ({
3067
3259
  type: "workflow";
3260
+ workflowId?: string | undefined;
3068
3261
  workflow: string;
3069
3262
  name?: string | undefined;
3070
3263
  description?: string | undefined;
@@ -3081,6 +3274,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3081
3274
  credentials?: Record<string, {
3082
3275
  id: string;
3083
3276
  name: string;
3277
+ } | {
3278
+ id: null;
3279
+ name: string;
3280
+ __aiGatewayManaged: true;
3084
3281
  }> | undefined;
3085
3282
  };
3086
3283
  })[] | undefined;
@@ -3137,6 +3334,7 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3137
3334
  }[] | undefined;
3138
3335
  tools?: ({
3139
3336
  type: "workflow";
3337
+ workflowId?: string | undefined;
3140
3338
  workflow: string;
3141
3339
  name?: string | undefined;
3142
3340
  description?: string | undefined;
@@ -3153,6 +3351,10 @@ export declare const InlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3153
3351
  credentials?: Record<string, {
3154
3352
  id: string;
3155
3353
  name: string;
3354
+ } | {
3355
+ id: null;
3356
+ name: string;
3357
+ __aiGatewayManaged: true;
3156
3358
  }> | undefined;
3157
3359
  };
3158
3360
  })[] | undefined;
@@ -3220,6 +3422,7 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3220
3422
  }[]>>;
3221
3423
  tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
3222
3424
  type: z.ZodLiteral<"workflow">;
3425
+ workflowId: z.ZodOptional<z.ZodString>;
3223
3426
  workflow: z.ZodString;
3224
3427
  name: z.ZodOptional<z.ZodString>;
3225
3428
  description: z.ZodOptional<z.ZodString>;
@@ -3227,12 +3430,14 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3227
3430
  allOutputs: z.ZodOptional<z.ZodBoolean>;
3228
3431
  }, "requireApproval">, "strict", z.ZodTypeAny, {
3229
3432
  type: "workflow";
3433
+ workflowId?: string | undefined;
3230
3434
  workflow: string;
3231
3435
  name?: string | undefined;
3232
3436
  description?: string | undefined;
3233
3437
  allOutputs?: boolean | undefined;
3234
3438
  }, {
3235
3439
  type: "workflow";
3440
+ workflowId?: string | undefined;
3236
3441
  workflow: string;
3237
3442
  name?: string | undefined;
3238
3443
  description?: string | undefined;
@@ -3246,7 +3451,7 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3246
3451
  nodeType: z.ZodString;
3247
3452
  nodeTypeVersion: z.ZodNumber;
3248
3453
  nodeParameters: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3249
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3454
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
3250
3455
  id: z.ZodString;
3251
3456
  name: z.ZodString;
3252
3457
  }, "strip", z.ZodTypeAny, {
@@ -3255,7 +3460,19 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3255
3460
  }, {
3256
3461
  id: string;
3257
3462
  name: string;
3258
- }>>>;
3463
+ }>, z.ZodObject<{
3464
+ id: z.ZodNull;
3465
+ name: z.ZodString;
3466
+ __aiGatewayManaged: z.ZodLiteral<true>;
3467
+ }, "strip", z.ZodTypeAny, {
3468
+ id: null;
3469
+ name: string;
3470
+ __aiGatewayManaged: true;
3471
+ }, {
3472
+ id: null;
3473
+ name: string;
3474
+ __aiGatewayManaged: true;
3475
+ }>]>>>;
3259
3476
  }, "strip", z.ZodTypeAny, {
3260
3477
  nodeType: string;
3261
3478
  nodeTypeVersion: number;
@@ -3263,6 +3480,10 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3263
3480
  credentials?: Record<string, {
3264
3481
  id: string;
3265
3482
  name: string;
3483
+ } | {
3484
+ id: null;
3485
+ name: string;
3486
+ __aiGatewayManaged: true;
3266
3487
  }> | undefined;
3267
3488
  }, {
3268
3489
  nodeType: string;
@@ -3271,6 +3492,10 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3271
3492
  credentials?: Record<string, {
3272
3493
  id: string;
3273
3494
  name: string;
3495
+ } | {
3496
+ id: null;
3497
+ name: string;
3498
+ __aiGatewayManaged: true;
3274
3499
  }> | undefined;
3275
3500
  }>;
3276
3501
  requireApproval: z.ZodOptional<z.ZodBoolean>;
@@ -3286,6 +3511,10 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3286
3511
  credentials?: Record<string, {
3287
3512
  id: string;
3288
3513
  name: string;
3514
+ } | {
3515
+ id: null;
3516
+ name: string;
3517
+ __aiGatewayManaged: true;
3289
3518
  }> | undefined;
3290
3519
  };
3291
3520
  }, {
@@ -3300,6 +3529,10 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3300
3529
  credentials?: Record<string, {
3301
3530
  id: string;
3302
3531
  name: string;
3532
+ } | {
3533
+ id: null;
3534
+ name: string;
3535
+ __aiGatewayManaged: true;
3303
3536
  }> | undefined;
3304
3537
  };
3305
3538
  }>]>, "many">>;
@@ -3510,6 +3743,7 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3510
3743
  }[] | undefined;
3511
3744
  tools?: ({
3512
3745
  type: "workflow";
3746
+ workflowId?: string | undefined;
3513
3747
  workflow: string;
3514
3748
  name?: string | undefined;
3515
3749
  description?: string | undefined;
@@ -3526,6 +3760,10 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3526
3760
  credentials?: Record<string, {
3527
3761
  id: string;
3528
3762
  name: string;
3763
+ } | {
3764
+ id: null;
3765
+ name: string;
3766
+ __aiGatewayManaged: true;
3529
3767
  }> | undefined;
3530
3768
  };
3531
3769
  })[] | undefined;
@@ -3565,6 +3803,7 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3565
3803
  }[] | undefined;
3566
3804
  tools?: ({
3567
3805
  type: "workflow";
3806
+ workflowId?: string | undefined;
3568
3807
  workflow: string;
3569
3808
  name?: string | undefined;
3570
3809
  description?: string | undefined;
@@ -3581,6 +3820,10 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3581
3820
  credentials?: Record<string, {
3582
3821
  id: string;
3583
3822
  name: string;
3823
+ } | {
3824
+ id: null;
3825
+ name: string;
3826
+ __aiGatewayManaged: true;
3584
3827
  }> | undefined;
3585
3828
  };
3586
3829
  })[] | undefined;
@@ -3683,6 +3926,7 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3683
3926
  }[] | undefined;
3684
3927
  tools?: ({
3685
3928
  type: "workflow";
3929
+ workflowId?: string | undefined;
3686
3930
  workflow: string;
3687
3931
  name?: string | undefined;
3688
3932
  description?: string | undefined;
@@ -3699,6 +3943,10 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3699
3943
  credentials?: Record<string, {
3700
3944
  id: string;
3701
3945
  name: string;
3946
+ } | {
3947
+ id: null;
3948
+ name: string;
3949
+ __aiGatewayManaged: true;
3702
3950
  }> | undefined;
3703
3951
  };
3704
3952
  })[] | undefined;
@@ -3755,6 +4003,7 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3755
4003
  }[] | undefined;
3756
4004
  tools?: ({
3757
4005
  type: "workflow";
4006
+ workflowId?: string | undefined;
3758
4007
  workflow: string;
3759
4008
  name?: string | undefined;
3760
4009
  description?: string | undefined;
@@ -3771,6 +4020,10 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3771
4020
  credentials?: Record<string, {
3772
4021
  id: string;
3773
4022
  name: string;
4023
+ } | {
4024
+ id: null;
4025
+ name: string;
4026
+ __aiGatewayManaged: true;
3774
4027
  }> | undefined;
3775
4028
  };
3776
4029
  })[] | undefined;
@@ -3827,6 +4080,7 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3827
4080
  }[] | undefined;
3828
4081
  tools?: ({
3829
4082
  type: "workflow";
4083
+ workflowId?: string | undefined;
3830
4084
  workflow: string;
3831
4085
  name?: string | undefined;
3832
4086
  description?: string | undefined;
@@ -3843,6 +4097,10 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3843
4097
  credentials?: Record<string, {
3844
4098
  id: string;
3845
4099
  name: string;
4100
+ } | {
4101
+ id: null;
4102
+ name: string;
4103
+ __aiGatewayManaged: true;
3846
4104
  }> | undefined;
3847
4105
  };
3848
4106
  })[] | undefined;
@@ -3899,6 +4157,7 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3899
4157
  }[] | undefined;
3900
4158
  tools?: ({
3901
4159
  type: "workflow";
4160
+ workflowId?: string | undefined;
3902
4161
  workflow: string;
3903
4162
  name?: string | undefined;
3904
4163
  description?: string | undefined;
@@ -3915,6 +4174,10 @@ export declare const RunnableInlineAgentConfigSchema: z.ZodEffects<z.ZodObject<{
3915
4174
  credentials?: Record<string, {
3916
4175
  id: string;
3917
4176
  name: string;
4177
+ } | {
4178
+ id: null;
4179
+ name: string;
4180
+ __aiGatewayManaged: true;
3918
4181
  }> | undefined;
3919
4182
  };
3920
4183
  })[] | undefined;