vellum-ai 0.8.24 → 0.8.25
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 +141 -0
- package/.mock/definition/folderEntities.yml +91 -2
- package/.mock/openapi/openapi.yml +300 -2
- package/Client.d.ts +3 -3
- package/Client.js +11 -11
- package/api/resources/adHoc/client/Client.d.ts +3 -3
- package/api/resources/adHoc/client/Client.js +2 -2
- package/api/resources/deployments/client/Client.d.ts +3 -3
- package/api/resources/deployments/client/Client.js +6 -6
- package/api/resources/documentIndexes/client/Client.d.ts +3 -3
- package/api/resources/documentIndexes/client/Client.js +9 -9
- package/api/resources/documents/client/Client.d.ts +3 -3
- package/api/resources/documents/client/Client.js +6 -6
- package/api/resources/folderEntities/client/Client.d.ts +22 -4
- package/api/resources/folderEntities/client/Client.js +80 -4
- package/api/resources/folderEntities/client/requests/FolderEntitiesListRequest.d.ts +43 -0
- package/api/resources/folderEntities/client/requests/FolderEntitiesListRequest.js +5 -0
- package/api/resources/folderEntities/client/requests/index.d.ts +1 -0
- package/api/resources/folderEntities/index.d.ts +1 -0
- package/api/resources/folderEntities/index.js +1 -0
- package/api/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.d.ts +8 -0
- package/api/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.js +10 -0
- package/api/resources/folderEntities/types/index.d.ts +1 -0
- package/api/resources/folderEntities/types/index.js +17 -0
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/metricDefinitions/client/Client.d.ts +3 -3
- package/api/resources/metricDefinitions/client/Client.js +2 -2
- package/api/resources/sandboxes/client/Client.d.ts +3 -3
- package/api/resources/sandboxes/client/Client.js +4 -4
- package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/api/resources/testSuites/client/Client.d.ts +3 -3
- package/api/resources/testSuites/client/Client.js +5 -5
- package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
- package/api/resources/workflowDeployments/client/Client.js +5 -5
- package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/types/FolderEntity.d.ts +5 -0
- package/api/types/FolderEntity.js +5 -0
- package/api/types/FolderEntityDocumentIndex.d.ts +12 -0
- package/api/types/FolderEntityDocumentIndex.js +5 -0
- package/api/types/FolderEntityDocumentIndexData.d.ts +11 -0
- package/api/types/FolderEntityDocumentIndexData.js +5 -0
- package/api/types/FolderEntityFolder.d.ts +12 -0
- package/api/types/FolderEntityFolder.js +5 -0
- package/api/types/FolderEntityFolderData.d.ts +10 -0
- package/api/types/FolderEntityFolderData.js +5 -0
- package/api/types/FolderEntityPromptSandbox.d.ts +12 -0
- package/api/types/FolderEntityPromptSandbox.js +5 -0
- package/api/types/FolderEntityPromptSandboxData.d.ts +12 -0
- package/api/types/FolderEntityPromptSandboxData.js +5 -0
- package/api/types/FolderEntityTestSuite.d.ts +12 -0
- package/api/types/FolderEntityTestSuite.js +5 -0
- package/api/types/FolderEntityTestSuiteData.d.ts +11 -0
- package/api/types/FolderEntityTestSuiteData.js +5 -0
- package/api/types/FolderEntityWorkflowSandbox.d.ts +12 -0
- package/api/types/FolderEntityWorkflowSandbox.js +5 -0
- package/api/types/FolderEntityWorkflowSandboxData.d.ts +12 -0
- package/api/types/FolderEntityWorkflowSandboxData.js +5 -0
- package/api/types/PaginatedFolderEntityList.d.ts +10 -0
- package/api/types/PaginatedFolderEntityList.js +5 -0
- package/api/types/index.d.ts +12 -0
- package/api/types/index.js +12 -0
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +11 -11
- package/dist/api/resources/adHoc/client/Client.d.ts +3 -3
- package/dist/api/resources/adHoc/client/Client.js +2 -2
- package/dist/api/resources/deployments/client/Client.d.ts +3 -3
- package/dist/api/resources/deployments/client/Client.js +6 -6
- package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
- package/dist/api/resources/documentIndexes/client/Client.js +9 -9
- package/dist/api/resources/documents/client/Client.d.ts +3 -3
- package/dist/api/resources/documents/client/Client.js +6 -6
- package/dist/api/resources/folderEntities/client/Client.d.ts +22 -4
- package/dist/api/resources/folderEntities/client/Client.js +80 -4
- package/dist/api/resources/folderEntities/client/requests/FolderEntitiesListRequest.d.ts +43 -0
- package/dist/api/resources/folderEntities/client/requests/FolderEntitiesListRequest.js +5 -0
- package/dist/api/resources/folderEntities/client/requests/index.d.ts +1 -0
- package/dist/api/resources/folderEntities/index.d.ts +1 -0
- package/dist/api/resources/folderEntities/index.js +1 -0
- package/dist/api/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.d.ts +8 -0
- package/dist/api/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.js +10 -0
- package/dist/api/resources/folderEntities/types/index.d.ts +1 -0
- package/dist/api/resources/folderEntities/types/index.js +17 -0
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +3 -3
- package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
- package/dist/api/resources/sandboxes/client/Client.d.ts +3 -3
- package/dist/api/resources/sandboxes/client/Client.js +4 -4
- package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuites/client/Client.js +5 -5
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/types/FolderEntity.d.ts +5 -0
- package/dist/api/types/FolderEntity.js +5 -0
- package/dist/api/types/FolderEntityDocumentIndex.d.ts +12 -0
- package/dist/api/types/FolderEntityDocumentIndex.js +5 -0
- package/dist/api/types/FolderEntityDocumentIndexData.d.ts +11 -0
- package/dist/api/types/FolderEntityDocumentIndexData.js +5 -0
- package/dist/api/types/FolderEntityFolder.d.ts +12 -0
- package/dist/api/types/FolderEntityFolder.js +5 -0
- package/dist/api/types/FolderEntityFolderData.d.ts +10 -0
- package/dist/api/types/FolderEntityFolderData.js +5 -0
- package/dist/api/types/FolderEntityPromptSandbox.d.ts +12 -0
- package/dist/api/types/FolderEntityPromptSandbox.js +5 -0
- package/dist/api/types/FolderEntityPromptSandboxData.d.ts +12 -0
- package/dist/api/types/FolderEntityPromptSandboxData.js +5 -0
- package/dist/api/types/FolderEntityTestSuite.d.ts +12 -0
- package/dist/api/types/FolderEntityTestSuite.js +5 -0
- package/dist/api/types/FolderEntityTestSuiteData.d.ts +11 -0
- package/dist/api/types/FolderEntityTestSuiteData.js +5 -0
- package/dist/api/types/FolderEntityWorkflowSandbox.d.ts +12 -0
- package/dist/api/types/FolderEntityWorkflowSandbox.js +5 -0
- package/dist/api/types/FolderEntityWorkflowSandboxData.d.ts +12 -0
- package/dist/api/types/FolderEntityWorkflowSandboxData.js +5 -0
- package/dist/api/types/PaginatedFolderEntityList.d.ts +10 -0
- package/dist/api/types/PaginatedFolderEntityList.js +5 -0
- package/dist/api/types/index.d.ts +12 -0
- package/dist/api/types/index.js +12 -0
- package/dist/serialization/resources/folderEntities/index.d.ts +1 -0
- package/dist/serialization/resources/folderEntities/index.js +1 -0
- package/dist/serialization/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.d.ts +10 -0
- package/dist/serialization/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.js +31 -0
- package/dist/serialization/resources/folderEntities/types/index.d.ts +1 -0
- package/dist/serialization/resources/folderEntities/types/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +2 -1
- package/dist/serialization/resources/index.js +3 -2
- package/dist/serialization/types/FolderEntity.d.ts +15 -0
- package/dist/serialization/types/FolderEntity.js +42 -0
- package/dist/serialization/types/FolderEntityDocumentIndex.d.ts +15 -0
- package/dist/serialization/types/FolderEntityDocumentIndex.js +36 -0
- package/dist/serialization/types/FolderEntityDocumentIndexData.d.ts +17 -0
- package/dist/serialization/types/FolderEntityDocumentIndexData.js +38 -0
- package/dist/serialization/types/FolderEntityFolder.d.ts +15 -0
- package/dist/serialization/types/FolderEntityFolder.js +36 -0
- package/dist/serialization/types/FolderEntityFolderData.d.ts +16 -0
- package/dist/serialization/types/FolderEntityFolderData.js +37 -0
- package/dist/serialization/types/FolderEntityPromptSandbox.d.ts +15 -0
- package/dist/serialization/types/FolderEntityPromptSandbox.js +36 -0
- package/dist/serialization/types/FolderEntityPromptSandboxData.d.ts +18 -0
- package/dist/serialization/types/FolderEntityPromptSandboxData.js +39 -0
- package/dist/serialization/types/FolderEntityTestSuite.d.ts +15 -0
- package/dist/serialization/types/FolderEntityTestSuite.js +36 -0
- package/dist/serialization/types/FolderEntityTestSuiteData.d.ts +17 -0
- package/dist/serialization/types/FolderEntityTestSuiteData.js +38 -0
- package/dist/serialization/types/FolderEntityWorkflowSandbox.d.ts +15 -0
- package/dist/serialization/types/FolderEntityWorkflowSandbox.js +36 -0
- package/dist/serialization/types/FolderEntityWorkflowSandboxData.d.ts +18 -0
- package/dist/serialization/types/FolderEntityWorkflowSandboxData.js +39 -0
- package/dist/serialization/types/PaginatedFolderEntityList.d.ts +16 -0
- package/dist/serialization/types/PaginatedFolderEntityList.js +37 -0
- package/dist/serialization/types/index.d.ts +12 -0
- package/dist/serialization/types/index.js +12 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +74 -1
- package/serialization/resources/folderEntities/index.d.ts +1 -0
- package/serialization/resources/folderEntities/index.js +1 -0
- package/serialization/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.d.ts +10 -0
- package/serialization/resources/folderEntities/types/FolderEntitiesListRequestEntityStatus.js +31 -0
- package/serialization/resources/folderEntities/types/index.d.ts +1 -0
- package/serialization/resources/folderEntities/types/index.js +17 -0
- package/serialization/resources/index.d.ts +2 -1
- package/serialization/resources/index.js +3 -2
- package/serialization/types/FolderEntity.d.ts +15 -0
- package/serialization/types/FolderEntity.js +42 -0
- package/serialization/types/FolderEntityDocumentIndex.d.ts +15 -0
- package/serialization/types/FolderEntityDocumentIndex.js +36 -0
- package/serialization/types/FolderEntityDocumentIndexData.d.ts +17 -0
- package/serialization/types/FolderEntityDocumentIndexData.js +38 -0
- package/serialization/types/FolderEntityFolder.d.ts +15 -0
- package/serialization/types/FolderEntityFolder.js +36 -0
- package/serialization/types/FolderEntityFolderData.d.ts +16 -0
- package/serialization/types/FolderEntityFolderData.js +37 -0
- package/serialization/types/FolderEntityPromptSandbox.d.ts +15 -0
- package/serialization/types/FolderEntityPromptSandbox.js +36 -0
- package/serialization/types/FolderEntityPromptSandboxData.d.ts +18 -0
- package/serialization/types/FolderEntityPromptSandboxData.js +39 -0
- package/serialization/types/FolderEntityTestSuite.d.ts +15 -0
- package/serialization/types/FolderEntityTestSuite.js +36 -0
- package/serialization/types/FolderEntityTestSuiteData.d.ts +17 -0
- package/serialization/types/FolderEntityTestSuiteData.js +38 -0
- package/serialization/types/FolderEntityWorkflowSandbox.d.ts +15 -0
- package/serialization/types/FolderEntityWorkflowSandbox.js +36 -0
- package/serialization/types/FolderEntityWorkflowSandboxData.d.ts +18 -0
- package/serialization/types/FolderEntityWorkflowSandboxData.js +39 -0
- package/serialization/types/PaginatedFolderEntityList.d.ts +16 -0
- package/serialization/types/PaginatedFolderEntityList.js +37 -0
- package/serialization/types/index.d.ts +12 -0
- package/serialization/types/index.js +12 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/Client.js
CHANGED
|
@@ -57,7 +57,7 @@ const Client_9 = require("./api/resources/testSuites/client/Client");
|
|
|
57
57
|
const Client_10 = require("./api/resources/workflowDeployments/client/Client");
|
|
58
58
|
const Client_11 = require("./api/resources/workflowSandboxes/client/Client");
|
|
59
59
|
class VellumClient {
|
|
60
|
-
constructor(_options) {
|
|
60
|
+
constructor(_options = {}) {
|
|
61
61
|
this._options = _options;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
@@ -91,7 +91,7 @@ class VellumClient {
|
|
|
91
91
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
92
92
|
.default, "v1/execute-code"),
|
|
93
93
|
method: "POST",
|
|
94
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
94
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
95
95
|
contentType: "application/json",
|
|
96
96
|
requestType: "json",
|
|
97
97
|
body: serializers.CodeExecutorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -160,7 +160,7 @@ class VellumClient {
|
|
|
160
160
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
161
161
|
.predict, "v1/execute-prompt"),
|
|
162
162
|
method: "POST",
|
|
163
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
163
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
164
164
|
contentType: "application/json",
|
|
165
165
|
requestType: "json",
|
|
166
166
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -218,7 +218,7 @@ class VellumClient {
|
|
|
218
218
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
219
219
|
.predict, "v1/execute-prompt-stream"),
|
|
220
220
|
method: "POST",
|
|
221
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
221
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
222
222
|
contentType: "application/json",
|
|
223
223
|
requestType: "json",
|
|
224
224
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -303,7 +303,7 @@ class VellumClient {
|
|
|
303
303
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
304
304
|
.predict, "v1/execute-workflow"),
|
|
305
305
|
method: "POST",
|
|
306
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
306
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
307
307
|
contentType: "application/json",
|
|
308
308
|
requestType: "json",
|
|
309
309
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -359,7 +359,7 @@ class VellumClient {
|
|
|
359
359
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
360
360
|
.predict, "v1/execute-workflow-stream"),
|
|
361
361
|
method: "POST",
|
|
362
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
362
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
363
363
|
contentType: "application/json",
|
|
364
364
|
requestType: "json",
|
|
365
365
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -446,7 +446,7 @@ class VellumClient {
|
|
|
446
446
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
447
447
|
.predict, "v1/generate"),
|
|
448
448
|
method: "POST",
|
|
449
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
449
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
450
450
|
contentType: "application/json",
|
|
451
451
|
requestType: "json",
|
|
452
452
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -507,7 +507,7 @@ class VellumClient {
|
|
|
507
507
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
508
508
|
.predict, "v1/generate-stream"),
|
|
509
509
|
method: "POST",
|
|
510
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
510
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
511
511
|
contentType: "application/json",
|
|
512
512
|
requestType: "json",
|
|
513
513
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -588,7 +588,7 @@ class VellumClient {
|
|
|
588
588
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
589
589
|
.predict, "v1/search"),
|
|
590
590
|
method: "POST",
|
|
591
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
591
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
592
592
|
contentType: "application/json",
|
|
593
593
|
requestType: "json",
|
|
594
594
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -656,7 +656,7 @@ class VellumClient {
|
|
|
656
656
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
657
657
|
.predict, "v1/submit-completion-actuals"),
|
|
658
658
|
method: "POST",
|
|
659
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
659
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
660
660
|
contentType: "application/json",
|
|
661
661
|
requestType: "json",
|
|
662
662
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -719,7 +719,7 @@ class VellumClient {
|
|
|
719
719
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
720
720
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
721
721
|
method: "POST",
|
|
722
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
722
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
723
723
|
contentType: "application/json",
|
|
724
724
|
requestType: "json",
|
|
725
725
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace AdHoc {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,12 +20,12 @@ export declare namespace AdHoc {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class AdHoc {
|
|
22
22
|
protected readonly _options: AdHoc.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options?: AdHoc.Options);
|
|
24
24
|
/**
|
|
25
25
|
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
26
26
|
*/
|
|
27
27
|
adhocExecutePromptStream(request: Vellum.AdHocExecutePromptStreamRequest, requestOptions?: AdHoc.RequestOptions): Promise<core.Stream<Vellum.AdHocExecutePromptEvent>>;
|
|
28
28
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
29
|
-
X_API_KEY: string;
|
|
29
|
+
X_API_KEY: string | undefined;
|
|
30
30
|
}>;
|
|
31
31
|
}
|
|
@@ -46,7 +46,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
|
|
|
46
46
|
const url_join_1 = __importDefault(require("url-join"));
|
|
47
47
|
const errors = __importStar(require("../../../../errors/index"));
|
|
48
48
|
class AdHoc {
|
|
49
|
-
constructor(_options) {
|
|
49
|
+
constructor(_options = {}) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -59,7 +59,7 @@ class AdHoc {
|
|
|
59
59
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
60
60
|
.default, "v1/ad-hoc/execute-prompt-stream"),
|
|
61
61
|
method: "POST",
|
|
62
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
62
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
63
63
|
contentType: "application/json",
|
|
64
64
|
requestType: "json",
|
|
65
65
|
body: serializers.AdHocExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace Deployments {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace Deployments {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class Deployments {
|
|
22
22
|
protected readonly _options: Deployments.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options?: Deployments.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Used to list all Prompt Deployments.
|
|
26
26
|
*
|
|
@@ -95,6 +95,6 @@ export declare class Deployments {
|
|
|
95
95
|
*/
|
|
96
96
|
retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
|
|
97
97
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
98
|
-
X_API_KEY: string;
|
|
98
|
+
X_API_KEY: string | undefined;
|
|
99
99
|
}>;
|
|
100
100
|
}
|
|
@@ -46,7 +46,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
46
46
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
47
47
|
const errors = __importStar(require("../../../../errors/index"));
|
|
48
48
|
class Deployments {
|
|
49
|
-
constructor(_options) {
|
|
49
|
+
constructor(_options = {}) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -79,7 +79,7 @@ class Deployments {
|
|
|
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/deployments"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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 Deployments {
|
|
|
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/deployments/${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.8.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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,
|
|
@@ -185,7 +185,7 @@ class Deployments {
|
|
|
185
185
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
186
186
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
187
187
|
method: "GET",
|
|
188
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
188
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
189
189
|
contentType: "application/json",
|
|
190
190
|
requestType: "json",
|
|
191
191
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -239,7 +239,7 @@ class Deployments {
|
|
|
239
239
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
240
240
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
241
241
|
method: "PATCH",
|
|
242
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
242
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
243
243
|
contentType: "application/json",
|
|
244
244
|
requestType: "json",
|
|
245
245
|
body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -314,7 +314,7 @@ class Deployments {
|
|
|
314
314
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
315
315
|
.default, "v1/deployments/provider-payload"),
|
|
316
316
|
method: "POST",
|
|
317
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
317
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
318
318
|
contentType: "application/json",
|
|
319
319
|
requestType: "json",
|
|
320
320
|
body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace DocumentIndexes {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace DocumentIndexes {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class DocumentIndexes {
|
|
22
22
|
protected readonly _options: DocumentIndexes.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options?: DocumentIndexes.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Used to retrieve a list of Document Indexes.
|
|
26
26
|
*
|
|
@@ -170,6 +170,6 @@ export declare class DocumentIndexes {
|
|
|
170
170
|
*/
|
|
171
171
|
removeDocument(documentId: string, id: string, requestOptions?: DocumentIndexes.RequestOptions): Promise<void>;
|
|
172
172
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
173
|
-
X_API_KEY: string;
|
|
173
|
+
X_API_KEY: string | undefined;
|
|
174
174
|
}>;
|
|
175
175
|
}
|
|
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class DocumentIndexes {
|
|
48
|
-
constructor(_options) {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -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.8.
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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.8.
|
|
199
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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.8.
|
|
252
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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.8.
|
|
307
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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.8.
|
|
360
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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.8.
|
|
408
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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.8.
|
|
464
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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.8.
|
|
512
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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,
|
|
@@ -10,7 +10,7 @@ import { Blob } from "buffer";
|
|
|
10
10
|
export declare namespace Documents {
|
|
11
11
|
interface Options {
|
|
12
12
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
13
|
-
apiKey
|
|
13
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
14
14
|
}
|
|
15
15
|
interface RequestOptions {
|
|
16
16
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace Documents {
|
|
|
23
23
|
}
|
|
24
24
|
export declare class Documents {
|
|
25
25
|
protected readonly _options: Documents.Options;
|
|
26
|
-
constructor(_options
|
|
26
|
+
constructor(_options?: Documents.Options);
|
|
27
27
|
/**
|
|
28
28
|
* Used to list documents. Optionally filter on supported fields.
|
|
29
29
|
*
|
|
@@ -93,6 +93,6 @@ export declare class Documents {
|
|
|
93
93
|
*/
|
|
94
94
|
upload(contents: File | fs.ReadStream | Blob, request: Vellum.UploadDocumentBodyRequest, requestOptions?: Documents.RequestOptions): Promise<Vellum.UploadDocumentResponse>;
|
|
95
95
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
96
|
-
X_API_KEY: string;
|
|
96
|
+
X_API_KEY: string | undefined;
|
|
97
97
|
}>;
|
|
98
98
|
}
|
|
@@ -46,7 +46,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
46
46
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
47
47
|
const errors = __importStar(require("../../../../errors/index"));
|
|
48
48
|
class Documents {
|
|
49
|
-
constructor(_options) {
|
|
49
|
+
constructor(_options = {}) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -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.8.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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.8.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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.8.
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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.8.
|
|
235
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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.8.
|
|
325
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "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,
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace FolderEntities {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,13 +20,31 @@ export declare namespace FolderEntities {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class FolderEntities {
|
|
22
22
|
protected readonly _options: FolderEntities.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options?: FolderEntities.Options);
|
|
24
|
+
/**
|
|
25
|
+
* List all folder entities within a specified folder.
|
|
26
|
+
*
|
|
27
|
+
* @param {Vellum.FolderEntitiesListRequest} request
|
|
28
|
+
* @param {FolderEntities.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.folderEntities.list({
|
|
32
|
+
* parentFolderId: "parent_folder_id"
|
|
33
|
+
* })
|
|
34
|
+
*/
|
|
35
|
+
list(request: Vellum.FolderEntitiesListRequest, requestOptions?: FolderEntities.RequestOptions): Promise<Vellum.PaginatedFolderEntityList>;
|
|
24
36
|
/**
|
|
25
37
|
* Add an entity to a specific folder or root directory.
|
|
26
38
|
*
|
|
27
39
|
* Adding an entity to a folder will remove it from any other folders it might have been a member of.
|
|
28
40
|
*
|
|
29
|
-
* @param {string} folderId - The ID of the folder to which the entity should be added. This can be a UUID of a folder, or the name of a root
|
|
41
|
+
* @param {string} folderId - The ID of the folder to which the entity should be added. This can be a UUID of a folder, or the name of a root
|
|
42
|
+
* directory. Supported root directories include:
|
|
43
|
+
*
|
|
44
|
+
* - PROMPT_SANDBOX
|
|
45
|
+
* - WORKFLOW_SANDBOX
|
|
46
|
+
* - DOCUMENT_INDEX
|
|
47
|
+
* - TEST_SUITE
|
|
30
48
|
* @param {Vellum.AddEntityToFolderRequest} request
|
|
31
49
|
* @param {FolderEntities.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
50
|
*
|
|
@@ -37,6 +55,6 @@ export declare class FolderEntities {
|
|
|
37
55
|
*/
|
|
38
56
|
addEntityToFolder(folderId: string, request: Vellum.AddEntityToFolderRequest, requestOptions?: FolderEntities.RequestOptions): Promise<void>;
|
|
39
57
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
40
|
-
X_API_KEY: string;
|
|
58
|
+
X_API_KEY: string | undefined;
|
|
41
59
|
}>;
|
|
42
60
|
}
|
|
@@ -41,19 +41,95 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.FolderEntities = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
|
43
43
|
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
|
45
44
|
const url_join_1 = __importDefault(require("url-join"));
|
|
45
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class FolderEntities {
|
|
48
|
-
constructor(_options) {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* List all folder entities within a specified folder.
|
|
53
|
+
*
|
|
54
|
+
* @param {Vellum.FolderEntitiesListRequest} request
|
|
55
|
+
* @param {FolderEntities.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* await client.folderEntities.list({
|
|
59
|
+
* parentFolderId: "parent_folder_id"
|
|
60
|
+
* })
|
|
61
|
+
*/
|
|
62
|
+
list(request, requestOptions) {
|
|
63
|
+
var _a;
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const { entityStatus, limit, offset, ordering, parentFolderId } = request;
|
|
66
|
+
const _queryParams = {};
|
|
67
|
+
if (entityStatus != null) {
|
|
68
|
+
_queryParams["entity_status"] = entityStatus;
|
|
69
|
+
}
|
|
70
|
+
if (limit != null) {
|
|
71
|
+
_queryParams["limit"] = limit.toString();
|
|
72
|
+
}
|
|
73
|
+
if (offset != null) {
|
|
74
|
+
_queryParams["offset"] = offset.toString();
|
|
75
|
+
}
|
|
76
|
+
if (ordering != null) {
|
|
77
|
+
_queryParams["ordering"] = ordering;
|
|
78
|
+
}
|
|
79
|
+
_queryParams["parent_folder_id"] = parentFolderId;
|
|
80
|
+
const _response = yield core.fetcher({
|
|
81
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
82
|
+
.default, "v1/folder-entities"),
|
|
83
|
+
method: "GET",
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
85
|
+
contentType: "application/json",
|
|
86
|
+
queryParameters: _queryParams,
|
|
87
|
+
requestType: "json",
|
|
88
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
89
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
90
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
91
|
+
});
|
|
92
|
+
if (_response.ok) {
|
|
93
|
+
return serializers.PaginatedFolderEntityList.parseOrThrow(_response.body, {
|
|
94
|
+
unrecognizedObjectKeys: "passthrough",
|
|
95
|
+
allowUnrecognizedUnionMembers: true,
|
|
96
|
+
allowUnrecognizedEnumValues: true,
|
|
97
|
+
breadcrumbsPrefix: ["response"],
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
if (_response.error.reason === "status-code") {
|
|
101
|
+
throw new errors.VellumError({
|
|
102
|
+
statusCode: _response.error.statusCode,
|
|
103
|
+
body: _response.error.body,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
switch (_response.error.reason) {
|
|
107
|
+
case "non-json":
|
|
108
|
+
throw new errors.VellumError({
|
|
109
|
+
statusCode: _response.error.statusCode,
|
|
110
|
+
body: _response.error.rawBody,
|
|
111
|
+
});
|
|
112
|
+
case "timeout":
|
|
113
|
+
throw new errors.VellumTimeoutError();
|
|
114
|
+
case "unknown":
|
|
115
|
+
throw new errors.VellumError({
|
|
116
|
+
message: _response.error.errorMessage,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
51
121
|
/**
|
|
52
122
|
* Add an entity to a specific folder or root directory.
|
|
53
123
|
*
|
|
54
124
|
* Adding an entity to a folder will remove it from any other folders it might have been a member of.
|
|
55
125
|
*
|
|
56
|
-
* @param {string} folderId - The ID of the folder to which the entity should be added. This can be a UUID of a folder, or the name of a root
|
|
126
|
+
* @param {string} folderId - The ID of the folder to which the entity should be added. This can be a UUID of a folder, or the name of a root
|
|
127
|
+
* directory. Supported root directories include:
|
|
128
|
+
*
|
|
129
|
+
* - PROMPT_SANDBOX
|
|
130
|
+
* - WORKFLOW_SANDBOX
|
|
131
|
+
* - DOCUMENT_INDEX
|
|
132
|
+
* - TEST_SUITE
|
|
57
133
|
* @param {Vellum.AddEntityToFolderRequest} request
|
|
58
134
|
* @param {FolderEntities.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
135
|
*
|
|
@@ -69,7 +145,7 @@ class FolderEntities {
|
|
|
69
145
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
146
|
.default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
|
|
71
147
|
method: "POST",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
148
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
149
|
contentType: "application/json",
|
|
74
150
|
requestType: "json",
|
|
75
151
|
body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|