vellum-ai 1.3.8 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.js +11 -11
- package/api/resources/adHoc/client/Client.js +2 -2
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +8 -8
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/events/client/Client.js +1 -1
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/metricDefinitions/client/Client.js +2 -2
- package/api/resources/mlModels/client/Client.js +1 -1
- package/api/resources/organizations/client/Client.js +1 -1
- package/api/resources/prompts/client/Client.js +2 -2
- 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 +9 -9
- package/api/resources/workflowExecutions/client/Client.js +1 -1
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/resources/workflows/client/Client.d.ts +17 -0
- package/api/resources/workflows/client/Client.js +74 -2
- package/api/resources/workflows/client/requests/SerializeWorkflowFilesRequest.d.ts +16 -0
- package/api/resources/workflows/client/requests/SerializeWorkflowFilesRequest.js +5 -0
- package/api/resources/workflows/client/requests/index.d.ts +1 -0
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/types/VellumError.d.ts +2 -1
- package/api/types/VellumErrorRequest.d.ts +2 -1
- package/dist/Client.js +11 -11
- package/dist/api/resources/adHoc/client/Client.js +2 -2
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +8 -8
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/events/client/Client.js +1 -1
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
- package/dist/api/resources/mlModels/client/Client.js +1 -1
- package/dist/api/resources/organizations/client/Client.js +1 -1
- package/dist/api/resources/prompts/client/Client.js +2 -2
- 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 +9 -9
- package/dist/api/resources/workflowExecutions/client/Client.js +1 -1
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/resources/workflows/client/Client.d.ts +17 -0
- package/dist/api/resources/workflows/client/Client.js +74 -2
- package/dist/api/resources/workflows/client/requests/SerializeWorkflowFilesRequest.d.ts +16 -0
- package/dist/api/resources/workflows/client/requests/SerializeWorkflowFilesRequest.js +5 -0
- package/dist/api/resources/workflows/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/types/VellumError.d.ts +2 -1
- package/dist/api/types/VellumErrorRequest.d.ts +2 -1
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/workflows/client/index.d.ts +2 -0
- package/dist/serialization/resources/workflows/client/index.js +41 -0
- package/dist/serialization/resources/workflows/client/requests/SerializeWorkflowFilesRequest.d.ts +12 -0
- package/dist/serialization/resources/workflows/client/requests/SerializeWorkflowFilesRequest.js +43 -0
- package/dist/serialization/resources/workflows/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/workflows/client/requests/index.js +5 -0
- package/dist/serialization/resources/workflows/client/serializeWorkflowFiles.d.ts +9 -0
- package/dist/serialization/resources/workflows/client/serializeWorkflowFiles.js +41 -0
- package/dist/serialization/resources/workflows/index.d.ts +1 -0
- package/dist/serialization/resources/workflows/index.js +17 -0
- package/dist/serialization/types/VellumError.d.ts +2 -1
- package/dist/serialization/types/VellumError.js +2 -1
- package/dist/serialization/types/VellumErrorRequest.d.ts +2 -1
- package/dist/serialization/types/VellumErrorRequest.js +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +69 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/workflows/client/index.d.ts +2 -0
- package/serialization/resources/workflows/client/index.js +41 -0
- package/serialization/resources/workflows/client/requests/SerializeWorkflowFilesRequest.d.ts +12 -0
- package/serialization/resources/workflows/client/requests/SerializeWorkflowFilesRequest.js +43 -0
- package/serialization/resources/workflows/client/requests/index.d.ts +1 -0
- package/serialization/resources/workflows/client/requests/index.js +5 -0
- package/serialization/resources/workflows/client/serializeWorkflowFiles.d.ts +9 -0
- package/serialization/resources/workflows/client/serializeWorkflowFiles.js +41 -0
- package/serialization/resources/workflows/index.d.ts +1 -0
- package/serialization/resources/workflows/index.js +17 -0
- package/serialization/types/VellumError.d.ts +2 -1
- package/serialization/types/VellumError.js +2 -1
- package/serialization/types/VellumErrorRequest.d.ts +2 -1
- package/serialization/types/VellumErrorRequest.js +2 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -100,7 +100,7 @@ class Workflows {
|
|
|
100
100
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
101
101
|
unrecognizedObjectKeys: "strip",
|
|
102
102
|
})
|
|
103
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.3.
|
|
103
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.3.10", "User-Agent": "vellum-ai/1.3.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
104
104
|
contentType: "application/json",
|
|
105
105
|
queryParameters: _queryParams,
|
|
106
106
|
requestType: "json",
|
|
@@ -180,7 +180,7 @@ class Workflows {
|
|
|
180
180
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
181
181
|
unrecognizedObjectKeys: "strip",
|
|
182
182
|
})
|
|
183
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.3.
|
|
183
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.3.10", "User-Agent": "vellum-ai/1.3.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
184
184
|
requestType: "file",
|
|
185
185
|
duplex: _maybeEncodedRequest.duplex,
|
|
186
186
|
body: _maybeEncodedRequest.body,
|
|
@@ -223,6 +223,78 @@ class Workflows {
|
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* Serialize files
|
|
228
|
+
*
|
|
229
|
+
* @param {Vellum.SerializeWorkflowFilesRequest} request
|
|
230
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* await client.workflows.serializeWorkflowFiles({
|
|
234
|
+
* files: {
|
|
235
|
+
* "files": {
|
|
236
|
+
* "key": "value"
|
|
237
|
+
* }
|
|
238
|
+
* }
|
|
239
|
+
* })
|
|
240
|
+
*/
|
|
241
|
+
serializeWorkflowFiles(request, requestOptions) {
|
|
242
|
+
return core.HttpResponsePromise.fromPromise(this.__serializeWorkflowFiles(request, requestOptions));
|
|
243
|
+
}
|
|
244
|
+
__serializeWorkflowFiles(request, requestOptions) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
var _a, _b;
|
|
247
|
+
const _response = yield core.fetcher({
|
|
248
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
249
|
+
.default, "v1/workflows/serialize"),
|
|
250
|
+
method: "POST",
|
|
251
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
252
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
253
|
+
unrecognizedObjectKeys: "strip",
|
|
254
|
+
})
|
|
255
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.3.10", "User-Agent": "vellum-ai/1.3.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
256
|
+
contentType: "application/json",
|
|
257
|
+
requestType: "json",
|
|
258
|
+
body: serializers.SerializeWorkflowFilesRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
259
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
260
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
261
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
262
|
+
});
|
|
263
|
+
if (_response.ok) {
|
|
264
|
+
return {
|
|
265
|
+
data: serializers.workflows.serializeWorkflowFiles.Response.parseOrThrow(_response.body, {
|
|
266
|
+
unrecognizedObjectKeys: "passthrough",
|
|
267
|
+
allowUnrecognizedUnionMembers: true,
|
|
268
|
+
allowUnrecognizedEnumValues: true,
|
|
269
|
+
breadcrumbsPrefix: ["response"],
|
|
270
|
+
}),
|
|
271
|
+
rawResponse: _response.rawResponse,
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
if (_response.error.reason === "status-code") {
|
|
275
|
+
throw new errors.VellumError({
|
|
276
|
+
statusCode: _response.error.statusCode,
|
|
277
|
+
body: _response.error.body,
|
|
278
|
+
rawResponse: _response.rawResponse,
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
switch (_response.error.reason) {
|
|
282
|
+
case "non-json":
|
|
283
|
+
throw new errors.VellumError({
|
|
284
|
+
statusCode: _response.error.statusCode,
|
|
285
|
+
body: _response.error.rawBody,
|
|
286
|
+
rawResponse: _response.rawResponse,
|
|
287
|
+
});
|
|
288
|
+
case "timeout":
|
|
289
|
+
throw new errors.VellumTimeoutError("Timeout exceeded when calling POST /v1/workflows/serialize.");
|
|
290
|
+
case "unknown":
|
|
291
|
+
throw new errors.VellumError({
|
|
292
|
+
message: _response.error.errorMessage,
|
|
293
|
+
rawResponse: _response.rawResponse,
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
}
|
|
226
298
|
_getCustomAuthorizationHeaders() {
|
|
227
299
|
return __awaiter(this, void 0, void 0, function* () {
|
|
228
300
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* files: {
|
|
8
|
+
* "files": {
|
|
9
|
+
* "key": "value"
|
|
10
|
+
* }
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface SerializeWorkflowFilesRequest {
|
|
15
|
+
files: Record<string, unknown>;
|
|
16
|
+
}
|
|
@@ -81,7 +81,7 @@ class WorkspaceSecrets {
|
|
|
81
81
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
82
82
|
unrecognizedObjectKeys: "strip",
|
|
83
83
|
})
|
|
84
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.3.
|
|
84
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.3.10", "User-Agent": "vellum-ai/1.3.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -147,7 +147,7 @@ class WorkspaceSecrets {
|
|
|
147
147
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
148
148
|
unrecognizedObjectKeys: "strip",
|
|
149
149
|
})
|
|
150
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.3.
|
|
150
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.3.10", "User-Agent": "vellum-ai/1.3.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
151
151
|
contentType: "application/json",
|
|
152
152
|
requestType: "json",
|
|
153
153
|
body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
|
|
@@ -80,7 +80,7 @@ class Workspaces {
|
|
|
80
80
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
81
81
|
unrecognizedObjectKeys: "strip",
|
|
82
82
|
})
|
|
83
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.3.
|
|
83
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.3.10", "User-Agent": "vellum-ai/1.3.10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
84
84
|
contentType: "application/json",
|
|
85
85
|
requestType: "json",
|
|
86
86
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -9,6 +9,7 @@ export * from "./workflowDeployments/types";
|
|
|
9
9
|
export * as workflowSandboxes from "./workflowSandboxes";
|
|
10
10
|
export * from "./workflowSandboxes/types";
|
|
11
11
|
export * as testSuites from "./testSuites";
|
|
12
|
+
export * as workflows from "./workflows";
|
|
12
13
|
export * as adHoc from "./adHoc";
|
|
13
14
|
export * from "./adHoc/client/requests";
|
|
14
15
|
export * as containerImages from "./containerImages";
|
|
@@ -28,5 +29,6 @@ export * as testSuiteRuns from "./testSuiteRuns";
|
|
|
28
29
|
export * from "./testSuiteRuns/client/requests";
|
|
29
30
|
export * from "./workflowDeployments/client/requests";
|
|
30
31
|
export * from "./workflowSandboxes/client/requests";
|
|
32
|
+
export * from "./workflows/client/requests";
|
|
31
33
|
export * as workspaceSecrets from "./workspaceSecrets";
|
|
32
34
|
export * from "./workspaceSecrets/client/requests";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.workspaceSecrets = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.testSuites = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
|
|
39
|
+
exports.workspaceSecrets = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.workflows = exports.testSuites = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
|
|
40
40
|
exports.deployments = __importStar(require("./deployments"));
|
|
41
41
|
__exportStar(require("./deployments/types"), exports);
|
|
42
42
|
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
@@ -48,6 +48,7 @@ __exportStar(require("./workflowDeployments/types"), exports);
|
|
|
48
48
|
exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
|
|
49
49
|
__exportStar(require("./workflowSandboxes/types"), exports);
|
|
50
50
|
exports.testSuites = __importStar(require("./testSuites"));
|
|
51
|
+
exports.workflows = __importStar(require("./workflows"));
|
|
51
52
|
exports.adHoc = __importStar(require("./adHoc"));
|
|
52
53
|
__exportStar(require("./adHoc/client/requests"), exports);
|
|
53
54
|
exports.containerImages = __importStar(require("./containerImages"));
|
|
@@ -67,5 +68,6 @@ exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
|
|
|
67
68
|
__exportStar(require("./testSuiteRuns/client/requests"), exports);
|
|
68
69
|
__exportStar(require("./workflowDeployments/client/requests"), exports);
|
|
69
70
|
__exportStar(require("./workflowSandboxes/client/requests"), exports);
|
|
71
|
+
__exportStar(require("./workflows/client/requests"), exports);
|
|
70
72
|
exports.workspaceSecrets = __importStar(require("./workspaceSecrets"));
|
|
71
73
|
__exportStar(require("./workspaceSecrets/client/requests"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.serializeWorkflowFiles = void 0;
|
|
40
|
+
exports.serializeWorkflowFiles = __importStar(require("./serializeWorkflowFiles"));
|
|
41
|
+
__exportStar(require("./requests"), exports);
|
package/dist/serialization/resources/workflows/client/requests/SerializeWorkflowFilesRequest.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export declare const SerializeWorkflowFilesRequest: core.serialization.Schema<serializers.SerializeWorkflowFilesRequest.Raw, Vellum.SerializeWorkflowFilesRequest>;
|
|
8
|
+
export declare namespace SerializeWorkflowFilesRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
files: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
}
|
package/dist/serialization/resources/workflows/client/requests/SerializeWorkflowFilesRequest.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.SerializeWorkflowFilesRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
exports.SerializeWorkflowFilesRequest = core.serialization.object({
|
|
42
|
+
files: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
43
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SerializeWorkflowFilesRequest } from "./SerializeWorkflowFilesRequest";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SerializeWorkflowFilesRequest = void 0;
|
|
4
|
+
var SerializeWorkflowFilesRequest_1 = require("./SerializeWorkflowFilesRequest");
|
|
5
|
+
Object.defineProperty(exports, "SerializeWorkflowFilesRequest", { enumerable: true, get: function () { return SerializeWorkflowFilesRequest_1.SerializeWorkflowFilesRequest; } });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.workflows.serializeWorkflowFiles.Response.Raw, Record<string, unknown>>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = Record<string, unknown>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -8,7 +8,8 @@ import { VellumErrorCodeEnum } from "./VellumErrorCodeEnum";
|
|
|
8
8
|
export declare const VellumError: core.serialization.ObjectSchema<serializers.VellumError.Raw, Vellum.VellumError>;
|
|
9
9
|
export declare namespace VellumError {
|
|
10
10
|
interface Raw {
|
|
11
|
-
message: string;
|
|
12
11
|
code: VellumErrorCodeEnum.Raw;
|
|
12
|
+
message: string;
|
|
13
|
+
raw_data?: (Record<string, unknown> | null) | null;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -40,6 +40,7 @@ exports.VellumError = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const VellumErrorCodeEnum_1 = require("./VellumErrorCodeEnum");
|
|
42
42
|
exports.VellumError = core.serialization.object({
|
|
43
|
-
message: core.serialization.string(),
|
|
44
43
|
code: VellumErrorCodeEnum_1.VellumErrorCodeEnum,
|
|
44
|
+
message: core.serialization.string(),
|
|
45
|
+
rawData: core.serialization.property("raw_data", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optionalNullable()),
|
|
45
46
|
});
|
|
@@ -8,7 +8,8 @@ import { VellumErrorCodeEnum } from "./VellumErrorCodeEnum";
|
|
|
8
8
|
export declare const VellumErrorRequest: core.serialization.ObjectSchema<serializers.VellumErrorRequest.Raw, Vellum.VellumErrorRequest>;
|
|
9
9
|
export declare namespace VellumErrorRequest {
|
|
10
10
|
interface Raw {
|
|
11
|
-
message: string;
|
|
12
11
|
code: VellumErrorCodeEnum.Raw;
|
|
12
|
+
message: string;
|
|
13
|
+
raw_data?: (Record<string, unknown> | null) | null;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -40,6 +40,7 @@ exports.VellumErrorRequest = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const VellumErrorCodeEnum_1 = require("./VellumErrorCodeEnum");
|
|
42
42
|
exports.VellumErrorRequest = core.serialization.object({
|
|
43
|
-
message: core.serialization.string(),
|
|
44
43
|
code: VellumErrorCodeEnum_1.VellumErrorCodeEnum,
|
|
44
|
+
message: core.serialization.string(),
|
|
45
|
+
rawData: core.serialization.property("raw_data", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optionalNullable()),
|
|
45
46
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.3.
|
|
1
|
+
export declare const SDK_VERSION = "1.3.10";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -4095,6 +4095,75 @@ await client.workflowSandboxes.listWorkflowSandboxExamples();
|
|
|
4095
4095
|
|
|
4096
4096
|
## Workflows
|
|
4097
4097
|
|
|
4098
|
+
<details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">serializeWorkflowFiles</a>({ ...params }) -> Record<string, unknown></code></summary>
|
|
4099
|
+
<dl>
|
|
4100
|
+
<dd>
|
|
4101
|
+
|
|
4102
|
+
#### 📝 Description
|
|
4103
|
+
|
|
4104
|
+
<dl>
|
|
4105
|
+
<dd>
|
|
4106
|
+
|
|
4107
|
+
<dl>
|
|
4108
|
+
<dd>
|
|
4109
|
+
|
|
4110
|
+
Serialize files
|
|
4111
|
+
|
|
4112
|
+
</dd>
|
|
4113
|
+
</dl>
|
|
4114
|
+
</dd>
|
|
4115
|
+
</dl>
|
|
4116
|
+
|
|
4117
|
+
#### 🔌 Usage
|
|
4118
|
+
|
|
4119
|
+
<dl>
|
|
4120
|
+
<dd>
|
|
4121
|
+
|
|
4122
|
+
<dl>
|
|
4123
|
+
<dd>
|
|
4124
|
+
|
|
4125
|
+
```typescript
|
|
4126
|
+
await client.workflows.serializeWorkflowFiles({
|
|
4127
|
+
files: {
|
|
4128
|
+
files: {
|
|
4129
|
+
key: "value",
|
|
4130
|
+
},
|
|
4131
|
+
},
|
|
4132
|
+
});
|
|
4133
|
+
```
|
|
4134
|
+
|
|
4135
|
+
</dd>
|
|
4136
|
+
</dl>
|
|
4137
|
+
</dd>
|
|
4138
|
+
</dl>
|
|
4139
|
+
|
|
4140
|
+
#### ⚙️ Parameters
|
|
4141
|
+
|
|
4142
|
+
<dl>
|
|
4143
|
+
<dd>
|
|
4144
|
+
|
|
4145
|
+
<dl>
|
|
4146
|
+
<dd>
|
|
4147
|
+
|
|
4148
|
+
**request:** `Vellum.SerializeWorkflowFilesRequest`
|
|
4149
|
+
|
|
4150
|
+
</dd>
|
|
4151
|
+
</dl>
|
|
4152
|
+
|
|
4153
|
+
<dl>
|
|
4154
|
+
<dd>
|
|
4155
|
+
|
|
4156
|
+
**requestOptions:** `Workflows.RequestOptions`
|
|
4157
|
+
|
|
4158
|
+
</dd>
|
|
4159
|
+
</dl>
|
|
4160
|
+
</dd>
|
|
4161
|
+
</dl>
|
|
4162
|
+
|
|
4163
|
+
</dd>
|
|
4164
|
+
</dl>
|
|
4165
|
+
</details>
|
|
4166
|
+
|
|
4098
4167
|
## WorkspaceSecrets
|
|
4099
4168
|
|
|
4100
4169
|
<details><summary><code>client.workspaceSecrets.<a href="/src/api/resources/workspaceSecrets/client/Client.ts">retrieve</a>(id) -> Vellum.WorkspaceSecretRead</code></summary>
|
|
@@ -9,6 +9,7 @@ export * from "./workflowDeployments/types";
|
|
|
9
9
|
export * as workflowSandboxes from "./workflowSandboxes";
|
|
10
10
|
export * from "./workflowSandboxes/types";
|
|
11
11
|
export * as testSuites from "./testSuites";
|
|
12
|
+
export * as workflows from "./workflows";
|
|
12
13
|
export * as adHoc from "./adHoc";
|
|
13
14
|
export * from "./adHoc/client/requests";
|
|
14
15
|
export * as containerImages from "./containerImages";
|
|
@@ -28,5 +29,6 @@ export * as testSuiteRuns from "./testSuiteRuns";
|
|
|
28
29
|
export * from "./testSuiteRuns/client/requests";
|
|
29
30
|
export * from "./workflowDeployments/client/requests";
|
|
30
31
|
export * from "./workflowSandboxes/client/requests";
|
|
32
|
+
export * from "./workflows/client/requests";
|
|
31
33
|
export * as workspaceSecrets from "./workspaceSecrets";
|
|
32
34
|
export * from "./workspaceSecrets/client/requests";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.workspaceSecrets = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.testSuites = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
|
|
39
|
+
exports.workspaceSecrets = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.workflows = exports.testSuites = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
|
|
40
40
|
exports.deployments = __importStar(require("./deployments"));
|
|
41
41
|
__exportStar(require("./deployments/types"), exports);
|
|
42
42
|
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
@@ -48,6 +48,7 @@ __exportStar(require("./workflowDeployments/types"), exports);
|
|
|
48
48
|
exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
|
|
49
49
|
__exportStar(require("./workflowSandboxes/types"), exports);
|
|
50
50
|
exports.testSuites = __importStar(require("./testSuites"));
|
|
51
|
+
exports.workflows = __importStar(require("./workflows"));
|
|
51
52
|
exports.adHoc = __importStar(require("./adHoc"));
|
|
52
53
|
__exportStar(require("./adHoc/client/requests"), exports);
|
|
53
54
|
exports.containerImages = __importStar(require("./containerImages"));
|
|
@@ -67,5 +68,6 @@ exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
|
|
|
67
68
|
__exportStar(require("./testSuiteRuns/client/requests"), exports);
|
|
68
69
|
__exportStar(require("./workflowDeployments/client/requests"), exports);
|
|
69
70
|
__exportStar(require("./workflowSandboxes/client/requests"), exports);
|
|
71
|
+
__exportStar(require("./workflows/client/requests"), exports);
|
|
70
72
|
exports.workspaceSecrets = __importStar(require("./workspaceSecrets"));
|
|
71
73
|
__exportStar(require("./workspaceSecrets/client/requests"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.serializeWorkflowFiles = void 0;
|
|
40
|
+
exports.serializeWorkflowFiles = __importStar(require("./serializeWorkflowFiles"));
|
|
41
|
+
__exportStar(require("./requests"), exports);
|