vellum-ai 0.14.42 → 0.14.44
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 +1 -1
- package/Client.js +12 -12
- package/api/resources/adHoc/client/Client.d.ts +1 -1
- package/api/resources/adHoc/client/Client.js +3 -3
- package/api/resources/containerImages/client/Client.d.ts +1 -1
- package/api/resources/containerImages/client/Client.js +5 -5
- package/api/resources/deployments/client/Client.d.ts +1 -1
- package/api/resources/deployments/client/Client.js +8 -8
- package/api/resources/documentIndexes/client/Client.d.ts +1 -1
- package/api/resources/documentIndexes/client/Client.js +9 -9
- package/api/resources/documents/client/Client.d.ts +1 -1
- package/api/resources/documents/client/Client.js +6 -6
- package/api/resources/folderEntities/client/Client.d.ts +1 -1
- package/api/resources/folderEntities/client/Client.js +3 -3
- package/api/resources/metricDefinitions/client/Client.d.ts +1 -1
- package/api/resources/metricDefinitions/client/Client.js +3 -3
- package/api/resources/mlModels/client/Client.d.ts +1 -1
- package/api/resources/mlModels/client/Client.js +2 -2
- package/api/resources/organizations/client/Client.d.ts +1 -1
- package/api/resources/organizations/client/Client.js +2 -2
- package/api/resources/prompts/client/Client.d.ts +28 -1
- package/api/resources/prompts/client/Client.js +79 -2
- package/api/resources/prompts/client/requests/PromptPush.d.ts +27 -0
- package/api/resources/prompts/client/requests/PromptPush.js +5 -0
- package/api/resources/prompts/client/requests/index.d.ts +1 -0
- package/api/resources/releaseReviews/client/Client.d.ts +1 -1
- package/api/resources/releaseReviews/client/Client.js +3 -3
- package/api/resources/sandboxes/client/Client.d.ts +1 -1
- package/api/resources/sandboxes/client/Client.js +4 -4
- package/api/resources/testSuiteRuns/client/Client.d.ts +1 -1
- package/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/api/resources/testSuites/client/Client.d.ts +1 -1
- package/api/resources/testSuites/client/Client.js +5 -5
- package/api/resources/workflowDeployments/client/Client.d.ts +1 -1
- package/api/resources/workflowDeployments/client/Client.js +9 -9
- package/api/resources/workflowSandboxes/client/Client.d.ts +1 -1
- package/api/resources/workflowSandboxes/client/Client.js +3 -3
- package/api/resources/workflows/client/Client.d.ts +1 -1
- package/api/resources/workflows/client/Client.js +3 -3
- package/api/resources/workspaceSecrets/client/Client.d.ts +1 -1
- package/api/resources/workspaceSecrets/client/Client.js +3 -3
- package/api/resources/workspaces/client/Client.d.ts +1 -1
- package/api/resources/workspaces/client/Client.js +2 -2
- package/api/types/DeploymentRead.d.ts +2 -2
- package/api/types/PromptPushResponse.d.ts +7 -0
- package/api/types/PromptPushResponse.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/Client.d.ts +1 -1
- package/dist/Client.js +12 -12
- package/dist/api/resources/adHoc/client/Client.d.ts +1 -1
- package/dist/api/resources/adHoc/client/Client.js +3 -3
- package/dist/api/resources/containerImages/client/Client.d.ts +1 -1
- package/dist/api/resources/containerImages/client/Client.js +5 -5
- package/dist/api/resources/deployments/client/Client.d.ts +1 -1
- package/dist/api/resources/deployments/client/Client.js +8 -8
- package/dist/api/resources/documentIndexes/client/Client.d.ts +1 -1
- package/dist/api/resources/documentIndexes/client/Client.js +9 -9
- package/dist/api/resources/documents/client/Client.d.ts +1 -1
- package/dist/api/resources/documents/client/Client.js +6 -6
- package/dist/api/resources/folderEntities/client/Client.d.ts +1 -1
- package/dist/api/resources/folderEntities/client/Client.js +3 -3
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +1 -1
- package/dist/api/resources/metricDefinitions/client/Client.js +3 -3
- package/dist/api/resources/mlModels/client/Client.d.ts +1 -1
- package/dist/api/resources/mlModels/client/Client.js +2 -2
- package/dist/api/resources/organizations/client/Client.d.ts +1 -1
- package/dist/api/resources/organizations/client/Client.js +2 -2
- package/dist/api/resources/prompts/client/Client.d.ts +28 -1
- package/dist/api/resources/prompts/client/Client.js +79 -2
- package/dist/api/resources/prompts/client/requests/PromptPush.d.ts +27 -0
- package/dist/api/resources/prompts/client/requests/PromptPush.js +5 -0
- package/dist/api/resources/prompts/client/requests/index.d.ts +1 -0
- package/dist/api/resources/releaseReviews/client/Client.d.ts +1 -1
- package/dist/api/resources/releaseReviews/client/Client.js +3 -3
- package/dist/api/resources/sandboxes/client/Client.d.ts +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +4 -4
- package/dist/api/resources/testSuiteRuns/client/Client.d.ts +1 -1
- package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/dist/api/resources/testSuites/client/Client.d.ts +1 -1
- package/dist/api/resources/testSuites/client/Client.js +5 -5
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +1 -1
- package/dist/api/resources/workflowDeployments/client/Client.js +9 -9
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +1 -1
- package/dist/api/resources/workflowSandboxes/client/Client.js +3 -3
- package/dist/api/resources/workflows/client/Client.d.ts +1 -1
- package/dist/api/resources/workflows/client/Client.js +3 -3
- package/dist/api/resources/workspaceSecrets/client/Client.d.ts +1 -1
- package/dist/api/resources/workspaceSecrets/client/Client.js +3 -3
- package/dist/api/resources/workspaces/client/Client.d.ts +1 -1
- package/dist/api/resources/workspaces/client/Client.js +2 -2
- package/dist/api/types/DeploymentRead.d.ts +2 -2
- package/dist/api/types/PromptPushResponse.d.ts +7 -0
- package/dist/api/types/PromptPushResponse.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/prompts/client/index.d.ts +1 -0
- package/dist/serialization/resources/prompts/client/index.js +17 -0
- package/dist/serialization/resources/prompts/client/requests/PromptPush.d.ts +15 -0
- package/dist/serialization/resources/prompts/client/requests/PromptPush.js +46 -0
- package/dist/serialization/resources/prompts/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/prompts/client/requests/index.js +5 -0
- package/dist/serialization/resources/prompts/index.d.ts +1 -0
- package/dist/serialization/resources/prompts/index.js +17 -0
- package/dist/serialization/types/DeploymentRead.d.ts +1 -1
- package/dist/serialization/types/DeploymentRead.js +1 -1
- package/dist/serialization/types/PromptPushResponse.d.ts +13 -0
- package/dist/serialization/types/PromptPushResponse.js +44 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +81 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/prompts/client/index.d.ts +1 -0
- package/serialization/resources/prompts/client/index.js +17 -0
- package/serialization/resources/prompts/client/requests/PromptPush.d.ts +15 -0
- package/serialization/resources/prompts/client/requests/PromptPush.js +46 -0
- package/serialization/resources/prompts/client/requests/index.d.ts +1 -0
- package/serialization/resources/prompts/client/requests/index.js +5 -0
- package/serialization/resources/prompts/index.d.ts +1 -0
- package/serialization/resources/prompts/index.js +17 -0
- package/serialization/types/DeploymentRead.d.ts +1 -1
- package/serialization/types/DeploymentRead.js +1 -1
- package/serialization/types/PromptPushResponse.d.ts +13 -0
- package/serialization/types/PromptPushResponse.js +44 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.44", "User-Agent": "vellum-ai/0.14.44", "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,
|
|
@@ -113,7 +113,7 @@ class MlModels {
|
|
|
113
113
|
_getCustomAuthorizationHeaders() {
|
|
114
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
115
115
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
116
|
-
return {
|
|
116
|
+
return { "X-API-KEY": apiKeyValue };
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -35,6 +35,6 @@ export declare class Organizations {
|
|
|
35
35
|
*/
|
|
36
36
|
organizationIdentity(requestOptions?: Organizations.RequestOptions): Promise<Vellum.OrganizationRead>;
|
|
37
37
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
38
|
-
|
|
38
|
+
"X-API-KEY": string;
|
|
39
39
|
}>;
|
|
40
40
|
}
|
|
@@ -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.44", "User-Agent": "vellum-ai/0.14.44", "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,
|
|
@@ -112,7 +112,7 @@ class Organizations {
|
|
|
112
112
|
_getCustomAuthorizationHeaders() {
|
|
113
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
114
114
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
115
|
-
return {
|
|
115
|
+
return { "X-API-KEY": apiKeyValue };
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -39,7 +39,34 @@ export declare class Prompts {
|
|
|
39
39
|
* await client.prompts.pull("id")
|
|
40
40
|
*/
|
|
41
41
|
pull(id: string, request?: Vellum.PromptsPullRequest, requestOptions?: Prompts.RequestOptions): Promise<Vellum.PromptExecConfig>;
|
|
42
|
+
/**
|
|
43
|
+
* Used to push updates to a Prompt in Vellum.
|
|
44
|
+
*
|
|
45
|
+
* @param {Vellum.PromptPush} request
|
|
46
|
+
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link Vellum.BadRequestError}
|
|
49
|
+
* @throws {@link Vellum.NotFoundError}
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.prompts.push({
|
|
53
|
+
* execConfig: {
|
|
54
|
+
* mlModel: "ml_model",
|
|
55
|
+
* inputVariables: [{
|
|
56
|
+
* id: "id",
|
|
57
|
+
* key: "key",
|
|
58
|
+
* type: "STRING"
|
|
59
|
+
* }],
|
|
60
|
+
* parameters: {},
|
|
61
|
+
* blocks: [{
|
|
62
|
+
* blockType: "JINJA",
|
|
63
|
+
* template: "template"
|
|
64
|
+
* }]
|
|
65
|
+
* }
|
|
66
|
+
* })
|
|
67
|
+
*/
|
|
68
|
+
push(request: Vellum.PromptPush, requestOptions?: Prompts.RequestOptions): Promise<Vellum.PromptPushResponse>;
|
|
42
69
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
43
|
-
|
|
70
|
+
"X-API-KEY": string;
|
|
44
71
|
}>;
|
|
45
72
|
}
|
|
@@ -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.44", "User-Agent": "vellum-ai/0.14.44", "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",
|
|
@@ -128,10 +128,87 @@ class Prompts {
|
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Used to push updates to a Prompt in Vellum.
|
|
133
|
+
*
|
|
134
|
+
* @param {Vellum.PromptPush} request
|
|
135
|
+
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
136
|
+
*
|
|
137
|
+
* @throws {@link Vellum.BadRequestError}
|
|
138
|
+
* @throws {@link Vellum.NotFoundError}
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* await client.prompts.push({
|
|
142
|
+
* execConfig: {
|
|
143
|
+
* mlModel: "ml_model",
|
|
144
|
+
* inputVariables: [{
|
|
145
|
+
* id: "id",
|
|
146
|
+
* key: "key",
|
|
147
|
+
* type: "STRING"
|
|
148
|
+
* }],
|
|
149
|
+
* parameters: {},
|
|
150
|
+
* blocks: [{
|
|
151
|
+
* blockType: "JINJA",
|
|
152
|
+
* template: "template"
|
|
153
|
+
* }]
|
|
154
|
+
* }
|
|
155
|
+
* })
|
|
156
|
+
*/
|
|
157
|
+
push(request, requestOptions) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
var _a, _b;
|
|
160
|
+
const _response = yield core.fetcher({
|
|
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
|
+
.default, "v1/prompts/push"),
|
|
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.44", "User-Agent": "vellum-ai/0.14.44", "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
|
+
contentType: "application/json",
|
|
166
|
+
requestType: "json",
|
|
167
|
+
body: serializers.PromptPush.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
168
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
169
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
170
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
171
|
+
});
|
|
172
|
+
if (_response.ok) {
|
|
173
|
+
return serializers.PromptPushResponse.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
|
+
switch (_response.error.statusCode) {
|
|
182
|
+
case 400:
|
|
183
|
+
throw new Vellum.BadRequestError(_response.error.body);
|
|
184
|
+
case 404:
|
|
185
|
+
throw new Vellum.NotFoundError(_response.error.body);
|
|
186
|
+
default:
|
|
187
|
+
throw new errors.VellumError({
|
|
188
|
+
statusCode: _response.error.statusCode,
|
|
189
|
+
body: _response.error.body,
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
switch (_response.error.reason) {
|
|
194
|
+
case "non-json":
|
|
195
|
+
throw new errors.VellumError({
|
|
196
|
+
statusCode: _response.error.statusCode,
|
|
197
|
+
body: _response.error.rawBody,
|
|
198
|
+
});
|
|
199
|
+
case "timeout":
|
|
200
|
+
throw new errors.VellumTimeoutError("Timeout exceeded when calling POST /v1/prompts/push.");
|
|
201
|
+
case "unknown":
|
|
202
|
+
throw new errors.VellumError({
|
|
203
|
+
message: _response.error.errorMessage,
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
131
208
|
_getCustomAuthorizationHeaders() {
|
|
132
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
133
210
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
134
|
-
return {
|
|
211
|
+
return { "X-API-KEY": apiKeyValue };
|
|
135
212
|
});
|
|
136
213
|
}
|
|
137
214
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* execConfig: {
|
|
9
|
+
* mlModel: "ml_model",
|
|
10
|
+
* inputVariables: [{
|
|
11
|
+
* id: "id",
|
|
12
|
+
* key: "key",
|
|
13
|
+
* type: "STRING"
|
|
14
|
+
* }],
|
|
15
|
+
* parameters: {},
|
|
16
|
+
* blocks: [{
|
|
17
|
+
* blockType: "JINJA",
|
|
18
|
+
* template: "template"
|
|
19
|
+
* }]
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
export interface PromptPush {
|
|
24
|
+
execConfig: Vellum.PromptExecConfig;
|
|
25
|
+
promptVariantId?: string;
|
|
26
|
+
promptSandboxId?: string;
|
|
27
|
+
}
|
|
@@ -48,6 +48,6 @@ export declare class ReleaseReviews {
|
|
|
48
48
|
*/
|
|
49
49
|
retrieveWorkflowDeploymentRelease(id: string, releaseIdOrReleaseTag: string, requestOptions?: ReleaseReviews.RequestOptions): Promise<Vellum.WorkflowDeploymentRelease>;
|
|
50
50
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
51
|
-
|
|
51
|
+
"X-API-KEY": string;
|
|
52
52
|
}>;
|
|
53
53
|
}
|
|
@@ -75,7 +75,7 @@ class ReleaseReviews {
|
|
|
75
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
76
|
.default, `v1/deployments/${encodeURIComponent(id)}/releases/${encodeURIComponent(releaseIdOrReleaseTag)}`),
|
|
77
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.
|
|
78
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.44", "User-Agent": "vellum-ai/0.14.44", "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
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -128,7 +128,7 @@ class ReleaseReviews {
|
|
|
128
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)
|
|
129
129
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/releases/${encodeURIComponent(releaseIdOrReleaseTag)}`),
|
|
130
130
|
method: "GET",
|
|
131
|
-
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.44", "User-Agent": "vellum-ai/0.14.44", "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),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
requestType: "json",
|
|
134
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -167,7 +167,7 @@ class ReleaseReviews {
|
|
|
167
167
|
_getCustomAuthorizationHeaders() {
|
|
168
168
|
return __awaiter(this, void 0, void 0, function* () {
|
|
169
169
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
170
|
-
return {
|
|
170
|
+
return { "X-API-KEY": apiKeyValue };
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -91,6 +91,6 @@ export declare class Sandboxes {
|
|
|
91
91
|
*/
|
|
92
92
|
deleteSandboxScenario(id: string, scenarioId: string, requestOptions?: Sandboxes.RequestOptions): Promise<void>;
|
|
93
93
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
94
|
-
|
|
94
|
+
"X-API-KEY": string;
|
|
95
95
|
}>;
|
|
96
96
|
}
|
|
@@ -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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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,
|
|
@@ -249,7 +249,7 @@ class Sandboxes {
|
|
|
249
249
|
_getCustomAuthorizationHeaders() {
|
|
250
250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
251
251
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
252
|
-
return {
|
|
252
|
+
return { "X-API-KEY": apiKeyValue };
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
}
|
|
@@ -62,6 +62,6 @@ export declare class TestSuiteRuns {
|
|
|
62
62
|
*/
|
|
63
63
|
listExecutions(id: string, request?: Vellum.TestSuiteRunsListExecutionsRequest, requestOptions?: TestSuiteRuns.RequestOptions): Promise<Vellum.PaginatedTestSuiteRunExecutionList>;
|
|
64
64
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
65
|
-
|
|
65
|
+
"X-API-KEY": string;
|
|
66
66
|
}>;
|
|
67
67
|
}
|
|
@@ -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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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",
|
|
@@ -241,7 +241,7 @@ class TestSuiteRuns {
|
|
|
241
241
|
_getCustomAuthorizationHeaders() {
|
|
242
242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
243
243
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
244
|
-
return {
|
|
244
|
+
return { "X-API-KEY": apiKeyValue };
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
}
|
|
@@ -90,6 +90,6 @@ export declare class TestSuites {
|
|
|
90
90
|
*/
|
|
91
91
|
deleteTestSuiteTestCase(id: string, testCaseId: string, requestOptions?: TestSuites.RequestOptions): Promise<void>;
|
|
92
92
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
93
|
-
|
|
93
|
+
"X-API-KEY": string;
|
|
94
94
|
}>;
|
|
95
95
|
}
|
|
@@ -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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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,
|
|
@@ -312,7 +312,7 @@ class TestSuites {
|
|
|
312
312
|
_getCustomAuthorizationHeaders() {
|
|
313
313
|
return __awaiter(this, void 0, void 0, function* () {
|
|
314
314
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
315
|
-
return {
|
|
315
|
+
return { "X-API-KEY": apiKeyValue };
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -109,6 +109,6 @@ export declare class WorkflowDeployments {
|
|
|
109
109
|
*/
|
|
110
110
|
updateWorkflowReleaseTag(id: string, name: string, request?: Vellum.PatchedWorkflowReleaseTagUpdateRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowReleaseTagRead>;
|
|
111
111
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
112
|
-
|
|
112
|
+
"X-API-KEY": string;
|
|
113
113
|
}>;
|
|
114
114
|
}
|
|
@@ -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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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, {
|
|
@@ -529,7 +529,7 @@ class WorkflowDeployments {
|
|
|
529
529
|
_getCustomAuthorizationHeaders() {
|
|
530
530
|
return __awaiter(this, void 0, void 0, function* () {
|
|
531
531
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
532
|
-
return {
|
|
532
|
+
return { "X-API-KEY": apiKeyValue };
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
535
|
}
|
|
@@ -46,6 +46,6 @@ export declare class WorkflowSandboxes {
|
|
|
46
46
|
*/
|
|
47
47
|
listWorkflowSandboxExamples(request?: Vellum.ListWorkflowSandboxExamplesRequest, requestOptions?: WorkflowSandboxes.RequestOptions): Promise<Vellum.PaginatedWorkflowSandboxExampleList>;
|
|
48
48
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
49
|
-
|
|
49
|
+
"X-API-KEY": string;
|
|
50
50
|
}>;
|
|
51
51
|
}
|
|
@@ -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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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",
|
|
@@ -183,7 +183,7 @@ class WorkflowSandboxes {
|
|
|
183
183
|
_getCustomAuthorizationHeaders() {
|
|
184
184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
185
185
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
186
|
-
return {
|
|
186
|
+
return { "X-API-KEY": apiKeyValue };
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
}
|
|
@@ -44,6 +44,6 @@ export declare class Workflows {
|
|
|
44
44
|
*/
|
|
45
45
|
push(artifact: File | fs.ReadStream | Blob | undefined, request: Vellum.WorkflowPushRequest, requestOptions?: Workflows.RequestOptions): Promise<Vellum.WorkflowPushResponse>;
|
|
46
46
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
47
|
-
|
|
47
|
+
"X-API-KEY": string;
|
|
48
48
|
}>;
|
|
49
49
|
}
|
|
@@ -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.44", "User-Agent": "vellum-ai/0.14.44", "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.44", "User-Agent": "vellum-ai/0.14.44", "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,
|
|
@@ -199,7 +199,7 @@ class Workflows {
|
|
|
199
199
|
_getCustomAuthorizationHeaders() {
|
|
200
200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
201
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
202
|
-
return {
|
|
202
|
+
return { "X-API-KEY": apiKeyValue };
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
}
|