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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.NodeOutputCompiledArrayValue = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.NodeOutputCompiledArrayValue = core.serialization.object({
|
|
41
|
+
nodeOutputId: core.serialization.property("node_output_id", core.serialization.string()),
|
|
42
|
+
value: core.serialization
|
|
43
|
+
.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ArrayVariableValueItem; })))
|
|
44
|
+
.optional(),
|
|
45
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const NodeOutputCompiledFunctionValue: core.serialization.ObjectSchema<serializers.NodeOutputCompiledFunctionValue.Raw, Vellum.NodeOutputCompiledFunctionValue>;
|
|
8
|
+
export declare namespace NodeOutputCompiledFunctionValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
node_output_id: string;
|
|
11
|
+
value?: serializers.FunctionCall.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.NodeOutputCompiledFunctionValue = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.NodeOutputCompiledFunctionValue = core.serialization.object({
|
|
41
|
+
nodeOutputId: core.serialization.property("node_output_id", core.serialization.string()),
|
|
42
|
+
value: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FunctionCall; })).optional(),
|
|
43
|
+
});
|
|
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const NodeOutputCompiledValue: core.serialization.Schema<serializers.NodeOutputCompiledValue.Raw, Vellum.NodeOutputCompiledValue>;
|
|
8
8
|
export declare namespace NodeOutputCompiledValue {
|
|
9
|
-
type Raw = NodeOutputCompiledValue.String | NodeOutputCompiledValue.Number | NodeOutputCompiledValue.Json | NodeOutputCompiledValue.ChatHistory | NodeOutputCompiledValue.SearchResults | NodeOutputCompiledValue.Error;
|
|
9
|
+
type Raw = NodeOutputCompiledValue.String | NodeOutputCompiledValue.Number | NodeOutputCompiledValue.Json | NodeOutputCompiledValue.ChatHistory | NodeOutputCompiledValue.SearchResults | NodeOutputCompiledValue.Error | NodeOutputCompiledValue.Array | NodeOutputCompiledValue.FunctionCall;
|
|
10
10
|
interface String extends serializers.NodeOutputCompiledStringValue.Raw {
|
|
11
11
|
type: "STRING";
|
|
12
12
|
}
|
|
@@ -25,4 +25,10 @@ export declare namespace NodeOutputCompiledValue {
|
|
|
25
25
|
interface Error extends serializers.NodeOutputCompiledErrorValue.Raw {
|
|
26
26
|
type: "ERROR";
|
|
27
27
|
}
|
|
28
|
+
interface Array extends serializers.NodeOutputCompiledArrayValue.Raw {
|
|
29
|
+
type: "ARRAY";
|
|
30
|
+
}
|
|
31
|
+
interface FunctionCall extends serializers.NodeOutputCompiledFunctionValue.Raw {
|
|
32
|
+
type: "FUNCTION_CALL";
|
|
33
|
+
}
|
|
28
34
|
}
|
|
@@ -45,6 +45,8 @@ exports.NodeOutputCompiledValue = core.serialization
|
|
|
45
45
|
CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeOutputCompiledChatHistoryValue; })),
|
|
46
46
|
SEARCH_RESULTS: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeOutputCompiledSearchResultsValue; })),
|
|
47
47
|
ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeOutputCompiledErrorValue; })),
|
|
48
|
+
ARRAY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeOutputCompiledArrayValue; })),
|
|
49
|
+
FUNCTION_CALL: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeOutputCompiledFunctionValue; })),
|
|
48
50
|
})
|
|
49
51
|
.transform({
|
|
50
52
|
transform: (value) => value,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const NumberVariableValue: core.serialization.ObjectSchema<serializers.NumberVariableValue.Raw, Vellum.NumberVariableValue>;
|
|
8
|
+
export declare namespace NumberVariableValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value?: number | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.NumberVariableValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.NumberVariableValue = core.serialization.object({
|
|
32
|
+
value: core.serialization.number().optional(),
|
|
33
|
+
});
|
|
@@ -30,6 +30,7 @@ exports.PromptNodeResultData = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.PromptNodeResultData = core.serialization.object({
|
|
32
32
|
outputId: core.serialization.property("output_id", core.serialization.string()),
|
|
33
|
+
arrayOutputId: core.serialization.property("array_output_id", core.serialization.string().optional()),
|
|
33
34
|
text: core.serialization.string().optional(),
|
|
34
35
|
delta: core.serialization.string().optional(),
|
|
35
36
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const SearchResultsVariableValue: core.serialization.ObjectSchema<serializers.SearchResultsVariableValue.Raw, Vellum.SearchResultsVariableValue>;
|
|
8
|
+
export declare namespace SearchResultsVariableValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value?: serializers.SearchResult.Raw[] | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.SearchResultsVariableValue = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.SearchResultsVariableValue = core.serialization.object({
|
|
41
|
+
value: core.serialization
|
|
42
|
+
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResult; })))
|
|
43
|
+
.optional(),
|
|
44
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const SubworkflowEnum: core.serialization.Schema<serializers.SubworkflowEnum.Raw, Vellum.SubworkflowEnum>;
|
|
8
|
+
export declare namespace SubworkflowEnum {
|
|
9
|
+
type Raw = "SUBWORKFLOW";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.SubworkflowEnum = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.SubworkflowEnum = core.serialization.stringLiteral("SUBWORKFLOW");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const SubworkflowNodeResult: core.serialization.ObjectSchema<serializers.SubworkflowNodeResult.Raw, Vellum.SubworkflowNodeResult>;
|
|
8
|
+
export declare namespace SubworkflowNodeResult {
|
|
9
|
+
interface Raw {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.SubworkflowNodeResult = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.SubworkflowNodeResult = core.serialization.object({});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TerminalNodeArrayResult: core.serialization.ObjectSchema<serializers.TerminalNodeArrayResult.Raw, Vellum.TerminalNodeArrayResult>;
|
|
8
|
+
export declare namespace TerminalNodeArrayResult {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id?: string | null;
|
|
11
|
+
name: string;
|
|
12
|
+
value?: serializers.ArrayVariableValueItem.Raw[] | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.TerminalNodeArrayResult = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.TerminalNodeArrayResult = core.serialization.object({
|
|
41
|
+
id: core.serialization.string().optional(),
|
|
42
|
+
name: core.serialization.string(),
|
|
43
|
+
value: core.serialization
|
|
44
|
+
.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ArrayVariableValueItem; })))
|
|
45
|
+
.optional(),
|
|
46
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TerminalNodeFunctionCallResult: core.serialization.ObjectSchema<serializers.TerminalNodeFunctionCallResult.Raw, Vellum.TerminalNodeFunctionCallResult>;
|
|
8
|
+
export declare namespace TerminalNodeFunctionCallResult {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id?: string | null;
|
|
11
|
+
name: string;
|
|
12
|
+
value?: serializers.FunctionCall.Raw | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.TerminalNodeFunctionCallResult = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.TerminalNodeFunctionCallResult = core.serialization.object({
|
|
41
|
+
id: core.serialization.string().optional(),
|
|
42
|
+
name: core.serialization.string(),
|
|
43
|
+
value: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FunctionCall; })).optional(),
|
|
44
|
+
});
|
|
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TerminalNodeResultOutput: core.serialization.Schema<serializers.TerminalNodeResultOutput.Raw, Vellum.TerminalNodeResultOutput>;
|
|
8
8
|
export declare namespace TerminalNodeResultOutput {
|
|
9
|
-
type Raw = TerminalNodeResultOutput.String | TerminalNodeResultOutput.Number | TerminalNodeResultOutput.Json | TerminalNodeResultOutput.ChatHistory | TerminalNodeResultOutput.SearchResults | TerminalNodeResultOutput.Error;
|
|
9
|
+
type Raw = TerminalNodeResultOutput.String | TerminalNodeResultOutput.Number | TerminalNodeResultOutput.Json | TerminalNodeResultOutput.ChatHistory | TerminalNodeResultOutput.SearchResults | TerminalNodeResultOutput.Array | TerminalNodeResultOutput.FunctionCall | TerminalNodeResultOutput.Error;
|
|
10
10
|
interface String extends serializers.TerminalNodeStringResult.Raw {
|
|
11
11
|
type: "STRING";
|
|
12
12
|
}
|
|
@@ -22,6 +22,12 @@ export declare namespace TerminalNodeResultOutput {
|
|
|
22
22
|
interface SearchResults extends serializers.TerminalNodeSearchResultsResult.Raw {
|
|
23
23
|
type: "SEARCH_RESULTS";
|
|
24
24
|
}
|
|
25
|
+
interface Array extends serializers.TerminalNodeArrayResult.Raw {
|
|
26
|
+
type: "ARRAY";
|
|
27
|
+
}
|
|
28
|
+
interface FunctionCall extends serializers.TerminalNodeFunctionCallResult.Raw {
|
|
29
|
+
type: "FUNCTION_CALL";
|
|
30
|
+
}
|
|
25
31
|
interface Error extends serializers.TerminalNodeErrorResult.Raw {
|
|
26
32
|
type: "ERROR";
|
|
27
33
|
}
|
|
@@ -44,6 +44,8 @@ exports.TerminalNodeResultOutput = core.serialization
|
|
|
44
44
|
JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeJsonResult; })),
|
|
45
45
|
CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeChatHistoryResult; })),
|
|
46
46
|
SEARCH_RESULTS: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeSearchResultsResult; })),
|
|
47
|
+
ARRAY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeArrayResult; })),
|
|
48
|
+
FUNCTION_CALL: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeFunctionCallResult; })),
|
|
47
49
|
ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeErrorResult; })),
|
|
48
50
|
})
|
|
49
51
|
.transform({
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const VellumErrorCodeEnum: core.serialization.Schema<serializers.VellumErrorCodeEnum.Raw, Vellum.VellumErrorCodeEnum>;
|
|
8
8
|
export declare namespace VellumErrorCodeEnum {
|
|
9
|
-
type Raw = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR";
|
|
9
|
+
type Raw = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.VellumErrorCodeEnum = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.VellumErrorCodeEnum = core.serialization.enum_(["INVALID_REQUEST", "PROVIDER_ERROR", "INTERNAL_SERVER_ERROR"]);
|
|
31
|
+
exports.VellumErrorCodeEnum = core.serialization.enum_(["INVALID_REQUEST", "PROVIDER_ERROR", "INTERNAL_SERVER_ERROR", "USER_DEFINED_ERROR"]);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WorkflowDeploymentRead: core.serialization.ObjectSchema<serializers.WorkflowDeploymentRead.Raw, Vellum.WorkflowDeploymentRead>;
|
|
8
|
+
export declare namespace WorkflowDeploymentRead {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
label: string;
|
|
13
|
+
status?: serializers.EntityStatus.Raw | null;
|
|
14
|
+
environment?: serializers.EnvironmentEnum.Raw | null;
|
|
15
|
+
created: string;
|
|
16
|
+
last_deployed_on: string;
|
|
17
|
+
input_variables: serializers.VellumVariable.Raw[];
|
|
18
|
+
output_variables: serializers.VellumVariable.Raw[];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.WorkflowDeploymentRead = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.WorkflowDeploymentRead = core.serialization.object({
|
|
41
|
+
id: core.serialization.string(),
|
|
42
|
+
name: core.serialization.string(),
|
|
43
|
+
label: core.serialization.string(),
|
|
44
|
+
status: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).EntityStatus; })).optional(),
|
|
45
|
+
environment: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).EnvironmentEnum; })).optional(),
|
|
46
|
+
created: core.serialization.date(),
|
|
47
|
+
lastDeployedOn: core.serialization.property("last_deployed_on", core.serialization.date()),
|
|
48
|
+
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumVariable; })))),
|
|
49
|
+
outputVariables: core.serialization.property("output_variables", core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumVariable; })))),
|
|
50
|
+
});
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const WorkflowExecutionEventErrorCode: core.serialization.Schema<serializers.WorkflowExecutionEventErrorCode.Raw, Vellum.WorkflowExecutionEventErrorCode>;
|
|
8
8
|
export declare namespace WorkflowExecutionEventErrorCode {
|
|
9
|
-
type Raw = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE";
|
|
9
|
+
type Raw = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE" | "USER_DEFINED_ERROR";
|
|
10
10
|
}
|
|
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const WorkflowNodeResultData: core.serialization.Schema<serializers.WorkflowNodeResultData.Raw, Vellum.WorkflowNodeResultData>;
|
|
8
8
|
export declare namespace WorkflowNodeResultData {
|
|
9
|
-
type Raw = WorkflowNodeResultData.Prompt | WorkflowNodeResultData.Search | WorkflowNodeResultData.Templating | WorkflowNodeResultData.CodeExecution | WorkflowNodeResultData.Conditional | WorkflowNodeResultData.Api | WorkflowNodeResultData.Terminal;
|
|
9
|
+
type Raw = WorkflowNodeResultData.Prompt | WorkflowNodeResultData.Search | WorkflowNodeResultData.Templating | WorkflowNodeResultData.CodeExecution | WorkflowNodeResultData.Conditional | WorkflowNodeResultData.Api | WorkflowNodeResultData.Terminal | WorkflowNodeResultData.Subworkflow;
|
|
10
10
|
interface Prompt extends serializers.PromptNodeResult.Raw {
|
|
11
11
|
type: "PROMPT";
|
|
12
12
|
}
|
|
@@ -28,4 +28,7 @@ export declare namespace WorkflowNodeResultData {
|
|
|
28
28
|
interface Terminal extends serializers.TerminalNodeResult.Raw {
|
|
29
29
|
type: "TERMINAL";
|
|
30
30
|
}
|
|
31
|
+
interface Subworkflow extends serializers.SubworkflowNodeResult.Raw {
|
|
32
|
+
type: "SUBWORKFLOW";
|
|
33
|
+
}
|
|
31
34
|
}
|
|
@@ -46,6 +46,7 @@ exports.WorkflowNodeResultData = core.serialization
|
|
|
46
46
|
CONDITIONAL: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ConditionalNodeResult; })),
|
|
47
47
|
API: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ApiNodeResult; })),
|
|
48
48
|
TERMINAL: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeResult; })),
|
|
49
|
+
SUBWORKFLOW: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SubworkflowNodeResult; })),
|
|
49
50
|
})
|
|
50
51
|
.transform({
|
|
51
52
|
transform: (value) => value,
|