vellum-ai 1.1.1 → 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.
Files changed (179) hide show
  1. package/Client.js +11 -11
  2. package/api/resources/adHoc/client/Client.js +2 -2
  3. package/api/resources/containerImages/client/Client.js +4 -4
  4. package/api/resources/deployments/client/Client.js +8 -8
  5. package/api/resources/documentIndexes/client/Client.js +8 -8
  6. package/api/resources/documents/client/Client.js +5 -5
  7. package/api/resources/folderEntities/client/Client.js +2 -2
  8. package/api/resources/metricDefinitions/client/Client.js +2 -2
  9. package/api/resources/mlModels/client/Client.js +1 -1
  10. package/api/resources/organizations/client/Client.js +1 -1
  11. package/api/resources/prompts/client/Client.js +2 -2
  12. package/api/resources/sandboxes/client/Client.js +3 -3
  13. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  14. package/api/resources/testSuites/client/Client.js +4 -4
  15. package/api/resources/workflowDeployments/client/Client.js +9 -9
  16. package/api/resources/workflowExecutions/client/Client.js +1 -1
  17. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  18. package/api/resources/workflows/client/Client.js +2 -2
  19. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  20. package/api/resources/workspaces/client/Client.js +1 -1
  21. package/api/types/ArrayChatMessageContentItem.d.ts +1 -1
  22. package/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
  23. package/api/types/ChatMessageContent.d.ts +1 -1
  24. package/api/types/ChatMessageContentRequest.d.ts +1 -1
  25. package/api/types/NodeExecutionSpan.d.ts +1 -0
  26. package/api/types/PromptBlock.d.ts +1 -1
  27. package/api/types/VellumValue.d.ts +1 -1
  28. package/api/types/VellumValueRequest.d.ts +1 -1
  29. package/api/types/VellumVariableType.d.ts +5 -3
  30. package/api/types/VellumVariableType.js +2 -1
  31. package/api/types/VellumVideo.d.ts +8 -0
  32. package/api/types/VellumVideo.js +5 -0
  33. package/api/types/VellumVideoRequest.d.ts +8 -0
  34. package/api/types/VellumVideoRequest.js +5 -0
  35. package/api/types/VideoChatMessageContent.d.ts +11 -0
  36. package/api/types/VideoChatMessageContent.js +5 -0
  37. package/api/types/VideoChatMessageContentRequest.d.ts +11 -0
  38. package/api/types/VideoChatMessageContentRequest.js +5 -0
  39. package/api/types/VideoPromptBlock.d.ts +14 -0
  40. package/api/types/VideoPromptBlock.js +5 -0
  41. package/api/types/VideoVellumValue.d.ts +11 -0
  42. package/api/types/VideoVellumValue.js +5 -0
  43. package/api/types/VideoVellumValueRequest.d.ts +11 -0
  44. package/api/types/VideoVellumValueRequest.js +5 -0
  45. package/api/types/WorkflowExecutionSpan.d.ts +1 -0
  46. package/api/types/WorkflowExecutionUsageCalculationFulfilledBody.d.ts +8 -0
  47. package/api/types/WorkflowExecutionUsageCalculationFulfilledBody.js +5 -0
  48. package/api/types/index.d.ts +8 -0
  49. package/api/types/index.js +8 -0
  50. package/dist/Client.js +11 -11
  51. package/dist/api/resources/adHoc/client/Client.js +2 -2
  52. package/dist/api/resources/containerImages/client/Client.js +4 -4
  53. package/dist/api/resources/deployments/client/Client.js +8 -8
  54. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  55. package/dist/api/resources/documents/client/Client.js +5 -5
  56. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  57. package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
  58. package/dist/api/resources/mlModels/client/Client.js +1 -1
  59. package/dist/api/resources/organizations/client/Client.js +1 -1
  60. package/dist/api/resources/prompts/client/Client.js +2 -2
  61. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  62. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  63. package/dist/api/resources/testSuites/client/Client.js +4 -4
  64. package/dist/api/resources/workflowDeployments/client/Client.js +9 -9
  65. package/dist/api/resources/workflowExecutions/client/Client.js +1 -1
  66. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  67. package/dist/api/resources/workflows/client/Client.js +2 -2
  68. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  69. package/dist/api/resources/workspaces/client/Client.js +1 -1
  70. package/dist/api/types/ArrayChatMessageContentItem.d.ts +1 -1
  71. package/dist/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
  72. package/dist/api/types/ChatMessageContent.d.ts +1 -1
  73. package/dist/api/types/ChatMessageContentRequest.d.ts +1 -1
  74. package/dist/api/types/NodeExecutionSpan.d.ts +1 -0
  75. package/dist/api/types/PromptBlock.d.ts +1 -1
  76. package/dist/api/types/VellumValue.d.ts +1 -1
  77. package/dist/api/types/VellumValueRequest.d.ts +1 -1
  78. package/dist/api/types/VellumVariableType.d.ts +5 -3
  79. package/dist/api/types/VellumVariableType.js +2 -1
  80. package/dist/api/types/VellumVideo.d.ts +8 -0
  81. package/dist/api/types/VellumVideo.js +5 -0
  82. package/dist/api/types/VellumVideoRequest.d.ts +8 -0
  83. package/dist/api/types/VellumVideoRequest.js +5 -0
  84. package/dist/api/types/VideoChatMessageContent.d.ts +11 -0
  85. package/dist/api/types/VideoChatMessageContent.js +5 -0
  86. package/dist/api/types/VideoChatMessageContentRequest.d.ts +11 -0
  87. package/dist/api/types/VideoChatMessageContentRequest.js +5 -0
  88. package/dist/api/types/VideoPromptBlock.d.ts +14 -0
  89. package/dist/api/types/VideoPromptBlock.js +5 -0
  90. package/dist/api/types/VideoVellumValue.d.ts +11 -0
  91. package/dist/api/types/VideoVellumValue.js +5 -0
  92. package/dist/api/types/VideoVellumValueRequest.d.ts +11 -0
  93. package/dist/api/types/VideoVellumValueRequest.js +5 -0
  94. package/dist/api/types/WorkflowExecutionSpan.d.ts +1 -0
  95. package/dist/api/types/WorkflowExecutionUsageCalculationFulfilledBody.d.ts +8 -0
  96. package/dist/api/types/WorkflowExecutionUsageCalculationFulfilledBody.js +5 -0
  97. package/dist/api/types/index.d.ts +8 -0
  98. package/dist/api/types/index.js +8 -0
  99. package/dist/serialization/types/ArrayChatMessageContentItem.d.ts +3 -2
  100. package/dist/serialization/types/ArrayChatMessageContentItem.js +4 -2
  101. package/dist/serialization/types/ArrayChatMessageContentItemRequest.d.ts +3 -2
  102. package/dist/serialization/types/ArrayChatMessageContentItemRequest.js +4 -2
  103. package/dist/serialization/types/ChatMessageContent.d.ts +3 -2
  104. package/dist/serialization/types/ChatMessageContent.js +4 -2
  105. package/dist/serialization/types/ChatMessageContentRequest.d.ts +3 -2
  106. package/dist/serialization/types/ChatMessageContentRequest.js +4 -2
  107. package/dist/serialization/types/NodeExecutionSpan.d.ts +2 -0
  108. package/dist/serialization/types/NodeExecutionSpan.js +2 -0
  109. package/dist/serialization/types/PromptBlock.d.ts +3 -2
  110. package/dist/serialization/types/PromptBlock.js +4 -2
  111. package/dist/serialization/types/VellumValue.d.ts +3 -2
  112. package/dist/serialization/types/VellumValue.js +4 -2
  113. package/dist/serialization/types/VellumValueRequest.d.ts +3 -2
  114. package/dist/serialization/types/VellumValueRequest.js +4 -2
  115. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  116. package/dist/serialization/types/VellumVariableType.js +2 -1
  117. package/dist/serialization/types/VellumVideo.d.ts +13 -0
  118. package/dist/serialization/types/VellumVideo.js +46 -0
  119. package/dist/serialization/types/VellumVideoRequest.d.ts +13 -0
  120. package/dist/serialization/types/VellumVideoRequest.js +44 -0
  121. package/dist/serialization/types/VideoChatMessageContent.d.ts +14 -0
  122. package/dist/serialization/types/VideoChatMessageContent.js +45 -0
  123. package/dist/serialization/types/VideoChatMessageContentRequest.d.ts +14 -0
  124. package/dist/serialization/types/VideoChatMessageContentRequest.js +45 -0
  125. package/dist/serialization/types/VideoPromptBlock.d.ts +18 -0
  126. package/dist/serialization/types/VideoPromptBlock.js +49 -0
  127. package/dist/serialization/types/VideoVellumValue.d.ts +14 -0
  128. package/dist/serialization/types/VideoVellumValue.js +45 -0
  129. package/dist/serialization/types/VideoVellumValueRequest.d.ts +14 -0
  130. package/dist/serialization/types/VideoVellumValueRequest.js +45 -0
  131. package/dist/serialization/types/WorkflowExecutionSpan.d.ts +2 -0
  132. package/dist/serialization/types/WorkflowExecutionSpan.js +2 -0
  133. package/dist/serialization/types/WorkflowExecutionUsageCalculationFulfilledBody.d.ts +15 -0
  134. package/dist/serialization/types/WorkflowExecutionUsageCalculationFulfilledBody.js +46 -0
  135. package/dist/serialization/types/index.d.ts +8 -0
  136. package/dist/serialization/types/index.js +8 -0
  137. package/dist/version.d.ts +1 -1
  138. package/dist/version.js +1 -1
  139. package/package.json +1 -1
  140. package/serialization/types/ArrayChatMessageContentItem.d.ts +3 -2
  141. package/serialization/types/ArrayChatMessageContentItem.js +4 -2
  142. package/serialization/types/ArrayChatMessageContentItemRequest.d.ts +3 -2
  143. package/serialization/types/ArrayChatMessageContentItemRequest.js +4 -2
  144. package/serialization/types/ChatMessageContent.d.ts +3 -2
  145. package/serialization/types/ChatMessageContent.js +4 -2
  146. package/serialization/types/ChatMessageContentRequest.d.ts +3 -2
  147. package/serialization/types/ChatMessageContentRequest.js +4 -2
  148. package/serialization/types/NodeExecutionSpan.d.ts +2 -0
  149. package/serialization/types/NodeExecutionSpan.js +2 -0
  150. package/serialization/types/PromptBlock.d.ts +3 -2
  151. package/serialization/types/PromptBlock.js +4 -2
  152. package/serialization/types/VellumValue.d.ts +3 -2
  153. package/serialization/types/VellumValue.js +4 -2
  154. package/serialization/types/VellumValueRequest.d.ts +3 -2
  155. package/serialization/types/VellumValueRequest.js +4 -2
  156. package/serialization/types/VellumVariableType.d.ts +1 -1
  157. package/serialization/types/VellumVariableType.js +2 -1
  158. package/serialization/types/VellumVideo.d.ts +13 -0
  159. package/serialization/types/VellumVideo.js +46 -0
  160. package/serialization/types/VellumVideoRequest.d.ts +13 -0
  161. package/serialization/types/VellumVideoRequest.js +44 -0
  162. package/serialization/types/VideoChatMessageContent.d.ts +14 -0
  163. package/serialization/types/VideoChatMessageContent.js +45 -0
  164. package/serialization/types/VideoChatMessageContentRequest.d.ts +14 -0
  165. package/serialization/types/VideoChatMessageContentRequest.js +45 -0
  166. package/serialization/types/VideoPromptBlock.d.ts +18 -0
  167. package/serialization/types/VideoPromptBlock.js +49 -0
  168. package/serialization/types/VideoVellumValue.d.ts +14 -0
  169. package/serialization/types/VideoVellumValue.js +45 -0
  170. package/serialization/types/VideoVellumValueRequest.d.ts +14 -0
  171. package/serialization/types/VideoVellumValueRequest.js +45 -0
  172. package/serialization/types/WorkflowExecutionSpan.d.ts +2 -0
  173. package/serialization/types/WorkflowExecutionSpan.js +2 -0
  174. package/serialization/types/WorkflowExecutionUsageCalculationFulfilledBody.d.ts +15 -0
  175. package/serialization/types/WorkflowExecutionUsageCalculationFulfilledBody.js +46 -0
  176. package/serialization/types/index.d.ts +8 -0
  177. package/serialization/types/index.js +8 -0
  178. package/version.d.ts +1 -1
  179. 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";
1
+ export declare const SDK_VERSION = "1.1.3";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.1.1";
4
+ exports.SDK_VERSION = "1.1.3";