vellum-ai 0.14.41 → 0.14.43
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 +4 -4
- package/api/resources/documents/client/Client.js +9 -9
- 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/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/ExecuteApiResponse.d.ts +2 -1
- package/api/types/ExecuteApiResponseJson.d.ts +4 -0
- package/api/types/PromptPushResponse.d.ts +7 -0
- package/api/types/PromptSettings.d.ts +1 -0
- package/api/types/WorkflowExecutionInitiatedBody.d.ts +0 -1
- package/api/types/index.d.ts +2 -2
- package/api/types/index.js +2 -2
- 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 +4 -4
- package/dist/api/resources/documents/client/Client.js +9 -9
- 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/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/ExecuteApiResponse.d.ts +2 -1
- package/dist/api/types/ExecuteApiResponseJson.d.ts +4 -0
- package/dist/api/types/ExecuteApiResponseJson.js +5 -0
- package/dist/api/types/PromptPushResponse.d.ts +7 -0
- package/dist/api/types/PromptPushResponse.js +5 -0
- package/dist/api/types/PromptSettings.d.ts +1 -0
- package/dist/api/types/WorkflowExecutionInitiatedBody.d.ts +0 -1
- package/dist/api/types/index.d.ts +2 -2
- package/dist/api/types/index.js +2 -2
- 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/ExecuteApiResponse.d.ts +2 -1
- package/dist/serialization/types/ExecuteApiResponse.js +2 -1
- package/dist/serialization/types/ExecuteApiResponseJson.d.ts +10 -0
- package/dist/serialization/types/{NodeEventDisplayContext.js → ExecuteApiResponseJson.js} +5 -8
- package/dist/serialization/types/PromptPushResponse.d.ts +13 -0
- package/dist/serialization/types/{WorkflowEventDisplayContext.js → PromptPushResponse.js} +4 -6
- package/dist/serialization/types/PromptSettings.d.ts +1 -0
- package/dist/serialization/types/PromptSettings.js +1 -0
- package/dist/serialization/types/WorkflowExecutionInitiatedBody.d.ts +0 -1
- package/dist/serialization/types/WorkflowExecutionInitiatedBody.js +0 -2
- package/dist/serialization/types/index.d.ts +2 -2
- package/dist/serialization/types/index.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +84 -3
- 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/ExecuteApiResponse.d.ts +2 -1
- package/serialization/types/ExecuteApiResponse.js +2 -1
- package/serialization/types/ExecuteApiResponseJson.d.ts +10 -0
- package/serialization/types/{NodeEventDisplayContext.js → ExecuteApiResponseJson.js} +5 -8
- package/serialization/types/PromptPushResponse.d.ts +13 -0
- package/serialization/types/{WorkflowEventDisplayContext.js → PromptPushResponse.js} +4 -6
- package/serialization/types/PromptSettings.d.ts +1 -0
- package/serialization/types/PromptSettings.js +1 -0
- package/serialization/types/WorkflowExecutionInitiatedBody.d.ts +0 -1
- package/serialization/types/WorkflowExecutionInitiatedBody.js +0 -2
- package/serialization/types/index.d.ts +2 -2
- package/serialization/types/index.js +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/NodeEventDisplayContext.d.ts +0 -10
- package/api/types/WorkflowEventDisplayContext.d.ts +0 -9
- package/dist/api/types/NodeEventDisplayContext.d.ts +0 -10
- package/dist/api/types/WorkflowEventDisplayContext.d.ts +0 -9
- package/dist/serialization/types/NodeEventDisplayContext.d.ts +0 -15
- package/dist/serialization/types/WorkflowEventDisplayContext.d.ts +0 -14
- package/serialization/types/NodeEventDisplayContext.d.ts +0 -15
- package/serialization/types/WorkflowEventDisplayContext.d.ts +0 -14
- /package/api/{types/NodeEventDisplayContext.js → resources/prompts/client/requests/PromptPush.js} +0 -0
- /package/api/types/{WorkflowEventDisplayContext.js → ExecuteApiResponseJson.js} +0 -0
- /package/{dist/api/types/NodeEventDisplayContext.js → api/types/PromptPushResponse.js} +0 -0
- /package/dist/api/{types/WorkflowEventDisplayContext.js → resources/prompts/client/requests/PromptPush.js} +0 -0
|
@@ -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.43", "User-Agent": "vellum-ai/0.14.43", "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.43", "User-Agent": "vellum-ai/0.14.43", "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
|
}
|
|
@@ -47,6 +47,6 @@ export declare class WorkspaceSecrets {
|
|
|
47
47
|
*/
|
|
48
48
|
partialUpdate(id: string, request?: Vellum.PatchedWorkspaceSecretUpdateRequest, requestOptions?: WorkspaceSecrets.RequestOptions): Promise<Vellum.WorkspaceSecretRead>;
|
|
49
49
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
50
|
-
|
|
50
|
+
"X-API-KEY": string;
|
|
51
51
|
}>;
|
|
52
52
|
}
|
|
@@ -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.43", "User-Agent": "vellum-ai/0.14.43", "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.43", "User-Agent": "vellum-ai/0.14.43", "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, {
|
|
@@ -169,7 +169,7 @@ class WorkspaceSecrets {
|
|
|
169
169
|
_getCustomAuthorizationHeaders() {
|
|
170
170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
171
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
172
|
-
return {
|
|
172
|
+
return { "X-API-KEY": apiKeyValue };
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
}
|
|
@@ -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.43", "User-Agent": "vellum-ai/0.14.43", "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 Workspaces {
|
|
|
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
|
}
|
|
@@ -28,8 +28,8 @@ export interface DeploymentRead {
|
|
|
28
28
|
inputVariables: Vellum.VellumVariable[];
|
|
29
29
|
/** A human-readable description of the deployment */
|
|
30
30
|
description?: string;
|
|
31
|
-
/** Deprecated.
|
|
32
|
-
activeModelVersionIds
|
|
31
|
+
/** Deprecated. This now always returns a null value. */
|
|
32
|
+
activeModelVersionIds?: string[];
|
|
33
33
|
/** The ID of the history item associated with this Deployment's LATEST Release Tag */
|
|
34
34
|
lastDeployedHistoryItemId: string;
|
|
35
35
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
4
5
|
export interface ExecuteApiResponse {
|
|
5
6
|
statusCode: number;
|
|
6
7
|
text: string;
|
|
7
|
-
json
|
|
8
|
+
json: Vellum.ExecuteApiResponseJson;
|
|
8
9
|
headers: Record<string, string>;
|
|
9
10
|
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ export * from "./EphemeralPromptCacheConfigTypeEnum";
|
|
|
96
96
|
export * from "./ErrorInput";
|
|
97
97
|
export * from "./ErrorVellumValue";
|
|
98
98
|
export * from "./ErrorVellumValueRequest";
|
|
99
|
+
export * from "./ExecuteApiResponseJson";
|
|
99
100
|
export * from "./ExecuteApiResponse";
|
|
100
101
|
export * from "./ExecutePromptEvent";
|
|
101
102
|
export * from "./ExecutePromptResponse";
|
|
@@ -221,7 +222,6 @@ export * from "./NamedTestCaseStringVariableValueRequest";
|
|
|
221
222
|
export * from "./NamedTestCaseVariableValue";
|
|
222
223
|
export * from "./NamedTestCaseVariableValueRequest";
|
|
223
224
|
export * from "./NewMemberJoinBehaviorEnum";
|
|
224
|
-
export * from "./NodeEventDisplayContext";
|
|
225
225
|
export * from "./NodeExecutionFulfilledBody";
|
|
226
226
|
export * from "./NodeExecutionFulfilledEvent";
|
|
227
227
|
export * from "./NodeExecutionInitiatedBody";
|
|
@@ -302,6 +302,7 @@ export * from "./PromptNodeResult";
|
|
|
302
302
|
export * from "./PromptNodeResultData";
|
|
303
303
|
export * from "./PromptOutput";
|
|
304
304
|
export * from "./PromptParameters";
|
|
305
|
+
export * from "./PromptPushResponse";
|
|
305
306
|
export * from "./PromptRequestChatHistoryInput";
|
|
306
307
|
export * from "./PromptRequestInput";
|
|
307
308
|
export * from "./PromptRequestJsonInput";
|
|
@@ -512,7 +513,6 @@ export * from "./WorkflowDeploymentRelease";
|
|
|
512
513
|
export * from "./WorkflowDeploymentReleaseWorkflowDeployment";
|
|
513
514
|
export * from "./WorkflowDeploymentReleaseWorkflowVersion";
|
|
514
515
|
export * from "./WorkflowError";
|
|
515
|
-
export * from "./WorkflowEventDisplayContext";
|
|
516
516
|
export * from "./WorkflowEventError";
|
|
517
517
|
export * from "./WorkflowEventExecutionRead";
|
|
518
518
|
export * from "./WorkflowExecutionActual";
|
package/api/types/index.js
CHANGED
|
@@ -112,6 +112,7 @@ __exportStar(require("./EphemeralPromptCacheConfigTypeEnum"), exports);
|
|
|
112
112
|
__exportStar(require("./ErrorInput"), exports);
|
|
113
113
|
__exportStar(require("./ErrorVellumValue"), exports);
|
|
114
114
|
__exportStar(require("./ErrorVellumValueRequest"), exports);
|
|
115
|
+
__exportStar(require("./ExecuteApiResponseJson"), exports);
|
|
115
116
|
__exportStar(require("./ExecuteApiResponse"), exports);
|
|
116
117
|
__exportStar(require("./ExecutePromptEvent"), exports);
|
|
117
118
|
__exportStar(require("./ExecutePromptResponse"), exports);
|
|
@@ -237,7 +238,6 @@ __exportStar(require("./NamedTestCaseStringVariableValueRequest"), exports);
|
|
|
237
238
|
__exportStar(require("./NamedTestCaseVariableValue"), exports);
|
|
238
239
|
__exportStar(require("./NamedTestCaseVariableValueRequest"), exports);
|
|
239
240
|
__exportStar(require("./NewMemberJoinBehaviorEnum"), exports);
|
|
240
|
-
__exportStar(require("./NodeEventDisplayContext"), exports);
|
|
241
241
|
__exportStar(require("./NodeExecutionFulfilledBody"), exports);
|
|
242
242
|
__exportStar(require("./NodeExecutionFulfilledEvent"), exports);
|
|
243
243
|
__exportStar(require("./NodeExecutionInitiatedBody"), exports);
|
|
@@ -318,6 +318,7 @@ __exportStar(require("./PromptNodeResult"), exports);
|
|
|
318
318
|
__exportStar(require("./PromptNodeResultData"), exports);
|
|
319
319
|
__exportStar(require("./PromptOutput"), exports);
|
|
320
320
|
__exportStar(require("./PromptParameters"), exports);
|
|
321
|
+
__exportStar(require("./PromptPushResponse"), exports);
|
|
321
322
|
__exportStar(require("./PromptRequestChatHistoryInput"), exports);
|
|
322
323
|
__exportStar(require("./PromptRequestInput"), exports);
|
|
323
324
|
__exportStar(require("./PromptRequestJsonInput"), exports);
|
|
@@ -528,7 +529,6 @@ __exportStar(require("./WorkflowDeploymentRelease"), exports);
|
|
|
528
529
|
__exportStar(require("./WorkflowDeploymentReleaseWorkflowDeployment"), exports);
|
|
529
530
|
__exportStar(require("./WorkflowDeploymentReleaseWorkflowVersion"), exports);
|
|
530
531
|
__exportStar(require("./WorkflowError"), exports);
|
|
531
|
-
__exportStar(require("./WorkflowEventDisplayContext"), exports);
|
|
532
532
|
__exportStar(require("./WorkflowEventError"), exports);
|
|
533
533
|
__exportStar(require("./WorkflowEventExecutionRead"), exports);
|
|
534
534
|
__exportStar(require("./WorkflowExecutionActual"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -244,6 +244,6 @@ export declare class VellumClient {
|
|
|
244
244
|
*/
|
|
245
245
|
submitWorkflowExecutionActuals(request: Vellum.SubmitWorkflowExecutionActualsRequest, requestOptions?: VellumClient.RequestOptions): Promise<void>;
|
|
246
246
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
247
|
-
|
|
247
|
+
"X-API-KEY": string;
|
|
248
248
|
}>;
|
|
249
249
|
}
|
package/dist/Client.js
CHANGED
|
@@ -170,7 +170,7 @@ class VellumClient {
|
|
|
170
170
|
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)
|
|
171
171
|
.default, "v1/execute-api"),
|
|
172
172
|
method: "POST",
|
|
173
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
173
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
requestType: "json",
|
|
176
176
|
body: serializers.ExecuteApiRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -236,7 +236,7 @@ class VellumClient {
|
|
|
236
236
|
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)
|
|
237
237
|
.predict, "v1/execute-code"),
|
|
238
238
|
method: "POST",
|
|
239
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
239
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
240
240
|
contentType: "application/json",
|
|
241
241
|
requestType: "json",
|
|
242
242
|
body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -305,7 +305,7 @@ class VellumClient {
|
|
|
305
305
|
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)
|
|
306
306
|
.predict, "v1/execute-prompt"),
|
|
307
307
|
method: "POST",
|
|
308
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
308
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
309
309
|
contentType: "application/json",
|
|
310
310
|
requestType: "json",
|
|
311
311
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -363,7 +363,7 @@ class VellumClient {
|
|
|
363
363
|
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)
|
|
364
364
|
.predict, "v1/execute-prompt-stream"),
|
|
365
365
|
method: "POST",
|
|
366
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
366
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
367
367
|
contentType: "application/json",
|
|
368
368
|
requestType: "json",
|
|
369
369
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -448,7 +448,7 @@ class VellumClient {
|
|
|
448
448
|
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)
|
|
449
449
|
.predict, "v1/execute-workflow"),
|
|
450
450
|
method: "POST",
|
|
451
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
451
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
452
452
|
contentType: "application/json",
|
|
453
453
|
requestType: "json",
|
|
454
454
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -504,7 +504,7 @@ class VellumClient {
|
|
|
504
504
|
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)
|
|
505
505
|
.predict, "v1/execute-workflow-stream"),
|
|
506
506
|
method: "POST",
|
|
507
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
507
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
508
508
|
contentType: "application/json",
|
|
509
509
|
requestType: "json",
|
|
510
510
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -591,7 +591,7 @@ class VellumClient {
|
|
|
591
591
|
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)
|
|
592
592
|
.predict, "v1/generate"),
|
|
593
593
|
method: "POST",
|
|
594
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
594
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
595
595
|
contentType: "application/json",
|
|
596
596
|
requestType: "json",
|
|
597
597
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -652,7 +652,7 @@ class VellumClient {
|
|
|
652
652
|
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)
|
|
653
653
|
.predict, "v1/generate-stream"),
|
|
654
654
|
method: "POST",
|
|
655
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
655
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
656
656
|
contentType: "application/json",
|
|
657
657
|
requestType: "json",
|
|
658
658
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -733,7 +733,7 @@ class VellumClient {
|
|
|
733
733
|
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)
|
|
734
734
|
.predict, "v1/search"),
|
|
735
735
|
method: "POST",
|
|
736
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
736
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
737
737
|
contentType: "application/json",
|
|
738
738
|
requestType: "json",
|
|
739
739
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -801,7 +801,7 @@ class VellumClient {
|
|
|
801
801
|
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)
|
|
802
802
|
.predict, "v1/submit-completion-actuals"),
|
|
803
803
|
method: "POST",
|
|
804
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
804
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
805
805
|
contentType: "application/json",
|
|
806
806
|
requestType: "json",
|
|
807
807
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -864,7 +864,7 @@ class VellumClient {
|
|
|
864
864
|
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)
|
|
865
865
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
866
866
|
method: "POST",
|
|
867
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
867
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
868
868
|
contentType: "application/json",
|
|
869
869
|
requestType: "json",
|
|
870
870
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -901,7 +901,7 @@ class VellumClient {
|
|
|
901
901
|
_getCustomAuthorizationHeaders() {
|
|
902
902
|
return __awaiter(this, void 0, void 0, function* () {
|
|
903
903
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
904
|
-
return {
|
|
904
|
+
return { "X-API-KEY": apiKeyValue };
|
|
905
905
|
});
|
|
906
906
|
}
|
|
907
907
|
}
|
|
@@ -56,6 +56,6 @@ export declare class AdHoc {
|
|
|
56
56
|
adhocExecutePrompt(request: Vellum.AdHocExecutePrompt, requestOptions?: AdHoc.RequestOptions): Promise<Vellum.AdHocExecutePromptEvent>;
|
|
57
57
|
adhocExecutePromptStream(request: Vellum.AdHocExecutePromptStream, requestOptions?: AdHoc.RequestOptions): Promise<core.Stream<Vellum.AdHocExecutePromptEvent>>;
|
|
58
58
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
59
|
-
|
|
59
|
+
"X-API-KEY": string;
|
|
60
60
|
}>;
|
|
61
61
|
}
|
|
@@ -94,7 +94,7 @@ class AdHoc {
|
|
|
94
94
|
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)
|
|
95
95
|
.default, "v1/ad-hoc/execute-prompt"),
|
|
96
96
|
method: "POST",
|
|
97
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
97
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
98
98
|
contentType: "application/json",
|
|
99
99
|
requestType: "json",
|
|
100
100
|
body: serializers.AdHocExecutePrompt.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -147,7 +147,7 @@ class AdHoc {
|
|
|
147
147
|
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)
|
|
148
148
|
.predict, "v1/ad-hoc/execute-prompt-stream"),
|
|
149
149
|
method: "POST",
|
|
150
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
150
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
151
151
|
contentType: "application/json",
|
|
152
152
|
requestType: "json",
|
|
153
153
|
body: serializers.AdHocExecutePromptStream.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -207,7 +207,7 @@ class AdHoc {
|
|
|
207
207
|
_getCustomAuthorizationHeaders() {
|
|
208
208
|
return __awaiter(this, void 0, void 0, function* () {
|
|
209
209
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
210
|
-
return {
|
|
210
|
+
return { "X-API-KEY": apiKeyValue };
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
}
|
|
@@ -65,6 +65,6 @@ export declare class ContainerImages {
|
|
|
65
65
|
*/
|
|
66
66
|
pushContainerImage(request: Vellum.PushContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): Promise<Vellum.ContainerImageRead>;
|
|
67
67
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
68
|
-
|
|
68
|
+
"X-API-KEY": string;
|
|
69
69
|
}>;
|
|
70
70
|
}
|
|
@@ -85,7 +85,7 @@ class ContainerImages {
|
|
|
85
85
|
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)
|
|
86
86
|
.default, "v1/container-images"),
|
|
87
87
|
method: "GET",
|
|
88
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
88
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
queryParameters: _queryParams,
|
|
91
91
|
requestType: "json",
|
|
@@ -138,7 +138,7 @@ class ContainerImages {
|
|
|
138
138
|
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)
|
|
139
139
|
.default, `v1/container-images/${encodeURIComponent(id)}`),
|
|
140
140
|
method: "GET",
|
|
141
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
141
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
142
142
|
contentType: "application/json",
|
|
143
143
|
requestType: "json",
|
|
144
144
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -187,7 +187,7 @@ class ContainerImages {
|
|
|
187
187
|
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)
|
|
188
188
|
.default, "v1/container-images/docker-service-token"),
|
|
189
189
|
method: "GET",
|
|
190
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
190
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
191
191
|
contentType: "application/json",
|
|
192
192
|
requestType: "json",
|
|
193
193
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -241,7 +241,7 @@ class ContainerImages {
|
|
|
241
241
|
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)
|
|
242
242
|
.default, "v1/container-images/push"),
|
|
243
243
|
method: "POST",
|
|
244
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
244
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
245
245
|
contentType: "application/json",
|
|
246
246
|
requestType: "json",
|
|
247
247
|
body: serializers.PushContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -281,7 +281,7 @@ class ContainerImages {
|
|
|
281
281
|
_getCustomAuthorizationHeaders() {
|
|
282
282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
283
283
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
284
|
-
return {
|
|
284
|
+
return { "X-API-KEY": apiKeyValue };
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
}
|
|
@@ -121,6 +121,6 @@ export declare class Deployments {
|
|
|
121
121
|
*/
|
|
122
122
|
retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
|
|
123
123
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
124
|
-
|
|
124
|
+
"X-API-KEY": string;
|
|
125
125
|
}>;
|
|
126
126
|
}
|
|
@@ -91,7 +91,7 @@ class Deployments {
|
|
|
91
91
|
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)
|
|
92
92
|
.default, "v1/deployments"),
|
|
93
93
|
method: "GET",
|
|
94
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
94
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
95
95
|
contentType: "application/json",
|
|
96
96
|
queryParameters: _queryParams,
|
|
97
97
|
requestType: "json",
|
|
@@ -144,7 +144,7 @@ class Deployments {
|
|
|
144
144
|
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)
|
|
145
145
|
.default, `v1/deployments/${encodeURIComponent(id)}`),
|
|
146
146
|
method: "GET",
|
|
147
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
147
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
148
148
|
contentType: "application/json",
|
|
149
149
|
requestType: "json",
|
|
150
150
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -197,7 +197,7 @@ class Deployments {
|
|
|
197
197
|
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)
|
|
198
198
|
.default, `v1/deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
|
|
199
199
|
method: "GET",
|
|
200
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
200
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
201
201
|
contentType: "application/json",
|
|
202
202
|
requestType: "json",
|
|
203
203
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -266,7 +266,7 @@ class Deployments {
|
|
|
266
266
|
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)
|
|
267
267
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags`),
|
|
268
268
|
method: "GET",
|
|
269
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
269
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
270
270
|
contentType: "application/json",
|
|
271
271
|
queryParameters: _queryParams,
|
|
272
272
|
requestType: "json",
|
|
@@ -320,7 +320,7 @@ class Deployments {
|
|
|
320
320
|
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)
|
|
321
321
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
322
322
|
method: "GET",
|
|
323
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
323
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
324
324
|
contentType: "application/json",
|
|
325
325
|
requestType: "json",
|
|
326
326
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -374,7 +374,7 @@ class Deployments {
|
|
|
374
374
|
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)
|
|
375
375
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
376
376
|
method: "PATCH",
|
|
377
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
377
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
378
378
|
contentType: "application/json",
|
|
379
379
|
requestType: "json",
|
|
380
380
|
body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -449,7 +449,7 @@ class Deployments {
|
|
|
449
449
|
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)
|
|
450
450
|
.default, "v1/deployments/provider-payload"),
|
|
451
451
|
method: "POST",
|
|
452
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
452
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.43", "User-Agent": "vellum-ai/0.14.43", "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),
|
|
453
453
|
contentType: "application/json",
|
|
454
454
|
requestType: "json",
|
|
455
455
|
body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
@@ -502,7 +502,7 @@ class Deployments {
|
|
|
502
502
|
_getCustomAuthorizationHeaders() {
|
|
503
503
|
return __awaiter(this, void 0, void 0, function* () {
|
|
504
504
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
505
|
-
return {
|
|
505
|
+
return { "X-API-KEY": apiKeyValue };
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
}
|
|
@@ -174,6 +174,6 @@ export declare class DocumentIndexes {
|
|
|
174
174
|
*/
|
|
175
175
|
removeDocument(documentId: string, id: string, requestOptions?: DocumentIndexes.RequestOptions): Promise<void>;
|
|
176
176
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
177
|
-
|
|
177
|
+
"X-API-KEY": string;
|
|
178
178
|
}>;
|
|
179
179
|
}
|