vellum-ai 0.12.14 → 0.12.16
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/.mock/definition/__package__.yml +48 -4
- package/.mock/definition/adHoc.yml +1 -4
- package/.mock/definition/api.yml +1 -1
- package/.mock/definition/containerImages.yml +0 -6
- package/.mock/definition/folderEntities.yml +1 -1
- package/.mock/definition/metricDefinitions.yml +1 -4
- package/.mock/definition/workflows.yml +3 -6
- package/.mock/openapi/openapi.yml +99 -14
- package/Client.d.ts +3 -5
- package/Client.js +12 -14
- package/api/resources/adHoc/client/Client.d.ts +3 -6
- package/api/resources/adHoc/client/Client.js +3 -6
- package/api/resources/containerImages/client/Client.d.ts +3 -7
- package/api/resources/containerImages/client/Client.js +5 -9
- package/api/resources/deployments/client/Client.d.ts +3 -3
- package/api/resources/deployments/client/Client.js +8 -8
- package/api/resources/documentIndexes/client/Client.d.ts +3 -3
- package/api/resources/documentIndexes/client/Client.js +9 -9
- package/api/resources/documents/client/Client.d.ts +3 -3
- package/api/resources/documents/client/Client.js +6 -6
- package/api/resources/folderEntities/client/Client.d.ts +3 -3
- package/api/resources/folderEntities/client/Client.js +3 -3
- package/api/resources/metricDefinitions/client/Client.d.ts +3 -5
- package/api/resources/metricDefinitions/client/Client.js +4 -6
- package/api/resources/mlModels/client/Client.d.ts +3 -3
- package/api/resources/mlModels/client/Client.js +2 -2
- package/api/resources/sandboxes/client/Client.d.ts +3 -3
- package/api/resources/sandboxes/client/Client.js +4 -4
- package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/api/resources/testSuites/client/Client.d.ts +3 -3
- package/api/resources/testSuites/client/Client.js +5 -5
- package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
- package/api/resources/workflowDeployments/client/Client.js +7 -7
- package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/resources/workflows/client/Client.d.ts +3 -6
- package/api/resources/workflows/client/Client.js +6 -6
- package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
- package/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
- package/api/resources/workspaceSecrets/client/Client.js +3 -3
- package/api/types/AudioPromptBlock.d.ts +14 -0
- package/api/types/AudioPromptBlock.js +5 -0
- package/api/types/FunctionCallPromptBlock.d.ts +15 -0
- package/api/types/FunctionCallPromptBlock.js +5 -0
- package/api/types/ImagePromptBlock.d.ts +14 -0
- package/api/types/ImagePromptBlock.js +5 -0
- package/api/types/PromptBlock.d.ts +1 -1
- package/api/types/WorkflowPushResponse.d.ts +1 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/Client.d.ts +3 -5
- package/dist/Client.js +12 -14
- package/dist/api/resources/adHoc/client/Client.d.ts +3 -6
- package/dist/api/resources/adHoc/client/Client.js +3 -6
- package/dist/api/resources/containerImages/client/Client.d.ts +3 -7
- package/dist/api/resources/containerImages/client/Client.js +5 -9
- package/dist/api/resources/deployments/client/Client.d.ts +3 -3
- package/dist/api/resources/deployments/client/Client.js +8 -8
- package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
- package/dist/api/resources/documentIndexes/client/Client.js +9 -9
- package/dist/api/resources/documents/client/Client.d.ts +3 -3
- package/dist/api/resources/documents/client/Client.js +6 -6
- package/dist/api/resources/folderEntities/client/Client.d.ts +3 -3
- package/dist/api/resources/folderEntities/client/Client.js +3 -3
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +3 -5
- package/dist/api/resources/metricDefinitions/client/Client.js +4 -6
- package/dist/api/resources/mlModels/client/Client.d.ts +3 -3
- package/dist/api/resources/mlModels/client/Client.js +2 -2
- package/dist/api/resources/sandboxes/client/Client.d.ts +3 -3
- package/dist/api/resources/sandboxes/client/Client.js +4 -4
- package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuites/client/Client.js +5 -5
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.js +7 -7
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/resources/workflows/client/Client.d.ts +3 -6
- package/dist/api/resources/workflows/client/Client.js +6 -6
- package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
- package/dist/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
- package/dist/api/resources/workspaceSecrets/client/Client.js +3 -3
- package/dist/api/types/AudioPromptBlock.d.ts +14 -0
- package/dist/api/types/AudioPromptBlock.js +5 -0
- package/dist/api/types/FunctionCallPromptBlock.d.ts +15 -0
- package/dist/api/types/FunctionCallPromptBlock.js +5 -0
- package/dist/api/types/ImagePromptBlock.d.ts +14 -0
- package/dist/api/types/ImagePromptBlock.js +5 -0
- package/dist/api/types/PromptBlock.d.ts +1 -1
- package/dist/api/types/WorkflowPushResponse.d.ts +1 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/environments.d.ts +2 -2
- package/dist/environments.js +1 -1
- package/dist/serialization/types/AudioPromptBlock.d.ts +18 -0
- package/dist/serialization/types/AudioPromptBlock.js +39 -0
- package/dist/serialization/types/FunctionCallPromptBlock.d.ts +19 -0
- package/dist/serialization/types/FunctionCallPromptBlock.js +40 -0
- package/dist/serialization/types/ImagePromptBlock.d.ts +18 -0
- package/dist/serialization/types/ImagePromptBlock.js +39 -0
- package/dist/serialization/types/PromptBlock.d.ts +4 -1
- package/dist/serialization/types/PromptBlock.js +6 -0
- package/dist/serialization/types/WorkflowPushResponse.d.ts +1 -0
- package/dist/serialization/types/WorkflowPushResponse.js +1 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +2 -2
- package/environments.js +1 -1
- package/package.json +1 -1
- package/reference.md +0 -75
- package/serialization/types/AudioPromptBlock.d.ts +18 -0
- package/serialization/types/AudioPromptBlock.js +39 -0
- package/serialization/types/FunctionCallPromptBlock.d.ts +19 -0
- package/serialization/types/FunctionCallPromptBlock.js +40 -0
- package/serialization/types/ImagePromptBlock.d.ts +18 -0
- package/serialization/types/ImagePromptBlock.js +39 -0
- package/serialization/types/PromptBlock.d.ts +4 -1
- package/serialization/types/PromptBlock.js +6 -0
- package/serialization/types/WorkflowPushResponse.d.ts +1 -0
- package/serialization/types/WorkflowPushResponse.js +1 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class Sandboxes {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -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(promptVariantId)}/deploy`),
|
|
66
66
|
method: "POST",
|
|
67
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
requestType: "json",
|
|
70
70
|
body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -151,7 +151,7 @@ class Sandboxes {
|
|
|
151
151
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
152
152
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
|
|
153
153
|
method: "POST",
|
|
154
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
154
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
155
155
|
contentType: "application/json",
|
|
156
156
|
requestType: "json",
|
|
157
157
|
body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -205,7 +205,7 @@ class Sandboxes {
|
|
|
205
205
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
206
206
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
|
|
207
207
|
method: "DELETE",
|
|
208
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
208
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
209
209
|
contentType: "application/json",
|
|
210
210
|
requestType: "json",
|
|
211
211
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace TestSuiteRuns {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace TestSuiteRuns {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class TestSuiteRuns {
|
|
22
22
|
protected readonly _options: TestSuiteRuns.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options: TestSuiteRuns.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Trigger a Test Suite and create a new Test Suite Run
|
|
26
26
|
*
|
|
@@ -58,6 +58,6 @@ export declare class TestSuiteRuns {
|
|
|
58
58
|
*/
|
|
59
59
|
listExecutions(id: string, request?: Vellum.TestSuiteRunsListExecutionsRequest, requestOptions?: TestSuiteRuns.RequestOptions): Promise<Vellum.PaginatedTestSuiteRunExecutionList>;
|
|
60
60
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
61
|
-
X_API_KEY: string
|
|
61
|
+
X_API_KEY: string;
|
|
62
62
|
}>;
|
|
63
63
|
}
|
|
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class TestSuiteRuns {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -71,7 +71,7 @@ class TestSuiteRuns {
|
|
|
71
71
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
72
72
|
.default, "v1/test-suite-runs"),
|
|
73
73
|
method: "POST",
|
|
74
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
74
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
requestType: "json",
|
|
77
77
|
body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -124,7 +124,7 @@ class TestSuiteRuns {
|
|
|
124
124
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
125
125
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
|
|
126
126
|
method: "GET",
|
|
127
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
127
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
128
128
|
contentType: "application/json",
|
|
129
129
|
requestType: "json",
|
|
130
130
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -191,7 +191,7 @@ class TestSuiteRuns {
|
|
|
191
191
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
192
192
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
|
|
193
193
|
method: "GET",
|
|
194
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
194
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
195
195
|
contentType: "application/json",
|
|
196
196
|
queryParameters: _queryParams,
|
|
197
197
|
requestType: "json",
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace TestSuites {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace TestSuites {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class TestSuites {
|
|
22
22
|
protected readonly _options: TestSuites.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options: TestSuites.Options);
|
|
24
24
|
/**
|
|
25
25
|
* List the Test Cases associated with a Test Suite
|
|
26
26
|
*
|
|
@@ -74,6 +74,6 @@ export declare class TestSuites {
|
|
|
74
74
|
*/
|
|
75
75
|
deleteTestSuiteTestCase(id: string, testCaseId: string, requestOptions?: TestSuites.RequestOptions): Promise<void>;
|
|
76
76
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
77
|
-
X_API_KEY: string
|
|
77
|
+
X_API_KEY: string;
|
|
78
78
|
}>;
|
|
79
79
|
}
|
|
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class TestSuites {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -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.12.
|
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "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
|
requestType: "json",
|
|
@@ -142,7 +142,7 @@ class TestSuites {
|
|
|
142
142
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
143
143
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
144
144
|
method: "POST",
|
|
145
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
145
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
requestType: "json",
|
|
148
148
|
body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -189,7 +189,7 @@ class TestSuites {
|
|
|
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/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
|
|
191
191
|
method: "POST",
|
|
192
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
192
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
193
193
|
contentType: "application/x-ndjson",
|
|
194
194
|
requestType: "json",
|
|
195
195
|
body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
|
|
@@ -256,7 +256,7 @@ class TestSuites {
|
|
|
256
256
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
257
257
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
|
|
258
258
|
method: "DELETE",
|
|
259
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
259
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
260
260
|
contentType: "application/json",
|
|
261
261
|
requestType: "json",
|
|
262
262
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace WorkflowDeployments {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace WorkflowDeployments {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class WorkflowDeployments {
|
|
22
22
|
protected readonly _options: WorkflowDeployments.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options: WorkflowDeployments.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Used to list all Workflow Deployments.
|
|
26
26
|
*
|
|
@@ -87,6 +87,6 @@ export declare class WorkflowDeployments {
|
|
|
87
87
|
*/
|
|
88
88
|
updateWorkflowReleaseTag(id: string, name: string, request?: Vellum.PatchedWorkflowReleaseTagUpdateRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowReleaseTagRead>;
|
|
89
89
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
90
|
-
X_API_KEY: string
|
|
90
|
+
X_API_KEY: string;
|
|
91
91
|
}>;
|
|
92
92
|
}
|
|
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class WorkflowDeployments {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -78,7 +78,7 @@ class WorkflowDeployments {
|
|
|
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/workflow-deployments"),
|
|
80
80
|
method: "GET",
|
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "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
|
requestType: "json",
|
|
@@ -131,7 +131,7 @@ class WorkflowDeployments {
|
|
|
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/workflow-deployments/${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.12.
|
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
requestType: "json",
|
|
137
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -184,7 +184,7 @@ class WorkflowDeployments {
|
|
|
184
184
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
185
185
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
|
|
186
186
|
method: "GET",
|
|
187
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
188
188
|
contentType: "application/json",
|
|
189
189
|
requestType: "json",
|
|
190
190
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -251,7 +251,7 @@ class WorkflowDeployments {
|
|
|
251
251
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
252
252
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
|
|
253
253
|
method: "GET",
|
|
254
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
254
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
255
255
|
contentType: "application/json",
|
|
256
256
|
queryParameters: _queryParams,
|
|
257
257
|
requestType: "json",
|
|
@@ -305,7 +305,7 @@ class WorkflowDeployments {
|
|
|
305
305
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
306
306
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
307
307
|
method: "GET",
|
|
308
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
308
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
309
309
|
contentType: "application/json",
|
|
310
310
|
requestType: "json",
|
|
311
311
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -359,7 +359,7 @@ class WorkflowDeployments {
|
|
|
359
359
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
360
360
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
361
361
|
method: "PATCH",
|
|
362
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
362
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
363
363
|
contentType: "application/json",
|
|
364
364
|
requestType: "json",
|
|
365
365
|
body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace WorkflowSandboxes {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace WorkflowSandboxes {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class WorkflowSandboxes {
|
|
22
22
|
protected readonly _options: WorkflowSandboxes.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options: WorkflowSandboxes.Options);
|
|
24
24
|
/**
|
|
25
25
|
* @param {string} id - A UUID string identifying this workflow sandbox.
|
|
26
26
|
* @param {string} workflowId - An ID identifying the Workflow you'd like to deploy.
|
|
@@ -32,6 +32,6 @@ export declare class WorkflowSandboxes {
|
|
|
32
32
|
*/
|
|
33
33
|
deployWorkflow(id: string, workflowId: string, request?: Vellum.DeploySandboxWorkflowRequest, requestOptions?: WorkflowSandboxes.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
|
|
34
34
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
35
|
-
X_API_KEY: string
|
|
35
|
+
X_API_KEY: string;
|
|
36
36
|
}>;
|
|
37
37
|
}
|
|
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class WorkflowSandboxes {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -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.12.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
requestType: "json",
|
|
70
70
|
body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -11,7 +11,7 @@ import { Blob } from "buffer";
|
|
|
11
11
|
export declare namespace Workflows {
|
|
12
12
|
interface Options {
|
|
13
13
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
14
|
-
apiKey
|
|
14
|
+
apiKey: core.Supplier<string>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -24,15 +24,12 @@ export declare namespace Workflows {
|
|
|
24
24
|
}
|
|
25
25
|
export declare class Workflows {
|
|
26
26
|
protected readonly _options: Workflows.Options;
|
|
27
|
-
constructor(_options
|
|
27
|
+
constructor(_options: Workflows.Options);
|
|
28
28
|
/**
|
|
29
|
-
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
30
29
|
* @throws {@link Vellum.BadRequestError}
|
|
31
30
|
*/
|
|
32
31
|
pull(id: string, request?: Vellum.WorkflowsPullRequest, requestOptions?: Workflows.RequestOptions): Promise<stream.Readable>;
|
|
33
32
|
/**
|
|
34
|
-
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
35
|
-
*
|
|
36
33
|
* @param {File | fs.ReadStream | Blob | undefined} artifact
|
|
37
34
|
* @param {Vellum.WorkflowPushRequest} request
|
|
38
35
|
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -45,6 +42,6 @@ export declare class Workflows {
|
|
|
45
42
|
*/
|
|
46
43
|
push(artifact: File | fs.ReadStream | Blob | undefined, request: Vellum.WorkflowPushRequest, requestOptions?: Workflows.RequestOptions): Promise<Vellum.WorkflowPushResponse>;
|
|
47
44
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
48
|
-
X_API_KEY: string
|
|
45
|
+
X_API_KEY: string;
|
|
49
46
|
}>;
|
|
50
47
|
}
|
|
@@ -46,11 +46,10 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
48
48
|
class Workflows {
|
|
49
|
-
constructor(_options
|
|
49
|
+
constructor(_options) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
54
53
|
* @throws {@link Vellum.BadRequestError}
|
|
55
54
|
*/
|
|
56
55
|
pull(id, request = {}, requestOptions) {
|
|
@@ -77,7 +76,7 @@ class Workflows {
|
|
|
77
76
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
78
77
|
.default, `v1/workflows/${encodeURIComponent(id)}/pull`),
|
|
79
78
|
method: "GET",
|
|
80
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
79
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
81
80
|
contentType: "application/json",
|
|
82
81
|
queryParameters: _queryParams,
|
|
83
82
|
requestType: "json",
|
|
@@ -116,8 +115,6 @@ class Workflows {
|
|
|
116
115
|
});
|
|
117
116
|
}
|
|
118
117
|
/**
|
|
119
|
-
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
120
|
-
*
|
|
121
118
|
* @param {File | fs.ReadStream | Blob | undefined} artifact
|
|
122
119
|
* @param {Vellum.WorkflowPushRequest} request
|
|
123
120
|
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -143,12 +140,15 @@ class Workflows {
|
|
|
143
140
|
if (artifact != null) {
|
|
144
141
|
yield _request.appendFile("artifact", artifact);
|
|
145
142
|
}
|
|
143
|
+
if (request.dryRun != null) {
|
|
144
|
+
yield _request.append("dry_run", request.dryRun.toString());
|
|
145
|
+
}
|
|
146
146
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
147
147
|
const _response = yield core.fetcher({
|
|
148
148
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
149
149
|
.default, "v1/workflows/push"),
|
|
150
150
|
method: "POST",
|
|
151
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
151
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
|
|
152
152
|
requestType: "file",
|
|
153
153
|
duplex: _maybeEncodedRequest.duplex,
|
|
154
154
|
body: _maybeEncodedRequest.body,
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace WorkspaceSecrets {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace WorkspaceSecrets {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class WorkspaceSecrets {
|
|
22
22
|
protected readonly _options: WorkspaceSecrets.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options: WorkspaceSecrets.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Used to retrieve a Workspace Secret given its ID or name.
|
|
26
26
|
*
|
|
@@ -43,6 +43,6 @@ export declare class WorkspaceSecrets {
|
|
|
43
43
|
*/
|
|
44
44
|
partialUpdate(id: string, request?: Vellum.PatchedWorkspaceSecretUpdateRequest, requestOptions?: WorkspaceSecrets.RequestOptions): Promise<Vellum.WorkspaceSecretRead>;
|
|
45
45
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
46
|
-
X_API_KEY: string
|
|
46
|
+
X_API_KEY: string;
|
|
47
47
|
}>;
|
|
48
48
|
}
|
|
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class WorkspaceSecrets {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -64,7 +64,7 @@ class WorkspaceSecrets {
|
|
|
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/workspace-secrets/${encodeURIComponent(id)}`),
|
|
66
66
|
method: "GET",
|
|
67
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
requestType: "json",
|
|
70
70
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -117,7 +117,7 @@ class WorkspaceSecrets {
|
|
|
117
117
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
118
118
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
119
119
|
method: "PATCH",
|
|
120
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.16", "User-Agent": "vellum-ai/0.12.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
121
121
|
contentType: "application/json",
|
|
122
122
|
requestType: "json",
|
|
123
123
|
body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A block that represents an audio file in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface AudioPromptBlock {
|
|
9
|
+
blockType: "AUDIO";
|
|
10
|
+
state?: Vellum.PromptBlockState;
|
|
11
|
+
cacheConfig?: Vellum.EphemeralPromptCacheConfig;
|
|
12
|
+
src: string;
|
|
13
|
+
metadata?: Record<string, unknown>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A block that represents a function call in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface FunctionCallPromptBlock {
|
|
9
|
+
blockType: "FUNCTION_CALL";
|
|
10
|
+
state?: Vellum.PromptBlockState;
|
|
11
|
+
cacheConfig?: Vellum.EphemeralPromptCacheConfig;
|
|
12
|
+
id?: string;
|
|
13
|
+
name: string;
|
|
14
|
+
arguments: Record<string, unknown>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A block that represents an image in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface ImagePromptBlock {
|
|
9
|
+
blockType: "IMAGE";
|
|
10
|
+
state?: Vellum.PromptBlockState;
|
|
11
|
+
cacheConfig?: Vellum.EphemeralPromptCacheConfig;
|
|
12
|
+
src: string;
|
|
13
|
+
metadata?: Record<string, unknown>;
|
|
14
|
+
}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../index";
|
|
5
|
-
export declare type PromptBlock = Vellum.JinjaPromptBlock | Vellum.ChatMessagePromptBlock | Vellum.VariablePromptBlock | Vellum.RichTextPromptBlock;
|
|
5
|
+
export declare type PromptBlock = Vellum.JinjaPromptBlock | Vellum.ChatMessagePromptBlock | Vellum.VariablePromptBlock | Vellum.RichTextPromptBlock | Vellum.AudioPromptBlock | Vellum.FunctionCallPromptBlock | Vellum.ImagePromptBlock;
|
package/api/types/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from "./ArrayVellumValue";
|
|
|
18
18
|
export * from "./ArrayVellumValueRequest";
|
|
19
19
|
export * from "./AudioChatMessageContent";
|
|
20
20
|
export * from "./AudioChatMessageContentRequest";
|
|
21
|
+
export * from "./AudioPromptBlock";
|
|
21
22
|
export * from "./AudioVariableValue";
|
|
22
23
|
export * from "./AudioVellumValue";
|
|
23
24
|
export * from "./AudioVellumValueRequest";
|
|
@@ -126,6 +127,7 @@ export * from "./FunctionCallChatMessageContentRequest";
|
|
|
126
127
|
export * from "./FunctionCallChatMessageContentValue";
|
|
127
128
|
export * from "./FunctionCallChatMessageContentValueRequest";
|
|
128
129
|
export * from "./FunctionCallInput";
|
|
130
|
+
export * from "./FunctionCallPromptBlock";
|
|
129
131
|
export * from "./FunctionCallRequest";
|
|
130
132
|
export * from "./FunctionCallVariableValue";
|
|
131
133
|
export * from "./FunctionCallVellumValue";
|
|
@@ -150,6 +152,7 @@ export * from "./HkunlpInstructorXlVectorizer";
|
|
|
150
152
|
export * from "./HkunlpInstructorXlVectorizerRequest";
|
|
151
153
|
export * from "./ImageChatMessageContent";
|
|
152
154
|
export * from "./ImageChatMessageContentRequest";
|
|
155
|
+
export * from "./ImagePromptBlock";
|
|
153
156
|
export * from "./ImageVariableValue";
|
|
154
157
|
export * from "./ImageVellumValue";
|
|
155
158
|
export * from "./ImageVellumValueRequest";
|
package/api/types/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __exportStar(require("./ArrayVellumValue"), exports);
|
|
|
34
34
|
__exportStar(require("./ArrayVellumValueRequest"), exports);
|
|
35
35
|
__exportStar(require("./AudioChatMessageContent"), exports);
|
|
36
36
|
__exportStar(require("./AudioChatMessageContentRequest"), exports);
|
|
37
|
+
__exportStar(require("./AudioPromptBlock"), exports);
|
|
37
38
|
__exportStar(require("./AudioVariableValue"), exports);
|
|
38
39
|
__exportStar(require("./AudioVellumValue"), exports);
|
|
39
40
|
__exportStar(require("./AudioVellumValueRequest"), exports);
|
|
@@ -142,6 +143,7 @@ __exportStar(require("./FunctionCallChatMessageContentRequest"), exports);
|
|
|
142
143
|
__exportStar(require("./FunctionCallChatMessageContentValue"), exports);
|
|
143
144
|
__exportStar(require("./FunctionCallChatMessageContentValueRequest"), exports);
|
|
144
145
|
__exportStar(require("./FunctionCallInput"), exports);
|
|
146
|
+
__exportStar(require("./FunctionCallPromptBlock"), exports);
|
|
145
147
|
__exportStar(require("./FunctionCallRequest"), exports);
|
|
146
148
|
__exportStar(require("./FunctionCallVariableValue"), exports);
|
|
147
149
|
__exportStar(require("./FunctionCallVellumValue"), exports);
|
|
@@ -166,6 +168,7 @@ __exportStar(require("./HkunlpInstructorXlVectorizer"), exports);
|
|
|
166
168
|
__exportStar(require("./HkunlpInstructorXlVectorizerRequest"), exports);
|
|
167
169
|
__exportStar(require("./ImageChatMessageContent"), exports);
|
|
168
170
|
__exportStar(require("./ImageChatMessageContentRequest"), exports);
|
|
171
|
+
__exportStar(require("./ImagePromptBlock"), exports);
|
|
169
172
|
__exportStar(require("./ImageVariableValue"), exports);
|
|
170
173
|
__exportStar(require("./ImageVellumValue"), exports);
|
|
171
174
|
__exportStar(require("./ImageVellumValueRequest"), exports);
|