vellum-ai 0.14.49 → 0.14.51

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 (95) 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 +7 -7
  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/releaseReviews/client/Client.js +2 -2
  13. package/api/resources/sandboxes/client/Client.js +3 -3
  14. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  15. package/api/resources/testSuites/client/Client.js +4 -4
  16. package/api/resources/workflowDeployments/client/Client.js +8 -8
  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/DeploymentRead.d.ts +1 -1
  22. package/api/types/SlimWorkflowExecutionRead.d.ts +1 -1
  23. package/api/types/WorkflowEventExecutionRead.d.ts +1 -1
  24. package/api/types/WorkflowExecutionUsageCalculationError.d.ts +8 -0
  25. package/api/types/WorkflowExecutionUsageCalculationErrorCodeEnum.d.ts +16 -0
  26. package/api/types/WorkflowExecutionUsageCalculationErrorCodeEnum.js +12 -0
  27. package/api/types/WorkflowExecutionUsageResult.d.ts +9 -0
  28. package/api/types/index.d.ts +3 -1
  29. package/api/types/index.js +3 -1
  30. package/dist/Client.js +11 -11
  31. package/dist/api/resources/adHoc/client/Client.js +2 -2
  32. package/dist/api/resources/containerImages/client/Client.js +4 -4
  33. package/dist/api/resources/deployments/client/Client.js +7 -7
  34. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  35. package/dist/api/resources/documents/client/Client.js +5 -5
  36. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  37. package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
  38. package/dist/api/resources/mlModels/client/Client.js +1 -1
  39. package/dist/api/resources/organizations/client/Client.js +1 -1
  40. package/dist/api/resources/prompts/client/Client.js +2 -2
  41. package/dist/api/resources/releaseReviews/client/Client.js +2 -2
  42. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  43. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  44. package/dist/api/resources/testSuites/client/Client.js +4 -4
  45. package/dist/api/resources/workflowDeployments/client/Client.js +8 -8
  46. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  47. package/dist/api/resources/workflows/client/Client.js +2 -2
  48. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  49. package/dist/api/resources/workspaces/client/Client.js +1 -1
  50. package/dist/api/types/DeploymentRead.d.ts +1 -1
  51. package/dist/api/types/SlimWorkflowExecutionRead.d.ts +1 -1
  52. package/dist/api/types/WorkflowEventExecutionRead.d.ts +1 -1
  53. package/dist/api/types/WorkflowExecutionUsageCalculationError.d.ts +8 -0
  54. package/dist/api/types/WorkflowExecutionUsageCalculationError.js +5 -0
  55. package/dist/api/types/WorkflowExecutionUsageCalculationErrorCodeEnum.d.ts +16 -0
  56. package/dist/api/types/WorkflowExecutionUsageCalculationErrorCodeEnum.js +12 -0
  57. package/dist/api/types/WorkflowExecutionUsageResult.d.ts +9 -0
  58. package/dist/api/types/WorkflowExecutionUsageResult.js +5 -0
  59. package/dist/api/types/index.d.ts +3 -1
  60. package/dist/api/types/index.js +3 -1
  61. package/dist/serialization/types/SlimWorkflowExecutionRead.d.ts +2 -2
  62. package/dist/serialization/types/SlimWorkflowExecutionRead.js +2 -2
  63. package/dist/serialization/types/WorkflowEventExecutionRead.d.ts +2 -2
  64. package/dist/serialization/types/WorkflowEventExecutionRead.js +2 -2
  65. package/dist/serialization/types/WorkflowExecutionUsageCalculationError.d.ts +14 -0
  66. package/dist/serialization/types/WorkflowExecutionUsageCalculationError.js +45 -0
  67. package/dist/serialization/types/WorkflowExecutionUsageCalculationErrorCodeEnum.d.ts +10 -0
  68. package/dist/serialization/types/WorkflowExecutionUsageCalculationErrorCodeEnum.js +41 -0
  69. package/dist/serialization/types/WorkflowExecutionUsageResult.d.ts +17 -0
  70. package/dist/serialization/types/{WorkflowExecutionUsageCalculationFulfilledBody.js → WorkflowExecutionUsageResult.js} +6 -4
  71. package/dist/serialization/types/index.d.ts +3 -1
  72. package/dist/serialization/types/index.js +3 -1
  73. package/dist/version.d.ts +1 -1
  74. package/dist/version.js +1 -1
  75. package/package.json +1 -1
  76. package/serialization/types/SlimWorkflowExecutionRead.d.ts +2 -2
  77. package/serialization/types/SlimWorkflowExecutionRead.js +2 -2
  78. package/serialization/types/WorkflowEventExecutionRead.d.ts +2 -2
  79. package/serialization/types/WorkflowEventExecutionRead.js +2 -2
  80. package/serialization/types/WorkflowExecutionUsageCalculationError.d.ts +14 -0
  81. package/serialization/types/WorkflowExecutionUsageCalculationError.js +45 -0
  82. package/serialization/types/WorkflowExecutionUsageCalculationErrorCodeEnum.d.ts +10 -0
  83. package/serialization/types/WorkflowExecutionUsageCalculationErrorCodeEnum.js +41 -0
  84. package/serialization/types/WorkflowExecutionUsageResult.d.ts +17 -0
  85. package/serialization/types/{WorkflowExecutionUsageCalculationFulfilledBody.js → WorkflowExecutionUsageResult.js} +6 -4
  86. package/serialization/types/index.d.ts +3 -1
  87. package/serialization/types/index.js +3 -1
  88. package/version.d.ts +1 -1
  89. package/version.js +1 -1
  90. package/api/types/WorkflowExecutionUsageCalculationFulfilledBody.d.ts +0 -8
  91. package/dist/api/types/WorkflowExecutionUsageCalculationFulfilledBody.d.ts +0 -8
  92. package/dist/serialization/types/WorkflowExecutionUsageCalculationFulfilledBody.d.ts +0 -15
  93. package/serialization/types/WorkflowExecutionUsageCalculationFulfilledBody.d.ts +0 -15
  94. /package/api/types/{WorkflowExecutionUsageCalculationFulfilledBody.js → WorkflowExecutionUsageCalculationError.js} +0 -0
  95. /package/{dist/api/types/WorkflowExecutionUsageCalculationFulfilledBody.js → api/types/WorkflowExecutionUsageResult.js} +0 -0
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * * `UNKNOWN` - UNKNOWN
6
+ * * `DEPENDENCIES_FAILED` - DEPENDENCIES_FAILED
7
+ * * `NO_USAGE_CALCULATED` - NO_USAGE_CALCULATED
8
+ * * `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
9
+ */
10
+ export type WorkflowExecutionUsageCalculationErrorCodeEnum = "UNKNOWN" | "DEPENDENCIES_FAILED" | "NO_USAGE_CALCULATED" | "INTERNAL_SERVER_ERROR";
11
+ export declare const WorkflowExecutionUsageCalculationErrorCodeEnum: {
12
+ readonly Unknown: "UNKNOWN";
13
+ readonly DependenciesFailed: "DEPENDENCIES_FAILED";
14
+ readonly NoUsageCalculated: "NO_USAGE_CALCULATED";
15
+ readonly InternalServerError: "INTERNAL_SERVER_ERROR";
16
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.WorkflowExecutionUsageCalculationErrorCodeEnum = void 0;
7
+ exports.WorkflowExecutionUsageCalculationErrorCodeEnum = {
8
+ Unknown: "UNKNOWN",
9
+ DependenciesFailed: "DEPENDENCIES_FAILED",
10
+ NoUsageCalculated: "NO_USAGE_CALCULATED",
11
+ InternalServerError: "INTERNAL_SERVER_ERROR",
12
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface WorkflowExecutionUsageResult {
6
+ usage?: Vellum.MlModelUsageWrapper[];
7
+ cost?: Vellum.Price[];
8
+ error?: Vellum.WorkflowExecutionUsageCalculationError;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -538,7 +538,9 @@ export * from "./WorkflowExecutionSpan";
538
538
  export * from "./WorkflowExecutionSpanAttributes";
539
539
  export * from "./WorkflowExecutionStreamingBody";
540
540
  export * from "./WorkflowExecutionStreamingEvent";
541
- export * from "./WorkflowExecutionUsageCalculationFulfilledBody";
541
+ export * from "./WorkflowExecutionUsageCalculationError";
542
+ export * from "./WorkflowExecutionUsageCalculationErrorCodeEnum";
543
+ export * from "./WorkflowExecutionUsageResult";
542
544
  export * from "./WorkflowExecutionViewOnlineEvalMetricResult";
543
545
  export * from "./WorkflowExecutionWorkflowResultEvent";
544
546
  export * from "./WorkflowExpandMetaRequest";
@@ -554,7 +554,9 @@ __exportStar(require("./WorkflowExecutionSpan"), exports);
554
554
  __exportStar(require("./WorkflowExecutionSpanAttributes"), exports);
555
555
  __exportStar(require("./WorkflowExecutionStreamingBody"), exports);
556
556
  __exportStar(require("./WorkflowExecutionStreamingEvent"), exports);
557
- __exportStar(require("./WorkflowExecutionUsageCalculationFulfilledBody"), exports);
557
+ __exportStar(require("./WorkflowExecutionUsageCalculationError"), exports);
558
+ __exportStar(require("./WorkflowExecutionUsageCalculationErrorCodeEnum"), exports);
559
+ __exportStar(require("./WorkflowExecutionUsageResult"), exports);
558
560
  __exportStar(require("./WorkflowExecutionViewOnlineEvalMetricResult"), exports);
559
561
  __exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
560
562
  __exportStar(require("./WorkflowExpandMetaRequest"), exports);
@@ -8,7 +8,7 @@ import { ExecutionVellumValue } from "./ExecutionVellumValue";
8
8
  import { WorkflowError } from "./WorkflowError";
9
9
  import { WorkflowExecutionActual } from "./WorkflowExecutionActual";
10
10
  import { WorkflowExecutionViewOnlineEvalMetricResult } from "./WorkflowExecutionViewOnlineEvalMetricResult";
11
- import { WorkflowExecutionUsageCalculationFulfilledBody } from "./WorkflowExecutionUsageCalculationFulfilledBody";
11
+ import { WorkflowExecutionUsageResult } from "./WorkflowExecutionUsageResult";
12
12
  export declare const SlimWorkflowExecutionRead: core.serialization.ObjectSchema<serializers.SlimWorkflowExecutionRead.Raw, Vellum.SlimWorkflowExecutionRead>;
13
13
  export declare namespace SlimWorkflowExecutionRead {
14
14
  interface Raw {
@@ -21,6 +21,6 @@ export declare namespace SlimWorkflowExecutionRead {
21
21
  error?: WorkflowError.Raw | null;
22
22
  latest_actual?: WorkflowExecutionActual.Raw | null;
23
23
  metric_results: WorkflowExecutionViewOnlineEvalMetricResult.Raw[];
24
- usage_results: WorkflowExecutionUsageCalculationFulfilledBody.Raw[];
24
+ usage_results?: WorkflowExecutionUsageResult.Raw[] | null;
25
25
  }
26
26
  }
@@ -43,7 +43,7 @@ const ExecutionVellumValue_1 = require("./ExecutionVellumValue");
43
43
  const WorkflowError_1 = require("./WorkflowError");
44
44
  const WorkflowExecutionActual_1 = require("./WorkflowExecutionActual");
45
45
  const WorkflowExecutionViewOnlineEvalMetricResult_1 = require("./WorkflowExecutionViewOnlineEvalMetricResult");
46
- const WorkflowExecutionUsageCalculationFulfilledBody_1 = require("./WorkflowExecutionUsageCalculationFulfilledBody");
46
+ const WorkflowExecutionUsageResult_1 = require("./WorkflowExecutionUsageResult");
47
47
  exports.SlimWorkflowExecutionRead = core.serialization.object({
48
48
  spanId: core.serialization.property("span_id", core.serialization.string()),
49
49
  parentContext: core.serialization.property("parent_context", core.serialization.lazyObject(() => serializers.WorkflowDeploymentParentContext).optional()),
@@ -54,5 +54,5 @@ exports.SlimWorkflowExecutionRead = core.serialization.object({
54
54
  error: WorkflowError_1.WorkflowError.optional(),
55
55
  latestActual: core.serialization.property("latest_actual", WorkflowExecutionActual_1.WorkflowExecutionActual.optional()),
56
56
  metricResults: core.serialization.property("metric_results", core.serialization.list(WorkflowExecutionViewOnlineEvalMetricResult_1.WorkflowExecutionViewOnlineEvalMetricResult)),
57
- usageResults: core.serialization.property("usage_results", core.serialization.list(WorkflowExecutionUsageCalculationFulfilledBody_1.WorkflowExecutionUsageCalculationFulfilledBody)),
57
+ usageResults: core.serialization.property("usage_results", core.serialization.list(WorkflowExecutionUsageResult_1.WorkflowExecutionUsageResult).optional()),
58
58
  });
@@ -8,7 +8,7 @@ import { ExecutionVellumValue } from "./ExecutionVellumValue";
8
8
  import { WorkflowError } from "./WorkflowError";
9
9
  import { WorkflowExecutionActual } from "./WorkflowExecutionActual";
10
10
  import { WorkflowExecutionViewOnlineEvalMetricResult } from "./WorkflowExecutionViewOnlineEvalMetricResult";
11
- import { WorkflowExecutionUsageCalculationFulfilledBody } from "./WorkflowExecutionUsageCalculationFulfilledBody";
11
+ import { WorkflowExecutionUsageResult } from "./WorkflowExecutionUsageResult";
12
12
  import { VellumSpan } from "./VellumSpan";
13
13
  export declare const WorkflowEventExecutionRead: core.serialization.ObjectSchema<serializers.WorkflowEventExecutionRead.Raw, Vellum.WorkflowEventExecutionRead>;
14
14
  export declare namespace WorkflowEventExecutionRead {
@@ -22,7 +22,7 @@ export declare namespace WorkflowEventExecutionRead {
22
22
  error?: WorkflowError.Raw | null;
23
23
  latest_actual?: WorkflowExecutionActual.Raw | null;
24
24
  metric_results: WorkflowExecutionViewOnlineEvalMetricResult.Raw[];
25
- usage_results: WorkflowExecutionUsageCalculationFulfilledBody.Raw[];
25
+ usage_results?: WorkflowExecutionUsageResult.Raw[] | null;
26
26
  spans: VellumSpan.Raw[];
27
27
  }
28
28
  }
@@ -43,7 +43,7 @@ const ExecutionVellumValue_1 = require("./ExecutionVellumValue");
43
43
  const WorkflowError_1 = require("./WorkflowError");
44
44
  const WorkflowExecutionActual_1 = require("./WorkflowExecutionActual");
45
45
  const WorkflowExecutionViewOnlineEvalMetricResult_1 = require("./WorkflowExecutionViewOnlineEvalMetricResult");
46
- const WorkflowExecutionUsageCalculationFulfilledBody_1 = require("./WorkflowExecutionUsageCalculationFulfilledBody");
46
+ const WorkflowExecutionUsageResult_1 = require("./WorkflowExecutionUsageResult");
47
47
  const VellumSpan_1 = require("./VellumSpan");
48
48
  exports.WorkflowEventExecutionRead = core.serialization.object({
49
49
  spanId: core.serialization.property("span_id", core.serialization.string()),
@@ -55,6 +55,6 @@ exports.WorkflowEventExecutionRead = core.serialization.object({
55
55
  error: WorkflowError_1.WorkflowError.optional(),
56
56
  latestActual: core.serialization.property("latest_actual", WorkflowExecutionActual_1.WorkflowExecutionActual.optional()),
57
57
  metricResults: core.serialization.property("metric_results", core.serialization.list(WorkflowExecutionViewOnlineEvalMetricResult_1.WorkflowExecutionViewOnlineEvalMetricResult)),
58
- usageResults: core.serialization.property("usage_results", core.serialization.list(WorkflowExecutionUsageCalculationFulfilledBody_1.WorkflowExecutionUsageCalculationFulfilledBody)),
58
+ usageResults: core.serialization.property("usage_results", core.serialization.list(WorkflowExecutionUsageResult_1.WorkflowExecutionUsageResult).optional()),
59
59
  spans: core.serialization.list(VellumSpan_1.VellumSpan),
60
60
  });
@@ -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 { WorkflowExecutionUsageCalculationErrorCodeEnum } from "./WorkflowExecutionUsageCalculationErrorCodeEnum";
8
+ export declare const WorkflowExecutionUsageCalculationError: core.serialization.ObjectSchema<serializers.WorkflowExecutionUsageCalculationError.Raw, Vellum.WorkflowExecutionUsageCalculationError>;
9
+ export declare namespace WorkflowExecutionUsageCalculationError {
10
+ interface Raw {
11
+ code: WorkflowExecutionUsageCalculationErrorCodeEnum.Raw;
12
+ message: string;
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.WorkflowExecutionUsageCalculationError = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const WorkflowExecutionUsageCalculationErrorCodeEnum_1 = require("./WorkflowExecutionUsageCalculationErrorCodeEnum");
42
+ exports.WorkflowExecutionUsageCalculationError = core.serialization.object({
43
+ code: WorkflowExecutionUsageCalculationErrorCodeEnum_1.WorkflowExecutionUsageCalculationErrorCodeEnum,
44
+ message: core.serialization.string(),
45
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const WorkflowExecutionUsageCalculationErrorCodeEnum: core.serialization.Schema<serializers.WorkflowExecutionUsageCalculationErrorCodeEnum.Raw, Vellum.WorkflowExecutionUsageCalculationErrorCodeEnum>;
8
+ export declare namespace WorkflowExecutionUsageCalculationErrorCodeEnum {
9
+ type Raw = "UNKNOWN" | "DEPENDENCIES_FAILED" | "NO_USAGE_CALCULATED" | "INTERNAL_SERVER_ERROR";
10
+ }
@@ -0,0 +1,41 @@
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.WorkflowExecutionUsageCalculationErrorCodeEnum = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.WorkflowExecutionUsageCalculationErrorCodeEnum = core.serialization.enum_(["UNKNOWN", "DEPENDENCIES_FAILED", "NO_USAGE_CALCULATED", "INTERNAL_SERVER_ERROR"]);
@@ -0,0 +1,17 @@
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
+ import { WorkflowExecutionUsageCalculationError } from "./WorkflowExecutionUsageCalculationError";
10
+ export declare const WorkflowExecutionUsageResult: core.serialization.ObjectSchema<serializers.WorkflowExecutionUsageResult.Raw, Vellum.WorkflowExecutionUsageResult>;
11
+ export declare namespace WorkflowExecutionUsageResult {
12
+ interface Raw {
13
+ usage?: MlModelUsageWrapper.Raw[] | null;
14
+ cost?: Price.Raw[] | null;
15
+ error?: WorkflowExecutionUsageCalculationError.Raw | null;
16
+ }
17
+ }
@@ -36,11 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.WorkflowExecutionUsageCalculationFulfilledBody = void 0;
39
+ exports.WorkflowExecutionUsageResult = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const MlModelUsageWrapper_1 = require("./MlModelUsageWrapper");
42
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),
43
+ const WorkflowExecutionUsageCalculationError_1 = require("./WorkflowExecutionUsageCalculationError");
44
+ exports.WorkflowExecutionUsageResult = core.serialization.object({
45
+ usage: core.serialization.list(MlModelUsageWrapper_1.MlModelUsageWrapper).optional(),
46
+ cost: core.serialization.list(Price_1.Price).optional(),
47
+ error: WorkflowExecutionUsageCalculationError_1.WorkflowExecutionUsageCalculationError.optional(),
46
48
  });
@@ -538,7 +538,9 @@ export * from "./WorkflowExecutionSpan";
538
538
  export * from "./WorkflowExecutionSpanAttributes";
539
539
  export * from "./WorkflowExecutionStreamingBody";
540
540
  export * from "./WorkflowExecutionStreamingEvent";
541
- export * from "./WorkflowExecutionUsageCalculationFulfilledBody";
541
+ export * from "./WorkflowExecutionUsageCalculationError";
542
+ export * from "./WorkflowExecutionUsageCalculationErrorCodeEnum";
543
+ export * from "./WorkflowExecutionUsageResult";
542
544
  export * from "./WorkflowExecutionViewOnlineEvalMetricResult";
543
545
  export * from "./WorkflowExecutionWorkflowResultEvent";
544
546
  export * from "./WorkflowExpandMetaRequest";
@@ -554,7 +554,9 @@ __exportStar(require("./WorkflowExecutionSpan"), exports);
554
554
  __exportStar(require("./WorkflowExecutionSpanAttributes"), exports);
555
555
  __exportStar(require("./WorkflowExecutionStreamingBody"), exports);
556
556
  __exportStar(require("./WorkflowExecutionStreamingEvent"), exports);
557
- __exportStar(require("./WorkflowExecutionUsageCalculationFulfilledBody"), exports);
557
+ __exportStar(require("./WorkflowExecutionUsageCalculationError"), exports);
558
+ __exportStar(require("./WorkflowExecutionUsageCalculationErrorCodeEnum"), exports);
559
+ __exportStar(require("./WorkflowExecutionUsageResult"), exports);
558
560
  __exportStar(require("./WorkflowExecutionViewOnlineEvalMetricResult"), exports);
559
561
  __exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
560
562
  __exportStar(require("./WorkflowExpandMetaRequest"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.49";
1
+ export declare const SDK_VERSION = "0.14.51";
package/dist/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 = "0.14.49";
4
+ exports.SDK_VERSION = "0.14.51";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.14.49",
3
+ "version": "0.14.51",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@ import { ExecutionVellumValue } from "./ExecutionVellumValue";
8
8
  import { WorkflowError } from "./WorkflowError";
9
9
  import { WorkflowExecutionActual } from "./WorkflowExecutionActual";
10
10
  import { WorkflowExecutionViewOnlineEvalMetricResult } from "./WorkflowExecutionViewOnlineEvalMetricResult";
11
- import { WorkflowExecutionUsageCalculationFulfilledBody } from "./WorkflowExecutionUsageCalculationFulfilledBody";
11
+ import { WorkflowExecutionUsageResult } from "./WorkflowExecutionUsageResult";
12
12
  export declare const SlimWorkflowExecutionRead: core.serialization.ObjectSchema<serializers.SlimWorkflowExecutionRead.Raw, Vellum.SlimWorkflowExecutionRead>;
13
13
  export declare namespace SlimWorkflowExecutionRead {
14
14
  interface Raw {
@@ -21,6 +21,6 @@ export declare namespace SlimWorkflowExecutionRead {
21
21
  error?: WorkflowError.Raw | null;
22
22
  latest_actual?: WorkflowExecutionActual.Raw | null;
23
23
  metric_results: WorkflowExecutionViewOnlineEvalMetricResult.Raw[];
24
- usage_results: WorkflowExecutionUsageCalculationFulfilledBody.Raw[];
24
+ usage_results?: WorkflowExecutionUsageResult.Raw[] | null;
25
25
  }
26
26
  }
@@ -43,7 +43,7 @@ const ExecutionVellumValue_1 = require("./ExecutionVellumValue");
43
43
  const WorkflowError_1 = require("./WorkflowError");
44
44
  const WorkflowExecutionActual_1 = require("./WorkflowExecutionActual");
45
45
  const WorkflowExecutionViewOnlineEvalMetricResult_1 = require("./WorkflowExecutionViewOnlineEvalMetricResult");
46
- const WorkflowExecutionUsageCalculationFulfilledBody_1 = require("./WorkflowExecutionUsageCalculationFulfilledBody");
46
+ const WorkflowExecutionUsageResult_1 = require("./WorkflowExecutionUsageResult");
47
47
  exports.SlimWorkflowExecutionRead = core.serialization.object({
48
48
  spanId: core.serialization.property("span_id", core.serialization.string()),
49
49
  parentContext: core.serialization.property("parent_context", core.serialization.lazyObject(() => serializers.WorkflowDeploymentParentContext).optional()),
@@ -54,5 +54,5 @@ exports.SlimWorkflowExecutionRead = core.serialization.object({
54
54
  error: WorkflowError_1.WorkflowError.optional(),
55
55
  latestActual: core.serialization.property("latest_actual", WorkflowExecutionActual_1.WorkflowExecutionActual.optional()),
56
56
  metricResults: core.serialization.property("metric_results", core.serialization.list(WorkflowExecutionViewOnlineEvalMetricResult_1.WorkflowExecutionViewOnlineEvalMetricResult)),
57
- usageResults: core.serialization.property("usage_results", core.serialization.list(WorkflowExecutionUsageCalculationFulfilledBody_1.WorkflowExecutionUsageCalculationFulfilledBody)),
57
+ usageResults: core.serialization.property("usage_results", core.serialization.list(WorkflowExecutionUsageResult_1.WorkflowExecutionUsageResult).optional()),
58
58
  });
@@ -8,7 +8,7 @@ import { ExecutionVellumValue } from "./ExecutionVellumValue";
8
8
  import { WorkflowError } from "./WorkflowError";
9
9
  import { WorkflowExecutionActual } from "./WorkflowExecutionActual";
10
10
  import { WorkflowExecutionViewOnlineEvalMetricResult } from "./WorkflowExecutionViewOnlineEvalMetricResult";
11
- import { WorkflowExecutionUsageCalculationFulfilledBody } from "./WorkflowExecutionUsageCalculationFulfilledBody";
11
+ import { WorkflowExecutionUsageResult } from "./WorkflowExecutionUsageResult";
12
12
  import { VellumSpan } from "./VellumSpan";
13
13
  export declare const WorkflowEventExecutionRead: core.serialization.ObjectSchema<serializers.WorkflowEventExecutionRead.Raw, Vellum.WorkflowEventExecutionRead>;
14
14
  export declare namespace WorkflowEventExecutionRead {
@@ -22,7 +22,7 @@ export declare namespace WorkflowEventExecutionRead {
22
22
  error?: WorkflowError.Raw | null;
23
23
  latest_actual?: WorkflowExecutionActual.Raw | null;
24
24
  metric_results: WorkflowExecutionViewOnlineEvalMetricResult.Raw[];
25
- usage_results: WorkflowExecutionUsageCalculationFulfilledBody.Raw[];
25
+ usage_results?: WorkflowExecutionUsageResult.Raw[] | null;
26
26
  spans: VellumSpan.Raw[];
27
27
  }
28
28
  }
@@ -43,7 +43,7 @@ const ExecutionVellumValue_1 = require("./ExecutionVellumValue");
43
43
  const WorkflowError_1 = require("./WorkflowError");
44
44
  const WorkflowExecutionActual_1 = require("./WorkflowExecutionActual");
45
45
  const WorkflowExecutionViewOnlineEvalMetricResult_1 = require("./WorkflowExecutionViewOnlineEvalMetricResult");
46
- const WorkflowExecutionUsageCalculationFulfilledBody_1 = require("./WorkflowExecutionUsageCalculationFulfilledBody");
46
+ const WorkflowExecutionUsageResult_1 = require("./WorkflowExecutionUsageResult");
47
47
  const VellumSpan_1 = require("./VellumSpan");
48
48
  exports.WorkflowEventExecutionRead = core.serialization.object({
49
49
  spanId: core.serialization.property("span_id", core.serialization.string()),
@@ -55,6 +55,6 @@ exports.WorkflowEventExecutionRead = core.serialization.object({
55
55
  error: WorkflowError_1.WorkflowError.optional(),
56
56
  latestActual: core.serialization.property("latest_actual", WorkflowExecutionActual_1.WorkflowExecutionActual.optional()),
57
57
  metricResults: core.serialization.property("metric_results", core.serialization.list(WorkflowExecutionViewOnlineEvalMetricResult_1.WorkflowExecutionViewOnlineEvalMetricResult)),
58
- usageResults: core.serialization.property("usage_results", core.serialization.list(WorkflowExecutionUsageCalculationFulfilledBody_1.WorkflowExecutionUsageCalculationFulfilledBody)),
58
+ usageResults: core.serialization.property("usage_results", core.serialization.list(WorkflowExecutionUsageResult_1.WorkflowExecutionUsageResult).optional()),
59
59
  spans: core.serialization.list(VellumSpan_1.VellumSpan),
60
60
  });
@@ -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 { WorkflowExecutionUsageCalculationErrorCodeEnum } from "./WorkflowExecutionUsageCalculationErrorCodeEnum";
8
+ export declare const WorkflowExecutionUsageCalculationError: core.serialization.ObjectSchema<serializers.WorkflowExecutionUsageCalculationError.Raw, Vellum.WorkflowExecutionUsageCalculationError>;
9
+ export declare namespace WorkflowExecutionUsageCalculationError {
10
+ interface Raw {
11
+ code: WorkflowExecutionUsageCalculationErrorCodeEnum.Raw;
12
+ message: string;
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.WorkflowExecutionUsageCalculationError = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const WorkflowExecutionUsageCalculationErrorCodeEnum_1 = require("./WorkflowExecutionUsageCalculationErrorCodeEnum");
42
+ exports.WorkflowExecutionUsageCalculationError = core.serialization.object({
43
+ code: WorkflowExecutionUsageCalculationErrorCodeEnum_1.WorkflowExecutionUsageCalculationErrorCodeEnum,
44
+ message: core.serialization.string(),
45
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const WorkflowExecutionUsageCalculationErrorCodeEnum: core.serialization.Schema<serializers.WorkflowExecutionUsageCalculationErrorCodeEnum.Raw, Vellum.WorkflowExecutionUsageCalculationErrorCodeEnum>;
8
+ export declare namespace WorkflowExecutionUsageCalculationErrorCodeEnum {
9
+ type Raw = "UNKNOWN" | "DEPENDENCIES_FAILED" | "NO_USAGE_CALCULATED" | "INTERNAL_SERVER_ERROR";
10
+ }
@@ -0,0 +1,41 @@
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.WorkflowExecutionUsageCalculationErrorCodeEnum = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.WorkflowExecutionUsageCalculationErrorCodeEnum = core.serialization.enum_(["UNKNOWN", "DEPENDENCIES_FAILED", "NO_USAGE_CALCULATED", "INTERNAL_SERVER_ERROR"]);
@@ -0,0 +1,17 @@
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
+ import { WorkflowExecutionUsageCalculationError } from "./WorkflowExecutionUsageCalculationError";
10
+ export declare const WorkflowExecutionUsageResult: core.serialization.ObjectSchema<serializers.WorkflowExecutionUsageResult.Raw, Vellum.WorkflowExecutionUsageResult>;
11
+ export declare namespace WorkflowExecutionUsageResult {
12
+ interface Raw {
13
+ usage?: MlModelUsageWrapper.Raw[] | null;
14
+ cost?: Price.Raw[] | null;
15
+ error?: WorkflowExecutionUsageCalculationError.Raw | null;
16
+ }
17
+ }
@@ -36,11 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.WorkflowExecutionUsageCalculationFulfilledBody = void 0;
39
+ exports.WorkflowExecutionUsageResult = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const MlModelUsageWrapper_1 = require("./MlModelUsageWrapper");
42
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),
43
+ const WorkflowExecutionUsageCalculationError_1 = require("./WorkflowExecutionUsageCalculationError");
44
+ exports.WorkflowExecutionUsageResult = core.serialization.object({
45
+ usage: core.serialization.list(MlModelUsageWrapper_1.MlModelUsageWrapper).optional(),
46
+ cost: core.serialization.list(Price_1.Price).optional(),
47
+ error: WorkflowExecutionUsageCalculationError_1.WorkflowExecutionUsageCalculationError.optional(),
46
48
  });
@@ -538,7 +538,9 @@ export * from "./WorkflowExecutionSpan";
538
538
  export * from "./WorkflowExecutionSpanAttributes";
539
539
  export * from "./WorkflowExecutionStreamingBody";
540
540
  export * from "./WorkflowExecutionStreamingEvent";
541
- export * from "./WorkflowExecutionUsageCalculationFulfilledBody";
541
+ export * from "./WorkflowExecutionUsageCalculationError";
542
+ export * from "./WorkflowExecutionUsageCalculationErrorCodeEnum";
543
+ export * from "./WorkflowExecutionUsageResult";
542
544
  export * from "./WorkflowExecutionViewOnlineEvalMetricResult";
543
545
  export * from "./WorkflowExecutionWorkflowResultEvent";
544
546
  export * from "./WorkflowExpandMetaRequest";
@@ -554,7 +554,9 @@ __exportStar(require("./WorkflowExecutionSpan"), exports);
554
554
  __exportStar(require("./WorkflowExecutionSpanAttributes"), exports);
555
555
  __exportStar(require("./WorkflowExecutionStreamingBody"), exports);
556
556
  __exportStar(require("./WorkflowExecutionStreamingEvent"), exports);
557
- __exportStar(require("./WorkflowExecutionUsageCalculationFulfilledBody"), exports);
557
+ __exportStar(require("./WorkflowExecutionUsageCalculationError"), exports);
558
+ __exportStar(require("./WorkflowExecutionUsageCalculationErrorCodeEnum"), exports);
559
+ __exportStar(require("./WorkflowExecutionUsageResult"), exports);
558
560
  __exportStar(require("./WorkflowExecutionViewOnlineEvalMetricResult"), exports);
559
561
  __exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
560
562
  __exportStar(require("./WorkflowExpandMetaRequest"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.49";
1
+ export declare const SDK_VERSION = "0.14.51";
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 = "0.14.49";
4
+ exports.SDK_VERSION = "0.14.51";
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- export interface WorkflowExecutionUsageCalculationFulfilledBody {
6
- usage: Vellum.MlModelUsageWrapper[];
7
- cost: Vellum.Price[];
8
- }