vellum-ai 0.6.3 → 0.6.4
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 +4 -6
- package/Client.js +13 -15
- package/api/resources/deployments/client/Client.js +5 -5
- package/api/resources/documentIndexes/client/Client.js +6 -6
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.d.ts +4 -0
- package/api/resources/testSuites/client/Client.js +57 -3
- package/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +3 -0
- package/api/resources/workflowDeployments/client/Client.js +4 -4
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/types/BulkCreateTestSuiteTestCaseDataRequest.d.ts +14 -0
- package/api/types/BulkCreateTestSuiteTestCaseDataRequest.js +5 -0
- package/api/types/BulkReplaceTestSuiteTestCaseDataRequest.d.ts +16 -0
- package/api/types/BulkReplaceTestSuiteTestCaseDataRequest.js +5 -0
- package/api/types/CreateEnum.d.ts +4 -0
- package/api/types/CreateEnum.js +5 -0
- package/api/types/CreatedEnum.d.ts +4 -0
- package/api/types/CreatedEnum.js +5 -0
- package/api/types/DeleteEnum.d.ts +4 -0
- package/api/types/DeleteEnum.js +5 -0
- package/api/types/DeletedEnum.d.ts +4 -0
- package/api/types/DeletedEnum.js +5 -0
- package/api/types/ReplaceEnum.d.ts +4 -0
- package/api/types/ReplaceEnum.js +5 -0
- package/api/types/ReplacedEnum.d.ts +4 -0
- package/api/types/ReplacedEnum.js +5 -0
- package/api/types/TestSuiteTestCaseBulkOperationRequest.d.ts +16 -0
- package/api/types/TestSuiteTestCaseBulkOperationRequest.js +5 -0
- package/api/types/TestSuiteTestCaseBulkResult.d.ts +19 -0
- package/api/types/TestSuiteTestCaseBulkResult.js +5 -0
- package/api/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +12 -0
- package/api/types/TestSuiteTestCaseCreateBulkOperationRequest.js +5 -0
- package/api/types/TestSuiteTestCaseCreatedBulkResult.d.ts +11 -0
- package/api/types/TestSuiteTestCaseCreatedBulkResult.js +5 -0
- package/api/types/TestSuiteTestCaseCreatedBulkResultData.d.ts +9 -0
- package/api/types/TestSuiteTestCaseCreatedBulkResultData.js +5 -0
- package/api/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.d.ts +6 -0
- package/api/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.js +5 -0
- package/api/types/TestSuiteTestCaseDeleteBulkOperationRequest.d.ts +13 -0
- package/api/types/TestSuiteTestCaseDeleteBulkOperationRequest.js +5 -0
- package/api/types/TestSuiteTestCaseDeletedBulkResult.d.ts +12 -0
- package/api/types/TestSuiteTestCaseDeletedBulkResult.js +5 -0
- package/api/types/TestSuiteTestCaseDeletedBulkResultData.d.ts +9 -0
- package/api/types/TestSuiteTestCaseDeletedBulkResultData.js +5 -0
- package/api/types/TestSuiteTestCaseRejectedBulkResult.d.ts +12 -0
- package/api/types/TestSuiteTestCaseRejectedBulkResult.js +5 -0
- package/api/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +12 -0
- package/api/types/TestSuiteTestCaseReplaceBulkOperationRequest.js +5 -0
- package/api/types/TestSuiteTestCaseReplacedBulkResult.d.ts +12 -0
- package/api/types/TestSuiteTestCaseReplacedBulkResult.js +5 -0
- package/api/types/TestSuiteTestCaseReplacedBulkResultData.d.ts +9 -0
- package/api/types/TestSuiteTestCaseReplacedBulkResultData.js +5 -0
- package/api/types/index.d.ts +21 -0
- package/api/types/index.js +21 -0
- package/dist/Client.d.ts +4 -6
- package/dist/Client.js +13 -15
- package/dist/api/resources/deployments/client/Client.js +5 -5
- package/dist/api/resources/documentIndexes/client/Client.js +6 -6
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.d.ts +4 -0
- package/dist/api/resources/testSuites/client/Client.js +57 -3
- package/dist/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +3 -0
- package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/types/BulkCreateTestSuiteTestCaseDataRequest.d.ts +14 -0
- package/dist/api/types/BulkCreateTestSuiteTestCaseDataRequest.js +5 -0
- package/dist/api/types/BulkReplaceTestSuiteTestCaseDataRequest.d.ts +16 -0
- package/dist/api/types/BulkReplaceTestSuiteTestCaseDataRequest.js +5 -0
- package/dist/api/types/CreateEnum.d.ts +4 -0
- package/dist/api/types/CreateEnum.js +5 -0
- package/dist/api/types/CreatedEnum.d.ts +4 -0
- package/dist/api/types/CreatedEnum.js +5 -0
- package/dist/api/types/DeleteEnum.d.ts +4 -0
- package/dist/api/types/DeleteEnum.js +5 -0
- package/dist/api/types/DeletedEnum.d.ts +4 -0
- package/dist/api/types/DeletedEnum.js +5 -0
- package/dist/api/types/ReplaceEnum.d.ts +4 -0
- package/dist/api/types/ReplaceEnum.js +5 -0
- package/dist/api/types/ReplacedEnum.d.ts +4 -0
- package/dist/api/types/ReplacedEnum.js +5 -0
- package/dist/api/types/TestSuiteTestCaseBulkOperationRequest.d.ts +16 -0
- package/dist/api/types/TestSuiteTestCaseBulkOperationRequest.js +5 -0
- package/dist/api/types/TestSuiteTestCaseBulkResult.d.ts +19 -0
- package/dist/api/types/TestSuiteTestCaseBulkResult.js +5 -0
- package/dist/api/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +12 -0
- package/dist/api/types/TestSuiteTestCaseCreateBulkOperationRequest.js +5 -0
- package/dist/api/types/TestSuiteTestCaseCreatedBulkResult.d.ts +11 -0
- package/dist/api/types/TestSuiteTestCaseCreatedBulkResult.js +5 -0
- package/dist/api/types/TestSuiteTestCaseCreatedBulkResultData.d.ts +9 -0
- package/dist/api/types/TestSuiteTestCaseCreatedBulkResultData.js +5 -0
- package/dist/api/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.d.ts +6 -0
- package/dist/api/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.js +5 -0
- package/dist/api/types/TestSuiteTestCaseDeleteBulkOperationRequest.d.ts +13 -0
- package/dist/api/types/TestSuiteTestCaseDeleteBulkOperationRequest.js +5 -0
- package/dist/api/types/TestSuiteTestCaseDeletedBulkResult.d.ts +12 -0
- package/dist/api/types/TestSuiteTestCaseDeletedBulkResult.js +5 -0
- package/dist/api/types/TestSuiteTestCaseDeletedBulkResultData.d.ts +9 -0
- package/dist/api/types/TestSuiteTestCaseDeletedBulkResultData.js +5 -0
- package/dist/api/types/TestSuiteTestCaseRejectedBulkResult.d.ts +12 -0
- package/dist/api/types/TestSuiteTestCaseRejectedBulkResult.js +5 -0
- package/dist/api/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +12 -0
- package/dist/api/types/TestSuiteTestCaseReplaceBulkOperationRequest.js +5 -0
- package/dist/api/types/TestSuiteTestCaseReplacedBulkResult.d.ts +12 -0
- package/dist/api/types/TestSuiteTestCaseReplacedBulkResult.js +5 -0
- package/dist/api/types/TestSuiteTestCaseReplacedBulkResultData.d.ts +9 -0
- package/dist/api/types/TestSuiteTestCaseReplacedBulkResultData.js +5 -0
- package/dist/api/types/index.d.ts +21 -0
- package/dist/api/types/index.js +21 -0
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/serialization/resources/testSuites/client/index.d.ts +1 -0
- package/dist/serialization/resources/testSuites/client/index.js +14 -0
- package/dist/serialization/resources/testSuites/client/testSuiteTestCasesBulk.d.ts +16 -0
- package/dist/serialization/resources/testSuites/client/testSuiteTestCasesBulk.js +34 -0
- package/dist/serialization/types/BulkCreateTestSuiteTestCaseDataRequest.d.ts +15 -0
- package/dist/serialization/types/BulkCreateTestSuiteTestCaseDataRequest.js +36 -0
- package/dist/serialization/types/BulkReplaceTestSuiteTestCaseDataRequest.d.ts +16 -0
- package/dist/serialization/types/BulkReplaceTestSuiteTestCaseDataRequest.js +37 -0
- package/dist/serialization/types/CreateEnum.d.ts +10 -0
- package/dist/serialization/types/CreateEnum.js +31 -0
- package/dist/serialization/types/CreatedEnum.d.ts +10 -0
- package/dist/serialization/types/CreatedEnum.js +31 -0
- package/dist/serialization/types/DeleteEnum.d.ts +10 -0
- package/dist/serialization/types/DeleteEnum.js +31 -0
- package/dist/serialization/types/DeletedEnum.d.ts +10 -0
- package/dist/serialization/types/DeletedEnum.js +31 -0
- package/dist/serialization/types/ReplaceEnum.d.ts +10 -0
- package/dist/serialization/types/ReplaceEnum.js +31 -0
- package/dist/serialization/types/ReplacedEnum.d.ts +10 -0
- package/dist/serialization/types/ReplacedEnum.js +31 -0
- package/dist/serialization/types/TestSuiteTestCaseBulkOperationRequest.d.ts +22 -0
- package/dist/serialization/types/TestSuiteTestCaseBulkOperationRequest.js +43 -0
- package/dist/serialization/types/TestSuiteTestCaseBulkResult.d.ts +26 -0
- package/dist/serialization/types/TestSuiteTestCaseBulkResult.js +45 -0
- package/dist/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +14 -0
- package/dist/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.js +35 -0
- package/dist/serialization/types/TestSuiteTestCaseCreatedBulkResult.d.ts +14 -0
- package/dist/serialization/types/TestSuiteTestCaseCreatedBulkResult.js +35 -0
- package/dist/serialization/types/TestSuiteTestCaseCreatedBulkResultData.d.ts +12 -0
- package/dist/serialization/types/TestSuiteTestCaseCreatedBulkResultData.js +33 -0
- package/dist/serialization/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.d.ts +12 -0
- package/dist/serialization/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.js +33 -0
- package/dist/serialization/types/TestSuiteTestCaseDeleteBulkOperationRequest.d.ts +14 -0
- package/dist/serialization/types/TestSuiteTestCaseDeleteBulkOperationRequest.js +35 -0
- package/dist/serialization/types/TestSuiteTestCaseDeletedBulkResult.d.ts +14 -0
- package/dist/serialization/types/TestSuiteTestCaseDeletedBulkResult.js +35 -0
- package/dist/serialization/types/TestSuiteTestCaseDeletedBulkResultData.d.ts +12 -0
- package/dist/serialization/types/TestSuiteTestCaseDeletedBulkResultData.js +33 -0
- package/dist/serialization/types/TestSuiteTestCaseRejectedBulkResult.d.ts +13 -0
- package/dist/serialization/types/TestSuiteTestCaseRejectedBulkResult.js +34 -0
- package/dist/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +14 -0
- package/dist/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.js +35 -0
- package/dist/serialization/types/TestSuiteTestCaseReplacedBulkResult.d.ts +14 -0
- package/dist/serialization/types/TestSuiteTestCaseReplacedBulkResult.js +35 -0
- package/dist/serialization/types/TestSuiteTestCaseReplacedBulkResultData.d.ts +12 -0
- package/dist/serialization/types/TestSuiteTestCaseReplacedBulkResultData.js +33 -0
- package/dist/serialization/types/index.d.ts +21 -0
- package/dist/serialization/types/index.js +21 -0
- package/package.json +1 -1
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/serialization/resources/testSuites/client/index.d.ts +1 -0
- package/serialization/resources/testSuites/client/index.js +14 -0
- package/serialization/resources/testSuites/client/testSuiteTestCasesBulk.d.ts +16 -0
- package/serialization/resources/testSuites/client/testSuiteTestCasesBulk.js +34 -0
- package/serialization/types/BulkCreateTestSuiteTestCaseDataRequest.d.ts +15 -0
- package/serialization/types/BulkCreateTestSuiteTestCaseDataRequest.js +36 -0
- package/serialization/types/BulkReplaceTestSuiteTestCaseDataRequest.d.ts +16 -0
- package/serialization/types/BulkReplaceTestSuiteTestCaseDataRequest.js +37 -0
- package/serialization/types/CreateEnum.d.ts +10 -0
- package/serialization/types/CreateEnum.js +31 -0
- package/serialization/types/CreatedEnum.d.ts +10 -0
- package/serialization/types/CreatedEnum.js +31 -0
- package/serialization/types/DeleteEnum.d.ts +10 -0
- package/serialization/types/DeleteEnum.js +31 -0
- package/serialization/types/DeletedEnum.d.ts +10 -0
- package/serialization/types/DeletedEnum.js +31 -0
- package/serialization/types/ReplaceEnum.d.ts +10 -0
- package/serialization/types/ReplaceEnum.js +31 -0
- package/serialization/types/ReplacedEnum.d.ts +10 -0
- package/serialization/types/ReplacedEnum.js +31 -0
- package/serialization/types/TestSuiteTestCaseBulkOperationRequest.d.ts +22 -0
- package/serialization/types/TestSuiteTestCaseBulkOperationRequest.js +43 -0
- package/serialization/types/TestSuiteTestCaseBulkResult.d.ts +26 -0
- package/serialization/types/TestSuiteTestCaseBulkResult.js +45 -0
- package/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +14 -0
- package/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.js +35 -0
- package/serialization/types/TestSuiteTestCaseCreatedBulkResult.d.ts +14 -0
- package/serialization/types/TestSuiteTestCaseCreatedBulkResult.js +35 -0
- package/serialization/types/TestSuiteTestCaseCreatedBulkResultData.d.ts +12 -0
- package/serialization/types/TestSuiteTestCaseCreatedBulkResultData.js +33 -0
- package/serialization/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.d.ts +12 -0
- package/serialization/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.js +33 -0
- package/serialization/types/TestSuiteTestCaseDeleteBulkOperationRequest.d.ts +14 -0
- package/serialization/types/TestSuiteTestCaseDeleteBulkOperationRequest.js +35 -0
- package/serialization/types/TestSuiteTestCaseDeletedBulkResult.d.ts +14 -0
- package/serialization/types/TestSuiteTestCaseDeletedBulkResult.js +35 -0
- package/serialization/types/TestSuiteTestCaseDeletedBulkResultData.d.ts +12 -0
- package/serialization/types/TestSuiteTestCaseDeletedBulkResultData.js +33 -0
- package/serialization/types/TestSuiteTestCaseRejectedBulkResult.d.ts +13 -0
- package/serialization/types/TestSuiteTestCaseRejectedBulkResult.js +34 -0
- package/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +14 -0
- package/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.js +35 -0
- package/serialization/types/TestSuiteTestCaseReplacedBulkResult.d.ts +14 -0
- package/serialization/types/TestSuiteTestCaseReplacedBulkResult.js +35 -0
- package/serialization/types/TestSuiteTestCaseReplacedBulkResultData.d.ts +12 -0
- package/serialization/types/TestSuiteTestCaseReplacedBulkResultData.js +33 -0
- package/serialization/types/index.d.ts +21 -0
- package/serialization/types/index.js +21 -0
package/Client.d.ts
CHANGED
|
@@ -52,7 +52,8 @@ export declare class VellumClient {
|
|
|
52
52
|
/**
|
|
53
53
|
* Generate a completion using a previously defined deployment.
|
|
54
54
|
*
|
|
55
|
-
*
|
|
55
|
+
* Important: This endpoint is DEPRECATED and has been superseded by
|
|
56
|
+
* [execute-prompt](/api-reference/api-reference/execute-prompt).
|
|
56
57
|
* @throws {@link Vellum.BadRequestError}
|
|
57
58
|
* @throws {@link Vellum.ForbiddenError}
|
|
58
59
|
* @throws {@link Vellum.NotFoundError}
|
|
@@ -69,13 +70,12 @@ export declare class VellumClient {
|
|
|
69
70
|
/**
|
|
70
71
|
* Generate a stream of completions using a previously defined deployment.
|
|
71
72
|
*
|
|
72
|
-
*
|
|
73
|
+
* Important: This endpoint is DEPRECATED and has been superseded by
|
|
74
|
+
* [execute-prompt-stream](/api-reference/api-reference/execute-prompt-stream).
|
|
73
75
|
*/
|
|
74
76
|
generateStream(request: Vellum.GenerateStreamBodyRequest, requestOptions?: VellumClient.RequestOptions): Promise<core.Stream<Vellum.GenerateStreamResponse>>;
|
|
75
77
|
/**
|
|
76
78
|
* Perform a search against a document index.
|
|
77
|
-
*
|
|
78
|
-
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
79
79
|
* @throws {@link Vellum.BadRequestError}
|
|
80
80
|
* @throws {@link Vellum.NotFoundError}
|
|
81
81
|
* @throws {@link Vellum.InternalServerError}
|
|
@@ -88,8 +88,6 @@ export declare class VellumClient {
|
|
|
88
88
|
search(request: Vellum.SearchRequestBodyRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.SearchResponse>;
|
|
89
89
|
/**
|
|
90
90
|
* Used to submit feedback regarding the quality of previously generated completions.
|
|
91
|
-
*
|
|
92
|
-
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
93
91
|
* @throws {@link Vellum.BadRequestError}
|
|
94
92
|
* @throws {@link Vellum.NotFoundError}
|
|
95
93
|
* @throws {@link Vellum.InternalServerError}
|
package/Client.js
CHANGED
|
@@ -72,7 +72,7 @@ class VellumClient {
|
|
|
72
72
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
73
73
|
.predict, "v1/execute-prompt"),
|
|
74
74
|
method: "POST",
|
|
75
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
76
76
|
contentType: "application/json",
|
|
77
77
|
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
78
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -128,7 +128,7 @@ class VellumClient {
|
|
|
128
128
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
129
129
|
.predict, "v1/execute-prompt-stream"),
|
|
130
130
|
method: "POST",
|
|
131
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
131
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
|
|
134
134
|
unrecognizedObjectKeys: "strip",
|
|
@@ -196,7 +196,7 @@ class VellumClient {
|
|
|
196
196
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
197
197
|
.predict, "v1/execute-workflow"),
|
|
198
198
|
method: "POST",
|
|
199
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
199
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
200
200
|
contentType: "application/json",
|
|
201
201
|
body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
202
202
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -250,7 +250,7 @@ class VellumClient {
|
|
|
250
250
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
251
251
|
.predict, "v1/execute-workflow-stream"),
|
|
252
252
|
method: "POST",
|
|
253
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
253
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
254
254
|
contentType: "application/json",
|
|
255
255
|
body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
|
|
256
256
|
unrecognizedObjectKeys: "strip",
|
|
@@ -306,7 +306,8 @@ class VellumClient {
|
|
|
306
306
|
/**
|
|
307
307
|
* Generate a completion using a previously defined deployment.
|
|
308
308
|
*
|
|
309
|
-
*
|
|
309
|
+
* Important: This endpoint is DEPRECATED and has been superseded by
|
|
310
|
+
* [execute-prompt](/api-reference/api-reference/execute-prompt).
|
|
310
311
|
* @throws {@link Vellum.BadRequestError}
|
|
311
312
|
* @throws {@link Vellum.ForbiddenError}
|
|
312
313
|
* @throws {@link Vellum.NotFoundError}
|
|
@@ -326,7 +327,7 @@ class VellumClient {
|
|
|
326
327
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
327
328
|
.predict, "v1/generate"),
|
|
328
329
|
method: "POST",
|
|
329
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
330
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
330
331
|
contentType: "application/json",
|
|
331
332
|
body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
332
333
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -375,7 +376,8 @@ class VellumClient {
|
|
|
375
376
|
/**
|
|
376
377
|
* Generate a stream of completions using a previously defined deployment.
|
|
377
378
|
*
|
|
378
|
-
*
|
|
379
|
+
* Important: This endpoint is DEPRECATED and has been superseded by
|
|
380
|
+
* [execute-prompt-stream](/api-reference/api-reference/execute-prompt-stream).
|
|
379
381
|
*/
|
|
380
382
|
generateStream(request, requestOptions) {
|
|
381
383
|
var _a;
|
|
@@ -384,7 +386,7 @@ class VellumClient {
|
|
|
384
386
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
385
387
|
.predict, "v1/generate-stream"),
|
|
386
388
|
method: "POST",
|
|
387
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
389
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
388
390
|
contentType: "application/json",
|
|
389
391
|
body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
390
392
|
responseType: "streaming",
|
|
@@ -439,8 +441,6 @@ class VellumClient {
|
|
|
439
441
|
}
|
|
440
442
|
/**
|
|
441
443
|
* Perform a search against a document index.
|
|
442
|
-
*
|
|
443
|
-
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
444
444
|
* @throws {@link Vellum.BadRequestError}
|
|
445
445
|
* @throws {@link Vellum.NotFoundError}
|
|
446
446
|
* @throws {@link Vellum.InternalServerError}
|
|
@@ -457,7 +457,7 @@ class VellumClient {
|
|
|
457
457
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
458
458
|
.predict, "v1/search"),
|
|
459
459
|
method: "POST",
|
|
460
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
460
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
461
461
|
contentType: "application/json",
|
|
462
462
|
body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
463
463
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -503,8 +503,6 @@ class VellumClient {
|
|
|
503
503
|
}
|
|
504
504
|
/**
|
|
505
505
|
* Used to submit feedback regarding the quality of previously generated completions.
|
|
506
|
-
*
|
|
507
|
-
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
508
506
|
* @throws {@link Vellum.BadRequestError}
|
|
509
507
|
* @throws {@link Vellum.NotFoundError}
|
|
510
508
|
* @throws {@link Vellum.InternalServerError}
|
|
@@ -521,7 +519,7 @@ class VellumClient {
|
|
|
521
519
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
522
520
|
.predict, "v1/submit-completion-actuals"),
|
|
523
521
|
method: "POST",
|
|
524
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
522
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
525
523
|
contentType: "application/json",
|
|
526
524
|
body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
|
|
527
525
|
unrecognizedObjectKeys: "strip",
|
|
@@ -579,7 +577,7 @@ class VellumClient {
|
|
|
579
577
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
580
578
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
581
579
|
method: "POST",
|
|
582
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
580
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
583
581
|
contentType: "application/json",
|
|
584
582
|
body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
585
583
|
unrecognizedObjectKeys: "strip",
|
|
@@ -70,7 +70,7 @@ class Deployments {
|
|
|
70
70
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
71
71
|
.default, "v1/deployments"),
|
|
72
72
|
method: "GET",
|
|
73
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
73
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
queryParameters: _queryParams,
|
|
76
76
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -118,7 +118,7 @@ class Deployments {
|
|
|
118
118
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
119
119
|
.default, `v1/deployments/${id}`),
|
|
120
120
|
method: "GET",
|
|
121
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
121
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
122
122
|
contentType: "application/json",
|
|
123
123
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
124
124
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -165,7 +165,7 @@ class Deployments {
|
|
|
165
165
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
166
166
|
.default, `v1/deployments/${id}/release-tags/${name}`),
|
|
167
167
|
method: "GET",
|
|
168
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
168
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
169
169
|
contentType: "application/json",
|
|
170
170
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
171
171
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -212,7 +212,7 @@ class Deployments {
|
|
|
212
212
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
213
213
|
.default, `v1/deployments/${id}/release-tags/${name}`),
|
|
214
214
|
method: "PATCH",
|
|
215
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
215
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
216
216
|
contentType: "application/json",
|
|
217
217
|
body: yield serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
218
218
|
unrecognizedObjectKeys: "strip",
|
|
@@ -267,7 +267,7 @@ class Deployments {
|
|
|
267
267
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
268
268
|
.default, "v1/deployments/provider-payload"),
|
|
269
269
|
method: "POST",
|
|
270
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
270
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
271
271
|
contentType: "application/json",
|
|
272
272
|
body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
273
273
|
unrecognizedObjectKeys: "strip",
|
|
@@ -78,7 +78,7 @@ class DocumentIndexes {
|
|
|
78
78
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
79
79
|
.default, "v1/document-indexes"),
|
|
80
80
|
method: "GET",
|
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
queryParameters: _queryParams,
|
|
84
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -123,7 +123,7 @@ class DocumentIndexes {
|
|
|
123
123
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
124
124
|
.default, "v1/document-indexes"),
|
|
125
125
|
method: "POST",
|
|
126
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
126
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
127
127
|
contentType: "application/json",
|
|
128
128
|
body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
|
|
129
129
|
unrecognizedObjectKeys: "strip",
|
|
@@ -170,7 +170,7 @@ class DocumentIndexes {
|
|
|
170
170
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
171
171
|
.default, `v1/document-indexes/${id}`),
|
|
172
172
|
method: "GET",
|
|
173
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
173
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
176
176
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -214,7 +214,7 @@ class DocumentIndexes {
|
|
|
214
214
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
215
215
|
.default, `v1/document-indexes/${id}`),
|
|
216
216
|
method: "PUT",
|
|
217
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
217
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
218
218
|
contentType: "application/json",
|
|
219
219
|
body: yield serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, {
|
|
220
220
|
unrecognizedObjectKeys: "strip",
|
|
@@ -264,7 +264,7 @@ class DocumentIndexes {
|
|
|
264
264
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
265
265
|
.default, `v1/document-indexes/${id}`),
|
|
266
266
|
method: "DELETE",
|
|
267
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
267
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
268
268
|
contentType: "application/json",
|
|
269
269
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
270
270
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -303,7 +303,7 @@ class DocumentIndexes {
|
|
|
303
303
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
304
304
|
.default, `v1/document-indexes/${id}`),
|
|
305
305
|
method: "PATCH",
|
|
306
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
306
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
307
307
|
contentType: "application/json",
|
|
308
308
|
body: yield serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
|
|
309
309
|
unrecognizedObjectKeys: "strip",
|
|
@@ -77,7 +77,7 @@ class Documents {
|
|
|
77
77
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
78
78
|
.default, "v1/documents"),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
80
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
queryParameters: _queryParams,
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -125,7 +125,7 @@ class Documents {
|
|
|
125
125
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
126
126
|
.default, `v1/documents/${id}`),
|
|
127
127
|
method: "GET",
|
|
128
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
128
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
129
129
|
contentType: "application/json",
|
|
130
130
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
131
131
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -172,7 +172,7 @@ class Documents {
|
|
|
172
172
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
173
173
|
.default, `v1/documents/${id}`),
|
|
174
174
|
method: "DELETE",
|
|
175
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
175
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
176
176
|
contentType: "application/json",
|
|
177
177
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
178
178
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -214,7 +214,7 @@ class Documents {
|
|
|
214
214
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
215
215
|
.default, `v1/documents/${id}`),
|
|
216
216
|
method: "PATCH",
|
|
217
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
217
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
218
218
|
contentType: "application/json",
|
|
219
219
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
220
220
|
unrecognizedObjectKeys: "strip",
|
|
@@ -293,7 +293,7 @@ class Documents {
|
|
|
293
293
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
294
294
|
.documents, "v1/upload-document"),
|
|
295
295
|
method: "POST",
|
|
296
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
296
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
297
297
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
298
298
|
body: _request,
|
|
299
299
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -65,7 +65,7 @@ class FolderEntities {
|
|
|
65
65
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
66
66
|
.default, `v1/folders/${folderId}/add-entity`),
|
|
67
67
|
method: "POST",
|
|
68
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
68
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
69
69
|
contentType: "application/json",
|
|
70
70
|
body: yield serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
71
71
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -55,7 +55,7 @@ class Sandboxes {
|
|
|
55
55
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
56
56
|
.default, `v1/sandboxes/${id}/prompts/${promptId}/deploy`),
|
|
57
57
|
method: "POST",
|
|
58
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
58
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
59
59
|
contentType: "application/json",
|
|
60
60
|
body: yield serializers.DeploySandboxPromptRequest.jsonOrThrow(request, {
|
|
61
61
|
unrecognizedObjectKeys: "strip",
|
|
@@ -120,7 +120,7 @@ class Sandboxes {
|
|
|
120
120
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
121
121
|
.default, `v1/sandboxes/${id}/scenarios`),
|
|
122
122
|
method: "POST",
|
|
123
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
123
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
124
124
|
contentType: "application/json",
|
|
125
125
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
126
126
|
unrecognizedObjectKeys: "strip",
|
|
@@ -170,7 +170,7 @@ class Sandboxes {
|
|
|
170
170
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
171
171
|
.default, `v1/sandboxes/${id}/scenarios/${scenarioId}`),
|
|
172
172
|
method: "DELETE",
|
|
173
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
173
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
176
176
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -58,7 +58,7 @@ class TestSuiteRuns {
|
|
|
58
58
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
59
59
|
.default, "v1/test-suite-runs"),
|
|
60
60
|
method: "POST",
|
|
61
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
61
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
62
62
|
contentType: "application/json",
|
|
63
63
|
body: yield serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
64
64
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -106,7 +106,7 @@ class TestSuiteRuns {
|
|
|
106
106
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
107
107
|
.default, `v1/test-suite-runs/${id}`),
|
|
108
108
|
method: "GET",
|
|
109
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
109
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
110
110
|
contentType: "application/json",
|
|
111
111
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
112
112
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -163,7 +163,7 @@ class TestSuiteRuns {
|
|
|
163
163
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
164
164
|
.default, `v1/test-suite-runs/${id}/executions`),
|
|
165
165
|
method: "GET",
|
|
166
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
166
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
queryParameters: _queryParams,
|
|
169
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -40,6 +40,10 @@ export declare class TestSuites {
|
|
|
40
40
|
* })
|
|
41
41
|
*/
|
|
42
42
|
upsertTestSuiteTestCase(id: string, request: Vellum.UpsertTestSuiteTestCaseRequest, requestOptions?: TestSuites.RequestOptions): Promise<Vellum.TestSuiteTestCase>;
|
|
43
|
+
/**
|
|
44
|
+
* Created, replace, and delete Test Cases within the specified Test Suite in bulk
|
|
45
|
+
*/
|
|
46
|
+
testSuiteTestCasesBulk(id: string, request: Vellum.TestSuiteTestCaseBulkOperationRequest[], requestOptions?: TestSuites.RequestOptions): Promise<core.Stream<Vellum.TestSuiteTestCaseBulkResult[]>>;
|
|
43
47
|
/**
|
|
44
48
|
* Deletes an existing test case for a test suite, keying off of the test case id.
|
|
45
49
|
*
|
|
@@ -69,7 +69,7 @@ class TestSuites {
|
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
70
|
.default, `v1/test-suites/${id}/test-cases`),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -126,7 +126,7 @@ class TestSuites {
|
|
|
126
126
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
127
127
|
.default, `v1/test-suites/${id}/test-cases`),
|
|
128
128
|
method: "POST",
|
|
129
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
129
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
130
130
|
contentType: "application/json",
|
|
131
131
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
132
132
|
unrecognizedObjectKeys: "strip",
|
|
@@ -163,6 +163,60 @@ class TestSuites {
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* Created, replace, and delete Test Cases within the specified Test Suite in bulk
|
|
168
|
+
*/
|
|
169
|
+
testSuiteTestCasesBulk(id, request, requestOptions) {
|
|
170
|
+
var _a;
|
|
171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
const _response = yield core.fetcher({
|
|
173
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
174
|
+
.default, `v1/test-suites/${id}/test-cases-bulk`),
|
|
175
|
+
method: "POST",
|
|
176
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
177
|
+
contentType: "application/json",
|
|
178
|
+
body: yield serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
|
|
179
|
+
unrecognizedObjectKeys: "strip",
|
|
180
|
+
}),
|
|
181
|
+
responseType: "streaming",
|
|
182
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
183
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
184
|
+
});
|
|
185
|
+
if (_response.ok) {
|
|
186
|
+
return new core.Stream({
|
|
187
|
+
stream: _response.body,
|
|
188
|
+
terminator: "\n",
|
|
189
|
+
parse: (data) => __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
return yield serializers.testSuites.testSuiteTestCasesBulk.StreamData.parseOrThrow(data, {
|
|
191
|
+
unrecognizedObjectKeys: "passthrough",
|
|
192
|
+
allowUnrecognizedUnionMembers: true,
|
|
193
|
+
allowUnrecognizedEnumValues: true,
|
|
194
|
+
breadcrumbsPrefix: ["response"],
|
|
195
|
+
});
|
|
196
|
+
}),
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
if (_response.error.reason === "status-code") {
|
|
200
|
+
throw new errors.VellumError({
|
|
201
|
+
statusCode: _response.error.statusCode,
|
|
202
|
+
body: _response.error.body,
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
switch (_response.error.reason) {
|
|
206
|
+
case "non-json":
|
|
207
|
+
throw new errors.VellumError({
|
|
208
|
+
statusCode: _response.error.statusCode,
|
|
209
|
+
body: _response.error.rawBody,
|
|
210
|
+
});
|
|
211
|
+
case "timeout":
|
|
212
|
+
throw new errors.VellumTimeoutError();
|
|
213
|
+
case "unknown":
|
|
214
|
+
throw new errors.VellumError({
|
|
215
|
+
message: _response.error.errorMessage,
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
}
|
|
166
220
|
/**
|
|
167
221
|
* Deletes an existing test case for a test suite, keying off of the test case id.
|
|
168
222
|
*
|
|
@@ -176,7 +230,7 @@ class TestSuites {
|
|
|
176
230
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
177
231
|
.default, `v1/test-suites/${id}/test-cases/${testCaseId}`),
|
|
178
232
|
method: "DELETE",
|
|
179
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
233
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
180
234
|
contentType: "application/json",
|
|
181
235
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
182
236
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -10,8 +10,11 @@ import * as Vellum from "../../../..";
|
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface UpsertTestSuiteTestCaseRequest {
|
|
13
|
+
/** The ID of the Test Case to upsert. If specified and a match is found, the existing Test Case will be updated. If specified and no match is found, a Test Case will be created with the provided ID. If not provided, a new Test Case will be created with an auto-generated ID. */
|
|
13
14
|
upsertTestSuiteTestCaseRequestId?: string;
|
|
14
15
|
label?: string;
|
|
16
|
+
/** Values for each of the Test Case's input variables */
|
|
15
17
|
inputValues: Vellum.NamedTestCaseVariableValueRequest[];
|
|
18
|
+
/** Values for each of the Test Case's evaluation variables */
|
|
16
19
|
evaluationValues: Vellum.NamedTestCaseVariableValueRequest[];
|
|
17
20
|
}
|
|
@@ -69,7 +69,7 @@ class WorkflowDeployments {
|
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
70
|
.default, "v1/workflow-deployments"),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -117,7 +117,7 @@ class WorkflowDeployments {
|
|
|
117
117
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
118
118
|
.default, `v1/workflow-deployments/${id}`),
|
|
119
119
|
method: "GET",
|
|
120
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
121
121
|
contentType: "application/json",
|
|
122
122
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
123
123
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -164,7 +164,7 @@ class WorkflowDeployments {
|
|
|
164
164
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
165
165
|
.default, `v1/workflow-deployments/${id}/release-tags/${name}`),
|
|
166
166
|
method: "GET",
|
|
167
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
167
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
170
170
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -211,7 +211,7 @@ class WorkflowDeployments {
|
|
|
211
211
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
212
212
|
.default, `v1/workflow-deployments/${id}/release-tags/${name}`),
|
|
213
213
|
method: "PATCH",
|
|
214
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
214
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
215
215
|
contentType: "application/json",
|
|
216
216
|
body: yield serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
217
217
|
unrecognizedObjectKeys: "strip",
|
|
@@ -55,7 +55,7 @@ class WorkflowSandboxes {
|
|
|
55
55
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
56
56
|
.default, `v1/workflow-sandboxes/${id}/workflows/${workflowId}/deploy`),
|
|
57
57
|
method: "POST",
|
|
58
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
58
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
59
59
|
contentType: "application/json",
|
|
60
60
|
body: yield serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, {
|
|
61
61
|
unrecognizedObjectKeys: "strip",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* Information about the Test Case to create
|
|
7
|
+
*/
|
|
8
|
+
export interface BulkCreateTestSuiteTestCaseDataRequest {
|
|
9
|
+
label?: string;
|
|
10
|
+
/** Values for each of the Test Case's input variables */
|
|
11
|
+
inputValues: Vellum.NamedTestCaseVariableValueRequest[];
|
|
12
|
+
/** Values for each of the Test Case's evaluation variables */
|
|
13
|
+
evaluationValues: Vellum.NamedTestCaseVariableValueRequest[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* Information about the Test Case to replace
|
|
7
|
+
*/
|
|
8
|
+
export interface BulkReplaceTestSuiteTestCaseDataRequest {
|
|
9
|
+
/** The ID of the Test Case to replace. */
|
|
10
|
+
id: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
/** Values for each of the Test Case's input variables */
|
|
13
|
+
inputValues: Vellum.NamedTestCaseVariableValueRequest[];
|
|
14
|
+
/** Values for each of the Test Case's evaluation variables */
|
|
15
|
+
evaluationValues: Vellum.NamedTestCaseVariableValueRequest[];
|
|
16
|
+
}
|