vellum-ai 0.3.7 → 0.3.9
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/client/requests/ExecutePromptRequest.d.ts +1 -0
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -0
- package/api/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
- package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
- package/api/resources/deployments/client/Client.d.ts +2 -2
- package/api/resources/deployments/client/Client.js +4 -4
- package/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +1 -1
- package/api/resources/documentIndexes/client/Client.d.ts +2 -2
- package/api/resources/documentIndexes/client/Client.js +3 -3
- 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/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 +9 -2
- package/api/resources/workflowDeployments/client/Client.js +56 -2
- package/api/resources/workflowDeployments/client/requests/WorkflowDeploymentsListRequest.d.ts +1 -4
- package/api/types/ArrayEnum.d.ts +4 -0
- package/api/types/ArrayEnum.js +5 -0
- package/api/types/ArrayVariableValueItem.d.ts +28 -0
- package/api/types/ArrayVariableValueItem.js +5 -0
- package/api/types/ChatHistoryVariableValue.d.ts +7 -0
- package/api/types/ChatHistoryVariableValue.js +5 -0
- package/api/types/CodeExecutionNodeResultData.d.ts +1 -0
- package/api/types/NodeInputCompiledArrayValue.d.ts +9 -0
- package/api/types/NodeInputCompiledArrayValue.js +5 -0
- package/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/api/types/NodeOutputCompiledArrayValue.d.ts +8 -0
- package/api/types/NodeOutputCompiledArrayValue.js +5 -0
- package/api/types/NodeOutputCompiledFunctionValue.d.ts +8 -0
- package/api/types/NodeOutputCompiledFunctionValue.js +5 -0
- package/api/types/NodeOutputCompiledValue.d.ts +7 -1
- package/api/types/NumberVariableValue.d.ts +6 -0
- package/api/types/NumberVariableValue.js +5 -0
- package/api/types/PromptNodeResultData.d.ts +1 -0
- package/api/types/SearchResultsVariableValue.d.ts +7 -0
- package/api/types/SearchResultsVariableValue.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/WorkflowDeploymentRead.d.ts +32 -0
- package/api/types/WorkflowDeploymentRead.js +5 -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/WorkflowRequestChatHistoryInputRequest.d.ts +3 -0
- package/api/types/WorkflowRequestJsonInputRequest.d.ts +3 -0
- package/api/types/WorkflowRequestNumberInputRequest.d.ts +3 -0
- package/api/types/WorkflowRequestStringInputRequest.d.ts +3 -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 +16 -0
- package/api/types/index.js +16 -0
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +10 -10
- package/dist/api/client/requests/ExecutePromptRequest.d.ts +1 -0
- package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -0
- package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +1 -1
- package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
- 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/deployments/client/requests/DeploymentsListRequest.d.ts +1 -1
- package/dist/api/resources/documentIndexes/client/Client.d.ts +2 -2
- package/dist/api/resources/documentIndexes/client/Client.js +3 -3
- 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/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 +9 -2
- package/dist/api/resources/workflowDeployments/client/Client.js +56 -2
- package/dist/api/resources/workflowDeployments/client/requests/WorkflowDeploymentsListRequest.d.ts +1 -4
- package/dist/api/types/ArrayEnum.d.ts +4 -0
- package/dist/api/types/ArrayEnum.js +5 -0
- package/dist/api/types/ArrayVariableValueItem.d.ts +28 -0
- package/dist/api/types/ArrayVariableValueItem.js +5 -0
- package/dist/api/types/ChatHistoryVariableValue.d.ts +7 -0
- package/dist/api/types/ChatHistoryVariableValue.js +5 -0
- package/dist/api/types/CodeExecutionNodeResultData.d.ts +1 -0
- package/dist/api/types/NodeInputCompiledArrayValue.d.ts +9 -0
- package/dist/api/types/NodeInputCompiledArrayValue.js +5 -0
- package/dist/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/dist/api/types/NodeOutputCompiledArrayValue.d.ts +8 -0
- package/dist/api/types/NodeOutputCompiledArrayValue.js +5 -0
- package/dist/api/types/NodeOutputCompiledFunctionValue.d.ts +8 -0
- package/dist/api/types/NodeOutputCompiledFunctionValue.js +5 -0
- package/dist/api/types/NodeOutputCompiledValue.d.ts +7 -1
- package/dist/api/types/NumberVariableValue.d.ts +6 -0
- package/dist/api/types/NumberVariableValue.js +5 -0
- package/dist/api/types/PromptNodeResultData.d.ts +1 -0
- package/dist/api/types/SearchResultsVariableValue.d.ts +7 -0
- package/dist/api/types/SearchResultsVariableValue.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/WorkflowDeploymentRead.d.ts +32 -0
- package/dist/api/types/WorkflowDeploymentRead.js +5 -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/WorkflowRequestChatHistoryInputRequest.d.ts +3 -0
- package/dist/api/types/WorkflowRequestJsonInputRequest.d.ts +3 -0
- package/dist/api/types/WorkflowRequestNumberInputRequest.d.ts +3 -0
- package/dist/api/types/WorkflowRequestStringInputRequest.d.ts +3 -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 +16 -0
- package/dist/api/types/index.js +16 -0
- package/dist/serialization/types/ArrayEnum.d.ts +10 -0
- package/dist/serialization/types/ArrayEnum.js +31 -0
- package/dist/serialization/types/ArrayVariableValueItem.d.ts +31 -0
- package/dist/serialization/types/ArrayVariableValueItem.js +53 -0
- package/dist/serialization/types/ChatHistoryVariableValue.d.ts +12 -0
- package/dist/serialization/types/ChatHistoryVariableValue.js +44 -0
- package/dist/serialization/types/CodeExecutionNodeResultData.d.ts +1 -0
- package/dist/serialization/types/CodeExecutionNodeResultData.js +1 -0
- package/dist/serialization/types/NodeInputCompiledArrayValue.d.ts +14 -0
- package/dist/serialization/types/NodeInputCompiledArrayValue.js +46 -0
- package/dist/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/dist/serialization/types/NodeInputVariableCompiledValue.js +1 -0
- package/dist/serialization/types/NodeOutputCompiledArrayValue.d.ts +13 -0
- package/dist/serialization/types/NodeOutputCompiledArrayValue.js +45 -0
- package/dist/serialization/types/NodeOutputCompiledFunctionValue.d.ts +13 -0
- package/dist/serialization/types/NodeOutputCompiledFunctionValue.js +43 -0
- package/dist/serialization/types/NodeOutputCompiledValue.d.ts +7 -1
- package/dist/serialization/types/NodeOutputCompiledValue.js +2 -0
- package/dist/serialization/types/NumberVariableValue.d.ts +12 -0
- package/dist/serialization/types/NumberVariableValue.js +33 -0
- package/dist/serialization/types/PromptNodeResultData.d.ts +1 -0
- package/dist/serialization/types/PromptNodeResultData.js +1 -0
- package/dist/serialization/types/SearchResultsVariableValue.d.ts +12 -0
- package/dist/serialization/types/SearchResultsVariableValue.js +44 -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/WorkflowDeploymentRead.d.ts +20 -0
- package/dist/serialization/types/WorkflowDeploymentRead.js +50 -0
- 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 +16 -0
- package/dist/serialization/types/index.js +16 -0
- package/package.json +1 -1
- package/serialization/types/ArrayEnum.d.ts +10 -0
- package/serialization/types/ArrayEnum.js +31 -0
- package/serialization/types/ArrayVariableValueItem.d.ts +31 -0
- package/serialization/types/ArrayVariableValueItem.js +53 -0
- package/serialization/types/ChatHistoryVariableValue.d.ts +12 -0
- package/serialization/types/ChatHistoryVariableValue.js +44 -0
- package/serialization/types/CodeExecutionNodeResultData.d.ts +1 -0
- package/serialization/types/CodeExecutionNodeResultData.js +1 -0
- package/serialization/types/NodeInputCompiledArrayValue.d.ts +14 -0
- package/serialization/types/NodeInputCompiledArrayValue.js +46 -0
- package/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/serialization/types/NodeInputVariableCompiledValue.js +1 -0
- package/serialization/types/NodeOutputCompiledArrayValue.d.ts +13 -0
- package/serialization/types/NodeOutputCompiledArrayValue.js +45 -0
- package/serialization/types/NodeOutputCompiledFunctionValue.d.ts +13 -0
- package/serialization/types/NodeOutputCompiledFunctionValue.js +43 -0
- package/serialization/types/NodeOutputCompiledValue.d.ts +7 -1
- package/serialization/types/NodeOutputCompiledValue.js +2 -0
- package/serialization/types/NumberVariableValue.d.ts +12 -0
- package/serialization/types/NumberVariableValue.js +33 -0
- package/serialization/types/PromptNodeResultData.d.ts +1 -0
- package/serialization/types/PromptNodeResultData.js +1 -0
- package/serialization/types/SearchResultsVariableValue.d.ts +12 -0
- package/serialization/types/SearchResultsVariableValue.js +44 -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/WorkflowDeploymentRead.d.ts +20 -0
- package/serialization/types/WorkflowDeploymentRead.js +50 -0
- 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 +16 -0
- package/serialization/types/index.js +16 -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.9",
|
|
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.9",
|
|
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.9",
|
|
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.9",
|
|
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.9",
|
|
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.9",
|
|
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.9",
|
|
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.9",
|
|
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.9",
|
|
643
643
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
644
644
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
645
645
|
},
|
|
@@ -11,6 +11,7 @@ export interface ExecutePromptRequest {
|
|
|
11
11
|
promptDeploymentName?: string;
|
|
12
12
|
/** Optionally specify a release tag if you want to pin to a specific release of the Prompt Deployment */
|
|
13
13
|
releaseTag?: string;
|
|
14
|
+
/** "Optionally include a unique identifier for tracking purposes. Must be unique for a given prompt deployment. */
|
|
14
15
|
externalId?: string;
|
|
15
16
|
/** The name of the Prompt Deployment. Must provide either this or prompt_deployment_id. */
|
|
16
17
|
expandMeta?: Vellum.PromptDeploymentExpandMetaRequestRequest;
|
|
@@ -11,6 +11,7 @@ export interface ExecutePromptStreamRequest {
|
|
|
11
11
|
promptDeploymentName?: string;
|
|
12
12
|
/** Optionally specify a release tag if you want to pin to a specific release of the Prompt Deployment */
|
|
13
13
|
releaseTag?: string;
|
|
14
|
+
/** "Optionally include a unique identifier for tracking purposes. Must be unique for a given prompt deployment. */
|
|
14
15
|
externalId?: string;
|
|
15
16
|
/** The name of the Prompt Deployment. Must provide either this or prompt_deployment_id. */
|
|
16
17
|
expandMeta?: Vellum.PromptDeploymentExpandMetaRequestRequest;
|
|
@@ -11,6 +11,6 @@ export interface ExecuteWorkflowRequest {
|
|
|
11
11
|
releaseTag?: string;
|
|
12
12
|
/** The list of inputs defined in the Workflow's Deployment with their corresponding values. */
|
|
13
13
|
inputs: Vellum.WorkflowRequestInputRequest[];
|
|
14
|
-
/** Optionally include a unique identifier for monitoring purposes. */
|
|
14
|
+
/** Optionally include a unique identifier for monitoring purposes. Must be unique for a given workflow deployment. */
|
|
15
15
|
externalId?: string;
|
|
16
16
|
}
|
|
@@ -11,7 +11,7 @@ export interface ExecuteWorkflowStreamRequest {
|
|
|
11
11
|
releaseTag?: string;
|
|
12
12
|
/** The list of inputs defined in the Workflow's deployment with their corresponding values. */
|
|
13
13
|
inputs: Vellum.WorkflowRequestInputRequest[];
|
|
14
|
-
/** Optionally include a unique identifier for tracking purposes. */
|
|
14
|
+
/** Optionally include a unique identifier for tracking purposes. Must be unique for a given workflow deployment. */
|
|
15
15
|
externalId?: string;
|
|
16
16
|
/** Optionally specify which events you want to receive. Defaults to only WORKFLOW events. Note that the schema of non-WORKFLOW events is unstable and should be used with caution. */
|
|
17
17
|
eventTypes?: Vellum.WorkflowExecutionEventType[];
|
|
@@ -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.9",
|
|
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.9",
|
|
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.9",
|
|
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,7 @@ 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
20
|
/**
|
|
21
21
|
* Creates a new document index.
|
|
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 DocumentIndexes {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -85,7 +85,7 @@ class DocumentIndexes {
|
|
|
85
85
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
86
86
|
"X-Fern-Language": "JavaScript",
|
|
87
87
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
88
|
-
"X-Fern-SDK-Version": "0.3.
|
|
88
|
+
"X-Fern-SDK-Version": "0.3.9",
|
|
89
89
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
90
90
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
91
91
|
},
|
|
@@ -142,7 +142,7 @@ class DocumentIndexes {
|
|
|
142
142
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
143
143
|
"X-Fern-Language": "JavaScript",
|
|
144
144
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
145
|
-
"X-Fern-SDK-Version": "0.3.
|
|
145
|
+
"X-Fern-SDK-Version": "0.3.9",
|
|
146
146
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
147
147
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
148
148
|
},
|
|
@@ -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.9",
|
|
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.9",
|
|
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.9",
|
|
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.9",
|
|
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.9",
|
|
73
73
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
74
74
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
75
|
},
|
|
@@ -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.9",
|
|
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.9",
|
|
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.9",
|
|
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.9",
|
|
145
145
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
146
146
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
147
147
|
},
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../..";
|
|
|
7
7
|
export declare namespace TestSuites {
|
|
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 TestSuites {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class TestSuites {
|
|
18
18
|
protected readonly _options: TestSuites.Options;
|
|
19
|
-
constructor(_options
|
|
19
|
+
constructor(_options: TestSuites.Options);
|
|
20
20
|
/**
|
|
21
21
|
* Upserts a new test case for a test suite, keying off of the optionally provided test case 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 TestSuites {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -74,7 +74,7 @@ class TestSuites {
|
|
|
74
74
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
77
|
-
"X-Fern-SDK-Version": "0.3.
|
|
77
|
+
"X-Fern-SDK-Version": "0.3.9",
|
|
78
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
80
80
|
},
|
|
@@ -131,7 +131,7 @@ class TestSuites {
|
|
|
131
131
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
132
132
|
"X-Fern-Language": "JavaScript",
|
|
133
133
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
134
|
-
"X-Fern-SDK-Version": "0.3.
|
|
134
|
+
"X-Fern-SDK-Version": "0.3.9",
|
|
135
135
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
136
136
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
137
137
|
},
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../..";
|
|
|
7
7
|
export declare namespace WorkflowDeployments {
|
|
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,6 +16,13 @@ export declare namespace WorkflowDeployments {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class WorkflowDeployments {
|
|
18
18
|
protected readonly _options: WorkflowDeployments.Options;
|
|
19
|
-
constructor(_options
|
|
19
|
+
constructor(_options: WorkflowDeployments.Options);
|
|
20
20
|
list(request?: Vellum.WorkflowDeploymentsListRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.PaginatedSlimWorkflowDeploymentList>;
|
|
21
|
+
/**
|
|
22
|
+
* Used to retrieve a workflow deployment given its ID or name.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await vellum.workflowDeployments.retrieve("id")
|
|
26
|
+
*/
|
|
27
|
+
retrieve(id: string, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
|
|
21
28
|
}
|
|
@@ -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 WorkflowDeployments {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
list(request = {}, requestOptions) {
|
|
@@ -73,7 +73,7 @@ class WorkflowDeployments {
|
|
|
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.9",
|
|
77
77
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
78
78
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
79
79
|
},
|
|
@@ -111,5 +111,59 @@ class WorkflowDeployments {
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Used to retrieve a workflow deployment given its ID or name.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* await vellum.workflowDeployments.retrieve("id")
|
|
119
|
+
*/
|
|
120
|
+
retrieve(id, requestOptions) {
|
|
121
|
+
var _a;
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const _response = yield core.fetcher({
|
|
124
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
125
|
+
.default, `v1/workflow-deployments/${id}`),
|
|
126
|
+
method: "GET",
|
|
127
|
+
headers: {
|
|
128
|
+
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
129
|
+
"X-Fern-Language": "JavaScript",
|
|
130
|
+
"X-Fern-SDK-Name": "vellum-ai",
|
|
131
|
+
"X-Fern-SDK-Version": "0.3.9",
|
|
132
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
133
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
134
|
+
},
|
|
135
|
+
contentType: "application/json",
|
|
136
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
137
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
138
|
+
});
|
|
139
|
+
if (_response.ok) {
|
|
140
|
+
return yield serializers.WorkflowDeploymentRead.parseOrThrow(_response.body, {
|
|
141
|
+
unrecognizedObjectKeys: "passthrough",
|
|
142
|
+
allowUnrecognizedUnionMembers: true,
|
|
143
|
+
allowUnrecognizedEnumValues: true,
|
|
144
|
+
breadcrumbsPrefix: ["response"],
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
if (_response.error.reason === "status-code") {
|
|
148
|
+
throw new errors.VellumError({
|
|
149
|
+
statusCode: _response.error.statusCode,
|
|
150
|
+
body: _response.error.body,
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
switch (_response.error.reason) {
|
|
154
|
+
case "non-json":
|
|
155
|
+
throw new errors.VellumError({
|
|
156
|
+
statusCode: _response.error.statusCode,
|
|
157
|
+
body: _response.error.rawBody,
|
|
158
|
+
});
|
|
159
|
+
case "timeout":
|
|
160
|
+
throw new errors.VellumTimeoutError();
|
|
161
|
+
case "unknown":
|
|
162
|
+
throw new errors.VellumError({
|
|
163
|
+
message: _response.error.errorMessage,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
}
|
|
114
168
|
}
|
|
115
169
|
exports.WorkflowDeployments = WorkflowDeployments;
|
package/api/resources/workflowDeployments/client/requests/WorkflowDeploymentsListRequest.d.ts
CHANGED
|
@@ -20,10 +20,7 @@ export interface WorkflowDeploymentsListRequest {
|
|
|
20
20
|
*/
|
|
21
21
|
ordering?: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* - `ACTIVE` - Active
|
|
26
|
-
* - `ARCHIVED` - Archived
|
|
23
|
+
* status
|
|
27
24
|
*/
|
|
28
25
|
status?: Vellum.WorkflowDeploymentsListRequestStatus;
|
|
29
26
|
}
|