vellum-ai 0.9.11 → 0.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/__package__.yml +84 -65
- package/.mock/definition/metricDefinitions.yml +2 -2
- package/.mock/openapi/openapi.yml +129 -90
- package/Client.d.ts +2 -2
- package/Client.js +12 -12
- package/api/client/requests/{CodeExecutorRequest.d.ts → CodeExecutor.d.ts} +3 -3
- package/api/client/requests/index.d.ts +1 -1
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +1 -3
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +6 -6
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/metricDefinitions/client/Client.d.ts +2 -2
- package/api/resources/metricDefinitions/client/Client.js +3 -3
- package/api/resources/metricDefinitions/client/requests/{ExecuteMetricDefinitionRequest.d.ts → ExecuteMetricDefinition.d.ts} +2 -2
- package/api/resources/metricDefinitions/client/requests/index.d.ts +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +5 -5
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.js +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/types/{ArrayInputRequest.d.ts → ArrayInput.d.ts} +2 -2
- package/api/types/ChatHistoryInput.d.ts +13 -0
- package/{dist/api/types/CodeExecutionPackageRequest.d.ts → api/types/CodeExecutionPackage.d.ts} +1 -1
- package/api/types/CodeExecutorInput.d.ts +5 -0
- package/{dist/api/types/CodeExecutorSecretInputRequest.d.ts → api/types/CodeExecutorSecretInput.d.ts} +1 -1
- package/api/types/{ProcessingStateEnum.d.ts → DocumentProcessingState.d.ts} +4 -2
- package/api/types/{ProcessingStateEnum.js → DocumentProcessingState.js} +3 -2
- package/api/types/DocumentRead.d.ts +1 -9
- package/api/types/{ErrorInputRequest.d.ts → ErrorInput.d.ts} +2 -2
- package/{dist/api/types/FunctionCallInputRequest.d.ts → api/types/FunctionCallInput.d.ts} +2 -2
- package/api/types/JsonInput.d.ts +12 -0
- package/api/types/MetricDefinitionInput.d.ts +5 -0
- package/api/types/{NumberInputRequest.d.ts → NumberInput.d.ts} +1 -1
- package/{dist/api/types/SearchResultsInputRequest.d.ts → api/types/SearchResultsInput.d.ts} +2 -2
- package/api/types/SlimDocument.d.ts +1 -9
- package/api/types/StringInput.d.ts +12 -0
- package/api/types/VellumErrorCodeEnum.d.ts +3 -1
- package/api/types/VellumErrorCodeEnum.js +1 -0
- package/api/types/index.d.ts +13 -10
- package/api/types/index.js +13 -10
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +12 -12
- package/dist/api/client/requests/{CodeExecutorRequest.d.ts → CodeExecutor.d.ts} +3 -3
- package/dist/api/client/requests/index.d.ts +1 -1
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +1 -3
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +6 -6
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +2 -2
- package/dist/api/resources/metricDefinitions/client/Client.js +3 -3
- package/dist/api/resources/metricDefinitions/client/requests/{ExecuteMetricDefinitionRequest.d.ts → ExecuteMetricDefinition.d.ts} +2 -2
- package/dist/api/resources/metricDefinitions/client/requests/index.d.ts +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.js +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/types/{ArrayInputRequest.d.ts → ArrayInput.d.ts} +2 -2
- package/dist/api/types/ChatHistoryInput.d.ts +13 -0
- package/{api/types/CodeExecutionPackageRequest.d.ts → dist/api/types/CodeExecutionPackage.d.ts} +1 -1
- package/dist/api/types/CodeExecutorInput.d.ts +5 -0
- package/{api/types/CodeExecutorSecretInputRequest.d.ts → dist/api/types/CodeExecutorSecretInput.d.ts} +1 -1
- package/dist/api/types/{ProcessingStateEnum.d.ts → DocumentProcessingState.d.ts} +4 -2
- package/dist/api/types/{ProcessingStateEnum.js → DocumentProcessingState.js} +3 -2
- package/dist/api/types/DocumentRead.d.ts +1 -9
- package/dist/api/types/{ErrorInputRequest.d.ts → ErrorInput.d.ts} +2 -2
- package/{api/types/FunctionCallInputRequest.d.ts → dist/api/types/FunctionCallInput.d.ts} +2 -2
- package/dist/api/types/FunctionCallInput.js +5 -0
- package/dist/api/types/JsonInput.d.ts +12 -0
- package/dist/api/types/JsonInput.js +5 -0
- package/dist/api/types/MetricDefinitionInput.d.ts +5 -0
- package/dist/api/types/MetricDefinitionInput.js +5 -0
- package/dist/api/types/{NumberInputRequest.d.ts → NumberInput.d.ts} +1 -1
- package/dist/api/types/NumberInput.js +5 -0
- package/{api/types/SearchResultsInputRequest.d.ts → dist/api/types/SearchResultsInput.d.ts} +2 -2
- package/dist/api/types/SearchResultsInput.js +5 -0
- package/dist/api/types/SlimDocument.d.ts +1 -9
- package/dist/api/types/StringInput.d.ts +12 -0
- package/dist/api/types/StringInput.js +5 -0
- package/dist/api/types/VellumErrorCodeEnum.d.ts +3 -1
- package/dist/api/types/VellumErrorCodeEnum.js +1 -0
- package/dist/api/types/index.d.ts +13 -10
- package/dist/api/types/index.js +13 -10
- package/{serialization/client/requests/CodeExecutorRequest.d.ts → dist/serialization/client/requests/CodeExecutor.d.ts} +6 -6
- package/dist/serialization/client/requests/{CodeExecutorRequest.js → CodeExecutor.js} +6 -6
- package/dist/serialization/client/requests/index.d.ts +1 -1
- package/dist/serialization/client/requests/index.js +3 -3
- package/dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +14 -0
- package/{serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js → dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.js} +4 -4
- package/dist/serialization/resources/metricDefinitions/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/metricDefinitions/client/requests/index.js +3 -3
- package/dist/serialization/types/{ArrayInputRequest.d.ts → ArrayInput.d.ts} +3 -3
- package/{serialization/types/ArrayInputRequest.js → dist/serialization/types/ArrayInput.js} +3 -3
- package/dist/serialization/types/ChatHistoryInput.d.ts +15 -0
- package/dist/serialization/types/ChatHistoryInput.js +36 -0
- package/{serialization/types/CodeExecutionPackageRequest.d.ts → dist/serialization/types/CodeExecutionPackage.d.ts} +2 -2
- package/dist/serialization/types/{CodeExecutionPackageRequest.js → CodeExecutionPackage.js} +2 -2
- package/dist/serialization/types/CodeExecutorInput.d.ts +19 -0
- package/dist/serialization/types/{MetricDefinitionInputRequest.js → CodeExecutorInput.js} +20 -10
- package/{serialization/types/CodeExecutorSecretInputRequest.d.ts → dist/serialization/types/CodeExecutorSecretInput.d.ts} +2 -2
- package/{serialization/types/CodeExecutorSecretInputRequest.js → dist/serialization/types/CodeExecutorSecretInput.js} +2 -2
- package/dist/serialization/types/DocumentProcessingState.d.ts +10 -0
- package/dist/serialization/types/{ProcessingStateEnum.js → DocumentProcessingState.js} +2 -2
- package/dist/serialization/types/DocumentRead.d.ts +2 -2
- package/dist/serialization/types/DocumentRead.js +2 -2
- package/dist/serialization/types/ErrorInput.d.ts +15 -0
- package/dist/serialization/types/{ErrorInputRequest.js → ErrorInput.js} +4 -4
- package/dist/serialization/types/FunctionCallInput.d.ts +15 -0
- package/{serialization/types/FunctionCallInputRequest.js → dist/serialization/types/FunctionCallInput.js} +4 -4
- package/dist/serialization/types/JsonInput.d.ts +14 -0
- package/dist/serialization/types/JsonInput.js +35 -0
- package/dist/serialization/types/MetricDefinitionInput.d.ts +14 -0
- package/dist/serialization/types/MetricDefinitionInput.js +35 -0
- package/{serialization/types/NumberInputRequest.d.ts → dist/serialization/types/NumberInput.d.ts} +2 -2
- package/dist/serialization/types/{NumberInputRequest.js → NumberInput.js} +2 -2
- package/dist/serialization/types/SearchResultsInput.d.ts +15 -0
- package/dist/serialization/types/{SearchResultsInputRequest.js → SearchResultsInput.js} +4 -4
- package/dist/serialization/types/SlimDocument.d.ts +2 -2
- package/dist/serialization/types/SlimDocument.js +2 -2
- package/dist/serialization/types/StringInput.d.ts +14 -0
- package/dist/serialization/types/StringInput.js +35 -0
- package/dist/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/dist/serialization/types/VellumErrorCodeEnum.js +1 -0
- package/dist/serialization/types/index.d.ts +13 -10
- package/dist/serialization/types/index.js +13 -10
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +2 -4
- package/{dist/serialization/client/requests/CodeExecutorRequest.d.ts → serialization/client/requests/CodeExecutor.d.ts} +6 -6
- package/serialization/client/requests/{CodeExecutorRequest.js → CodeExecutor.js} +6 -6
- package/serialization/client/requests/index.d.ts +1 -1
- package/serialization/client/requests/index.js +3 -3
- package/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +14 -0
- package/{dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js → serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.js} +4 -4
- package/serialization/resources/metricDefinitions/client/requests/index.d.ts +1 -1
- package/serialization/resources/metricDefinitions/client/requests/index.js +3 -3
- package/serialization/types/{ArrayInputRequest.d.ts → ArrayInput.d.ts} +3 -3
- package/{dist/serialization/types/ArrayInputRequest.js → serialization/types/ArrayInput.js} +3 -3
- package/serialization/types/ChatHistoryInput.d.ts +15 -0
- package/serialization/types/ChatHistoryInput.js +36 -0
- package/{dist/serialization/types/CodeExecutionPackageRequest.d.ts → serialization/types/CodeExecutionPackage.d.ts} +2 -2
- package/serialization/types/{CodeExecutionPackageRequest.js → CodeExecutionPackage.js} +2 -2
- package/serialization/types/CodeExecutorInput.d.ts +19 -0
- package/serialization/types/{MetricDefinitionInputRequest.js → CodeExecutorInput.js} +20 -10
- package/{dist/serialization/types/CodeExecutorSecretInputRequest.d.ts → serialization/types/CodeExecutorSecretInput.d.ts} +2 -2
- package/{dist/serialization/types/CodeExecutorSecretInputRequest.js → serialization/types/CodeExecutorSecretInput.js} +2 -2
- package/serialization/types/DocumentProcessingState.d.ts +10 -0
- package/serialization/types/{ProcessingStateEnum.js → DocumentProcessingState.js} +2 -2
- package/serialization/types/DocumentRead.d.ts +2 -2
- package/serialization/types/DocumentRead.js +2 -2
- package/serialization/types/ErrorInput.d.ts +15 -0
- package/serialization/types/{ErrorInputRequest.js → ErrorInput.js} +4 -4
- package/serialization/types/FunctionCallInput.d.ts +15 -0
- package/{dist/serialization/types/FunctionCallInputRequest.js → serialization/types/FunctionCallInput.js} +4 -4
- package/serialization/types/JsonInput.d.ts +14 -0
- package/serialization/types/JsonInput.js +35 -0
- package/serialization/types/MetricDefinitionInput.d.ts +14 -0
- package/serialization/types/MetricDefinitionInput.js +35 -0
- package/{dist/serialization/types/NumberInputRequest.d.ts → serialization/types/NumberInput.d.ts} +2 -2
- package/serialization/types/{NumberInputRequest.js → NumberInput.js} +2 -2
- package/serialization/types/SearchResultsInput.d.ts +15 -0
- package/serialization/types/{SearchResultsInputRequest.js → SearchResultsInput.js} +4 -4
- package/serialization/types/SlimDocument.d.ts +2 -2
- package/serialization/types/SlimDocument.js +2 -2
- package/serialization/types/StringInput.d.ts +14 -0
- package/serialization/types/StringInput.js +35 -0
- package/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/serialization/types/VellumErrorCodeEnum.js +1 -0
- package/serialization/types/index.d.ts +13 -10
- package/serialization/types/index.js +13 -10
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/CodeExecutorInputRequest.d.ts +0 -5
- package/api/types/MetricDefinitionInputRequest.d.ts +0 -5
- package/dist/api/types/CodeExecutorInputRequest.d.ts +0 -5
- package/dist/api/types/MetricDefinitionInputRequest.d.ts +0 -5
- package/dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +0 -14
- package/dist/serialization/types/CodeExecutorInputRequest.d.ts +0 -19
- package/dist/serialization/types/CodeExecutorInputRequest.js +0 -50
- package/dist/serialization/types/ErrorInputRequest.d.ts +0 -15
- package/dist/serialization/types/FunctionCallInputRequest.d.ts +0 -15
- package/dist/serialization/types/MetricDefinitionInputRequest.d.ts +0 -14
- package/dist/serialization/types/ProcessingStateEnum.d.ts +0 -10
- package/dist/serialization/types/SearchResultsInputRequest.d.ts +0 -15
- package/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +0 -14
- package/serialization/types/CodeExecutorInputRequest.d.ts +0 -19
- package/serialization/types/CodeExecutorInputRequest.js +0 -50
- package/serialization/types/ErrorInputRequest.d.ts +0 -15
- package/serialization/types/FunctionCallInputRequest.d.ts +0 -15
- package/serialization/types/MetricDefinitionInputRequest.d.ts +0 -14
- package/serialization/types/ProcessingStateEnum.d.ts +0 -10
- package/serialization/types/SearchResultsInputRequest.d.ts +0 -15
- /package/api/client/requests/{CodeExecutorRequest.js → CodeExecutor.js} +0 -0
- /package/api/resources/metricDefinitions/client/requests/{ExecuteMetricDefinitionRequest.js → ExecuteMetricDefinition.js} +0 -0
- /package/api/types/{ArrayInputRequest.js → ArrayInput.js} +0 -0
- /package/api/types/{CodeExecutionPackageRequest.js → ChatHistoryInput.js} +0 -0
- /package/api/types/{CodeExecutorInputRequest.js → CodeExecutionPackage.js} +0 -0
- /package/api/types/{CodeExecutorSecretInputRequest.js → CodeExecutorInput.js} +0 -0
- /package/api/types/{ErrorInputRequest.js → CodeExecutorSecretInput.js} +0 -0
- /package/api/types/{FunctionCallInputRequest.js → ErrorInput.js} +0 -0
- /package/api/types/{MetricDefinitionInputRequest.js → FunctionCallInput.js} +0 -0
- /package/api/types/{NumberInputRequest.js → JsonInput.js} +0 -0
- /package/api/types/{SearchResultsInputRequest.js → MetricDefinitionInput.js} +0 -0
- /package/{dist/api/client/requests/CodeExecutorRequest.js → api/types/NumberInput.js} +0 -0
- /package/{dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js → api/types/SearchResultsInput.js} +0 -0
- /package/{dist/api/types/ArrayInputRequest.js → api/types/StringInput.js} +0 -0
- /package/dist/api/{types/CodeExecutionPackageRequest.js → client/requests/CodeExecutor.js} +0 -0
- /package/dist/api/{types/CodeExecutorInputRequest.js → resources/metricDefinitions/client/requests/ExecuteMetricDefinition.js} +0 -0
- /package/dist/api/types/{CodeExecutorSecretInputRequest.js → ArrayInput.js} +0 -0
- /package/dist/api/types/{ErrorInputRequest.js → ChatHistoryInput.js} +0 -0
- /package/dist/api/types/{FunctionCallInputRequest.js → CodeExecutionPackage.js} +0 -0
- /package/dist/api/types/{MetricDefinitionInputRequest.js → CodeExecutorInput.js} +0 -0
- /package/dist/api/types/{NumberInputRequest.js → CodeExecutorSecretInput.js} +0 -0
- /package/dist/api/types/{SearchResultsInputRequest.js → ErrorInput.js} +0 -0
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -120,9 +120,7 @@ await client.adHoc.adhocExecutePromptStream({
|
|
|
120
120
|
required: true,
|
|
121
121
|
default: {
|
|
122
122
|
type: "STRING",
|
|
123
|
-
value:
|
|
124
|
-
key: "value",
|
|
125
|
-
},
|
|
123
|
+
value: "string",
|
|
126
124
|
},
|
|
127
125
|
extensions: {
|
|
128
126
|
color: {
|
|
@@ -1999,7 +1997,7 @@ await client.metricDefinitions.executeMetricDefinition("id", {
|
|
|
1999
1997
|
<dl>
|
|
2000
1998
|
<dd>
|
|
2001
1999
|
|
|
2002
|
-
**request:** `Vellum.
|
|
2000
|
+
**request:** `Vellum.ExecuteMetricDefinition`
|
|
2003
2001
|
|
|
2004
2002
|
</dd>
|
|
2005
2003
|
</dl>
|
|
@@ -5,16 +5,16 @@ import * as serializers from "../../index";
|
|
|
5
5
|
import * as Vellum from "../../../api/index";
|
|
6
6
|
import * as core from "../../../core";
|
|
7
7
|
import { CodeExecutionRuntime } from "../../types/CodeExecutionRuntime";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { CodeExecutorInput } from "../../types/CodeExecutorInput";
|
|
9
|
+
import { CodeExecutionPackage } from "../../types/CodeExecutionPackage";
|
|
10
10
|
import { VellumVariableType } from "../../types/VellumVariableType";
|
|
11
|
-
export declare const
|
|
12
|
-
export declare namespace
|
|
11
|
+
export declare const CodeExecutor: core.serialization.Schema<serializers.CodeExecutor.Raw, Vellum.CodeExecutor>;
|
|
12
|
+
export declare namespace CodeExecutor {
|
|
13
13
|
interface Raw {
|
|
14
14
|
code: string;
|
|
15
15
|
runtime: CodeExecutionRuntime.Raw;
|
|
16
|
-
input_values:
|
|
17
|
-
packages:
|
|
16
|
+
input_values: CodeExecutorInput.Raw[];
|
|
17
|
+
packages: CodeExecutionPackage.Raw[];
|
|
18
18
|
output_type: VellumVariableType.Raw;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -26,16 +26,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.CodeExecutor = void 0;
|
|
30
30
|
const core = __importStar(require("../../../core"));
|
|
31
31
|
const CodeExecutionRuntime_1 = require("../../types/CodeExecutionRuntime");
|
|
32
|
-
const
|
|
33
|
-
const
|
|
32
|
+
const CodeExecutorInput_1 = require("../../types/CodeExecutorInput");
|
|
33
|
+
const CodeExecutionPackage_1 = require("../../types/CodeExecutionPackage");
|
|
34
34
|
const VellumVariableType_1 = require("../../types/VellumVariableType");
|
|
35
|
-
exports.
|
|
35
|
+
exports.CodeExecutor = core.serialization.object({
|
|
36
36
|
code: core.serialization.string(),
|
|
37
37
|
runtime: CodeExecutionRuntime_1.CodeExecutionRuntime,
|
|
38
|
-
inputValues: core.serialization.property("input_values", core.serialization.list(
|
|
39
|
-
packages: core.serialization.list(
|
|
38
|
+
inputValues: core.serialization.property("input_values", core.serialization.list(CodeExecutorInput_1.CodeExecutorInput)),
|
|
39
|
+
packages: core.serialization.list(CodeExecutionPackage_1.CodeExecutionPackage),
|
|
40
40
|
outputType: core.serialization.property("output_type", VellumVariableType_1.VellumVariableType),
|
|
41
41
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { CodeExecutor } from "./CodeExecutor";
|
|
2
2
|
export { ExecutePromptRequest } from "./ExecutePromptRequest";
|
|
3
3
|
export { ExecutePromptStreamRequest } from "./ExecutePromptStreamRequest";
|
|
4
4
|
export { ExecuteWorkflowRequest } from "./ExecuteWorkflowRequest";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubmitWorkflowExecutionActualsRequest = exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = exports.ExecuteWorkflowStreamRequest = exports.ExecuteWorkflowRequest = exports.ExecutePromptStreamRequest = exports.ExecutePromptRequest = exports.
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "
|
|
3
|
+
exports.SubmitWorkflowExecutionActualsRequest = exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = exports.ExecuteWorkflowStreamRequest = exports.ExecuteWorkflowRequest = exports.ExecutePromptStreamRequest = exports.ExecutePromptRequest = exports.CodeExecutor = void 0;
|
|
4
|
+
var CodeExecutor_1 = require("./CodeExecutor");
|
|
5
|
+
Object.defineProperty(exports, "CodeExecutor", { enumerable: true, get: function () { return CodeExecutor_1.CodeExecutor; } });
|
|
6
6
|
var ExecutePromptRequest_1 = require("./ExecutePromptRequest");
|
|
7
7
|
Object.defineProperty(exports, "ExecutePromptRequest", { enumerable: true, get: function () { return ExecutePromptRequest_1.ExecutePromptRequest; } });
|
|
8
8
|
var ExecutePromptStreamRequest_1 = require("./ExecutePromptStreamRequest");
|
package/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as Vellum from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
import { MetricDefinitionInput } from "../../../../types/MetricDefinitionInput";
|
|
8
|
+
export declare const ExecuteMetricDefinition: core.serialization.Schema<serializers.ExecuteMetricDefinition.Raw, Vellum.ExecuteMetricDefinition>;
|
|
9
|
+
export declare namespace ExecuteMetricDefinition {
|
|
10
|
+
interface Raw {
|
|
11
|
+
inputs: MetricDefinitionInput.Raw[];
|
|
12
|
+
release_tag?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -26,10 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ExecuteMetricDefinition = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
|
-
const
|
|
32
|
-
exports.
|
|
33
|
-
inputs: core.serialization.list(
|
|
31
|
+
const MetricDefinitionInput_1 = require("../../../../types/MetricDefinitionInput");
|
|
32
|
+
exports.ExecuteMetricDefinition = core.serialization.object({
|
|
33
|
+
inputs: core.serialization.list(MetricDefinitionInput_1.MetricDefinitionInput),
|
|
34
34
|
releaseTag: core.serialization.property("release_tag", core.serialization.string().optional()),
|
|
35
35
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ExecuteMetricDefinition } from "./ExecuteMetricDefinition";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "
|
|
3
|
+
exports.ExecuteMetricDefinition = void 0;
|
|
4
|
+
var ExecuteMetricDefinition_1 = require("./ExecuteMetricDefinition");
|
|
5
|
+
Object.defineProperty(exports, "ExecuteMetricDefinition", { enumerable: true, get: function () { return ExecuteMetricDefinition_1.ExecuteMetricDefinition; } });
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const ArrayInput: core.serialization.ObjectSchema<serializers.ArrayInput.Raw, Vellum.ArrayInput>;
|
|
8
|
+
export declare namespace ArrayInput {
|
|
9
9
|
interface Raw {
|
|
10
10
|
name: string;
|
|
11
11
|
type: "ARRAY";
|
|
12
|
-
value: serializers.
|
|
12
|
+
value: serializers.VellumValue.Raw[];
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -26,11 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ArrayInput = void 0;
|
|
30
30
|
const serializers = __importStar(require("../index"));
|
|
31
31
|
const core = __importStar(require("../../core"));
|
|
32
|
-
exports.
|
|
32
|
+
exports.ArrayInput = core.serialization.object({
|
|
33
33
|
name: core.serialization.string(),
|
|
34
34
|
type: core.serialization.stringLiteral("ARRAY"),
|
|
35
|
-
value: core.serialization.list(core.serialization.lazy(() => serializers.
|
|
35
|
+
value: core.serialization.list(core.serialization.lazy(() => serializers.VellumValue)),
|
|
36
36
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { ChatMessage } from "./ChatMessage";
|
|
8
|
+
export declare const ChatHistoryInput: core.serialization.ObjectSchema<serializers.ChatHistoryInput.Raw, Vellum.ChatHistoryInput>;
|
|
9
|
+
export declare namespace ChatHistoryInput {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name: string;
|
|
12
|
+
type: "CHAT_HISTORY";
|
|
13
|
+
value: ChatMessage.Raw[];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.ChatHistoryInput = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const ChatMessage_1 = require("./ChatMessage");
|
|
32
|
+
exports.ChatHistoryInput = core.serialization.object({
|
|
33
|
+
name: core.serialization.string(),
|
|
34
|
+
type: core.serialization.stringLiteral("CHAT_HISTORY"),
|
|
35
|
+
value: core.serialization.list(ChatMessage_1.ChatMessage),
|
|
36
|
+
});
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const CodeExecutionPackage: core.serialization.ObjectSchema<serializers.CodeExecutionPackage.Raw, Vellum.CodeExecutionPackage>;
|
|
8
|
+
export declare namespace CodeExecutionPackage {
|
|
9
9
|
interface Raw {
|
|
10
10
|
version: string;
|
|
11
11
|
name: string;
|
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.CodeExecutionPackage = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.CodeExecutionPackage = core.serialization.object({
|
|
32
32
|
version: core.serialization.string(),
|
|
33
33
|
name: core.serialization.string(),
|
|
34
34
|
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { StringInput } from "./StringInput";
|
|
8
|
+
import { JsonInput } from "./JsonInput";
|
|
9
|
+
import { ChatHistoryInput } from "./ChatHistoryInput";
|
|
10
|
+
import { NumberInput } from "./NumberInput";
|
|
11
|
+
import { SearchResultsInput } from "./SearchResultsInput";
|
|
12
|
+
import { ErrorInput } from "./ErrorInput";
|
|
13
|
+
import { ArrayInput } from "./ArrayInput";
|
|
14
|
+
import { FunctionCallInput } from "./FunctionCallInput";
|
|
15
|
+
import { CodeExecutorSecretInput } from "./CodeExecutorSecretInput";
|
|
16
|
+
export declare const CodeExecutorInput: core.serialization.Schema<serializers.CodeExecutorInput.Raw, Vellum.CodeExecutorInput>;
|
|
17
|
+
export declare namespace CodeExecutorInput {
|
|
18
|
+
type Raw = StringInput.Raw | JsonInput.Raw | ChatHistoryInput.Raw | NumberInput.Raw | SearchResultsInput.Raw | ErrorInput.Raw | ArrayInput.Raw | FunctionCallInput.Raw | CodeExecutorSecretInput.Raw;
|
|
19
|
+
}
|
|
@@ -26,15 +26,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.CodeExecutorInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
const StringInput_1 = require("./StringInput");
|
|
32
|
+
const JsonInput_1 = require("./JsonInput");
|
|
33
|
+
const ChatHistoryInput_1 = require("./ChatHistoryInput");
|
|
34
|
+
const NumberInput_1 = require("./NumberInput");
|
|
35
|
+
const SearchResultsInput_1 = require("./SearchResultsInput");
|
|
36
|
+
const ErrorInput_1 = require("./ErrorInput");
|
|
37
|
+
const ArrayInput_1 = require("./ArrayInput");
|
|
38
|
+
const FunctionCallInput_1 = require("./FunctionCallInput");
|
|
39
|
+
const CodeExecutorSecretInput_1 = require("./CodeExecutorSecretInput");
|
|
40
|
+
exports.CodeExecutorInput = core.serialization.undiscriminatedUnion([
|
|
41
|
+
StringInput_1.StringInput,
|
|
42
|
+
JsonInput_1.JsonInput,
|
|
43
|
+
ChatHistoryInput_1.ChatHistoryInput,
|
|
44
|
+
NumberInput_1.NumberInput,
|
|
45
|
+
SearchResultsInput_1.SearchResultsInput,
|
|
46
|
+
ErrorInput_1.ErrorInput,
|
|
47
|
+
ArrayInput_1.ArrayInput,
|
|
48
|
+
FunctionCallInput_1.FunctionCallInput,
|
|
49
|
+
CodeExecutorSecretInput_1.CodeExecutorSecretInput,
|
|
40
50
|
]);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const CodeExecutorSecretInput: core.serialization.ObjectSchema<serializers.CodeExecutorSecretInput.Raw, Vellum.CodeExecutorSecretInput>;
|
|
8
|
+
export declare namespace CodeExecutorSecretInput {
|
|
9
9
|
interface Raw {
|
|
10
10
|
name: string;
|
|
11
11
|
type: "SECRET";
|
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.CodeExecutorSecretInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.CodeExecutorSecretInput = core.serialization.object({
|
|
32
32
|
name: core.serialization.string(),
|
|
33
33
|
type: core.serialization.stringLiteral("SECRET"),
|
|
34
34
|
value: core.serialization.string(),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const DocumentProcessingState: core.serialization.Schema<serializers.DocumentProcessingState.Raw, Vellum.DocumentProcessingState>;
|
|
8
|
+
export declare namespace DocumentProcessingState {
|
|
9
|
+
type Raw = "QUEUED" | "PROCESSING" | "PROCESSED" | "FAILED" | "UNKNOWN";
|
|
10
|
+
}
|
|
@@ -26,6 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.DocumentProcessingState = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.DocumentProcessingState = core.serialization.enum_(["QUEUED", "PROCESSING", "PROCESSED", "FAILED", "UNKNOWN"]);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { DocumentProcessingState } from "./DocumentProcessingState";
|
|
8
8
|
import { DocumentStatus } from "./DocumentStatus";
|
|
9
9
|
import { DocumentDocumentToDocumentIndex } from "./DocumentDocumentToDocumentIndex";
|
|
10
10
|
export declare const DocumentRead: core.serialization.ObjectSchema<serializers.DocumentRead.Raw, Vellum.DocumentRead>;
|
|
@@ -14,7 +14,7 @@ export declare namespace DocumentRead {
|
|
|
14
14
|
external_id?: string | null;
|
|
15
15
|
last_uploaded_at: string;
|
|
16
16
|
label: string;
|
|
17
|
-
processing_state
|
|
17
|
+
processing_state: DocumentProcessingState.Raw;
|
|
18
18
|
status?: DocumentStatus.Raw | null;
|
|
19
19
|
original_file_url?: string | null;
|
|
20
20
|
processed_file_url?: string | null;
|
|
@@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.DocumentRead = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
const
|
|
31
|
+
const DocumentProcessingState_1 = require("./DocumentProcessingState");
|
|
32
32
|
const DocumentStatus_1 = require("./DocumentStatus");
|
|
33
33
|
const DocumentDocumentToDocumentIndex_1 = require("./DocumentDocumentToDocumentIndex");
|
|
34
34
|
exports.DocumentRead = core.serialization.object({
|
|
@@ -36,7 +36,7 @@ exports.DocumentRead = core.serialization.object({
|
|
|
36
36
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
37
37
|
lastUploadedAt: core.serialization.property("last_uploaded_at", core.serialization.date()),
|
|
38
38
|
label: core.serialization.string(),
|
|
39
|
-
processingState: core.serialization.property("processing_state",
|
|
39
|
+
processingState: core.serialization.property("processing_state", DocumentProcessingState_1.DocumentProcessingState),
|
|
40
40
|
status: DocumentStatus_1.DocumentStatus.optional(),
|
|
41
41
|
originalFileUrl: core.serialization.property("original_file_url", core.serialization.string().optional()),
|
|
42
42
|
processedFileUrl: core.serialization.property("processed_file_url", core.serialization.string().optional()),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { VellumError } from "./VellumError";
|
|
8
|
+
export declare const ErrorInput: core.serialization.ObjectSchema<serializers.ErrorInput.Raw, Vellum.ErrorInput>;
|
|
9
|
+
export declare namespace ErrorInput {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name: string;
|
|
12
|
+
type: "ERROR";
|
|
13
|
+
value: VellumError.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -26,11 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ErrorInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
const
|
|
32
|
-
exports.
|
|
31
|
+
const VellumError_1 = require("./VellumError");
|
|
32
|
+
exports.ErrorInput = core.serialization.object({
|
|
33
33
|
name: core.serialization.string(),
|
|
34
34
|
type: core.serialization.stringLiteral("ERROR"),
|
|
35
|
-
value:
|
|
35
|
+
value: VellumError_1.VellumError,
|
|
36
36
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { FunctionCall } from "./FunctionCall";
|
|
8
|
+
export declare const FunctionCallInput: core.serialization.ObjectSchema<serializers.FunctionCallInput.Raw, Vellum.FunctionCallInput>;
|
|
9
|
+
export declare namespace FunctionCallInput {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name: string;
|
|
12
|
+
type: "FUNCTION_CALL";
|
|
13
|
+
value: FunctionCall.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -26,11 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.FunctionCallInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
const
|
|
32
|
-
exports.
|
|
31
|
+
const FunctionCall_1 = require("./FunctionCall");
|
|
32
|
+
exports.FunctionCallInput = core.serialization.object({
|
|
33
33
|
name: core.serialization.string(),
|
|
34
34
|
type: core.serialization.stringLiteral("FUNCTION_CALL"),
|
|
35
|
-
value:
|
|
35
|
+
value: FunctionCall_1.FunctionCall,
|
|
36
36
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const JsonInput: core.serialization.ObjectSchema<serializers.JsonInput.Raw, Vellum.JsonInput>;
|
|
8
|
+
export declare namespace JsonInput {
|
|
9
|
+
interface Raw {
|
|
10
|
+
name: string;
|
|
11
|
+
type: "JSON";
|
|
12
|
+
value?: unknown;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.JsonInput = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.JsonInput = core.serialization.object({
|
|
32
|
+
name: core.serialization.string(),
|
|
33
|
+
type: core.serialization.stringLiteral("JSON"),
|
|
34
|
+
value: core.serialization.unknown(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { StringInput } from "./StringInput";
|
|
8
|
+
import { JsonInput } from "./JsonInput";
|
|
9
|
+
import { ChatHistoryInput } from "./ChatHistoryInput";
|
|
10
|
+
import { NumberInput } from "./NumberInput";
|
|
11
|
+
export declare const MetricDefinitionInput: core.serialization.Schema<serializers.MetricDefinitionInput.Raw, Vellum.MetricDefinitionInput>;
|
|
12
|
+
export declare namespace MetricDefinitionInput {
|
|
13
|
+
type Raw = StringInput.Raw | JsonInput.Raw | ChatHistoryInput.Raw | NumberInput.Raw;
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.MetricDefinitionInput = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const StringInput_1 = require("./StringInput");
|
|
32
|
+
const JsonInput_1 = require("./JsonInput");
|
|
33
|
+
const ChatHistoryInput_1 = require("./ChatHistoryInput");
|
|
34
|
+
const NumberInput_1 = require("./NumberInput");
|
|
35
|
+
exports.MetricDefinitionInput = core.serialization.undiscriminatedUnion([StringInput_1.StringInput, JsonInput_1.JsonInput, ChatHistoryInput_1.ChatHistoryInput, NumberInput_1.NumberInput]);
|
package/{dist/serialization/types/NumberInputRequest.d.ts → serialization/types/NumberInput.d.ts}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const NumberInput: core.serialization.ObjectSchema<serializers.NumberInput.Raw, Vellum.NumberInput>;
|
|
8
|
+
export declare namespace NumberInput {
|
|
9
9
|
interface Raw {
|
|
10
10
|
name: string;
|
|
11
11
|
type: "NUMBER";
|
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.NumberInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.NumberInput = core.serialization.object({
|
|
32
32
|
name: core.serialization.string(),
|
|
33
33
|
type: core.serialization.stringLiteral("NUMBER"),
|
|
34
34
|
value: core.serialization.number(),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { SearchResult } from "./SearchResult";
|
|
8
|
+
export declare const SearchResultsInput: core.serialization.ObjectSchema<serializers.SearchResultsInput.Raw, Vellum.SearchResultsInput>;
|
|
9
|
+
export declare namespace SearchResultsInput {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name: string;
|
|
12
|
+
type: "SEARCH_RESULTS";
|
|
13
|
+
value: SearchResult.Raw[];
|
|
14
|
+
}
|
|
15
|
+
}
|