vellum-ai 1.1.2 → 1.1.3
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.js +11 -11
- package/api/resources/adHoc/client/Client.js +2 -2
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +8 -8
- 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.js +2 -2
- package/api/resources/mlModels/client/Client.js +1 -1
- package/api/resources/organizations/client/Client.js +1 -1
- package/api/resources/prompts/client/Client.js +2 -2
- 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 +9 -9
- package/api/resources/workflowExecutions/client/Client.js +1 -1
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/resources/workflows/client/Client.js +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/types/ArrayChatMessageContentItem.d.ts +1 -1
- package/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
- package/api/types/ChatMessageContent.d.ts +1 -1
- package/api/types/ChatMessageContentRequest.d.ts +1 -1
- package/api/types/NodeExecutionSpan.d.ts +1 -0
- package/api/types/PromptBlock.d.ts +1 -1
- package/api/types/VellumValue.d.ts +1 -1
- package/api/types/VellumValueRequest.d.ts +1 -1
- package/api/types/VellumVariableType.d.ts +5 -3
- package/api/types/VellumVariableType.js +2 -1
- package/api/types/VellumVideo.d.ts +8 -0
- package/api/types/VellumVideo.js +5 -0
- package/api/types/VellumVideoRequest.d.ts +8 -0
- package/api/types/VellumVideoRequest.js +5 -0
- package/api/types/VideoChatMessageContent.d.ts +11 -0
- package/api/types/VideoChatMessageContent.js +5 -0
- package/api/types/VideoChatMessageContentRequest.d.ts +11 -0
- package/api/types/VideoChatMessageContentRequest.js +5 -0
- package/api/types/VideoPromptBlock.d.ts +14 -0
- package/api/types/VideoPromptBlock.js +5 -0
- package/api/types/VideoVellumValue.d.ts +11 -0
- package/api/types/VideoVellumValue.js +5 -0
- package/api/types/VideoVellumValueRequest.d.ts +11 -0
- package/api/types/VideoVellumValueRequest.js +5 -0
- package/api/types/WorkflowExecutionSpan.d.ts +1 -0
- package/api/types/WorkflowExecutionUsageCalculationFulfilledBody.d.ts +8 -0
- package/api/types/WorkflowExecutionUsageCalculationFulfilledBody.js +5 -0
- package/api/types/index.d.ts +8 -0
- package/api/types/index.js +8 -0
- package/dist/Client.js +11 -11
- package/dist/api/resources/adHoc/client/Client.js +2 -2
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +8 -8
- 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.js +2 -2
- package/dist/api/resources/mlModels/client/Client.js +1 -1
- package/dist/api/resources/organizations/client/Client.js +1 -1
- package/dist/api/resources/prompts/client/Client.js +2 -2
- 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 +9 -9
- package/dist/api/resources/workflowExecutions/client/Client.js +1 -1
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/resources/workflows/client/Client.js +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/types/ArrayChatMessageContentItem.d.ts +1 -1
- package/dist/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
- package/dist/api/types/ChatMessageContent.d.ts +1 -1
- package/dist/api/types/ChatMessageContentRequest.d.ts +1 -1
- package/dist/api/types/NodeExecutionSpan.d.ts +1 -0
- package/dist/api/types/PromptBlock.d.ts +1 -1
- package/dist/api/types/VellumValue.d.ts +1 -1
- package/dist/api/types/VellumValueRequest.d.ts +1 -1
- package/dist/api/types/VellumVariableType.d.ts +5 -3
- package/dist/api/types/VellumVariableType.js +2 -1
- package/dist/api/types/VellumVideo.d.ts +8 -0
- package/dist/api/types/VellumVideo.js +5 -0
- package/dist/api/types/VellumVideoRequest.d.ts +8 -0
- package/dist/api/types/VellumVideoRequest.js +5 -0
- package/dist/api/types/VideoChatMessageContent.d.ts +11 -0
- package/dist/api/types/VideoChatMessageContent.js +5 -0
- package/dist/api/types/VideoChatMessageContentRequest.d.ts +11 -0
- package/dist/api/types/VideoChatMessageContentRequest.js +5 -0
- package/dist/api/types/VideoPromptBlock.d.ts +14 -0
- package/dist/api/types/VideoPromptBlock.js +5 -0
- package/dist/api/types/VideoVellumValue.d.ts +11 -0
- package/dist/api/types/VideoVellumValue.js +5 -0
- package/dist/api/types/VideoVellumValueRequest.d.ts +11 -0
- package/dist/api/types/VideoVellumValueRequest.js +5 -0
- package/dist/api/types/WorkflowExecutionSpan.d.ts +1 -0
- package/dist/api/types/WorkflowExecutionUsageCalculationFulfilledBody.d.ts +8 -0
- package/dist/api/types/WorkflowExecutionUsageCalculationFulfilledBody.js +5 -0
- package/dist/api/types/index.d.ts +8 -0
- package/dist/api/types/index.js +8 -0
- package/dist/serialization/types/ArrayChatMessageContentItem.d.ts +3 -2
- package/dist/serialization/types/ArrayChatMessageContentItem.js +4 -2
- package/dist/serialization/types/ArrayChatMessageContentItemRequest.d.ts +3 -2
- package/dist/serialization/types/ArrayChatMessageContentItemRequest.js +4 -2
- package/dist/serialization/types/ChatMessageContent.d.ts +3 -2
- package/dist/serialization/types/ChatMessageContent.js +4 -2
- package/dist/serialization/types/ChatMessageContentRequest.d.ts +3 -2
- package/dist/serialization/types/ChatMessageContentRequest.js +4 -2
- package/dist/serialization/types/NodeExecutionSpan.d.ts +2 -0
- package/dist/serialization/types/NodeExecutionSpan.js +2 -0
- package/dist/serialization/types/PromptBlock.d.ts +3 -2
- package/dist/serialization/types/PromptBlock.js +4 -2
- package/dist/serialization/types/VellumValue.d.ts +3 -2
- package/dist/serialization/types/VellumValue.js +4 -2
- package/dist/serialization/types/VellumValueRequest.d.ts +3 -2
- package/dist/serialization/types/VellumValueRequest.js +4 -2
- package/dist/serialization/types/VellumVariableType.d.ts +1 -1
- package/dist/serialization/types/VellumVariableType.js +2 -1
- package/dist/serialization/types/VellumVideo.d.ts +13 -0
- package/dist/serialization/types/VellumVideo.js +46 -0
- package/dist/serialization/types/VellumVideoRequest.d.ts +13 -0
- package/dist/serialization/types/VellumVideoRequest.js +44 -0
- package/dist/serialization/types/VideoChatMessageContent.d.ts +14 -0
- package/dist/serialization/types/VideoChatMessageContent.js +45 -0
- package/dist/serialization/types/VideoChatMessageContentRequest.d.ts +14 -0
- package/dist/serialization/types/VideoChatMessageContentRequest.js +45 -0
- package/dist/serialization/types/VideoPromptBlock.d.ts +18 -0
- package/dist/serialization/types/VideoPromptBlock.js +49 -0
- package/dist/serialization/types/VideoVellumValue.d.ts +14 -0
- package/dist/serialization/types/VideoVellumValue.js +45 -0
- package/dist/serialization/types/VideoVellumValueRequest.d.ts +14 -0
- package/dist/serialization/types/VideoVellumValueRequest.js +45 -0
- package/dist/serialization/types/WorkflowExecutionSpan.d.ts +2 -0
- package/dist/serialization/types/WorkflowExecutionSpan.js +2 -0
- package/dist/serialization/types/WorkflowExecutionUsageCalculationFulfilledBody.d.ts +15 -0
- package/dist/serialization/types/WorkflowExecutionUsageCalculationFulfilledBody.js +46 -0
- package/dist/serialization/types/index.d.ts +8 -0
- package/dist/serialization/types/index.js +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/ArrayChatMessageContentItem.d.ts +3 -2
- package/serialization/types/ArrayChatMessageContentItem.js +4 -2
- package/serialization/types/ArrayChatMessageContentItemRequest.d.ts +3 -2
- package/serialization/types/ArrayChatMessageContentItemRequest.js +4 -2
- package/serialization/types/ChatMessageContent.d.ts +3 -2
- package/serialization/types/ChatMessageContent.js +4 -2
- package/serialization/types/ChatMessageContentRequest.d.ts +3 -2
- package/serialization/types/ChatMessageContentRequest.js +4 -2
- package/serialization/types/NodeExecutionSpan.d.ts +2 -0
- package/serialization/types/NodeExecutionSpan.js +2 -0
- package/serialization/types/PromptBlock.d.ts +3 -2
- package/serialization/types/PromptBlock.js +4 -2
- package/serialization/types/VellumValue.d.ts +3 -2
- package/serialization/types/VellumValue.js +4 -2
- package/serialization/types/VellumValueRequest.d.ts +3 -2
- package/serialization/types/VellumValueRequest.js +4 -2
- package/serialization/types/VellumVariableType.d.ts +1 -1
- package/serialization/types/VellumVariableType.js +2 -1
- package/serialization/types/VellumVideo.d.ts +13 -0
- package/serialization/types/VellumVideo.js +46 -0
- package/serialization/types/VellumVideoRequest.d.ts +13 -0
- package/serialization/types/VellumVideoRequest.js +44 -0
- package/serialization/types/VideoChatMessageContent.d.ts +14 -0
- package/serialization/types/VideoChatMessageContent.js +45 -0
- package/serialization/types/VideoChatMessageContentRequest.d.ts +14 -0
- package/serialization/types/VideoChatMessageContentRequest.js +45 -0
- package/serialization/types/VideoPromptBlock.d.ts +18 -0
- package/serialization/types/VideoPromptBlock.js +49 -0
- package/serialization/types/VideoVellumValue.d.ts +14 -0
- package/serialization/types/VideoVellumValue.js +45 -0
- package/serialization/types/VideoVellumValueRequest.d.ts +14 -0
- package/serialization/types/VideoVellumValueRequest.js +45 -0
- package/serialization/types/WorkflowExecutionSpan.d.ts +2 -0
- package/serialization/types/WorkflowExecutionSpan.js +2 -0
- package/serialization/types/WorkflowExecutionUsageCalculationFulfilledBody.d.ts +15 -0
- package/serialization/types/WorkflowExecutionUsageCalculationFulfilledBody.js +46 -0
- package/serialization/types/index.d.ts +8 -0
- package/serialization/types/index.js +8 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.VellumVideoRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.VellumVideoRequest = core.serialization.object({
|
|
42
|
+
src: core.serialization.string(),
|
|
43
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optionalNullable(),
|
|
44
|
+
});
|
|
@@ -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 { VellumVideo } from "./VellumVideo";
|
|
8
|
+
export declare const VideoChatMessageContent: core.serialization.ObjectSchema<serializers.VideoChatMessageContent.Raw, Vellum.VideoChatMessageContent>;
|
|
9
|
+
export declare namespace VideoChatMessageContent {
|
|
10
|
+
interface Raw {
|
|
11
|
+
type: "VIDEO";
|
|
12
|
+
value: VellumVideo.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.VideoChatMessageContent = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const VellumVideo_1 = require("./VellumVideo");
|
|
42
|
+
exports.VideoChatMessageContent = core.serialization.object({
|
|
43
|
+
type: core.serialization.stringLiteral("VIDEO"),
|
|
44
|
+
value: VellumVideo_1.VellumVideo,
|
|
45
|
+
});
|
|
@@ -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 { VellumVideoRequest } from "./VellumVideoRequest";
|
|
8
|
+
export declare const VideoChatMessageContentRequest: core.serialization.ObjectSchema<serializers.VideoChatMessageContentRequest.Raw, Vellum.VideoChatMessageContentRequest>;
|
|
9
|
+
export declare namespace VideoChatMessageContentRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
type: "VIDEO";
|
|
12
|
+
value: VellumVideoRequest.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.VideoChatMessageContentRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const VellumVideoRequest_1 = require("./VellumVideoRequest");
|
|
42
|
+
exports.VideoChatMessageContentRequest = core.serialization.object({
|
|
43
|
+
type: core.serialization.stringLiteral("VIDEO"),
|
|
44
|
+
value: VellumVideoRequest_1.VellumVideoRequest,
|
|
45
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { PromptBlockState } from "./PromptBlockState";
|
|
8
|
+
import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
9
|
+
export declare const VideoPromptBlock: core.serialization.ObjectSchema<serializers.VideoPromptBlock.Raw, Vellum.VideoPromptBlock>;
|
|
10
|
+
export declare namespace VideoPromptBlock {
|
|
11
|
+
interface Raw {
|
|
12
|
+
block_type: "VIDEO";
|
|
13
|
+
state?: PromptBlockState.Raw | null;
|
|
14
|
+
cache_config?: (EphemeralPromptCacheConfig.Raw | null) | null;
|
|
15
|
+
src: string;
|
|
16
|
+
metadata?: (Record<string, unknown> | null) | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.VideoPromptBlock = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const PromptBlockState_1 = require("./PromptBlockState");
|
|
42
|
+
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
43
|
+
exports.VideoPromptBlock = core.serialization.object({
|
|
44
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VIDEO")),
|
|
45
|
+
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
46
|
+
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optionalNullable()),
|
|
47
|
+
src: core.serialization.string(),
|
|
48
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optionalNullable(),
|
|
49
|
+
});
|
|
@@ -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 { VellumVideo } from "./VellumVideo";
|
|
8
|
+
export declare const VideoVellumValue: core.serialization.ObjectSchema<serializers.VideoVellumValue.Raw, Vellum.VideoVellumValue>;
|
|
9
|
+
export declare namespace VideoVellumValue {
|
|
10
|
+
interface Raw {
|
|
11
|
+
type: "VIDEO";
|
|
12
|
+
value?: (VellumVideo.Raw | null) | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.VideoVellumValue = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const VellumVideo_1 = require("./VellumVideo");
|
|
42
|
+
exports.VideoVellumValue = core.serialization.object({
|
|
43
|
+
type: core.serialization.stringLiteral("VIDEO"),
|
|
44
|
+
value: VellumVideo_1.VellumVideo.optionalNullable(),
|
|
45
|
+
});
|
|
@@ -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 { VellumVideoRequest } from "./VellumVideoRequest";
|
|
8
|
+
export declare const VideoVellumValueRequest: core.serialization.ObjectSchema<serializers.VideoVellumValueRequest.Raw, Vellum.VideoVellumValueRequest>;
|
|
9
|
+
export declare namespace VideoVellumValueRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
type: "VIDEO";
|
|
12
|
+
value?: (VellumVideoRequest.Raw | null) | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.VideoVellumValueRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const VellumVideoRequest_1 = require("./VellumVideoRequest");
|
|
42
|
+
exports.VideoVellumValueRequest = core.serialization.object({
|
|
43
|
+
type: core.serialization.stringLiteral("VIDEO"),
|
|
44
|
+
value: VellumVideoRequest_1.VellumVideoRequest.optionalNullable(),
|
|
45
|
+
});
|
|
@@ -6,12 +6,14 @@ import * as Vellum from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { VellumWorkflowExecutionEvent } from "./VellumWorkflowExecutionEvent";
|
|
8
8
|
import { WorkflowExecutionSpanAttributes } from "./WorkflowExecutionSpanAttributes";
|
|
9
|
+
import { WorkflowExecutionUsageCalculationFulfilledBody } from "./WorkflowExecutionUsageCalculationFulfilledBody";
|
|
9
10
|
export declare const WorkflowExecutionSpan: core.serialization.ObjectSchema<serializers.WorkflowExecutionSpan.Raw, Vellum.WorkflowExecutionSpan>;
|
|
10
11
|
export declare namespace WorkflowExecutionSpan {
|
|
11
12
|
interface Raw {
|
|
12
13
|
name: "workflow.execution";
|
|
13
14
|
events: VellumWorkflowExecutionEvent.Raw[];
|
|
14
15
|
attributes: WorkflowExecutionSpanAttributes.Raw;
|
|
16
|
+
usage_result?: (WorkflowExecutionUsageCalculationFulfilledBody.Raw | null) | null;
|
|
15
17
|
span_id: string;
|
|
16
18
|
start_ts: string;
|
|
17
19
|
end_ts: string;
|
|
@@ -40,10 +40,12 @@ exports.WorkflowExecutionSpan = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const VellumWorkflowExecutionEvent_1 = require("./VellumWorkflowExecutionEvent");
|
|
42
42
|
const WorkflowExecutionSpanAttributes_1 = require("./WorkflowExecutionSpanAttributes");
|
|
43
|
+
const WorkflowExecutionUsageCalculationFulfilledBody_1 = require("./WorkflowExecutionUsageCalculationFulfilledBody");
|
|
43
44
|
exports.WorkflowExecutionSpan = core.serialization.object({
|
|
44
45
|
name: core.serialization.stringLiteral("workflow.execution"),
|
|
45
46
|
events: core.serialization.list(VellumWorkflowExecutionEvent_1.VellumWorkflowExecutionEvent),
|
|
46
47
|
attributes: WorkflowExecutionSpanAttributes_1.WorkflowExecutionSpanAttributes,
|
|
48
|
+
usageResult: core.serialization.property("usage_result", WorkflowExecutionUsageCalculationFulfilledBody_1.WorkflowExecutionUsageCalculationFulfilledBody.optionalNullable()),
|
|
47
49
|
spanId: core.serialization.property("span_id", core.serialization.string()),
|
|
48
50
|
startTs: core.serialization.property("start_ts", core.serialization.date()),
|
|
49
51
|
endTs: core.serialization.property("end_ts", core.serialization.date()),
|
|
@@ -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 { MlModelUsageWrapper } from "./MlModelUsageWrapper";
|
|
8
|
+
import { Price } from "./Price";
|
|
9
|
+
export declare const WorkflowExecutionUsageCalculationFulfilledBody: core.serialization.ObjectSchema<serializers.WorkflowExecutionUsageCalculationFulfilledBody.Raw, Vellum.WorkflowExecutionUsageCalculationFulfilledBody>;
|
|
10
|
+
export declare namespace WorkflowExecutionUsageCalculationFulfilledBody {
|
|
11
|
+
interface Raw {
|
|
12
|
+
usage: MlModelUsageWrapper.Raw[];
|
|
13
|
+
cost: Price.Raw[];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.WorkflowExecutionUsageCalculationFulfilledBody = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const MlModelUsageWrapper_1 = require("./MlModelUsageWrapper");
|
|
42
|
+
const Price_1 = require("./Price");
|
|
43
|
+
exports.WorkflowExecutionUsageCalculationFulfilledBody = core.serialization.object({
|
|
44
|
+
usage: core.serialization.list(MlModelUsageWrapper_1.MlModelUsageWrapper),
|
|
45
|
+
cost: core.serialization.list(Price_1.Price),
|
|
46
|
+
});
|
|
@@ -519,7 +519,14 @@ export * from "./VellumValueRequest";
|
|
|
519
519
|
export * from "./VellumVariable";
|
|
520
520
|
export * from "./VellumVariableExtensions";
|
|
521
521
|
export * from "./VellumVariableType";
|
|
522
|
+
export * from "./VellumVideo";
|
|
523
|
+
export * from "./VellumVideoRequest";
|
|
522
524
|
export * from "./VellumWorkflowExecutionEvent";
|
|
525
|
+
export * from "./VideoChatMessageContent";
|
|
526
|
+
export * from "./VideoChatMessageContentRequest";
|
|
527
|
+
export * from "./VideoPromptBlock";
|
|
528
|
+
export * from "./VideoVellumValue";
|
|
529
|
+
export * from "./VideoVellumValueRequest";
|
|
523
530
|
export * from "./WorkflowDeploymentEventExecutionsResponse";
|
|
524
531
|
export * from "./WorkflowDeploymentHistoryItem";
|
|
525
532
|
export * from "./WorkflowDeploymentParentContext";
|
|
@@ -556,6 +563,7 @@ export * from "./WorkflowExecutionStreamingBody";
|
|
|
556
563
|
export * from "./WorkflowExecutionStreamingEvent";
|
|
557
564
|
export * from "./WorkflowExecutionUsageCalculationError";
|
|
558
565
|
export * from "./WorkflowExecutionUsageCalculationErrorCodeEnum";
|
|
566
|
+
export * from "./WorkflowExecutionUsageCalculationFulfilledBody";
|
|
559
567
|
export * from "./WorkflowExecutionUsageResult";
|
|
560
568
|
export * from "./WorkflowExecutionViewOnlineEvalMetricResult";
|
|
561
569
|
export * from "./WorkflowExecutionWorkflowResultEvent";
|
|
@@ -535,7 +535,14 @@ __exportStar(require("./VellumValueRequest"), exports);
|
|
|
535
535
|
__exportStar(require("./VellumVariable"), exports);
|
|
536
536
|
__exportStar(require("./VellumVariableExtensions"), exports);
|
|
537
537
|
__exportStar(require("./VellumVariableType"), exports);
|
|
538
|
+
__exportStar(require("./VellumVideo"), exports);
|
|
539
|
+
__exportStar(require("./VellumVideoRequest"), exports);
|
|
538
540
|
__exportStar(require("./VellumWorkflowExecutionEvent"), exports);
|
|
541
|
+
__exportStar(require("./VideoChatMessageContent"), exports);
|
|
542
|
+
__exportStar(require("./VideoChatMessageContentRequest"), exports);
|
|
543
|
+
__exportStar(require("./VideoPromptBlock"), exports);
|
|
544
|
+
__exportStar(require("./VideoVellumValue"), exports);
|
|
545
|
+
__exportStar(require("./VideoVellumValueRequest"), exports);
|
|
539
546
|
__exportStar(require("./WorkflowDeploymentEventExecutionsResponse"), exports);
|
|
540
547
|
__exportStar(require("./WorkflowDeploymentHistoryItem"), exports);
|
|
541
548
|
__exportStar(require("./WorkflowDeploymentParentContext"), exports);
|
|
@@ -572,6 +579,7 @@ __exportStar(require("./WorkflowExecutionStreamingBody"), exports);
|
|
|
572
579
|
__exportStar(require("./WorkflowExecutionStreamingEvent"), exports);
|
|
573
580
|
__exportStar(require("./WorkflowExecutionUsageCalculationError"), exports);
|
|
574
581
|
__exportStar(require("./WorkflowExecutionUsageCalculationErrorCodeEnum"), exports);
|
|
582
|
+
__exportStar(require("./WorkflowExecutionUsageCalculationFulfilledBody"), exports);
|
|
575
583
|
__exportStar(require("./WorkflowExecutionUsageResult"), exports);
|
|
576
584
|
__exportStar(require("./WorkflowExecutionViewOnlineEvalMetricResult"), exports);
|
|
577
585
|
__exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.1.
|
|
1
|
+
export declare const SDK_VERSION = "1.1.3";
|
package/version.js
CHANGED