vellum-ai 0.9.16 → 0.10.1
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/.mock/definition/__package__.yml +12 -0
- package/.mock/definition/deployments.yml +3 -0
- package/.mock/definition/mlModels.yml +34 -0
- package/.mock/definition/workflowDeployments.yml +3 -0
- package/.mock/openapi/openapi.yml +48 -1
- package/Client.d.ts +3 -0
- package/Client.js +29 -24
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.d.ts +11 -0
- package/api/resources/deployments/client/Client.js +59 -6
- 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/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/metricDefinitions/client/Client.js +1 -1
- package/api/resources/mlModels/client/Client.d.ts +37 -0
- package/api/resources/mlModels/client/Client.js +110 -0
- package/api/resources/mlModels/client/index.d.ts +1 -0
- package/api/resources/mlModels/client/index.js +2 -0
- package/api/resources/mlModels/index.d.ts +1 -0
- package/api/resources/mlModels/index.js +17 -0
- 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.d.ts +11 -0
- package/api/resources/workflowDeployments/client/Client.js +58 -5
- 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/types/DeploymentHistoryItem.d.ts +16 -0
- package/api/types/DeploymentHistoryItem.js +5 -0
- package/api/types/MlModelRead.d.ts +11 -0
- package/api/types/MlModelRead.js +5 -0
- package/api/types/WorkflowDeploymentHistoryItem.d.ts +17 -0
- package/api/types/WorkflowDeploymentHistoryItem.js +5 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +29 -24
- 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.d.ts +11 -0
- package/dist/api/resources/deployments/client/Client.js +59 -6
- 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/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
- package/dist/api/resources/mlModels/client/Client.d.ts +37 -0
- package/dist/api/resources/mlModels/client/Client.js +110 -0
- package/dist/api/resources/mlModels/client/index.d.ts +1 -0
- package/dist/api/resources/mlModels/client/index.js +2 -0
- package/dist/api/resources/mlModels/index.d.ts +1 -0
- package/dist/api/resources/mlModels/index.js +17 -0
- 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.d.ts +11 -0
- package/dist/api/resources/workflowDeployments/client/Client.js +58 -5
- 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/types/DeploymentHistoryItem.d.ts +16 -0
- package/dist/api/types/DeploymentHistoryItem.js +5 -0
- package/dist/api/types/MlModelRead.d.ts +11 -0
- package/dist/api/types/MlModelRead.js +5 -0
- package/dist/api/types/WorkflowDeploymentHistoryItem.d.ts +17 -0
- package/dist/api/types/WorkflowDeploymentHistoryItem.js +5 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/types/DeploymentHistoryItem.d.ts +19 -0
- package/dist/serialization/types/DeploymentHistoryItem.js +40 -0
- package/dist/serialization/types/MlModelRead.d.ts +13 -0
- package/dist/serialization/types/MlModelRead.js +34 -0
- package/dist/serialization/types/WorkflowDeploymentHistoryItem.d.ts +20 -0
- package/dist/serialization/types/WorkflowDeploymentHistoryItem.js +41 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +207 -0
- package/serialization/types/DeploymentHistoryItem.d.ts +19 -0
- package/serialization/types/DeploymentHistoryItem.js +40 -0
- package/serialization/types/MlModelRead.d.ts +13 -0
- package/serialization/types/MlModelRead.js +34 -0
- package/serialization/types/WorkflowDeploymentHistoryItem.d.ts +20 -0
- package/serialization/types/WorkflowDeploymentHistoryItem.js +41 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -81,7 +81,7 @@ class DocumentIndexes {
|
|
|
81
81
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
82
82
|
.default, "v1/document-indexes"),
|
|
83
83
|
method: "GET",
|
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
queryParameters: _queryParams,
|
|
87
87
|
requestType: "json",
|
|
@@ -196,7 +196,7 @@ class DocumentIndexes {
|
|
|
196
196
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
197
197
|
.default, "v1/document-indexes"),
|
|
198
198
|
method: "POST",
|
|
199
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
199
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
200
200
|
contentType: "application/json",
|
|
201
201
|
requestType: "json",
|
|
202
202
|
body: serializers.DocumentIndexCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -249,7 +249,7 @@ class DocumentIndexes {
|
|
|
249
249
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
250
250
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
251
251
|
method: "GET",
|
|
252
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
252
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
253
253
|
contentType: "application/json",
|
|
254
254
|
requestType: "json",
|
|
255
255
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -304,7 +304,7 @@ class DocumentIndexes {
|
|
|
304
304
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
305
305
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
306
306
|
method: "PUT",
|
|
307
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
307
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
308
308
|
contentType: "application/json",
|
|
309
309
|
requestType: "json",
|
|
310
310
|
body: serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -357,7 +357,7 @@ class DocumentIndexes {
|
|
|
357
357
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
358
358
|
.documents, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
359
359
|
method: "DELETE",
|
|
360
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
360
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
361
361
|
contentType: "application/json",
|
|
362
362
|
requestType: "json",
|
|
363
363
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -405,7 +405,7 @@ class DocumentIndexes {
|
|
|
405
405
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
406
406
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
407
407
|
method: "PATCH",
|
|
408
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
408
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
409
409
|
contentType: "application/json",
|
|
410
410
|
requestType: "json",
|
|
411
411
|
body: serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
|
|
@@ -461,7 +461,7 @@ class DocumentIndexes {
|
|
|
461
461
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
462
462
|
.default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
|
|
463
463
|
method: "POST",
|
|
464
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
464
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
465
465
|
contentType: "application/json",
|
|
466
466
|
requestType: "json",
|
|
467
467
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -509,7 +509,7 @@ class DocumentIndexes {
|
|
|
509
509
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
510
510
|
.documents, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
|
|
511
511
|
method: "DELETE",
|
|
512
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
512
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
513
513
|
contentType: "application/json",
|
|
514
514
|
requestType: "json",
|
|
515
515
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -79,7 +79,7 @@ class Documents {
|
|
|
79
79
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
80
80
|
.default, "v1/documents"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
85
85
|
requestType: "json",
|
|
@@ -132,7 +132,7 @@ class Documents {
|
|
|
132
132
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
133
133
|
.default, `v1/documents/${encodeURIComponent(id)}`),
|
|
134
134
|
method: "GET",
|
|
135
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
136
136
|
contentType: "application/json",
|
|
137
137
|
requestType: "json",
|
|
138
138
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -184,7 +184,7 @@ class Documents {
|
|
|
184
184
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
185
185
|
.documents, `v1/documents/${encodeURIComponent(id)}`),
|
|
186
186
|
method: "DELETE",
|
|
187
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
188
188
|
contentType: "application/json",
|
|
189
189
|
requestType: "json",
|
|
190
190
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -232,7 +232,7 @@ class Documents {
|
|
|
232
232
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
233
233
|
.default, `v1/documents/${encodeURIComponent(id)}`),
|
|
234
234
|
method: "PATCH",
|
|
235
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
235
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
236
236
|
contentType: "application/json",
|
|
237
237
|
requestType: "json",
|
|
238
238
|
body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -322,7 +322,7 @@ class Documents {
|
|
|
322
322
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
323
323
|
.documents, "v1/upload-document"),
|
|
324
324
|
method: "POST",
|
|
325
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
325
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
|
|
326
326
|
requestType: "file",
|
|
327
327
|
duplex: _maybeEncodedRequest.duplex,
|
|
328
328
|
body: _maybeEncodedRequest.body,
|
|
@@ -81,7 +81,7 @@ class FolderEntities {
|
|
|
81
81
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
82
82
|
.default, "v1/folder-entities"),
|
|
83
83
|
method: "GET",
|
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
queryParameters: _queryParams,
|
|
87
87
|
requestType: "json",
|
|
@@ -145,7 +145,7 @@ class FolderEntities {
|
|
|
145
145
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
146
146
|
.default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
|
|
147
147
|
method: "POST",
|
|
148
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
148
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
149
149
|
contentType: "application/json",
|
|
150
150
|
requestType: "json",
|
|
151
151
|
body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
package/api/resources/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * as adHoc from "./adHoc";
|
|
|
12
12
|
export * as containerImages from "./containerImages";
|
|
13
13
|
export * as documents from "./documents";
|
|
14
14
|
export * as metricDefinitions from "./metricDefinitions";
|
|
15
|
+
export * as mlModels from "./mlModels";
|
|
15
16
|
export * as sandboxes from "./sandboxes";
|
|
16
17
|
export * as testSuiteRuns from "./testSuiteRuns";
|
|
17
18
|
export * as testSuites from "./testSuites";
|
package/api/resources/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.workspaceSecrets = exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.workflows = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
|
|
29
|
+
exports.workspaceSecrets = exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.mlModels = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.workflows = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
|
|
30
30
|
exports.deployments = __importStar(require("./deployments"));
|
|
31
31
|
__exportStar(require("./deployments/types"), exports);
|
|
32
32
|
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
@@ -41,6 +41,7 @@ exports.adHoc = __importStar(require("./adHoc"));
|
|
|
41
41
|
exports.containerImages = __importStar(require("./containerImages"));
|
|
42
42
|
exports.documents = __importStar(require("./documents"));
|
|
43
43
|
exports.metricDefinitions = __importStar(require("./metricDefinitions"));
|
|
44
|
+
exports.mlModels = __importStar(require("./mlModels"));
|
|
44
45
|
exports.sandboxes = __importStar(require("./sandboxes"));
|
|
45
46
|
exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
|
|
46
47
|
exports.testSuites = __importStar(require("./testSuites"));
|
|
@@ -71,7 +71,7 @@ class MetricDefinitions {
|
|
|
71
71
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
72
72
|
.default, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
|
|
73
73
|
method: "POST",
|
|
74
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
74
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
requestType: "json",
|
|
77
77
|
body: serializers.ExecuteMetricDefinition.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Vellum from "../../../index";
|
|
7
|
+
export declare namespace MlModels {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
|
+
}
|
|
12
|
+
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
14
|
+
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
16
|
+
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
18
|
+
abortSignal?: AbortSignal;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare class MlModels {
|
|
22
|
+
protected readonly _options: MlModels.Options;
|
|
23
|
+
constructor(_options?: MlModels.Options);
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve details about an ML Model
|
|
26
|
+
*
|
|
27
|
+
* @param {string} id - Either the ML Model's ID, its unique name, or its ID in the workspace.
|
|
28
|
+
* @param {MlModels.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.mlModels.retrieve("id")
|
|
32
|
+
*/
|
|
33
|
+
retrieve(id: string, requestOptions?: MlModels.RequestOptions): Promise<Vellum.MlModelRead>;
|
|
34
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
35
|
+
X_API_KEY: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.MlModels = void 0;
|
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
|
43
|
+
const core = __importStar(require("../../../../core"));
|
|
44
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
45
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
47
|
+
class MlModels {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
|
+
this._options = _options;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Retrieve details about an ML Model
|
|
53
|
+
*
|
|
54
|
+
* @param {string} id - Either the ML Model's ID, its unique name, or its ID in the workspace.
|
|
55
|
+
* @param {MlModels.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* await client.mlModels.retrieve("id")
|
|
59
|
+
*/
|
|
60
|
+
retrieve(id, requestOptions) {
|
|
61
|
+
var _a;
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const _response = yield core.fetcher({
|
|
64
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
65
|
+
.default, `v1/ml-models/${encodeURIComponent(id)}`),
|
|
66
|
+
method: "GET",
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
|
+
contentType: "application/json",
|
|
69
|
+
requestType: "json",
|
|
70
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
71
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
72
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
73
|
+
});
|
|
74
|
+
if (_response.ok) {
|
|
75
|
+
return serializers.MlModelRead.parseOrThrow(_response.body, {
|
|
76
|
+
unrecognizedObjectKeys: "passthrough",
|
|
77
|
+
allowUnrecognizedUnionMembers: true,
|
|
78
|
+
allowUnrecognizedEnumValues: true,
|
|
79
|
+
breadcrumbsPrefix: ["response"],
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
if (_response.error.reason === "status-code") {
|
|
83
|
+
throw new errors.VellumError({
|
|
84
|
+
statusCode: _response.error.statusCode,
|
|
85
|
+
body: _response.error.body,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
switch (_response.error.reason) {
|
|
89
|
+
case "non-json":
|
|
90
|
+
throw new errors.VellumError({
|
|
91
|
+
statusCode: _response.error.statusCode,
|
|
92
|
+
body: _response.error.rawBody,
|
|
93
|
+
});
|
|
94
|
+
case "timeout":
|
|
95
|
+
throw new errors.VellumTimeoutError();
|
|
96
|
+
case "unknown":
|
|
97
|
+
throw new errors.VellumError({
|
|
98
|
+
message: _response.error.errorMessage,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
_getCustomAuthorizationHeaders() {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
106
|
+
return { X_API_KEY: apiKeyValue };
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.MlModels = MlModels;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -64,7 +64,7 @@ class Sandboxes {
|
|
|
64
64
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
65
65
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
|
|
66
66
|
method: "POST",
|
|
67
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
requestType: "json",
|
|
70
70
|
body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -151,7 +151,7 @@ class Sandboxes {
|
|
|
151
151
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
152
152
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
|
|
153
153
|
method: "POST",
|
|
154
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
154
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
155
155
|
contentType: "application/json",
|
|
156
156
|
requestType: "json",
|
|
157
157
|
body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -205,7 +205,7 @@ class Sandboxes {
|
|
|
205
205
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
206
206
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
|
|
207
207
|
method: "DELETE",
|
|
208
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
208
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
209
209
|
contentType: "application/json",
|
|
210
210
|
requestType: "json",
|
|
211
211
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -71,7 +71,7 @@ class TestSuiteRuns {
|
|
|
71
71
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
72
72
|
.default, "v1/test-suite-runs"),
|
|
73
73
|
method: "POST",
|
|
74
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
74
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
requestType: "json",
|
|
77
77
|
body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -124,7 +124,7 @@ class TestSuiteRuns {
|
|
|
124
124
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
125
125
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
|
|
126
126
|
method: "GET",
|
|
127
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
127
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
128
128
|
contentType: "application/json",
|
|
129
129
|
requestType: "json",
|
|
130
130
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -191,7 +191,7 @@ class TestSuiteRuns {
|
|
|
191
191
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
192
192
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
|
|
193
193
|
method: "GET",
|
|
194
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
194
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
195
195
|
contentType: "application/json",
|
|
196
196
|
queryParameters: _queryParams,
|
|
197
197
|
requestType: "json",
|
|
@@ -73,7 +73,7 @@ class TestSuites {
|
|
|
73
73
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
74
74
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
queryParameters: _queryParams,
|
|
79
79
|
requestType: "json",
|
|
@@ -142,7 +142,7 @@ class TestSuites {
|
|
|
142
142
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
143
143
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
144
144
|
method: "POST",
|
|
145
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
145
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
requestType: "json",
|
|
148
148
|
body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -189,7 +189,7 @@ class TestSuites {
|
|
|
189
189
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
190
190
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
|
|
191
191
|
method: "POST",
|
|
192
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
192
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
193
193
|
contentType: "application/json",
|
|
194
194
|
requestType: "json",
|
|
195
195
|
body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
|
|
@@ -256,7 +256,7 @@ class TestSuites {
|
|
|
256
256
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
257
257
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
|
|
258
258
|
method: "DELETE",
|
|
259
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
259
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
260
260
|
contentType: "application/json",
|
|
261
261
|
requestType: "json",
|
|
262
262
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -41,6 +41,17 @@ export declare class WorkflowDeployments {
|
|
|
41
41
|
* await client.workflowDeployments.retrieve("id")
|
|
42
42
|
*/
|
|
43
43
|
retrieve(id: string, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieve a specific Workflow Deployment History Item by either its UUID or the name of a Release Tag that points to it.
|
|
46
|
+
*
|
|
47
|
+
* @param {string} historyIdOrReleaseTag - Either the UUID of Workflow Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment History Item you'd like to retrieve.
|
|
48
|
+
* @param {string} id - A UUID string identifying this workflow deployment.
|
|
49
|
+
* @param {WorkflowDeployments.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.workflowDeployments.workflowDeploymentHistoryItemRetrieve("history_id_or_release_tag", "id")
|
|
53
|
+
*/
|
|
54
|
+
workflowDeploymentHistoryItemRetrieve(historyIdOrReleaseTag: string, id: string, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowDeploymentHistoryItem>;
|
|
44
55
|
/**
|
|
45
56
|
* List Release Tags associated with the specified Workflow Deployment
|
|
46
57
|
*
|
|
@@ -78,7 +78,7 @@ class WorkflowDeployments {
|
|
|
78
78
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
79
79
|
.default, "v1/workflow-deployments"),
|
|
80
80
|
method: "GET",
|
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
queryParameters: _queryParams,
|
|
84
84
|
requestType: "json",
|
|
@@ -131,7 +131,7 @@ class WorkflowDeployments {
|
|
|
131
131
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
132
132
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
|
|
133
133
|
method: "GET",
|
|
134
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
requestType: "json",
|
|
137
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -167,6 +167,59 @@ class WorkflowDeployments {
|
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* Retrieve a specific Workflow Deployment History Item by either its UUID or the name of a Release Tag that points to it.
|
|
172
|
+
*
|
|
173
|
+
* @param {string} historyIdOrReleaseTag - Either the UUID of Workflow Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment History Item you'd like to retrieve.
|
|
174
|
+
* @param {string} id - A UUID string identifying this workflow deployment.
|
|
175
|
+
* @param {WorkflowDeployments.RequestOptions} requestOptions - Request-specific configuration.
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* await client.workflowDeployments.workflowDeploymentHistoryItemRetrieve("history_id_or_release_tag", "id")
|
|
179
|
+
*/
|
|
180
|
+
workflowDeploymentHistoryItemRetrieve(historyIdOrReleaseTag, id, requestOptions) {
|
|
181
|
+
var _a;
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
const _response = yield core.fetcher({
|
|
184
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
185
|
+
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
|
|
186
|
+
method: "GET",
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
188
|
+
contentType: "application/json",
|
|
189
|
+
requestType: "json",
|
|
190
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
191
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
192
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
193
|
+
});
|
|
194
|
+
if (_response.ok) {
|
|
195
|
+
return serializers.WorkflowDeploymentHistoryItem.parseOrThrow(_response.body, {
|
|
196
|
+
unrecognizedObjectKeys: "passthrough",
|
|
197
|
+
allowUnrecognizedUnionMembers: true,
|
|
198
|
+
allowUnrecognizedEnumValues: true,
|
|
199
|
+
breadcrumbsPrefix: ["response"],
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
if (_response.error.reason === "status-code") {
|
|
203
|
+
throw new errors.VellumError({
|
|
204
|
+
statusCode: _response.error.statusCode,
|
|
205
|
+
body: _response.error.body,
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
switch (_response.error.reason) {
|
|
209
|
+
case "non-json":
|
|
210
|
+
throw new errors.VellumError({
|
|
211
|
+
statusCode: _response.error.statusCode,
|
|
212
|
+
body: _response.error.rawBody,
|
|
213
|
+
});
|
|
214
|
+
case "timeout":
|
|
215
|
+
throw new errors.VellumTimeoutError();
|
|
216
|
+
case "unknown":
|
|
217
|
+
throw new errors.VellumError({
|
|
218
|
+
message: _response.error.errorMessage,
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}
|
|
170
223
|
/**
|
|
171
224
|
* List Release Tags associated with the specified Workflow Deployment
|
|
172
225
|
*
|
|
@@ -198,7 +251,7 @@ class WorkflowDeployments {
|
|
|
198
251
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
199
252
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
|
|
200
253
|
method: "GET",
|
|
201
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
254
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
202
255
|
contentType: "application/json",
|
|
203
256
|
queryParameters: _queryParams,
|
|
204
257
|
requestType: "json",
|
|
@@ -252,7 +305,7 @@ class WorkflowDeployments {
|
|
|
252
305
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
253
306
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
254
307
|
method: "GET",
|
|
255
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
308
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
256
309
|
contentType: "application/json",
|
|
257
310
|
requestType: "json",
|
|
258
311
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -306,7 +359,7 @@ class WorkflowDeployments {
|
|
|
306
359
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
307
360
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
308
361
|
method: "PATCH",
|
|
309
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
362
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
310
363
|
contentType: "application/json",
|
|
311
364
|
requestType: "json",
|
|
312
365
|
body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|