vellum-ai 0.3.8 → 0.3.10
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 +2 -2
- package/Client.js +10 -10
- package/api/resources/deployments/client/Client.d.ts +2 -2
- package/api/resources/deployments/client/Client.js +4 -4
- package/api/resources/documentIndexes/client/Client.d.ts +9 -2
- package/api/resources/documentIndexes/client/Client.js +73 -4
- package/api/resources/documentIndexes/client/requests/DocumentIndexesListRequest.d.ts +29 -0
- package/api/resources/documentIndexes/client/requests/DocumentIndexesListRequest.js +5 -0
- package/api/resources/documentIndexes/client/requests/index.d.ts +1 -0
- package/api/resources/documentIndexes/index.d.ts +1 -0
- package/api/resources/documentIndexes/index.js +1 -0
- package/api/resources/documentIndexes/types/DocumentIndexesListRequestStatus.d.ts +8 -0
- package/api/resources/documentIndexes/types/DocumentIndexesListRequestStatus.js +10 -0
- package/api/resources/documentIndexes/types/index.d.ts +1 -0
- package/api/resources/documentIndexes/types/index.js +17 -0
- package/api/resources/documents/client/Client.d.ts +2 -2
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.d.ts +2 -2
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/modelVersions/client/Client.d.ts +2 -2
- package/api/resources/modelVersions/client/Client.js +2 -2
- package/api/resources/registeredPrompts/client/Client.d.ts +2 -2
- package/api/resources/registeredPrompts/client/Client.js +2 -2
- package/api/resources/sandboxes/client/Client.d.ts +2 -2
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.d.ts +2 -2
- package/api/resources/testSuites/client/Client.js +3 -3
- package/api/resources/workflowDeployments/client/Client.d.ts +2 -2
- package/api/resources/workflowDeployments/client/Client.js +3 -3
- package/api/types/CodeExecutionNodeResultData.d.ts +1 -0
- package/api/types/NodeInputCompiledArrayValue.d.ts +1 -1
- package/api/types/NodeOutputCompiledArrayValue.d.ts +1 -1
- package/api/types/PaginatedDocumentIndexReadList.d.ts +10 -0
- package/api/types/PaginatedDocumentIndexReadList.js +5 -0
- package/api/types/SubworkflowEnum.d.ts +4 -0
- package/api/types/SubworkflowEnum.js +5 -0
- package/api/types/SubworkflowNodeResult.d.ts +8 -0
- package/api/types/SubworkflowNodeResult.js +5 -0
- package/api/types/TerminalNodeArrayResult.d.ts +10 -0
- package/api/types/TerminalNodeArrayResult.js +5 -0
- package/api/types/TerminalNodeFunctionCallResult.d.ts +10 -0
- package/api/types/TerminalNodeFunctionCallResult.js +5 -0
- package/api/types/TerminalNodeResultOutput.d.ts +7 -1
- package/api/types/VellumErrorCodeEnum.d.ts +3 -1
- package/api/types/VellumErrorCodeEnum.js +1 -0
- package/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
- package/api/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/api/types/WorkflowNodeResultData.d.ts +4 -1
- package/api/types/WorkflowOutput.d.ts +4 -1
- package/api/types/WorkflowOutputArray.d.ts +13 -0
- package/api/types/WorkflowOutputArray.js +5 -0
- package/api/types/WorkflowResultEventOutputData.d.ts +7 -1
- package/api/types/WorkflowResultEventOutputDataArray.d.ts +16 -0
- package/api/types/WorkflowResultEventOutputDataArray.js +5 -0
- package/api/types/WorkflowResultEventOutputDataFunctionCall.d.ts +16 -0
- package/api/types/WorkflowResultEventOutputDataFunctionCall.js +5 -0
- package/api/types/index.d.ts +8 -0
- package/api/types/index.js +8 -0
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +10 -10
- package/dist/api/resources/deployments/client/Client.d.ts +2 -2
- package/dist/api/resources/deployments/client/Client.js +4 -4
- package/dist/api/resources/documentIndexes/client/Client.d.ts +9 -2
- package/dist/api/resources/documentIndexes/client/Client.js +73 -4
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexesListRequest.d.ts +29 -0
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexesListRequest.js +5 -0
- package/dist/api/resources/documentIndexes/client/requests/index.d.ts +1 -0
- package/dist/api/resources/documentIndexes/index.d.ts +1 -0
- package/dist/api/resources/documentIndexes/index.js +1 -0
- package/dist/api/resources/documentIndexes/types/DocumentIndexesListRequestStatus.d.ts +8 -0
- package/dist/api/resources/documentIndexes/types/DocumentIndexesListRequestStatus.js +10 -0
- package/dist/api/resources/documentIndexes/types/index.d.ts +1 -0
- package/dist/api/resources/documentIndexes/types/index.js +17 -0
- package/dist/api/resources/documents/client/Client.d.ts +2 -2
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.d.ts +2 -2
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/modelVersions/client/Client.d.ts +2 -2
- package/dist/api/resources/modelVersions/client/Client.js +2 -2
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +2 -2
- package/dist/api/resources/registeredPrompts/client/Client.js +2 -2
- package/dist/api/resources/sandboxes/client/Client.d.ts +2 -2
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.d.ts +2 -2
- package/dist/api/resources/testSuites/client/Client.js +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +2 -2
- package/dist/api/resources/workflowDeployments/client/Client.js +3 -3
- package/dist/api/types/CodeExecutionNodeResultData.d.ts +1 -0
- package/dist/api/types/NodeInputCompiledArrayValue.d.ts +1 -1
- package/dist/api/types/NodeOutputCompiledArrayValue.d.ts +1 -1
- package/dist/api/types/PaginatedDocumentIndexReadList.d.ts +10 -0
- package/dist/api/types/PaginatedDocumentIndexReadList.js +5 -0
- package/dist/api/types/SubworkflowEnum.d.ts +4 -0
- package/dist/api/types/SubworkflowEnum.js +5 -0
- package/dist/api/types/SubworkflowNodeResult.d.ts +8 -0
- package/dist/api/types/SubworkflowNodeResult.js +5 -0
- package/dist/api/types/TerminalNodeArrayResult.d.ts +10 -0
- package/dist/api/types/TerminalNodeArrayResult.js +5 -0
- package/dist/api/types/TerminalNodeFunctionCallResult.d.ts +10 -0
- package/dist/api/types/TerminalNodeFunctionCallResult.js +5 -0
- package/dist/api/types/TerminalNodeResultOutput.d.ts +7 -1
- package/dist/api/types/VellumErrorCodeEnum.d.ts +3 -1
- package/dist/api/types/VellumErrorCodeEnum.js +1 -0
- package/dist/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
- package/dist/api/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/dist/api/types/WorkflowNodeResultData.d.ts +4 -1
- package/dist/api/types/WorkflowOutput.d.ts +4 -1
- package/dist/api/types/WorkflowOutputArray.d.ts +13 -0
- package/dist/api/types/WorkflowOutputArray.js +5 -0
- package/dist/api/types/WorkflowResultEventOutputData.d.ts +7 -1
- package/dist/api/types/WorkflowResultEventOutputDataArray.d.ts +16 -0
- package/dist/api/types/WorkflowResultEventOutputDataArray.js +5 -0
- package/dist/api/types/WorkflowResultEventOutputDataFunctionCall.d.ts +16 -0
- package/dist/api/types/WorkflowResultEventOutputDataFunctionCall.js +5 -0
- package/dist/api/types/index.d.ts +8 -0
- package/dist/api/types/index.js +8 -0
- package/dist/serialization/resources/documentIndexes/index.d.ts +1 -0
- package/dist/serialization/resources/documentIndexes/index.js +1 -0
- package/dist/serialization/resources/documentIndexes/types/DocumentIndexesListRequestStatus.d.ts +10 -0
- package/dist/serialization/resources/documentIndexes/types/DocumentIndexesListRequestStatus.js +31 -0
- package/dist/serialization/resources/documentIndexes/types/index.d.ts +1 -0
- package/dist/serialization/resources/documentIndexes/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/CodeExecutionNodeResultData.d.ts +1 -0
- package/dist/serialization/types/CodeExecutionNodeResultData.js +1 -0
- package/dist/serialization/types/NodeInputCompiledArrayValue.d.ts +1 -1
- package/dist/serialization/types/NodeInputCompiledArrayValue.js +3 -1
- package/dist/serialization/types/NodeOutputCompiledArrayValue.d.ts +1 -1
- package/dist/serialization/types/NodeOutputCompiledArrayValue.js +3 -1
- package/dist/serialization/types/PaginatedDocumentIndexReadList.d.ts +15 -0
- package/dist/serialization/types/PaginatedDocumentIndexReadList.js +47 -0
- package/dist/serialization/types/SubworkflowEnum.d.ts +10 -0
- package/dist/serialization/types/SubworkflowEnum.js +31 -0
- package/dist/serialization/types/SubworkflowNodeResult.d.ts +11 -0
- package/dist/serialization/types/SubworkflowNodeResult.js +31 -0
- package/dist/serialization/types/TerminalNodeArrayResult.d.ts +14 -0
- package/dist/serialization/types/TerminalNodeArrayResult.js +46 -0
- package/dist/serialization/types/TerminalNodeFunctionCallResult.d.ts +14 -0
- package/dist/serialization/types/TerminalNodeFunctionCallResult.js +44 -0
- package/dist/serialization/types/TerminalNodeResultOutput.d.ts +7 -1
- package/dist/serialization/types/TerminalNodeResultOutput.js +2 -0
- package/dist/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/dist/serialization/types/VellumErrorCodeEnum.js +1 -1
- package/dist/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
- package/dist/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/dist/serialization/types/WorkflowNodeResultData.d.ts +4 -1
- package/dist/serialization/types/WorkflowNodeResultData.js +1 -0
- package/dist/serialization/types/WorkflowOutput.d.ts +4 -1
- package/dist/serialization/types/WorkflowOutput.js +1 -0
- package/dist/serialization/types/WorkflowOutputArray.d.ts +14 -0
- package/dist/serialization/types/WorkflowOutputArray.js +44 -0
- package/dist/serialization/types/WorkflowResultEventOutputData.d.ts +7 -1
- package/dist/serialization/types/WorkflowResultEventOutputData.js +2 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataArray.d.ts +17 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataArray.js +49 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataFunctionCall.d.ts +17 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataFunctionCall.js +47 -0
- package/dist/serialization/types/index.d.ts +8 -0
- package/dist/serialization/types/index.js +8 -0
- package/package.json +1 -1
- package/serialization/resources/documentIndexes/index.d.ts +1 -0
- package/serialization/resources/documentIndexes/index.js +1 -0
- package/serialization/resources/documentIndexes/types/DocumentIndexesListRequestStatus.d.ts +10 -0
- package/serialization/resources/documentIndexes/types/DocumentIndexesListRequestStatus.js +31 -0
- package/serialization/resources/documentIndexes/types/index.d.ts +1 -0
- package/serialization/resources/documentIndexes/types/index.js +17 -0
- package/serialization/resources/index.d.ts +2 -1
- package/serialization/resources/index.js +3 -2
- package/serialization/types/CodeExecutionNodeResultData.d.ts +1 -0
- package/serialization/types/CodeExecutionNodeResultData.js +1 -0
- package/serialization/types/NodeInputCompiledArrayValue.d.ts +1 -1
- package/serialization/types/NodeInputCompiledArrayValue.js +3 -1
- package/serialization/types/NodeOutputCompiledArrayValue.d.ts +1 -1
- package/serialization/types/NodeOutputCompiledArrayValue.js +3 -1
- package/serialization/types/PaginatedDocumentIndexReadList.d.ts +15 -0
- package/serialization/types/PaginatedDocumentIndexReadList.js +47 -0
- package/serialization/types/SubworkflowEnum.d.ts +10 -0
- package/serialization/types/SubworkflowEnum.js +31 -0
- package/serialization/types/SubworkflowNodeResult.d.ts +11 -0
- package/serialization/types/SubworkflowNodeResult.js +31 -0
- package/serialization/types/TerminalNodeArrayResult.d.ts +14 -0
- package/serialization/types/TerminalNodeArrayResult.js +46 -0
- package/serialization/types/TerminalNodeFunctionCallResult.d.ts +14 -0
- package/serialization/types/TerminalNodeFunctionCallResult.js +44 -0
- package/serialization/types/TerminalNodeResultOutput.d.ts +7 -1
- package/serialization/types/TerminalNodeResultOutput.js +2 -0
- package/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/serialization/types/VellumErrorCodeEnum.js +1 -1
- package/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
- package/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/serialization/types/WorkflowNodeResultData.d.ts +4 -1
- package/serialization/types/WorkflowNodeResultData.js +1 -0
- package/serialization/types/WorkflowOutput.d.ts +4 -1
- package/serialization/types/WorkflowOutput.js +1 -0
- package/serialization/types/WorkflowOutputArray.d.ts +14 -0
- package/serialization/types/WorkflowOutputArray.js +44 -0
- package/serialization/types/WorkflowResultEventOutputData.d.ts +7 -1
- package/serialization/types/WorkflowResultEventOutputData.js +2 -0
- package/serialization/types/WorkflowResultEventOutputDataArray.d.ts +17 -0
- package/serialization/types/WorkflowResultEventOutputDataArray.js +49 -0
- package/serialization/types/WorkflowResultEventOutputDataFunctionCall.d.ts +17 -0
- package/serialization/types/WorkflowResultEventOutputDataFunctionCall.js +47 -0
- package/serialization/types/index.d.ts +8 -0
- package/serialization/types/index.js +8 -0
package/Client.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { WorkflowDeployments } from "./api/resources/workflowDeployments/client/
|
|
|
16
16
|
export declare namespace VellumClient {
|
|
17
17
|
interface Options {
|
|
18
18
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
19
|
-
apiKey
|
|
19
|
+
apiKey: core.Supplier<string>;
|
|
20
20
|
}
|
|
21
21
|
interface RequestOptions {
|
|
22
22
|
timeoutInSeconds?: number;
|
|
@@ -25,7 +25,7 @@ export declare namespace VellumClient {
|
|
|
25
25
|
}
|
|
26
26
|
export declare class VellumClient {
|
|
27
27
|
protected readonly _options: VellumClient.Options;
|
|
28
|
-
constructor(_options
|
|
28
|
+
constructor(_options: VellumClient.Options);
|
|
29
29
|
/**
|
|
30
30
|
* Executes a deployed Prompt and returns the result.
|
|
31
31
|
* @throws {@link Vellum.BadRequestError}
|
package/Client.js
CHANGED
|
@@ -55,7 +55,7 @@ const Client_7 = require("./api/resources/sandboxes/client/Client");
|
|
|
55
55
|
const Client_8 = require("./api/resources/testSuites/client/Client");
|
|
56
56
|
const Client_9 = require("./api/resources/workflowDeployments/client/Client");
|
|
57
57
|
class VellumClient {
|
|
58
|
-
constructor(_options
|
|
58
|
+
constructor(_options) {
|
|
59
59
|
this._options = _options;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
@@ -76,7 +76,7 @@ class VellumClient {
|
|
|
76
76
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
77
77
|
"X-Fern-Language": "JavaScript",
|
|
78
78
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
79
|
-
"X-Fern-SDK-Version": "0.3.
|
|
79
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
80
80
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
81
81
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
82
82
|
},
|
|
@@ -139,7 +139,7 @@ class VellumClient {
|
|
|
139
139
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
140
140
|
"X-Fern-Language": "JavaScript",
|
|
141
141
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
142
|
-
"X-Fern-SDK-Version": "0.3.
|
|
142
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
143
143
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
144
144
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
145
145
|
},
|
|
@@ -214,7 +214,7 @@ class VellumClient {
|
|
|
214
214
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
215
215
|
"X-Fern-Language": "JavaScript",
|
|
216
216
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
217
|
-
"X-Fern-SDK-Version": "0.3.
|
|
217
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
218
218
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
219
219
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
220
220
|
},
|
|
@@ -275,7 +275,7 @@ class VellumClient {
|
|
|
275
275
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
276
276
|
"X-Fern-Language": "JavaScript",
|
|
277
277
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
278
|
-
"X-Fern-SDK-Version": "0.3.
|
|
278
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
279
279
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
280
280
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
281
281
|
},
|
|
@@ -358,7 +358,7 @@ class VellumClient {
|
|
|
358
358
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
359
359
|
"X-Fern-Language": "JavaScript",
|
|
360
360
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
361
|
-
"X-Fern-SDK-Version": "0.3.
|
|
361
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
362
362
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
363
363
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
364
364
|
},
|
|
@@ -423,7 +423,7 @@ class VellumClient {
|
|
|
423
423
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
424
424
|
"X-Fern-Language": "JavaScript",
|
|
425
425
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
426
|
-
"X-Fern-SDK-Version": "0.3.
|
|
426
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
427
427
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
428
428
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
429
429
|
},
|
|
@@ -503,7 +503,7 @@ class VellumClient {
|
|
|
503
503
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
504
504
|
"X-Fern-Language": "JavaScript",
|
|
505
505
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
506
|
-
"X-Fern-SDK-Version": "0.3.
|
|
506
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
507
507
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
508
508
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
509
509
|
},
|
|
@@ -574,7 +574,7 @@ class VellumClient {
|
|
|
574
574
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
575
575
|
"X-Fern-Language": "JavaScript",
|
|
576
576
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
577
|
-
"X-Fern-SDK-Version": "0.3.
|
|
577
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
578
578
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
579
579
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
580
580
|
},
|
|
@@ -639,7 +639,7 @@ class VellumClient {
|
|
|
639
639
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
640
640
|
"X-Fern-Language": "JavaScript",
|
|
641
641
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
642
|
-
"X-Fern-SDK-Version": "0.3.
|
|
642
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
643
643
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
644
644
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
645
645
|
},
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../..";
|
|
|
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>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
timeoutInSeconds?: number;
|
|
@@ -16,7 +16,7 @@ export declare namespace Deployments {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class Deployments {
|
|
18
18
|
protected readonly _options: Deployments.Options;
|
|
19
|
-
constructor(_options
|
|
19
|
+
constructor(_options: Deployments.Options);
|
|
20
20
|
list(request?: Vellum.DeploymentsListRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.PaginatedSlimDeploymentReadList>;
|
|
21
21
|
/**
|
|
22
22
|
* Used to retrieve a deployment given its ID or name.
|
|
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors"));
|
|
47
47
|
class Deployments {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
list(request = {}, requestOptions) {
|
|
@@ -73,7 +73,7 @@ class Deployments {
|
|
|
73
73
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
74
74
|
"X-Fern-Language": "JavaScript",
|
|
75
75
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
76
|
-
"X-Fern-SDK-Version": "0.3.
|
|
76
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
77
77
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
78
78
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
79
79
|
},
|
|
@@ -128,7 +128,7 @@ class Deployments {
|
|
|
128
128
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
129
129
|
"X-Fern-Language": "JavaScript",
|
|
130
130
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
131
|
-
"X-Fern-SDK-Version": "0.3.
|
|
131
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
132
132
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
133
133
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
134
134
|
},
|
|
@@ -176,7 +176,7 @@ class Deployments {
|
|
|
176
176
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
177
177
|
"X-Fern-Language": "JavaScript",
|
|
178
178
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
179
|
-
"X-Fern-SDK-Version": "0.3.
|
|
179
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
180
180
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
181
181
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
182
182
|
},
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../..";
|
|
|
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>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
timeoutInSeconds?: number;
|
|
@@ -16,7 +16,14 @@ export declare namespace DocumentIndexes {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class DocumentIndexes {
|
|
18
18
|
protected readonly _options: DocumentIndexes.Options;
|
|
19
|
-
constructor(_options
|
|
19
|
+
constructor(_options: DocumentIndexes.Options);
|
|
20
|
+
/**
|
|
21
|
+
* Used to retrieve a list of Document Indexes.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* await vellum.documentIndexes.list({})
|
|
25
|
+
*/
|
|
26
|
+
list(request?: Vellum.DocumentIndexesListRequest, requestOptions?: DocumentIndexes.RequestOptions): Promise<Vellum.PaginatedDocumentIndexReadList>;
|
|
20
27
|
/**
|
|
21
28
|
* Creates a new document index.
|
|
22
29
|
*
|
|
@@ -41,13 +41,82 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.DocumentIndexes = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
|
43
43
|
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const serializers = __importStar(require("../../../../serialization"));
|
|
45
44
|
const url_join_1 = __importDefault(require("url-join"));
|
|
45
|
+
const serializers = __importStar(require("../../../../serialization"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors"));
|
|
47
47
|
class DocumentIndexes {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Used to retrieve a list of Document Indexes.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await vellum.documentIndexes.list({})
|
|
56
|
+
*/
|
|
57
|
+
list(request = {}, requestOptions) {
|
|
58
|
+
var _a;
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const { limit, offset, ordering, status } = request;
|
|
61
|
+
const _queryParams = {};
|
|
62
|
+
if (limit != null) {
|
|
63
|
+
_queryParams["limit"] = limit.toString();
|
|
64
|
+
}
|
|
65
|
+
if (offset != null) {
|
|
66
|
+
_queryParams["offset"] = offset.toString();
|
|
67
|
+
}
|
|
68
|
+
if (ordering != null) {
|
|
69
|
+
_queryParams["ordering"] = ordering;
|
|
70
|
+
}
|
|
71
|
+
if (status != null) {
|
|
72
|
+
_queryParams["status"] = status;
|
|
73
|
+
}
|
|
74
|
+
const _response = yield core.fetcher({
|
|
75
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
76
|
+
.default, "v1/document-indexes"),
|
|
77
|
+
method: "GET",
|
|
78
|
+
headers: {
|
|
79
|
+
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
80
|
+
"X-Fern-Language": "JavaScript",
|
|
81
|
+
"X-Fern-SDK-Name": "vellum-ai",
|
|
82
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
83
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
|
+
},
|
|
86
|
+
contentType: "application/json",
|
|
87
|
+
queryParameters: _queryParams,
|
|
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
|
+
});
|
|
91
|
+
if (_response.ok) {
|
|
92
|
+
return yield serializers.PaginatedDocumentIndexReadList.parseOrThrow(_response.body, {
|
|
93
|
+
unrecognizedObjectKeys: "passthrough",
|
|
94
|
+
allowUnrecognizedUnionMembers: true,
|
|
95
|
+
allowUnrecognizedEnumValues: true,
|
|
96
|
+
breadcrumbsPrefix: ["response"],
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
if (_response.error.reason === "status-code") {
|
|
100
|
+
throw new errors.VellumError({
|
|
101
|
+
statusCode: _response.error.statusCode,
|
|
102
|
+
body: _response.error.body,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
switch (_response.error.reason) {
|
|
106
|
+
case "non-json":
|
|
107
|
+
throw new errors.VellumError({
|
|
108
|
+
statusCode: _response.error.statusCode,
|
|
109
|
+
body: _response.error.rawBody,
|
|
110
|
+
});
|
|
111
|
+
case "timeout":
|
|
112
|
+
throw new errors.VellumTimeoutError();
|
|
113
|
+
case "unknown":
|
|
114
|
+
throw new errors.VellumError({
|
|
115
|
+
message: _response.error.errorMessage,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
51
120
|
/**
|
|
52
121
|
* Creates a new document index.
|
|
53
122
|
*
|
|
@@ -85,7 +154,7 @@ class DocumentIndexes {
|
|
|
85
154
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
86
155
|
"X-Fern-Language": "JavaScript",
|
|
87
156
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
88
|
-
"X-Fern-SDK-Version": "0.3.
|
|
157
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
89
158
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
90
159
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
91
160
|
},
|
|
@@ -142,7 +211,7 @@ class DocumentIndexes {
|
|
|
142
211
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
143
212
|
"X-Fern-Language": "JavaScript",
|
|
144
213
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
145
|
-
"X-Fern-SDK-Version": "0.3.
|
|
214
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
146
215
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
147
216
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
148
217
|
},
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface DocumentIndexesListRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Number of results to return per page.
|
|
12
|
+
*/
|
|
13
|
+
limit?: number;
|
|
14
|
+
/**
|
|
15
|
+
* The initial index from which to return the results.
|
|
16
|
+
*/
|
|
17
|
+
offset?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Which field to use when ordering the results.
|
|
20
|
+
*/
|
|
21
|
+
ordering?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The current status of the document index
|
|
24
|
+
*
|
|
25
|
+
* - `ACTIVE` - Active
|
|
26
|
+
* - `ARCHIVED` - Archived
|
|
27
|
+
*/
|
|
28
|
+
status?: Vellum.DocumentIndexesListRequestStatus;
|
|
29
|
+
}
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type DocumentIndexesListRequestStatus = "ACTIVE" | "ARCHIVED";
|
|
5
|
+
export declare const DocumentIndexesListRequestStatus: {
|
|
6
|
+
readonly Active: "ACTIVE";
|
|
7
|
+
readonly Archived: "ARCHIVED";
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DocumentIndexesListRequestStatus = void 0;
|
|
7
|
+
exports.DocumentIndexesListRequestStatus = {
|
|
8
|
+
Active: "ACTIVE",
|
|
9
|
+
Archived: "ARCHIVED",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DocumentIndexesListRequestStatus";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DocumentIndexesListRequestStatus"), exports);
|
|
@@ -9,7 +9,7 @@ import * as fs from "fs";
|
|
|
9
9
|
export declare namespace Documents {
|
|
10
10
|
interface Options {
|
|
11
11
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
12
|
-
apiKey
|
|
12
|
+
apiKey: core.Supplier<string>;
|
|
13
13
|
}
|
|
14
14
|
interface RequestOptions {
|
|
15
15
|
timeoutInSeconds?: number;
|
|
@@ -18,7 +18,7 @@ export declare namespace Documents {
|
|
|
18
18
|
}
|
|
19
19
|
export declare class Documents {
|
|
20
20
|
protected readonly _options: Documents.Options;
|
|
21
|
-
constructor(_options
|
|
21
|
+
constructor(_options: Documents.Options);
|
|
22
22
|
/**
|
|
23
23
|
* Used to list documents. Optionally filter on supported fields.
|
|
24
24
|
*
|
|
@@ -47,7 +47,7 @@ const serializers = __importStar(require("../../../../serialization"));
|
|
|
47
47
|
const errors = __importStar(require("../../../../errors"));
|
|
48
48
|
const form_data_1 = __importDefault(require("form-data"));
|
|
49
49
|
class Documents {
|
|
50
|
-
constructor(_options
|
|
50
|
+
constructor(_options) {
|
|
51
51
|
this._options = _options;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
@@ -81,7 +81,7 @@ class Documents {
|
|
|
81
81
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
82
82
|
"X-Fern-Language": "JavaScript",
|
|
83
83
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
84
|
-
"X-Fern-SDK-Version": "0.3.
|
|
84
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
85
85
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
86
86
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
87
87
|
},
|
|
@@ -130,7 +130,7 @@ class Documents {
|
|
|
130
130
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
131
131
|
"X-Fern-Language": "JavaScript",
|
|
132
132
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
133
|
-
"X-Fern-SDK-Version": "0.3.
|
|
133
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
134
134
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
135
135
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
136
136
|
},
|
|
@@ -179,7 +179,7 @@ class Documents {
|
|
|
179
179
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
180
180
|
"X-Fern-Language": "JavaScript",
|
|
181
181
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
182
|
-
"X-Fern-SDK-Version": "0.3.
|
|
182
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
183
183
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
184
184
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
185
185
|
},
|
|
@@ -265,7 +265,7 @@ class Documents {
|
|
|
265
265
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
266
266
|
"X-Fern-Language": "JavaScript",
|
|
267
267
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
268
|
-
"X-Fern-SDK-Version": "0.3.
|
|
268
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
269
269
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
270
270
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
271
271
|
},
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../..";
|
|
|
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>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
timeoutInSeconds?: number;
|
|
@@ -16,7 +16,7 @@ export declare namespace FolderEntities {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class FolderEntities {
|
|
18
18
|
protected readonly _options: FolderEntities.Options;
|
|
19
|
-
constructor(_options
|
|
19
|
+
constructor(_options: FolderEntities.Options);
|
|
20
20
|
/**
|
|
21
21
|
* Add an entity to a specific folder or root directory.
|
|
22
22
|
*
|
|
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors"));
|
|
47
47
|
class FolderEntities {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -69,7 +69,7 @@ class FolderEntities {
|
|
|
69
69
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
70
70
|
"X-Fern-Language": "JavaScript",
|
|
71
71
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
72
|
-
"X-Fern-SDK-Version": "0.3.
|
|
72
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
73
73
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
74
74
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
75
|
},
|
package/api/resources/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export * as deployments from "./deployments";
|
|
2
2
|
export * from "./deployments/types";
|
|
3
|
+
export * as documentIndexes from "./documentIndexes";
|
|
4
|
+
export * from "./documentIndexes/types";
|
|
3
5
|
export * as workflowDeployments from "./workflowDeployments";
|
|
4
6
|
export * from "./workflowDeployments/types";
|
|
5
|
-
export * as documentIndexes from "./documentIndexes";
|
|
6
7
|
export * as documents from "./documents";
|
|
7
8
|
export * as folderEntities from "./folderEntities";
|
|
8
9
|
export * as modelVersions from "./modelVersions";
|
package/api/resources/index.js
CHANGED
|
@@ -26,12 +26,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.modelVersions = exports.folderEntities = exports.documents = exports.
|
|
29
|
+
exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.modelVersions = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
|
|
30
30
|
exports.deployments = __importStar(require("./deployments"));
|
|
31
31
|
__exportStar(require("./deployments/types"), exports);
|
|
32
|
+
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
33
|
+
__exportStar(require("./documentIndexes/types"), exports);
|
|
32
34
|
exports.workflowDeployments = __importStar(require("./workflowDeployments"));
|
|
33
35
|
__exportStar(require("./workflowDeployments/types"), exports);
|
|
34
|
-
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
35
36
|
exports.documents = __importStar(require("./documents"));
|
|
36
37
|
exports.folderEntities = __importStar(require("./folderEntities"));
|
|
37
38
|
exports.modelVersions = __importStar(require("./modelVersions"));
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../..";
|
|
|
7
7
|
export declare namespace ModelVersions {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
timeoutInSeconds?: number;
|
|
@@ -16,7 +16,7 @@ export declare namespace ModelVersions {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class ModelVersions {
|
|
18
18
|
protected readonly _options: ModelVersions.Options;
|
|
19
|
-
constructor(_options
|
|
19
|
+
constructor(_options: ModelVersions.Options);
|
|
20
20
|
/**
|
|
21
21
|
* Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
|
|
22
22
|
*
|
|
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors"));
|
|
47
47
|
class ModelVersions {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -65,7 +65,7 @@ class ModelVersions {
|
|
|
65
65
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
68
|
-
"X-Fern-SDK-Version": "0.3.
|
|
68
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
69
69
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
70
70
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
71
71
|
},
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../..";
|
|
|
7
7
|
export declare namespace RegisteredPrompts {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
timeoutInSeconds?: number;
|
|
@@ -16,7 +16,7 @@ export declare namespace RegisteredPrompts {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class RegisteredPrompts {
|
|
18
18
|
protected readonly _options: RegisteredPrompts.Options;
|
|
19
|
-
constructor(_options
|
|
19
|
+
constructor(_options: RegisteredPrompts.Options);
|
|
20
20
|
/**
|
|
21
21
|
* Registers a prompt within Vellum and creates associated Vellum entities. Intended to be used by integration
|
|
22
22
|
* partners, not directly by Vellum users.
|
|
@@ -46,7 +46,7 @@ const serializers = __importStar(require("../../../../serialization"));
|
|
|
46
46
|
const url_join_1 = __importDefault(require("url-join"));
|
|
47
47
|
const errors = __importStar(require("../../../../errors"));
|
|
48
48
|
class RegisteredPrompts {
|
|
49
|
-
constructor(_options
|
|
49
|
+
constructor(_options) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -96,7 +96,7 @@ class RegisteredPrompts {
|
|
|
96
96
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
97
97
|
"X-Fern-Language": "JavaScript",
|
|
98
98
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
99
|
-
"X-Fern-SDK-Version": "0.3.
|
|
99
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
100
100
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
101
101
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
102
102
|
},
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../..";
|
|
|
7
7
|
export declare namespace Sandboxes {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
timeoutInSeconds?: number;
|
|
@@ -16,7 +16,7 @@ export declare namespace Sandboxes {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class Sandboxes {
|
|
18
18
|
protected readonly _options: Sandboxes.Options;
|
|
19
|
-
constructor(_options
|
|
19
|
+
constructor(_options: Sandboxes.Options);
|
|
20
20
|
/**
|
|
21
21
|
* Upserts a new scenario for a sandbox, keying off of the optionally provided scenario id.
|
|
22
22
|
*
|
|
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors"));
|
|
47
47
|
class Sandboxes {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -84,7 +84,7 @@ class Sandboxes {
|
|
|
84
84
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
85
85
|
"X-Fern-Language": "JavaScript",
|
|
86
86
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
87
|
-
"X-Fern-SDK-Version": "0.3.
|
|
87
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
88
88
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
89
89
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
90
90
|
},
|
|
@@ -141,7 +141,7 @@ class Sandboxes {
|
|
|
141
141
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
142
142
|
"X-Fern-Language": "JavaScript",
|
|
143
143
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
144
|
-
"X-Fern-SDK-Version": "0.3.
|
|
144
|
+
"X-Fern-SDK-Version": "0.3.10",
|
|
145
145
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
146
146
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
147
147
|
},
|