vellum-ai 0.0.38 → 0.0.40
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 +9 -1
- package/Client.js +43 -1
- package/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +12 -0
- package/api/client/requests/SubmitWorkflowExecutionActualsRequest.js +5 -0
- package/api/client/requests/index.d.ts +1 -0
- package/api/types/SubmitWorkflowExecutionActualRequest.d.ts +16 -0
- package/api/types/SubmitWorkflowExecutionActualRequest.js +5 -0
- package/api/types/WorkflowExecutionActualChatHistoryRequest.d.ts +16 -0
- package/api/types/WorkflowExecutionActualChatHistoryRequest.js +5 -0
- package/api/types/WorkflowExecutionActualJsonRequest.d.ts +15 -0
- package/api/types/WorkflowExecutionActualJsonRequest.js +5 -0
- package/api/types/WorkflowExecutionActualStringRequest.d.ts +15 -0
- package/api/types/WorkflowExecutionActualStringRequest.js +5 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +9 -1
- package/dist/Client.js +43 -1
- package/dist/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +12 -0
- package/dist/api/client/requests/SubmitWorkflowExecutionActualsRequest.js +5 -0
- package/dist/api/client/requests/index.d.ts +1 -0
- package/dist/api/types/SubmitWorkflowExecutionActualRequest.d.ts +16 -0
- package/dist/api/types/SubmitWorkflowExecutionActualRequest.js +5 -0
- package/dist/api/types/WorkflowExecutionActualChatHistoryRequest.d.ts +16 -0
- package/dist/api/types/WorkflowExecutionActualChatHistoryRequest.js +5 -0
- package/dist/api/types/WorkflowExecutionActualJsonRequest.d.ts +15 -0
- package/dist/api/types/WorkflowExecutionActualJsonRequest.js +5 -0
- package/dist/api/types/WorkflowExecutionActualStringRequest.d.ts +15 -0
- package/dist/api/types/WorkflowExecutionActualStringRequest.js +5 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +14 -0
- package/dist/serialization/client/requests/SubmitWorkflowExecutionActualsRequest.js +35 -0
- package/dist/serialization/client/requests/index.d.ts +1 -0
- package/dist/serialization/client/requests/index.js +3 -1
- package/dist/serialization/types/SubmitWorkflowExecutionActualRequest.d.ts +19 -0
- package/dist/serialization/types/SubmitWorkflowExecutionActualRequest.js +40 -0
- package/dist/serialization/types/WorkflowExecutionActualChatHistoryRequest.d.ts +16 -0
- package/dist/serialization/types/WorkflowExecutionActualChatHistoryRequest.js +39 -0
- package/dist/serialization/types/WorkflowExecutionActualJsonRequest.d.ts +16 -0
- package/dist/serialization/types/WorkflowExecutionActualJsonRequest.js +37 -0
- package/dist/serialization/types/WorkflowExecutionActualStringRequest.d.ts +16 -0
- package/dist/serialization/types/WorkflowExecutionActualStringRequest.js +37 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/package.json +1 -1
- package/serialization/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +14 -0
- package/serialization/client/requests/SubmitWorkflowExecutionActualsRequest.js +35 -0
- package/serialization/client/requests/index.d.ts +1 -0
- package/serialization/client/requests/index.js +3 -1
- package/serialization/types/SubmitWorkflowExecutionActualRequest.d.ts +19 -0
- package/serialization/types/SubmitWorkflowExecutionActualRequest.js +40 -0
- package/serialization/types/WorkflowExecutionActualChatHistoryRequest.d.ts +16 -0
- package/serialization/types/WorkflowExecutionActualChatHistoryRequest.js +39 -0
- package/serialization/types/WorkflowExecutionActualJsonRequest.d.ts +16 -0
- package/serialization/types/WorkflowExecutionActualJsonRequest.js +37 -0
- package/serialization/types/WorkflowExecutionActualStringRequest.d.ts +16 -0
- package/serialization/types/WorkflowExecutionActualStringRequest.js +37 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
|
@@ -0,0 +1,16 @@
|
|
|
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 WorkflowExecutionActualChatHistoryRequest: core.serialization.ObjectSchema<serializers.WorkflowExecutionActualChatHistoryRequest.Raw, Vellum.WorkflowExecutionActualChatHistoryRequest>;
|
|
8
|
+
export declare namespace WorkflowExecutionActualChatHistoryRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
output_id?: string | null;
|
|
11
|
+
output_key?: string | null;
|
|
12
|
+
quality?: number | null;
|
|
13
|
+
timestamp?: number | null;
|
|
14
|
+
desired_output_value?: serializers.ChatMessageRequest.Raw[] | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.WorkflowExecutionActualChatHistoryRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.WorkflowExecutionActualChatHistoryRequest = core.serialization.object({
|
|
32
|
+
outputId: core.serialization.property("output_id", core.serialization.string().optional()),
|
|
33
|
+
outputKey: core.serialization.property("output_key", core.serialization.string().optional()),
|
|
34
|
+
quality: core.serialization.number().optional(),
|
|
35
|
+
timestamp: core.serialization.number().optional(),
|
|
36
|
+
desiredOutputValue: core.serialization.property("desired_output_value", core.serialization
|
|
37
|
+
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest))
|
|
38
|
+
.optional()),
|
|
39
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
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 WorkflowExecutionActualJsonRequest: core.serialization.ObjectSchema<serializers.WorkflowExecutionActualJsonRequest.Raw, Vellum.WorkflowExecutionActualJsonRequest>;
|
|
8
|
+
export declare namespace WorkflowExecutionActualJsonRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
output_id?: string | null;
|
|
11
|
+
output_key?: string | null;
|
|
12
|
+
quality?: number | null;
|
|
13
|
+
timestamp?: number | null;
|
|
14
|
+
desired_output_value?: Record<string, unknown> | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.WorkflowExecutionActualJsonRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.WorkflowExecutionActualJsonRequest = core.serialization.object({
|
|
32
|
+
outputId: core.serialization.property("output_id", core.serialization.string().optional()),
|
|
33
|
+
outputKey: core.serialization.property("output_key", core.serialization.string().optional()),
|
|
34
|
+
quality: core.serialization.number().optional(),
|
|
35
|
+
timestamp: core.serialization.number().optional(),
|
|
36
|
+
desiredOutputValue: core.serialization.property("desired_output_value", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
37
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
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 WorkflowExecutionActualStringRequest: core.serialization.ObjectSchema<serializers.WorkflowExecutionActualStringRequest.Raw, Vellum.WorkflowExecutionActualStringRequest>;
|
|
8
|
+
export declare namespace WorkflowExecutionActualStringRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
output_id?: string | null;
|
|
11
|
+
output_key?: string | null;
|
|
12
|
+
quality?: number | null;
|
|
13
|
+
timestamp?: number | null;
|
|
14
|
+
desired_output_value?: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.WorkflowExecutionActualStringRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.WorkflowExecutionActualStringRequest = core.serialization.object({
|
|
32
|
+
outputId: core.serialization.property("output_id", core.serialization.string().optional()),
|
|
33
|
+
outputKey: core.serialization.property("output_key", core.serialization.string().optional()),
|
|
34
|
+
quality: core.serialization.number().optional(),
|
|
35
|
+
timestamp: core.serialization.number().optional(),
|
|
36
|
+
desiredOutputValue: core.serialization.property("desired_output_value", core.serialization.string().optional()),
|
|
37
|
+
});
|
|
@@ -90,6 +90,7 @@ export * from "./SearchWeightsRequest";
|
|
|
90
90
|
export * from "./SlimDocument";
|
|
91
91
|
export * from "./SubmitCompletionActualRequest";
|
|
92
92
|
export * from "./SubmitCompletionActualsErrorResponse";
|
|
93
|
+
export * from "./SubmitWorkflowExecutionActualRequest";
|
|
93
94
|
export * from "./TemplatingNodeChatHistoryResult";
|
|
94
95
|
export * from "./TemplatingNodeJsonResult";
|
|
95
96
|
export * from "./TemplatingNodeResult";
|
|
@@ -110,6 +111,9 @@ export * from "./UploadDocumentResponse";
|
|
|
110
111
|
export * from "./VellumVariable";
|
|
111
112
|
export * from "./VellumVariableType";
|
|
112
113
|
export * from "./WorkflowEventError";
|
|
114
|
+
export * from "./WorkflowExecutionActualChatHistoryRequest";
|
|
115
|
+
export * from "./WorkflowExecutionActualJsonRequest";
|
|
116
|
+
export * from "./WorkflowExecutionActualStringRequest";
|
|
113
117
|
export * from "./WorkflowExecutionEventErrorCode";
|
|
114
118
|
export * from "./WorkflowExecutionEventType";
|
|
115
119
|
export * from "./WorkflowExecutionNodeResultEvent";
|
|
@@ -106,6 +106,7 @@ __exportStar(require("./SearchWeightsRequest"), exports);
|
|
|
106
106
|
__exportStar(require("./SlimDocument"), exports);
|
|
107
107
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
108
108
|
__exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
|
|
109
|
+
__exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
|
|
109
110
|
__exportStar(require("./TemplatingNodeChatHistoryResult"), exports);
|
|
110
111
|
__exportStar(require("./TemplatingNodeJsonResult"), exports);
|
|
111
112
|
__exportStar(require("./TemplatingNodeResult"), exports);
|
|
@@ -126,6 +127,9 @@ __exportStar(require("./UploadDocumentResponse"), exports);
|
|
|
126
127
|
__exportStar(require("./VellumVariable"), exports);
|
|
127
128
|
__exportStar(require("./VellumVariableType"), exports);
|
|
128
129
|
__exportStar(require("./WorkflowEventError"), exports);
|
|
130
|
+
__exportStar(require("./WorkflowExecutionActualChatHistoryRequest"), exports);
|
|
131
|
+
__exportStar(require("./WorkflowExecutionActualJsonRequest"), exports);
|
|
132
|
+
__exportStar(require("./WorkflowExecutionActualStringRequest"), exports);
|
|
129
133
|
__exportStar(require("./WorkflowExecutionEventErrorCode"), exports);
|
|
130
134
|
__exportStar(require("./WorkflowExecutionEventType"), exports);
|
|
131
135
|
__exportStar(require("./WorkflowExecutionNodeResultEvent"), exports);
|
package/package.json
CHANGED
|
@@ -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 SubmitWorkflowExecutionActualsRequest: core.serialization.Schema<serializers.SubmitWorkflowExecutionActualsRequest.Raw, Vellum.SubmitWorkflowExecutionActualsRequest>;
|
|
8
|
+
export declare namespace SubmitWorkflowExecutionActualsRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
actuals: serializers.SubmitWorkflowExecutionActualRequest.Raw[];
|
|
11
|
+
execution_id?: string | null;
|
|
12
|
+
external_id?: string | null;
|
|
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.SubmitWorkflowExecutionActualsRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../core"));
|
|
31
|
+
exports.SubmitWorkflowExecutionActualsRequest = core.serialization.object({
|
|
32
|
+
actuals: core.serialization.list(core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).SubmitWorkflowExecutionActualRequest)),
|
|
33
|
+
executionId: core.serialization.property("execution_id", core.serialization.string().optional()),
|
|
34
|
+
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
35
|
+
});
|
|
@@ -3,3 +3,4 @@ export { GenerateBodyRequest } from "./GenerateBodyRequest";
|
|
|
3
3
|
export { GenerateStreamBodyRequest } from "./GenerateStreamBodyRequest";
|
|
4
4
|
export { SearchRequestBodyRequest } from "./SearchRequestBodyRequest";
|
|
5
5
|
export { SubmitCompletionActualsRequest } from "./SubmitCompletionActualsRequest";
|
|
6
|
+
export { SubmitWorkflowExecutionActualsRequest } from "./SubmitWorkflowExecutionActualsRequest";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = exports.ExecuteWorkflowStreamRequest = void 0;
|
|
3
|
+
exports.SubmitWorkflowExecutionActualsRequest = exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = exports.ExecuteWorkflowStreamRequest = void 0;
|
|
4
4
|
var ExecuteWorkflowStreamRequest_1 = require("./ExecuteWorkflowStreamRequest");
|
|
5
5
|
Object.defineProperty(exports, "ExecuteWorkflowStreamRequest", { enumerable: true, get: function () { return ExecuteWorkflowStreamRequest_1.ExecuteWorkflowStreamRequest; } });
|
|
6
6
|
var GenerateBodyRequest_1 = require("./GenerateBodyRequest");
|
|
@@ -11,3 +11,5 @@ var SearchRequestBodyRequest_1 = require("./SearchRequestBodyRequest");
|
|
|
11
11
|
Object.defineProperty(exports, "SearchRequestBodyRequest", { enumerable: true, get: function () { return SearchRequestBodyRequest_1.SearchRequestBodyRequest; } });
|
|
12
12
|
var SubmitCompletionActualsRequest_1 = require("./SubmitCompletionActualsRequest");
|
|
13
13
|
Object.defineProperty(exports, "SubmitCompletionActualsRequest", { enumerable: true, get: function () { return SubmitCompletionActualsRequest_1.SubmitCompletionActualsRequest; } });
|
|
14
|
+
var SubmitWorkflowExecutionActualsRequest_1 = require("./SubmitWorkflowExecutionActualsRequest");
|
|
15
|
+
Object.defineProperty(exports, "SubmitWorkflowExecutionActualsRequest", { enumerable: true, get: function () { return SubmitWorkflowExecutionActualsRequest_1.SubmitWorkflowExecutionActualsRequest; } });
|
|
@@ -0,0 +1,19 @@
|
|
|
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 SubmitWorkflowExecutionActualRequest: core.serialization.Schema<serializers.SubmitWorkflowExecutionActualRequest.Raw, Vellum.SubmitWorkflowExecutionActualRequest>;
|
|
8
|
+
export declare namespace SubmitWorkflowExecutionActualRequest {
|
|
9
|
+
type Raw = SubmitWorkflowExecutionActualRequest.String | SubmitWorkflowExecutionActualRequest.Json | SubmitWorkflowExecutionActualRequest.ChatHistory;
|
|
10
|
+
interface String extends serializers.WorkflowExecutionActualStringRequest.Raw {
|
|
11
|
+
output_type: "STRING";
|
|
12
|
+
}
|
|
13
|
+
interface Json extends serializers.WorkflowExecutionActualJsonRequest.Raw {
|
|
14
|
+
output_type: "JSON";
|
|
15
|
+
}
|
|
16
|
+
interface ChatHistory extends serializers.WorkflowExecutionActualChatHistoryRequest.Raw {
|
|
17
|
+
output_type: "CHAT_HISTORY";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.SubmitWorkflowExecutionActualRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.SubmitWorkflowExecutionActualRequest = core.serialization
|
|
32
|
+
.union(core.serialization.discriminant("outputType", "output_type"), {
|
|
33
|
+
STRING: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionActualStringRequest),
|
|
34
|
+
JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionActualJsonRequest),
|
|
35
|
+
CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionActualChatHistoryRequest),
|
|
36
|
+
})
|
|
37
|
+
.transform({
|
|
38
|
+
transform: (value) => value,
|
|
39
|
+
untransform: (value) => value,
|
|
40
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
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 WorkflowExecutionActualChatHistoryRequest: core.serialization.ObjectSchema<serializers.WorkflowExecutionActualChatHistoryRequest.Raw, Vellum.WorkflowExecutionActualChatHistoryRequest>;
|
|
8
|
+
export declare namespace WorkflowExecutionActualChatHistoryRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
output_id?: string | null;
|
|
11
|
+
output_key?: string | null;
|
|
12
|
+
quality?: number | null;
|
|
13
|
+
timestamp?: number | null;
|
|
14
|
+
desired_output_value?: serializers.ChatMessageRequest.Raw[] | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.WorkflowExecutionActualChatHistoryRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.WorkflowExecutionActualChatHistoryRequest = core.serialization.object({
|
|
32
|
+
outputId: core.serialization.property("output_id", core.serialization.string().optional()),
|
|
33
|
+
outputKey: core.serialization.property("output_key", core.serialization.string().optional()),
|
|
34
|
+
quality: core.serialization.number().optional(),
|
|
35
|
+
timestamp: core.serialization.number().optional(),
|
|
36
|
+
desiredOutputValue: core.serialization.property("desired_output_value", core.serialization
|
|
37
|
+
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest))
|
|
38
|
+
.optional()),
|
|
39
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
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 WorkflowExecutionActualJsonRequest: core.serialization.ObjectSchema<serializers.WorkflowExecutionActualJsonRequest.Raw, Vellum.WorkflowExecutionActualJsonRequest>;
|
|
8
|
+
export declare namespace WorkflowExecutionActualJsonRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
output_id?: string | null;
|
|
11
|
+
output_key?: string | null;
|
|
12
|
+
quality?: number | null;
|
|
13
|
+
timestamp?: number | null;
|
|
14
|
+
desired_output_value?: Record<string, unknown> | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.WorkflowExecutionActualJsonRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.WorkflowExecutionActualJsonRequest = core.serialization.object({
|
|
32
|
+
outputId: core.serialization.property("output_id", core.serialization.string().optional()),
|
|
33
|
+
outputKey: core.serialization.property("output_key", core.serialization.string().optional()),
|
|
34
|
+
quality: core.serialization.number().optional(),
|
|
35
|
+
timestamp: core.serialization.number().optional(),
|
|
36
|
+
desiredOutputValue: core.serialization.property("desired_output_value", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
37
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
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 WorkflowExecutionActualStringRequest: core.serialization.ObjectSchema<serializers.WorkflowExecutionActualStringRequest.Raw, Vellum.WorkflowExecutionActualStringRequest>;
|
|
8
|
+
export declare namespace WorkflowExecutionActualStringRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
output_id?: string | null;
|
|
11
|
+
output_key?: string | null;
|
|
12
|
+
quality?: number | null;
|
|
13
|
+
timestamp?: number | null;
|
|
14
|
+
desired_output_value?: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.WorkflowExecutionActualStringRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.WorkflowExecutionActualStringRequest = core.serialization.object({
|
|
32
|
+
outputId: core.serialization.property("output_id", core.serialization.string().optional()),
|
|
33
|
+
outputKey: core.serialization.property("output_key", core.serialization.string().optional()),
|
|
34
|
+
quality: core.serialization.number().optional(),
|
|
35
|
+
timestamp: core.serialization.number().optional(),
|
|
36
|
+
desiredOutputValue: core.serialization.property("desired_output_value", core.serialization.string().optional()),
|
|
37
|
+
});
|
|
@@ -90,6 +90,7 @@ export * from "./SearchWeightsRequest";
|
|
|
90
90
|
export * from "./SlimDocument";
|
|
91
91
|
export * from "./SubmitCompletionActualRequest";
|
|
92
92
|
export * from "./SubmitCompletionActualsErrorResponse";
|
|
93
|
+
export * from "./SubmitWorkflowExecutionActualRequest";
|
|
93
94
|
export * from "./TemplatingNodeChatHistoryResult";
|
|
94
95
|
export * from "./TemplatingNodeJsonResult";
|
|
95
96
|
export * from "./TemplatingNodeResult";
|
|
@@ -110,6 +111,9 @@ export * from "./UploadDocumentResponse";
|
|
|
110
111
|
export * from "./VellumVariable";
|
|
111
112
|
export * from "./VellumVariableType";
|
|
112
113
|
export * from "./WorkflowEventError";
|
|
114
|
+
export * from "./WorkflowExecutionActualChatHistoryRequest";
|
|
115
|
+
export * from "./WorkflowExecutionActualJsonRequest";
|
|
116
|
+
export * from "./WorkflowExecutionActualStringRequest";
|
|
113
117
|
export * from "./WorkflowExecutionEventErrorCode";
|
|
114
118
|
export * from "./WorkflowExecutionEventType";
|
|
115
119
|
export * from "./WorkflowExecutionNodeResultEvent";
|
|
@@ -106,6 +106,7 @@ __exportStar(require("./SearchWeightsRequest"), exports);
|
|
|
106
106
|
__exportStar(require("./SlimDocument"), exports);
|
|
107
107
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
108
108
|
__exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
|
|
109
|
+
__exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
|
|
109
110
|
__exportStar(require("./TemplatingNodeChatHistoryResult"), exports);
|
|
110
111
|
__exportStar(require("./TemplatingNodeJsonResult"), exports);
|
|
111
112
|
__exportStar(require("./TemplatingNodeResult"), exports);
|
|
@@ -126,6 +127,9 @@ __exportStar(require("./UploadDocumentResponse"), exports);
|
|
|
126
127
|
__exportStar(require("./VellumVariable"), exports);
|
|
127
128
|
__exportStar(require("./VellumVariableType"), exports);
|
|
128
129
|
__exportStar(require("./WorkflowEventError"), exports);
|
|
130
|
+
__exportStar(require("./WorkflowExecutionActualChatHistoryRequest"), exports);
|
|
131
|
+
__exportStar(require("./WorkflowExecutionActualJsonRequest"), exports);
|
|
132
|
+
__exportStar(require("./WorkflowExecutionActualStringRequest"), exports);
|
|
129
133
|
__exportStar(require("./WorkflowExecutionEventErrorCode"), exports);
|
|
130
134
|
__exportStar(require("./WorkflowExecutionEventType"), exports);
|
|
131
135
|
__exportStar(require("./WorkflowExecutionNodeResultEvent"), exports);
|