vellum-ai 0.14.88 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/Client.d.ts +37 -8
  2. package/Client.js +88 -19
  3. package/api/client/requests/CodeExecutor.d.ts +9 -2
  4. package/api/client/requests/ExecuteApiRequest.d.ts +1 -1
  5. package/api/client/requests/ExecutePromptRequest.d.ts +5 -1
  6. package/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
  7. package/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
  8. package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
  9. package/api/client/requests/GenerateBodyRequest.d.ts +9 -1
  10. package/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
  11. package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  12. package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  13. package/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
  14. package/api/resources/adHoc/client/Client.d.ts +18 -3
  15. package/api/resources/adHoc/client/Client.js +24 -5
  16. package/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
  17. package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
  18. package/api/resources/containerImages/client/Client.d.ts +7 -3
  19. package/api/resources/containerImages/client/Client.js +24 -8
  20. package/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
  21. package/api/resources/deployments/client/Client.d.ts +9 -1
  22. package/api/resources/deployments/client/Client.js +45 -9
  23. package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
  24. package/api/resources/documentIndexes/client/Client.d.ts +9 -58
  25. package/api/resources/documentIndexes/client/Client.js +45 -66
  26. package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
  27. package/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
  28. package/api/resources/documents/client/Client.d.ts +4 -5
  29. package/api/resources/documents/client/Client.js +26 -11
  30. package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
  31. package/api/resources/folderEntities/client/Client.d.ts +4 -0
  32. package/api/resources/folderEntities/client/Client.js +10 -2
  33. package/api/resources/metricDefinitions/client/Client.d.ts +9 -1
  34. package/api/resources/metricDefinitions/client/Client.js +15 -3
  35. package/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
  36. package/api/resources/mlModels/client/Client.d.ts +4 -0
  37. package/api/resources/mlModels/client/Client.js +6 -2
  38. package/api/resources/organizations/client/Client.d.ts +4 -0
  39. package/api/resources/organizations/client/Client.js +6 -2
  40. package/api/resources/prompts/client/Client.d.ts +12 -1
  41. package/api/resources/prompts/client/Client.js +19 -4
  42. package/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
  43. package/api/resources/releaseReviews/client/Client.d.ts +4 -0
  44. package/api/resources/releaseReviews/client/Client.js +6 -2
  45. package/api/resources/sandboxes/client/Client.d.ts +6 -21
  46. package/api/resources/sandboxes/client/Client.js +17 -24
  47. package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
  48. package/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
  49. package/api/resources/testSuiteRuns/client/Client.js +15 -3
  50. package/api/resources/testSuites/client/Client.d.ts +13 -15
  51. package/api/resources/testSuites/client/Client.js +30 -20
  52. package/api/resources/workflowDeployments/client/Client.d.ts +4 -0
  53. package/api/resources/workflowDeployments/client/Client.js +40 -8
  54. package/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
  55. package/api/resources/workflowSandboxes/client/Client.js +10 -2
  56. package/api/resources/workflows/client/Client.d.ts +4 -5
  57. package/api/resources/workflows/client/Client.js +11 -8
  58. package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
  59. package/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
  60. package/api/resources/workspaceSecrets/client/Client.js +11 -3
  61. package/api/resources/workspaces/client/Client.d.ts +4 -0
  62. package/api/resources/workspaces/client/Client.js +6 -2
  63. package/dist/Client.d.ts +37 -8
  64. package/dist/Client.js +88 -19
  65. package/dist/api/client/requests/CodeExecutor.d.ts +9 -2
  66. package/dist/api/client/requests/ExecuteApiRequest.d.ts +1 -1
  67. package/dist/api/client/requests/ExecutePromptRequest.d.ts +5 -1
  68. package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
  69. package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
  70. package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
  71. package/dist/api/client/requests/GenerateBodyRequest.d.ts +9 -1
  72. package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
  73. package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  74. package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  75. package/dist/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
  76. package/dist/api/resources/adHoc/client/Client.d.ts +18 -3
  77. package/dist/api/resources/adHoc/client/Client.js +24 -5
  78. package/dist/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
  79. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
  80. package/dist/api/resources/containerImages/client/Client.d.ts +7 -3
  81. package/dist/api/resources/containerImages/client/Client.js +24 -8
  82. package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
  83. package/dist/api/resources/deployments/client/Client.d.ts +9 -1
  84. package/dist/api/resources/deployments/client/Client.js +45 -9
  85. package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
  86. package/dist/api/resources/documentIndexes/client/Client.d.ts +9 -58
  87. package/dist/api/resources/documentIndexes/client/Client.js +45 -66
  88. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
  89. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
  90. package/dist/api/resources/documents/client/Client.d.ts +4 -5
  91. package/dist/api/resources/documents/client/Client.js +26 -11
  92. package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
  93. package/dist/api/resources/folderEntities/client/Client.d.ts +4 -0
  94. package/dist/api/resources/folderEntities/client/Client.js +10 -2
  95. package/dist/api/resources/metricDefinitions/client/Client.d.ts +9 -1
  96. package/dist/api/resources/metricDefinitions/client/Client.js +15 -3
  97. package/dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
  98. package/dist/api/resources/mlModels/client/Client.d.ts +4 -0
  99. package/dist/api/resources/mlModels/client/Client.js +6 -2
  100. package/dist/api/resources/organizations/client/Client.d.ts +4 -0
  101. package/dist/api/resources/organizations/client/Client.js +6 -2
  102. package/dist/api/resources/prompts/client/Client.d.ts +12 -1
  103. package/dist/api/resources/prompts/client/Client.js +19 -4
  104. package/dist/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
  105. package/dist/api/resources/releaseReviews/client/Client.d.ts +4 -0
  106. package/dist/api/resources/releaseReviews/client/Client.js +6 -2
  107. package/dist/api/resources/sandboxes/client/Client.d.ts +6 -21
  108. package/dist/api/resources/sandboxes/client/Client.js +17 -24
  109. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
  110. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
  111. package/dist/api/resources/testSuiteRuns/client/Client.js +15 -3
  112. package/dist/api/resources/testSuites/client/Client.d.ts +13 -15
  113. package/dist/api/resources/testSuites/client/Client.js +30 -20
  114. package/dist/api/resources/workflowDeployments/client/Client.d.ts +4 -0
  115. package/dist/api/resources/workflowDeployments/client/Client.js +40 -8
  116. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
  117. package/dist/api/resources/workflowSandboxes/client/Client.js +10 -2
  118. package/dist/api/resources/workflows/client/Client.d.ts +4 -5
  119. package/dist/api/resources/workflows/client/Client.js +11 -8
  120. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
  121. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
  122. package/dist/api/resources/workspaceSecrets/client/Client.js +11 -3
  123. package/dist/api/resources/workspaces/client/Client.d.ts +4 -0
  124. package/dist/api/resources/workspaces/client/Client.js +6 -2
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.js +1 -1
  127. package/package.json +1 -1
  128. package/reference.md +116 -187
  129. package/version.d.ts +1 -1
  130. package/version.js +1 -1
@@ -96,7 +96,11 @@ class DocumentIndexes {
96
96
  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)
97
97
  .default, "v1/document-indexes"),
98
98
  method: "GET",
99
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
99
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
100
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
101
+ unrecognizedObjectKeys: "strip",
102
+ })
103
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
100
104
  contentType: "application/json",
101
105
  queryParameters: _queryParams,
102
106
  requestType: "json",
@@ -147,65 +151,12 @@ class DocumentIndexes {
147
151
  *
148
152
  * @example
149
153
  * await client.documentIndexes.create({
150
- * label: "My Document Index",
151
- * name: "my-document-index",
154
+ * label: "x",
155
+ * name: "x",
152
156
  * indexingConfig: {
153
157
  * vectorizer: {
154
- * modelName: "hkunlp/instructor-xl",
155
- * config: {
156
- * instructionDomain: "",
157
- * instructionQueryTextType: "plain_text",
158
- * instructionDocumentTextType: "plain_text"
159
- * }
160
- * },
161
- * chunking: {
162
- * chunkerName: "sentence-chunker",
163
- * chunkerConfig: {
164
- * characterLimit: 1000,
165
- * minOverlapRatio: 0.5
166
- * }
167
- * }
168
- * }
169
- * })
170
- *
171
- * @example
172
- * await client.documentIndexes.create({
173
- * label: "My Document Index",
174
- * name: "my-document-index",
175
- * indexingConfig: {
176
- * vectorizer: {
177
- * modelName: "sentence-transformers/multi-qa-mpnet-base-dot-v1",
178
- * config: {
179
- * "key": "value"
180
- * }
181
- * },
182
- * chunking: {
183
- * chunkerName: "sentence-chunker",
184
- * chunkerConfig: {
185
- * characterLimit: 1000,
186
- * minOverlapRatio: 0.5
187
- * }
188
- * }
189
- * }
190
- * })
191
- *
192
- * @example
193
- * await client.documentIndexes.create({
194
- * label: "My Document Index",
195
- * name: "my-document-index",
196
- * indexingConfig: {
197
- * vectorizer: {
198
- * config: {
199
- * addOpenaiApiKey: true
200
- * },
201
- * modelName: "text-embedding-ada-002"
202
- * },
203
- * chunking: {
204
- * chunkerName: "sentence-chunker",
205
- * chunkerConfig: {
206
- * characterLimit: 1000,
207
- * minOverlapRatio: 0.5
208
- * }
158
+ * config: {},
159
+ * modelName: "text-embedding-3-small"
209
160
  * }
210
161
  * }
211
162
  * })
@@ -220,7 +171,11 @@ class DocumentIndexes {
220
171
  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)
221
172
  .default, "v1/document-indexes"),
222
173
  method: "POST",
223
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
174
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
175
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
176
+ unrecognizedObjectKeys: "strip",
177
+ })
178
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
224
179
  contentType: "application/json",
225
180
  requestType: "json",
226
181
  body: serializers.DocumentIndexCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -282,7 +237,11 @@ class DocumentIndexes {
282
237
  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)
283
238
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
284
239
  method: "GET",
285
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
240
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
241
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
242
+ unrecognizedObjectKeys: "strip",
243
+ })
244
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
286
245
  contentType: "application/json",
287
246
  requestType: "json",
288
247
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -333,7 +292,7 @@ class DocumentIndexes {
333
292
  *
334
293
  * @example
335
294
  * await client.documentIndexes.update("id", {
336
- * label: "label"
295
+ * label: "x"
337
296
  * })
338
297
  */
339
298
  update(id, request, requestOptions) {
@@ -346,7 +305,11 @@ class DocumentIndexes {
346
305
  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)
347
306
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
348
307
  method: "PUT",
349
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
308
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
309
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
310
+ unrecognizedObjectKeys: "strip",
311
+ })
312
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
350
313
  contentType: "application/json",
351
314
  requestType: "json",
352
315
  body: serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -408,7 +371,11 @@ class DocumentIndexes {
408
371
  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)
409
372
  .documents, `v1/document-indexes/${encodeURIComponent(id)}`),
410
373
  method: "DELETE",
411
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
374
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
375
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
376
+ unrecognizedObjectKeys: "strip",
377
+ })
378
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
412
379
  contentType: "application/json",
413
380
  requestType: "json",
414
381
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -462,7 +429,11 @@ class DocumentIndexes {
462
429
  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)
463
430
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
464
431
  method: "PATCH",
465
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
432
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
433
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
434
+ unrecognizedObjectKeys: "strip",
435
+ })
436
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
466
437
  contentType: "application/json",
467
438
  requestType: "json",
468
439
  body: serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
@@ -527,7 +498,11 @@ class DocumentIndexes {
527
498
  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)
528
499
  .default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
529
500
  method: "POST",
530
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
501
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
502
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
503
+ unrecognizedObjectKeys: "strip",
504
+ })
505
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
531
506
  contentType: "application/json",
532
507
  requestType: "json",
533
508
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -581,7 +556,11 @@ class DocumentIndexes {
581
556
  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)
582
557
  .documents, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
583
558
  method: "DELETE",
584
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
559
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
560
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
561
+ unrecognizedObjectKeys: "strip",
562
+ })
563
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
585
564
  contentType: "application/json",
586
565
  requestType: "json",
587
566
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -5,65 +5,12 @@ import * as Vellum from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * label: "My Document Index",
9
- * name: "my-document-index",
8
+ * label: "x",
9
+ * name: "x",
10
10
  * indexingConfig: {
11
11
  * vectorizer: {
12
- * modelName: "hkunlp/instructor-xl",
13
- * config: {
14
- * instructionDomain: "",
15
- * instructionQueryTextType: "plain_text",
16
- * instructionDocumentTextType: "plain_text"
17
- * }
18
- * },
19
- * chunking: {
20
- * chunkerName: "sentence-chunker",
21
- * chunkerConfig: {
22
- * characterLimit: 1000,
23
- * minOverlapRatio: 0.5
24
- * }
25
- * }
26
- * }
27
- * }
28
- *
29
- * @example
30
- * {
31
- * label: "My Document Index",
32
- * name: "my-document-index",
33
- * indexingConfig: {
34
- * vectorizer: {
35
- * modelName: "sentence-transformers/multi-qa-mpnet-base-dot-v1",
36
- * config: {
37
- * "key": "value"
38
- * }
39
- * },
40
- * chunking: {
41
- * chunkerName: "sentence-chunker",
42
- * chunkerConfig: {
43
- * characterLimit: 1000,
44
- * minOverlapRatio: 0.5
45
- * }
46
- * }
47
- * }
48
- * }
49
- *
50
- * @example
51
- * {
52
- * label: "My Document Index",
53
- * name: "my-document-index",
54
- * indexingConfig: {
55
- * vectorizer: {
56
- * config: {
57
- * addOpenaiApiKey: true
58
- * },
59
- * modelName: "text-embedding-ada-002"
60
- * },
61
- * chunking: {
62
- * chunkerName: "sentence-chunker",
63
- * chunkerConfig: {
64
- * characterLimit: 1000,
65
- * minOverlapRatio: 0.5
66
- * }
12
+ * config: {},
13
+ * modelName: "text-embedding-3-small"
67
14
  * }
68
15
  * }
69
16
  * }
@@ -5,7 +5,7 @@ import * as Vellum from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * label: "label"
8
+ * label: "x"
9
9
  * }
10
10
  */
11
11
  export interface DocumentIndexUpdateRequest {
@@ -12,6 +12,8 @@ export declare namespace Documents {
12
12
  /** Specify a custom URL to connect the client to. */
13
13
  baseUrl?: core.Supplier<string>;
14
14
  apiKey: core.Supplier<string>;
15
+ /** Override the X-API-Version header */
16
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
15
17
  }
16
18
  interface RequestOptions {
17
19
  /** The maximum time to wait for a response in seconds. */
@@ -20,6 +22,8 @@ export declare namespace Documents {
20
22
  maxRetries?: number;
21
23
  /** A hook to abort the request. */
22
24
  abortSignal?: AbortSignal;
25
+ /** Override the X-API-Version header */
26
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
23
27
  /** Additional headers to include in the request. */
24
28
  headers?: Record<string, string>;
25
29
  }
@@ -84,11 +88,6 @@ export declare class Documents {
84
88
  * @throws {@link Vellum.BadRequestError}
85
89
  * @throws {@link Vellum.NotFoundError}
86
90
  * @throws {@link Vellum.InternalServerError}
87
- *
88
- * @example
89
- * await client.documents.upload(fs.createReadStream("/path/to/your/file"), {
90
- * label: "label"
91
- * })
92
91
  */
93
92
  upload(contents: File | fs.ReadStream | Blob, request: Vellum.UploadDocumentBodyRequest, requestOptions?: Documents.RequestOptions): core.HttpResponsePromise<Vellum.UploadDocumentResponse>;
94
93
  private __upload;
@@ -52,8 +52,8 @@ exports.Documents = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
54
  const Vellum = __importStar(require("../../../index"));
55
- const url_join_1 = __importDefault(require("url-join"));
56
55
  const serializers = __importStar(require("../../../../serialization/index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  class Documents {
59
59
  constructor(_options) {
@@ -95,7 +95,11 @@ class Documents {
95
95
  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)
96
96
  .default, "v1/documents"),
97
97
  method: "GET",
98
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
98
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
99
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
100
+ unrecognizedObjectKeys: "strip",
101
+ })
102
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
99
103
  contentType: "application/json",
100
104
  queryParameters: _queryParams,
101
105
  requestType: "json",
@@ -157,7 +161,11 @@ class Documents {
157
161
  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)
158
162
  .default, `v1/documents/${encodeURIComponent(id)}`),
159
163
  method: "GET",
160
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
164
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
165
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
166
+ unrecognizedObjectKeys: "strip",
167
+ })
168
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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
169
  contentType: "application/json",
162
170
  requestType: "json",
163
171
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -218,7 +226,11 @@ class Documents {
218
226
  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)
219
227
  .documents, `v1/documents/${encodeURIComponent(id)}`),
220
228
  method: "DELETE",
221
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
229
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
230
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
231
+ unrecognizedObjectKeys: "strip",
232
+ })
233
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
222
234
  contentType: "application/json",
223
235
  requestType: "json",
224
236
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -272,7 +284,11 @@ class Documents {
272
284
  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)
273
285
  .default, `v1/documents/${encodeURIComponent(id)}`),
274
286
  method: "PATCH",
275
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
287
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
288
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
289
+ unrecognizedObjectKeys: "strip",
290
+ })
291
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
276
292
  contentType: "application/json",
277
293
  requestType: "json",
278
294
  body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -327,11 +343,6 @@ class Documents {
327
343
  * @throws {@link Vellum.BadRequestError}
328
344
  * @throws {@link Vellum.NotFoundError}
329
345
  * @throws {@link Vellum.InternalServerError}
330
- *
331
- * @example
332
- * await client.documents.upload(fs.createReadStream("/path/to/your/file"), {
333
- * label: "label"
334
- * })
335
346
  */
336
347
  upload(contents, request, requestOptions) {
337
348
  return core.HttpResponsePromise.fromPromise(this.__upload(contents, request, requestOptions));
@@ -363,7 +374,11 @@ class Documents {
363
374
  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)
364
375
  .documents, "v1/upload-document"),
365
376
  method: "POST",
366
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
377
+ headers: Object.assign(Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
378
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
379
+ unrecognizedObjectKeys: "strip",
380
+ })
381
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
367
382
  requestType: "file",
368
383
  duplex: _maybeEncodedRequest.duplex,
369
384
  body: _maybeEncodedRequest.body,
@@ -1,12 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * @example
6
- * {
7
- * label: "label"
8
- * }
9
- */
10
4
  export interface UploadDocumentBodyRequest {
11
5
  /** Optionally include the names of all indexes that you'd like this document to be included in */
12
6
  addToIndexNames?: string[] | null;
@@ -10,6 +10,8 @@ export declare namespace FolderEntities {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,6 +20,8 @@ export declare namespace FolderEntities {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
21
25
  /** Additional headers to include in the request. */
22
26
  headers?: Record<string, string>;
23
27
  }
@@ -94,7 +94,11 @@ class FolderEntities {
94
94
  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)
95
95
  .default, "v1/folder-entities"),
96
96
  method: "GET",
97
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
97
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
98
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
99
+ unrecognizedObjectKeys: "strip",
100
+ })
101
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
98
102
  contentType: "application/json",
99
103
  queryParameters: _queryParams,
100
104
  requestType: "json",
@@ -166,7 +170,11 @@ class FolderEntities {
166
170
  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)
167
171
  .default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
168
172
  method: "POST",
169
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
173
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
174
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
175
+ unrecognizedObjectKeys: "strip",
176
+ })
177
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
170
178
  contentType: "application/json",
171
179
  requestType: "json",
172
180
  body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -10,6 +10,8 @@ export declare namespace MetricDefinitions {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,6 +20,8 @@ export declare namespace MetricDefinitions {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
21
25
  /** Additional headers to include in the request. */
22
26
  headers?: Record<string, string>;
23
27
  }
@@ -33,7 +37,11 @@ export declare class MetricDefinitions {
33
37
  * @example
34
38
  * await client.metricDefinitions.executeMetricDefinition("id", {
35
39
  * inputs: [{
36
- * name: "name",
40
+ * name: "x",
41
+ * type: "STRING",
42
+ * value: "value"
43
+ * }, {
44
+ * name: "x",
37
45
  * type: "STRING",
38
46
  * value: "value"
39
47
  * }]
@@ -66,7 +66,11 @@ class MetricDefinitions {
66
66
  * @example
67
67
  * await client.metricDefinitions.executeMetricDefinition("id", {
68
68
  * inputs: [{
69
- * name: "name",
69
+ * name: "x",
70
+ * type: "STRING",
71
+ * value: "value"
72
+ * }, {
73
+ * name: "x",
70
74
  * type: "STRING",
71
75
  * value: "value"
72
76
  * }]
@@ -82,7 +86,11 @@ class MetricDefinitions {
82
86
  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)
83
87
  .predict, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
84
88
  method: "POST",
85
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
89
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
90
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
91
+ unrecognizedObjectKeys: "strip",
92
+ })
93
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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
94
  contentType: "application/json",
87
95
  requestType: "json",
88
96
  body: serializers.ExecuteMetricDefinition.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -143,7 +151,11 @@ class MetricDefinitions {
143
151
  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)
144
152
  .default, `v1/metric-definitions/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
145
153
  method: "GET",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
154
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
155
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
156
+ unrecognizedObjectKeys: "strip",
157
+ })
158
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
147
159
  contentType: "application/json",
148
160
  requestType: "json",
149
161
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -6,7 +6,11 @@ import * as Vellum from "../../../../index";
6
6
  * @example
7
7
  * {
8
8
  * inputs: [{
9
- * name: "name",
9
+ * name: "x",
10
+ * type: "STRING",
11
+ * value: "value"
12
+ * }, {
13
+ * name: "x",
10
14
  * type: "STRING",
11
15
  * value: "value"
12
16
  * }]
@@ -10,6 +10,8 @@ export declare namespace MlModels {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,6 +20,8 @@ export declare namespace MlModels {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
21
25
  /** Additional headers to include in the request. */
22
26
  headers?: Record<string, string>;
23
27
  }
@@ -51,8 +51,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.MlModels = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
- const url_join_1 = __importDefault(require("url-join"));
55
54
  const serializers = __importStar(require("../../../../serialization/index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class MlModels {
58
58
  constructor(_options) {
@@ -77,7 +77,11 @@ class MlModels {
77
77
  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)
78
78
  .default, `v1/ml-models/${encodeURIComponent(id)}`),
79
79
  method: "GET",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.88", "User-Agent": "vellum-ai/0.14.88", "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),
80
+ headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
81
+ ? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
82
+ unrecognizedObjectKeys: "strip",
83
+ })
84
+ : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
81
85
  contentType: "application/json",
82
86
  requestType: "json",
83
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -10,6 +10,8 @@ export declare namespace Organizations {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
+ /** Override the X-API-Version header */
14
+ apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,6 +20,8 @@ export declare namespace Organizations {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Override the X-API-Version header */
24
+ apiVersion?: Vellum.ApiVersionEnum | undefined;
21
25
  /** Additional headers to include in the request. */
22
26
  headers?: Record<string, string>;
23
27
  }