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.
- package/Client.d.ts +37 -8
- package/Client.js +88 -19
- package/api/client/requests/CodeExecutor.d.ts +9 -2
- package/api/client/requests/ExecuteApiRequest.d.ts +1 -1
- package/api/client/requests/ExecutePromptRequest.d.ts +5 -1
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
- package/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
- package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
- package/api/client/requests/GenerateBodyRequest.d.ts +9 -1
- package/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
- package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
- package/api/resources/adHoc/client/Client.d.ts +18 -3
- package/api/resources/adHoc/client/Client.js +24 -5
- package/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
- package/api/resources/containerImages/client/Client.d.ts +7 -3
- package/api/resources/containerImages/client/Client.js +24 -8
- package/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
- package/api/resources/deployments/client/Client.d.ts +9 -1
- package/api/resources/deployments/client/Client.js +45 -9
- package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
- package/api/resources/documentIndexes/client/Client.d.ts +9 -58
- package/api/resources/documentIndexes/client/Client.js +45 -66
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
- package/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
- package/api/resources/documents/client/Client.d.ts +4 -5
- package/api/resources/documents/client/Client.js +26 -11
- package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
- package/api/resources/folderEntities/client/Client.d.ts +4 -0
- package/api/resources/folderEntities/client/Client.js +10 -2
- package/api/resources/metricDefinitions/client/Client.d.ts +9 -1
- package/api/resources/metricDefinitions/client/Client.js +15 -3
- package/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
- package/api/resources/mlModels/client/Client.d.ts +4 -0
- package/api/resources/mlModels/client/Client.js +6 -2
- package/api/resources/organizations/client/Client.d.ts +4 -0
- package/api/resources/organizations/client/Client.js +6 -2
- package/api/resources/prompts/client/Client.d.ts +12 -1
- package/api/resources/prompts/client/Client.js +19 -4
- package/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
- package/api/resources/releaseReviews/client/Client.d.ts +4 -0
- package/api/resources/releaseReviews/client/Client.js +6 -2
- package/api/resources/sandboxes/client/Client.d.ts +6 -21
- package/api/resources/sandboxes/client/Client.js +17 -24
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
- package/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
- package/api/resources/testSuiteRuns/client/Client.js +15 -3
- package/api/resources/testSuites/client/Client.d.ts +13 -15
- package/api/resources/testSuites/client/Client.js +30 -20
- package/api/resources/workflowDeployments/client/Client.d.ts +4 -0
- package/api/resources/workflowDeployments/client/Client.js +40 -8
- package/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
- package/api/resources/workflowSandboxes/client/Client.js +10 -2
- package/api/resources/workflows/client/Client.d.ts +4 -5
- package/api/resources/workflows/client/Client.js +11 -8
- package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
- package/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
- package/api/resources/workspaceSecrets/client/Client.js +11 -3
- package/api/resources/workspaces/client/Client.d.ts +4 -0
- package/api/resources/workspaces/client/Client.js +6 -2
- package/dist/Client.d.ts +37 -8
- package/dist/Client.js +88 -19
- package/dist/api/client/requests/CodeExecutor.d.ts +9 -2
- package/dist/api/client/requests/ExecuteApiRequest.d.ts +1 -1
- package/dist/api/client/requests/ExecutePromptRequest.d.ts +5 -1
- package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
- package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
- package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
- package/dist/api/client/requests/GenerateBodyRequest.d.ts +9 -1
- package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/dist/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
- package/dist/api/resources/adHoc/client/Client.d.ts +18 -3
- package/dist/api/resources/adHoc/client/Client.js +24 -5
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
- package/dist/api/resources/containerImages/client/Client.d.ts +7 -3
- package/dist/api/resources/containerImages/client/Client.js +24 -8
- package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
- package/dist/api/resources/deployments/client/Client.d.ts +9 -1
- package/dist/api/resources/deployments/client/Client.js +45 -9
- package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
- package/dist/api/resources/documentIndexes/client/Client.d.ts +9 -58
- package/dist/api/resources/documentIndexes/client/Client.js +45 -66
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
- package/dist/api/resources/documents/client/Client.d.ts +4 -5
- package/dist/api/resources/documents/client/Client.js +26 -11
- package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
- package/dist/api/resources/folderEntities/client/Client.d.ts +4 -0
- package/dist/api/resources/folderEntities/client/Client.js +10 -2
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +9 -1
- package/dist/api/resources/metricDefinitions/client/Client.js +15 -3
- package/dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
- package/dist/api/resources/mlModels/client/Client.d.ts +4 -0
- package/dist/api/resources/mlModels/client/Client.js +6 -2
- package/dist/api/resources/organizations/client/Client.d.ts +4 -0
- package/dist/api/resources/organizations/client/Client.js +6 -2
- package/dist/api/resources/prompts/client/Client.d.ts +12 -1
- package/dist/api/resources/prompts/client/Client.js +19 -4
- package/dist/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
- package/dist/api/resources/releaseReviews/client/Client.d.ts +4 -0
- package/dist/api/resources/releaseReviews/client/Client.js +6 -2
- package/dist/api/resources/sandboxes/client/Client.d.ts +6 -21
- package/dist/api/resources/sandboxes/client/Client.js +17 -24
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
- package/dist/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
- package/dist/api/resources/testSuiteRuns/client/Client.js +15 -3
- package/dist/api/resources/testSuites/client/Client.d.ts +13 -15
- package/dist/api/resources/testSuites/client/Client.js +30 -20
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +4 -0
- package/dist/api/resources/workflowDeployments/client/Client.js +40 -8
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
- package/dist/api/resources/workflowSandboxes/client/Client.js +10 -2
- package/dist/api/resources/workflows/client/Client.d.ts +4 -5
- package/dist/api/resources/workflows/client/Client.js +11 -8
- package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
- package/dist/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
- package/dist/api/resources/workspaceSecrets/client/Client.js +11 -3
- package/dist/api/resources/workspaces/client/Client.d.ts +4 -0
- package/dist/api/resources/workspaces/client/Client.js +6 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +116 -187
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/dist/Client.js
CHANGED
|
@@ -160,7 +160,7 @@ class VellumClient {
|
|
|
160
160
|
*
|
|
161
161
|
* @example
|
|
162
162
|
* await client.executeApi({
|
|
163
|
-
* url: "
|
|
163
|
+
* url: "x"
|
|
164
164
|
* })
|
|
165
165
|
*/
|
|
166
166
|
executeApi(request, requestOptions) {
|
|
@@ -173,7 +173,11 @@ class VellumClient {
|
|
|
173
173
|
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)
|
|
174
174
|
.default, "v1/execute-api"),
|
|
175
175
|
method: "POST",
|
|
176
|
-
headers: Object.assign(Object.assign({ "X-
|
|
176
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
177
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
178
|
+
unrecognizedObjectKeys: "strip",
|
|
179
|
+
})
|
|
180
|
+
: "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),
|
|
177
181
|
contentType: "application/json",
|
|
178
182
|
requestType: "json",
|
|
179
183
|
body: serializers.ExecuteApiRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -224,16 +228,23 @@ class VellumClient {
|
|
|
224
228
|
*
|
|
225
229
|
* @example
|
|
226
230
|
* await client.executeCode({
|
|
227
|
-
* code: "
|
|
231
|
+
* code: "x",
|
|
228
232
|
* runtime: "PYTHON_3_11_6",
|
|
229
233
|
* inputValues: [{
|
|
230
|
-
* name: "
|
|
234
|
+
* name: "x",
|
|
235
|
+
* type: "STRING",
|
|
236
|
+
* value: "value"
|
|
237
|
+
* }, {
|
|
238
|
+
* name: "x",
|
|
231
239
|
* type: "STRING",
|
|
232
240
|
* value: "value"
|
|
233
241
|
* }],
|
|
234
242
|
* packages: [{
|
|
235
243
|
* version: "version",
|
|
236
244
|
* name: "name"
|
|
245
|
+
* }, {
|
|
246
|
+
* version: "version",
|
|
247
|
+
* name: "name"
|
|
237
248
|
* }],
|
|
238
249
|
* outputType: "STRING"
|
|
239
250
|
* })
|
|
@@ -248,7 +259,11 @@ class VellumClient {
|
|
|
248
259
|
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)
|
|
249
260
|
.predict, "v1/execute-code"),
|
|
250
261
|
method: "POST",
|
|
251
|
-
headers: Object.assign(Object.assign({ "X-
|
|
262
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
263
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
264
|
+
unrecognizedObjectKeys: "strip",
|
|
265
|
+
})
|
|
266
|
+
: "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),
|
|
252
267
|
contentType: "application/json",
|
|
253
268
|
requestType: "json",
|
|
254
269
|
body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -310,7 +325,11 @@ class VellumClient {
|
|
|
310
325
|
* @example
|
|
311
326
|
* await client.executePrompt({
|
|
312
327
|
* inputs: [{
|
|
313
|
-
* name: "
|
|
328
|
+
* name: "x",
|
|
329
|
+
* type: "STRING",
|
|
330
|
+
* value: "value"
|
|
331
|
+
* }, {
|
|
332
|
+
* name: "x",
|
|
314
333
|
* type: "STRING",
|
|
315
334
|
* value: "value"
|
|
316
335
|
* }]
|
|
@@ -326,7 +345,11 @@ class VellumClient {
|
|
|
326
345
|
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)
|
|
327
346
|
.predict, "v1/execute-prompt"),
|
|
328
347
|
method: "POST",
|
|
329
|
-
headers: Object.assign(Object.assign({ "X-
|
|
348
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
349
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
350
|
+
unrecognizedObjectKeys: "strip",
|
|
351
|
+
})
|
|
352
|
+
: "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),
|
|
330
353
|
contentType: "application/json",
|
|
331
354
|
requestType: "json",
|
|
332
355
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -393,7 +416,11 @@ class VellumClient {
|
|
|
393
416
|
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)
|
|
394
417
|
.predict, "v1/execute-prompt-stream"),
|
|
395
418
|
method: "POST",
|
|
396
|
-
headers: Object.assign(Object.assign({ "X-
|
|
419
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
420
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
421
|
+
unrecognizedObjectKeys: "strip",
|
|
422
|
+
})
|
|
423
|
+
: "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),
|
|
397
424
|
contentType: "application/json",
|
|
398
425
|
requestType: "json",
|
|
399
426
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -471,7 +498,11 @@ class VellumClient {
|
|
|
471
498
|
* @example
|
|
472
499
|
* await client.executeWorkflow({
|
|
473
500
|
* inputs: [{
|
|
474
|
-
* name: "
|
|
501
|
+
* name: "x",
|
|
502
|
+
* type: "STRING",
|
|
503
|
+
* value: "value"
|
|
504
|
+
* }, {
|
|
505
|
+
* name: "x",
|
|
475
506
|
* type: "STRING",
|
|
476
507
|
* value: "value"
|
|
477
508
|
* }]
|
|
@@ -487,7 +518,11 @@ class VellumClient {
|
|
|
487
518
|
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)
|
|
488
519
|
.predict, "v1/execute-workflow"),
|
|
489
520
|
method: "POST",
|
|
490
|
-
headers: Object.assign(Object.assign({ "X-
|
|
521
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
522
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
523
|
+
unrecognizedObjectKeys: "strip",
|
|
524
|
+
})
|
|
525
|
+
: "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),
|
|
491
526
|
contentType: "application/json",
|
|
492
527
|
requestType: "json",
|
|
493
528
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -552,7 +587,11 @@ class VellumClient {
|
|
|
552
587
|
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)
|
|
553
588
|
.predict, "v1/execute-workflow-stream"),
|
|
554
589
|
method: "POST",
|
|
555
|
-
headers: Object.assign(Object.assign({ "X-
|
|
590
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
591
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
592
|
+
unrecognizedObjectKeys: "strip",
|
|
593
|
+
})
|
|
594
|
+
: "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),
|
|
556
595
|
contentType: "application/json",
|
|
557
596
|
requestType: "json",
|
|
558
597
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -633,7 +672,15 @@ class VellumClient {
|
|
|
633
672
|
* await client.generate({
|
|
634
673
|
* requests: [{
|
|
635
674
|
* inputValues: {
|
|
636
|
-
* "
|
|
675
|
+
* "input_values": {
|
|
676
|
+
* "key": "value"
|
|
677
|
+
* }
|
|
678
|
+
* }
|
|
679
|
+
* }, {
|
|
680
|
+
* inputValues: {
|
|
681
|
+
* "input_values": {
|
|
682
|
+
* "key": "value"
|
|
683
|
+
* }
|
|
637
684
|
* }
|
|
638
685
|
* }]
|
|
639
686
|
* })
|
|
@@ -648,7 +695,11 @@ class VellumClient {
|
|
|
648
695
|
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)
|
|
649
696
|
.predict, "v1/generate"),
|
|
650
697
|
method: "POST",
|
|
651
|
-
headers: Object.assign(Object.assign({ "X-
|
|
698
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
699
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
700
|
+
unrecognizedObjectKeys: "strip",
|
|
701
|
+
})
|
|
702
|
+
: "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),
|
|
652
703
|
contentType: "application/json",
|
|
653
704
|
requestType: "json",
|
|
654
705
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -718,7 +769,11 @@ class VellumClient {
|
|
|
718
769
|
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)
|
|
719
770
|
.predict, "v1/generate-stream"),
|
|
720
771
|
method: "POST",
|
|
721
|
-
headers: Object.assign(Object.assign({ "X-
|
|
772
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
773
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
774
|
+
unrecognizedObjectKeys: "strip",
|
|
775
|
+
})
|
|
776
|
+
: "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),
|
|
722
777
|
contentType: "application/json",
|
|
723
778
|
requestType: "json",
|
|
724
779
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -795,7 +850,7 @@ class VellumClient {
|
|
|
795
850
|
*
|
|
796
851
|
* @example
|
|
797
852
|
* await client.search({
|
|
798
|
-
* query: "
|
|
853
|
+
* query: "x"
|
|
799
854
|
* })
|
|
800
855
|
*/
|
|
801
856
|
search(request, requestOptions) {
|
|
@@ -808,7 +863,11 @@ class VellumClient {
|
|
|
808
863
|
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)
|
|
809
864
|
.predict, "v1/search"),
|
|
810
865
|
method: "POST",
|
|
811
|
-
headers: Object.assign(Object.assign({ "X-
|
|
866
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
867
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
868
|
+
unrecognizedObjectKeys: "strip",
|
|
869
|
+
})
|
|
870
|
+
: "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),
|
|
812
871
|
contentType: "application/json",
|
|
813
872
|
requestType: "json",
|
|
814
873
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -872,7 +931,7 @@ class VellumClient {
|
|
|
872
931
|
*
|
|
873
932
|
* @example
|
|
874
933
|
* await client.submitCompletionActuals({
|
|
875
|
-
* actuals: [{}]
|
|
934
|
+
* actuals: [{}, {}]
|
|
876
935
|
* })
|
|
877
936
|
*/
|
|
878
937
|
submitCompletionActuals(request, requestOptions) {
|
|
@@ -885,7 +944,11 @@ class VellumClient {
|
|
|
885
944
|
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)
|
|
886
945
|
.predict, "v1/submit-completion-actuals"),
|
|
887
946
|
method: "POST",
|
|
888
|
-
headers: Object.assign(Object.assign({ "X-
|
|
947
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
948
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
949
|
+
unrecognizedObjectKeys: "strip",
|
|
950
|
+
})
|
|
951
|
+
: "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),
|
|
889
952
|
contentType: "application/json",
|
|
890
953
|
requestType: "json",
|
|
891
954
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -941,6 +1004,8 @@ class VellumClient {
|
|
|
941
1004
|
* await client.submitWorkflowExecutionActuals({
|
|
942
1005
|
* actuals: [{
|
|
943
1006
|
* outputType: "STRING"
|
|
1007
|
+
* }, {
|
|
1008
|
+
* outputType: "STRING"
|
|
944
1009
|
* }]
|
|
945
1010
|
* })
|
|
946
1011
|
*/
|
|
@@ -954,7 +1019,11 @@ class VellumClient {
|
|
|
954
1019
|
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)
|
|
955
1020
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
956
1021
|
method: "POST",
|
|
957
|
-
headers: Object.assign(Object.assign({ "X-
|
|
1022
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
1023
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
1024
|
+
unrecognizedObjectKeys: "strip",
|
|
1025
|
+
})
|
|
1026
|
+
: "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),
|
|
958
1027
|
contentType: "application/json",
|
|
959
1028
|
requestType: "json",
|
|
960
1029
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -5,16 +5,23 @@ import * as Vellum from "../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* code: "
|
|
8
|
+
* code: "x",
|
|
9
9
|
* runtime: "PYTHON_3_11_6",
|
|
10
10
|
* inputValues: [{
|
|
11
|
-
* name: "
|
|
11
|
+
* name: "x",
|
|
12
|
+
* type: "STRING",
|
|
13
|
+
* value: "value"
|
|
14
|
+
* }, {
|
|
15
|
+
* name: "x",
|
|
12
16
|
* type: "STRING",
|
|
13
17
|
* value: "value"
|
|
14
18
|
* }],
|
|
15
19
|
* packages: [{
|
|
16
20
|
* version: "version",
|
|
17
21
|
* name: "name"
|
|
22
|
+
* }, {
|
|
23
|
+
* version: "version",
|
|
24
|
+
* name: "name"
|
|
18
25
|
* }],
|
|
19
26
|
* outputType: "STRING"
|
|
20
27
|
* }
|
|
@@ -7,7 +7,15 @@ import * as Vellum from "../../index";
|
|
|
7
7
|
* {
|
|
8
8
|
* requests: [{
|
|
9
9
|
* inputValues: {
|
|
10
|
-
* "
|
|
10
|
+
* "input_values": {
|
|
11
|
+
* "key": "value"
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* }, {
|
|
15
|
+
* inputValues: {
|
|
16
|
+
* "input_values": {
|
|
17
|
+
* "key": "value"
|
|
18
|
+
* }
|
|
11
19
|
* }
|
|
12
20
|
* }]
|
|
13
21
|
* }
|
|
@@ -7,7 +7,15 @@ import * as Vellum from "../../index";
|
|
|
7
7
|
* {
|
|
8
8
|
* requests: [{
|
|
9
9
|
* inputValues: {
|
|
10
|
-
* "
|
|
10
|
+
* "input_values": {
|
|
11
|
+
* "key": "value"
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* }, {
|
|
15
|
+
* inputValues: {
|
|
16
|
+
* "input_values": {
|
|
17
|
+
* "key": "value"
|
|
18
|
+
* }
|
|
11
19
|
* }
|
|
12
20
|
* }]
|
|
13
21
|
* }
|
|
@@ -10,6 +10,8 @@ export declare namespace AdHoc {
|
|
|
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 AdHoc {
|
|
|
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
|
}
|
|
@@ -35,14 +39,22 @@ export declare class AdHoc {
|
|
|
35
39
|
*
|
|
36
40
|
* @example
|
|
37
41
|
* await client.adHoc.adhocExecutePrompt({
|
|
38
|
-
* mlModel: "
|
|
42
|
+
* mlModel: "x",
|
|
39
43
|
* inputValues: [{
|
|
40
|
-
* key: "
|
|
44
|
+
* key: "x",
|
|
45
|
+
* type: "STRING",
|
|
46
|
+
* value: "value"
|
|
47
|
+
* }, {
|
|
48
|
+
* key: "x",
|
|
41
49
|
* type: "STRING",
|
|
42
50
|
* value: "value"
|
|
43
51
|
* }],
|
|
44
52
|
* inputVariables: [{
|
|
45
|
-
* id: "
|
|
53
|
+
* id: "x",
|
|
54
|
+
* key: "key",
|
|
55
|
+
* type: "STRING"
|
|
56
|
+
* }, {
|
|
57
|
+
* id: "x",
|
|
46
58
|
* key: "key",
|
|
47
59
|
* type: "STRING"
|
|
48
60
|
* }],
|
|
@@ -50,6 +62,9 @@ export declare class AdHoc {
|
|
|
50
62
|
* blocks: [{
|
|
51
63
|
* blockType: "JINJA",
|
|
52
64
|
* template: "template"
|
|
65
|
+
* }, {
|
|
66
|
+
* blockType: "JINJA",
|
|
67
|
+
* template: "template"
|
|
53
68
|
* }]
|
|
54
69
|
* })
|
|
55
70
|
*/
|
|
@@ -69,14 +69,22 @@ class AdHoc {
|
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* await client.adHoc.adhocExecutePrompt({
|
|
72
|
-
* mlModel: "
|
|
72
|
+
* mlModel: "x",
|
|
73
73
|
* inputValues: [{
|
|
74
|
-
* key: "
|
|
74
|
+
* key: "x",
|
|
75
|
+
* type: "STRING",
|
|
76
|
+
* value: "value"
|
|
77
|
+
* }, {
|
|
78
|
+
* key: "x",
|
|
75
79
|
* type: "STRING",
|
|
76
80
|
* value: "value"
|
|
77
81
|
* }],
|
|
78
82
|
* inputVariables: [{
|
|
79
|
-
* id: "
|
|
83
|
+
* id: "x",
|
|
84
|
+
* key: "key",
|
|
85
|
+
* type: "STRING"
|
|
86
|
+
* }, {
|
|
87
|
+
* id: "x",
|
|
80
88
|
* key: "key",
|
|
81
89
|
* type: "STRING"
|
|
82
90
|
* }],
|
|
@@ -84,6 +92,9 @@ class AdHoc {
|
|
|
84
92
|
* blocks: [{
|
|
85
93
|
* blockType: "JINJA",
|
|
86
94
|
* template: "template"
|
|
95
|
+
* }, {
|
|
96
|
+
* blockType: "JINJA",
|
|
97
|
+
* template: "template"
|
|
87
98
|
* }]
|
|
88
99
|
* })
|
|
89
100
|
*/
|
|
@@ -97,7 +108,11 @@ class AdHoc {
|
|
|
97
108
|
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)
|
|
98
109
|
.default, "v1/ad-hoc/execute-prompt"),
|
|
99
110
|
method: "POST",
|
|
100
|
-
headers: Object.assign(Object.assign({ "X-
|
|
111
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
112
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
113
|
+
unrecognizedObjectKeys: "strip",
|
|
114
|
+
})
|
|
115
|
+
: "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),
|
|
101
116
|
contentType: "application/json",
|
|
102
117
|
requestType: "json",
|
|
103
118
|
body: serializers.AdHocExecutePrompt.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -159,7 +174,11 @@ class AdHoc {
|
|
|
159
174
|
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)
|
|
160
175
|
.predict, "v1/ad-hoc/execute-prompt-stream"),
|
|
161
176
|
method: "POST",
|
|
162
|
-
headers: Object.assign(Object.assign({ "X-
|
|
177
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
178
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
179
|
+
unrecognizedObjectKeys: "strip",
|
|
180
|
+
})
|
|
181
|
+
: "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),
|
|
163
182
|
contentType: "application/json",
|
|
164
183
|
requestType: "json",
|
|
165
184
|
body: serializers.AdHocExecutePromptStream.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -5,14 +5,22 @@ import * as Vellum from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* mlModel: "
|
|
8
|
+
* mlModel: "x",
|
|
9
9
|
* inputValues: [{
|
|
10
|
-
* key: "
|
|
10
|
+
* key: "x",
|
|
11
|
+
* type: "STRING",
|
|
12
|
+
* value: "value"
|
|
13
|
+
* }, {
|
|
14
|
+
* key: "x",
|
|
11
15
|
* type: "STRING",
|
|
12
16
|
* value: "value"
|
|
13
17
|
* }],
|
|
14
18
|
* inputVariables: [{
|
|
15
|
-
* id: "
|
|
19
|
+
* id: "x",
|
|
20
|
+
* key: "key",
|
|
21
|
+
* type: "STRING"
|
|
22
|
+
* }, {
|
|
23
|
+
* id: "x",
|
|
16
24
|
* key: "key",
|
|
17
25
|
* type: "STRING"
|
|
18
26
|
* }],
|
|
@@ -20,6 +28,9 @@ import * as Vellum from "../../../../index";
|
|
|
20
28
|
* blocks: [{
|
|
21
29
|
* blockType: "JINJA",
|
|
22
30
|
* template: "template"
|
|
31
|
+
* }, {
|
|
32
|
+
* blockType: "JINJA",
|
|
33
|
+
* template: "template"
|
|
23
34
|
* }]
|
|
24
35
|
* }
|
|
25
36
|
*/
|
|
@@ -5,14 +5,22 @@ import * as Vellum from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* mlModel: "
|
|
8
|
+
* mlModel: "x",
|
|
9
9
|
* inputValues: [{
|
|
10
|
-
* key: "
|
|
10
|
+
* key: "x",
|
|
11
|
+
* type: "STRING",
|
|
12
|
+
* value: "value"
|
|
13
|
+
* }, {
|
|
14
|
+
* key: "x",
|
|
11
15
|
* type: "STRING",
|
|
12
16
|
* value: "value"
|
|
13
17
|
* }],
|
|
14
18
|
* inputVariables: [{
|
|
15
|
-
* id: "
|
|
19
|
+
* id: "x",
|
|
20
|
+
* key: "key",
|
|
21
|
+
* type: "STRING"
|
|
22
|
+
* }, {
|
|
23
|
+
* id: "x",
|
|
16
24
|
* key: "key",
|
|
17
25
|
* type: "STRING"
|
|
18
26
|
* }],
|
|
@@ -20,6 +28,9 @@ import * as Vellum from "../../../../index";
|
|
|
20
28
|
* blocks: [{
|
|
21
29
|
* blockType: "JINJA",
|
|
22
30
|
* template: "template"
|
|
31
|
+
* }, {
|
|
32
|
+
* blockType: "JINJA",
|
|
33
|
+
* template: "template"
|
|
23
34
|
* }]
|
|
24
35
|
* }
|
|
25
36
|
*/
|
|
@@ -10,6 +10,8 @@ export declare namespace ContainerImages {
|
|
|
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 ContainerImages {
|
|
|
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
|
}
|
|
@@ -61,9 +65,9 @@ export declare class ContainerImages {
|
|
|
61
65
|
*
|
|
62
66
|
* @example
|
|
63
67
|
* await client.containerImages.pushContainerImage({
|
|
64
|
-
* name: "
|
|
65
|
-
* sha: "
|
|
66
|
-
* tags: ["tags"]
|
|
68
|
+
* name: "x",
|
|
69
|
+
* sha: "x",
|
|
70
|
+
* tags: ["tags", "tags"]
|
|
67
71
|
* })
|
|
68
72
|
*/
|
|
69
73
|
pushContainerImage(request: Vellum.PushContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): core.HttpResponsePromise<Vellum.ContainerImageRead>;
|