vellum-ai 0.14.88 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +37 -8
- package/Client.js +88 -19
- package/api/client/requests/CodeExecutor.d.ts +9 -2
- package/api/client/requests/ExecuteApiRequest.d.ts +1 -1
- package/api/client/requests/ExecutePromptRequest.d.ts +5 -1
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
- package/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
- package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
- package/api/client/requests/GenerateBodyRequest.d.ts +9 -1
- package/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
- package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
- package/api/resources/adHoc/client/Client.d.ts +18 -3
- package/api/resources/adHoc/client/Client.js +24 -5
- package/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
- package/api/resources/containerImages/client/Client.d.ts +7 -3
- package/api/resources/containerImages/client/Client.js +24 -8
- package/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
- package/api/resources/deployments/client/Client.d.ts +9 -1
- package/api/resources/deployments/client/Client.js +45 -9
- package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
- package/api/resources/documentIndexes/client/Client.d.ts +9 -58
- package/api/resources/documentIndexes/client/Client.js +45 -66
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
- package/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
- package/api/resources/documents/client/Client.d.ts +4 -5
- package/api/resources/documents/client/Client.js +26 -11
- package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
- package/api/resources/folderEntities/client/Client.d.ts +4 -0
- package/api/resources/folderEntities/client/Client.js +10 -2
- package/api/resources/metricDefinitions/client/Client.d.ts +9 -1
- package/api/resources/metricDefinitions/client/Client.js +15 -3
- package/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
- package/api/resources/mlModels/client/Client.d.ts +4 -0
- package/api/resources/mlModels/client/Client.js +6 -2
- package/api/resources/organizations/client/Client.d.ts +4 -0
- package/api/resources/organizations/client/Client.js +6 -2
- package/api/resources/prompts/client/Client.d.ts +12 -1
- package/api/resources/prompts/client/Client.js +19 -4
- package/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
- package/api/resources/releaseReviews/client/Client.d.ts +4 -0
- package/api/resources/releaseReviews/client/Client.js +6 -2
- package/api/resources/sandboxes/client/Client.d.ts +6 -21
- package/api/resources/sandboxes/client/Client.js +17 -24
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
- package/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
- package/api/resources/testSuiteRuns/client/Client.js +15 -3
- package/api/resources/testSuites/client/Client.d.ts +13 -15
- package/api/resources/testSuites/client/Client.js +30 -20
- package/api/resources/workflowDeployments/client/Client.d.ts +4 -0
- package/api/resources/workflowDeployments/client/Client.js +40 -8
- package/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
- package/api/resources/workflowSandboxes/client/Client.js +10 -2
- package/api/resources/workflows/client/Client.d.ts +4 -5
- package/api/resources/workflows/client/Client.js +11 -8
- package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
- package/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
- package/api/resources/workspaceSecrets/client/Client.js +11 -3
- package/api/resources/workspaces/client/Client.d.ts +4 -0
- package/api/resources/workspaces/client/Client.js +6 -2
- package/dist/Client.d.ts +37 -8
- package/dist/Client.js +88 -19
- package/dist/api/client/requests/CodeExecutor.d.ts +9 -2
- package/dist/api/client/requests/ExecuteApiRequest.d.ts +1 -1
- package/dist/api/client/requests/ExecutePromptRequest.d.ts +5 -1
- package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
- package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
- package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
- package/dist/api/client/requests/GenerateBodyRequest.d.ts +9 -1
- package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/dist/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
- package/dist/api/resources/adHoc/client/Client.d.ts +18 -3
- package/dist/api/resources/adHoc/client/Client.js +24 -5
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
- package/dist/api/resources/containerImages/client/Client.d.ts +7 -3
- package/dist/api/resources/containerImages/client/Client.js +24 -8
- package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
- package/dist/api/resources/deployments/client/Client.d.ts +9 -1
- package/dist/api/resources/deployments/client/Client.js +45 -9
- package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
- package/dist/api/resources/documentIndexes/client/Client.d.ts +9 -58
- package/dist/api/resources/documentIndexes/client/Client.js +45 -66
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
- package/dist/api/resources/documents/client/Client.d.ts +4 -5
- package/dist/api/resources/documents/client/Client.js +26 -11
- package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
- package/dist/api/resources/folderEntities/client/Client.d.ts +4 -0
- package/dist/api/resources/folderEntities/client/Client.js +10 -2
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +9 -1
- package/dist/api/resources/metricDefinitions/client/Client.js +15 -3
- package/dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
- package/dist/api/resources/mlModels/client/Client.d.ts +4 -0
- package/dist/api/resources/mlModels/client/Client.js +6 -2
- package/dist/api/resources/organizations/client/Client.d.ts +4 -0
- package/dist/api/resources/organizations/client/Client.js +6 -2
- package/dist/api/resources/prompts/client/Client.d.ts +12 -1
- package/dist/api/resources/prompts/client/Client.js +19 -4
- package/dist/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
- package/dist/api/resources/releaseReviews/client/Client.d.ts +4 -0
- package/dist/api/resources/releaseReviews/client/Client.js +6 -2
- package/dist/api/resources/sandboxes/client/Client.d.ts +6 -21
- package/dist/api/resources/sandboxes/client/Client.js +17 -24
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
- package/dist/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
- package/dist/api/resources/testSuiteRuns/client/Client.js +15 -3
- package/dist/api/resources/testSuites/client/Client.d.ts +13 -15
- package/dist/api/resources/testSuites/client/Client.js +30 -20
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +4 -0
- package/dist/api/resources/workflowDeployments/client/Client.js +40 -8
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
- package/dist/api/resources/workflowSandboxes/client/Client.js +10 -2
- package/dist/api/resources/workflows/client/Client.d.ts +4 -5
- package/dist/api/resources/workflows/client/Client.js +11 -8
- package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
- package/dist/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
- package/dist/api/resources/workspaceSecrets/client/Client.js +11 -3
- package/dist/api/resources/workspaces/client/Client.d.ts +4 -0
- package/dist/api/resources/workspaces/client/Client.js +6 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +116 -187
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -10,6 +10,8 @@ export declare namespace WorkspaceSecrets {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey: core.Supplier<string>;
|
|
13
|
+
/** Override the X-API-Version header */
|
|
14
|
+
apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
|
|
13
15
|
}
|
|
14
16
|
interface RequestOptions {
|
|
15
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -18,6 +20,8 @@ export declare namespace WorkspaceSecrets {
|
|
|
18
20
|
maxRetries?: number;
|
|
19
21
|
/** A hook to abort the request. */
|
|
20
22
|
abortSignal?: AbortSignal;
|
|
23
|
+
/** Override the X-API-Version header */
|
|
24
|
+
apiVersion?: Vellum.ApiVersionEnum | undefined;
|
|
21
25
|
/** Additional headers to include in the request. */
|
|
22
26
|
headers?: Record<string, string>;
|
|
23
27
|
}
|
|
@@ -51,8 +51,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
51
51
|
exports.WorkspaceSecrets = void 0;
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
55
54
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
55
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
56
56
|
const errors = __importStar(require("../../../../errors/index"));
|
|
57
57
|
class WorkspaceSecrets {
|
|
58
58
|
constructor(_options) {
|
|
@@ -77,7 +77,11 @@ class WorkspaceSecrets {
|
|
|
77
77
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
78
78
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign(Object.assign({ "X-
|
|
80
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
81
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
82
|
+
unrecognizedObjectKeys: "strip",
|
|
83
|
+
})
|
|
84
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
85
|
contentType: "application/json",
|
|
82
86
|
requestType: "json",
|
|
83
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -139,7 +143,11 @@ class WorkspaceSecrets {
|
|
|
139
143
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
140
144
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
141
145
|
method: "PATCH",
|
|
142
|
-
headers: Object.assign(Object.assign({ "X-
|
|
146
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
147
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
148
|
+
unrecognizedObjectKeys: "strip",
|
|
149
|
+
})
|
|
150
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
143
151
|
contentType: "application/json",
|
|
144
152
|
requestType: "json",
|
|
145
153
|
body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
|
|
@@ -10,6 +10,8 @@ export declare namespace Workspaces {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey: core.Supplier<string>;
|
|
13
|
+
/** Override the X-API-Version header */
|
|
14
|
+
apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
|
|
13
15
|
}
|
|
14
16
|
interface RequestOptions {
|
|
15
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -18,6 +20,8 @@ export declare namespace Workspaces {
|
|
|
18
20
|
maxRetries?: number;
|
|
19
21
|
/** A hook to abort the request. */
|
|
20
22
|
abortSignal?: AbortSignal;
|
|
23
|
+
/** Override the X-API-Version header */
|
|
24
|
+
apiVersion?: Vellum.ApiVersionEnum | undefined;
|
|
21
25
|
/** Additional headers to include in the request. */
|
|
22
26
|
headers?: Record<string, string>;
|
|
23
27
|
}
|
|
@@ -51,8 +51,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
51
51
|
exports.Workspaces = void 0;
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
55
54
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
55
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
56
56
|
const errors = __importStar(require("../../../../errors/index"));
|
|
57
57
|
class Workspaces {
|
|
58
58
|
constructor(_options) {
|
|
@@ -76,7 +76,11 @@ class Workspaces {
|
|
|
76
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
77
77
|
.default, "v1/workspaces/identity"),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
80
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
81
|
+
unrecognizedObjectKeys: "strip",
|
|
82
|
+
})
|
|
83
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
80
84
|
contentType: "application/json",
|
|
81
85
|
requestType: "json",
|
|
82
86
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -35,6 +35,9 @@ await client.submitWorkflowExecutionActuals({
|
|
|
35
35
|
{
|
|
36
36
|
outputType: "STRING",
|
|
37
37
|
},
|
|
38
|
+
{
|
|
39
|
+
outputType: "STRING",
|
|
40
|
+
},
|
|
38
41
|
],
|
|
39
42
|
});
|
|
40
43
|
```
|
|
@@ -89,17 +92,27 @@ await client.submitWorkflowExecutionActuals({
|
|
|
89
92
|
|
|
90
93
|
```typescript
|
|
91
94
|
await client.adHoc.adhocExecutePrompt({
|
|
92
|
-
mlModel: "
|
|
95
|
+
mlModel: "x",
|
|
93
96
|
inputValues: [
|
|
94
97
|
{
|
|
95
|
-
key: "
|
|
98
|
+
key: "x",
|
|
99
|
+
type: "STRING",
|
|
100
|
+
value: "value",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
key: "x",
|
|
96
104
|
type: "STRING",
|
|
97
105
|
value: "value",
|
|
98
106
|
},
|
|
99
107
|
],
|
|
100
108
|
inputVariables: [
|
|
101
109
|
{
|
|
102
|
-
id: "
|
|
110
|
+
id: "x",
|
|
111
|
+
key: "key",
|
|
112
|
+
type: "STRING",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: "x",
|
|
103
116
|
key: "key",
|
|
104
117
|
type: "STRING",
|
|
105
118
|
},
|
|
@@ -110,6 +123,10 @@ await client.adHoc.adhocExecutePrompt({
|
|
|
110
123
|
blockType: "JINJA",
|
|
111
124
|
template: "template",
|
|
112
125
|
},
|
|
126
|
+
{
|
|
127
|
+
blockType: "JINJA",
|
|
128
|
+
template: "template",
|
|
129
|
+
},
|
|
113
130
|
],
|
|
114
131
|
});
|
|
115
132
|
```
|
|
@@ -160,17 +177,27 @@ await client.adHoc.adhocExecutePrompt({
|
|
|
160
177
|
|
|
161
178
|
```typescript
|
|
162
179
|
const response = await client.adHoc.adhocExecutePromptStream({
|
|
163
|
-
mlModel: "
|
|
180
|
+
mlModel: "x",
|
|
164
181
|
inputValues: [
|
|
165
182
|
{
|
|
166
|
-
key: "
|
|
183
|
+
key: "x",
|
|
184
|
+
type: "STRING",
|
|
185
|
+
value: "value",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
key: "x",
|
|
167
189
|
type: "STRING",
|
|
168
190
|
value: "value",
|
|
169
191
|
},
|
|
170
192
|
],
|
|
171
193
|
inputVariables: [
|
|
172
194
|
{
|
|
173
|
-
id: "
|
|
195
|
+
id: "x",
|
|
196
|
+
key: "key",
|
|
197
|
+
type: "STRING",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
id: "x",
|
|
174
201
|
key: "key",
|
|
175
202
|
type: "STRING",
|
|
176
203
|
},
|
|
@@ -181,6 +208,10 @@ const response = await client.adHoc.adhocExecutePromptStream({
|
|
|
181
208
|
blockType: "JINJA",
|
|
182
209
|
template: "template",
|
|
183
210
|
},
|
|
211
|
+
{
|
|
212
|
+
blockType: "JINJA",
|
|
213
|
+
template: "template",
|
|
214
|
+
},
|
|
184
215
|
],
|
|
185
216
|
});
|
|
186
217
|
for await (const item of response) {
|
|
@@ -402,9 +433,9 @@ await client.containerImages.dockerServiceToken();
|
|
|
402
433
|
|
|
403
434
|
```typescript
|
|
404
435
|
await client.containerImages.pushContainerImage({
|
|
405
|
-
name: "
|
|
406
|
-
sha: "
|
|
407
|
-
tags: ["tags"],
|
|
436
|
+
name: "x",
|
|
437
|
+
sha: "x",
|
|
438
|
+
tags: ["tags", "tags"],
|
|
408
439
|
});
|
|
409
440
|
```
|
|
410
441
|
|
|
@@ -972,7 +1003,12 @@ We encourage you to seek advise from Vellum Support before integrating with this
|
|
|
972
1003
|
await client.deployments.retrieveProviderPayload({
|
|
973
1004
|
inputs: [
|
|
974
1005
|
{
|
|
975
|
-
name: "
|
|
1006
|
+
name: "x",
|
|
1007
|
+
type: "STRING",
|
|
1008
|
+
value: "value",
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
name: "x",
|
|
976
1012
|
type: "STRING",
|
|
977
1013
|
value: "value",
|
|
978
1014
|
},
|
|
@@ -1106,23 +1142,12 @@ Creates a new document index.
|
|
|
1106
1142
|
|
|
1107
1143
|
```typescript
|
|
1108
1144
|
await client.documentIndexes.create({
|
|
1109
|
-
label: "
|
|
1110
|
-
name: "
|
|
1145
|
+
label: "x",
|
|
1146
|
+
name: "x",
|
|
1111
1147
|
indexingConfig: {
|
|
1112
1148
|
vectorizer: {
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
instructionDomain: "",
|
|
1116
|
-
instructionQueryTextType: "plain_text",
|
|
1117
|
-
instructionDocumentTextType: "plain_text",
|
|
1118
|
-
},
|
|
1119
|
-
},
|
|
1120
|
-
chunking: {
|
|
1121
|
-
chunkerName: "sentence-chunker",
|
|
1122
|
-
chunkerConfig: {
|
|
1123
|
-
characterLimit: 1000,
|
|
1124
|
-
minOverlapRatio: 0.5,
|
|
1125
|
-
},
|
|
1149
|
+
config: {},
|
|
1150
|
+
modelName: "text-embedding-3-small",
|
|
1126
1151
|
},
|
|
1127
1152
|
},
|
|
1128
1153
|
});
|
|
@@ -1252,7 +1277,7 @@ Used to fully update a Document Index given its ID or name.
|
|
|
1252
1277
|
|
|
1253
1278
|
```typescript
|
|
1254
1279
|
await client.documentIndexes.update("id", {
|
|
1255
|
-
label: "
|
|
1280
|
+
label: "x",
|
|
1256
1281
|
});
|
|
1257
1282
|
```
|
|
1258
1283
|
|
|
@@ -1834,81 +1859,6 @@ await client.documents.partialUpdate("id");
|
|
|
1834
1859
|
</dl>
|
|
1835
1860
|
</details>
|
|
1836
1861
|
|
|
1837
|
-
<details><summary><code>client.documents.<a href="/src/api/resources/documents/client/Client.ts">upload</a>(contents, { ...params }) -> Vellum.UploadDocumentResponse</code></summary>
|
|
1838
|
-
<dl>
|
|
1839
|
-
<dd>
|
|
1840
|
-
|
|
1841
|
-
#### 📝 Description
|
|
1842
|
-
|
|
1843
|
-
<dl>
|
|
1844
|
-
<dd>
|
|
1845
|
-
|
|
1846
|
-
<dl>
|
|
1847
|
-
<dd>
|
|
1848
|
-
|
|
1849
|
-
Upload a document to be indexed and used for search.
|
|
1850
|
-
|
|
1851
|
-
**Note:** Uses a base url of `https://documents.vellum.ai`.
|
|
1852
|
-
|
|
1853
|
-
</dd>
|
|
1854
|
-
</dl>
|
|
1855
|
-
</dd>
|
|
1856
|
-
</dl>
|
|
1857
|
-
|
|
1858
|
-
#### 🔌 Usage
|
|
1859
|
-
|
|
1860
|
-
<dl>
|
|
1861
|
-
<dd>
|
|
1862
|
-
|
|
1863
|
-
<dl>
|
|
1864
|
-
<dd>
|
|
1865
|
-
|
|
1866
|
-
```typescript
|
|
1867
|
-
await client.documents.upload(fs.createReadStream("/path/to/your/file"), {
|
|
1868
|
-
label: "label",
|
|
1869
|
-
});
|
|
1870
|
-
```
|
|
1871
|
-
|
|
1872
|
-
</dd>
|
|
1873
|
-
</dl>
|
|
1874
|
-
</dd>
|
|
1875
|
-
</dl>
|
|
1876
|
-
|
|
1877
|
-
#### ⚙️ Parameters
|
|
1878
|
-
|
|
1879
|
-
<dl>
|
|
1880
|
-
<dd>
|
|
1881
|
-
|
|
1882
|
-
<dl>
|
|
1883
|
-
<dd>
|
|
1884
|
-
|
|
1885
|
-
**contents:** `File | fs.ReadStream | Blob`
|
|
1886
|
-
|
|
1887
|
-
</dd>
|
|
1888
|
-
</dl>
|
|
1889
|
-
|
|
1890
|
-
<dl>
|
|
1891
|
-
<dd>
|
|
1892
|
-
|
|
1893
|
-
**request:** `Vellum.UploadDocumentBodyRequest`
|
|
1894
|
-
|
|
1895
|
-
</dd>
|
|
1896
|
-
</dl>
|
|
1897
|
-
|
|
1898
|
-
<dl>
|
|
1899
|
-
<dd>
|
|
1900
|
-
|
|
1901
|
-
**requestOptions:** `Documents.RequestOptions`
|
|
1902
|
-
|
|
1903
|
-
</dd>
|
|
1904
|
-
</dl>
|
|
1905
|
-
</dd>
|
|
1906
|
-
</dl>
|
|
1907
|
-
|
|
1908
|
-
</dd>
|
|
1909
|
-
</dl>
|
|
1910
|
-
</details>
|
|
1911
|
-
|
|
1912
1862
|
## FolderEntities
|
|
1913
1863
|
|
|
1914
1864
|
<details><summary><code>client.folderEntities.<a href="/src/api/resources/folderEntities/client/Client.ts">list</a>({ ...params }) -> Vellum.PaginatedFolderEntityList</code></summary>
|
|
@@ -2077,7 +2027,12 @@ directory. Supported root directories include:
|
|
|
2077
2027
|
await client.metricDefinitions.executeMetricDefinition("id", {
|
|
2078
2028
|
inputs: [
|
|
2079
2029
|
{
|
|
2080
|
-
name: "
|
|
2030
|
+
name: "x",
|
|
2031
|
+
type: "STRING",
|
|
2032
|
+
value: "value",
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
name: "x",
|
|
2081
2036
|
type: "STRING",
|
|
2082
2037
|
value: "value",
|
|
2083
2038
|
},
|
|
@@ -2409,7 +2364,12 @@ await client.prompts.push({
|
|
|
2409
2364
|
mlModel: "ml_model",
|
|
2410
2365
|
inputVariables: [
|
|
2411
2366
|
{
|
|
2412
|
-
id: "
|
|
2367
|
+
id: "x",
|
|
2368
|
+
key: "key",
|
|
2369
|
+
type: "STRING",
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
id: "x",
|
|
2413
2373
|
key: "key",
|
|
2414
2374
|
type: "STRING",
|
|
2415
2375
|
},
|
|
@@ -2420,6 +2380,10 @@ await client.prompts.push({
|
|
|
2420
2380
|
blockType: "JINJA",
|
|
2421
2381
|
template: "template",
|
|
2422
2382
|
},
|
|
2383
|
+
{
|
|
2384
|
+
blockType: "JINJA",
|
|
2385
|
+
template: "template",
|
|
2386
|
+
},
|
|
2423
2387
|
],
|
|
2424
2388
|
},
|
|
2425
2389
|
});
|
|
@@ -2558,17 +2522,14 @@ or overwritten with default values.
|
|
|
2558
2522
|
|
|
2559
2523
|
```typescript
|
|
2560
2524
|
await client.sandboxes.upsertSandboxScenario("id", {
|
|
2561
|
-
label: "Scenario 1",
|
|
2562
2525
|
inputs: [
|
|
2563
2526
|
{
|
|
2564
2527
|
type: "STRING",
|
|
2565
|
-
|
|
2566
|
-
name: "var_1",
|
|
2528
|
+
name: "x",
|
|
2567
2529
|
},
|
|
2568
2530
|
{
|
|
2569
2531
|
type: "STRING",
|
|
2570
|
-
|
|
2571
|
-
name: "var_2",
|
|
2532
|
+
name: "x",
|
|
2572
2533
|
},
|
|
2573
2534
|
],
|
|
2574
2535
|
});
|
|
@@ -2984,32 +2945,24 @@ or overwritten with default values.
|
|
|
2984
2945
|
|
|
2985
2946
|
```typescript
|
|
2986
2947
|
await client.testSuites.upsertTestSuiteTestCase("id", {
|
|
2987
|
-
label: "Test Case 1",
|
|
2988
2948
|
inputValues: [
|
|
2989
2949
|
{
|
|
2990
2950
|
type: "STRING",
|
|
2991
|
-
|
|
2992
|
-
|
|
2951
|
+
name: "x",
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
type: "STRING",
|
|
2955
|
+
name: "x",
|
|
2993
2956
|
},
|
|
2994
2957
|
],
|
|
2995
2958
|
evaluationValues: [
|
|
2996
2959
|
{
|
|
2997
|
-
type: "
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
{
|
|
3004
|
-
type: "STRING",
|
|
3005
|
-
value: "Green",
|
|
3006
|
-
},
|
|
3007
|
-
{
|
|
3008
|
-
type: "STRING",
|
|
3009
|
-
value: "Blue",
|
|
3010
|
-
},
|
|
3011
|
-
],
|
|
3012
|
-
name: "var_2",
|
|
2960
|
+
type: "STRING",
|
|
2961
|
+
name: "x",
|
|
2962
|
+
},
|
|
2963
|
+
{
|
|
2964
|
+
type: "STRING",
|
|
2965
|
+
name: "x",
|
|
3013
2966
|
},
|
|
3014
2967
|
],
|
|
3015
2968
|
});
|
|
@@ -3091,13 +3044,47 @@ const response = await client.testSuites.testSuiteTestCasesBulk("id", [
|
|
|
3091
3044
|
inputValues: [
|
|
3092
3045
|
{
|
|
3093
3046
|
type: "STRING",
|
|
3094
|
-
name: "
|
|
3047
|
+
name: "x",
|
|
3048
|
+
},
|
|
3049
|
+
{
|
|
3050
|
+
type: "STRING",
|
|
3051
|
+
name: "x",
|
|
3052
|
+
},
|
|
3053
|
+
],
|
|
3054
|
+
evaluationValues: [
|
|
3055
|
+
{
|
|
3056
|
+
type: "STRING",
|
|
3057
|
+
name: "x",
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
type: "STRING",
|
|
3061
|
+
name: "x",
|
|
3062
|
+
},
|
|
3063
|
+
],
|
|
3064
|
+
},
|
|
3065
|
+
},
|
|
3066
|
+
{
|
|
3067
|
+
id: "id",
|
|
3068
|
+
type: "CREATE",
|
|
3069
|
+
data: {
|
|
3070
|
+
inputValues: [
|
|
3071
|
+
{
|
|
3072
|
+
type: "STRING",
|
|
3073
|
+
name: "x",
|
|
3074
|
+
},
|
|
3075
|
+
{
|
|
3076
|
+
type: "STRING",
|
|
3077
|
+
name: "x",
|
|
3095
3078
|
},
|
|
3096
3079
|
],
|
|
3097
3080
|
evaluationValues: [
|
|
3098
3081
|
{
|
|
3099
3082
|
type: "STRING",
|
|
3100
|
-
name: "
|
|
3083
|
+
name: "x",
|
|
3084
|
+
},
|
|
3085
|
+
{
|
|
3086
|
+
type: "STRING",
|
|
3087
|
+
name: "x",
|
|
3101
3088
|
},
|
|
3102
3089
|
],
|
|
3103
3090
|
},
|
|
@@ -3956,64 +3943,6 @@ await client.workflowSandboxes.listWorkflowSandboxExamples();
|
|
|
3956
3943
|
|
|
3957
3944
|
## Workflows
|
|
3958
3945
|
|
|
3959
|
-
<details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">push</a>(artifact, { ...params }) -> Vellum.WorkflowPushResponse</code></summary>
|
|
3960
|
-
<dl>
|
|
3961
|
-
<dd>
|
|
3962
|
-
|
|
3963
|
-
#### 🔌 Usage
|
|
3964
|
-
|
|
3965
|
-
<dl>
|
|
3966
|
-
<dd>
|
|
3967
|
-
|
|
3968
|
-
<dl>
|
|
3969
|
-
<dd>
|
|
3970
|
-
|
|
3971
|
-
```typescript
|
|
3972
|
-
await client.workflows.push(fs.createReadStream("/path/to/your/file"), {
|
|
3973
|
-
execConfig: "exec_config",
|
|
3974
|
-
});
|
|
3975
|
-
```
|
|
3976
|
-
|
|
3977
|
-
</dd>
|
|
3978
|
-
</dl>
|
|
3979
|
-
</dd>
|
|
3980
|
-
</dl>
|
|
3981
|
-
|
|
3982
|
-
#### ⚙️ Parameters
|
|
3983
|
-
|
|
3984
|
-
<dl>
|
|
3985
|
-
<dd>
|
|
3986
|
-
|
|
3987
|
-
<dl>
|
|
3988
|
-
<dd>
|
|
3989
|
-
|
|
3990
|
-
**artifact:** `File | fs.ReadStream | Blob | undefined`
|
|
3991
|
-
|
|
3992
|
-
</dd>
|
|
3993
|
-
</dl>
|
|
3994
|
-
|
|
3995
|
-
<dl>
|
|
3996
|
-
<dd>
|
|
3997
|
-
|
|
3998
|
-
**request:** `Vellum.WorkflowPushRequest`
|
|
3999
|
-
|
|
4000
|
-
</dd>
|
|
4001
|
-
</dl>
|
|
4002
|
-
|
|
4003
|
-
<dl>
|
|
4004
|
-
<dd>
|
|
4005
|
-
|
|
4006
|
-
**requestOptions:** `Workflows.RequestOptions`
|
|
4007
|
-
|
|
4008
|
-
</dd>
|
|
4009
|
-
</dl>
|
|
4010
|
-
</dd>
|
|
4011
|
-
</dl>
|
|
4012
|
-
|
|
4013
|
-
</dd>
|
|
4014
|
-
</dl>
|
|
4015
|
-
</details>
|
|
4016
|
-
|
|
4017
3946
|
## WorkspaceSecrets
|
|
4018
3947
|
|
|
4019
3948
|
<details><summary><code>client.workspaceSecrets.<a href="/src/api/resources/workspaceSecrets/client/Client.ts">retrieve</a>(id) -> Vellum.WorkspaceSecretRead</code></summary>
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0";
|
package/version.js
CHANGED