vellum-ai 0.14.34 → 0.14.36
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 -3
- package/Client.js +38 -38
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +7 -7
- 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/index.d.ts +1 -1
- package/api/resources/index.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 +1 -1
- package/api/resources/releaseReviews/client/Client.d.ts +11 -0
- package/api/resources/releaseReviews/client/Client.js +54 -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 +8 -8
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/resources/workflows/client/Client.js +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/types/PromptDeploymentRelease.d.ts +15 -0
- package/api/types/PromptDeploymentRelease.js +5 -0
- package/api/types/PromptDeploymentReleasePromptDeployment.d.ts +6 -0
- package/api/types/PromptDeploymentReleasePromptDeployment.js +5 -0
- package/api/types/PromptDeploymentReleasePromptVersion.d.ts +6 -0
- package/api/types/PromptDeploymentReleasePromptVersion.js +5 -0
- package/api/types/WorkflowDeploymentRelease.d.ts +1 -0
- package/api/types/WorkflowDeploymentReleaseWorkflowDeployment.d.ts +6 -0
- package/api/types/WorkflowDeploymentReleaseWorkflowDeployment.js +5 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +38 -38
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +7 -7
- 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/index.d.ts +1 -1
- package/dist/api/resources/index.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 +1 -1
- package/dist/api/resources/releaseReviews/client/Client.d.ts +11 -0
- package/dist/api/resources/releaseReviews/client/Client.js +54 -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 +8 -8
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/resources/workflows/client/Client.js +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/types/PromptDeploymentRelease.d.ts +15 -0
- package/dist/api/types/PromptDeploymentRelease.js +5 -0
- package/dist/api/types/PromptDeploymentReleasePromptDeployment.d.ts +6 -0
- package/dist/api/types/PromptDeploymentReleasePromptDeployment.js +5 -0
- package/dist/api/types/PromptDeploymentReleasePromptVersion.d.ts +6 -0
- package/dist/api/types/PromptDeploymentReleasePromptVersion.js +5 -0
- package/dist/api/types/WorkflowDeploymentRelease.d.ts +1 -0
- package/dist/api/types/WorkflowDeploymentReleaseWorkflowDeployment.d.ts +6 -0
- package/dist/api/types/WorkflowDeploymentReleaseWorkflowDeployment.js +5 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/types/PromptDeploymentRelease.d.ts +26 -0
- package/dist/serialization/types/PromptDeploymentRelease.js +57 -0
- package/dist/serialization/types/PromptDeploymentReleasePromptDeployment.d.ts +12 -0
- package/dist/serialization/types/PromptDeploymentReleasePromptDeployment.js +43 -0
- package/dist/serialization/types/PromptDeploymentReleasePromptVersion.d.ts +12 -0
- package/dist/serialization/types/PromptDeploymentReleasePromptVersion.js +43 -0
- package/dist/serialization/types/WorkflowDeploymentRelease.d.ts +2 -0
- package/dist/serialization/types/WorkflowDeploymentRelease.js +2 -0
- package/dist/serialization/types/WorkflowDeploymentReleaseWorkflowDeployment.d.ts +12 -0
- package/dist/serialization/types/WorkflowDeploymentReleaseWorkflowDeployment.js +43 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +144 -73
- package/serialization/types/PromptDeploymentRelease.d.ts +26 -0
- package/serialization/types/PromptDeploymentRelease.js +57 -0
- package/serialization/types/PromptDeploymentReleasePromptDeployment.d.ts +12 -0
- package/serialization/types/PromptDeploymentReleasePromptDeployment.js +43 -0
- package/serialization/types/PromptDeploymentReleasePromptVersion.d.ts +12 -0
- package/serialization/types/PromptDeploymentReleasePromptVersion.js +43 -0
- package/serialization/types/WorkflowDeploymentRelease.d.ts +2 -0
- package/serialization/types/WorkflowDeploymentRelease.js +2 -0
- package/serialization/types/WorkflowDeploymentReleaseWorkflowDeployment.d.ts +12 -0
- package/serialization/types/WorkflowDeploymentReleaseWorkflowDeployment.js +43 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.workspaces = exports.workspaceSecrets = exports.workflows = exports.
|
|
39
|
+
exports.workspaces = exports.workspaceSecrets = exports.workflows = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.organizations = exports.mlModels = exports.metricDefinitions = exports.documents = exports.releaseReviews = exports.containerImages = exports.adHoc = 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"));
|
|
@@ -49,6 +49,7 @@ exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
|
|
|
49
49
|
__exportStar(require("./workflowSandboxes/types"), exports);
|
|
50
50
|
exports.adHoc = __importStar(require("./adHoc"));
|
|
51
51
|
exports.containerImages = __importStar(require("./containerImages"));
|
|
52
|
+
exports.releaseReviews = __importStar(require("./releaseReviews"));
|
|
52
53
|
exports.documents = __importStar(require("./documents"));
|
|
53
54
|
exports.metricDefinitions = __importStar(require("./metricDefinitions"));
|
|
54
55
|
exports.mlModels = __importStar(require("./mlModels"));
|
|
@@ -57,7 +58,6 @@ exports.prompts = __importStar(require("./prompts"));
|
|
|
57
58
|
exports.sandboxes = __importStar(require("./sandboxes"));
|
|
58
59
|
exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
|
|
59
60
|
exports.testSuites = __importStar(require("./testSuites"));
|
|
60
|
-
exports.releaseReviews = __importStar(require("./releaseReviews"));
|
|
61
61
|
exports.workflows = __importStar(require("./workflows"));
|
|
62
62
|
exports.workspaceSecrets = __importStar(require("./workspaceSecrets"));
|
|
63
63
|
exports.workspaces = __importStar(require("./workspaces"));
|
|
@@ -79,7 +79,7 @@ class MetricDefinitions {
|
|
|
79
79
|
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)
|
|
80
80
|
.predict, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
|
|
81
81
|
method: "POST",
|
|
82
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
82
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
requestType: "json",
|
|
85
85
|
body: serializers.ExecuteMetricDefinition.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -131,7 +131,7 @@ class MetricDefinitions {
|
|
|
131
131
|
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)
|
|
132
132
|
.default, `v1/metric-definitions/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
|
|
133
133
|
method: "GET",
|
|
134
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
134
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
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,
|
|
@@ -74,7 +74,7 @@ class MlModels {
|
|
|
74
74
|
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)
|
|
75
75
|
.default, `v1/ml-models/${encodeURIComponent(id)}`),
|
|
76
76
|
method: "GET",
|
|
77
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
77
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -73,7 +73,7 @@ class Organizations {
|
|
|
73
73
|
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)
|
|
74
74
|
.default, "v1/organizations/identity"),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
76
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
requestType: "json",
|
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -84,7 +84,7 @@ class Prompts {
|
|
|
84
84
|
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)
|
|
85
85
|
.default, `v1/prompts/${encodeURIComponent(id)}/pull`),
|
|
86
86
|
method: "GET",
|
|
87
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
87
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, Accept: "application/json" }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
queryParameters: _queryParams,
|
|
90
90
|
requestType: "json",
|
|
@@ -25,6 +25,17 @@ export declare namespace ReleaseReviews {
|
|
|
25
25
|
export declare class ReleaseReviews {
|
|
26
26
|
protected readonly _options: ReleaseReviews.Options;
|
|
27
27
|
constructor(_options: ReleaseReviews.Options);
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a specific Prompt Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
|
30
|
+
*
|
|
31
|
+
* @param {string} id - A UUID string identifying this deployment.
|
|
32
|
+
* @param {string} releaseIdOrReleaseTag - Either the UUID of Prompt Deployment Release you'd like to retrieve, or the name of a Release Tag that's pointing to the Prompt Deployment Release you'd like to retrieve.
|
|
33
|
+
* @param {ReleaseReviews.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* await client.releaseReviews.retrievePromptDeploymentRelease("id", "release_id_or_release_tag")
|
|
37
|
+
*/
|
|
38
|
+
retrievePromptDeploymentRelease(id: string, releaseIdOrReleaseTag: string, requestOptions?: ReleaseReviews.RequestOptions): Promise<Vellum.PromptDeploymentRelease>;
|
|
28
39
|
/**
|
|
29
40
|
* Retrieve a specific Workflow Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
|
30
41
|
*
|
|
@@ -58,6 +58,59 @@ class ReleaseReviews {
|
|
|
58
58
|
constructor(_options) {
|
|
59
59
|
this._options = _options;
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Retrieve a specific Prompt Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
|
63
|
+
*
|
|
64
|
+
* @param {string} id - A UUID string identifying this deployment.
|
|
65
|
+
* @param {string} releaseIdOrReleaseTag - Either the UUID of Prompt Deployment Release you'd like to retrieve, or the name of a Release Tag that's pointing to the Prompt Deployment Release you'd like to retrieve.
|
|
66
|
+
* @param {ReleaseReviews.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.releaseReviews.retrievePromptDeploymentRelease("id", "release_id_or_release_tag")
|
|
70
|
+
*/
|
|
71
|
+
retrievePromptDeploymentRelease(id, releaseIdOrReleaseTag, requestOptions) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
var _a, _b;
|
|
74
|
+
const _response = yield core.fetcher({
|
|
75
|
+
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)
|
|
76
|
+
.default, `v1/deployments/${encodeURIComponent(id)}/releases/${encodeURIComponent(releaseIdOrReleaseTag)}`),
|
|
77
|
+
method: "GET",
|
|
78
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
79
|
+
contentType: "application/json",
|
|
80
|
+
requestType: "json",
|
|
81
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
82
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
|
+
});
|
|
85
|
+
if (_response.ok) {
|
|
86
|
+
return serializers.PromptDeploymentRelease.parseOrThrow(_response.body, {
|
|
87
|
+
unrecognizedObjectKeys: "passthrough",
|
|
88
|
+
allowUnrecognizedUnionMembers: true,
|
|
89
|
+
allowUnrecognizedEnumValues: true,
|
|
90
|
+
breadcrumbsPrefix: ["response"],
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
if (_response.error.reason === "status-code") {
|
|
94
|
+
throw new errors.VellumError({
|
|
95
|
+
statusCode: _response.error.statusCode,
|
|
96
|
+
body: _response.error.body,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
switch (_response.error.reason) {
|
|
100
|
+
case "non-json":
|
|
101
|
+
throw new errors.VellumError({
|
|
102
|
+
statusCode: _response.error.statusCode,
|
|
103
|
+
body: _response.error.rawBody,
|
|
104
|
+
});
|
|
105
|
+
case "timeout":
|
|
106
|
+
throw new errors.VellumTimeoutError("Timeout exceeded when calling GET /v1/deployments/{id}/releases/{release_id_or_release_tag}.");
|
|
107
|
+
case "unknown":
|
|
108
|
+
throw new errors.VellumError({
|
|
109
|
+
message: _response.error.errorMessage,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
61
114
|
/**
|
|
62
115
|
* Retrieve a specific Workflow Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
|
63
116
|
*
|
|
@@ -75,7 +128,7 @@ class ReleaseReviews {
|
|
|
75
128
|
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)
|
|
76
129
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/releases/${encodeURIComponent(releaseIdOrReleaseTag)}`),
|
|
77
130
|
method: "GET",
|
|
78
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
131
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
79
132
|
contentType: "application/json",
|
|
80
133
|
requestType: "json",
|
|
81
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -74,7 +74,7 @@ class Sandboxes {
|
|
|
74
74
|
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)
|
|
75
75
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
|
|
76
76
|
method: "POST",
|
|
77
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
77
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -161,7 +161,7 @@ class Sandboxes {
|
|
|
161
161
|
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)
|
|
162
162
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
|
|
163
163
|
method: "POST",
|
|
164
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
164
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
165
165
|
contentType: "application/json",
|
|
166
166
|
requestType: "json",
|
|
167
167
|
body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -215,7 +215,7 @@ class Sandboxes {
|
|
|
215
215
|
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)
|
|
216
216
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
|
|
217
217
|
method: "DELETE",
|
|
218
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
218
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
219
219
|
contentType: "application/json",
|
|
220
220
|
requestType: "json",
|
|
221
221
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -81,7 +81,7 @@ class TestSuiteRuns {
|
|
|
81
81
|
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)
|
|
82
82
|
.default, "v1/test-suite-runs"),
|
|
83
83
|
method: "POST",
|
|
84
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
84
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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
|
body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -134,7 +134,7 @@ class TestSuiteRuns {
|
|
|
134
134
|
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)
|
|
135
135
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
|
|
136
136
|
method: "GET",
|
|
137
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
137
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
requestType: "json",
|
|
140
140
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -201,7 +201,7 @@ class TestSuiteRuns {
|
|
|
201
201
|
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)
|
|
202
202
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
|
|
203
203
|
method: "GET",
|
|
204
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
204
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
queryParameters: _queryParams,
|
|
207
207
|
requestType: "json",
|
|
@@ -83,7 +83,7 @@ class TestSuites {
|
|
|
83
83
|
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)
|
|
84
84
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
85
85
|
method: "GET",
|
|
86
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
86
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
queryParameters: _queryParams,
|
|
89
89
|
requestType: "json",
|
|
@@ -164,7 +164,7 @@ class TestSuites {
|
|
|
164
164
|
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)
|
|
165
165
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
166
166
|
method: "POST",
|
|
167
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
167
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
requestType: "json",
|
|
170
170
|
body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -211,7 +211,7 @@ class TestSuites {
|
|
|
211
211
|
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)
|
|
212
212
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
|
|
213
213
|
method: "POST",
|
|
214
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
214
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
215
215
|
contentType: "application/x-ndjson",
|
|
216
216
|
requestType: "json",
|
|
217
217
|
body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
|
|
@@ -278,7 +278,7 @@ class TestSuites {
|
|
|
278
278
|
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)
|
|
279
279
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
|
|
280
280
|
method: "DELETE",
|
|
281
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
281
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
282
282
|
contentType: "application/json",
|
|
283
283
|
requestType: "json",
|
|
284
284
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -90,7 +90,7 @@ class WorkflowDeployments {
|
|
|
90
90
|
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)
|
|
91
91
|
.default, "v1/workflow-deployments"),
|
|
92
92
|
method: "GET",
|
|
93
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
93
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
96
96
|
requestType: "json",
|
|
@@ -143,7 +143,7 @@ class WorkflowDeployments {
|
|
|
143
143
|
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)
|
|
144
144
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
|
|
145
145
|
method: "GET",
|
|
146
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
146
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
147
147
|
contentType: "application/json",
|
|
148
148
|
requestType: "json",
|
|
149
149
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -205,7 +205,7 @@ class WorkflowDeployments {
|
|
|
205
205
|
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)
|
|
206
206
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/execution-events`),
|
|
207
207
|
method: "GET",
|
|
208
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
208
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
209
209
|
contentType: "application/json",
|
|
210
210
|
queryParameters: _queryParams,
|
|
211
211
|
requestType: "json",
|
|
@@ -257,7 +257,7 @@ class WorkflowDeployments {
|
|
|
257
257
|
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)
|
|
258
258
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/execution-events/${encodeURIComponent(executionId)}`),
|
|
259
259
|
method: "GET",
|
|
260
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
260
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
261
261
|
contentType: "application/json",
|
|
262
262
|
requestType: "json",
|
|
263
263
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -310,7 +310,7 @@ class WorkflowDeployments {
|
|
|
310
310
|
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)
|
|
311
311
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
|
|
312
312
|
method: "GET",
|
|
313
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
313
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
314
314
|
contentType: "application/json",
|
|
315
315
|
requestType: "json",
|
|
316
316
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -379,7 +379,7 @@ class WorkflowDeployments {
|
|
|
379
379
|
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)
|
|
380
380
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
|
|
381
381
|
method: "GET",
|
|
382
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
382
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
383
383
|
contentType: "application/json",
|
|
384
384
|
queryParameters: _queryParams,
|
|
385
385
|
requestType: "json",
|
|
@@ -433,7 +433,7 @@ class WorkflowDeployments {
|
|
|
433
433
|
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)
|
|
434
434
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
435
435
|
method: "GET",
|
|
436
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
436
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
437
437
|
contentType: "application/json",
|
|
438
438
|
requestType: "json",
|
|
439
439
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -487,7 +487,7 @@ class WorkflowDeployments {
|
|
|
487
487
|
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)
|
|
488
488
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
489
489
|
method: "PATCH",
|
|
490
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
490
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
491
491
|
contentType: "application/json",
|
|
492
492
|
requestType: "json",
|
|
493
493
|
body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -74,7 +74,7 @@ class WorkflowSandboxes {
|
|
|
74
74
|
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)
|
|
75
75
|
.default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
|
|
76
76
|
method: "POST",
|
|
77
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
77
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -143,7 +143,7 @@ class WorkflowSandboxes {
|
|
|
143
143
|
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)
|
|
144
144
|
.default, "v1/workflow-sandboxes/examples"),
|
|
145
145
|
method: "GET",
|
|
146
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
146
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
147
147
|
contentType: "application/json",
|
|
148
148
|
queryParameters: _queryParams,
|
|
149
149
|
requestType: "json",
|
|
@@ -84,7 +84,7 @@ class Workflows {
|
|
|
84
84
|
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)
|
|
85
85
|
.default, `v1/workflows/${encodeURIComponent(id)}/pull`),
|
|
86
86
|
method: "GET",
|
|
87
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
87
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
queryParameters: _queryParams,
|
|
90
90
|
requestType: "json",
|
|
@@ -159,7 +159,7 @@ class Workflows {
|
|
|
159
159
|
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)
|
|
160
160
|
.default, "v1/workflows/push"),
|
|
161
161
|
method: "POST",
|
|
162
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
162
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
163
163
|
requestType: "file",
|
|
164
164
|
duplex: _maybeEncodedRequest.duplex,
|
|
165
165
|
body: _maybeEncodedRequest.body,
|
|
@@ -74,7 +74,7 @@ class WorkspaceSecrets {
|
|
|
74
74
|
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)
|
|
75
75
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
76
76
|
method: "GET",
|
|
77
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
77
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -127,7 +127,7 @@ class WorkspaceSecrets {
|
|
|
127
127
|
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)
|
|
128
128
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
129
129
|
method: "PATCH",
|
|
130
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
130
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
131
131
|
contentType: "application/json",
|
|
132
132
|
requestType: "json",
|
|
133
133
|
body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
|
|
@@ -73,7 +73,7 @@ class Workspaces {
|
|
|
73
73
|
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)
|
|
74
74
|
.default, "v1/workspaces/identity"),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
76
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.36", "User-Agent": "vellum-ai/0.14.36", "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),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
requestType: "json",
|
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
export interface PromptDeploymentRelease {
|
|
6
|
+
id: string;
|
|
7
|
+
created: Date;
|
|
8
|
+
environment: Vellum.ReleaseEnvironment;
|
|
9
|
+
createdBy?: Vellum.ReleaseCreatedBy;
|
|
10
|
+
promptVersion: Vellum.PromptDeploymentReleasePromptVersion;
|
|
11
|
+
deployment: Vellum.PromptDeploymentReleasePromptDeployment;
|
|
12
|
+
description?: string;
|
|
13
|
+
releaseTags: Vellum.ReleaseReleaseTag[];
|
|
14
|
+
reviews: Vellum.SlimReleaseReview[];
|
|
15
|
+
}
|
|
@@ -8,6 +8,7 @@ export interface WorkflowDeploymentRelease {
|
|
|
8
8
|
environment: Vellum.ReleaseEnvironment;
|
|
9
9
|
createdBy?: Vellum.ReleaseCreatedBy;
|
|
10
10
|
workflowVersion: Vellum.WorkflowDeploymentReleaseWorkflowVersion;
|
|
11
|
+
deployment: Vellum.WorkflowDeploymentReleaseWorkflowDeployment;
|
|
11
12
|
description?: string;
|
|
12
13
|
releaseTags: Vellum.ReleaseReleaseTag[];
|
|
13
14
|
reviews: Vellum.SlimReleaseReview[];
|
|
@@ -292,6 +292,9 @@ export * from "./PromptBlockState";
|
|
|
292
292
|
export * from "./PromptDeploymentExpandMetaRequest";
|
|
293
293
|
export * from "./PromptDeploymentInputRequest";
|
|
294
294
|
export * from "./PromptDeploymentParentContext";
|
|
295
|
+
export * from "./PromptDeploymentRelease";
|
|
296
|
+
export * from "./PromptDeploymentReleasePromptDeployment";
|
|
297
|
+
export * from "./PromptDeploymentReleasePromptVersion";
|
|
295
298
|
export * from "./PromptExecConfig";
|
|
296
299
|
export * from "./PromptExecutionMeta";
|
|
297
300
|
export * from "./PromptNodeExecutionMeta";
|
|
@@ -501,6 +504,7 @@ export * from "./WorkflowDeploymentHistoryItem";
|
|
|
501
504
|
export * from "./WorkflowDeploymentParentContext";
|
|
502
505
|
export * from "./WorkflowDeploymentRead";
|
|
503
506
|
export * from "./WorkflowDeploymentRelease";
|
|
507
|
+
export * from "./WorkflowDeploymentReleaseWorkflowDeployment";
|
|
504
508
|
export * from "./WorkflowDeploymentReleaseWorkflowVersion";
|
|
505
509
|
export * from "./WorkflowError";
|
|
506
510
|
export * from "./WorkflowEventDisplayContext";
|
package/dist/api/types/index.js
CHANGED
|
@@ -308,6 +308,9 @@ __exportStar(require("./PromptBlockState"), exports);
|
|
|
308
308
|
__exportStar(require("./PromptDeploymentExpandMetaRequest"), exports);
|
|
309
309
|
__exportStar(require("./PromptDeploymentInputRequest"), exports);
|
|
310
310
|
__exportStar(require("./PromptDeploymentParentContext"), exports);
|
|
311
|
+
__exportStar(require("./PromptDeploymentRelease"), exports);
|
|
312
|
+
__exportStar(require("./PromptDeploymentReleasePromptDeployment"), exports);
|
|
313
|
+
__exportStar(require("./PromptDeploymentReleasePromptVersion"), exports);
|
|
311
314
|
__exportStar(require("./PromptExecConfig"), exports);
|
|
312
315
|
__exportStar(require("./PromptExecutionMeta"), exports);
|
|
313
316
|
__exportStar(require("./PromptNodeExecutionMeta"), exports);
|
|
@@ -517,6 +520,7 @@ __exportStar(require("./WorkflowDeploymentHistoryItem"), exports);
|
|
|
517
520
|
__exportStar(require("./WorkflowDeploymentParentContext"), exports);
|
|
518
521
|
__exportStar(require("./WorkflowDeploymentRead"), exports);
|
|
519
522
|
__exportStar(require("./WorkflowDeploymentRelease"), exports);
|
|
523
|
+
__exportStar(require("./WorkflowDeploymentReleaseWorkflowDeployment"), exports);
|
|
520
524
|
__exportStar(require("./WorkflowDeploymentReleaseWorkflowVersion"), exports);
|
|
521
525
|
__exportStar(require("./WorkflowError"), exports);
|
|
522
526
|
__exportStar(require("./WorkflowEventDisplayContext"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { ReleaseEnvironment } from "./ReleaseEnvironment";
|
|
8
|
+
import { ReleaseCreatedBy } from "./ReleaseCreatedBy";
|
|
9
|
+
import { PromptDeploymentReleasePromptVersion } from "./PromptDeploymentReleasePromptVersion";
|
|
10
|
+
import { PromptDeploymentReleasePromptDeployment } from "./PromptDeploymentReleasePromptDeployment";
|
|
11
|
+
import { ReleaseReleaseTag } from "./ReleaseReleaseTag";
|
|
12
|
+
import { SlimReleaseReview } from "./SlimReleaseReview";
|
|
13
|
+
export declare const PromptDeploymentRelease: core.serialization.ObjectSchema<serializers.PromptDeploymentRelease.Raw, Vellum.PromptDeploymentRelease>;
|
|
14
|
+
export declare namespace PromptDeploymentRelease {
|
|
15
|
+
interface Raw {
|
|
16
|
+
id: string;
|
|
17
|
+
created: string;
|
|
18
|
+
environment: ReleaseEnvironment.Raw;
|
|
19
|
+
created_by?: ReleaseCreatedBy.Raw | null;
|
|
20
|
+
prompt_version: PromptDeploymentReleasePromptVersion.Raw;
|
|
21
|
+
deployment: PromptDeploymentReleasePromptDeployment.Raw;
|
|
22
|
+
description?: string | null;
|
|
23
|
+
release_tags: ReleaseReleaseTag.Raw[];
|
|
24
|
+
reviews: SlimReleaseReview.Raw[];
|
|
25
|
+
}
|
|
26
|
+
}
|