vellum-ai 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/__package__.yml +57 -3
- package/.mock/definition/containerImages.yml +20 -0
- package/.mock/definition/workflows.yml +22 -2
- package/.mock/openapi/openapi.yml +137 -1
- package/Client.js +10 -10
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/containerImages/client/Client.d.ts +9 -0
- package/api/resources/containerImages/client/Client.js +54 -3
- package/api/resources/deployments/client/Client.js +5 -5
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/metricDefinitions/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +4 -4
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.d.ts +6 -0
- package/api/resources/workflows/client/Client.js +44 -2
- package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/types/ArrayVariableValueItem.d.ts +1 -1
- package/api/types/AudioVariableValue.d.ts +11 -0
- package/api/types/AudioVariableValue.js +5 -0
- package/api/types/AudioVellumValue.d.ts +11 -0
- package/api/types/AudioVellumValue.js +5 -0
- package/api/types/AudioVellumValueRequest.d.ts +11 -0
- package/api/types/AudioVellumValueRequest.js +5 -0
- package/api/types/DockerServiceToken.d.ts +8 -0
- package/api/types/DockerServiceToken.js +5 -0
- package/api/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/api/types/VellumAudio.d.ts +1 -0
- package/api/types/VellumAudioRequest.d.ts +1 -0
- package/api/types/VellumValue.d.ts +1 -1
- package/api/types/VellumValueRequest.d.ts +1 -1
- package/api/types/WorkflowPushDeploymentConfigRequest.d.ts +9 -0
- package/api/types/WorkflowPushDeploymentConfigRequest.js +5 -0
- package/api/types/WorkflowPushResponse.d.ts +1 -0
- package/api/types/index.d.ts +5 -0
- package/api/types/index.js +5 -0
- package/dist/Client.js +10 -10
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/containerImages/client/Client.d.ts +9 -0
- package/dist/api/resources/containerImages/client/Client.js +54 -3
- package/dist/api/resources/deployments/client/Client.js +5 -5
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.d.ts +6 -0
- package/dist/api/resources/workflows/client/Client.js +44 -2
- package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/types/ArrayVariableValueItem.d.ts +1 -1
- package/dist/api/types/AudioVariableValue.d.ts +11 -0
- package/dist/api/types/AudioVariableValue.js +5 -0
- package/dist/api/types/AudioVellumValue.d.ts +11 -0
- package/dist/api/types/AudioVellumValue.js +5 -0
- package/dist/api/types/AudioVellumValueRequest.d.ts +11 -0
- package/dist/api/types/AudioVellumValueRequest.js +5 -0
- package/dist/api/types/DockerServiceToken.d.ts +8 -0
- package/dist/api/types/DockerServiceToken.js +5 -0
- package/dist/api/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/dist/api/types/VellumAudio.d.ts +1 -0
- package/dist/api/types/VellumAudioRequest.d.ts +1 -0
- package/dist/api/types/VellumValue.d.ts +1 -1
- package/dist/api/types/VellumValueRequest.d.ts +1 -1
- package/dist/api/types/WorkflowPushDeploymentConfigRequest.d.ts +9 -0
- package/dist/api/types/WorkflowPushDeploymentConfigRequest.js +5 -0
- package/dist/api/types/WorkflowPushResponse.d.ts +1 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/index.js +5 -0
- package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +2 -0
- package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +2 -0
- package/dist/serialization/types/ArrayVariableValueItem.d.ts +2 -1
- package/dist/serialization/types/ArrayVariableValueItem.js +2 -0
- package/dist/serialization/types/AudioVariableValue.d.ts +14 -0
- package/dist/serialization/types/AudioVariableValue.js +35 -0
- package/dist/serialization/types/AudioVellumValue.d.ts +14 -0
- package/dist/serialization/types/AudioVellumValue.js +35 -0
- package/dist/serialization/types/AudioVellumValueRequest.d.ts +14 -0
- package/dist/serialization/types/AudioVellumValueRequest.js +35 -0
- package/dist/serialization/types/DockerServiceToken.d.ts +14 -0
- package/dist/serialization/types/DockerServiceToken.js +35 -0
- package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -1
- package/dist/serialization/types/VellumValue.d.ts +2 -1
- package/dist/serialization/types/VellumValue.js +2 -0
- package/dist/serialization/types/VellumValueRequest.d.ts +2 -1
- package/dist/serialization/types/VellumValueRequest.js +2 -0
- package/dist/serialization/types/WorkflowPushDeploymentConfigRequest.d.ts +15 -0
- package/dist/serialization/types/WorkflowPushDeploymentConfigRequest.js +36 -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 +5 -0
- package/dist/serialization/types/index.js +5 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +118 -0
- package/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +2 -0
- package/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +2 -0
- package/serialization/types/ArrayVariableValueItem.d.ts +2 -1
- package/serialization/types/ArrayVariableValueItem.js +2 -0
- package/serialization/types/AudioVariableValue.d.ts +14 -0
- package/serialization/types/AudioVariableValue.js +35 -0
- package/serialization/types/AudioVellumValue.d.ts +14 -0
- package/serialization/types/AudioVellumValue.js +35 -0
- package/serialization/types/AudioVellumValueRequest.d.ts +14 -0
- package/serialization/types/AudioVellumValueRequest.js +35 -0
- package/serialization/types/DockerServiceToken.d.ts +14 -0
- package/serialization/types/DockerServiceToken.js +35 -0
- package/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/serialization/types/EnrichedNormalizedCompletion.js +1 -1
- package/serialization/types/VellumValue.d.ts +2 -1
- package/serialization/types/VellumValue.js +2 -0
- package/serialization/types/VellumValueRequest.d.ts +2 -1
- package/serialization/types/VellumValueRequest.js +2 -0
- package/serialization/types/WorkflowPushDeploymentConfigRequest.d.ts +15 -0
- package/serialization/types/WorkflowPushDeploymentConfigRequest.js +36 -0
- package/serialization/types/WorkflowPushResponse.d.ts +1 -0
- package/serialization/types/WorkflowPushResponse.js +1 -0
- package/serialization/types/index.d.ts +5 -0
- package/serialization/types/index.js +5 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.9.
|
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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.9.
|
|
145
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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.9.
|
|
192
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
193
193
|
contentType: "application/json",
|
|
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.9.
|
|
259
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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,
|
|
@@ -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.9.
|
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
queryParameters: _queryParams,
|
|
84
84
|
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.9.
|
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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)}/release-tags/${encodeURIComponent(name)}`),
|
|
186
186
|
method: "GET",
|
|
187
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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,
|
|
@@ -238,7 +238,7 @@ class WorkflowDeployments {
|
|
|
238
238
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
239
239
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
240
240
|
method: "PATCH",
|
|
241
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
241
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
242
242
|
contentType: "application/json",
|
|
243
243
|
requestType: "json",
|
|
244
244
|
body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -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.9.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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" }),
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/// <reference types="node" />
|
|
4
5
|
import * as environments from "../../../../environments";
|
|
5
6
|
import * as core from "../../../../core";
|
|
7
|
+
import * as stream from "stream";
|
|
6
8
|
import * as Vellum from "../../../index";
|
|
7
9
|
export declare namespace Workflows {
|
|
8
10
|
interface Options {
|
|
@@ -21,6 +23,10 @@ export declare namespace Workflows {
|
|
|
21
23
|
export declare class Workflows {
|
|
22
24
|
protected readonly _options: Workflows.Options;
|
|
23
25
|
constructor(_options?: Workflows.Options);
|
|
26
|
+
/**
|
|
27
|
+
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
28
|
+
*/
|
|
29
|
+
pull(id: string, requestOptions?: Workflows.RequestOptions): Promise<stream.Readable>;
|
|
24
30
|
/**
|
|
25
31
|
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
26
32
|
*
|
|
@@ -41,13 +41,55 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Workflows = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
|
43
43
|
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
|
45
44
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
45
|
const errors = __importStar(require("../../../../errors/index"));
|
|
46
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
47
47
|
class Workflows {
|
|
48
48
|
constructor(_options = {}) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
53
|
+
*/
|
|
54
|
+
pull(id, requestOptions) {
|
|
55
|
+
var _a;
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const _response = yield core.fetcher({
|
|
58
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
59
|
+
.default, `v1/workflows/${encodeURIComponent(id)}/pull`),
|
|
60
|
+
method: "GET",
|
|
61
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
62
|
+
contentType: "application/json",
|
|
63
|
+
requestType: "json",
|
|
64
|
+
responseType: "streaming",
|
|
65
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
66
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
67
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
68
|
+
});
|
|
69
|
+
if (_response.ok) {
|
|
70
|
+
return _response.body;
|
|
71
|
+
}
|
|
72
|
+
if (_response.error.reason === "status-code") {
|
|
73
|
+
throw new errors.VellumError({
|
|
74
|
+
statusCode: _response.error.statusCode,
|
|
75
|
+
body: _response.error.body,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
switch (_response.error.reason) {
|
|
79
|
+
case "non-json":
|
|
80
|
+
throw new errors.VellumError({
|
|
81
|
+
statusCode: _response.error.statusCode,
|
|
82
|
+
body: _response.error.rawBody,
|
|
83
|
+
});
|
|
84
|
+
case "timeout":
|
|
85
|
+
throw new errors.VellumTimeoutError();
|
|
86
|
+
case "unknown":
|
|
87
|
+
throw new errors.VellumError({
|
|
88
|
+
message: _response.error.errorMessage,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
51
93
|
/**
|
|
52
94
|
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
53
95
|
*
|
|
@@ -69,7 +111,7 @@ class Workflows {
|
|
|
69
111
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
112
|
.default, "v1/workflows/push"),
|
|
71
113
|
method: "POST",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
114
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
115
|
contentType: "application/json",
|
|
74
116
|
requestType: "json",
|
|
75
117
|
body: serializers.WorkflowPushRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -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.9.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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.9.
|
|
120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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, {
|
|
@@ -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 ArrayVariableValueItem = Vellum.StringVariableValue | Vellum.NumberVariableValue | Vellum.JsonVariableValue | Vellum.ErrorVariableValue | Vellum.FunctionCallVariableValue | Vellum.ImageVariableValue | Vellum.ChatHistoryVariableValue | Vellum.SearchResultsVariableValue | Vellum.ArrayVariableValue;
|
|
5
|
+
export declare type ArrayVariableValueItem = Vellum.StringVariableValue | Vellum.NumberVariableValue | Vellum.JsonVariableValue | Vellum.ErrorVariableValue | Vellum.FunctionCallVariableValue | Vellum.ImageVariableValue | Vellum.AudioVariableValue | Vellum.ChatHistoryVariableValue | Vellum.SearchResultsVariableValue | Vellum.ArrayVariableValue;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A base Vellum primitive value representing audio.
|
|
7
|
+
*/
|
|
8
|
+
export interface AudioVariableValue {
|
|
9
|
+
type: "AUDIO";
|
|
10
|
+
value?: Vellum.VellumAudio;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A base Vellum primitive value representing audio.
|
|
7
|
+
*/
|
|
8
|
+
export interface AudioVellumValue {
|
|
9
|
+
type: "AUDIO";
|
|
10
|
+
value?: Vellum.VellumAudio;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A base Vellum primitive value representing audio.
|
|
7
|
+
*/
|
|
8
|
+
export interface AudioVellumValueRequest {
|
|
9
|
+
type: "AUDIO";
|
|
10
|
+
value?: Vellum.VellumAudioRequest;
|
|
11
|
+
}
|
|
@@ -20,7 +20,7 @@ export interface EnrichedNormalizedCompletion {
|
|
|
20
20
|
/** The logprobs of the completion. Only present if specified in the original request options. */
|
|
21
21
|
logprobs?: Vellum.NormalizedLogProbs;
|
|
22
22
|
/** The ID of the model version used to generate this completion. */
|
|
23
|
-
modelVersionId
|
|
23
|
+
modelVersionId?: string;
|
|
24
24
|
promptVersionId: string;
|
|
25
25
|
type?: Vellum.VellumVariableType;
|
|
26
26
|
deploymentReleaseTag: string;
|
|
@@ -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 VellumValue = Vellum.StringVellumValue | Vellum.NumberVellumValue | Vellum.JsonVellumValue | Vellum.ImageVellumValue | Vellum.FunctionCallVellumValue | Vellum.ErrorVellumValue | Vellum.ArrayVellumValue | Vellum.ChatHistoryVellumValue | Vellum.SearchResultsVellumValue;
|
|
5
|
+
export declare type VellumValue = Vellum.StringVellumValue | Vellum.NumberVellumValue | Vellum.JsonVellumValue | Vellum.ImageVellumValue | Vellum.AudioVellumValue | Vellum.FunctionCallVellumValue | Vellum.ErrorVellumValue | Vellum.ArrayVellumValue | Vellum.ChatHistoryVellumValue | Vellum.SearchResultsVellumValue;
|
|
@@ -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 VellumValueRequest = Vellum.StringVellumValueRequest | Vellum.NumberVellumValueRequest | Vellum.JsonVellumValueRequest | Vellum.ImageVellumValueRequest | Vellum.FunctionCallVellumValueRequest | Vellum.ErrorVellumValueRequest | Vellum.ArrayVellumValueRequest | Vellum.ChatHistoryVellumValueRequest | Vellum.SearchResultsVellumValueRequest;
|
|
5
|
+
export declare type VellumValueRequest = Vellum.StringVellumValueRequest | Vellum.NumberVellumValueRequest | Vellum.JsonVellumValueRequest | Vellum.ImageVellumValueRequest | Vellum.AudioVellumValueRequest | Vellum.FunctionCallVellumValueRequest | Vellum.ErrorVellumValueRequest | Vellum.ArrayVellumValueRequest | Vellum.ChatHistoryVellumValueRequest | Vellum.SearchResultsVellumValueRequest;
|
|
@@ -18,6 +18,9 @@ export * from "./ArrayVellumValue";
|
|
|
18
18
|
export * from "./ArrayVellumValueRequest";
|
|
19
19
|
export * from "./AudioChatMessageContent";
|
|
20
20
|
export * from "./AudioChatMessageContentRequest";
|
|
21
|
+
export * from "./AudioVariableValue";
|
|
22
|
+
export * from "./AudioVellumValue";
|
|
23
|
+
export * from "./AudioVellumValueRequest";
|
|
21
24
|
export * from "./BasicVectorizerIntfloatMultilingualE5Large";
|
|
22
25
|
export * from "./BasicVectorizerIntfloatMultilingualE5LargeRequest";
|
|
23
26
|
export * from "./BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1";
|
|
@@ -63,6 +66,7 @@ export * from "./DeploymentProviderPayloadResponse";
|
|
|
63
66
|
export * from "./DeploymentRead";
|
|
64
67
|
export * from "./DeploymentReleaseTagDeploymentHistoryItem";
|
|
65
68
|
export * from "./DeploymentReleaseTagRead";
|
|
69
|
+
export * from "./DockerServiceToken";
|
|
66
70
|
export * from "./DocumentDocumentToDocumentIndex";
|
|
67
71
|
export * from "./DocumentIndexChunking";
|
|
68
72
|
export * from "./DocumentIndexChunkingRequest";
|
|
@@ -451,6 +455,7 @@ export * from "./WorkflowOutputJson";
|
|
|
451
455
|
export * from "./WorkflowOutputNumber";
|
|
452
456
|
export * from "./WorkflowOutputSearchResults";
|
|
453
457
|
export * from "./WorkflowOutputString";
|
|
458
|
+
export * from "./WorkflowPushDeploymentConfigRequest";
|
|
454
459
|
export * from "./WorkflowPushExecConfig";
|
|
455
460
|
export * from "./WorkflowPushResponse";
|
|
456
461
|
export * from "./WorkflowReleaseTagRead";
|
package/dist/api/types/index.js
CHANGED
|
@@ -34,6 +34,9 @@ __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("./AudioVariableValue"), exports);
|
|
38
|
+
__exportStar(require("./AudioVellumValue"), exports);
|
|
39
|
+
__exportStar(require("./AudioVellumValueRequest"), exports);
|
|
37
40
|
__exportStar(require("./BasicVectorizerIntfloatMultilingualE5Large"), exports);
|
|
38
41
|
__exportStar(require("./BasicVectorizerIntfloatMultilingualE5LargeRequest"), exports);
|
|
39
42
|
__exportStar(require("./BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1"), exports);
|
|
@@ -79,6 +82,7 @@ __exportStar(require("./DeploymentProviderPayloadResponse"), exports);
|
|
|
79
82
|
__exportStar(require("./DeploymentRead"), exports);
|
|
80
83
|
__exportStar(require("./DeploymentReleaseTagDeploymentHistoryItem"), exports);
|
|
81
84
|
__exportStar(require("./DeploymentReleaseTagRead"), exports);
|
|
85
|
+
__exportStar(require("./DockerServiceToken"), exports);
|
|
82
86
|
__exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
|
|
83
87
|
__exportStar(require("./DocumentIndexChunking"), exports);
|
|
84
88
|
__exportStar(require("./DocumentIndexChunkingRequest"), exports);
|
|
@@ -467,6 +471,7 @@ __exportStar(require("./WorkflowOutputJson"), exports);
|
|
|
467
471
|
__exportStar(require("./WorkflowOutputNumber"), exports);
|
|
468
472
|
__exportStar(require("./WorkflowOutputSearchResults"), exports);
|
|
469
473
|
__exportStar(require("./WorkflowOutputString"), exports);
|
|
474
|
+
__exportStar(require("./WorkflowPushDeploymentConfigRequest"), exports);
|
|
470
475
|
__exportStar(require("./WorkflowPushExecConfig"), exports);
|
|
471
476
|
__exportStar(require("./WorkflowPushResponse"), exports);
|
|
472
477
|
__exportStar(require("./WorkflowReleaseTagRead"), exports);
|
|
@@ -5,11 +5,13 @@ import * as serializers from "../../../../index";
|
|
|
5
5
|
import * as Vellum from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
7
|
import { WorkflowPushExecConfig } from "../../../../types/WorkflowPushExecConfig";
|
|
8
|
+
import { WorkflowPushDeploymentConfigRequest } from "../../../../types/WorkflowPushDeploymentConfigRequest";
|
|
8
9
|
export declare const WorkflowPushRequest: core.serialization.Schema<serializers.WorkflowPushRequest.Raw, Vellum.WorkflowPushRequest>;
|
|
9
10
|
export declare namespace WorkflowPushRequest {
|
|
10
11
|
interface Raw {
|
|
11
12
|
exec_config: WorkflowPushExecConfig.Raw;
|
|
12
13
|
label: string;
|
|
13
14
|
workflow_sandbox_id?: string | null;
|
|
15
|
+
deployment_config?: WorkflowPushDeploymentConfigRequest.Raw | null;
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -29,8 +29,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.WorkflowPushRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
31
|
const WorkflowPushExecConfig_1 = require("../../../../types/WorkflowPushExecConfig");
|
|
32
|
+
const WorkflowPushDeploymentConfigRequest_1 = require("../../../../types/WorkflowPushDeploymentConfigRequest");
|
|
32
33
|
exports.WorkflowPushRequest = core.serialization.object({
|
|
33
34
|
execConfig: core.serialization.property("exec_config", WorkflowPushExecConfig_1.WorkflowPushExecConfig),
|
|
34
35
|
label: core.serialization.string(),
|
|
35
36
|
workflowSandboxId: core.serialization.property("workflow_sandbox_id", core.serialization.string().optional()),
|
|
37
|
+
deploymentConfig: core.serialization.property("deployment_config", WorkflowPushDeploymentConfigRequest_1.WorkflowPushDeploymentConfigRequest.optional()),
|
|
36
38
|
});
|
|
@@ -10,9 +10,10 @@ import { JsonVariableValue } from "./JsonVariableValue";
|
|
|
10
10
|
import { ErrorVariableValue } from "./ErrorVariableValue";
|
|
11
11
|
import { FunctionCallVariableValue } from "./FunctionCallVariableValue";
|
|
12
12
|
import { ImageVariableValue } from "./ImageVariableValue";
|
|
13
|
+
import { AudioVariableValue } from "./AudioVariableValue";
|
|
13
14
|
import { ChatHistoryVariableValue } from "./ChatHistoryVariableValue";
|
|
14
15
|
import { SearchResultsVariableValue } from "./SearchResultsVariableValue";
|
|
15
16
|
export declare const ArrayVariableValueItem: core.serialization.Schema<serializers.ArrayVariableValueItem.Raw, Vellum.ArrayVariableValueItem>;
|
|
16
17
|
export declare namespace ArrayVariableValueItem {
|
|
17
|
-
type Raw = StringVariableValue.Raw | NumberVariableValue.Raw | JsonVariableValue.Raw | ErrorVariableValue.Raw | FunctionCallVariableValue.Raw | ImageVariableValue.Raw | ChatHistoryVariableValue.Raw | SearchResultsVariableValue.Raw | serializers.ArrayVariableValue.Raw;
|
|
18
|
+
type Raw = StringVariableValue.Raw | NumberVariableValue.Raw | JsonVariableValue.Raw | ErrorVariableValue.Raw | FunctionCallVariableValue.Raw | ImageVariableValue.Raw | AudioVariableValue.Raw | ChatHistoryVariableValue.Raw | SearchResultsVariableValue.Raw | serializers.ArrayVariableValue.Raw;
|
|
18
19
|
}
|
|
@@ -35,6 +35,7 @@ const JsonVariableValue_1 = require("./JsonVariableValue");
|
|
|
35
35
|
const ErrorVariableValue_1 = require("./ErrorVariableValue");
|
|
36
36
|
const FunctionCallVariableValue_1 = require("./FunctionCallVariableValue");
|
|
37
37
|
const ImageVariableValue_1 = require("./ImageVariableValue");
|
|
38
|
+
const AudioVariableValue_1 = require("./AudioVariableValue");
|
|
38
39
|
const ChatHistoryVariableValue_1 = require("./ChatHistoryVariableValue");
|
|
39
40
|
const SearchResultsVariableValue_1 = require("./SearchResultsVariableValue");
|
|
40
41
|
exports.ArrayVariableValueItem = core.serialization.undiscriminatedUnion([
|
|
@@ -44,6 +45,7 @@ exports.ArrayVariableValueItem = core.serialization.undiscriminatedUnion([
|
|
|
44
45
|
ErrorVariableValue_1.ErrorVariableValue,
|
|
45
46
|
FunctionCallVariableValue_1.FunctionCallVariableValue,
|
|
46
47
|
ImageVariableValue_1.ImageVariableValue,
|
|
48
|
+
AudioVariableValue_1.AudioVariableValue,
|
|
47
49
|
ChatHistoryVariableValue_1.ChatHistoryVariableValue,
|
|
48
50
|
SearchResultsVariableValue_1.SearchResultsVariableValue,
|
|
49
51
|
core.serialization.lazyObject(() => serializers.ArrayVariableValue),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { VellumAudio } from "./VellumAudio";
|
|
8
|
+
export declare const AudioVariableValue: core.serialization.ObjectSchema<serializers.AudioVariableValue.Raw, Vellum.AudioVariableValue>;
|
|
9
|
+
export declare namespace AudioVariableValue {
|
|
10
|
+
interface Raw {
|
|
11
|
+
type: "AUDIO";
|
|
12
|
+
value?: VellumAudio.Raw | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AudioVariableValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const VellumAudio_1 = require("./VellumAudio");
|
|
32
|
+
exports.AudioVariableValue = core.serialization.object({
|
|
33
|
+
type: core.serialization.stringLiteral("AUDIO"),
|
|
34
|
+
value: VellumAudio_1.VellumAudio.optional(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { VellumAudio } from "./VellumAudio";
|
|
8
|
+
export declare const AudioVellumValue: core.serialization.ObjectSchema<serializers.AudioVellumValue.Raw, Vellum.AudioVellumValue>;
|
|
9
|
+
export declare namespace AudioVellumValue {
|
|
10
|
+
interface Raw {
|
|
11
|
+
type: "AUDIO";
|
|
12
|
+
value?: VellumAudio.Raw | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AudioVellumValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const VellumAudio_1 = require("./VellumAudio");
|
|
32
|
+
exports.AudioVellumValue = core.serialization.object({
|
|
33
|
+
type: core.serialization.stringLiteral("AUDIO"),
|
|
34
|
+
value: VellumAudio_1.VellumAudio.optional(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { VellumAudioRequest } from "./VellumAudioRequest";
|
|
8
|
+
export declare const AudioVellumValueRequest: core.serialization.ObjectSchema<serializers.AudioVellumValueRequest.Raw, Vellum.AudioVellumValueRequest>;
|
|
9
|
+
export declare namespace AudioVellumValueRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
type: "AUDIO";
|
|
12
|
+
value?: VellumAudioRequest.Raw | null;
|
|
13
|
+
}
|
|
14
|
+
}
|