vellum-ai 0.13.20 → 0.13.22
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 +10 -0
- package/Client.js +63 -10
- package/api/client/requests/ExecuteApiRequest.d.ts +17 -0
- package/api/client/requests/ExecuteApiRequest.js +5 -0
- package/api/client/requests/index.d.ts +1 -0
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +7 -7
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/metricDefinitions/client/Client.js +2 -2
- package/api/resources/mlModels/client/Client.js +1 -1
- package/api/resources/organizations/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +6 -6
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.js +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/types/ExecuteApiRequestBearerToken.d.ts +5 -0
- package/api/types/ExecuteApiRequestBearerToken.js +5 -0
- package/api/types/ExecuteApiRequestBody.d.ts +4 -0
- package/api/types/ExecuteApiRequestBody.js +5 -0
- package/api/types/ExecuteApiRequestHeadersValue.d.ts +5 -0
- package/api/types/ExecuteApiRequestHeadersValue.js +5 -0
- package/api/types/ExecuteApiResponse.d.ts +9 -0
- package/api/types/ExecuteApiResponse.js +5 -0
- package/api/types/MethodEnum.d.ts +18 -0
- package/api/types/MethodEnum.js +13 -0
- package/api/types/VellumSecret.d.ts +6 -0
- package/api/types/VellumSecret.js +5 -0
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/dist/Client.d.ts +10 -0
- package/dist/Client.js +63 -10
- package/dist/api/client/requests/ExecuteApiRequest.d.ts +17 -0
- package/dist/api/client/requests/ExecuteApiRequest.js +5 -0
- package/dist/api/client/requests/index.d.ts +1 -0
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +7 -7
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
- package/dist/api/resources/mlModels/client/Client.js +1 -1
- package/dist/api/resources/organizations/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +6 -6
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.js +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/types/ExecuteApiRequestBearerToken.d.ts +5 -0
- package/dist/api/types/ExecuteApiRequestBearerToken.js +5 -0
- package/dist/api/types/ExecuteApiRequestBody.d.ts +4 -0
- package/dist/api/types/ExecuteApiRequestBody.js +5 -0
- package/dist/api/types/ExecuteApiRequestHeadersValue.d.ts +5 -0
- package/dist/api/types/ExecuteApiRequestHeadersValue.js +5 -0
- package/dist/api/types/ExecuteApiResponse.d.ts +9 -0
- package/dist/api/types/ExecuteApiResponse.js +5 -0
- package/dist/api/types/MethodEnum.d.ts +18 -0
- package/dist/api/types/MethodEnum.js +13 -0
- package/dist/api/types/VellumSecret.d.ts +6 -0
- package/dist/api/types/VellumSecret.js +5 -0
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -0
- package/dist/serialization/client/requests/ExecuteApiRequest.d.ts +20 -0
- package/dist/serialization/client/requests/ExecuteApiRequest.js +51 -0
- package/dist/serialization/client/requests/index.d.ts +1 -0
- package/dist/serialization/client/requests/index.js +3 -1
- package/dist/serialization/types/ExecuteApiRequestBearerToken.d.ts +11 -0
- package/dist/serialization/types/ExecuteApiRequestBearerToken.js +42 -0
- package/dist/serialization/types/ExecuteApiRequestBody.d.ts +10 -0
- package/dist/serialization/types/ExecuteApiRequestBody.js +44 -0
- package/dist/serialization/types/ExecuteApiRequestHeadersValue.d.ts +11 -0
- package/dist/serialization/types/ExecuteApiRequestHeadersValue.js +42 -0
- package/dist/serialization/types/ExecuteApiResponse.d.ts +15 -0
- package/dist/serialization/types/ExecuteApiResponse.js +46 -0
- package/dist/serialization/types/MethodEnum.d.ts +10 -0
- package/dist/serialization/types/MethodEnum.js +41 -0
- package/dist/serialization/types/VellumSecret.d.ts +12 -0
- package/dist/serialization/types/VellumSecret.js +43 -0
- package/dist/serialization/types/index.d.ts +6 -0
- package/dist/serialization/types/index.js +6 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/client/requests/ExecuteApiRequest.d.ts +20 -0
- package/serialization/client/requests/ExecuteApiRequest.js +51 -0
- package/serialization/client/requests/index.d.ts +1 -0
- package/serialization/client/requests/index.js +3 -1
- package/serialization/types/ExecuteApiRequestBearerToken.d.ts +11 -0
- package/serialization/types/ExecuteApiRequestBearerToken.js +42 -0
- package/serialization/types/ExecuteApiRequestBody.d.ts +10 -0
- package/serialization/types/ExecuteApiRequestBody.js +44 -0
- package/serialization/types/ExecuteApiRequestHeadersValue.d.ts +11 -0
- package/serialization/types/ExecuteApiRequestHeadersValue.js +42 -0
- package/serialization/types/ExecuteApiResponse.d.ts +15 -0
- package/serialization/types/ExecuteApiResponse.js +46 -0
- package/serialization/types/MethodEnum.d.ts +10 -0
- package/serialization/types/MethodEnum.js +41 -0
- package/serialization/types/VellumSecret.d.ts +12 -0
- package/serialization/types/VellumSecret.js +43 -0
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.js +6 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/.mock/definition/__package__.yml +0 -6819
- package/.mock/definition/adHoc.yml +0 -64
- package/.mock/definition/api.yml +0 -17
- package/.mock/definition/containerImages.yml +0 -148
- package/.mock/definition/deployments.yml +0 -372
- package/.mock/definition/documentIndexes.yml +0 -448
- package/.mock/definition/documents.yml +0 -281
- package/.mock/definition/folderEntities.yml +0 -135
- package/.mock/definition/metricDefinitions.yml +0 -96
- package/.mock/definition/mlModels.yml +0 -36
- package/.mock/definition/organizations.yml +0 -29
- package/.mock/definition/sandboxes.yml +0 -205
- package/.mock/definition/testSuiteRuns.yml +0 -163
- package/.mock/definition/testSuites.yml +0 -192
- package/.mock/definition/workflowDeployments.yml +0 -299
- package/.mock/definition/workflowSandboxes.yml +0 -94
- package/.mock/definition/workflows.yml +0 -80
- package/.mock/definition/workspaceSecrets.yml +0 -78
- package/.mock/definition/workspaces.yml +0 -29
- package/.mock/fern.config.json +0 -4
- package/.mock/openapi/openapi.yml +0 -12271
|
@@ -81,7 +81,7 @@ class TestSuiteRuns {
|
|
|
81
81
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
82
82
|
.default, "v1/test-suite-runs"),
|
|
83
83
|
method: "POST",
|
|
84
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
84
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -134,7 +134,7 @@ class TestSuiteRuns {
|
|
|
134
134
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
135
135
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
|
|
136
136
|
method: "GET",
|
|
137
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
137
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
requestType: "json",
|
|
140
140
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -201,7 +201,7 @@ class TestSuiteRuns {
|
|
|
201
201
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
202
202
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
|
|
203
203
|
method: "GET",
|
|
204
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
204
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
queryParameters: _queryParams,
|
|
207
207
|
requestType: "json",
|
|
@@ -83,7 +83,7 @@ class TestSuites {
|
|
|
83
83
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
84
84
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
85
85
|
method: "GET",
|
|
86
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
86
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
queryParameters: _queryParams,
|
|
89
89
|
requestType: "json",
|
|
@@ -164,7 +164,7 @@ class TestSuites {
|
|
|
164
164
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
165
165
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
166
166
|
method: "POST",
|
|
167
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
167
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
requestType: "json",
|
|
170
170
|
body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -211,7 +211,7 @@ class TestSuites {
|
|
|
211
211
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
212
212
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
|
|
213
213
|
method: "POST",
|
|
214
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
214
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
215
215
|
contentType: "application/x-ndjson",
|
|
216
216
|
requestType: "json",
|
|
217
217
|
body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
|
|
@@ -278,7 +278,7 @@ class TestSuites {
|
|
|
278
278
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
279
279
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
|
|
280
280
|
method: "DELETE",
|
|
281
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
281
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
282
282
|
contentType: "application/json",
|
|
283
283
|
requestType: "json",
|
|
284
284
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -90,7 +90,7 @@ class WorkflowDeployments {
|
|
|
90
90
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
91
91
|
.default, "v1/workflow-deployments"),
|
|
92
92
|
method: "GET",
|
|
93
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
93
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
96
96
|
requestType: "json",
|
|
@@ -143,7 +143,7 @@ class WorkflowDeployments {
|
|
|
143
143
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
144
144
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
|
|
145
145
|
method: "GET",
|
|
146
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
146
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
147
147
|
contentType: "application/json",
|
|
148
148
|
requestType: "json",
|
|
149
149
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -196,7 +196,7 @@ class WorkflowDeployments {
|
|
|
196
196
|
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)
|
|
197
197
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
|
|
198
198
|
method: "GET",
|
|
199
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
199
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
200
200
|
contentType: "application/json",
|
|
201
201
|
requestType: "json",
|
|
202
202
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -265,7 +265,7 @@ class WorkflowDeployments {
|
|
|
265
265
|
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)
|
|
266
266
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
|
|
267
267
|
method: "GET",
|
|
268
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
268
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
269
269
|
contentType: "application/json",
|
|
270
270
|
queryParameters: _queryParams,
|
|
271
271
|
requestType: "json",
|
|
@@ -319,7 +319,7 @@ class WorkflowDeployments {
|
|
|
319
319
|
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)
|
|
320
320
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
321
321
|
method: "GET",
|
|
322
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
322
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
323
323
|
contentType: "application/json",
|
|
324
324
|
requestType: "json",
|
|
325
325
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -373,7 +373,7 @@ class WorkflowDeployments {
|
|
|
373
373
|
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)
|
|
374
374
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
375
375
|
method: "PATCH",
|
|
376
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
376
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
377
377
|
contentType: "application/json",
|
|
378
378
|
requestType: "json",
|
|
379
379
|
body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -74,7 +74,7 @@ class WorkflowSandboxes {
|
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
75
75
|
.default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
|
|
76
76
|
method: "POST",
|
|
77
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
77
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -88,7 +88,7 @@ class Workflows {
|
|
|
88
88
|
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)
|
|
89
89
|
.default, `v1/workflows/${encodeURIComponent(id)}/pull`),
|
|
90
90
|
method: "GET",
|
|
91
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
91
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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
92
|
contentType: "application/json",
|
|
93
93
|
queryParameters: _queryParams,
|
|
94
94
|
requestType: "json",
|
|
@@ -163,7 +163,7 @@ class Workflows {
|
|
|
163
163
|
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)
|
|
164
164
|
.default, "v1/workflows/push"),
|
|
165
165
|
method: "POST",
|
|
166
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
166
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
167
167
|
requestType: "file",
|
|
168
168
|
duplex: _maybeEncodedRequest.duplex,
|
|
169
169
|
body: _maybeEncodedRequest.body,
|
|
@@ -74,7 +74,7 @@ class WorkspaceSecrets {
|
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
75
75
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
76
76
|
method: "GET",
|
|
77
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
77
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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.13.
|
|
130
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
131
131
|
contentType: "application/json",
|
|
132
132
|
requestType: "json",
|
|
133
133
|
body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
|
|
@@ -73,7 +73,7 @@ class Workspaces {
|
|
|
73
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
74
74
|
.default, "v1/workspaces/identity"),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
76
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
requestType: "json",
|
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* - `POST` - POST
|
|
6
|
+
* - `GET` - GET
|
|
7
|
+
* - `PATCH` - PATCH
|
|
8
|
+
* - `PUT` - PUT
|
|
9
|
+
* - `DELETE` - DELETE
|
|
10
|
+
*/
|
|
11
|
+
export type MethodEnum = "POST" | "GET" | "PATCH" | "PUT" | "DELETE";
|
|
12
|
+
export declare const MethodEnum: {
|
|
13
|
+
readonly Post: "POST";
|
|
14
|
+
readonly Get: "GET";
|
|
15
|
+
readonly Patch: "PATCH";
|
|
16
|
+
readonly Put: "PUT";
|
|
17
|
+
readonly Delete: "DELETE";
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MethodEnum = void 0;
|
|
7
|
+
exports.MethodEnum = {
|
|
8
|
+
Post: "POST",
|
|
9
|
+
Get: "GET",
|
|
10
|
+
Patch: "PATCH",
|
|
11
|
+
Put: "PUT",
|
|
12
|
+
Delete: "DELETE",
|
|
13
|
+
};
|
package/api/types/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from "./ExecuteApiRequestBody";
|
|
2
|
+
export * from "./ExecuteApiRequestHeadersValue";
|
|
3
|
+
export * from "./ExecuteApiRequestBearerToken";
|
|
1
4
|
export * from "./AdHocExecutePromptEvent";
|
|
2
5
|
export * from "./AdHocExpandMeta";
|
|
3
6
|
export * from "./AdHocFulfilledPromptExecutionMeta";
|
|
@@ -84,6 +87,7 @@ export * from "./EphemeralPromptCacheConfigTypeEnum";
|
|
|
84
87
|
export * from "./ErrorInput";
|
|
85
88
|
export * from "./ErrorVellumValue";
|
|
86
89
|
export * from "./ErrorVellumValueRequest";
|
|
90
|
+
export * from "./ExecuteApiResponse";
|
|
87
91
|
export * from "./ExecutePromptEvent";
|
|
88
92
|
export * from "./ExecutePromptResponse";
|
|
89
93
|
export * from "./ExecuteWorkflowResponse";
|
|
@@ -177,6 +181,7 @@ export * from "./MetadataFilterConfigRequest";
|
|
|
177
181
|
export * from "./MetadataFilterRuleCombinator";
|
|
178
182
|
export * from "./MetadataFilterRuleRequest";
|
|
179
183
|
export * from "./MetadataFiltersRequest";
|
|
184
|
+
export * from "./MethodEnum";
|
|
180
185
|
export * from "./MetricDefinitionExecution";
|
|
181
186
|
export * from "./MetricDefinitionHistoryItem";
|
|
182
187
|
export * from "./MetricDefinitionInput";
|
|
@@ -431,6 +436,7 @@ export * from "./VellumErrorCodeEnum";
|
|
|
431
436
|
export * from "./VellumErrorRequest";
|
|
432
437
|
export * from "./VellumImage";
|
|
433
438
|
export * from "./VellumImageRequest";
|
|
439
|
+
export * from "./VellumSecret";
|
|
434
440
|
export * from "./VellumValue";
|
|
435
441
|
export * from "./VellumValueLogicalConditionGroupRequest";
|
|
436
442
|
export * from "./VellumValueLogicalConditionRequest";
|
package/api/types/index.js
CHANGED
|
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ExecuteApiRequestBody"), exports);
|
|
18
|
+
__exportStar(require("./ExecuteApiRequestHeadersValue"), exports);
|
|
19
|
+
__exportStar(require("./ExecuteApiRequestBearerToken"), exports);
|
|
17
20
|
__exportStar(require("./AdHocExecutePromptEvent"), exports);
|
|
18
21
|
__exportStar(require("./AdHocExpandMeta"), exports);
|
|
19
22
|
__exportStar(require("./AdHocFulfilledPromptExecutionMeta"), exports);
|
|
@@ -100,6 +103,7 @@ __exportStar(require("./EphemeralPromptCacheConfigTypeEnum"), exports);
|
|
|
100
103
|
__exportStar(require("./ErrorInput"), exports);
|
|
101
104
|
__exportStar(require("./ErrorVellumValue"), exports);
|
|
102
105
|
__exportStar(require("./ErrorVellumValueRequest"), exports);
|
|
106
|
+
__exportStar(require("./ExecuteApiResponse"), exports);
|
|
103
107
|
__exportStar(require("./ExecutePromptEvent"), exports);
|
|
104
108
|
__exportStar(require("./ExecutePromptResponse"), exports);
|
|
105
109
|
__exportStar(require("./ExecuteWorkflowResponse"), exports);
|
|
@@ -193,6 +197,7 @@ __exportStar(require("./MetadataFilterConfigRequest"), exports);
|
|
|
193
197
|
__exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
194
198
|
__exportStar(require("./MetadataFilterRuleRequest"), exports);
|
|
195
199
|
__exportStar(require("./MetadataFiltersRequest"), exports);
|
|
200
|
+
__exportStar(require("./MethodEnum"), exports);
|
|
196
201
|
__exportStar(require("./MetricDefinitionExecution"), exports);
|
|
197
202
|
__exportStar(require("./MetricDefinitionHistoryItem"), exports);
|
|
198
203
|
__exportStar(require("./MetricDefinitionInput"), exports);
|
|
@@ -447,6 +452,7 @@ __exportStar(require("./VellumErrorCodeEnum"), exports);
|
|
|
447
452
|
__exportStar(require("./VellumErrorRequest"), exports);
|
|
448
453
|
__exportStar(require("./VellumImage"), exports);
|
|
449
454
|
__exportStar(require("./VellumImageRequest"), exports);
|
|
455
|
+
__exportStar(require("./VellumSecret"), exports);
|
|
450
456
|
__exportStar(require("./VellumValue"), exports);
|
|
451
457
|
__exportStar(require("./VellumValueLogicalConditionGroupRequest"), exports);
|
|
452
458
|
__exportStar(require("./VellumValueLogicalConditionRequest"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -76,6 +76,16 @@ export declare class VellumClient {
|
|
|
76
76
|
get workflows(): Workflows;
|
|
77
77
|
get workspaceSecrets(): WorkspaceSecrets;
|
|
78
78
|
get workspaces(): Workspaces;
|
|
79
|
+
/**
|
|
80
|
+
* @param {Vellum.ExecuteApiRequest} request
|
|
81
|
+
* @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* await client.executeApi({
|
|
85
|
+
* url: "url"
|
|
86
|
+
* })
|
|
87
|
+
*/
|
|
88
|
+
executeApi(request: Vellum.ExecuteApiRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecuteApiResponse>;
|
|
79
89
|
/**
|
|
80
90
|
* @param {Vellum.CodeExecutor} request
|
|
81
91
|
* @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/Client.js
CHANGED
|
@@ -144,6 +144,59 @@ class VellumClient {
|
|
|
144
144
|
var _a;
|
|
145
145
|
return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_17.Workspaces(this._options)));
|
|
146
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* @param {Vellum.ExecuteApiRequest} request
|
|
149
|
+
* @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* await client.executeApi({
|
|
153
|
+
* url: "url"
|
|
154
|
+
* })
|
|
155
|
+
*/
|
|
156
|
+
executeApi(request, requestOptions) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
var _a, _b;
|
|
159
|
+
const _response = yield core.fetcher({
|
|
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)
|
|
161
|
+
.default, "v1/execute-api"),
|
|
162
|
+
method: "POST",
|
|
163
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
164
|
+
contentType: "application/json",
|
|
165
|
+
requestType: "json",
|
|
166
|
+
body: serializers.ExecuteApiRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
167
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
168
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
169
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
170
|
+
});
|
|
171
|
+
if (_response.ok) {
|
|
172
|
+
return serializers.ExecuteApiResponse.parseOrThrow(_response.body, {
|
|
173
|
+
unrecognizedObjectKeys: "passthrough",
|
|
174
|
+
allowUnrecognizedUnionMembers: true,
|
|
175
|
+
allowUnrecognizedEnumValues: true,
|
|
176
|
+
breadcrumbsPrefix: ["response"],
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
if (_response.error.reason === "status-code") {
|
|
180
|
+
throw new errors.VellumError({
|
|
181
|
+
statusCode: _response.error.statusCode,
|
|
182
|
+
body: _response.error.body,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
switch (_response.error.reason) {
|
|
186
|
+
case "non-json":
|
|
187
|
+
throw new errors.VellumError({
|
|
188
|
+
statusCode: _response.error.statusCode,
|
|
189
|
+
body: _response.error.rawBody,
|
|
190
|
+
});
|
|
191
|
+
case "timeout":
|
|
192
|
+
throw new errors.VellumTimeoutError("Timeout exceeded when calling POST /v1/execute-api.");
|
|
193
|
+
case "unknown":
|
|
194
|
+
throw new errors.VellumError({
|
|
195
|
+
message: _response.error.errorMessage,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
147
200
|
/**
|
|
148
201
|
* @param {Vellum.CodeExecutor} request
|
|
149
202
|
* @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -173,7 +226,7 @@ class VellumClient {
|
|
|
173
226
|
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
227
|
.predict, "v1/execute-code"),
|
|
175
228
|
method: "POST",
|
|
176
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
229
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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
230
|
contentType: "application/json",
|
|
178
231
|
requestType: "json",
|
|
179
232
|
body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -242,7 +295,7 @@ class VellumClient {
|
|
|
242
295
|
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)
|
|
243
296
|
.predict, "v1/execute-prompt"),
|
|
244
297
|
method: "POST",
|
|
245
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
298
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
246
299
|
contentType: "application/json",
|
|
247
300
|
requestType: "json",
|
|
248
301
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -300,7 +353,7 @@ class VellumClient {
|
|
|
300
353
|
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)
|
|
301
354
|
.predict, "v1/execute-prompt-stream"),
|
|
302
355
|
method: "POST",
|
|
303
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
356
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
304
357
|
contentType: "application/json",
|
|
305
358
|
requestType: "json",
|
|
306
359
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -385,7 +438,7 @@ class VellumClient {
|
|
|
385
438
|
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)
|
|
386
439
|
.predict, "v1/execute-workflow"),
|
|
387
440
|
method: "POST",
|
|
388
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
441
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
389
442
|
contentType: "application/json",
|
|
390
443
|
requestType: "json",
|
|
391
444
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -441,7 +494,7 @@ class VellumClient {
|
|
|
441
494
|
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)
|
|
442
495
|
.predict, "v1/execute-workflow-stream"),
|
|
443
496
|
method: "POST",
|
|
444
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
497
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
445
498
|
contentType: "application/json",
|
|
446
499
|
requestType: "json",
|
|
447
500
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -528,7 +581,7 @@ class VellumClient {
|
|
|
528
581
|
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)
|
|
529
582
|
.predict, "v1/generate"),
|
|
530
583
|
method: "POST",
|
|
531
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
584
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
532
585
|
contentType: "application/json",
|
|
533
586
|
requestType: "json",
|
|
534
587
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -589,7 +642,7 @@ class VellumClient {
|
|
|
589
642
|
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)
|
|
590
643
|
.predict, "v1/generate-stream"),
|
|
591
644
|
method: "POST",
|
|
592
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
645
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
593
646
|
contentType: "application/json",
|
|
594
647
|
requestType: "json",
|
|
595
648
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -670,7 +723,7 @@ class VellumClient {
|
|
|
670
723
|
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)
|
|
671
724
|
.predict, "v1/search"),
|
|
672
725
|
method: "POST",
|
|
673
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
726
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
674
727
|
contentType: "application/json",
|
|
675
728
|
requestType: "json",
|
|
676
729
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -738,7 +791,7 @@ class VellumClient {
|
|
|
738
791
|
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)
|
|
739
792
|
.predict, "v1/submit-completion-actuals"),
|
|
740
793
|
method: "POST",
|
|
741
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
794
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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),
|
|
742
795
|
contentType: "application/json",
|
|
743
796
|
requestType: "json",
|
|
744
797
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -801,7 +854,7 @@ class VellumClient {
|
|
|
801
854
|
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
855
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
803
856
|
method: "POST",
|
|
804
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.
|
|
857
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.22", "User-Agent": "vellum-ai/0.13.22", "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
858
|
contentType: "application/json",
|
|
806
859
|
requestType: "json",
|
|
807
860
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* url: "url"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface ExecuteApiRequest {
|
|
12
|
+
url: string;
|
|
13
|
+
method?: Vellum.MethodEnum;
|
|
14
|
+
body?: Vellum.ExecuteApiRequestBody;
|
|
15
|
+
headers?: Record<string, Vellum.ExecuteApiRequestHeadersValue>;
|
|
16
|
+
bearerToken?: Vellum.ExecuteApiRequestBearerToken;
|
|
17
|
+
}
|