vellum-ai 0.6.1 → 0.6.3
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 +3 -0
- package/Client.js +14 -9
- package/api/resources/deployments/client/Client.d.ts +14 -0
- package/api/resources/deployments/client/Client.js +100 -3
- package/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +11 -0
- package/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.js +5 -0
- package/api/resources/deployments/client/requests/index.d.ts +1 -0
- 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/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/sandboxes/client/Client.d.ts +1 -0
- package/api/resources/sandboxes/client/Client.js +46 -2
- package/api/resources/sandboxes/client/requests/DeploySandboxPromptRequest.d.ts +17 -0
- package/api/resources/sandboxes/client/requests/DeploySandboxPromptRequest.js +5 -0
- package/api/resources/sandboxes/client/requests/index.d.ts +1 -0
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +3 -3
- package/api/resources/workflowDeployments/client/Client.d.ts +14 -0
- package/api/resources/workflowDeployments/client/Client.js +99 -2
- package/api/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.d.ts +11 -0
- package/api/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.js +5 -0
- package/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
- package/api/resources/workflowSandboxes/client/Client.d.ts +24 -0
- package/api/resources/workflowSandboxes/client/Client.js +102 -0
- package/api/resources/workflowSandboxes/client/index.d.ts +1 -0
- package/api/resources/workflowSandboxes/client/index.js +17 -0
- package/api/resources/workflowSandboxes/client/requests/DeploySandboxWorkflowRequest.d.ts +17 -0
- package/api/resources/workflowSandboxes/client/requests/DeploySandboxWorkflowRequest.js +5 -0
- package/api/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
- package/api/resources/workflowSandboxes/client/requests/index.js +2 -0
- package/api/resources/workflowSandboxes/index.d.ts +1 -0
- package/api/resources/workflowSandboxes/index.js +17 -0
- package/api/types/DeploymentReleaseTagDeploymentHistoryItem.d.ts +7 -0
- package/api/types/DeploymentReleaseTagDeploymentHistoryItem.js +5 -0
- package/api/types/DeploymentReleaseTagRead.d.ts +17 -0
- package/api/types/DeploymentReleaseTagRead.js +5 -0
- package/api/types/ReleaseTagSource.d.ts +12 -0
- package/api/types/ReleaseTagSource.js +10 -0
- package/api/types/SubworkflowNodeResult.d.ts +2 -0
- package/api/types/SubworkflowNodeResultData.d.ts +6 -0
- package/api/types/SubworkflowNodeResultData.js +5 -0
- package/api/types/WorkflowReleaseTagRead.d.ts +17 -0
- package/api/types/WorkflowReleaseTagRead.js +5 -0
- package/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +9 -0
- package/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.js +5 -0
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +14 -9
- package/dist/api/resources/deployments/client/Client.d.ts +14 -0
- package/dist/api/resources/deployments/client/Client.js +100 -3
- package/dist/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +11 -0
- package/dist/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.js +5 -0
- package/dist/api/resources/deployments/client/requests/index.d.ts +1 -0
- 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/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/sandboxes/client/Client.d.ts +1 -0
- package/dist/api/resources/sandboxes/client/Client.js +46 -2
- package/dist/api/resources/sandboxes/client/requests/DeploySandboxPromptRequest.d.ts +17 -0
- package/dist/api/resources/sandboxes/client/requests/DeploySandboxPromptRequest.js +5 -0
- package/dist/api/resources/sandboxes/client/requests/index.d.ts +1 -0
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +14 -0
- package/dist/api/resources/workflowDeployments/client/Client.js +99 -2
- package/dist/api/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.d.ts +11 -0
- package/dist/api/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.js +5 -0
- package/dist/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +24 -0
- package/dist/api/resources/workflowSandboxes/client/Client.js +102 -0
- package/dist/api/resources/workflowSandboxes/client/index.d.ts +1 -0
- package/dist/api/resources/workflowSandboxes/client/index.js +17 -0
- package/dist/api/resources/workflowSandboxes/client/requests/DeploySandboxWorkflowRequest.d.ts +17 -0
- package/dist/api/resources/workflowSandboxes/client/requests/DeploySandboxWorkflowRequest.js +5 -0
- package/dist/api/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workflowSandboxes/client/requests/index.js +2 -0
- package/dist/api/resources/workflowSandboxes/index.d.ts +1 -0
- package/dist/api/resources/workflowSandboxes/index.js +17 -0
- package/dist/api/types/DeploymentReleaseTagDeploymentHistoryItem.d.ts +7 -0
- package/dist/api/types/DeploymentReleaseTagDeploymentHistoryItem.js +5 -0
- package/dist/api/types/DeploymentReleaseTagRead.d.ts +17 -0
- package/dist/api/types/DeploymentReleaseTagRead.js +5 -0
- package/dist/api/types/ReleaseTagSource.d.ts +12 -0
- package/dist/api/types/ReleaseTagSource.js +10 -0
- package/dist/api/types/SubworkflowNodeResult.d.ts +2 -0
- package/dist/api/types/SubworkflowNodeResultData.d.ts +6 -0
- package/dist/api/types/SubworkflowNodeResultData.js +5 -0
- package/dist/api/types/WorkflowReleaseTagRead.d.ts +17 -0
- package/dist/api/types/WorkflowReleaseTagRead.js +5 -0
- package/dist/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +9 -0
- package/dist/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.js +5 -0
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -0
- package/dist/serialization/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +12 -0
- package/dist/serialization/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.js +33 -0
- package/dist/serialization/resources/deployments/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/deployments/client/requests/index.js +3 -1
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/sandboxes/client/requests/DeploySandboxPromptRequest.d.ts +15 -0
- package/dist/serialization/resources/sandboxes/client/requests/DeploySandboxPromptRequest.js +36 -0
- package/dist/serialization/resources/sandboxes/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/sandboxes/client/requests/index.js +3 -1
- package/dist/serialization/resources/workflowDeployments/client/index.d.ts +1 -0
- package/dist/serialization/resources/workflowDeployments/client/index.js +17 -0
- package/dist/serialization/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.d.ts +12 -0
- package/dist/serialization/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.js +33 -0
- package/dist/serialization/resources/workflowDeployments/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/workflowDeployments/client/requests/index.js +5 -0
- package/dist/serialization/resources/workflowDeployments/index.d.ts +1 -0
- package/dist/serialization/resources/workflowDeployments/index.js +1 -0
- package/dist/serialization/resources/workflowSandboxes/client/index.d.ts +1 -0
- package/dist/serialization/resources/workflowSandboxes/client/index.js +17 -0
- package/dist/serialization/resources/workflowSandboxes/client/requests/DeploySandboxWorkflowRequest.d.ts +15 -0
- package/dist/serialization/resources/workflowSandboxes/client/requests/DeploySandboxWorkflowRequest.js +36 -0
- package/dist/serialization/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/workflowSandboxes/client/requests/index.js +5 -0
- package/dist/serialization/resources/workflowSandboxes/index.d.ts +1 -0
- package/dist/serialization/resources/workflowSandboxes/index.js +17 -0
- package/dist/serialization/types/DeploymentReleaseTagDeploymentHistoryItem.d.ts +13 -0
- package/dist/serialization/types/DeploymentReleaseTagDeploymentHistoryItem.js +34 -0
- package/dist/serialization/types/DeploymentReleaseTagRead.d.ts +16 -0
- package/dist/serialization/types/DeploymentReleaseTagRead.js +37 -0
- package/dist/serialization/types/ReleaseTagSource.d.ts +10 -0
- package/dist/serialization/types/ReleaseTagSource.js +31 -0
- package/dist/serialization/types/SubworkflowNodeResult.d.ts +2 -0
- package/dist/serialization/types/SubworkflowNodeResult.js +4 -1
- package/dist/serialization/types/SubworkflowNodeResultData.d.ts +12 -0
- package/dist/serialization/types/SubworkflowNodeResultData.js +33 -0
- package/dist/serialization/types/WorkflowReleaseTagRead.d.ts +16 -0
- package/dist/serialization/types/WorkflowReleaseTagRead.js +37 -0
- package/dist/serialization/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +13 -0
- package/dist/serialization/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.js +34 -0
- package/dist/serialization/types/index.d.ts +6 -0
- package/dist/serialization/types/index.js +6 -0
- package/package.json +1 -1
- package/serialization/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +12 -0
- package/serialization/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.js +33 -0
- package/serialization/resources/deployments/client/requests/index.d.ts +1 -0
- package/serialization/resources/deployments/client/requests/index.js +3 -1
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/sandboxes/client/requests/DeploySandboxPromptRequest.d.ts +15 -0
- package/serialization/resources/sandboxes/client/requests/DeploySandboxPromptRequest.js +36 -0
- package/serialization/resources/sandboxes/client/requests/index.d.ts +1 -0
- package/serialization/resources/sandboxes/client/requests/index.js +3 -1
- package/serialization/resources/workflowDeployments/client/index.d.ts +1 -0
- package/serialization/resources/workflowDeployments/client/index.js +17 -0
- package/serialization/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.d.ts +12 -0
- package/serialization/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.js +33 -0
- package/serialization/resources/workflowDeployments/client/requests/index.d.ts +1 -0
- package/serialization/resources/workflowDeployments/client/requests/index.js +5 -0
- package/serialization/resources/workflowDeployments/index.d.ts +1 -0
- package/serialization/resources/workflowDeployments/index.js +1 -0
- package/serialization/resources/workflowSandboxes/client/index.d.ts +1 -0
- package/serialization/resources/workflowSandboxes/client/index.js +17 -0
- package/serialization/resources/workflowSandboxes/client/requests/DeploySandboxWorkflowRequest.d.ts +15 -0
- package/serialization/resources/workflowSandboxes/client/requests/DeploySandboxWorkflowRequest.js +36 -0
- package/serialization/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
- package/serialization/resources/workflowSandboxes/client/requests/index.js +5 -0
- package/serialization/resources/workflowSandboxes/index.d.ts +1 -0
- package/serialization/resources/workflowSandboxes/index.js +17 -0
- package/serialization/types/DeploymentReleaseTagDeploymentHistoryItem.d.ts +13 -0
- package/serialization/types/DeploymentReleaseTagDeploymentHistoryItem.js +34 -0
- package/serialization/types/DeploymentReleaseTagRead.d.ts +16 -0
- package/serialization/types/DeploymentReleaseTagRead.js +37 -0
- package/serialization/types/ReleaseTagSource.d.ts +10 -0
- package/serialization/types/ReleaseTagSource.js +31 -0
- package/serialization/types/SubworkflowNodeResult.d.ts +2 -0
- package/serialization/types/SubworkflowNodeResult.js +4 -1
- package/serialization/types/SubworkflowNodeResultData.d.ts +12 -0
- package/serialization/types/SubworkflowNodeResultData.js +33 -0
- package/serialization/types/WorkflowReleaseTagRead.d.ts +16 -0
- package/serialization/types/WorkflowReleaseTagRead.js +37 -0
- package/serialization/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +13 -0
- package/serialization/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.js +34 -0
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.js +6 -0
package/Client.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { Sandboxes } from "./api/resources/sandboxes/client/Client";
|
|
|
12
12
|
import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
|
|
13
13
|
import { TestSuites } from "./api/resources/testSuites/client/Client";
|
|
14
14
|
import { WorkflowDeployments } from "./api/resources/workflowDeployments/client/Client";
|
|
15
|
+
import { WorkflowSandboxes } from "./api/resources/workflowSandboxes/client/Client";
|
|
15
16
|
export declare namespace VellumClient {
|
|
16
17
|
interface Options {
|
|
17
18
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
@@ -126,6 +127,8 @@ export declare class VellumClient {
|
|
|
126
127
|
get testSuites(): TestSuites;
|
|
127
128
|
protected _workflowDeployments: WorkflowDeployments | undefined;
|
|
128
129
|
get workflowDeployments(): WorkflowDeployments;
|
|
130
|
+
protected _workflowSandboxes: WorkflowSandboxes | undefined;
|
|
131
|
+
get workflowSandboxes(): WorkflowSandboxes;
|
|
129
132
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
130
133
|
X_API_KEY: string;
|
|
131
134
|
}>;
|
package/Client.js
CHANGED
|
@@ -53,6 +53,7 @@ const Client_5 = require("./api/resources/sandboxes/client/Client");
|
|
|
53
53
|
const Client_6 = require("./api/resources/testSuiteRuns/client/Client");
|
|
54
54
|
const Client_7 = require("./api/resources/testSuites/client/Client");
|
|
55
55
|
const Client_8 = require("./api/resources/workflowDeployments/client/Client");
|
|
56
|
+
const Client_9 = require("./api/resources/workflowSandboxes/client/Client");
|
|
56
57
|
class VellumClient {
|
|
57
58
|
constructor(_options) {
|
|
58
59
|
this._options = _options;
|
|
@@ -71,7 +72,7 @@ class VellumClient {
|
|
|
71
72
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
72
73
|
.predict, "v1/execute-prompt"),
|
|
73
74
|
method: "POST",
|
|
74
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
75
76
|
contentType: "application/json",
|
|
76
77
|
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
77
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -127,7 +128,7 @@ class VellumClient {
|
|
|
127
128
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
128
129
|
.predict, "v1/execute-prompt-stream"),
|
|
129
130
|
method: "POST",
|
|
130
|
-
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.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
131
132
|
contentType: "application/json",
|
|
132
133
|
body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
|
|
133
134
|
unrecognizedObjectKeys: "strip",
|
|
@@ -195,7 +196,7 @@ class VellumClient {
|
|
|
195
196
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
196
197
|
.predict, "v1/execute-workflow"),
|
|
197
198
|
method: "POST",
|
|
198
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
199
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
199
200
|
contentType: "application/json",
|
|
200
201
|
body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
201
202
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -249,7 +250,7 @@ class VellumClient {
|
|
|
249
250
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
250
251
|
.predict, "v1/execute-workflow-stream"),
|
|
251
252
|
method: "POST",
|
|
252
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
253
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
253
254
|
contentType: "application/json",
|
|
254
255
|
body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
|
|
255
256
|
unrecognizedObjectKeys: "strip",
|
|
@@ -325,7 +326,7 @@ class VellumClient {
|
|
|
325
326
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
326
327
|
.predict, "v1/generate"),
|
|
327
328
|
method: "POST",
|
|
328
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
329
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
329
330
|
contentType: "application/json",
|
|
330
331
|
body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
331
332
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -383,7 +384,7 @@ class VellumClient {
|
|
|
383
384
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
384
385
|
.predict, "v1/generate-stream"),
|
|
385
386
|
method: "POST",
|
|
386
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
387
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
387
388
|
contentType: "application/json",
|
|
388
389
|
body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
389
390
|
responseType: "streaming",
|
|
@@ -456,7 +457,7 @@ class VellumClient {
|
|
|
456
457
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
457
458
|
.predict, "v1/search"),
|
|
458
459
|
method: "POST",
|
|
459
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
460
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
460
461
|
contentType: "application/json",
|
|
461
462
|
body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
462
463
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -520,7 +521,7 @@ class VellumClient {
|
|
|
520
521
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
521
522
|
.predict, "v1/submit-completion-actuals"),
|
|
522
523
|
method: "POST",
|
|
523
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
524
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
524
525
|
contentType: "application/json",
|
|
525
526
|
body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
|
|
526
527
|
unrecognizedObjectKeys: "strip",
|
|
@@ -578,7 +579,7 @@ class VellumClient {
|
|
|
578
579
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
579
580
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
580
581
|
method: "POST",
|
|
581
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
582
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
582
583
|
contentType: "application/json",
|
|
583
584
|
body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
584
585
|
unrecognizedObjectKeys: "strip",
|
|
@@ -642,6 +643,10 @@ class VellumClient {
|
|
|
642
643
|
var _a;
|
|
643
644
|
return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_8.WorkflowDeployments(this._options)));
|
|
644
645
|
}
|
|
646
|
+
get workflowSandboxes() {
|
|
647
|
+
var _a;
|
|
648
|
+
return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_9.WorkflowSandboxes(this._options)));
|
|
649
|
+
}
|
|
645
650
|
_getCustomAuthorizationHeaders() {
|
|
646
651
|
return __awaiter(this, void 0, void 0, function* () {
|
|
647
652
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
@@ -25,6 +25,20 @@ export declare class Deployments {
|
|
|
25
25
|
* await vellum.deployments.retrieve("id")
|
|
26
26
|
*/
|
|
27
27
|
retrieve(id: string, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentRead>;
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a Deployment Release Tag by tag name, associated with a specified Deployment.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await vellum.deployments.retrieveDeploymentReleaseTag("id", "name")
|
|
33
|
+
*/
|
|
34
|
+
retrieveDeploymentReleaseTag(id: string, name: string, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentReleaseTagRead>;
|
|
35
|
+
/**
|
|
36
|
+
* Updates an existing Release Tag associated with the specified Deployment.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await vellum.deployments.updateDeploymentReleaseTag("id", "name")
|
|
40
|
+
*/
|
|
41
|
+
updateDeploymentReleaseTag(id: string, name: string, request?: Vellum.PatchedDeploymentReleaseTagUpdateRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentReleaseTagRead>;
|
|
28
42
|
/**
|
|
29
43
|
* @throws {@link Vellum.BadRequestError}
|
|
30
44
|
* @throws {@link Vellum.ForbiddenError}
|
|
@@ -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.3", "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.3", "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,
|
|
@@ -152,6 +152,103 @@ class Deployments {
|
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* Retrieve a Deployment Release Tag by tag name, associated with a specified Deployment.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* await vellum.deployments.retrieveDeploymentReleaseTag("id", "name")
|
|
160
|
+
*/
|
|
161
|
+
retrieveDeploymentReleaseTag(id, name, requestOptions) {
|
|
162
|
+
var _a;
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
const _response = yield core.fetcher({
|
|
165
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
166
|
+
.default, `v1/deployments/${id}/release-tags/${name}`),
|
|
167
|
+
method: "GET",
|
|
168
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
169
|
+
contentType: "application/json",
|
|
170
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
171
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
172
|
+
});
|
|
173
|
+
if (_response.ok) {
|
|
174
|
+
return yield serializers.DeploymentReleaseTagRead.parseOrThrow(_response.body, {
|
|
175
|
+
unrecognizedObjectKeys: "passthrough",
|
|
176
|
+
allowUnrecognizedUnionMembers: true,
|
|
177
|
+
allowUnrecognizedEnumValues: true,
|
|
178
|
+
breadcrumbsPrefix: ["response"],
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
if (_response.error.reason === "status-code") {
|
|
182
|
+
throw new errors.VellumError({
|
|
183
|
+
statusCode: _response.error.statusCode,
|
|
184
|
+
body: _response.error.body,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
switch (_response.error.reason) {
|
|
188
|
+
case "non-json":
|
|
189
|
+
throw new errors.VellumError({
|
|
190
|
+
statusCode: _response.error.statusCode,
|
|
191
|
+
body: _response.error.rawBody,
|
|
192
|
+
});
|
|
193
|
+
case "timeout":
|
|
194
|
+
throw new errors.VellumTimeoutError();
|
|
195
|
+
case "unknown":
|
|
196
|
+
throw new errors.VellumError({
|
|
197
|
+
message: _response.error.errorMessage,
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Updates an existing Release Tag associated with the specified Deployment.
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* await vellum.deployments.updateDeploymentReleaseTag("id", "name")
|
|
207
|
+
*/
|
|
208
|
+
updateDeploymentReleaseTag(id, name, request = {}, requestOptions) {
|
|
209
|
+
var _a;
|
|
210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
const _response = yield core.fetcher({
|
|
212
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
213
|
+
.default, `v1/deployments/${id}/release-tags/${name}`),
|
|
214
|
+
method: "PATCH",
|
|
215
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
216
|
+
contentType: "application/json",
|
|
217
|
+
body: yield serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
218
|
+
unrecognizedObjectKeys: "strip",
|
|
219
|
+
}),
|
|
220
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
221
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
222
|
+
});
|
|
223
|
+
if (_response.ok) {
|
|
224
|
+
return yield serializers.DeploymentReleaseTagRead.parseOrThrow(_response.body, {
|
|
225
|
+
unrecognizedObjectKeys: "passthrough",
|
|
226
|
+
allowUnrecognizedUnionMembers: true,
|
|
227
|
+
allowUnrecognizedEnumValues: true,
|
|
228
|
+
breadcrumbsPrefix: ["response"],
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
if (_response.error.reason === "status-code") {
|
|
232
|
+
throw new errors.VellumError({
|
|
233
|
+
statusCode: _response.error.statusCode,
|
|
234
|
+
body: _response.error.body,
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
switch (_response.error.reason) {
|
|
238
|
+
case "non-json":
|
|
239
|
+
throw new errors.VellumError({
|
|
240
|
+
statusCode: _response.error.statusCode,
|
|
241
|
+
body: _response.error.rawBody,
|
|
242
|
+
});
|
|
243
|
+
case "timeout":
|
|
244
|
+
throw new errors.VellumTimeoutError();
|
|
245
|
+
case "unknown":
|
|
246
|
+
throw new errors.VellumError({
|
|
247
|
+
message: _response.error.errorMessage,
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
}
|
|
155
252
|
/**
|
|
156
253
|
* @throws {@link Vellum.BadRequestError}
|
|
157
254
|
* @throws {@link Vellum.ForbiddenError}
|
|
@@ -170,7 +267,7 @@ class Deployments {
|
|
|
170
267
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
171
268
|
.default, "v1/deployments/provider-payload"),
|
|
172
269
|
method: "POST",
|
|
173
|
-
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.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
174
271
|
contentType: "application/json",
|
|
175
272
|
body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
176
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.3", "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.3", "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.3", "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.3", "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.3", "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.3", "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.3", "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.3", "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.3", "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.3", "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.3", "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.3", "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,
|
package/api/resources/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * as folderEntities from "./folderEntities";
|
|
|
9
9
|
export * as sandboxes from "./sandboxes";
|
|
10
10
|
export * as testSuiteRuns from "./testSuiteRuns";
|
|
11
11
|
export * as testSuites from "./testSuites";
|
|
12
|
+
export * as workflowSandboxes from "./workflowSandboxes";
|
|
12
13
|
export * from "./deployments/client/requests";
|
|
13
14
|
export * from "./documentIndexes/client/requests";
|
|
14
15
|
export * from "./documents/client/requests";
|
|
@@ -17,3 +18,4 @@ export * from "./sandboxes/client/requests";
|
|
|
17
18
|
export * from "./testSuiteRuns/client/requests";
|
|
18
19
|
export * from "./testSuites/client/requests";
|
|
19
20
|
export * from "./workflowDeployments/client/requests";
|
|
21
|
+
export * from "./workflowSandboxes/client/requests";
|
package/api/resources/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
|
|
29
|
+
exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
|
|
30
30
|
exports.deployments = __importStar(require("./deployments"));
|
|
31
31
|
__exportStar(require("./deployments/types"), exports);
|
|
32
32
|
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
@@ -38,6 +38,7 @@ exports.folderEntities = __importStar(require("./folderEntities"));
|
|
|
38
38
|
exports.sandboxes = __importStar(require("./sandboxes"));
|
|
39
39
|
exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
|
|
40
40
|
exports.testSuites = __importStar(require("./testSuites"));
|
|
41
|
+
exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
|
|
41
42
|
__exportStar(require("./deployments/client/requests"), exports);
|
|
42
43
|
__exportStar(require("./documentIndexes/client/requests"), exports);
|
|
43
44
|
__exportStar(require("./documents/client/requests"), exports);
|
|
@@ -46,3 +47,4 @@ __exportStar(require("./sandboxes/client/requests"), exports);
|
|
|
46
47
|
__exportStar(require("./testSuiteRuns/client/requests"), exports);
|
|
47
48
|
__exportStar(require("./testSuites/client/requests"), exports);
|
|
48
49
|
__exportStar(require("./workflowDeployments/client/requests"), exports);
|
|
50
|
+
__exportStar(require("./workflowSandboxes/client/requests"), exports);
|
|
@@ -17,6 +17,7 @@ export declare namespace Sandboxes {
|
|
|
17
17
|
export declare class Sandboxes {
|
|
18
18
|
protected readonly _options: Sandboxes.Options;
|
|
19
19
|
constructor(_options: Sandboxes.Options);
|
|
20
|
+
deployPrompt(id: string, promptId: string, request?: Vellum.DeploySandboxPromptRequest, requestOptions?: Sandboxes.RequestOptions): Promise<Vellum.DeploymentRead>;
|
|
20
21
|
/**
|
|
21
22
|
* Upserts a new scenario for a sandbox, keying off of the optionally provided scenario id.
|
|
22
23
|
*
|
|
@@ -48,6 +48,50 @@ class Sandboxes {
|
|
|
48
48
|
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
|
+
deployPrompt(id, promptId, request = {}, requestOptions) {
|
|
52
|
+
var _a;
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const _response = yield core.fetcher({
|
|
55
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
56
|
+
.default, `v1/sandboxes/${id}/prompts/${promptId}/deploy`),
|
|
57
|
+
method: "POST",
|
|
58
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
59
|
+
contentType: "application/json",
|
|
60
|
+
body: yield serializers.DeploySandboxPromptRequest.jsonOrThrow(request, {
|
|
61
|
+
unrecognizedObjectKeys: "strip",
|
|
62
|
+
}),
|
|
63
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
64
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
65
|
+
});
|
|
66
|
+
if (_response.ok) {
|
|
67
|
+
return yield serializers.DeploymentRead.parseOrThrow(_response.body, {
|
|
68
|
+
unrecognizedObjectKeys: "passthrough",
|
|
69
|
+
allowUnrecognizedUnionMembers: true,
|
|
70
|
+
allowUnrecognizedEnumValues: true,
|
|
71
|
+
breadcrumbsPrefix: ["response"],
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
if (_response.error.reason === "status-code") {
|
|
75
|
+
throw new errors.VellumError({
|
|
76
|
+
statusCode: _response.error.statusCode,
|
|
77
|
+
body: _response.error.body,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
switch (_response.error.reason) {
|
|
81
|
+
case "non-json":
|
|
82
|
+
throw new errors.VellumError({
|
|
83
|
+
statusCode: _response.error.statusCode,
|
|
84
|
+
body: _response.error.rawBody,
|
|
85
|
+
});
|
|
86
|
+
case "timeout":
|
|
87
|
+
throw new errors.VellumTimeoutError();
|
|
88
|
+
case "unknown":
|
|
89
|
+
throw new errors.VellumError({
|
|
90
|
+
message: _response.error.errorMessage,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
51
95
|
/**
|
|
52
96
|
* Upserts a new scenario for a sandbox, keying off of the optionally provided scenario id.
|
|
53
97
|
*
|
|
@@ -76,7 +120,7 @@ class Sandboxes {
|
|
|
76
120
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
77
121
|
.default, `v1/sandboxes/${id}/scenarios`),
|
|
78
122
|
method: "POST",
|
|
79
|
-
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.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
80
124
|
contentType: "application/json",
|
|
81
125
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
82
126
|
unrecognizedObjectKeys: "strip",
|
|
@@ -126,7 +170,7 @@ class Sandboxes {
|
|
|
126
170
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
127
171
|
.default, `v1/sandboxes/${id}/scenarios/${scenarioId}`),
|
|
128
172
|
method: "DELETE",
|
|
129
|
-
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.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
130
174
|
contentType: "application/json",
|
|
131
175
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
132
176
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface DeploySandboxPromptRequest {
|
|
9
|
+
/** The Vellum-generated ID of the Prompt Deployment you'd like to update. Cannot specify both this and prompt_deployment_name. Leave null to create a new Prompt Deployment. */
|
|
10
|
+
promptDeploymentId?: string;
|
|
11
|
+
/** The unique name of the Prompt Deployment you'd like to either create or update. Cannot specify both this and prompt_deployment_id. If provided and matches an existing Prompt Deployment, that Prompt Deployment will be updated. Otherwise, a new Prompt Deployment will be created. */
|
|
12
|
+
promptDeploymentName?: string;
|
|
13
|
+
/** In the event that a new Prompt Deployment is created, this will be the label it's given. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Optionally provide the release tags that you'd like to be associated with the latest release of the created/updated Prompt Deployment. */
|
|
16
|
+
releaseTags?: string[];
|
|
17
|
+
}
|
|
@@ -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.3", "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.3", "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.3", "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,
|