vellum-ai 0.12.17 → 0.13.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 +48 -78
- package/.mock/definition/organizations.yml +29 -0
- package/.mock/definition/workflows.yml +1 -0
- package/.mock/definition/workspaces.yml +29 -0
- package/.mock/openapi/openapi.yml +90 -148
- package/Client.d.ts +9 -3
- package/Client.js +35 -25
- package/api/resources/adHoc/client/Client.d.ts +3 -3
- package/api/resources/adHoc/client/Client.js +2 -2
- package/api/resources/containerImages/client/Client.d.ts +3 -3
- package/api/resources/containerImages/client/Client.js +5 -5
- package/api/resources/deployments/client/Client.d.ts +3 -3
- package/api/resources/deployments/client/Client.js +8 -8
- 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 +3 -3
- package/api/resources/folderEntities/client/Client.js +3 -3
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/metricDefinitions/client/Client.d.ts +3 -3
- package/api/resources/metricDefinitions/client/Client.js +3 -3
- package/api/resources/mlModels/client/Client.d.ts +3 -3
- package/api/resources/mlModels/client/Client.js +2 -2
- package/api/resources/organizations/client/Client.d.ts +36 -0
- package/api/resources/organizations/client/Client.js +109 -0
- package/api/resources/organizations/client/index.d.ts +1 -0
- package/api/resources/organizations/client/index.js +2 -0
- package/api/resources/organizations/index.d.ts +1 -0
- package/api/resources/organizations/index.js +17 -0
- 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 +7 -7
- package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/resources/workflows/client/Client.d.ts +3 -3
- package/api/resources/workflows/client/Client.js +6 -3
- package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
- package/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
- package/api/resources/workspaceSecrets/client/Client.js +3 -3
- package/api/resources/workspaces/client/Client.d.ts +36 -0
- package/api/resources/workspaces/client/Client.js +109 -0
- package/api/resources/workspaces/client/index.d.ts +1 -0
- package/api/resources/workspaces/client/index.js +2 -0
- package/api/resources/workspaces/index.d.ts +1 -0
- package/api/resources/workspaces/index.js +17 -0
- package/api/types/LogicalOperator.d.ts +5 -1
- package/api/types/LogicalOperator.js +2 -0
- package/api/types/NewMemberJoinBehaviorEnum.d.ts +14 -0
- package/api/types/NewMemberJoinBehaviorEnum.js +11 -0
- package/api/types/OrganizationRead.d.ts +10 -0
- package/api/types/WorkflowResultEventOutputDataArray.d.ts +1 -1
- package/api/types/WorkspaceRead.d.ts +10 -0
- package/api/types/index.d.ts +3 -11
- package/api/types/index.js +3 -11
- package/dist/Client.d.ts +9 -3
- package/dist/Client.js +35 -25
- 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/containerImages/client/Client.d.ts +3 -3
- package/dist/api/resources/containerImages/client/Client.js +5 -5
- package/dist/api/resources/deployments/client/Client.d.ts +3 -3
- package/dist/api/resources/deployments/client/Client.js +8 -8
- 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 +3 -3
- package/dist/api/resources/folderEntities/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +3 -3
- package/dist/api/resources/metricDefinitions/client/Client.js +3 -3
- package/dist/api/resources/mlModels/client/Client.d.ts +3 -3
- package/dist/api/resources/mlModels/client/Client.js +2 -2
- package/dist/api/resources/organizations/client/Client.d.ts +36 -0
- package/dist/api/resources/organizations/client/Client.js +109 -0
- package/dist/api/resources/organizations/client/index.d.ts +1 -0
- package/dist/api/resources/organizations/client/index.js +2 -0
- package/dist/api/resources/organizations/index.d.ts +1 -0
- package/dist/api/resources/organizations/index.js +17 -0
- 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 +7 -7
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/resources/workflows/client/Client.d.ts +3 -3
- package/dist/api/resources/workflows/client/Client.js +6 -3
- package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
- package/dist/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
- package/dist/api/resources/workspaceSecrets/client/Client.js +3 -3
- package/dist/api/resources/workspaces/client/Client.d.ts +36 -0
- package/dist/api/resources/workspaces/client/Client.js +109 -0
- package/dist/api/resources/workspaces/client/index.d.ts +1 -0
- package/dist/api/resources/workspaces/client/index.js +2 -0
- package/dist/api/resources/workspaces/index.d.ts +1 -0
- package/dist/api/resources/workspaces/index.js +17 -0
- package/dist/api/types/LogicalOperator.d.ts +5 -1
- package/dist/api/types/LogicalOperator.js +2 -0
- package/dist/api/types/NewMemberJoinBehaviorEnum.d.ts +14 -0
- package/dist/api/types/NewMemberJoinBehaviorEnum.js +11 -0
- package/dist/api/types/OrganizationRead.d.ts +10 -0
- package/dist/api/types/WorkflowResultEventOutputDataArray.d.ts +1 -1
- package/dist/api/types/WorkspaceRead.d.ts +10 -0
- package/dist/api/types/index.d.ts +3 -11
- package/dist/api/types/index.js +3 -11
- package/dist/serialization/types/LogicalOperator.d.ts +1 -1
- package/dist/serialization/types/LogicalOperator.js +2 -0
- package/dist/serialization/types/NewMemberJoinBehaviorEnum.d.ts +10 -0
- package/dist/serialization/types/{JsonVariableValue.js → NewMemberJoinBehaviorEnum.js} +6 -5
- package/dist/serialization/types/OrganizationRead.d.ts +16 -0
- package/dist/serialization/types/{ArrayVariableValue.js → OrganizationRead.js} +7 -5
- package/dist/serialization/types/WorkflowResultEventOutputDataArray.d.ts +1 -1
- package/dist/serialization/types/WorkflowResultEventOutputDataArray.js +1 -1
- package/dist/serialization/types/WorkspaceRead.d.ts +15 -0
- package/dist/serialization/types/{StringVariableValue.js → WorkspaceRead.js} +6 -4
- package/dist/serialization/types/index.d.ts +3 -11
- package/dist/serialization/types/index.js +3 -11
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +114 -0
- package/serialization/types/LogicalOperator.d.ts +1 -1
- package/serialization/types/LogicalOperator.js +2 -0
- package/serialization/types/NewMemberJoinBehaviorEnum.d.ts +10 -0
- package/{dist/serialization/types/NumberVariableValue.js → serialization/types/NewMemberJoinBehaviorEnum.js} +6 -5
- package/serialization/types/OrganizationRead.d.ts +16 -0
- package/{dist/serialization/types/ChatHistoryVariableValue.js → serialization/types/OrganizationRead.js} +7 -5
- package/serialization/types/WorkflowResultEventOutputDataArray.d.ts +1 -1
- package/serialization/types/WorkflowResultEventOutputDataArray.js +1 -1
- package/serialization/types/WorkspaceRead.d.ts +15 -0
- package/serialization/types/{JsonVariableValue.js → WorkspaceRead.js} +6 -4
- package/serialization/types/index.d.ts +3 -11
- package/serialization/types/index.js +3 -11
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/ArrayVariableValue.d.ts +0 -8
- package/api/types/ArrayVariableValueItem.d.ts +0 -5
- package/api/types/AudioVariableValue.d.ts +0 -11
- package/api/types/ChatHistoryVariableValue.d.ts +0 -8
- package/api/types/ErrorVariableValue.d.ts +0 -8
- package/api/types/ErrorVariableValue.js +0 -5
- package/api/types/FunctionCallVariableValue.d.ts +0 -8
- package/api/types/FunctionCallVariableValue.js +0 -5
- package/api/types/ImageVariableValue.d.ts +0 -11
- package/api/types/ImageVariableValue.js +0 -5
- package/api/types/JsonVariableValue.d.ts +0 -7
- package/api/types/JsonVariableValue.js +0 -5
- package/api/types/NumberVariableValue.d.ts +0 -7
- package/api/types/NumberVariableValue.js +0 -5
- package/api/types/SearchResultsVariableValue.d.ts +0 -8
- package/api/types/SearchResultsVariableValue.js +0 -5
- package/api/types/StringVariableValue.d.ts +0 -7
- package/api/types/StringVariableValue.js +0 -5
- package/dist/api/types/ArrayVariableValue.d.ts +0 -8
- package/dist/api/types/ArrayVariableValue.js +0 -5
- package/dist/api/types/ArrayVariableValueItem.d.ts +0 -5
- package/dist/api/types/ArrayVariableValueItem.js +0 -5
- package/dist/api/types/AudioVariableValue.d.ts +0 -11
- package/dist/api/types/AudioVariableValue.js +0 -5
- package/dist/api/types/ChatHistoryVariableValue.d.ts +0 -8
- package/dist/api/types/ChatHistoryVariableValue.js +0 -5
- package/dist/api/types/ErrorVariableValue.d.ts +0 -8
- package/dist/api/types/ErrorVariableValue.js +0 -5
- package/dist/api/types/FunctionCallVariableValue.d.ts +0 -8
- package/dist/api/types/FunctionCallVariableValue.js +0 -5
- package/dist/api/types/ImageVariableValue.d.ts +0 -11
- package/dist/api/types/ImageVariableValue.js +0 -5
- package/dist/api/types/JsonVariableValue.d.ts +0 -7
- package/dist/api/types/JsonVariableValue.js +0 -5
- package/dist/api/types/NumberVariableValue.d.ts +0 -7
- package/dist/api/types/NumberVariableValue.js +0 -5
- package/dist/api/types/SearchResultsVariableValue.d.ts +0 -8
- package/dist/api/types/SearchResultsVariableValue.js +0 -5
- package/dist/api/types/StringVariableValue.d.ts +0 -7
- package/dist/api/types/StringVariableValue.js +0 -5
- package/dist/serialization/types/ArrayVariableValue.d.ts +0 -13
- package/dist/serialization/types/ArrayVariableValueItem.d.ts +0 -19
- package/dist/serialization/types/ArrayVariableValueItem.js +0 -52
- package/dist/serialization/types/AudioVariableValue.d.ts +0 -14
- package/dist/serialization/types/AudioVariableValue.js +0 -35
- package/dist/serialization/types/ChatHistoryVariableValue.d.ts +0 -14
- package/dist/serialization/types/ErrorVariableValue.d.ts +0 -14
- package/dist/serialization/types/ErrorVariableValue.js +0 -35
- package/dist/serialization/types/FunctionCallVariableValue.d.ts +0 -14
- package/dist/serialization/types/FunctionCallVariableValue.js +0 -35
- package/dist/serialization/types/ImageVariableValue.d.ts +0 -14
- package/dist/serialization/types/ImageVariableValue.js +0 -35
- package/dist/serialization/types/JsonVariableValue.d.ts +0 -13
- package/dist/serialization/types/NumberVariableValue.d.ts +0 -13
- package/dist/serialization/types/SearchResultsVariableValue.d.ts +0 -14
- package/dist/serialization/types/SearchResultsVariableValue.js +0 -35
- package/dist/serialization/types/StringVariableValue.d.ts +0 -13
- package/serialization/types/ArrayVariableValue.d.ts +0 -13
- package/serialization/types/ArrayVariableValue.js +0 -35
- package/serialization/types/ArrayVariableValueItem.d.ts +0 -19
- package/serialization/types/ArrayVariableValueItem.js +0 -52
- package/serialization/types/AudioVariableValue.d.ts +0 -14
- package/serialization/types/AudioVariableValue.js +0 -35
- package/serialization/types/ChatHistoryVariableValue.d.ts +0 -14
- package/serialization/types/ChatHistoryVariableValue.js +0 -35
- package/serialization/types/ErrorVariableValue.d.ts +0 -14
- package/serialization/types/ErrorVariableValue.js +0 -35
- package/serialization/types/FunctionCallVariableValue.d.ts +0 -14
- package/serialization/types/FunctionCallVariableValue.js +0 -35
- package/serialization/types/ImageVariableValue.d.ts +0 -14
- package/serialization/types/ImageVariableValue.js +0 -35
- package/serialization/types/JsonVariableValue.d.ts +0 -13
- package/serialization/types/NumberVariableValue.d.ts +0 -13
- package/serialization/types/NumberVariableValue.js +0 -34
- package/serialization/types/SearchResultsVariableValue.d.ts +0 -14
- package/serialization/types/SearchResultsVariableValue.js +0 -35
- package/serialization/types/StringVariableValue.d.ts +0 -13
- package/serialization/types/StringVariableValue.js +0 -34
- /package/api/types/{ArrayVariableValue.js → OrganizationRead.js} +0 -0
- /package/api/types/{ArrayVariableValueItem.js → WorkspaceRead.js} +0 -0
- /package/{api/types/AudioVariableValue.js → dist/api/types/OrganizationRead.js} +0 -0
- /package/{api/types/ChatHistoryVariableValue.js → dist/api/types/WorkspaceRead.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { Documents } from "./api/resources/documents/client/Client";
|
|
|
12
12
|
import { FolderEntities } from "./api/resources/folderEntities/client/Client";
|
|
13
13
|
import { MetricDefinitions } from "./api/resources/metricDefinitions/client/Client";
|
|
14
14
|
import { MlModels } from "./api/resources/mlModels/client/Client";
|
|
15
|
+
import { Organizations } from "./api/resources/organizations/client/Client";
|
|
15
16
|
import { Sandboxes } from "./api/resources/sandboxes/client/Client";
|
|
16
17
|
import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
|
|
17
18
|
import { TestSuites } from "./api/resources/testSuites/client/Client";
|
|
@@ -19,10 +20,11 @@ import { WorkflowDeployments } from "./api/resources/workflowDeployments/client/
|
|
|
19
20
|
import { WorkflowSandboxes } from "./api/resources/workflowSandboxes/client/Client";
|
|
20
21
|
import { Workflows } from "./api/resources/workflows/client/Client";
|
|
21
22
|
import { WorkspaceSecrets } from "./api/resources/workspaceSecrets/client/Client";
|
|
23
|
+
import { Workspaces } from "./api/resources/workspaces/client/Client";
|
|
22
24
|
export declare namespace VellumClient {
|
|
23
25
|
interface Options {
|
|
24
26
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
25
|
-
apiKey
|
|
27
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
26
28
|
}
|
|
27
29
|
interface RequestOptions {
|
|
28
30
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -35,7 +37,7 @@ export declare namespace VellumClient {
|
|
|
35
37
|
}
|
|
36
38
|
export declare class VellumClient {
|
|
37
39
|
protected readonly _options: VellumClient.Options;
|
|
38
|
-
constructor(_options
|
|
40
|
+
constructor(_options?: VellumClient.Options);
|
|
39
41
|
/**
|
|
40
42
|
* @param {Vellum.CodeExecutor} request
|
|
41
43
|
* @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -203,6 +205,8 @@ export declare class VellumClient {
|
|
|
203
205
|
get metricDefinitions(): MetricDefinitions;
|
|
204
206
|
protected _mlModels: MlModels | undefined;
|
|
205
207
|
get mlModels(): MlModels;
|
|
208
|
+
protected _organizations: Organizations | undefined;
|
|
209
|
+
get organizations(): Organizations;
|
|
206
210
|
protected _sandboxes: Sandboxes | undefined;
|
|
207
211
|
get sandboxes(): Sandboxes;
|
|
208
212
|
protected _testSuiteRuns: TestSuiteRuns | undefined;
|
|
@@ -217,7 +221,9 @@ export declare class VellumClient {
|
|
|
217
221
|
get workflows(): Workflows;
|
|
218
222
|
protected _workspaceSecrets: WorkspaceSecrets | undefined;
|
|
219
223
|
get workspaceSecrets(): WorkspaceSecrets;
|
|
224
|
+
protected _workspaces: Workspaces | undefined;
|
|
225
|
+
get workspaces(): Workspaces;
|
|
220
226
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
221
|
-
X_API_KEY: string;
|
|
227
|
+
X_API_KEY: string | undefined;
|
|
222
228
|
}>;
|
|
223
229
|
}
|
package/Client.js
CHANGED
|
@@ -53,15 +53,17 @@ const Client_5 = require("./api/resources/documents/client/Client");
|
|
|
53
53
|
const Client_6 = require("./api/resources/folderEntities/client/Client");
|
|
54
54
|
const Client_7 = require("./api/resources/metricDefinitions/client/Client");
|
|
55
55
|
const Client_8 = require("./api/resources/mlModels/client/Client");
|
|
56
|
-
const Client_9 = require("./api/resources/
|
|
57
|
-
const Client_10 = require("./api/resources/
|
|
58
|
-
const Client_11 = require("./api/resources/
|
|
59
|
-
const Client_12 = require("./api/resources/
|
|
60
|
-
const Client_13 = require("./api/resources/
|
|
61
|
-
const Client_14 = require("./api/resources/
|
|
62
|
-
const Client_15 = require("./api/resources/
|
|
56
|
+
const Client_9 = require("./api/resources/organizations/client/Client");
|
|
57
|
+
const Client_10 = require("./api/resources/sandboxes/client/Client");
|
|
58
|
+
const Client_11 = require("./api/resources/testSuiteRuns/client/Client");
|
|
59
|
+
const Client_12 = require("./api/resources/testSuites/client/Client");
|
|
60
|
+
const Client_13 = require("./api/resources/workflowDeployments/client/Client");
|
|
61
|
+
const Client_14 = require("./api/resources/workflowSandboxes/client/Client");
|
|
62
|
+
const Client_15 = require("./api/resources/workflows/client/Client");
|
|
63
|
+
const Client_16 = require("./api/resources/workspaceSecrets/client/Client");
|
|
64
|
+
const Client_17 = require("./api/resources/workspaces/client/Client");
|
|
63
65
|
class VellumClient {
|
|
64
|
-
constructor(_options) {
|
|
66
|
+
constructor(_options = {}) {
|
|
65
67
|
this._options = _options;
|
|
66
68
|
}
|
|
67
69
|
/**
|
|
@@ -93,7 +95,7 @@ class VellumClient {
|
|
|
93
95
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
94
96
|
.predict, "v1/execute-code"),
|
|
95
97
|
method: "POST",
|
|
96
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
98
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
97
99
|
contentType: "application/json",
|
|
98
100
|
requestType: "json",
|
|
99
101
|
body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -162,7 +164,7 @@ class VellumClient {
|
|
|
162
164
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
163
165
|
.predict, "v1/execute-prompt"),
|
|
164
166
|
method: "POST",
|
|
165
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
167
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
166
168
|
contentType: "application/json",
|
|
167
169
|
requestType: "json",
|
|
168
170
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -220,7 +222,7 @@ class VellumClient {
|
|
|
220
222
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
221
223
|
.predict, "v1/execute-prompt-stream"),
|
|
222
224
|
method: "POST",
|
|
223
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
225
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
224
226
|
contentType: "application/json",
|
|
225
227
|
requestType: "json",
|
|
226
228
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -305,7 +307,7 @@ class VellumClient {
|
|
|
305
307
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
306
308
|
.predict, "v1/execute-workflow"),
|
|
307
309
|
method: "POST",
|
|
308
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
310
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
309
311
|
contentType: "application/json",
|
|
310
312
|
requestType: "json",
|
|
311
313
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -361,7 +363,7 @@ class VellumClient {
|
|
|
361
363
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
362
364
|
.predict, "v1/execute-workflow-stream"),
|
|
363
365
|
method: "POST",
|
|
364
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
366
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
365
367
|
contentType: "application/json",
|
|
366
368
|
requestType: "json",
|
|
367
369
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -448,7 +450,7 @@ class VellumClient {
|
|
|
448
450
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
449
451
|
.predict, "v1/generate"),
|
|
450
452
|
method: "POST",
|
|
451
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
453
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
452
454
|
contentType: "application/json",
|
|
453
455
|
requestType: "json",
|
|
454
456
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -509,7 +511,7 @@ class VellumClient {
|
|
|
509
511
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
510
512
|
.predict, "v1/generate-stream"),
|
|
511
513
|
method: "POST",
|
|
512
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
514
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
513
515
|
contentType: "application/json",
|
|
514
516
|
requestType: "json",
|
|
515
517
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -590,7 +592,7 @@ class VellumClient {
|
|
|
590
592
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
591
593
|
.predict, "v1/search"),
|
|
592
594
|
method: "POST",
|
|
593
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
595
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
594
596
|
contentType: "application/json",
|
|
595
597
|
requestType: "json",
|
|
596
598
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -658,7 +660,7 @@ class VellumClient {
|
|
|
658
660
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
659
661
|
.predict, "v1/submit-completion-actuals"),
|
|
660
662
|
method: "POST",
|
|
661
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
663
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
662
664
|
contentType: "application/json",
|
|
663
665
|
requestType: "json",
|
|
664
666
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -721,7 +723,7 @@ class VellumClient {
|
|
|
721
723
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
722
724
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
723
725
|
method: "POST",
|
|
724
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
726
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
725
727
|
contentType: "application/json",
|
|
726
728
|
requestType: "json",
|
|
727
729
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -787,33 +789,41 @@ class VellumClient {
|
|
|
787
789
|
var _a;
|
|
788
790
|
return ((_a = this._mlModels) !== null && _a !== void 0 ? _a : (this._mlModels = new Client_8.MlModels(this._options)));
|
|
789
791
|
}
|
|
792
|
+
get organizations() {
|
|
793
|
+
var _a;
|
|
794
|
+
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_9.Organizations(this._options)));
|
|
795
|
+
}
|
|
790
796
|
get sandboxes() {
|
|
791
797
|
var _a;
|
|
792
|
-
return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new
|
|
798
|
+
return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_10.Sandboxes(this._options)));
|
|
793
799
|
}
|
|
794
800
|
get testSuiteRuns() {
|
|
795
801
|
var _a;
|
|
796
|
-
return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new
|
|
802
|
+
return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_11.TestSuiteRuns(this._options)));
|
|
797
803
|
}
|
|
798
804
|
get testSuites() {
|
|
799
805
|
var _a;
|
|
800
|
-
return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new
|
|
806
|
+
return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_12.TestSuites(this._options)));
|
|
801
807
|
}
|
|
802
808
|
get workflowDeployments() {
|
|
803
809
|
var _a;
|
|
804
|
-
return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new
|
|
810
|
+
return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_13.WorkflowDeployments(this._options)));
|
|
805
811
|
}
|
|
806
812
|
get workflowSandboxes() {
|
|
807
813
|
var _a;
|
|
808
|
-
return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new
|
|
814
|
+
return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_14.WorkflowSandboxes(this._options)));
|
|
809
815
|
}
|
|
810
816
|
get workflows() {
|
|
811
817
|
var _a;
|
|
812
|
-
return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new
|
|
818
|
+
return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_15.Workflows(this._options)));
|
|
813
819
|
}
|
|
814
820
|
get workspaceSecrets() {
|
|
815
821
|
var _a;
|
|
816
|
-
return ((_a = this._workspaceSecrets) !== null && _a !== void 0 ? _a : (this._workspaceSecrets = new
|
|
822
|
+
return ((_a = this._workspaceSecrets) !== null && _a !== void 0 ? _a : (this._workspaceSecrets = new Client_16.WorkspaceSecrets(this._options)));
|
|
823
|
+
}
|
|
824
|
+
get workspaces() {
|
|
825
|
+
var _a;
|
|
826
|
+
return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_17.Workspaces(this._options)));
|
|
817
827
|
}
|
|
818
828
|
_getCustomAuthorizationHeaders() {
|
|
819
829
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -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,9 +20,9 @@ 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
|
adhocExecutePromptStream(request: Vellum.AdHocExecutePromptStream, requestOptions?: AdHoc.RequestOptions): Promise<core.Stream<Vellum.AdHocExecutePromptEvent>>;
|
|
25
25
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
26
|
-
X_API_KEY: string;
|
|
26
|
+
X_API_KEY: string | undefined;
|
|
27
27
|
}>;
|
|
28
28
|
}
|
|
@@ -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
|
adhocExecutePromptStream(request, requestOptions) {
|
|
@@ -56,7 +56,7 @@ class AdHoc {
|
|
|
56
56
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
57
57
|
.predict, "v1/ad-hoc/execute-prompt-stream"),
|
|
58
58
|
method: "POST",
|
|
59
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
59
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
60
60
|
contentType: "application/json",
|
|
61
61
|
requestType: "json",
|
|
62
62
|
body: serializers.AdHocExecutePromptStream.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace ContainerImages {
|
|
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 ContainerImages {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class ContainerImages {
|
|
22
22
|
protected readonly _options: ContainerImages.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options?: ContainerImages.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Retrieve a list of container images for the organization.
|
|
26
26
|
*
|
|
@@ -61,6 +61,6 @@ export declare class ContainerImages {
|
|
|
61
61
|
*/
|
|
62
62
|
pushContainerImage(request: Vellum.PushContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): Promise<Vellum.ContainerImageRead>;
|
|
63
63
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
64
|
-
X_API_KEY: string;
|
|
64
|
+
X_API_KEY: string | undefined;
|
|
65
65
|
}>;
|
|
66
66
|
}
|
|
@@ -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 ContainerImages {
|
|
48
|
-
constructor(_options) {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -75,7 +75,7 @@ class ContainerImages {
|
|
|
75
75
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
76
76
|
.default, "v1/container-images"),
|
|
77
77
|
method: "GET",
|
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
queryParameters: _queryParams,
|
|
81
81
|
requestType: "json",
|
|
@@ -128,7 +128,7 @@ class ContainerImages {
|
|
|
128
128
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
129
129
|
.default, `v1/container-images/${encodeURIComponent(id)}`),
|
|
130
130
|
method: "GET",
|
|
131
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
131
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
requestType: "json",
|
|
134
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -177,7 +177,7 @@ class ContainerImages {
|
|
|
177
177
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
178
178
|
.default, "v1/container-images/docker-service-token"),
|
|
179
179
|
method: "GET",
|
|
180
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
180
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
181
181
|
contentType: "application/json",
|
|
182
182
|
requestType: "json",
|
|
183
183
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -231,7 +231,7 @@ class ContainerImages {
|
|
|
231
231
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
232
232
|
.default, "v1/container-images/push"),
|
|
233
233
|
method: "POST",
|
|
234
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
234
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
235
235
|
contentType: "application/json",
|
|
236
236
|
requestType: "json",
|
|
237
237
|
body: serializers.PushContainerImageRequest.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
|
*
|
|
@@ -117,6 +117,6 @@ export declare class Deployments {
|
|
|
117
117
|
*/
|
|
118
118
|
retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
|
|
119
119
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
120
|
-
X_API_KEY: string;
|
|
120
|
+
X_API_KEY: string | undefined;
|
|
121
121
|
}>;
|
|
122
122
|
}
|
|
@@ -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.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.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 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.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.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,
|
|
@@ -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)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
|
|
187
187
|
method: "GET",
|
|
188
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
188
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "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,
|
|
@@ -252,7 +252,7 @@ class Deployments {
|
|
|
252
252
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
253
253
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags`),
|
|
254
254
|
method: "GET",
|
|
255
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
255
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
256
256
|
contentType: "application/json",
|
|
257
257
|
queryParameters: _queryParams,
|
|
258
258
|
requestType: "json",
|
|
@@ -306,7 +306,7 @@ class Deployments {
|
|
|
306
306
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
307
307
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
308
308
|
method: "GET",
|
|
309
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
309
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
310
310
|
contentType: "application/json",
|
|
311
311
|
requestType: "json",
|
|
312
312
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -360,7 +360,7 @@ class Deployments {
|
|
|
360
360
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
361
361
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
362
362
|
method: "PATCH",
|
|
363
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
363
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
364
364
|
contentType: "application/json",
|
|
365
365
|
requestType: "json",
|
|
366
366
|
body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -435,7 +435,7 @@ class Deployments {
|
|
|
435
435
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
436
436
|
.default, "v1/deployments/provider-payload"),
|
|
437
437
|
method: "POST",
|
|
438
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
438
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
439
439
|
contentType: "application/json",
|
|
440
440
|
requestType: "json",
|
|
441
441
|
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.
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.1", "User-Agent": "vellum-ai/0.13.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.13.1", "User-Agent": "vellum-ai/0.13.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.13.1", "User-Agent": "vellum-ai/0.13.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.13.1", "User-Agent": "vellum-ai/0.13.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.13.1", "User-Agent": "vellum-ai/0.13.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.13.1", "User-Agent": "vellum-ai/0.13.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.13.1", "User-Agent": "vellum-ai/0.13.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.13.1", "User-Agent": "vellum-ai/0.13.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,
|
|
@@ -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
|
}
|