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
@@ -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";
@@ -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,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ListIntegrationToolsRequest {
9
+ /**
10
+ * The Vellum Integration name
11
+ */
12
+ integrationName?: string | null;
13
+ /**
14
+ * Number of results to return per page.
15
+ */
16
+ limit?: number | null;
17
+ /**
18
+ * The initial index from which to return the results.
19
+ */
20
+ offset?: number | null;
21
+ /**
22
+ * The search term to filter the tools by
23
+ */
24
+ search?: string | null;
25
+ }
@@ -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 ListIntegrationToolsRequest } from "./ListIntegrationToolsRequest";
@@ -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);
@@ -30,27 +30,28 @@ export declare class Integrations {
30
30
  protected readonly _options: Integrations.Options;
31
31
  constructor(_options: Integrations.Options);
32
32
  /**
33
- * @param {string} integration - The integration name
34
- * @param {string} provider - The integration provider name
33
+ * @param {string} integrationName - The integration name
34
+ * @param {string} integrationProvider - The integration provider name
35
35
  * @param {string} toolName - The tool's unique name, as specified by the integration provider
36
36
  * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
38
38
  * @example
39
- * await client.integrations.retrieveIntegrationToolDefinition("integration", "provider", "tool_name")
39
+ * await client.integrations.retrieveIntegrationToolDefinition("integration_name", "integration_provider", "tool_name")
40
40
  */
41
- retrieveIntegrationToolDefinition(integration: string, provider: string, toolName: string, requestOptions?: Integrations.RequestOptions): core.HttpResponsePromise<Vellum.ComponentsSchemasComposioToolDefinition>;
41
+ retrieveIntegrationToolDefinition(integrationName: string, integrationProvider: string, toolName: string, requestOptions?: Integrations.RequestOptions): core.HttpResponsePromise<Vellum.ComponentsSchemasComposioToolDefinition>;
42
42
  private __retrieveIntegrationToolDefinition;
43
43
  /**
44
- * @param {string} integration - The integration name
45
- * @param {string} provider - The integration provider name
44
+ * @param {string} integrationName - The integration name
45
+ * @param {string} integrationProvider - The integration provider name
46
46
  * @param {string} toolName - The tool's unique name, as specified by the integration provider
47
47
  * @param {Vellum.ComponentsSchemasComposioExecuteToolRequest} request
48
48
  * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration.
49
49
  *
50
50
  * @throws {@link Vellum.BadRequestError}
51
+ * @throws {@link Vellum.ForbiddenError}
51
52
  *
52
53
  * @example
53
- * await client.integrations.executeIntegrationTool("integration", "provider", "tool_name", {
54
+ * await client.integrations.executeIntegrationTool("integration_name", "integration_provider", "tool_name", {
54
55
  * provider: "COMPOSIO",
55
56
  * arguments: {
56
57
  * "arguments": {
@@ -59,8 +60,30 @@ export declare class Integrations {
59
60
  * }
60
61
  * })
61
62
  */
62
- executeIntegrationTool(integration: string, provider: string, toolName: string, request: Vellum.ComponentsSchemasComposioExecuteToolRequest, requestOptions?: Integrations.RequestOptions): core.HttpResponsePromise<Vellum.ComponentsSchemasComposioExecuteToolResponse>;
63
+ executeIntegrationTool(integrationName: string, integrationProvider: string, toolName: string, request: Vellum.ComponentsSchemasComposioExecuteToolRequest, requestOptions?: Integrations.RequestOptions): core.HttpResponsePromise<Vellum.ComponentsSchemasComposioExecuteToolResponse>;
63
64
  private __executeIntegrationTool;
65
+ /**
66
+ * List all integrations
67
+ *
68
+ * @param {Vellum.IntegrationsListRequest} request
69
+ * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration.
70
+ *
71
+ * @example
72
+ * await client.integrations.list()
73
+ */
74
+ list(request?: Vellum.IntegrationsListRequest, requestOptions?: Integrations.RequestOptions): core.HttpResponsePromise<Vellum.PaginatedSlimIntegrationReadList>;
75
+ private __list;
76
+ /**
77
+ * Retrieve an integration
78
+ *
79
+ * @param {string} id - A UUID string identifying this integration.
80
+ * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration.
81
+ *
82
+ * @example
83
+ * await client.integrations.retrieve("id")
84
+ */
85
+ retrieve(id: string, requestOptions?: Integrations.RequestOptions): core.HttpResponsePromise<Vellum.IntegrationRead>;
86
+ private __retrieve;
64
87
  protected _getCustomAuthorizationHeaders(): Promise<{
65
88
  "X-API-KEY": string;
66
89
  }>;
@@ -60,29 +60,29 @@ class Integrations {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
63
- * @param {string} integration - The integration name
64
- * @param {string} provider - The integration provider name
63
+ * @param {string} integrationName - The integration name
64
+ * @param {string} integrationProvider - The integration provider name
65
65
  * @param {string} toolName - The tool's unique name, as specified by the integration provider
66
66
  * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration.
67
67
  *
68
68
  * @example
69
- * await client.integrations.retrieveIntegrationToolDefinition("integration", "provider", "tool_name")
69
+ * await client.integrations.retrieveIntegrationToolDefinition("integration_name", "integration_provider", "tool_name")
70
70
  */
71
- retrieveIntegrationToolDefinition(integration, provider, toolName, requestOptions) {
72
- return core.HttpResponsePromise.fromPromise(this.__retrieveIntegrationToolDefinition(integration, provider, toolName, requestOptions));
71
+ retrieveIntegrationToolDefinition(integrationName, integrationProvider, toolName, requestOptions) {
72
+ return core.HttpResponsePromise.fromPromise(this.__retrieveIntegrationToolDefinition(integrationName, integrationProvider, toolName, requestOptions));
73
73
  }
74
- __retrieveIntegrationToolDefinition(integration, provider, toolName, requestOptions) {
74
+ __retrieveIntegrationToolDefinition(integrationName, integrationProvider, toolName, requestOptions) {
75
75
  return __awaiter(this, void 0, void 0, function* () {
76
76
  var _a, _b;
77
77
  const _response = yield core.fetcher({
78
78
  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)
79
- .default, `integrations/v1/providers/${encodeURIComponent(provider)}/integrations/${encodeURIComponent(integration)}/tools/${encodeURIComponent(toolName)}`),
79
+ .default, `integrations/v1/providers/${encodeURIComponent(integrationProvider)}/integrations/${encodeURIComponent(integrationName)}/tools/${encodeURIComponent(toolName)}`),
80
80
  method: "GET",
81
81
  headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
82
82
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
83
83
  unrecognizedObjectKeys: "strip",
84
84
  })
85
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.4", "User-Agent": "vellum-ai/1.5.4", "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),
85
+ : "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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -115,7 +115,7 @@ class Integrations {
115
115
  rawResponse: _response.rawResponse,
116
116
  });
117
117
  case "timeout":
118
- throw new errors.VellumTimeoutError("Timeout exceeded when calling GET /integrations/v1/providers/{provider}/integrations/{integration}/tools/{tool_name}.");
118
+ throw new errors.VellumTimeoutError("Timeout exceeded when calling GET /integrations/v1/providers/{integration_provider}/integrations/{integration_name}/tools/{tool_name}.");
119
119
  case "unknown":
120
120
  throw new errors.VellumError({
121
121
  message: _response.error.errorMessage,
@@ -125,16 +125,17 @@ class Integrations {
125
125
  });
126
126
  }
127
127
  /**
128
- * @param {string} integration - The integration name
129
- * @param {string} provider - The integration provider name
128
+ * @param {string} integrationName - The integration name
129
+ * @param {string} integrationProvider - The integration provider name
130
130
  * @param {string} toolName - The tool's unique name, as specified by the integration provider
131
131
  * @param {Vellum.ComponentsSchemasComposioExecuteToolRequest} request
132
132
  * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration.
133
133
  *
134
134
  * @throws {@link Vellum.BadRequestError}
135
+ * @throws {@link Vellum.ForbiddenError}
135
136
  *
136
137
  * @example
137
- * await client.integrations.executeIntegrationTool("integration", "provider", "tool_name", {
138
+ * await client.integrations.executeIntegrationTool("integration_name", "integration_provider", "tool_name", {
138
139
  * provider: "COMPOSIO",
139
140
  * arguments: {
140
141
  * "arguments": {
@@ -143,21 +144,21 @@ class Integrations {
143
144
  * }
144
145
  * })
145
146
  */
146
- executeIntegrationTool(integration, provider, toolName, request, requestOptions) {
147
- return core.HttpResponsePromise.fromPromise(this.__executeIntegrationTool(integration, provider, toolName, request, requestOptions));
147
+ executeIntegrationTool(integrationName, integrationProvider, toolName, request, requestOptions) {
148
+ return core.HttpResponsePromise.fromPromise(this.__executeIntegrationTool(integrationName, integrationProvider, toolName, request, requestOptions));
148
149
  }
149
- __executeIntegrationTool(integration, provider, toolName, request, requestOptions) {
150
+ __executeIntegrationTool(integrationName, integrationProvider, toolName, request, requestOptions) {
150
151
  return __awaiter(this, void 0, void 0, function* () {
151
152
  var _a, _b;
152
153
  const _response = yield core.fetcher({
153
154
  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)
154
- .default, `integrations/v1/providers/${encodeURIComponent(provider)}/integrations/${encodeURIComponent(integration)}/tools/${encodeURIComponent(toolName)}/execute`),
155
+ .default, `integrations/v1/providers/${encodeURIComponent(integrationProvider)}/integrations/${encodeURIComponent(integrationName)}/tools/${encodeURIComponent(toolName)}/execute`),
155
156
  method: "POST",
156
157
  headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
157
158
  ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
158
159
  unrecognizedObjectKeys: "strip",
159
160
  })
160
- : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.4", "User-Agent": "vellum-ai/1.5.4", "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),
161
+ : "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),
161
162
  contentType: "application/json",
162
163
  requestType: "json",
163
164
  body: serializers.ComponentsSchemasComposioExecuteToolRequest.jsonOrThrow(request, {
@@ -182,6 +183,8 @@ class Integrations {
182
183
  switch (_response.error.statusCode) {
183
184
  case 400:
184
185
  throw new Vellum.BadRequestError(_response.error.body, _response.rawResponse);
186
+ case 403:
187
+ throw new Vellum.ForbiddenError(_response.error.body, _response.rawResponse);
185
188
  default:
186
189
  throw new errors.VellumError({
187
190
  statusCode: _response.error.statusCode,
@@ -198,7 +201,155 @@ class Integrations {
198
201
  rawResponse: _response.rawResponse,
199
202
  });
200
203
  case "timeout":
201
- throw new errors.VellumTimeoutError("Timeout exceeded when calling POST /integrations/v1/providers/{provider}/integrations/{integration}/tools/{tool_name}/execute.");
204
+ throw new errors.VellumTimeoutError("Timeout exceeded when calling POST /integrations/v1/providers/{integration_provider}/integrations/{integration_name}/tools/{tool_name}/execute.");
205
+ case "unknown":
206
+ throw new errors.VellumError({
207
+ message: _response.error.errorMessage,
208
+ rawResponse: _response.rawResponse,
209
+ });
210
+ }
211
+ });
212
+ }
213
+ /**
214
+ * List all integrations
215
+ *
216
+ * @param {Vellum.IntegrationsListRequest} request
217
+ * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration.
218
+ *
219
+ * @example
220
+ * await client.integrations.list()
221
+ */
222
+ list(request = {}, requestOptions) {
223
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
224
+ }
225
+ __list() {
226
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
227
+ var _a, _b, _c, _d;
228
+ const { integrationProvider, limit, offset, ordering, search } = request;
229
+ const _queryParams = {};
230
+ if (integrationProvider !== undefined) {
231
+ _queryParams["integration_provider"] = integrationProvider;
232
+ }
233
+ if (limit !== undefined) {
234
+ _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
235
+ }
236
+ if (offset !== undefined) {
237
+ _queryParams["offset"] = (_b = offset === null || offset === void 0 ? void 0 : offset.toString()) !== null && _b !== void 0 ? _b : null;
238
+ }
239
+ if (ordering !== undefined) {
240
+ _queryParams["ordering"] = ordering;
241
+ }
242
+ if (search !== undefined) {
243
+ _queryParams["search"] = search;
244
+ }
245
+ const _response = yield core.fetcher({
246
+ 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)
247
+ .default, "v1/integrations"),
248
+ method: "GET",
249
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
250
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
251
+ unrecognizedObjectKeys: "strip",
252
+ })
253
+ : "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),
254
+ contentType: "application/json",
255
+ queryParameters: _queryParams,
256
+ requestType: "json",
257
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
258
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
259
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
260
+ });
261
+ if (_response.ok) {
262
+ return {
263
+ data: serializers.PaginatedSlimIntegrationReadList.parseOrThrow(_response.body, {
264
+ unrecognizedObjectKeys: "passthrough",
265
+ allowUnrecognizedUnionMembers: true,
266
+ allowUnrecognizedEnumValues: true,
267
+ breadcrumbsPrefix: ["response"],
268
+ }),
269
+ rawResponse: _response.rawResponse,
270
+ };
271
+ }
272
+ if (_response.error.reason === "status-code") {
273
+ throw new errors.VellumError({
274
+ statusCode: _response.error.statusCode,
275
+ body: _response.error.body,
276
+ rawResponse: _response.rawResponse,
277
+ });
278
+ }
279
+ switch (_response.error.reason) {
280
+ case "non-json":
281
+ throw new errors.VellumError({
282
+ statusCode: _response.error.statusCode,
283
+ body: _response.error.rawBody,
284
+ rawResponse: _response.rawResponse,
285
+ });
286
+ case "timeout":
287
+ throw new errors.VellumTimeoutError("Timeout exceeded when calling GET /v1/integrations.");
288
+ case "unknown":
289
+ throw new errors.VellumError({
290
+ message: _response.error.errorMessage,
291
+ rawResponse: _response.rawResponse,
292
+ });
293
+ }
294
+ });
295
+ }
296
+ /**
297
+ * Retrieve an integration
298
+ *
299
+ * @param {string} id - A UUID string identifying this integration.
300
+ * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration.
301
+ *
302
+ * @example
303
+ * await client.integrations.retrieve("id")
304
+ */
305
+ retrieve(id, requestOptions) {
306
+ return core.HttpResponsePromise.fromPromise(this.__retrieve(id, requestOptions));
307
+ }
308
+ __retrieve(id, requestOptions) {
309
+ return __awaiter(this, void 0, void 0, function* () {
310
+ var _a, _b;
311
+ const _response = yield core.fetcher({
312
+ 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)
313
+ .default, `v1/integrations/${encodeURIComponent(id)}`),
314
+ method: "GET",
315
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
316
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
317
+ unrecognizedObjectKeys: "strip",
318
+ })
319
+ : "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),
320
+ contentType: "application/json",
321
+ requestType: "json",
322
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
323
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
324
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
325
+ });
326
+ if (_response.ok) {
327
+ return {
328
+ data: serializers.IntegrationRead.parseOrThrow(_response.body, {
329
+ unrecognizedObjectKeys: "passthrough",
330
+ allowUnrecognizedUnionMembers: true,
331
+ allowUnrecognizedEnumValues: true,
332
+ breadcrumbsPrefix: ["response"],
333
+ }),
334
+ rawResponse: _response.rawResponse,
335
+ };
336
+ }
337
+ if (_response.error.reason === "status-code") {
338
+ throw new errors.VellumError({
339
+ statusCode: _response.error.statusCode,
340
+ body: _response.error.body,
341
+ rawResponse: _response.rawResponse,
342
+ });
343
+ }
344
+ switch (_response.error.reason) {
345
+ case "non-json":
346
+ throw new errors.VellumError({
347
+ statusCode: _response.error.statusCode,
348
+ body: _response.error.rawBody,
349
+ rawResponse: _response.rawResponse,
350
+ });
351
+ case "timeout":
352
+ throw new errors.VellumTimeoutError("Timeout exceeded when calling GET /v1/integrations/{id}.");
202
353
  case "unknown":
203
354
  throw new errors.VellumError({
204
355
  message: _response.error.errorMessage,
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests";