vellum-ai 1.5.4 → 1.5.6

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 (258) hide show
  1. package/Client.d.ts +6 -0
  2. package/Client.js +47 -37
  3. package/api/errors/index.d.ts +1 -1
  4. package/api/errors/index.js +1 -1
  5. package/api/resources/adHoc/client/Client.js +2 -2
  6. package/api/resources/containerImages/client/Client.js +4 -4
  7. package/api/resources/deployments/client/Client.js +8 -8
  8. package/api/resources/documentIndexes/client/Client.js +8 -8
  9. package/api/resources/documents/client/Client.js +5 -5
  10. package/api/resources/events/client/Client.js +1 -1
  11. package/api/resources/folderEntities/client/Client.js +2 -2
  12. package/api/resources/index.d.ts +5 -0
  13. package/api/resources/index.js +6 -1
  14. package/api/resources/integrationAuthConfigs/client/Client.d.ts +46 -0
  15. package/api/resources/integrationAuthConfigs/client/Client.js +162 -0
  16. package/api/resources/integrationAuthConfigs/client/index.d.ts +1 -0
  17. package/api/resources/integrationAuthConfigs/client/index.js +17 -0
  18. package/api/resources/integrationAuthConfigs/client/requests/ListIntegrationAuthConfigsRequest.d.ts +32 -0
  19. package/api/resources/integrationAuthConfigs/client/requests/ListIntegrationAuthConfigsRequest.js +5 -0
  20. package/api/resources/integrationAuthConfigs/client/requests/index.d.ts +1 -0
  21. package/api/resources/integrationAuthConfigs/client/requests/index.js +2 -0
  22. package/api/resources/integrationAuthConfigs/index.d.ts +1 -0
  23. package/api/resources/integrationAuthConfigs/index.js +17 -0
  24. package/api/resources/integrationProviders/client/Client.d.ts +60 -0
  25. package/api/resources/integrationProviders/client/Client.js +216 -0
  26. package/api/resources/integrationProviders/client/index.d.ts +1 -0
  27. package/api/resources/integrationProviders/client/index.js +17 -0
  28. package/api/resources/integrationProviders/client/requests/ListIntegrationToolsRequest.d.ts +25 -0
  29. package/api/resources/integrationProviders/client/requests/ListIntegrationToolsRequest.js +5 -0
  30. package/api/resources/integrationProviders/client/requests/index.d.ts +1 -0
  31. package/api/resources/integrationProviders/client/requests/index.js +2 -0
  32. package/api/resources/integrationProviders/index.d.ts +1 -0
  33. package/api/resources/integrationProviders/index.js +17 -0
  34. package/api/resources/integrations/client/Client.d.ts +31 -8
  35. package/api/resources/integrations/client/Client.js +169 -18
  36. package/api/resources/integrations/client/index.d.ts +1 -1
  37. package/api/resources/integrations/client/index.js +15 -0
  38. package/api/resources/integrations/client/requests/IntegrationsListRequest.d.ts +29 -0
  39. package/api/resources/integrations/client/requests/IntegrationsListRequest.js +5 -0
  40. package/api/resources/integrations/client/requests/index.d.ts +1 -0
  41. package/api/resources/integrations/client/requests/index.js +2 -0
  42. package/api/resources/metricDefinitions/client/Client.js +2 -2
  43. package/api/resources/mlModels/client/Client.js +1 -1
  44. package/api/resources/organizations/client/Client.js +1 -1
  45. package/api/resources/prompts/client/Client.js +2 -2
  46. package/api/resources/sandboxes/client/Client.js +3 -3
  47. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  48. package/api/resources/testSuiteRuns/client/requests/TestSuiteRunsListExecutionsRequest.d.ts +3 -3
  49. package/api/resources/testSuites/client/Client.js +4 -4
  50. package/api/resources/workflowDeployments/client/Client.js +9 -9
  51. package/api/resources/workflowExecutions/client/Client.js +1 -1
  52. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  53. package/api/resources/workflows/client/Client.js +3 -3
  54. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  55. package/api/resources/workspaces/client/Client.js +1 -1
  56. package/api/types/ComponentsSchemasComposioIntegrationExecConfig.d.ts +5 -0
  57. package/api/types/ComponentsSchemasComposioIntegrationExecConfig.js +5 -0
  58. package/api/types/ComponentsSchemasSlimComposioToolDefinition.d.ts +5 -0
  59. package/api/types/ComponentsSchemasSlimComposioToolDefinition.js +5 -0
  60. package/api/types/ComposioIntegrationExecConfig.d.ts +7 -0
  61. package/api/types/ComposioIntegrationExecConfig.js +5 -0
  62. package/api/types/ComposioToolDefinition.d.ts +4 -1
  63. package/api/types/IntegrationAuthConfigIntegration.d.ts +9 -0
  64. package/api/types/IntegrationAuthConfigIntegration.js +5 -0
  65. package/api/types/IntegrationAuthConfigIntegrationCredential.d.ts +6 -0
  66. package/api/types/IntegrationAuthConfigIntegrationCredential.js +5 -0
  67. package/api/types/IntegrationCredentialAccessType.d.ts +12 -0
  68. package/api/types/IntegrationCredentialAccessType.js +10 -0
  69. package/api/types/IntegrationName.d.ts +30 -0
  70. package/api/types/IntegrationName.js +19 -0
  71. package/api/types/IntegrationProvider.d.ts +7 -0
  72. package/api/types/IntegrationProvider.js +5 -0
  73. package/api/types/IntegrationRead.d.ts +13 -0
  74. package/api/types/IntegrationRead.js +5 -0
  75. package/api/types/PaginatedSlimIntegrationAuthConfigReadList.d.ts +10 -0
  76. package/api/types/PaginatedSlimIntegrationAuthConfigReadList.js +5 -0
  77. package/api/types/PaginatedSlimIntegrationReadList.d.ts +10 -0
  78. package/api/types/PaginatedSlimIntegrationReadList.js +5 -0
  79. package/api/types/PaginatedSlimToolDefinitionList.d.ts +10 -0
  80. package/api/types/PaginatedSlimToolDefinitionList.js +5 -0
  81. package/api/types/SlimComposioToolDefinition.d.ts +10 -0
  82. package/api/types/SlimComposioToolDefinition.js +5 -0
  83. package/api/types/SlimIntegrationAuthConfigRead.d.ts +13 -0
  84. package/api/types/SlimIntegrationAuthConfigRead.js +5 -0
  85. package/api/types/SlimIntegrationRead.d.ts +11 -0
  86. package/api/types/SlimIntegrationRead.js +5 -0
  87. package/api/types/ToolDefinitionIntegration.d.ts +9 -0
  88. package/api/types/ToolDefinitionIntegration.js +5 -0
  89. package/api/types/index.d.ts +16 -0
  90. package/api/types/index.js +16 -0
  91. package/dist/Client.d.ts +6 -0
  92. package/dist/Client.js +47 -37
  93. package/dist/api/errors/index.d.ts +1 -1
  94. package/dist/api/errors/index.js +1 -1
  95. package/dist/api/resources/adHoc/client/Client.js +2 -2
  96. package/dist/api/resources/containerImages/client/Client.js +4 -4
  97. package/dist/api/resources/deployments/client/Client.js +8 -8
  98. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  99. package/dist/api/resources/documents/client/Client.js +5 -5
  100. package/dist/api/resources/events/client/Client.js +1 -1
  101. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  102. package/dist/api/resources/index.d.ts +5 -0
  103. package/dist/api/resources/index.js +6 -1
  104. package/dist/api/resources/integrationAuthConfigs/client/Client.d.ts +46 -0
  105. package/dist/api/resources/integrationAuthConfigs/client/Client.js +162 -0
  106. package/dist/api/resources/integrationAuthConfigs/client/index.d.ts +1 -0
  107. package/dist/api/resources/integrationAuthConfigs/client/index.js +17 -0
  108. package/dist/api/resources/integrationAuthConfigs/client/requests/ListIntegrationAuthConfigsRequest.d.ts +32 -0
  109. package/dist/api/resources/integrationAuthConfigs/client/requests/ListIntegrationAuthConfigsRequest.js +5 -0
  110. package/dist/api/resources/integrationAuthConfigs/client/requests/index.d.ts +1 -0
  111. package/dist/api/resources/integrationAuthConfigs/client/requests/index.js +2 -0
  112. package/dist/api/resources/integrationAuthConfigs/index.d.ts +1 -0
  113. package/dist/api/resources/integrationAuthConfigs/index.js +17 -0
  114. package/dist/api/resources/integrationProviders/client/Client.d.ts +60 -0
  115. package/dist/api/resources/integrationProviders/client/Client.js +216 -0
  116. package/dist/api/resources/integrationProviders/client/index.d.ts +1 -0
  117. package/dist/api/resources/integrationProviders/client/index.js +17 -0
  118. package/dist/api/resources/integrationProviders/client/requests/ListIntegrationToolsRequest.d.ts +25 -0
  119. package/dist/api/resources/integrationProviders/client/requests/ListIntegrationToolsRequest.js +5 -0
  120. package/dist/api/resources/integrationProviders/client/requests/index.d.ts +1 -0
  121. package/dist/api/resources/integrationProviders/client/requests/index.js +2 -0
  122. package/dist/api/resources/integrationProviders/index.d.ts +1 -0
  123. package/dist/api/resources/integrationProviders/index.js +17 -0
  124. package/dist/api/resources/integrations/client/Client.d.ts +31 -8
  125. package/dist/api/resources/integrations/client/Client.js +169 -18
  126. package/dist/api/resources/integrations/client/index.d.ts +1 -1
  127. package/dist/api/resources/integrations/client/index.js +15 -0
  128. package/dist/api/resources/integrations/client/requests/IntegrationsListRequest.d.ts +29 -0
  129. package/dist/api/resources/integrations/client/requests/IntegrationsListRequest.js +5 -0
  130. package/dist/api/resources/integrations/client/requests/index.d.ts +1 -0
  131. package/dist/api/resources/integrations/client/requests/index.js +2 -0
  132. package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
  133. package/dist/api/resources/mlModels/client/Client.js +1 -1
  134. package/dist/api/resources/organizations/client/Client.js +1 -1
  135. package/dist/api/resources/prompts/client/Client.js +2 -2
  136. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  137. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  138. package/dist/api/resources/testSuiteRuns/client/requests/TestSuiteRunsListExecutionsRequest.d.ts +3 -3
  139. package/dist/api/resources/testSuites/client/Client.js +4 -4
  140. package/dist/api/resources/workflowDeployments/client/Client.js +9 -9
  141. package/dist/api/resources/workflowExecutions/client/Client.js +1 -1
  142. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  143. package/dist/api/resources/workflows/client/Client.js +3 -3
  144. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  145. package/dist/api/resources/workspaces/client/Client.js +1 -1
  146. package/dist/api/types/ComponentsSchemasComposioIntegrationExecConfig.d.ts +5 -0
  147. package/dist/api/types/ComponentsSchemasComposioIntegrationExecConfig.js +5 -0
  148. package/dist/api/types/ComponentsSchemasSlimComposioToolDefinition.d.ts +5 -0
  149. package/dist/api/types/ComponentsSchemasSlimComposioToolDefinition.js +5 -0
  150. package/dist/api/types/ComposioIntegrationExecConfig.d.ts +7 -0
  151. package/dist/api/types/ComposioIntegrationExecConfig.js +5 -0
  152. package/dist/api/types/ComposioToolDefinition.d.ts +4 -1
  153. package/dist/api/types/IntegrationAuthConfigIntegration.d.ts +9 -0
  154. package/dist/api/types/IntegrationAuthConfigIntegration.js +5 -0
  155. package/dist/api/types/IntegrationAuthConfigIntegrationCredential.d.ts +6 -0
  156. package/dist/api/types/IntegrationAuthConfigIntegrationCredential.js +5 -0
  157. package/dist/api/types/IntegrationCredentialAccessType.d.ts +12 -0
  158. package/dist/api/types/IntegrationCredentialAccessType.js +10 -0
  159. package/dist/api/types/IntegrationName.d.ts +30 -0
  160. package/dist/api/types/IntegrationName.js +19 -0
  161. package/dist/api/types/IntegrationProvider.d.ts +7 -0
  162. package/dist/api/types/IntegrationProvider.js +5 -0
  163. package/dist/api/types/IntegrationRead.d.ts +13 -0
  164. package/dist/api/types/IntegrationRead.js +5 -0
  165. package/dist/api/types/PaginatedSlimIntegrationAuthConfigReadList.d.ts +10 -0
  166. package/dist/api/types/PaginatedSlimIntegrationAuthConfigReadList.js +5 -0
  167. package/dist/api/types/PaginatedSlimIntegrationReadList.d.ts +10 -0
  168. package/dist/api/types/PaginatedSlimIntegrationReadList.js +5 -0
  169. package/dist/api/types/PaginatedSlimToolDefinitionList.d.ts +10 -0
  170. package/dist/api/types/PaginatedSlimToolDefinitionList.js +5 -0
  171. package/dist/api/types/SlimComposioToolDefinition.d.ts +10 -0
  172. package/dist/api/types/SlimComposioToolDefinition.js +5 -0
  173. package/dist/api/types/SlimIntegrationAuthConfigRead.d.ts +13 -0
  174. package/dist/api/types/SlimIntegrationAuthConfigRead.js +5 -0
  175. package/dist/api/types/SlimIntegrationRead.d.ts +11 -0
  176. package/dist/api/types/SlimIntegrationRead.js +5 -0
  177. package/dist/api/types/ToolDefinitionIntegration.d.ts +9 -0
  178. package/dist/api/types/ToolDefinitionIntegration.js +5 -0
  179. package/dist/api/types/index.d.ts +16 -0
  180. package/dist/api/types/index.js +16 -0
  181. package/dist/serialization/types/ComponentsSchemasComposioIntegrationExecConfig.d.ts +11 -0
  182. package/dist/serialization/types/ComponentsSchemasComposioIntegrationExecConfig.js +8 -0
  183. package/dist/serialization/types/ComponentsSchemasSlimComposioToolDefinition.d.ts +11 -0
  184. package/dist/serialization/types/ComponentsSchemasSlimComposioToolDefinition.js +8 -0
  185. package/dist/serialization/types/ComposioIntegrationExecConfig.d.ts +13 -0
  186. package/dist/serialization/types/ComposioIntegrationExecConfig.js +44 -0
  187. package/dist/serialization/types/ComposioToolDefinition.d.ts +4 -1
  188. package/dist/serialization/types/ComposioToolDefinition.js +4 -1
  189. package/dist/serialization/types/IntegrationAuthConfigIntegration.d.ts +16 -0
  190. package/dist/serialization/types/IntegrationAuthConfigIntegration.js +47 -0
  191. package/dist/serialization/types/IntegrationAuthConfigIntegrationCredential.d.ts +12 -0
  192. package/dist/serialization/types/IntegrationAuthConfigIntegrationCredential.js +43 -0
  193. package/dist/serialization/types/IntegrationCredentialAccessType.d.ts +10 -0
  194. package/dist/serialization/types/IntegrationCredentialAccessType.js +41 -0
  195. package/dist/serialization/types/IntegrationName.d.ts +10 -0
  196. package/dist/serialization/types/IntegrationName.js +53 -0
  197. package/dist/serialization/types/IntegrationProvider.d.ts +10 -0
  198. package/dist/serialization/types/IntegrationProvider.js +41 -0
  199. package/dist/serialization/types/IntegrationRead.d.ts +20 -0
  200. package/dist/serialization/types/IntegrationRead.js +51 -0
  201. package/dist/serialization/types/PaginatedSlimIntegrationAuthConfigReadList.d.ts +16 -0
  202. package/dist/serialization/types/PaginatedSlimIntegrationAuthConfigReadList.js +47 -0
  203. package/dist/serialization/types/PaginatedSlimIntegrationReadList.d.ts +16 -0
  204. package/dist/serialization/types/PaginatedSlimIntegrationReadList.js +47 -0
  205. package/dist/serialization/types/PaginatedSlimToolDefinitionList.d.ts +16 -0
  206. package/dist/serialization/types/PaginatedSlimToolDefinitionList.js +47 -0
  207. package/dist/serialization/types/SlimComposioToolDefinition.d.ts +16 -0
  208. package/dist/serialization/types/SlimComposioToolDefinition.js +47 -0
  209. package/dist/serialization/types/SlimIntegrationAuthConfigRead.d.ts +18 -0
  210. package/dist/serialization/types/SlimIntegrationAuthConfigRead.js +49 -0
  211. package/dist/serialization/types/SlimIntegrationRead.d.ts +18 -0
  212. package/dist/serialization/types/SlimIntegrationRead.js +49 -0
  213. package/dist/serialization/types/ToolDefinitionIntegration.d.ts +16 -0
  214. package/dist/serialization/types/ToolDefinitionIntegration.js +47 -0
  215. package/dist/serialization/types/index.d.ts +16 -0
  216. package/dist/serialization/types/index.js +16 -0
  217. package/dist/version.d.ts +1 -1
  218. package/dist/version.js +1 -1
  219. package/package.json +1 -1
  220. package/reference.md +355 -8
  221. package/serialization/types/ComponentsSchemasComposioIntegrationExecConfig.d.ts +11 -0
  222. package/serialization/types/ComponentsSchemasComposioIntegrationExecConfig.js +8 -0
  223. package/serialization/types/ComponentsSchemasSlimComposioToolDefinition.d.ts +11 -0
  224. package/serialization/types/ComponentsSchemasSlimComposioToolDefinition.js +8 -0
  225. package/serialization/types/ComposioIntegrationExecConfig.d.ts +13 -0
  226. package/serialization/types/ComposioIntegrationExecConfig.js +44 -0
  227. package/serialization/types/ComposioToolDefinition.d.ts +4 -1
  228. package/serialization/types/ComposioToolDefinition.js +4 -1
  229. package/serialization/types/IntegrationAuthConfigIntegration.d.ts +16 -0
  230. package/serialization/types/IntegrationAuthConfigIntegration.js +47 -0
  231. package/serialization/types/IntegrationAuthConfigIntegrationCredential.d.ts +12 -0
  232. package/serialization/types/IntegrationAuthConfigIntegrationCredential.js +43 -0
  233. package/serialization/types/IntegrationCredentialAccessType.d.ts +10 -0
  234. package/serialization/types/IntegrationCredentialAccessType.js +41 -0
  235. package/serialization/types/IntegrationName.d.ts +10 -0
  236. package/serialization/types/IntegrationName.js +53 -0
  237. package/serialization/types/IntegrationProvider.d.ts +10 -0
  238. package/serialization/types/IntegrationProvider.js +41 -0
  239. package/serialization/types/IntegrationRead.d.ts +20 -0
  240. package/serialization/types/IntegrationRead.js +51 -0
  241. package/serialization/types/PaginatedSlimIntegrationAuthConfigReadList.d.ts +16 -0
  242. package/serialization/types/PaginatedSlimIntegrationAuthConfigReadList.js +47 -0
  243. package/serialization/types/PaginatedSlimIntegrationReadList.d.ts +16 -0
  244. package/serialization/types/PaginatedSlimIntegrationReadList.js +47 -0
  245. package/serialization/types/PaginatedSlimToolDefinitionList.d.ts +16 -0
  246. package/serialization/types/PaginatedSlimToolDefinitionList.js +47 -0
  247. package/serialization/types/SlimComposioToolDefinition.d.ts +16 -0
  248. package/serialization/types/SlimComposioToolDefinition.js +47 -0
  249. package/serialization/types/SlimIntegrationAuthConfigRead.d.ts +18 -0
  250. package/serialization/types/SlimIntegrationAuthConfigRead.js +49 -0
  251. package/serialization/types/SlimIntegrationRead.d.ts +18 -0
  252. package/serialization/types/SlimIntegrationRead.js +49 -0
  253. package/serialization/types/ToolDefinitionIntegration.d.ts +16 -0
  254. package/serialization/types/ToolDefinitionIntegration.js +47 -0
  255. package/serialization/types/index.d.ts +16 -0
  256. package/serialization/types/index.js +16 -0
  257. package/version.d.ts +1 -1
  258. package/version.js +1 -1
@@ -13,6 +13,8 @@ export * as events from "./events";
13
13
  export * as adHoc from "./adHoc";
14
14
  export * as containerImages from "./containerImages";
15
15
  export * as documents from "./documents";
16
+ export * as integrationAuthConfigs from "./integrationAuthConfigs";
17
+ export * as integrationProviders from "./integrationProviders";
16
18
  export * as metricDefinitions from "./metricDefinitions";
17
19
  export * as mlModels from "./mlModels";
18
20
  export * as organizations from "./organizations";
@@ -24,12 +26,15 @@ export * as workflowExecutions from "./workflowExecutions";
24
26
  export * as workflows from "./workflows";
25
27
  export * as workspaceSecrets from "./workspaceSecrets";
26
28
  export * as workspaces from "./workspaces";
29
+ export * from "./integrations/client/requests";
27
30
  export * from "./adHoc/client/requests";
28
31
  export * from "./containerImages/client/requests";
29
32
  export * from "./deployments/client/requests";
30
33
  export * from "./documentIndexes/client/requests";
31
34
  export * from "./documents/client/requests";
32
35
  export * from "./folderEntities/client/requests";
36
+ export * from "./integrationAuthConfigs/client/requests";
37
+ export * from "./integrationProviders/client/requests";
33
38
  export * from "./metricDefinitions/client/requests";
34
39
  export * from "./prompts/client/requests";
35
40
  export * from "./sandboxes/client/requests";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.workspaces = exports.workspaceSecrets = exports.workflows = exports.workflowExecutions = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.organizations = exports.mlModels = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.events = exports.integrations = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
39
+ exports.workspaces = exports.workspaceSecrets = exports.workflows = exports.workflowExecutions = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.organizations = exports.mlModels = exports.metricDefinitions = exports.integrationProviders = exports.integrationAuthConfigs = exports.documents = exports.containerImages = exports.adHoc = exports.events = exports.integrations = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
40
40
  exports.deployments = __importStar(require("./deployments"));
41
41
  __exportStar(require("./deployments/types"), exports);
42
42
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -52,6 +52,8 @@ exports.events = __importStar(require("./events"));
52
52
  exports.adHoc = __importStar(require("./adHoc"));
53
53
  exports.containerImages = __importStar(require("./containerImages"));
54
54
  exports.documents = __importStar(require("./documents"));
55
+ exports.integrationAuthConfigs = __importStar(require("./integrationAuthConfigs"));
56
+ exports.integrationProviders = __importStar(require("./integrationProviders"));
55
57
  exports.metricDefinitions = __importStar(require("./metricDefinitions"));
56
58
  exports.mlModels = __importStar(require("./mlModels"));
57
59
  exports.organizations = __importStar(require("./organizations"));
@@ -63,12 +65,15 @@ exports.workflowExecutions = __importStar(require("./workflowExecutions"));
63
65
  exports.workflows = __importStar(require("./workflows"));
64
66
  exports.workspaceSecrets = __importStar(require("./workspaceSecrets"));
65
67
  exports.workspaces = __importStar(require("./workspaces"));
68
+ __exportStar(require("./integrations/client/requests"), exports);
66
69
  __exportStar(require("./adHoc/client/requests"), exports);
67
70
  __exportStar(require("./containerImages/client/requests"), exports);
68
71
  __exportStar(require("./deployments/client/requests"), exports);
69
72
  __exportStar(require("./documentIndexes/client/requests"), exports);
70
73
  __exportStar(require("./documents/client/requests"), exports);
71
74
  __exportStar(require("./folderEntities/client/requests"), exports);
75
+ __exportStar(require("./integrationAuthConfigs/client/requests"), exports);
76
+ __exportStar(require("./integrationProviders/client/requests"), exports);
72
77
  __exportStar(require("./metricDefinitions/client/requests"), exports);
73
78
  __exportStar(require("./prompts/client/requests"), exports);
74
79
  __exportStar(require("./sandboxes/client/requests"), exports);
@@ -0,0 +1,46 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Vellum from "../../../index";
7
+ export declare namespace IntegrationAuthConfigs {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
15
+ }
16
+ interface RequestOptions {
17
+ /** The maximum time to wait for a response in seconds. */
18
+ timeoutInSeconds?: number;
19
+ /** The number of times to retry the request. Defaults to 2. */
20
+ maxRetries?: number;
21
+ /** A hook to abort the request. */
22
+ abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
25
+ /** Additional headers to include in the request. */
26
+ headers?: Record<string, string>;
27
+ }
28
+ }
29
+ export declare class IntegrationAuthConfigs {
30
+ protected readonly _options: IntegrationAuthConfigs.Options;
31
+ constructor(_options: IntegrationAuthConfigs.Options);
32
+ /**
33
+ * List Integration Auth Configs
34
+ *
35
+ * @param {Vellum.ListIntegrationAuthConfigsRequest} request
36
+ * @param {IntegrationAuthConfigs.RequestOptions} requestOptions - Request-specific configuration.
37
+ *
38
+ * @example
39
+ * await client.integrationAuthConfigs.listIntegrationAuthConfigs()
40
+ */
41
+ listIntegrationAuthConfigs(request?: Vellum.ListIntegrationAuthConfigsRequest, requestOptions?: IntegrationAuthConfigs.RequestOptions): core.HttpResponsePromise<Vellum.PaginatedSlimIntegrationAuthConfigReadList>;
42
+ private __listIntegrationAuthConfigs;
43
+ protected _getCustomAuthorizationHeaders(): Promise<{
44
+ "X-API-KEY": string;
45
+ }>;
46
+ }
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.IntegrationAuthConfigs = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const serializers = __importStar(require("../../../../serialization/index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ const errors = __importStar(require("../../../../errors/index"));
57
+ class IntegrationAuthConfigs {
58
+ constructor(_options) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * List Integration Auth Configs
63
+ *
64
+ * @param {Vellum.ListIntegrationAuthConfigsRequest} request
65
+ * @param {IntegrationAuthConfigs.RequestOptions} requestOptions - Request-specific configuration.
66
+ *
67
+ * @example
68
+ * await client.integrationAuthConfigs.listIntegrationAuthConfigs()
69
+ */
70
+ listIntegrationAuthConfigs(request = {}, requestOptions) {
71
+ return core.HttpResponsePromise.fromPromise(this.__listIntegrationAuthConfigs(request, requestOptions));
72
+ }
73
+ __listIntegrationAuthConfigs() {
74
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
75
+ var _a, _b, _c, _d;
76
+ const { expand, integrationName, integrationProvider, limit, offset, ordering, search } = request;
77
+ const _queryParams = {};
78
+ if (expand != null) {
79
+ if (Array.isArray(expand)) {
80
+ _queryParams["expand"] = expand.map((item) => item);
81
+ }
82
+ else {
83
+ _queryParams["expand"] = expand;
84
+ }
85
+ }
86
+ if (integrationName !== undefined) {
87
+ _queryParams["integration_name"] = integrationName;
88
+ }
89
+ if (integrationProvider !== undefined) {
90
+ _queryParams["integration_provider"] = integrationProvider;
91
+ }
92
+ if (limit !== undefined) {
93
+ _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
94
+ }
95
+ if (offset !== undefined) {
96
+ _queryParams["offset"] = (_b = offset === null || offset === void 0 ? void 0 : offset.toString()) !== null && _b !== void 0 ? _b : null;
97
+ }
98
+ if (ordering !== undefined) {
99
+ _queryParams["ordering"] = ordering;
100
+ }
101
+ if (search !== undefined) {
102
+ _queryParams["search"] = search;
103
+ }
104
+ const _response = yield core.fetcher({
105
+ url: (0, url_join_1.default)((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.VellumEnvironment.Production)
106
+ .default, "v1/integration-auth-configs"),
107
+ method: "GET",
108
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
109
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
110
+ unrecognizedObjectKeys: "strip",
111
+ })
112
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.6", "User-Agent": "vellum-ai/1.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
113
+ contentType: "application/json",
114
+ queryParameters: _queryParams,
115
+ requestType: "json",
116
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
117
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
118
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
119
+ });
120
+ if (_response.ok) {
121
+ return {
122
+ data: serializers.PaginatedSlimIntegrationAuthConfigReadList.parseOrThrow(_response.body, {
123
+ unrecognizedObjectKeys: "passthrough",
124
+ allowUnrecognizedUnionMembers: true,
125
+ allowUnrecognizedEnumValues: true,
126
+ breadcrumbsPrefix: ["response"],
127
+ }),
128
+ rawResponse: _response.rawResponse,
129
+ };
130
+ }
131
+ if (_response.error.reason === "status-code") {
132
+ throw new errors.VellumError({
133
+ statusCode: _response.error.statusCode,
134
+ body: _response.error.body,
135
+ rawResponse: _response.rawResponse,
136
+ });
137
+ }
138
+ switch (_response.error.reason) {
139
+ case "non-json":
140
+ throw new errors.VellumError({
141
+ statusCode: _response.error.statusCode,
142
+ body: _response.error.rawBody,
143
+ rawResponse: _response.rawResponse,
144
+ });
145
+ case "timeout":
146
+ throw new errors.VellumTimeoutError("Timeout exceeded when calling GET /v1/integration-auth-configs.");
147
+ case "unknown":
148
+ throw new errors.VellumError({
149
+ message: _response.error.errorMessage,
150
+ rawResponse: _response.rawResponse,
151
+ });
152
+ }
153
+ });
154
+ }
155
+ _getCustomAuthorizationHeaders() {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
158
+ return { "X-API-KEY": apiKeyValue };
159
+ });
160
+ }
161
+ }
162
+ exports.IntegrationAuthConfigs = IntegrationAuthConfigs;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ListIntegrationAuthConfigsRequest {
9
+ /**
10
+ * The response fields to expand for more information.
11
+ * - 'integration_credentials' expands the list of integration credentials that the authenticated entity has access to for the auth config.
12
+ */
13
+ expand?: string | string[];
14
+ integrationName?: string | null;
15
+ integrationProvider?: string | null;
16
+ /**
17
+ * Number of results to return per page.
18
+ */
19
+ limit?: number | null;
20
+ /**
21
+ * The initial index from which to return the results.
22
+ */
23
+ offset?: number | null;
24
+ /**
25
+ * Which field to use when ordering the results.
26
+ */
27
+ ordering?: string | null;
28
+ /**
29
+ * A search term.
30
+ */
31
+ search?: string | null;
32
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type ListIntegrationAuthConfigsRequest } from "./ListIntegrationAuthConfigsRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,60 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Vellum from "../../../index";
7
+ export declare namespace IntegrationProviders {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
15
+ }
16
+ interface RequestOptions {
17
+ /** The maximum time to wait for a response in seconds. */
18
+ timeoutInSeconds?: number;
19
+ /** The number of times to retry the request. Defaults to 2. */
20
+ maxRetries?: number;
21
+ /** A hook to abort the request. */
22
+ abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
25
+ /** Additional headers to include in the request. */
26
+ headers?: Record<string, string>;
27
+ }
28
+ }
29
+ export declare class IntegrationProviders {
30
+ protected readonly _options: IntegrationProviders.Options;
31
+ constructor(_options: IntegrationProviders.Options);
32
+ /**
33
+ * Retrieve a specific integration tool definition.
34
+ *
35
+ * @param {string} integrationName - The integration name
36
+ * @param {string} integrationProvider - The integration provider name
37
+ * @param {string} toolName - The tool's unique name, as specified by the integration provider
38
+ * @param {IntegrationProviders.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @example
41
+ * await client.integrationProviders.retrieveIntegrationProviderToolDefinition("integration_name", "integration_provider", "tool_name")
42
+ */
43
+ retrieveIntegrationProviderToolDefinition(integrationName: string, integrationProvider: string, toolName: string, requestOptions?: IntegrationProviders.RequestOptions): core.HttpResponsePromise<Vellum.ComponentsSchemasComposioToolDefinition>;
44
+ private __retrieveIntegrationProviderToolDefinition;
45
+ /**
46
+ * List all integration tools for a given provider and integration.
47
+ *
48
+ * @param {string} integrationProvider - The integration provider name
49
+ * @param {Vellum.ListIntegrationToolsRequest} request
50
+ * @param {IntegrationProviders.RequestOptions} requestOptions - Request-specific configuration.
51
+ *
52
+ * @example
53
+ * await client.integrationProviders.listIntegrationTools("integration_provider")
54
+ */
55
+ listIntegrationTools(integrationProvider: string, request?: Vellum.ListIntegrationToolsRequest, requestOptions?: IntegrationProviders.RequestOptions): core.HttpResponsePromise<Vellum.PaginatedSlimToolDefinitionList>;
56
+ private __listIntegrationTools;
57
+ protected _getCustomAuthorizationHeaders(): Promise<{
58
+ "X-API-KEY": string;
59
+ }>;
60
+ }
@@ -0,0 +1,216 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.IntegrationProviders = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const serializers = __importStar(require("../../../../serialization/index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ const errors = __importStar(require("../../../../errors/index"));
57
+ class IntegrationProviders {
58
+ constructor(_options) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * Retrieve a specific integration tool definition.
63
+ *
64
+ * @param {string} integrationName - The integration name
65
+ * @param {string} integrationProvider - The integration provider name
66
+ * @param {string} toolName - The tool's unique name, as specified by the integration provider
67
+ * @param {IntegrationProviders.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @example
70
+ * await client.integrationProviders.retrieveIntegrationProviderToolDefinition("integration_name", "integration_provider", "tool_name")
71
+ */
72
+ retrieveIntegrationProviderToolDefinition(integrationName, integrationProvider, toolName, requestOptions) {
73
+ return core.HttpResponsePromise.fromPromise(this.__retrieveIntegrationProviderToolDefinition(integrationName, integrationProvider, toolName, requestOptions));
74
+ }
75
+ __retrieveIntegrationProviderToolDefinition(integrationName, integrationProvider, toolName, requestOptions) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ var _a, _b;
78
+ const _response = yield core.fetcher({
79
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
80
+ .default, `v1/integration-providers/${encodeURIComponent(integrationProvider)}/integrations/${encodeURIComponent(integrationName)}/tools/${encodeURIComponent(toolName)}`),
81
+ method: "GET",
82
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
83
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
84
+ unrecognizedObjectKeys: "strip",
85
+ })
86
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.6", "User-Agent": "vellum-ai/1.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ contentType: "application/json",
88
+ requestType: "json",
89
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
90
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
91
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
92
+ });
93
+ if (_response.ok) {
94
+ return {
95
+ data: serializers.ComponentsSchemasComposioToolDefinition.parseOrThrow(_response.body, {
96
+ unrecognizedObjectKeys: "passthrough",
97
+ allowUnrecognizedUnionMembers: true,
98
+ allowUnrecognizedEnumValues: true,
99
+ breadcrumbsPrefix: ["response"],
100
+ }),
101
+ rawResponse: _response.rawResponse,
102
+ };
103
+ }
104
+ if (_response.error.reason === "status-code") {
105
+ throw new errors.VellumError({
106
+ statusCode: _response.error.statusCode,
107
+ body: _response.error.body,
108
+ rawResponse: _response.rawResponse,
109
+ });
110
+ }
111
+ switch (_response.error.reason) {
112
+ case "non-json":
113
+ throw new errors.VellumError({
114
+ statusCode: _response.error.statusCode,
115
+ body: _response.error.rawBody,
116
+ rawResponse: _response.rawResponse,
117
+ });
118
+ case "timeout":
119
+ throw new errors.VellumTimeoutError("Timeout exceeded when calling GET /v1/integration-providers/{integration_provider}/integrations/{integration_name}/tools/{tool_name}.");
120
+ case "unknown":
121
+ throw new errors.VellumError({
122
+ message: _response.error.errorMessage,
123
+ rawResponse: _response.rawResponse,
124
+ });
125
+ }
126
+ });
127
+ }
128
+ /**
129
+ * List all integration tools for a given provider and integration.
130
+ *
131
+ * @param {string} integrationProvider - The integration provider name
132
+ * @param {Vellum.ListIntegrationToolsRequest} request
133
+ * @param {IntegrationProviders.RequestOptions} requestOptions - Request-specific configuration.
134
+ *
135
+ * @example
136
+ * await client.integrationProviders.listIntegrationTools("integration_provider")
137
+ */
138
+ listIntegrationTools(integrationProvider, request = {}, requestOptions) {
139
+ return core.HttpResponsePromise.fromPromise(this.__listIntegrationTools(integrationProvider, request, requestOptions));
140
+ }
141
+ __listIntegrationTools(integrationProvider_1) {
142
+ return __awaiter(this, arguments, void 0, function* (integrationProvider, request = {}, requestOptions) {
143
+ var _a, _b, _c, _d;
144
+ const { integrationName, limit, offset, search } = request;
145
+ const _queryParams = {};
146
+ if (integrationName !== undefined) {
147
+ _queryParams["integration_name"] = integrationName;
148
+ }
149
+ if (limit !== undefined) {
150
+ _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
151
+ }
152
+ if (offset !== undefined) {
153
+ _queryParams["offset"] = (_b = offset === null || offset === void 0 ? void 0 : offset.toString()) !== null && _b !== void 0 ? _b : null;
154
+ }
155
+ if (search !== undefined) {
156
+ _queryParams["search"] = search;
157
+ }
158
+ const _response = yield core.fetcher({
159
+ url: (0, url_join_1.default)((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.VellumEnvironment.Production)
160
+ .default, `v1/integration-providers/${encodeURIComponent(integrationProvider)}/tools`),
161
+ method: "GET",
162
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
163
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
164
+ unrecognizedObjectKeys: "strip",
165
+ })
166
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.6", "User-Agent": "vellum-ai/1.5.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ contentType: "application/json",
168
+ queryParameters: _queryParams,
169
+ requestType: "json",
170
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
171
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
172
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
173
+ });
174
+ if (_response.ok) {
175
+ return {
176
+ data: serializers.PaginatedSlimToolDefinitionList.parseOrThrow(_response.body, {
177
+ unrecognizedObjectKeys: "passthrough",
178
+ allowUnrecognizedUnionMembers: true,
179
+ allowUnrecognizedEnumValues: true,
180
+ breadcrumbsPrefix: ["response"],
181
+ }),
182
+ rawResponse: _response.rawResponse,
183
+ };
184
+ }
185
+ if (_response.error.reason === "status-code") {
186
+ throw new errors.VellumError({
187
+ statusCode: _response.error.statusCode,
188
+ body: _response.error.body,
189
+ rawResponse: _response.rawResponse,
190
+ });
191
+ }
192
+ switch (_response.error.reason) {
193
+ case "non-json":
194
+ throw new errors.VellumError({
195
+ statusCode: _response.error.statusCode,
196
+ body: _response.error.rawBody,
197
+ rawResponse: _response.rawResponse,
198
+ });
199
+ case "timeout":
200
+ throw new errors.VellumTimeoutError("Timeout exceeded when calling GET /v1/integration-providers/{integration_provider}/tools.");
201
+ case "unknown":
202
+ throw new errors.VellumError({
203
+ message: _response.error.errorMessage,
204
+ rawResponse: _response.rawResponse,
205
+ });
206
+ }
207
+ });
208
+ }
209
+ _getCustomAuthorizationHeaders() {
210
+ return __awaiter(this, void 0, void 0, function* () {
211
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
212
+ return { "X-API-KEY": apiKeyValue };
213
+ });
214
+ }
215
+ }
216
+ exports.IntegrationProviders = IntegrationProviders;
@@ -0,0 +1 @@
1
+ export * from "./requests";