vellum-ai 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +22 -17
- package/api/resources/deployments/client/Client.d.ts +15 -0
- package/api/resources/deployments/client/Client.js +144 -3
- package/api/resources/deployments/client/requests/DeploySandboxWorkflowRequest.d.ts +17 -0
- package/api/resources/deployments/client/requests/DeploySandboxWorkflowRequest.js +5 -0
- package/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +11 -0
- package/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.js +5 -0
- package/api/resources/deployments/client/requests/index.d.ts +2 -0
- package/api/resources/documentIndexes/client/Client.js +6 -6
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/promptVersions/client/Client.d.ts +24 -0
- package/api/resources/promptVersions/client/Client.js +102 -0
- package/api/resources/promptVersions/client/index.d.ts +1 -0
- package/api/resources/promptVersions/client/index.js +17 -0
- package/api/resources/promptVersions/client/requests/DeploySandboxPromptRequest.d.ts +17 -0
- package/api/resources/promptVersions/client/requests/DeploySandboxPromptRequest.js +5 -0
- package/api/resources/promptVersions/client/requests/index.d.ts +1 -0
- package/api/resources/promptVersions/client/requests/index.js +2 -0
- package/api/resources/promptVersions/index.d.ts +1 -0
- package/api/resources/promptVersions/index.js +17 -0
- package/api/resources/sandboxes/client/Client.js +2 -2
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +3 -3
- package/api/resources/workflowDeployments/client/Client.d.ts +14 -0
- package/api/resources/workflowDeployments/client/Client.js +99 -2
- package/api/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.d.ts +11 -0
- package/api/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.js +5 -0
- package/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
- package/api/types/DeploymentReleaseTagDeploymentHistoryItem.d.ts +7 -0
- package/api/types/DeploymentReleaseTagDeploymentHistoryItem.js +5 -0
- package/api/types/DeploymentReleaseTagRead.d.ts +17 -0
- package/api/types/DeploymentReleaseTagRead.js +5 -0
- package/api/types/ReleaseTagSource.d.ts +12 -0
- package/api/types/ReleaseTagSource.js +10 -0
- package/api/types/SubworkflowNodeResult.d.ts +2 -0
- package/api/types/SubworkflowNodeResultData.d.ts +6 -0
- package/api/types/SubworkflowNodeResultData.js +5 -0
- package/api/types/WorkflowReleaseTagRead.d.ts +17 -0
- package/api/types/WorkflowReleaseTagRead.js +5 -0
- package/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +9 -0
- package/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.js +5 -0
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +22 -17
- package/dist/api/resources/deployments/client/Client.d.ts +15 -0
- package/dist/api/resources/deployments/client/Client.js +144 -3
- package/dist/api/resources/deployments/client/requests/DeploySandboxWorkflowRequest.d.ts +17 -0
- package/dist/api/resources/deployments/client/requests/DeploySandboxWorkflowRequest.js +5 -0
- package/dist/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +11 -0
- package/dist/api/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.js +5 -0
- package/dist/api/resources/deployments/client/requests/index.d.ts +2 -0
- package/dist/api/resources/documentIndexes/client/Client.js +6 -6
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/promptVersions/client/Client.d.ts +24 -0
- package/dist/api/resources/promptVersions/client/Client.js +102 -0
- package/dist/api/resources/promptVersions/client/index.d.ts +1 -0
- package/dist/api/resources/promptVersions/client/index.js +17 -0
- package/dist/api/resources/promptVersions/client/requests/DeploySandboxPromptRequest.d.ts +17 -0
- package/dist/api/resources/promptVersions/client/requests/DeploySandboxPromptRequest.js +5 -0
- package/dist/api/resources/promptVersions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/promptVersions/client/requests/index.js +2 -0
- package/dist/api/resources/promptVersions/index.d.ts +1 -0
- package/dist/api/resources/promptVersions/index.js +17 -0
- package/dist/api/resources/sandboxes/client/Client.js +2 -2
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +14 -0
- package/dist/api/resources/workflowDeployments/client/Client.js +99 -2
- package/dist/api/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.d.ts +11 -0
- package/dist/api/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.js +5 -0
- package/dist/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
- package/dist/api/types/DeploymentReleaseTagDeploymentHistoryItem.d.ts +7 -0
- package/dist/api/types/DeploymentReleaseTagDeploymentHistoryItem.js +5 -0
- package/dist/api/types/DeploymentReleaseTagRead.d.ts +17 -0
- package/dist/api/types/DeploymentReleaseTagRead.js +5 -0
- package/dist/api/types/ReleaseTagSource.d.ts +12 -0
- package/dist/api/types/ReleaseTagSource.js +10 -0
- package/dist/api/types/SubworkflowNodeResult.d.ts +2 -0
- package/dist/api/types/SubworkflowNodeResultData.d.ts +6 -0
- package/dist/api/types/SubworkflowNodeResultData.js +5 -0
- package/dist/api/types/WorkflowReleaseTagRead.d.ts +17 -0
- package/dist/api/types/WorkflowReleaseTagRead.js +5 -0
- package/dist/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +9 -0
- package/dist/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.js +5 -0
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -0
- package/dist/serialization/resources/deployments/client/requests/DeploySandboxWorkflowRequest.d.ts +15 -0
- package/dist/serialization/resources/deployments/client/requests/DeploySandboxWorkflowRequest.js +36 -0
- package/dist/serialization/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +12 -0
- package/dist/serialization/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.js +33 -0
- package/dist/serialization/resources/deployments/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/deployments/client/requests/index.js +5 -1
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/promptVersions/client/index.d.ts +1 -0
- package/dist/serialization/resources/promptVersions/client/index.js +17 -0
- package/dist/serialization/resources/promptVersions/client/requests/DeploySandboxPromptRequest.d.ts +15 -0
- package/dist/serialization/resources/promptVersions/client/requests/DeploySandboxPromptRequest.js +36 -0
- package/dist/serialization/resources/promptVersions/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/promptVersions/client/requests/index.js +5 -0
- package/dist/serialization/resources/promptVersions/index.d.ts +1 -0
- package/dist/serialization/resources/promptVersions/index.js +17 -0
- package/dist/serialization/resources/workflowDeployments/client/index.d.ts +1 -0
- package/dist/serialization/resources/workflowDeployments/client/index.js +17 -0
- package/dist/serialization/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.d.ts +12 -0
- package/dist/serialization/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.js +33 -0
- package/dist/serialization/resources/workflowDeployments/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/workflowDeployments/client/requests/index.js +5 -0
- package/dist/serialization/resources/workflowDeployments/index.d.ts +1 -0
- package/dist/serialization/resources/workflowDeployments/index.js +1 -0
- package/dist/serialization/types/DeploymentReleaseTagDeploymentHistoryItem.d.ts +13 -0
- package/dist/serialization/types/DeploymentReleaseTagDeploymentHistoryItem.js +34 -0
- package/dist/serialization/types/DeploymentReleaseTagRead.d.ts +16 -0
- package/dist/serialization/types/DeploymentReleaseTagRead.js +37 -0
- package/dist/serialization/types/ReleaseTagSource.d.ts +10 -0
- package/dist/serialization/types/ReleaseTagSource.js +31 -0
- package/dist/serialization/types/SubworkflowNodeResult.d.ts +2 -0
- package/dist/serialization/types/SubworkflowNodeResult.js +4 -1
- package/dist/serialization/types/SubworkflowNodeResultData.d.ts +12 -0
- package/dist/serialization/types/SubworkflowNodeResultData.js +33 -0
- package/dist/serialization/types/WorkflowReleaseTagRead.d.ts +16 -0
- package/dist/serialization/types/WorkflowReleaseTagRead.js +37 -0
- package/dist/serialization/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +13 -0
- package/dist/serialization/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.js +34 -0
- package/dist/serialization/types/index.d.ts +6 -0
- package/dist/serialization/types/index.js +6 -0
- package/package.json +1 -1
- package/serialization/resources/deployments/client/requests/DeploySandboxWorkflowRequest.d.ts +15 -0
- package/serialization/resources/deployments/client/requests/DeploySandboxWorkflowRequest.js +36 -0
- package/serialization/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.d.ts +12 -0
- package/serialization/resources/deployments/client/requests/PatchedDeploymentReleaseTagUpdateRequest.js +33 -0
- package/serialization/resources/deployments/client/requests/index.d.ts +2 -0
- package/serialization/resources/deployments/client/requests/index.js +5 -1
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/promptVersions/client/index.d.ts +1 -0
- package/serialization/resources/promptVersions/client/index.js +17 -0
- package/serialization/resources/promptVersions/client/requests/DeploySandboxPromptRequest.d.ts +15 -0
- package/serialization/resources/promptVersions/client/requests/DeploySandboxPromptRequest.js +36 -0
- package/serialization/resources/promptVersions/client/requests/index.d.ts +1 -0
- package/serialization/resources/promptVersions/client/requests/index.js +5 -0
- package/serialization/resources/promptVersions/index.d.ts +1 -0
- package/serialization/resources/promptVersions/index.js +17 -0
- package/serialization/resources/workflowDeployments/client/index.d.ts +1 -0
- package/serialization/resources/workflowDeployments/client/index.js +17 -0
- package/serialization/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.d.ts +12 -0
- package/serialization/resources/workflowDeployments/client/requests/PatchedWorkflowReleaseTagUpdateRequest.js +33 -0
- package/serialization/resources/workflowDeployments/client/requests/index.d.ts +1 -0
- package/serialization/resources/workflowDeployments/client/requests/index.js +5 -0
- package/serialization/resources/workflowDeployments/index.d.ts +1 -0
- package/serialization/resources/workflowDeployments/index.js +1 -0
- package/serialization/types/DeploymentReleaseTagDeploymentHistoryItem.d.ts +13 -0
- package/serialization/types/DeploymentReleaseTagDeploymentHistoryItem.js +34 -0
- package/serialization/types/DeploymentReleaseTagRead.d.ts +16 -0
- package/serialization/types/DeploymentReleaseTagRead.js +37 -0
- package/serialization/types/ReleaseTagSource.d.ts +10 -0
- package/serialization/types/ReleaseTagSource.js +31 -0
- package/serialization/types/SubworkflowNodeResult.d.ts +2 -0
- package/serialization/types/SubworkflowNodeResult.js +4 -1
- package/serialization/types/SubworkflowNodeResultData.d.ts +12 -0
- package/serialization/types/SubworkflowNodeResultData.js +33 -0
- package/serialization/types/WorkflowReleaseTagRead.d.ts +16 -0
- package/serialization/types/WorkflowReleaseTagRead.js +37 -0
- package/serialization/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +13 -0
- package/serialization/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.js +34 -0
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.js +6 -0
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.PromptVersions = void 0;
|
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
|
43
|
+
const core = __importStar(require("../../../../core"));
|
|
44
|
+
const serializers = __importStar(require("../../../../serialization"));
|
|
45
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
46
|
+
const errors = __importStar(require("../../../../errors"));
|
|
47
|
+
class PromptVersions {
|
|
48
|
+
constructor(_options) {
|
|
49
|
+
this._options = _options;
|
|
50
|
+
}
|
|
51
|
+
deployPrompt(id, promptId, request = {}, requestOptions) {
|
|
52
|
+
var _a;
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const _response = yield core.fetcher({
|
|
55
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
56
|
+
.default, `v1/sandboxes/${id}/prompts/${promptId}/deploy`),
|
|
57
|
+
method: "POST",
|
|
58
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
59
|
+
contentType: "application/json",
|
|
60
|
+
body: yield serializers.DeploySandboxPromptRequest.jsonOrThrow(request, {
|
|
61
|
+
unrecognizedObjectKeys: "strip",
|
|
62
|
+
}),
|
|
63
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
64
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
65
|
+
});
|
|
66
|
+
if (_response.ok) {
|
|
67
|
+
return yield serializers.DeploymentRead.parseOrThrow(_response.body, {
|
|
68
|
+
unrecognizedObjectKeys: "passthrough",
|
|
69
|
+
allowUnrecognizedUnionMembers: true,
|
|
70
|
+
allowUnrecognizedEnumValues: true,
|
|
71
|
+
breadcrumbsPrefix: ["response"],
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
if (_response.error.reason === "status-code") {
|
|
75
|
+
throw new errors.VellumError({
|
|
76
|
+
statusCode: _response.error.statusCode,
|
|
77
|
+
body: _response.error.body,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
switch (_response.error.reason) {
|
|
81
|
+
case "non-json":
|
|
82
|
+
throw new errors.VellumError({
|
|
83
|
+
statusCode: _response.error.statusCode,
|
|
84
|
+
body: _response.error.rawBody,
|
|
85
|
+
});
|
|
86
|
+
case "timeout":
|
|
87
|
+
throw new errors.VellumTimeoutError();
|
|
88
|
+
case "unknown":
|
|
89
|
+
throw new errors.VellumError({
|
|
90
|
+
message: _response.error.errorMessage,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
_getCustomAuthorizationHeaders() {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
98
|
+
return { X_API_KEY: apiKeyValue };
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.PromptVersions = PromptVersions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -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("./requests"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface DeploySandboxPromptRequest {
|
|
9
|
+
/** The Vellum-generated ID of the Prompt Deployment you'd like to update. Cannot specify both this and prompt_deployment_name. Leave null to create a new Prompt Deployment. */
|
|
10
|
+
promptDeploymentId?: string;
|
|
11
|
+
/** The unique name of the Prompt Deployment you'd like to either create or update. Cannot specify both this and prompt_deployment_id. If provided and matches an existing Prompt Deployment, that Prompt Deployment will be updated. Otherwise, a new Prompt Deployment will be created. */
|
|
12
|
+
promptDeploymentName?: string;
|
|
13
|
+
/** In the event that a new Prompt Deployment is created, this will be the label it's given. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Optionally provide the release tags that you'd like to be associated with the latest release of the created/updated Prompt Deployment. */
|
|
16
|
+
releaseTags?: string[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DeploySandboxPromptRequest } from "./DeploySandboxPromptRequest";
|
|
@@ -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);
|
|
@@ -76,7 +76,7 @@ class Sandboxes {
|
|
|
76
76
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
77
77
|
.default, `v1/sandboxes/${id}/scenarios`),
|
|
78
78
|
method: "POST",
|
|
79
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
79
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
82
82
|
unrecognizedObjectKeys: "strip",
|
|
@@ -126,7 +126,7 @@ class Sandboxes {
|
|
|
126
126
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
127
127
|
.default, `v1/sandboxes/${id}/scenarios/${scenarioId}`),
|
|
128
128
|
method: "DELETE",
|
|
129
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
129
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
130
130
|
contentType: "application/json",
|
|
131
131
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
132
132
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -58,7 +58,7 @@ class TestSuiteRuns {
|
|
|
58
58
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
59
59
|
.default, "v1/test-suite-runs"),
|
|
60
60
|
method: "POST",
|
|
61
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
61
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
62
62
|
contentType: "application/json",
|
|
63
63
|
body: yield serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
64
64
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -106,7 +106,7 @@ class TestSuiteRuns {
|
|
|
106
106
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
107
107
|
.default, `v1/test-suite-runs/${id}`),
|
|
108
108
|
method: "GET",
|
|
109
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
109
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
110
110
|
contentType: "application/json",
|
|
111
111
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
112
112
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -163,7 +163,7 @@ class TestSuiteRuns {
|
|
|
163
163
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
164
164
|
.default, `v1/test-suite-runs/${id}/executions`),
|
|
165
165
|
method: "GET",
|
|
166
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
166
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
queryParameters: _queryParams,
|
|
169
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -69,7 +69,7 @@ class TestSuites {
|
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
70
|
.default, `v1/test-suites/${id}/test-cases`),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -126,7 +126,7 @@ class TestSuites {
|
|
|
126
126
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
127
127
|
.default, `v1/test-suites/${id}/test-cases`),
|
|
128
128
|
method: "POST",
|
|
129
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
129
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
130
130
|
contentType: "application/json",
|
|
131
131
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
132
132
|
unrecognizedObjectKeys: "strip",
|
|
@@ -176,7 +176,7 @@ class TestSuites {
|
|
|
176
176
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
177
177
|
.default, `v1/test-suites/${id}/test-cases/${testCaseId}`),
|
|
178
178
|
method: "DELETE",
|
|
179
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
179
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
180
180
|
contentType: "application/json",
|
|
181
181
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
182
182
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -25,6 +25,20 @@ export declare class WorkflowDeployments {
|
|
|
25
25
|
* await vellum.workflowDeployments.retrieve("id")
|
|
26
26
|
*/
|
|
27
27
|
retrieve(id: string, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a Workflow Release Tag by tag name, associated with a specified Workflow Deployment.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await vellum.workflowDeployments.retrieveWorkflowReleaseTag("id", "name")
|
|
33
|
+
*/
|
|
34
|
+
retrieveWorkflowReleaseTag(id: string, name: string, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowReleaseTagRead>;
|
|
35
|
+
/**
|
|
36
|
+
* Updates an existing Release Tag associated with the specified Workflow Deployment.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await vellum.workflowDeployments.updateWorkflowReleaseTag("id", "name")
|
|
40
|
+
*/
|
|
41
|
+
updateWorkflowReleaseTag(id: string, name: string, request?: Vellum.PatchedWorkflowReleaseTagUpdateRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowReleaseTagRead>;
|
|
28
42
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
29
43
|
X_API_KEY: string;
|
|
30
44
|
}>;
|
|
@@ -69,7 +69,7 @@ class WorkflowDeployments {
|
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
70
|
.default, "v1/workflow-deployments"),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -117,7 +117,7 @@ class WorkflowDeployments {
|
|
|
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/workflow-deployments/${id}`),
|
|
119
119
|
method: "GET",
|
|
120
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.
|
|
120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
121
121
|
contentType: "application/json",
|
|
122
122
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
123
123
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -151,6 +151,103 @@ class WorkflowDeployments {
|
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* Retrieve a Workflow Release Tag by tag name, associated with a specified Workflow Deployment.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* await vellum.workflowDeployments.retrieveWorkflowReleaseTag("id", "name")
|
|
159
|
+
*/
|
|
160
|
+
retrieveWorkflowReleaseTag(id, name, requestOptions) {
|
|
161
|
+
var _a;
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
const _response = yield core.fetcher({
|
|
164
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
165
|
+
.default, `v1/workflow-deployments/${id}/release-tags/${name}`),
|
|
166
|
+
method: "GET",
|
|
167
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
168
|
+
contentType: "application/json",
|
|
169
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
170
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
171
|
+
});
|
|
172
|
+
if (_response.ok) {
|
|
173
|
+
return yield serializers.WorkflowReleaseTagRead.parseOrThrow(_response.body, {
|
|
174
|
+
unrecognizedObjectKeys: "passthrough",
|
|
175
|
+
allowUnrecognizedUnionMembers: true,
|
|
176
|
+
allowUnrecognizedEnumValues: true,
|
|
177
|
+
breadcrumbsPrefix: ["response"],
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
if (_response.error.reason === "status-code") {
|
|
181
|
+
throw new errors.VellumError({
|
|
182
|
+
statusCode: _response.error.statusCode,
|
|
183
|
+
body: _response.error.body,
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
switch (_response.error.reason) {
|
|
187
|
+
case "non-json":
|
|
188
|
+
throw new errors.VellumError({
|
|
189
|
+
statusCode: _response.error.statusCode,
|
|
190
|
+
body: _response.error.rawBody,
|
|
191
|
+
});
|
|
192
|
+
case "timeout":
|
|
193
|
+
throw new errors.VellumTimeoutError();
|
|
194
|
+
case "unknown":
|
|
195
|
+
throw new errors.VellumError({
|
|
196
|
+
message: _response.error.errorMessage,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Updates an existing Release Tag associated with the specified Workflow Deployment.
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* await vellum.workflowDeployments.updateWorkflowReleaseTag("id", "name")
|
|
206
|
+
*/
|
|
207
|
+
updateWorkflowReleaseTag(id, name, request = {}, requestOptions) {
|
|
208
|
+
var _a;
|
|
209
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
+
const _response = yield core.fetcher({
|
|
211
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
212
|
+
.default, `v1/workflow-deployments/${id}/release-tags/${name}`),
|
|
213
|
+
method: "PATCH",
|
|
214
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
215
|
+
contentType: "application/json",
|
|
216
|
+
body: yield serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
217
|
+
unrecognizedObjectKeys: "strip",
|
|
218
|
+
}),
|
|
219
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
220
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
221
|
+
});
|
|
222
|
+
if (_response.ok) {
|
|
223
|
+
return yield serializers.WorkflowReleaseTagRead.parseOrThrow(_response.body, {
|
|
224
|
+
unrecognizedObjectKeys: "passthrough",
|
|
225
|
+
allowUnrecognizedUnionMembers: true,
|
|
226
|
+
allowUnrecognizedEnumValues: true,
|
|
227
|
+
breadcrumbsPrefix: ["response"],
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
if (_response.error.reason === "status-code") {
|
|
231
|
+
throw new errors.VellumError({
|
|
232
|
+
statusCode: _response.error.statusCode,
|
|
233
|
+
body: _response.error.body,
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
switch (_response.error.reason) {
|
|
237
|
+
case "non-json":
|
|
238
|
+
throw new errors.VellumError({
|
|
239
|
+
statusCode: _response.error.statusCode,
|
|
240
|
+
body: _response.error.rawBody,
|
|
241
|
+
});
|
|
242
|
+
case "timeout":
|
|
243
|
+
throw new errors.VellumTimeoutError();
|
|
244
|
+
case "unknown":
|
|
245
|
+
throw new errors.VellumError({
|
|
246
|
+
message: _response.error.errorMessage,
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
}
|
|
154
251
|
_getCustomAuthorizationHeaders() {
|
|
155
252
|
return __awaiter(this, void 0, void 0, function* () {
|
|
156
253
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface PatchedWorkflowReleaseTagUpdateRequest {
|
|
9
|
+
/** The ID of the Workflow Deployment History Item to tag */
|
|
10
|
+
historyItemId?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface DeploymentReleaseTagRead {
|
|
6
|
+
/** The name of the Release Tag */
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* The source of how the Release Tag was originally created
|
|
10
|
+
*
|
|
11
|
+
* - `SYSTEM` - System
|
|
12
|
+
* - `USER` - User
|
|
13
|
+
*/
|
|
14
|
+
source: Vellum.ReleaseTagSource;
|
|
15
|
+
/** The Deployment History Item that this Release Tag is associated with */
|
|
16
|
+
historyItem: Vellum.DeploymentReleaseTagDeploymentHistoryItem;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* - `SYSTEM` - System
|
|
6
|
+
* - `USER` - User
|
|
7
|
+
*/
|
|
8
|
+
export declare type ReleaseTagSource = "SYSTEM" | "USER";
|
|
9
|
+
export declare const ReleaseTagSource: {
|
|
10
|
+
readonly System: "SYSTEM";
|
|
11
|
+
readonly User: "USER";
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ReleaseTagSource = void 0;
|
|
7
|
+
exports.ReleaseTagSource = {
|
|
8
|
+
System: "SYSTEM",
|
|
9
|
+
User: "USER",
|
|
10
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
4
5
|
/**
|
|
5
6
|
* A Node Result Event emitted from a Subworkflow Node.
|
|
6
7
|
*/
|
|
7
8
|
export interface SubworkflowNodeResult {
|
|
9
|
+
data?: Vellum.SubworkflowNodeResultData;
|
|
8
10
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface WorkflowReleaseTagRead {
|
|
6
|
+
/** The name of the Release Tag */
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* The source of how the Release Tag was originally created
|
|
10
|
+
*
|
|
11
|
+
* - `SYSTEM` - System
|
|
12
|
+
* - `USER` - User
|
|
13
|
+
*/
|
|
14
|
+
source: Vellum.ReleaseTagSource;
|
|
15
|
+
/** The Workflow Deployment History Item that this Release Tag is associated with */
|
|
16
|
+
historyItem: Vellum.WorkflowReleaseTagWorkflowDeploymentHistoryItem;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface WorkflowReleaseTagWorkflowDeploymentHistoryItem {
|
|
5
|
+
/** The ID of the Workflow Deployment History Item */
|
|
6
|
+
id: string;
|
|
7
|
+
/** The timestamp representing when this History Item was created */
|
|
8
|
+
timestamp: Date;
|
|
9
|
+
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export * from "./ConditionalNodeResult";
|
|
|
36
36
|
export * from "./ConditionalNodeResultData";
|
|
37
37
|
export * from "./DeploymentProviderPayloadResponse";
|
|
38
38
|
export * from "./DeploymentRead";
|
|
39
|
+
export * from "./DeploymentReleaseTagDeploymentHistoryItem";
|
|
40
|
+
export * from "./DeploymentReleaseTagRead";
|
|
39
41
|
export * from "./DocumentDocumentToDocumentIndex";
|
|
40
42
|
export * from "./DocumentIndexChunking";
|
|
41
43
|
export * from "./DocumentIndexChunkingRequest";
|
|
@@ -199,6 +201,7 @@ export * from "./RejectedExecutePromptResponse";
|
|
|
199
201
|
export * from "./RejectedExecuteWorkflowWorkflowResultEvent";
|
|
200
202
|
export * from "./RejectedPromptExecutionMeta";
|
|
201
203
|
export * from "./RejectedWorkflowNodeResultEvent";
|
|
204
|
+
export * from "./ReleaseTagSource";
|
|
202
205
|
export * from "./SandboxScenario";
|
|
203
206
|
export * from "./ScenarioInput";
|
|
204
207
|
export * from "./ScenarioInputChatHistoryVariableValue";
|
|
@@ -238,6 +241,7 @@ export * from "./SubmitCompletionActualsErrorResponse";
|
|
|
238
241
|
export * from "./SubmitWorkflowExecutionActualRequest";
|
|
239
242
|
export * from "./SubworkflowEnum";
|
|
240
243
|
export * from "./SubworkflowNodeResult";
|
|
244
|
+
export * from "./SubworkflowNodeResultData";
|
|
241
245
|
export * from "./TemplatingNodeArrayResult";
|
|
242
246
|
export * from "./TemplatingNodeChatHistoryResult";
|
|
243
247
|
export * from "./TemplatingNodeErrorResult";
|
|
@@ -342,6 +346,8 @@ export * from "./WorkflowOutputJson";
|
|
|
342
346
|
export * from "./WorkflowOutputNumber";
|
|
343
347
|
export * from "./WorkflowOutputSearchResults";
|
|
344
348
|
export * from "./WorkflowOutputString";
|
|
349
|
+
export * from "./WorkflowReleaseTagRead";
|
|
350
|
+
export * from "./WorkflowReleaseTagWorkflowDeploymentHistoryItem";
|
|
345
351
|
export * from "./WorkflowRequestChatHistoryInputRequest";
|
|
346
352
|
export * from "./WorkflowRequestInputRequest";
|
|
347
353
|
export * from "./WorkflowRequestJsonInputRequest";
|
package/api/types/index.js
CHANGED
|
@@ -52,6 +52,8 @@ __exportStar(require("./ConditionalNodeResult"), exports);
|
|
|
52
52
|
__exportStar(require("./ConditionalNodeResultData"), exports);
|
|
53
53
|
__exportStar(require("./DeploymentProviderPayloadResponse"), exports);
|
|
54
54
|
__exportStar(require("./DeploymentRead"), exports);
|
|
55
|
+
__exportStar(require("./DeploymentReleaseTagDeploymentHistoryItem"), exports);
|
|
56
|
+
__exportStar(require("./DeploymentReleaseTagRead"), exports);
|
|
55
57
|
__exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
|
|
56
58
|
__exportStar(require("./DocumentIndexChunking"), exports);
|
|
57
59
|
__exportStar(require("./DocumentIndexChunkingRequest"), exports);
|
|
@@ -215,6 +217,7 @@ __exportStar(require("./RejectedExecutePromptResponse"), exports);
|
|
|
215
217
|
__exportStar(require("./RejectedExecuteWorkflowWorkflowResultEvent"), exports);
|
|
216
218
|
__exportStar(require("./RejectedPromptExecutionMeta"), exports);
|
|
217
219
|
__exportStar(require("./RejectedWorkflowNodeResultEvent"), exports);
|
|
220
|
+
__exportStar(require("./ReleaseTagSource"), exports);
|
|
218
221
|
__exportStar(require("./SandboxScenario"), exports);
|
|
219
222
|
__exportStar(require("./ScenarioInput"), exports);
|
|
220
223
|
__exportStar(require("./ScenarioInputChatHistoryVariableValue"), exports);
|
|
@@ -254,6 +257,7 @@ __exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
|
|
|
254
257
|
__exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
|
|
255
258
|
__exportStar(require("./SubworkflowEnum"), exports);
|
|
256
259
|
__exportStar(require("./SubworkflowNodeResult"), exports);
|
|
260
|
+
__exportStar(require("./SubworkflowNodeResultData"), exports);
|
|
257
261
|
__exportStar(require("./TemplatingNodeArrayResult"), exports);
|
|
258
262
|
__exportStar(require("./TemplatingNodeChatHistoryResult"), exports);
|
|
259
263
|
__exportStar(require("./TemplatingNodeErrorResult"), exports);
|
|
@@ -358,6 +362,8 @@ __exportStar(require("./WorkflowOutputJson"), exports);
|
|
|
358
362
|
__exportStar(require("./WorkflowOutputNumber"), exports);
|
|
359
363
|
__exportStar(require("./WorkflowOutputSearchResults"), exports);
|
|
360
364
|
__exportStar(require("./WorkflowOutputString"), exports);
|
|
365
|
+
__exportStar(require("./WorkflowReleaseTagRead"), exports);
|
|
366
|
+
__exportStar(require("./WorkflowReleaseTagWorkflowDeploymentHistoryItem"), exports);
|
|
361
367
|
__exportStar(require("./WorkflowRequestChatHistoryInputRequest"), exports);
|
|
362
368
|
__exportStar(require("./WorkflowRequestInputRequest"), exports);
|
|
363
369
|
__exportStar(require("./WorkflowRequestJsonInputRequest"), exports);
|