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
|
@@ -77,7 +77,11 @@ class Sandboxes {
|
|
|
77
77
|
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)
|
|
78
78
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
|
|
79
79
|
method: "POST",
|
|
80
|
-
headers: Object.assign(Object.assign({ "X-
|
|
80
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
81
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
82
|
+
unrecognizedObjectKeys: "strip",
|
|
83
|
+
})
|
|
84
|
+
: "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),
|
|
81
85
|
contentType: "application/json",
|
|
82
86
|
requestType: "json",
|
|
83
87
|
body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -135,31 +139,12 @@ class Sandboxes {
|
|
|
135
139
|
*
|
|
136
140
|
* @example
|
|
137
141
|
* await client.sandboxes.upsertSandboxScenario("id", {
|
|
138
|
-
* label: "Scenario 1",
|
|
139
142
|
* inputs: [{
|
|
140
143
|
* type: "STRING",
|
|
141
|
-
*
|
|
142
|
-
* name: "var_1"
|
|
144
|
+
* name: "x"
|
|
143
145
|
* }, {
|
|
144
146
|
* type: "STRING",
|
|
145
|
-
*
|
|
146
|
-
* name: "var_2"
|
|
147
|
-
* }]
|
|
148
|
-
* })
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* await client.sandboxes.upsertSandboxScenario("id", {
|
|
152
|
-
* label: "Scenario 2",
|
|
153
|
-
* inputs: [{
|
|
154
|
-
* type: "CHAT_HISTORY",
|
|
155
|
-
* value: [{
|
|
156
|
-
* text: "What's your favorite color?",
|
|
157
|
-
* role: "USER"
|
|
158
|
-
* }, {
|
|
159
|
-
* text: "AI's don't have a favorite color.... Yet.",
|
|
160
|
-
* role: "ASSISTANT"
|
|
161
|
-
* }],
|
|
162
|
-
* name: "chat_history"
|
|
147
|
+
* name: "x"
|
|
163
148
|
* }]
|
|
164
149
|
* })
|
|
165
150
|
*/
|
|
@@ -173,7 +158,11 @@ class Sandboxes {
|
|
|
173
158
|
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)
|
|
174
159
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
|
|
175
160
|
method: "POST",
|
|
176
|
-
headers: Object.assign(Object.assign({ "X-
|
|
161
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
162
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
163
|
+
unrecognizedObjectKeys: "strip",
|
|
164
|
+
})
|
|
165
|
+
: "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),
|
|
177
166
|
contentType: "application/json",
|
|
178
167
|
requestType: "json",
|
|
179
168
|
body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -236,7 +225,11 @@ class Sandboxes {
|
|
|
236
225
|
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
226
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
|
|
238
227
|
method: "DELETE",
|
|
239
|
-
headers: Object.assign(Object.assign({ "X-
|
|
228
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
229
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
230
|
+
unrecognizedObjectKeys: "strip",
|
|
231
|
+
})
|
|
232
|
+
: "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),
|
|
240
233
|
contentType: "application/json",
|
|
241
234
|
requestType: "json",
|
|
242
235
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -5,31 +5,12 @@ import * as Vellum from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* label: "Scenario 1",
|
|
9
8
|
* inputs: [{
|
|
10
9
|
* type: "STRING",
|
|
11
|
-
*
|
|
12
|
-
* name: "var_1"
|
|
10
|
+
* name: "x"
|
|
13
11
|
* }, {
|
|
14
12
|
* type: "STRING",
|
|
15
|
-
*
|
|
16
|
-
* name: "var_2"
|
|
17
|
-
* }]
|
|
18
|
-
* }
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* {
|
|
22
|
-
* label: "Scenario 2",
|
|
23
|
-
* inputs: [{
|
|
24
|
-
* type: "CHAT_HISTORY",
|
|
25
|
-
* value: [{
|
|
26
|
-
* text: "What's your favorite color?",
|
|
27
|
-
* role: "USER"
|
|
28
|
-
* }, {
|
|
29
|
-
* text: "AI's don't have a favorite color.... Yet.",
|
|
30
|
-
* role: "ASSISTANT"
|
|
31
|
-
* }],
|
|
32
|
-
* name: "chat_history"
|
|
13
|
+
* name: "x"
|
|
33
14
|
* }]
|
|
34
15
|
* }
|
|
35
16
|
*/
|
|
@@ -10,6 +10,8 @@ export declare namespace TestSuiteRuns {
|
|
|
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 TestSuiteRuns {
|
|
|
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
|
}
|
|
@@ -84,7 +84,11 @@ class TestSuiteRuns {
|
|
|
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/test-suite-runs"),
|
|
86
86
|
method: "POST",
|
|
87
|
-
headers: Object.assign(Object.assign({ "X-
|
|
87
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
88
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
89
|
+
unrecognizedObjectKeys: "strip",
|
|
90
|
+
})
|
|
91
|
+
: "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),
|
|
88
92
|
contentType: "application/json",
|
|
89
93
|
requestType: "json",
|
|
90
94
|
body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -146,7 +150,11 @@ class TestSuiteRuns {
|
|
|
146
150
|
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)
|
|
147
151
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
|
|
148
152
|
method: "GET",
|
|
149
|
-
headers: Object.assign(Object.assign({ "X-
|
|
153
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
154
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
155
|
+
unrecognizedObjectKeys: "strip",
|
|
156
|
+
})
|
|
157
|
+
: "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),
|
|
150
158
|
contentType: "application/json",
|
|
151
159
|
requestType: "json",
|
|
152
160
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -222,7 +230,11 @@ class TestSuiteRuns {
|
|
|
222
230
|
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)
|
|
223
231
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
|
|
224
232
|
method: "GET",
|
|
225
|
-
headers: Object.assign(Object.assign({ "X-
|
|
233
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
234
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
235
|
+
unrecognizedObjectKeys: "strip",
|
|
236
|
+
})
|
|
237
|
+
: "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),
|
|
226
238
|
contentType: "application/json",
|
|
227
239
|
queryParameters: _queryParams,
|
|
228
240
|
requestType: "json",
|
|
@@ -10,6 +10,8 @@ export declare namespace TestSuites {
|
|
|
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 TestSuites {
|
|
|
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
|
}
|
|
@@ -52,25 +56,19 @@ export declare class TestSuites {
|
|
|
52
56
|
*
|
|
53
57
|
* @example
|
|
54
58
|
* await client.testSuites.upsertTestSuiteTestCase("id", {
|
|
55
|
-
* label: "Test Case 1",
|
|
56
59
|
* inputValues: [{
|
|
57
60
|
* type: "STRING",
|
|
58
|
-
*
|
|
59
|
-
*
|
|
61
|
+
* name: "x"
|
|
62
|
+
* }, {
|
|
63
|
+
* type: "STRING",
|
|
64
|
+
* name: "x"
|
|
60
65
|
* }],
|
|
61
66
|
* evaluationValues: [{
|
|
62
|
-
* type: "
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* type: "STRING",
|
|
68
|
-
* value: "Green"
|
|
69
|
-
* }, {
|
|
70
|
-
* type: "STRING",
|
|
71
|
-
* value: "Blue"
|
|
72
|
-
* }],
|
|
73
|
-
* name: "var_2"
|
|
67
|
+
* type: "STRING",
|
|
68
|
+
* name: "x"
|
|
69
|
+
* }, {
|
|
70
|
+
* type: "STRING",
|
|
71
|
+
* name: "x"
|
|
74
72
|
* }]
|
|
75
73
|
* })
|
|
76
74
|
*/
|
|
@@ -51,8 +51,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
51
51
|
exports.TestSuites = 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 TestSuites {
|
|
58
58
|
constructor(_options) {
|
|
@@ -86,7 +86,11 @@ class TestSuites {
|
|
|
86
86
|
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)
|
|
87
87
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
88
88
|
method: "GET",
|
|
89
|
-
headers: Object.assign(Object.assign({ "X-
|
|
89
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
90
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
91
|
+
unrecognizedObjectKeys: "strip",
|
|
92
|
+
})
|
|
93
|
+
: "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),
|
|
90
94
|
contentType: "application/json",
|
|
91
95
|
queryParameters: _queryParams,
|
|
92
96
|
requestType: "json",
|
|
@@ -144,25 +148,19 @@ class TestSuites {
|
|
|
144
148
|
*
|
|
145
149
|
* @example
|
|
146
150
|
* await client.testSuites.upsertTestSuiteTestCase("id", {
|
|
147
|
-
* label: "Test Case 1",
|
|
148
151
|
* inputValues: [{
|
|
149
152
|
* type: "STRING",
|
|
150
|
-
*
|
|
151
|
-
*
|
|
153
|
+
* name: "x"
|
|
154
|
+
* }, {
|
|
155
|
+
* type: "STRING",
|
|
156
|
+
* name: "x"
|
|
152
157
|
* }],
|
|
153
158
|
* evaluationValues: [{
|
|
154
|
-
* type: "
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
* type: "STRING",
|
|
160
|
-
* value: "Green"
|
|
161
|
-
* }, {
|
|
162
|
-
* type: "STRING",
|
|
163
|
-
* value: "Blue"
|
|
164
|
-
* }],
|
|
165
|
-
* name: "var_2"
|
|
159
|
+
* type: "STRING",
|
|
160
|
+
* name: "x"
|
|
161
|
+
* }, {
|
|
162
|
+
* type: "STRING",
|
|
163
|
+
* name: "x"
|
|
166
164
|
* }]
|
|
167
165
|
* })
|
|
168
166
|
*/
|
|
@@ -176,7 +174,11 @@ class TestSuites {
|
|
|
176
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)
|
|
177
175
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
178
176
|
method: "POST",
|
|
179
|
-
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),
|
|
180
182
|
contentType: "application/json",
|
|
181
183
|
requestType: "json",
|
|
182
184
|
body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -232,7 +234,11 @@ class TestSuites {
|
|
|
232
234
|
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)
|
|
233
235
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
|
|
234
236
|
method: "POST",
|
|
235
|
-
headers: Object.assign(Object.assign({ "X-
|
|
237
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
238
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
239
|
+
unrecognizedObjectKeys: "strip",
|
|
240
|
+
})
|
|
241
|
+
: "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),
|
|
236
242
|
contentType: "application/x-ndjson",
|
|
237
243
|
requestType: "json",
|
|
238
244
|
body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
|
|
@@ -308,7 +314,11 @@ class TestSuites {
|
|
|
308
314
|
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)
|
|
309
315
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
|
|
310
316
|
method: "DELETE",
|
|
311
|
-
headers: Object.assign(Object.assign({ "X-
|
|
317
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
318
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
319
|
+
unrecognizedObjectKeys: "strip",
|
|
320
|
+
})
|
|
321
|
+
: "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),
|
|
312
322
|
contentType: "application/json",
|
|
313
323
|
requestType: "json",
|
|
314
324
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -10,6 +10,8 @@ export declare namespace WorkflowDeployments {
|
|
|
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 WorkflowDeployments {
|
|
|
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
|
}
|
|
@@ -93,7 +93,11 @@ class WorkflowDeployments {
|
|
|
93
93
|
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)
|
|
94
94
|
.default, "v1/workflow-deployments"),
|
|
95
95
|
method: "GET",
|
|
96
|
-
headers: Object.assign(Object.assign({ "X-
|
|
96
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
97
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
98
|
+
unrecognizedObjectKeys: "strip",
|
|
99
|
+
})
|
|
100
|
+
: "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),
|
|
97
101
|
contentType: "application/json",
|
|
98
102
|
queryParameters: _queryParams,
|
|
99
103
|
requestType: "json",
|
|
@@ -155,7 +159,11 @@ class WorkflowDeployments {
|
|
|
155
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)
|
|
156
160
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
|
|
157
161
|
method: "GET",
|
|
158
|
-
headers: Object.assign(Object.assign({ "X-
|
|
162
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
163
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
164
|
+
unrecognizedObjectKeys: "strip",
|
|
165
|
+
})
|
|
166
|
+
: "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),
|
|
159
167
|
contentType: "application/json",
|
|
160
168
|
requestType: "json",
|
|
161
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -226,7 +234,11 @@ class WorkflowDeployments {
|
|
|
226
234
|
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)
|
|
227
235
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/execution-events`),
|
|
228
236
|
method: "GET",
|
|
229
|
-
headers: Object.assign(Object.assign({ "X-
|
|
237
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
238
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
239
|
+
unrecognizedObjectKeys: "strip",
|
|
240
|
+
})
|
|
241
|
+
: "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),
|
|
230
242
|
contentType: "application/json",
|
|
231
243
|
queryParameters: _queryParams,
|
|
232
244
|
requestType: "json",
|
|
@@ -287,7 +299,11 @@ class WorkflowDeployments {
|
|
|
287
299
|
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)
|
|
288
300
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/execution-events/${encodeURIComponent(executionId)}`),
|
|
289
301
|
method: "GET",
|
|
290
|
-
headers: Object.assign(Object.assign({ "X-
|
|
302
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
303
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
304
|
+
unrecognizedObjectKeys: "strip",
|
|
305
|
+
})
|
|
306
|
+
: "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),
|
|
291
307
|
contentType: "application/json",
|
|
292
308
|
requestType: "json",
|
|
293
309
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -350,7 +366,11 @@ class WorkflowDeployments {
|
|
|
350
366
|
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)
|
|
351
367
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
|
|
352
368
|
method: "GET",
|
|
353
|
-
headers: Object.assign(Object.assign({ "X-
|
|
369
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
370
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
371
|
+
unrecognizedObjectKeys: "strip",
|
|
372
|
+
})
|
|
373
|
+
: "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),
|
|
354
374
|
contentType: "application/json",
|
|
355
375
|
requestType: "json",
|
|
356
376
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -428,7 +448,11 @@ class WorkflowDeployments {
|
|
|
428
448
|
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)
|
|
429
449
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
|
|
430
450
|
method: "GET",
|
|
431
|
-
headers: Object.assign(Object.assign({ "X-
|
|
451
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
452
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
453
|
+
unrecognizedObjectKeys: "strip",
|
|
454
|
+
})
|
|
455
|
+
: "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),
|
|
432
456
|
contentType: "application/json",
|
|
433
457
|
queryParameters: _queryParams,
|
|
434
458
|
requestType: "json",
|
|
@@ -491,7 +515,11 @@ class WorkflowDeployments {
|
|
|
491
515
|
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)
|
|
492
516
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
493
517
|
method: "GET",
|
|
494
|
-
headers: Object.assign(Object.assign({ "X-
|
|
518
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
519
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
520
|
+
unrecognizedObjectKeys: "strip",
|
|
521
|
+
})
|
|
522
|
+
: "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),
|
|
495
523
|
contentType: "application/json",
|
|
496
524
|
requestType: "json",
|
|
497
525
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -554,7 +582,11 @@ class WorkflowDeployments {
|
|
|
554
582
|
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)
|
|
555
583
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
556
584
|
method: "PATCH",
|
|
557
|
-
headers: Object.assign(Object.assign({ "X-
|
|
585
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
586
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
587
|
+
unrecognizedObjectKeys: "strip",
|
|
588
|
+
})
|
|
589
|
+
: "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),
|
|
558
590
|
contentType: "application/json",
|
|
559
591
|
requestType: "json",
|
|
560
592
|
body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -10,6 +10,8 @@ export declare namespace WorkflowSandboxes {
|
|
|
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 WorkflowSandboxes {
|
|
|
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
|
}
|
|
@@ -77,7 +77,11 @@ class WorkflowSandboxes {
|
|
|
77
77
|
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)
|
|
78
78
|
.default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
|
|
79
79
|
method: "POST",
|
|
80
|
-
headers: Object.assign(Object.assign({ "X-
|
|
80
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
81
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
82
|
+
unrecognizedObjectKeys: "strip",
|
|
83
|
+
})
|
|
84
|
+
: "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),
|
|
81
85
|
contentType: "application/json",
|
|
82
86
|
requestType: "json",
|
|
83
87
|
body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -155,7 +159,11 @@ class WorkflowSandboxes {
|
|
|
155
159
|
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)
|
|
156
160
|
.default, "v1/workflow-sandboxes/examples"),
|
|
157
161
|
method: "GET",
|
|
158
|
-
headers: Object.assign(Object.assign({ "X-
|
|
162
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
163
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
164
|
+
unrecognizedObjectKeys: "strip",
|
|
165
|
+
})
|
|
166
|
+
: "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),
|
|
159
167
|
contentType: "application/json",
|
|
160
168
|
queryParameters: _queryParams,
|
|
161
169
|
requestType: "json",
|
|
@@ -13,6 +13,8 @@ export declare namespace Workflows {
|
|
|
13
13
|
/** Specify a custom URL to connect the client to. */
|
|
14
14
|
baseUrl?: core.Supplier<string>;
|
|
15
15
|
apiKey: core.Supplier<string>;
|
|
16
|
+
/** Override the X-API-Version header */
|
|
17
|
+
apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
|
|
16
18
|
}
|
|
17
19
|
interface RequestOptions {
|
|
18
20
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -21,6 +23,8 @@ export declare namespace Workflows {
|
|
|
21
23
|
maxRetries?: number;
|
|
22
24
|
/** A hook to abort the request. */
|
|
23
25
|
abortSignal?: AbortSignal;
|
|
26
|
+
/** Override the X-API-Version header */
|
|
27
|
+
apiVersion?: Vellum.ApiVersionEnum | undefined;
|
|
24
28
|
/** Additional headers to include in the request. */
|
|
25
29
|
headers?: Record<string, string>;
|
|
26
30
|
}
|
|
@@ -37,11 +41,6 @@ export declare class Workflows {
|
|
|
37
41
|
* @param {File | fs.ReadStream | Blob | undefined} artifact
|
|
38
42
|
* @param {Vellum.WorkflowPushRequest} request
|
|
39
43
|
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* await client.workflows.push(fs.createReadStream("/path/to/your/file"), {
|
|
43
|
-
* execConfig: "exec_config"
|
|
44
|
-
* })
|
|
45
44
|
*/
|
|
46
45
|
push(artifact: File | fs.ReadStream | Blob | undefined, request: Vellum.WorkflowPushRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<Vellum.WorkflowPushResponse>;
|
|
47
46
|
private __push;
|
|
@@ -52,9 +52,9 @@ exports.Workflows = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
54
|
const Vellum = __importStar(require("../../../index"));
|
|
55
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
55
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
56
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
57
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
|
58
58
|
const json_1 = require("../../../../core/json");
|
|
59
59
|
class Workflows {
|
|
60
60
|
constructor(_options) {
|
|
@@ -87,7 +87,11 @@ class Workflows {
|
|
|
87
87
|
url: (0, url_join_1.default)((_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : ((_f = (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.VellumEnvironment.Production)
|
|
88
88
|
.default, `v1/workflows/${encodeURIComponent(id)}/pull`),
|
|
89
89
|
method: "GET",
|
|
90
|
-
headers: Object.assign(Object.assign({ "X-
|
|
90
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
91
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
92
|
+
unrecognizedObjectKeys: "strip",
|
|
93
|
+
})
|
|
94
|
+
: "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),
|
|
91
95
|
contentType: "application/json",
|
|
92
96
|
queryParameters: _queryParams,
|
|
93
97
|
requestType: "json",
|
|
@@ -132,11 +136,6 @@ class Workflows {
|
|
|
132
136
|
* @param {File | fs.ReadStream | Blob | undefined} artifact
|
|
133
137
|
* @param {Vellum.WorkflowPushRequest} request
|
|
134
138
|
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* await client.workflows.push(fs.createReadStream("/path/to/your/file"), {
|
|
138
|
-
* execConfig: "exec_config"
|
|
139
|
-
* })
|
|
140
139
|
*/
|
|
141
140
|
push(artifact, request, requestOptions) {
|
|
142
141
|
return core.HttpResponsePromise.fromPromise(this.__push(artifact, request, requestOptions));
|
|
@@ -168,7 +167,11 @@ class Workflows {
|
|
|
168
167
|
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)
|
|
169
168
|
.default, "v1/workflows/push"),
|
|
170
169
|
method: "POST",
|
|
171
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-
|
|
170
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
171
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
172
|
+
unrecognizedObjectKeys: "strip",
|
|
173
|
+
})
|
|
174
|
+
: "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())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
172
175
|
requestType: "file",
|
|
173
176
|
duplex: _maybeEncodedRequest.duplex,
|
|
174
177
|
body: _maybeEncodedRequest.body,
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../../../../index";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* execConfig: "exec_config"
|
|
9
|
-
* }
|
|
10
|
-
*/
|
|
11
5
|
export interface WorkflowPushRequest {
|
|
12
6
|
/** The execution configuration of the workflow. */
|
|
13
7
|
execConfig: Vellum.WorkflowPushExecConfig;
|