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
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type TestSuiteTestCaseBulkOperationRequest = Vellum.TestSuiteTestCaseBulkOperationRequest.Create | Vellum.TestSuiteTestCaseBulkOperationRequest.Replace | Vellum.TestSuiteTestCaseBulkOperationRequest.Delete;
|
|
6
|
+
export declare namespace TestSuiteTestCaseBulkOperationRequest {
|
|
7
|
+
interface Create extends Vellum.TestSuiteTestCaseCreateBulkOperationRequest {
|
|
8
|
+
type: "CREATE";
|
|
9
|
+
}
|
|
10
|
+
interface Replace extends Vellum.TestSuiteTestCaseReplaceBulkOperationRequest {
|
|
11
|
+
type: "REPLACE";
|
|
12
|
+
}
|
|
13
|
+
interface Delete extends Vellum.TestSuiteTestCaseDeleteBulkOperationRequest {
|
|
14
|
+
type: "DELETE";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type TestSuiteTestCaseBulkResult = Vellum.TestSuiteTestCaseBulkResult.Created | Vellum.TestSuiteTestCaseBulkResult.Replaced | Vellum.TestSuiteTestCaseBulkResult.Deleted | Vellum.TestSuiteTestCaseBulkResult.Rejected;
|
|
6
|
+
export declare namespace TestSuiteTestCaseBulkResult {
|
|
7
|
+
interface Created extends Vellum.TestSuiteTestCaseCreatedBulkResult {
|
|
8
|
+
type: "CREATED";
|
|
9
|
+
}
|
|
10
|
+
interface Replaced extends Vellum.TestSuiteTestCaseReplacedBulkResult {
|
|
11
|
+
type: "REPLACED";
|
|
12
|
+
}
|
|
13
|
+
interface Deleted extends Vellum.TestSuiteTestCaseDeletedBulkResult {
|
|
14
|
+
type: "DELETED";
|
|
15
|
+
}
|
|
16
|
+
interface Rejected extends Vellum.TestSuiteTestCaseRejectedBulkResult {
|
|
17
|
+
type: "REJECTED";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A bulk operation that represents the creation of a Test Case.
|
|
7
|
+
*/
|
|
8
|
+
export interface TestSuiteTestCaseCreateBulkOperationRequest {
|
|
9
|
+
/** An ID representing this specific operation. Can later be used to look up information about the operation's success in the response. */
|
|
10
|
+
id: string;
|
|
11
|
+
data: Vellum.BulkCreateTestSuiteTestCaseDataRequest;
|
|
12
|
+
}
|