vellum-ai 0.6.6 → 0.6.8
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.js +9 -9
- package/api/resources/deployments/client/Client.js +5 -5
- package/api/resources/documentIndexes/client/Client.d.ts +17 -6
- package/api/resources/documentIndexes/client/Client.js +59 -12
- 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.js +4 -4
- package/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +4 -1
- package/api/resources/workflowDeployments/client/Client.js +4 -4
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/types/{BulkCreateTestSuiteTestCaseDataRequest.d.ts → CreateTestSuiteTestCaseRequest.d.ts} +4 -1
- package/api/types/DeploymentProviderPayloadResponse.d.ts +2 -1
- package/api/types/DeploymentProviderPayloadResponsePayload.d.ts +4 -0
- package/api/types/ExecutionArrayVellumValue.d.ts +4 -1
- package/api/types/ExecutionChatHistoryVellumValue.d.ts +3 -0
- package/api/types/ExecutionErrorVellumValue.d.ts +3 -0
- package/api/types/ExecutionFunctionCallVellumValue.d.ts +3 -0
- package/api/types/ExecutionJsonVellumValue.d.ts +3 -0
- package/api/types/ExecutionNumberVellumValue.d.ts +3 -0
- package/api/types/ExecutionSearchResultsVellumValue.d.ts +3 -0
- package/api/types/ExecutionStringVellumValue.d.ts +3 -0
- package/api/types/MapEnum.d.ts +4 -0
- package/api/types/MapNodeResult.d.ts +10 -0
- package/api/types/MapNodeResultData.d.ts +6 -0
- package/api/types/MapNodeResultData.js +5 -0
- package/api/types/ReplaceTestSuiteTestCaseRequest.d.ts +19 -0
- package/api/types/ReplaceTestSuiteTestCaseRequest.js +5 -0
- package/api/types/SearchResultMeta.d.ts +1 -1
- package/api/types/SearchResultMetaRequest.d.ts +1 -1
- package/api/types/TestSuiteTestCase.d.ts +1 -0
- package/api/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +1 -1
- package/api/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +1 -1
- package/api/types/WorkflowNodeResultData.d.ts +4 -1
- package/api/types/index.d.ts +6 -2
- package/api/types/index.js +6 -2
- package/dist/Client.js +9 -9
- package/dist/api/resources/deployments/client/Client.js +5 -5
- package/dist/api/resources/documentIndexes/client/Client.d.ts +17 -6
- package/dist/api/resources/documentIndexes/client/Client.js +59 -12
- 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.js +4 -4
- package/dist/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +4 -1
- 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 → CreateTestSuiteTestCaseRequest.d.ts} +4 -1
- package/dist/api/types/CreateTestSuiteTestCaseRequest.js +5 -0
- package/dist/api/types/DeploymentProviderPayloadResponse.d.ts +2 -1
- package/dist/api/types/DeploymentProviderPayloadResponsePayload.d.ts +4 -0
- package/dist/api/types/DeploymentProviderPayloadResponsePayload.js +5 -0
- package/dist/api/types/ExecutionArrayVellumValue.d.ts +4 -1
- package/dist/api/types/ExecutionChatHistoryVellumValue.d.ts +3 -0
- package/dist/api/types/ExecutionErrorVellumValue.d.ts +3 -0
- package/dist/api/types/ExecutionFunctionCallVellumValue.d.ts +3 -0
- package/dist/api/types/ExecutionJsonVellumValue.d.ts +3 -0
- package/dist/api/types/ExecutionNumberVellumValue.d.ts +3 -0
- package/dist/api/types/ExecutionSearchResultsVellumValue.d.ts +3 -0
- package/dist/api/types/ExecutionStringVellumValue.d.ts +3 -0
- package/dist/api/types/MapEnum.d.ts +4 -0
- package/dist/api/types/MapEnum.js +5 -0
- package/dist/api/types/MapNodeResult.d.ts +10 -0
- package/dist/api/types/MapNodeResult.js +5 -0
- package/dist/api/types/MapNodeResultData.d.ts +6 -0
- package/dist/api/types/MapNodeResultData.js +5 -0
- package/dist/api/types/ReplaceTestSuiteTestCaseRequest.d.ts +19 -0
- package/dist/api/types/ReplaceTestSuiteTestCaseRequest.js +5 -0
- package/dist/api/types/SearchResultMeta.d.ts +1 -1
- package/dist/api/types/SearchResultMetaRequest.d.ts +1 -1
- package/dist/api/types/TestSuiteTestCase.d.ts +1 -0
- package/dist/api/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +1 -1
- package/dist/api/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +1 -1
- package/dist/api/types/WorkflowNodeResultData.d.ts +4 -1
- package/dist/api/types/index.d.ts +6 -2
- package/dist/api/types/index.js +6 -2
- package/dist/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +1 -0
- package/dist/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.js +1 -0
- package/dist/serialization/types/{BulkCreateTestSuiteTestCaseDataRequest.d.ts → CreateTestSuiteTestCaseRequest.d.ts} +3 -2
- package/dist/serialization/types/{BulkCreateTestSuiteTestCaseDataRequest.js → CreateTestSuiteTestCaseRequest.js} +3 -2
- package/dist/serialization/types/DeploymentProviderPayloadResponse.d.ts +2 -1
- package/dist/serialization/types/DeploymentProviderPayloadResponse.js +2 -1
- package/dist/serialization/types/DeploymentProviderPayloadResponsePayload.d.ts +10 -0
- package/dist/serialization/types/DeploymentProviderPayloadResponsePayload.js +34 -0
- package/dist/serialization/types/ExecutionArrayVellumValue.d.ts +2 -2
- package/dist/serialization/types/ExecutionArrayVellumValue.js +2 -2
- package/dist/serialization/types/MapEnum.d.ts +10 -0
- package/dist/serialization/types/MapEnum.js +31 -0
- package/dist/serialization/types/MapNodeResult.d.ts +13 -0
- package/dist/serialization/types/MapNodeResult.js +34 -0
- package/dist/serialization/types/MapNodeResultData.d.ts +12 -0
- package/dist/serialization/types/MapNodeResultData.js +33 -0
- package/dist/serialization/types/{BulkReplaceTestSuiteTestCaseDataRequest.d.ts → ReplaceTestSuiteTestCaseRequest.d.ts} +4 -3
- package/{serialization/types/BulkCreateTestSuiteTestCaseDataRequest.js → dist/serialization/types/ReplaceTestSuiteTestCaseRequest.js} +4 -2
- package/dist/serialization/types/SearchResultMeta.d.ts +1 -1
- package/dist/serialization/types/SearchResultMeta.js +1 -1
- package/dist/serialization/types/SearchResultMetaRequest.d.ts +1 -1
- package/dist/serialization/types/SearchResultMetaRequest.js +1 -1
- package/dist/serialization/types/TestSuiteTestCase.d.ts +1 -0
- package/dist/serialization/types/TestSuiteTestCase.js +1 -0
- package/dist/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +2 -2
- package/dist/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.js +2 -2
- package/dist/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +2 -2
- package/dist/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.js +2 -2
- package/dist/serialization/types/WorkflowNodeResultData.d.ts +5 -1
- package/dist/serialization/types/WorkflowNodeResultData.js +2 -0
- package/dist/serialization/types/index.d.ts +6 -2
- package/dist/serialization/types/index.js +6 -2
- package/package.json +1 -1
- package/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +1 -0
- package/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.js +1 -0
- package/serialization/types/{BulkCreateTestSuiteTestCaseDataRequest.d.ts → CreateTestSuiteTestCaseRequest.d.ts} +3 -2
- package/{dist/serialization/types/BulkReplaceTestSuiteTestCaseDataRequest.js → serialization/types/CreateTestSuiteTestCaseRequest.js} +3 -3
- package/serialization/types/DeploymentProviderPayloadResponse.d.ts +2 -1
- package/serialization/types/DeploymentProviderPayloadResponse.js +2 -1
- package/serialization/types/DeploymentProviderPayloadResponsePayload.d.ts +10 -0
- package/serialization/types/DeploymentProviderPayloadResponsePayload.js +34 -0
- package/serialization/types/ExecutionArrayVellumValue.d.ts +2 -2
- package/serialization/types/ExecutionArrayVellumValue.js +2 -2
- package/serialization/types/MapEnum.d.ts +10 -0
- package/serialization/types/MapEnum.js +31 -0
- package/serialization/types/MapNodeResult.d.ts +13 -0
- package/serialization/types/MapNodeResult.js +34 -0
- package/serialization/types/MapNodeResultData.d.ts +12 -0
- package/serialization/types/MapNodeResultData.js +33 -0
- package/serialization/types/{BulkReplaceTestSuiteTestCaseDataRequest.d.ts → ReplaceTestSuiteTestCaseRequest.d.ts} +4 -3
- package/serialization/types/{BulkReplaceTestSuiteTestCaseDataRequest.js → ReplaceTestSuiteTestCaseRequest.js} +4 -3
- package/serialization/types/SearchResultMeta.d.ts +1 -1
- package/serialization/types/SearchResultMeta.js +1 -1
- package/serialization/types/SearchResultMetaRequest.d.ts +1 -1
- package/serialization/types/SearchResultMetaRequest.js +1 -1
- package/serialization/types/TestSuiteTestCase.d.ts +1 -0
- package/serialization/types/TestSuiteTestCase.js +1 -0
- package/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +2 -2
- package/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.js +2 -2
- package/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +2 -2
- package/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.js +2 -2
- package/serialization/types/WorkflowNodeResultData.d.ts +5 -1
- package/serialization/types/WorkflowNodeResultData.js +2 -0
- package/serialization/types/index.d.ts +6 -2
- package/serialization/types/index.js +6 -2
- package/api/types/BulkReplaceTestSuiteTestCaseDataRequest.d.ts +0 -16
- package/dist/api/types/BulkReplaceTestSuiteTestCaseDataRequest.d.ts +0 -16
- /package/api/types/{BulkCreateTestSuiteTestCaseDataRequest.js → CreateTestSuiteTestCaseRequest.js} +0 -0
- /package/api/types/{BulkReplaceTestSuiteTestCaseDataRequest.js → DeploymentProviderPayloadResponsePayload.js} +0 -0
- /package/{dist/api/types/BulkCreateTestSuiteTestCaseDataRequest.js → api/types/MapEnum.js} +0 -0
- /package/{dist/api/types/BulkReplaceTestSuiteTestCaseDataRequest.js → api/types/MapNodeResult.js} +0 -0
package/Client.js
CHANGED
|
@@ -116,7 +116,7 @@ class VellumClient {
|
|
|
116
116
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
117
117
|
.predict, "v1/execute-prompt"),
|
|
118
118
|
method: "POST",
|
|
119
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
119
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
120
120
|
contentType: "application/json",
|
|
121
121
|
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
122
122
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -173,7 +173,7 @@ class VellumClient {
|
|
|
173
173
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
174
174
|
.predict, "v1/execute-prompt-stream"),
|
|
175
175
|
method: "POST",
|
|
176
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
176
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
177
177
|
contentType: "application/json",
|
|
178
178
|
body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
|
|
179
179
|
unrecognizedObjectKeys: "strip",
|
|
@@ -263,7 +263,7 @@ class VellumClient {
|
|
|
263
263
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
264
264
|
.predict, "v1/execute-workflow"),
|
|
265
265
|
method: "POST",
|
|
266
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
266
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
267
267
|
contentType: "application/json",
|
|
268
268
|
body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
269
269
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -318,7 +318,7 @@ class VellumClient {
|
|
|
318
318
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
319
319
|
.predict, "v1/execute-workflow-stream"),
|
|
320
320
|
method: "POST",
|
|
321
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
321
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
322
322
|
contentType: "application/json",
|
|
323
323
|
body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
|
|
324
324
|
unrecognizedObjectKeys: "strip",
|
|
@@ -404,7 +404,7 @@ class VellumClient {
|
|
|
404
404
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
405
405
|
.predict, "v1/generate"),
|
|
406
406
|
method: "POST",
|
|
407
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
407
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
408
408
|
contentType: "application/json",
|
|
409
409
|
body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
410
410
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -464,7 +464,7 @@ class VellumClient {
|
|
|
464
464
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
465
465
|
.predict, "v1/generate-stream"),
|
|
466
466
|
method: "POST",
|
|
467
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
467
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
468
468
|
contentType: "application/json",
|
|
469
469
|
body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
470
470
|
responseType: "streaming",
|
|
@@ -544,7 +544,7 @@ class VellumClient {
|
|
|
544
544
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
545
545
|
.predict, "v1/search"),
|
|
546
546
|
method: "POST",
|
|
547
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
547
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
548
548
|
contentType: "application/json",
|
|
549
549
|
body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
550
550
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -611,7 +611,7 @@ class VellumClient {
|
|
|
611
611
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
612
612
|
.predict, "v1/submit-completion-actuals"),
|
|
613
613
|
method: "POST",
|
|
614
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
614
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
615
615
|
contentType: "application/json",
|
|
616
616
|
body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
|
|
617
617
|
unrecognizedObjectKeys: "strip",
|
|
@@ -673,7 +673,7 @@ class VellumClient {
|
|
|
673
673
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
674
674
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
675
675
|
method: "POST",
|
|
676
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
676
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
677
677
|
contentType: "application/json",
|
|
678
678
|
body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
679
679
|
unrecognizedObjectKeys: "strip",
|
|
@@ -77,7 +77,7 @@ class Deployments {
|
|
|
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/deployments"),
|
|
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.8", "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,
|
|
@@ -129,7 +129,7 @@ class Deployments {
|
|
|
129
129
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
130
130
|
.default, `v1/deployments/${encodeURIComponent(id)}`),
|
|
131
131
|
method: "GET",
|
|
132
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
132
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
133
133
|
contentType: "application/json",
|
|
134
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
135
135
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -181,7 +181,7 @@ class Deployments {
|
|
|
181
181
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
182
182
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
183
183
|
method: "GET",
|
|
184
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
184
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
185
185
|
contentType: "application/json",
|
|
186
186
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
187
187
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -234,7 +234,7 @@ class Deployments {
|
|
|
234
234
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
235
235
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
236
236
|
method: "PATCH",
|
|
237
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
237
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
238
238
|
contentType: "application/json",
|
|
239
239
|
body: yield serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
240
240
|
unrecognizedObjectKeys: "strip",
|
|
@@ -293,7 +293,7 @@ class Deployments {
|
|
|
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
|
.default, "v1/deployments/provider-payload"),
|
|
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.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
297
297
|
contentType: "application/json",
|
|
298
298
|
body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
299
299
|
unrecognizedObjectKeys: "strip",
|
|
@@ -63,9 +63,9 @@ export declare class DocumentIndexes {
|
|
|
63
63
|
*/
|
|
64
64
|
retrieve(id: string, requestOptions?: DocumentIndexes.RequestOptions): Promise<Vellum.DocumentIndexRead>;
|
|
65
65
|
/**
|
|
66
|
-
* Used to fully update a Document Index given its ID.
|
|
66
|
+
* Used to fully update a Document Index given its ID or name.
|
|
67
67
|
*
|
|
68
|
-
* @param {string} id -
|
|
68
|
+
* @param {string} id - Either the Document Index's ID or its unique name
|
|
69
69
|
* @param {Vellum.DocumentIndexUpdateRequest} request
|
|
70
70
|
* @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
71
|
*
|
|
@@ -78,9 +78,9 @@ export declare class DocumentIndexes {
|
|
|
78
78
|
*/
|
|
79
79
|
update(id: string, request: Vellum.DocumentIndexUpdateRequest, requestOptions?: DocumentIndexes.RequestOptions): Promise<Vellum.DocumentIndexRead>;
|
|
80
80
|
/**
|
|
81
|
-
* Used to delete a Document Index given its ID.
|
|
81
|
+
* Used to delete a Document Index given its ID or name.
|
|
82
82
|
*
|
|
83
|
-
* @param {string} id -
|
|
83
|
+
* @param {string} id - Either the Document Index's ID or its unique name
|
|
84
84
|
* @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
@@ -88,9 +88,9 @@ export declare class DocumentIndexes {
|
|
|
88
88
|
*/
|
|
89
89
|
destroy(id: string, requestOptions?: DocumentIndexes.RequestOptions): Promise<void>;
|
|
90
90
|
/**
|
|
91
|
-
* Used to partial update a Document Index given its ID.
|
|
91
|
+
* Used to partial update a Document Index given its ID or name.
|
|
92
92
|
*
|
|
93
|
-
* @param {string} id -
|
|
93
|
+
* @param {string} id - Either the Document Index's ID or its unique name
|
|
94
94
|
* @param {Vellum.PatchedDocumentIndexUpdateRequest} request
|
|
95
95
|
* @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
96
|
*
|
|
@@ -102,6 +102,17 @@ export declare class DocumentIndexes {
|
|
|
102
102
|
* })
|
|
103
103
|
*/
|
|
104
104
|
partialUpdate(id: string, request?: Vellum.PatchedDocumentIndexUpdateRequest, requestOptions?: DocumentIndexes.RequestOptions): Promise<Vellum.DocumentIndexRead>;
|
|
105
|
+
/**
|
|
106
|
+
* Removes a Document from a Document Index without deleting the Document itself.
|
|
107
|
+
*
|
|
108
|
+
* @param {string} documentId - Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to remove.
|
|
109
|
+
* @param {string} id - Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index from which you'd like to remove a Document.
|
|
110
|
+
* @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* await vellum.documentIndexes.removeDocument("document_id", "id")
|
|
114
|
+
*/
|
|
115
|
+
removeDocument(documentId: string, id: string, requestOptions?: DocumentIndexes.RequestOptions): Promise<void>;
|
|
105
116
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
106
117
|
X_API_KEY: string;
|
|
107
118
|
}>;
|
|
@@ -81,7 +81,7 @@ class DocumentIndexes {
|
|
|
81
81
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
82
82
|
.default, "v1/document-indexes"),
|
|
83
83
|
method: "GET",
|
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
queryParameters: _queryParams,
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -147,7 +147,7 @@ class DocumentIndexes {
|
|
|
147
147
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
148
148
|
.default, "v1/document-indexes"),
|
|
149
149
|
method: "POST",
|
|
150
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
150
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
151
151
|
contentType: "application/json",
|
|
152
152
|
body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
|
|
153
153
|
unrecognizedObjectKeys: "strip",
|
|
@@ -201,7 +201,7 @@ class DocumentIndexes {
|
|
|
201
201
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
202
202
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
203
203
|
method: "GET",
|
|
204
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
204
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
207
207
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -237,9 +237,9 @@ class DocumentIndexes {
|
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
/**
|
|
240
|
-
* Used to fully update a Document Index given its ID.
|
|
240
|
+
* Used to fully update a Document Index given its ID or name.
|
|
241
241
|
*
|
|
242
|
-
* @param {string} id -
|
|
242
|
+
* @param {string} id - Either the Document Index's ID or its unique name
|
|
243
243
|
* @param {Vellum.DocumentIndexUpdateRequest} request
|
|
244
244
|
* @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration.
|
|
245
245
|
*
|
|
@@ -257,7 +257,7 @@ class DocumentIndexes {
|
|
|
257
257
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
258
258
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
259
259
|
method: "PUT",
|
|
260
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
260
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
261
261
|
contentType: "application/json",
|
|
262
262
|
body: yield serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, {
|
|
263
263
|
unrecognizedObjectKeys: "strip",
|
|
@@ -296,9 +296,9 @@ class DocumentIndexes {
|
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
299
|
-
* Used to delete a Document Index given its ID.
|
|
299
|
+
* Used to delete a Document Index given its ID or name.
|
|
300
300
|
*
|
|
301
|
-
* @param {string} id -
|
|
301
|
+
* @param {string} id - Either the Document Index's ID or its unique name
|
|
302
302
|
* @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration.
|
|
303
303
|
*
|
|
304
304
|
* @example
|
|
@@ -311,7 +311,7 @@ class DocumentIndexes {
|
|
|
311
311
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
312
312
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
313
313
|
method: "DELETE",
|
|
314
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
314
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
315
315
|
contentType: "application/json",
|
|
316
316
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
317
317
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -342,9 +342,9 @@ class DocumentIndexes {
|
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
344
|
/**
|
|
345
|
-
* Used to partial update a Document Index given its ID.
|
|
345
|
+
* Used to partial update a Document Index given its ID or name.
|
|
346
346
|
*
|
|
347
|
-
* @param {string} id -
|
|
347
|
+
* @param {string} id - Either the Document Index's ID or its unique name
|
|
348
348
|
* @param {Vellum.PatchedDocumentIndexUpdateRequest} request
|
|
349
349
|
* @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration.
|
|
350
350
|
*
|
|
@@ -362,7 +362,7 @@ class DocumentIndexes {
|
|
|
362
362
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
363
363
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
364
364
|
method: "PATCH",
|
|
365
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
365
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
366
366
|
contentType: "application/json",
|
|
367
367
|
body: yield serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
|
|
368
368
|
unrecognizedObjectKeys: "strip",
|
|
@@ -400,6 +400,53 @@ class DocumentIndexes {
|
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* Removes a Document from a Document Index without deleting the Document itself.
|
|
405
|
+
*
|
|
406
|
+
* @param {string} documentId - Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to remove.
|
|
407
|
+
* @param {string} id - Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index from which you'd like to remove a Document.
|
|
408
|
+
* @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration.
|
|
409
|
+
*
|
|
410
|
+
* @example
|
|
411
|
+
* await vellum.documentIndexes.removeDocument("document_id", "id")
|
|
412
|
+
*/
|
|
413
|
+
removeDocument(documentId, id, requestOptions) {
|
|
414
|
+
var _a;
|
|
415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
416
|
+
const _response = yield core.fetcher({
|
|
417
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
418
|
+
.default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
|
|
419
|
+
method: "DELETE",
|
|
420
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
421
|
+
contentType: "application/json",
|
|
422
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
423
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
424
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
425
|
+
});
|
|
426
|
+
if (_response.ok) {
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
if (_response.error.reason === "status-code") {
|
|
430
|
+
throw new errors.VellumError({
|
|
431
|
+
statusCode: _response.error.statusCode,
|
|
432
|
+
body: _response.error.body,
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
switch (_response.error.reason) {
|
|
436
|
+
case "non-json":
|
|
437
|
+
throw new errors.VellumError({
|
|
438
|
+
statusCode: _response.error.statusCode,
|
|
439
|
+
body: _response.error.rawBody,
|
|
440
|
+
});
|
|
441
|
+
case "timeout":
|
|
442
|
+
throw new errors.VellumTimeoutError();
|
|
443
|
+
case "unknown":
|
|
444
|
+
throw new errors.VellumError({
|
|
445
|
+
message: _response.error.errorMessage,
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
}
|
|
403
450
|
_getCustomAuthorizationHeaders() {
|
|
404
451
|
return __awaiter(this, void 0, void 0, function* () {
|
|
405
452
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
@@ -79,7 +79,7 @@ class Documents {
|
|
|
79
79
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
80
80
|
.default, "v1/documents"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
85
85
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -131,7 +131,7 @@ class Documents {
|
|
|
131
131
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
132
132
|
.default, `v1/documents/${encodeURIComponent(id)}`),
|
|
133
133
|
method: "GET",
|
|
134
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
137
137
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -182,7 +182,7 @@ class Documents {
|
|
|
182
182
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
183
183
|
.default, `v1/documents/${encodeURIComponent(id)}`),
|
|
184
184
|
method: "DELETE",
|
|
185
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
185
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
186
186
|
contentType: "application/json",
|
|
187
187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
188
188
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -229,7 +229,7 @@ class Documents {
|
|
|
229
229
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
230
230
|
.default, `v1/documents/${encodeURIComponent(id)}`),
|
|
231
231
|
method: "PATCH",
|
|
232
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
232
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
233
233
|
contentType: "application/json",
|
|
234
234
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
235
235
|
unrecognizedObjectKeys: "strip",
|
|
@@ -320,7 +320,7 @@ class Documents {
|
|
|
320
320
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
321
321
|
.documents, "v1/upload-document"),
|
|
322
322
|
method: "POST",
|
|
323
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
323
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
|
|
324
324
|
body: yield _maybeEncodedRequest.getBody(),
|
|
325
325
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
326
326
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -69,7 +69,7 @@ class FolderEntities {
|
|
|
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/folders/${encodeURIComponent(folderId)}/add-entity`),
|
|
71
71
|
method: "POST",
|
|
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.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
body: yield serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -64,7 +64,7 @@ class Sandboxes {
|
|
|
64
64
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
65
65
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptId)}/deploy`),
|
|
66
66
|
method: "POST",
|
|
67
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
body: yield serializers.DeploySandboxPromptRequest.jsonOrThrow(request, {
|
|
70
70
|
unrecognizedObjectKeys: "strip",
|
|
@@ -134,7 +134,7 @@ class Sandboxes {
|
|
|
134
134
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
135
135
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
|
|
136
136
|
method: "POST",
|
|
137
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
137
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
140
140
|
unrecognizedObjectKeys: "strip",
|
|
@@ -189,7 +189,7 @@ class Sandboxes {
|
|
|
189
189
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
190
190
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
|
|
191
191
|
method: "DELETE",
|
|
192
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
192
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
193
193
|
contentType: "application/json",
|
|
194
194
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
195
195
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -74,7 +74,7 @@ class TestSuiteRuns {
|
|
|
74
74
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
75
75
|
.default, "v1/test-suite-runs"),
|
|
76
76
|
method: "POST",
|
|
77
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
77
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
body: yield serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -126,7 +126,7 @@ class TestSuiteRuns {
|
|
|
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-suite-runs/${encodeURIComponent(id)}`),
|
|
128
128
|
method: "GET",
|
|
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.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
130
130
|
contentType: "application/json",
|
|
131
131
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
132
132
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -192,7 +192,7 @@ class TestSuiteRuns {
|
|
|
192
192
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
193
193
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
|
|
194
194
|
method: "GET",
|
|
195
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
195
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
196
196
|
contentType: "application/json",
|
|
197
197
|
queryParameters: _queryParams,
|
|
198
198
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -73,7 +73,7 @@ class TestSuites {
|
|
|
73
73
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
74
74
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
queryParameters: _queryParams,
|
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -135,7 +135,7 @@ class TestSuites {
|
|
|
135
135
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
136
136
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
137
137
|
method: "POST",
|
|
138
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
138
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
139
139
|
contentType: "application/json",
|
|
140
140
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
141
141
|
unrecognizedObjectKeys: "strip",
|
|
@@ -183,7 +183,7 @@ class TestSuites {
|
|
|
183
183
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
184
184
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
|
|
185
185
|
method: "POST",
|
|
186
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
186
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
187
187
|
contentType: "application/json",
|
|
188
188
|
body: yield serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
|
|
189
189
|
unrecognizedObjectKeys: "strip",
|
|
@@ -249,7 +249,7 @@ class TestSuites {
|
|
|
249
249
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
250
250
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
|
|
251
251
|
method: "DELETE",
|
|
252
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
252
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
253
253
|
contentType: "application/json",
|
|
254
254
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
255
255
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -10,8 +10,11 @@ import * as Vellum from "../../../../index";
|
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface UpsertTestSuiteTestCaseRequest {
|
|
13
|
-
/** The ID of
|
|
13
|
+
/** The Vellum-generated ID of an existing Test Case whose data you'd like to replace. If specified and no Test Case exists with this ID, a 404 will be returned. */
|
|
14
14
|
upsertTestSuiteTestCaseRequestId?: string;
|
|
15
|
+
/** An ID external to Vellum that uniquely identifies the Test Case that you'd like to create/update. If there's a match on a Test Case that was previously created with the same external_id, it will be updated. Otherwise, a new Test Case will be created with this value as its external_id. If no external_id is specified, then a new Test Case will always be created. */
|
|
16
|
+
externalId?: string;
|
|
17
|
+
/** A human-readable label used to convey the intention of this Test Case */
|
|
15
18
|
label?: string;
|
|
16
19
|
/** Values for each of the Test Case's input variables */
|
|
17
20
|
inputValues: Vellum.NamedTestCaseVariableValueRequest[];
|
|
@@ -76,7 +76,7 @@ class WorkflowDeployments {
|
|
|
76
76
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
77
77
|
.default, "v1/workflow-deployments"),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
79
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
queryParameters: _queryParams,
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -128,7 +128,7 @@ class WorkflowDeployments {
|
|
|
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
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
|
|
130
130
|
method: "GET",
|
|
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.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
134
134
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -180,7 +180,7 @@ class WorkflowDeployments {
|
|
|
180
180
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
181
181
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
182
182
|
method: "GET",
|
|
183
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
183
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
184
184
|
contentType: "application/json",
|
|
185
185
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
186
186
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -233,7 +233,7 @@ class WorkflowDeployments {
|
|
|
233
233
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
234
234
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
235
235
|
method: "PATCH",
|
|
236
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
236
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
237
237
|
contentType: "application/json",
|
|
238
238
|
body: yield serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
239
239
|
unrecognizedObjectKeys: "strip",
|
|
@@ -64,7 +64,7 @@ class WorkflowSandboxes {
|
|
|
64
64
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
65
65
|
.default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
|
|
66
66
|
method: "POST",
|
|
67
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
body: yield serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, {
|
|
70
70
|
unrecognizedObjectKeys: "strip",
|
|
@@ -5,10 +5,13 @@ import * as Vellum from "../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* Information about the Test Case to create
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface CreateTestSuiteTestCaseRequest {
|
|
9
|
+
/** A human-readable label used to convey the intention of this Test Case */
|
|
9
10
|
label?: string;
|
|
10
11
|
/** Values for each of the Test Case's input variables */
|
|
11
12
|
inputValues: Vellum.NamedTestCaseVariableValueRequest[];
|
|
12
13
|
/** Values for each of the Test Case's evaluation variables */
|
|
13
14
|
evaluationValues: Vellum.NamedTestCaseVariableValueRequest[];
|
|
15
|
+
/** Optionally provide an ID that uniquely identifies this Test Case in your system. Useful for updating this Test Cases data after initial creation. Cannot be changed later. */
|
|
16
|
+
externalId?: string;
|
|
14
17
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
4
5
|
export interface DeploymentProviderPayloadResponse {
|
|
5
|
-
payload:
|
|
6
|
+
payload: Vellum.DeploymentProviderPayloadResponsePayload;
|
|
6
7
|
}
|