vellum-ai 0.14.88 → 1.0.0
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 +37 -8
- package/Client.js +88 -19
- package/api/client/requests/CodeExecutor.d.ts +9 -2
- package/api/client/requests/ExecuteApiRequest.d.ts +1 -1
- package/api/client/requests/ExecutePromptRequest.d.ts +5 -1
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
- package/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
- package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
- package/api/client/requests/GenerateBodyRequest.d.ts +9 -1
- package/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
- package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
- package/api/resources/adHoc/client/Client.d.ts +18 -3
- package/api/resources/adHoc/client/Client.js +24 -5
- package/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
- package/api/resources/containerImages/client/Client.d.ts +7 -3
- package/api/resources/containerImages/client/Client.js +24 -8
- package/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
- package/api/resources/deployments/client/Client.d.ts +9 -1
- package/api/resources/deployments/client/Client.js +45 -9
- package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
- package/api/resources/documentIndexes/client/Client.d.ts +9 -58
- package/api/resources/documentIndexes/client/Client.js +45 -66
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
- package/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
- package/api/resources/documents/client/Client.d.ts +4 -5
- package/api/resources/documents/client/Client.js +26 -11
- package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
- package/api/resources/folderEntities/client/Client.d.ts +4 -0
- package/api/resources/folderEntities/client/Client.js +10 -2
- package/api/resources/metricDefinitions/client/Client.d.ts +9 -1
- package/api/resources/metricDefinitions/client/Client.js +15 -3
- package/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
- package/api/resources/mlModels/client/Client.d.ts +4 -0
- package/api/resources/mlModels/client/Client.js +6 -2
- package/api/resources/organizations/client/Client.d.ts +4 -0
- package/api/resources/organizations/client/Client.js +6 -2
- package/api/resources/prompts/client/Client.d.ts +12 -1
- package/api/resources/prompts/client/Client.js +19 -4
- package/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
- package/api/resources/releaseReviews/client/Client.d.ts +4 -0
- package/api/resources/releaseReviews/client/Client.js +6 -2
- package/api/resources/sandboxes/client/Client.d.ts +6 -21
- package/api/resources/sandboxes/client/Client.js +17 -24
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
- package/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
- package/api/resources/testSuiteRuns/client/Client.js +15 -3
- package/api/resources/testSuites/client/Client.d.ts +13 -15
- package/api/resources/testSuites/client/Client.js +30 -20
- package/api/resources/workflowDeployments/client/Client.d.ts +4 -0
- package/api/resources/workflowDeployments/client/Client.js +40 -8
- package/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
- package/api/resources/workflowSandboxes/client/Client.js +10 -2
- package/api/resources/workflows/client/Client.d.ts +4 -5
- package/api/resources/workflows/client/Client.js +11 -8
- package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
- package/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
- package/api/resources/workspaceSecrets/client/Client.js +11 -3
- package/api/resources/workspaces/client/Client.d.ts +4 -0
- package/api/resources/workspaces/client/Client.js +6 -2
- package/dist/Client.d.ts +37 -8
- package/dist/Client.js +88 -19
- package/dist/api/client/requests/CodeExecutor.d.ts +9 -2
- package/dist/api/client/requests/ExecuteApiRequest.d.ts +1 -1
- package/dist/api/client/requests/ExecutePromptRequest.d.ts +5 -1
- package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
- package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
- package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
- package/dist/api/client/requests/GenerateBodyRequest.d.ts +9 -1
- package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/dist/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
- package/dist/api/resources/adHoc/client/Client.d.ts +18 -3
- package/dist/api/resources/adHoc/client/Client.js +24 -5
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
- package/dist/api/resources/containerImages/client/Client.d.ts +7 -3
- package/dist/api/resources/containerImages/client/Client.js +24 -8
- package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
- package/dist/api/resources/deployments/client/Client.d.ts +9 -1
- package/dist/api/resources/deployments/client/Client.js +45 -9
- package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
- package/dist/api/resources/documentIndexes/client/Client.d.ts +9 -58
- package/dist/api/resources/documentIndexes/client/Client.js +45 -66
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
- package/dist/api/resources/documents/client/Client.d.ts +4 -5
- package/dist/api/resources/documents/client/Client.js +26 -11
- package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
- package/dist/api/resources/folderEntities/client/Client.d.ts +4 -0
- package/dist/api/resources/folderEntities/client/Client.js +10 -2
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +9 -1
- package/dist/api/resources/metricDefinitions/client/Client.js +15 -3
- package/dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
- package/dist/api/resources/mlModels/client/Client.d.ts +4 -0
- package/dist/api/resources/mlModels/client/Client.js +6 -2
- package/dist/api/resources/organizations/client/Client.d.ts +4 -0
- package/dist/api/resources/organizations/client/Client.js +6 -2
- package/dist/api/resources/prompts/client/Client.d.ts +12 -1
- package/dist/api/resources/prompts/client/Client.js +19 -4
- package/dist/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
- package/dist/api/resources/releaseReviews/client/Client.d.ts +4 -0
- package/dist/api/resources/releaseReviews/client/Client.js +6 -2
- package/dist/api/resources/sandboxes/client/Client.d.ts +6 -21
- package/dist/api/resources/sandboxes/client/Client.js +17 -24
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
- package/dist/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
- package/dist/api/resources/testSuiteRuns/client/Client.js +15 -3
- package/dist/api/resources/testSuites/client/Client.d.ts +13 -15
- package/dist/api/resources/testSuites/client/Client.js +30 -20
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +4 -0
- package/dist/api/resources/workflowDeployments/client/Client.js +40 -8
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
- package/dist/api/resources/workflowSandboxes/client/Client.js +10 -2
- package/dist/api/resources/workflows/client/Client.d.ts +4 -5
- package/dist/api/resources/workflows/client/Client.js +11 -8
- package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
- package/dist/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
- package/dist/api/resources/workspaceSecrets/client/Client.js +11 -3
- package/dist/api/resources/workspaces/client/Client.d.ts +4 -0
- package/dist/api/resources/workspaces/client/Client.js +6 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +116 -187
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -69,14 +69,22 @@ class AdHoc {
|
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* await client.adHoc.adhocExecutePrompt({
|
|
72
|
-
* mlModel: "
|
|
72
|
+
* mlModel: "x",
|
|
73
73
|
* inputValues: [{
|
|
74
|
-
* key: "
|
|
74
|
+
* key: "x",
|
|
75
|
+
* type: "STRING",
|
|
76
|
+
* value: "value"
|
|
77
|
+
* }, {
|
|
78
|
+
* key: "x",
|
|
75
79
|
* type: "STRING",
|
|
76
80
|
* value: "value"
|
|
77
81
|
* }],
|
|
78
82
|
* inputVariables: [{
|
|
79
|
-
* id: "
|
|
83
|
+
* id: "x",
|
|
84
|
+
* key: "key",
|
|
85
|
+
* type: "STRING"
|
|
86
|
+
* }, {
|
|
87
|
+
* id: "x",
|
|
80
88
|
* key: "key",
|
|
81
89
|
* type: "STRING"
|
|
82
90
|
* }],
|
|
@@ -84,6 +92,9 @@ class AdHoc {
|
|
|
84
92
|
* blocks: [{
|
|
85
93
|
* blockType: "JINJA",
|
|
86
94
|
* template: "template"
|
|
95
|
+
* }, {
|
|
96
|
+
* blockType: "JINJA",
|
|
97
|
+
* template: "template"
|
|
87
98
|
* }]
|
|
88
99
|
* })
|
|
89
100
|
*/
|
|
@@ -97,7 +108,11 @@ class AdHoc {
|
|
|
97
108
|
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)
|
|
98
109
|
.default, "v1/ad-hoc/execute-prompt"),
|
|
99
110
|
method: "POST",
|
|
100
|
-
headers: Object.assign(Object.assign({ "X-
|
|
111
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
112
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
113
|
+
unrecognizedObjectKeys: "strip",
|
|
114
|
+
})
|
|
115
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
101
116
|
contentType: "application/json",
|
|
102
117
|
requestType: "json",
|
|
103
118
|
body: serializers.AdHocExecutePrompt.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -159,7 +174,11 @@ class AdHoc {
|
|
|
159
174
|
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
175
|
.predict, "v1/ad-hoc/execute-prompt-stream"),
|
|
161
176
|
method: "POST",
|
|
162
|
-
headers: Object.assign(Object.assign({ "X-
|
|
177
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
178
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
179
|
+
unrecognizedObjectKeys: "strip",
|
|
180
|
+
})
|
|
181
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
163
182
|
contentType: "application/json",
|
|
164
183
|
requestType: "json",
|
|
165
184
|
body: serializers.AdHocExecutePromptStream.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -5,14 +5,22 @@ import * as Vellum from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* mlModel: "
|
|
8
|
+
* mlModel: "x",
|
|
9
9
|
* inputValues: [{
|
|
10
|
-
* key: "
|
|
10
|
+
* key: "x",
|
|
11
|
+
* type: "STRING",
|
|
12
|
+
* value: "value"
|
|
13
|
+
* }, {
|
|
14
|
+
* key: "x",
|
|
11
15
|
* type: "STRING",
|
|
12
16
|
* value: "value"
|
|
13
17
|
* }],
|
|
14
18
|
* inputVariables: [{
|
|
15
|
-
* id: "
|
|
19
|
+
* id: "x",
|
|
20
|
+
* key: "key",
|
|
21
|
+
* type: "STRING"
|
|
22
|
+
* }, {
|
|
23
|
+
* id: "x",
|
|
16
24
|
* key: "key",
|
|
17
25
|
* type: "STRING"
|
|
18
26
|
* }],
|
|
@@ -20,6 +28,9 @@ import * as Vellum from "../../../../index";
|
|
|
20
28
|
* blocks: [{
|
|
21
29
|
* blockType: "JINJA",
|
|
22
30
|
* template: "template"
|
|
31
|
+
* }, {
|
|
32
|
+
* blockType: "JINJA",
|
|
33
|
+
* template: "template"
|
|
23
34
|
* }]
|
|
24
35
|
* }
|
|
25
36
|
*/
|
|
@@ -5,14 +5,22 @@ import * as Vellum from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* mlModel: "
|
|
8
|
+
* mlModel: "x",
|
|
9
9
|
* inputValues: [{
|
|
10
|
-
* key: "
|
|
10
|
+
* key: "x",
|
|
11
|
+
* type: "STRING",
|
|
12
|
+
* value: "value"
|
|
13
|
+
* }, {
|
|
14
|
+
* key: "x",
|
|
11
15
|
* type: "STRING",
|
|
12
16
|
* value: "value"
|
|
13
17
|
* }],
|
|
14
18
|
* inputVariables: [{
|
|
15
|
-
* id: "
|
|
19
|
+
* id: "x",
|
|
20
|
+
* key: "key",
|
|
21
|
+
* type: "STRING"
|
|
22
|
+
* }, {
|
|
23
|
+
* id: "x",
|
|
16
24
|
* key: "key",
|
|
17
25
|
* type: "STRING"
|
|
18
26
|
* }],
|
|
@@ -20,6 +28,9 @@ import * as Vellum from "../../../../index";
|
|
|
20
28
|
* blocks: [{
|
|
21
29
|
* blockType: "JINJA",
|
|
22
30
|
* template: "template"
|
|
31
|
+
* }, {
|
|
32
|
+
* blockType: "JINJA",
|
|
33
|
+
* template: "template"
|
|
23
34
|
* }]
|
|
24
35
|
* }
|
|
25
36
|
*/
|
|
@@ -10,6 +10,8 @@ export declare namespace ContainerImages {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey: core.Supplier<string>;
|
|
13
|
+
/** Override the X-API-Version header */
|
|
14
|
+
apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
|
|
13
15
|
}
|
|
14
16
|
interface RequestOptions {
|
|
15
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -18,6 +20,8 @@ export declare namespace ContainerImages {
|
|
|
18
20
|
maxRetries?: number;
|
|
19
21
|
/** A hook to abort the request. */
|
|
20
22
|
abortSignal?: AbortSignal;
|
|
23
|
+
/** Override the X-API-Version header */
|
|
24
|
+
apiVersion?: Vellum.ApiVersionEnum | undefined;
|
|
21
25
|
/** Additional headers to include in the request. */
|
|
22
26
|
headers?: Record<string, string>;
|
|
23
27
|
}
|
|
@@ -61,9 +65,9 @@ export declare class ContainerImages {
|
|
|
61
65
|
*
|
|
62
66
|
* @example
|
|
63
67
|
* await client.containerImages.pushContainerImage({
|
|
64
|
-
* name: "
|
|
65
|
-
* sha: "
|
|
66
|
-
* tags: ["tags"]
|
|
68
|
+
* name: "x",
|
|
69
|
+
* sha: "x",
|
|
70
|
+
* tags: ["tags", "tags"]
|
|
67
71
|
* })
|
|
68
72
|
*/
|
|
69
73
|
pushContainerImage(request: Vellum.PushContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): core.HttpResponsePromise<Vellum.ContainerImageRead>;
|
|
@@ -51,8 +51,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
51
51
|
exports.ContainerImages = void 0;
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
55
54
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
55
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
56
56
|
const errors = __importStar(require("../../../../errors/index"));
|
|
57
57
|
class ContainerImages {
|
|
58
58
|
constructor(_options) {
|
|
@@ -88,7 +88,11 @@ class ContainerImages {
|
|
|
88
88
|
url: (0, url_join_1.default)((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.VellumEnvironment.Production)
|
|
89
89
|
.default, "v1/container-images"),
|
|
90
90
|
method: "GET",
|
|
91
|
-
headers: Object.assign(Object.assign({ "X-
|
|
91
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
92
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
93
|
+
unrecognizedObjectKeys: "strip",
|
|
94
|
+
})
|
|
95
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
92
96
|
contentType: "application/json",
|
|
93
97
|
queryParameters: _queryParams,
|
|
94
98
|
requestType: "json",
|
|
@@ -150,7 +154,11 @@ class ContainerImages {
|
|
|
150
154
|
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)
|
|
151
155
|
.default, `v1/container-images/${encodeURIComponent(id)}`),
|
|
152
156
|
method: "GET",
|
|
153
|
-
headers: Object.assign(Object.assign({ "X-
|
|
157
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
158
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
159
|
+
unrecognizedObjectKeys: "strip",
|
|
160
|
+
})
|
|
161
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
154
162
|
contentType: "application/json",
|
|
155
163
|
requestType: "json",
|
|
156
164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -208,7 +216,11 @@ class ContainerImages {
|
|
|
208
216
|
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)
|
|
209
217
|
.default, "v1/container-images/docker-service-token"),
|
|
210
218
|
method: "GET",
|
|
211
|
-
headers: Object.assign(Object.assign({ "X-
|
|
219
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
220
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
221
|
+
unrecognizedObjectKeys: "strip",
|
|
222
|
+
})
|
|
223
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
212
224
|
contentType: "application/json",
|
|
213
225
|
requestType: "json",
|
|
214
226
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -256,9 +268,9 @@ class ContainerImages {
|
|
|
256
268
|
*
|
|
257
269
|
* @example
|
|
258
270
|
* await client.containerImages.pushContainerImage({
|
|
259
|
-
* name: "
|
|
260
|
-
* sha: "
|
|
261
|
-
* tags: ["tags"]
|
|
271
|
+
* name: "x",
|
|
272
|
+
* sha: "x",
|
|
273
|
+
* tags: ["tags", "tags"]
|
|
262
274
|
* })
|
|
263
275
|
*/
|
|
264
276
|
pushContainerImage(request, requestOptions) {
|
|
@@ -271,7 +283,11 @@ class ContainerImages {
|
|
|
271
283
|
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)
|
|
272
284
|
.default, "v1/container-images/push"),
|
|
273
285
|
method: "POST",
|
|
274
|
-
headers: Object.assign(Object.assign({ "X-
|
|
286
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
287
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
288
|
+
unrecognizedObjectKeys: "strip",
|
|
289
|
+
})
|
|
290
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
275
291
|
contentType: "application/json",
|
|
276
292
|
requestType: "json",
|
|
277
293
|
body: serializers.PushContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -10,6 +10,8 @@ export declare namespace Deployments {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey: core.Supplier<string>;
|
|
13
|
+
/** Override the X-API-Version header */
|
|
14
|
+
apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
|
|
13
15
|
}
|
|
14
16
|
interface RequestOptions {
|
|
15
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -18,6 +20,8 @@ export declare namespace Deployments {
|
|
|
18
20
|
maxRetries?: number;
|
|
19
21
|
/** A hook to abort the request. */
|
|
20
22
|
abortSignal?: AbortSignal;
|
|
23
|
+
/** Override the X-API-Version header */
|
|
24
|
+
apiVersion?: Vellum.ApiVersionEnum | undefined;
|
|
21
25
|
/** Additional headers to include in the request. */
|
|
22
26
|
headers?: Record<string, string>;
|
|
23
27
|
}
|
|
@@ -132,7 +136,11 @@ export declare class Deployments {
|
|
|
132
136
|
* @example
|
|
133
137
|
* await client.deployments.retrieveProviderPayload({
|
|
134
138
|
* inputs: [{
|
|
135
|
-
* name: "
|
|
139
|
+
* name: "x",
|
|
140
|
+
* type: "STRING",
|
|
141
|
+
* value: "value"
|
|
142
|
+
* }, {
|
|
143
|
+
* name: "x",
|
|
136
144
|
* type: "STRING",
|
|
137
145
|
* value: "value"
|
|
138
146
|
* }]
|
|
@@ -94,7 +94,11 @@ class Deployments {
|
|
|
94
94
|
url: (0, url_join_1.default)((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.VellumEnvironment.Production)
|
|
95
95
|
.default, "v1/deployments"),
|
|
96
96
|
method: "GET",
|
|
97
|
-
headers: Object.assign(Object.assign({ "X-
|
|
97
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
98
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
99
|
+
unrecognizedObjectKeys: "strip",
|
|
100
|
+
})
|
|
101
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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
102
|
contentType: "application/json",
|
|
99
103
|
queryParameters: _queryParams,
|
|
100
104
|
requestType: "json",
|
|
@@ -156,7 +160,11 @@ class Deployments {
|
|
|
156
160
|
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)
|
|
157
161
|
.default, `v1/deployments/${encodeURIComponent(id)}`),
|
|
158
162
|
method: "GET",
|
|
159
|
-
headers: Object.assign(Object.assign({ "X-
|
|
163
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
164
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
165
|
+
unrecognizedObjectKeys: "strip",
|
|
166
|
+
})
|
|
167
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
160
168
|
contentType: "application/json",
|
|
161
169
|
requestType: "json",
|
|
162
170
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -219,7 +227,11 @@ class Deployments {
|
|
|
219
227
|
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)
|
|
220
228
|
.default, `v1/deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
|
|
221
229
|
method: "GET",
|
|
222
|
-
headers: Object.assign(Object.assign({ "X-
|
|
230
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
231
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
232
|
+
unrecognizedObjectKeys: "strip",
|
|
233
|
+
})
|
|
234
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
223
235
|
contentType: "application/json",
|
|
224
236
|
requestType: "json",
|
|
225
237
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -297,7 +309,11 @@ class Deployments {
|
|
|
297
309
|
url: (0, url_join_1.default)((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.VellumEnvironment.Production)
|
|
298
310
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags`),
|
|
299
311
|
method: "GET",
|
|
300
|
-
headers: Object.assign(Object.assign({ "X-
|
|
312
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
313
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
314
|
+
unrecognizedObjectKeys: "strip",
|
|
315
|
+
})
|
|
316
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
301
317
|
contentType: "application/json",
|
|
302
318
|
queryParameters: _queryParams,
|
|
303
319
|
requestType: "json",
|
|
@@ -360,7 +376,11 @@ class Deployments {
|
|
|
360
376
|
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)
|
|
361
377
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
362
378
|
method: "GET",
|
|
363
|
-
headers: Object.assign(Object.assign({ "X-
|
|
379
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
380
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
381
|
+
unrecognizedObjectKeys: "strip",
|
|
382
|
+
})
|
|
383
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
364
384
|
contentType: "application/json",
|
|
365
385
|
requestType: "json",
|
|
366
386
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -423,7 +443,11 @@ class Deployments {
|
|
|
423
443
|
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)
|
|
424
444
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
425
445
|
method: "PATCH",
|
|
426
|
-
headers: Object.assign(Object.assign({ "X-
|
|
446
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
447
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
448
|
+
unrecognizedObjectKeys: "strip",
|
|
449
|
+
})
|
|
450
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
427
451
|
contentType: "application/json",
|
|
428
452
|
requestType: "json",
|
|
429
453
|
body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -488,7 +512,11 @@ class Deployments {
|
|
|
488
512
|
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)
|
|
489
513
|
.default, `v1/deployments/${encodeURIComponent(id)}/releases/${encodeURIComponent(releaseIdOrReleaseTag)}`),
|
|
490
514
|
method: "GET",
|
|
491
|
-
headers: Object.assign(Object.assign({ "X-
|
|
515
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
516
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
517
|
+
unrecognizedObjectKeys: "strip",
|
|
518
|
+
})
|
|
519
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
492
520
|
contentType: "application/json",
|
|
493
521
|
requestType: "json",
|
|
494
522
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -553,7 +581,11 @@ class Deployments {
|
|
|
553
581
|
* @example
|
|
554
582
|
* await client.deployments.retrieveProviderPayload({
|
|
555
583
|
* inputs: [{
|
|
556
|
-
* name: "
|
|
584
|
+
* name: "x",
|
|
585
|
+
* type: "STRING",
|
|
586
|
+
* value: "value"
|
|
587
|
+
* }, {
|
|
588
|
+
* name: "x",
|
|
557
589
|
* type: "STRING",
|
|
558
590
|
* value: "value"
|
|
559
591
|
* }]
|
|
@@ -569,7 +601,11 @@ class Deployments {
|
|
|
569
601
|
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)
|
|
570
602
|
.default, "v1/deployments/provider-payload"),
|
|
571
603
|
method: "POST",
|
|
572
|
-
headers: Object.assign(Object.assign({ "X-
|
|
604
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
605
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
606
|
+
unrecognizedObjectKeys: "strip",
|
|
607
|
+
})
|
|
608
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "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),
|
|
573
609
|
contentType: "application/json",
|
|
574
610
|
requestType: "json",
|
|
575
611
|
body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
@@ -10,6 +10,8 @@ export declare namespace DocumentIndexes {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey: core.Supplier<string>;
|
|
13
|
+
/** Override the X-API-Version header */
|
|
14
|
+
apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
|
|
13
15
|
}
|
|
14
16
|
interface RequestOptions {
|
|
15
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -18,6 +20,8 @@ export declare namespace DocumentIndexes {
|
|
|
18
20
|
maxRetries?: number;
|
|
19
21
|
/** A hook to abort the request. */
|
|
20
22
|
abortSignal?: AbortSignal;
|
|
23
|
+
/** Override the X-API-Version header */
|
|
24
|
+
apiVersion?: Vellum.ApiVersionEnum | undefined;
|
|
21
25
|
/** Additional headers to include in the request. */
|
|
22
26
|
headers?: Record<string, string>;
|
|
23
27
|
}
|
|
@@ -44,65 +48,12 @@ export declare class DocumentIndexes {
|
|
|
44
48
|
*
|
|
45
49
|
* @example
|
|
46
50
|
* await client.documentIndexes.create({
|
|
47
|
-
* label: "
|
|
48
|
-
* name: "
|
|
51
|
+
* label: "x",
|
|
52
|
+
* name: "x",
|
|
49
53
|
* indexingConfig: {
|
|
50
54
|
* vectorizer: {
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* instructionDomain: "",
|
|
54
|
-
* instructionQueryTextType: "plain_text",
|
|
55
|
-
* instructionDocumentTextType: "plain_text"
|
|
56
|
-
* }
|
|
57
|
-
* },
|
|
58
|
-
* chunking: {
|
|
59
|
-
* chunkerName: "sentence-chunker",
|
|
60
|
-
* chunkerConfig: {
|
|
61
|
-
* characterLimit: 1000,
|
|
62
|
-
* minOverlapRatio: 0.5
|
|
63
|
-
* }
|
|
64
|
-
* }
|
|
65
|
-
* }
|
|
66
|
-
* })
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* await client.documentIndexes.create({
|
|
70
|
-
* label: "My Document Index",
|
|
71
|
-
* name: "my-document-index",
|
|
72
|
-
* indexingConfig: {
|
|
73
|
-
* vectorizer: {
|
|
74
|
-
* modelName: "sentence-transformers/multi-qa-mpnet-base-dot-v1",
|
|
75
|
-
* config: {
|
|
76
|
-
* "key": "value"
|
|
77
|
-
* }
|
|
78
|
-
* },
|
|
79
|
-
* chunking: {
|
|
80
|
-
* chunkerName: "sentence-chunker",
|
|
81
|
-
* chunkerConfig: {
|
|
82
|
-
* characterLimit: 1000,
|
|
83
|
-
* minOverlapRatio: 0.5
|
|
84
|
-
* }
|
|
85
|
-
* }
|
|
86
|
-
* }
|
|
87
|
-
* })
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* await client.documentIndexes.create({
|
|
91
|
-
* label: "My Document Index",
|
|
92
|
-
* name: "my-document-index",
|
|
93
|
-
* indexingConfig: {
|
|
94
|
-
* vectorizer: {
|
|
95
|
-
* config: {
|
|
96
|
-
* addOpenaiApiKey: true
|
|
97
|
-
* },
|
|
98
|
-
* modelName: "text-embedding-ada-002"
|
|
99
|
-
* },
|
|
100
|
-
* chunking: {
|
|
101
|
-
* chunkerName: "sentence-chunker",
|
|
102
|
-
* chunkerConfig: {
|
|
103
|
-
* characterLimit: 1000,
|
|
104
|
-
* minOverlapRatio: 0.5
|
|
105
|
-
* }
|
|
55
|
+
* config: {},
|
|
56
|
+
* modelName: "text-embedding-3-small"
|
|
106
57
|
* }
|
|
107
58
|
* }
|
|
108
59
|
* })
|
|
@@ -129,7 +80,7 @@ export declare class DocumentIndexes {
|
|
|
129
80
|
*
|
|
130
81
|
* @example
|
|
131
82
|
* await client.documentIndexes.update("id", {
|
|
132
|
-
* label: "
|
|
83
|
+
* label: "x"
|
|
133
84
|
* })
|
|
134
85
|
*/
|
|
135
86
|
update(id: string, request: Vellum.DocumentIndexUpdateRequest, requestOptions?: DocumentIndexes.RequestOptions): core.HttpResponsePromise<Vellum.DocumentIndexRead>;
|