vellum-ai 0.0.11 → 0.0.13

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 (87) hide show
  1. package/Client.d.ts +9 -1
  2. package/Client.js +19 -9
  3. package/api/{types → client/requests}/GenerateBodyRequest.d.ts +1 -1
  4. package/api/client/requests/GenerateStreamBodyRequest.d.ts +14 -0
  5. package/api/client/requests/index.d.ts +2 -0
  6. package/api/resources/deployments/client/Client.d.ts +24 -0
  7. package/api/resources/deployments/client/Client.js +87 -0
  8. package/api/resources/deployments/client/index.d.ts +1 -0
  9. package/api/resources/deployments/client/index.js +2 -0
  10. package/api/resources/deployments/index.d.ts +1 -0
  11. package/api/resources/deployments/index.js +17 -0
  12. package/api/resources/index.d.ts +1 -0
  13. package/api/resources/index.js +2 -1
  14. package/api/types/DeploymentRead.d.ts +20 -0
  15. package/api/types/DeploymentRead.js +5 -0
  16. package/api/types/DeploymentReadStatusEnum.d.ts +9 -0
  17. package/api/types/DeploymentReadStatusEnum.js +11 -0
  18. package/api/types/EnvironmentEnum.d.ts +9 -0
  19. package/api/types/EnvironmentEnum.js +11 -0
  20. package/api/types/ModelVersionSandboxSnapshot.d.ts +1 -1
  21. package/api/types/PromptTemplateBlockProperties.d.ts +1 -0
  22. package/api/types/index.d.ts +3 -1
  23. package/api/types/index.js +3 -1
  24. package/dist/Client.d.ts +9 -1
  25. package/dist/Client.js +19 -9
  26. package/dist/api/{types → client/requests}/GenerateBodyRequest.d.ts +1 -1
  27. package/dist/api/client/requests/GenerateBodyRequest.js +5 -0
  28. package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +14 -0
  29. package/dist/api/client/requests/GenerateStreamBodyRequest.js +5 -0
  30. package/dist/api/client/requests/index.d.ts +2 -0
  31. package/dist/api/resources/deployments/client/Client.d.ts +24 -0
  32. package/dist/api/resources/deployments/client/Client.js +87 -0
  33. package/dist/api/resources/deployments/client/index.d.ts +1 -0
  34. package/dist/api/resources/deployments/client/index.js +2 -0
  35. package/dist/api/resources/deployments/index.d.ts +1 -0
  36. package/dist/api/resources/deployments/index.js +17 -0
  37. package/dist/api/resources/index.d.ts +1 -0
  38. package/dist/api/resources/index.js +2 -1
  39. package/dist/api/types/DeploymentRead.d.ts +20 -0
  40. package/dist/api/types/DeploymentRead.js +5 -0
  41. package/dist/api/types/DeploymentReadStatusEnum.d.ts +9 -0
  42. package/dist/api/types/DeploymentReadStatusEnum.js +11 -0
  43. package/dist/api/types/EnvironmentEnum.d.ts +9 -0
  44. package/dist/api/types/EnvironmentEnum.js +11 -0
  45. package/dist/api/types/ModelVersionSandboxSnapshot.d.ts +1 -1
  46. package/dist/api/types/PromptTemplateBlockProperties.d.ts +1 -0
  47. package/dist/api/types/index.d.ts +3 -1
  48. package/dist/api/types/index.js +3 -1
  49. package/dist/serialization/{types → client/requests}/GenerateBodyRequest.d.ts +4 -4
  50. package/dist/serialization/{types → client/requests}/GenerateBodyRequest.js +3 -3
  51. package/dist/serialization/client/requests/GenerateStreamBodyRequest.d.ts +15 -0
  52. package/dist/serialization/client/requests/GenerateStreamBodyRequest.js +36 -0
  53. package/dist/serialization/client/requests/index.d.ts +2 -0
  54. package/dist/serialization/client/requests/index.js +5 -1
  55. package/dist/serialization/types/DeploymentRead.d.ts +20 -0
  56. package/dist/serialization/types/DeploymentRead.js +41 -0
  57. package/dist/serialization/types/DeploymentReadStatusEnum.d.ts +10 -0
  58. package/dist/serialization/types/DeploymentReadStatusEnum.js +31 -0
  59. package/dist/serialization/types/EnvironmentEnum.d.ts +10 -0
  60. package/dist/serialization/types/EnvironmentEnum.js +31 -0
  61. package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -1
  62. package/dist/serialization/types/ModelVersionSandboxSnapshot.js +1 -1
  63. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +1 -0
  64. package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -0
  65. package/dist/serialization/types/index.d.ts +3 -1
  66. package/dist/serialization/types/index.js +3 -1
  67. package/package.json +1 -1
  68. package/serialization/{types → client/requests}/GenerateBodyRequest.d.ts +4 -4
  69. package/serialization/{types → client/requests}/GenerateBodyRequest.js +3 -3
  70. package/serialization/client/requests/GenerateStreamBodyRequest.d.ts +15 -0
  71. package/serialization/client/requests/GenerateStreamBodyRequest.js +36 -0
  72. package/serialization/client/requests/index.d.ts +2 -0
  73. package/serialization/client/requests/index.js +5 -1
  74. package/serialization/types/DeploymentRead.d.ts +20 -0
  75. package/serialization/types/DeploymentRead.js +41 -0
  76. package/serialization/types/DeploymentReadStatusEnum.d.ts +10 -0
  77. package/serialization/types/DeploymentReadStatusEnum.js +31 -0
  78. package/serialization/types/EnvironmentEnum.d.ts +10 -0
  79. package/serialization/types/EnvironmentEnum.js +31 -0
  80. package/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -1
  81. package/serialization/types/ModelVersionSandboxSnapshot.js +1 -1
  82. package/serialization/types/PromptTemplateBlockProperties.d.ts +1 -0
  83. package/serialization/types/PromptTemplateBlockProperties.js +1 -0
  84. package/serialization/types/index.d.ts +3 -1
  85. package/serialization/types/index.js +3 -1
  86. /package/api/{types → client/requests}/GenerateBodyRequest.js +0 -0
  87. /package/{dist/api/types/GenerateBodyRequest.js → api/client/requests/GenerateStreamBodyRequest.js} +0 -0
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.Deployments = void 0;
33
+ const environments = __importStar(require("../../../../environments"));
34
+ const core = __importStar(require("../../../../core"));
35
+ const url_join_1 = __importDefault(require("url-join"));
36
+ const serializers = __importStar(require("../../../../serialization"));
37
+ const errors = __importStar(require("../../../../errors"));
38
+ class Deployments {
39
+ options;
40
+ constructor(options) {
41
+ this.options = options;
42
+ }
43
+ /**
44
+ *
45
+ * <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
46
+ *
47
+ * Used to retrieve a deployment given its ID or name.
48
+ *
49
+ */
50
+ async retrieve(id) {
51
+ const _response = await core.fetcher({
52
+ url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).default, `v1/deployments/${id}`),
53
+ method: "GET",
54
+ headers: {
55
+ X_API_KEY: await core.Supplier.get(this.options.apiKey),
56
+ },
57
+ contentType: "application/json",
58
+ });
59
+ if (_response.ok) {
60
+ return await serializers.DeploymentRead.parseOrThrow(_response.body, {
61
+ unrecognizedObjectKeys: "passthrough",
62
+ allowUnrecognizedUnionMembers: true,
63
+ allowUnrecognizedEnumValues: true,
64
+ });
65
+ }
66
+ if (_response.error.reason === "status-code") {
67
+ throw new errors.VellumError({
68
+ statusCode: _response.error.statusCode,
69
+ body: _response.error.body,
70
+ });
71
+ }
72
+ switch (_response.error.reason) {
73
+ case "non-json":
74
+ throw new errors.VellumError({
75
+ statusCode: _response.error.statusCode,
76
+ body: _response.error.rawBody,
77
+ });
78
+ case "timeout":
79
+ throw new errors.VellumTimeoutError();
80
+ case "unknown":
81
+ throw new errors.VellumError({
82
+ message: _response.error.errorMessage,
83
+ });
84
+ }
85
+ }
86
+ }
87
+ exports.Deployments = Deployments;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -1,3 +1,4 @@
1
+ export * as deployments from "./deployments";
1
2
  export * as documents from "./documents";
2
3
  export * as modelVersions from "./modelVersions";
3
4
  export * as sandboxes from "./sandboxes";
@@ -26,7 +26,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.testSuites = exports.sandboxes = exports.modelVersions = exports.documents = void 0;
29
+ exports.testSuites = exports.sandboxes = exports.modelVersions = exports.documents = exports.deployments = void 0;
30
+ exports.deployments = __importStar(require("./deployments"));
30
31
  exports.documents = __importStar(require("./documents"));
31
32
  exports.modelVersions = __importStar(require("./modelVersions"));
32
33
  exports.sandboxes = __importStar(require("./sandboxes"));
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface DeploymentRead {
6
+ id: string;
7
+ created: string;
8
+ /** A human-readable label for the deployment */
9
+ label: string;
10
+ /** A name that uniquely identifies this deployment within its workspace */
11
+ name: string;
12
+ /** The current status of the deployment */
13
+ status?: Vellum.DeploymentReadStatusEnum;
14
+ /** The environment this deployment is used in */
15
+ environment?: Vellum.EnvironmentEnum;
16
+ /** The type of model this deployment serves */
17
+ modelType: Vellum.ModelTypeEnum;
18
+ activeModelVersionIds: string[];
19
+ lastDeployedOn: string;
20
+ }
@@ -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 });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type DeploymentReadStatusEnum = "ACTIVE" | "INACTIVE" | "ARCHIVED";
5
+ export declare const DeploymentReadStatusEnum: {
6
+ readonly Active: "ACTIVE";
7
+ readonly Inactive: "INACTIVE";
8
+ readonly Archived: "ARCHIVED";
9
+ };
@@ -0,0 +1,11 @@
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.DeploymentReadStatusEnum = void 0;
7
+ exports.DeploymentReadStatusEnum = {
8
+ Active: "ACTIVE",
9
+ Inactive: "INACTIVE",
10
+ Archived: "ARCHIVED",
11
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type EnvironmentEnum = "DEVELOPMENT" | "STAGING" | "PRODUCTION";
5
+ export declare const EnvironmentEnum: {
6
+ readonly Development: "DEVELOPMENT";
7
+ readonly Staging: "STAGING";
8
+ readonly Production: "PRODUCTION";
9
+ };
@@ -0,0 +1,11 @@
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.EnvironmentEnum = void 0;
7
+ exports.EnvironmentEnum = {
8
+ Development: "DEVELOPMENT",
9
+ Staging: "STAGING",
10
+ Production: "PRODUCTION",
11
+ };
@@ -5,7 +5,7 @@ export interface ModelVersionSandboxSnapshot {
5
5
  /** The ID of the sandbox snapshot. */
6
6
  id: string;
7
7
  /** The index of the prompt in the sandbox snapshot. */
8
- promptIndex: number;
8
+ promptIndex?: number;
9
9
  /** The id of the prompt in the sandbox snapshot. */
10
10
  promptId?: string;
11
11
  }
@@ -4,6 +4,7 @@
4
4
  import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockProperties {
6
6
  chatRole?: Vellum.ChatMessageRole;
7
+ chatMessageUnterminated?: boolean;
7
8
  template?: string;
8
9
  blocks?: Record<string, unknown>[];
9
10
  }
@@ -1,11 +1,13 @@
1
- export * from "./GenerateBodyRequest";
2
1
  export * from "./BlockTypeEnum";
3
2
  export * from "./ChatMessage";
4
3
  export * from "./ChatMessageRequest";
5
4
  export * from "./ChatMessageRole";
5
+ export * from "./DeploymentRead";
6
+ export * from "./DeploymentReadStatusEnum";
6
7
  export * from "./Document";
7
8
  export * from "./DocumentDocumentToDocumentIndex";
8
9
  export * from "./EnrichedNormalizedCompletion";
10
+ export * from "./EnvironmentEnum";
9
11
  export * from "./EvaluationParams";
10
12
  export * from "./EvaluationParamsRequest";
11
13
  export * from "./FinishReasonEnum";
@@ -14,14 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./GenerateBodyRequest"), exports);
18
17
  __exportStar(require("./BlockTypeEnum"), exports);
19
18
  __exportStar(require("./ChatMessage"), exports);
20
19
  __exportStar(require("./ChatMessageRequest"), exports);
21
20
  __exportStar(require("./ChatMessageRole"), exports);
21
+ __exportStar(require("./DeploymentRead"), exports);
22
+ __exportStar(require("./DeploymentReadStatusEnum"), exports);
22
23
  __exportStar(require("./Document"), exports);
23
24
  __exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
24
25
  __exportStar(require("./EnrichedNormalizedCompletion"), exports);
26
+ __exportStar(require("./EnvironmentEnum"), exports);
25
27
  __exportStar(require("./EvaluationParams"), exports);
26
28
  __exportStar(require("./EvaluationParamsRequest"), exports);
27
29
  __exportStar(require("./FinishReasonEnum"), exports);
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as serializers from "..";
5
- import * as Vellum from "../../api";
6
- import * as core from "../../core";
7
- export declare const GenerateBodyRequest: core.serialization.ObjectSchema<serializers.GenerateBodyRequest.Raw, Vellum.GenerateBodyRequest>;
4
+ import * as serializers from "../..";
5
+ import * as Vellum from "../../../api";
6
+ import * as core from "../../../core";
7
+ export declare const GenerateBodyRequest: core.serialization.Schema<serializers.GenerateBodyRequest.Raw, Vellum.GenerateBodyRequest>;
8
8
  export declare namespace GenerateBodyRequest {
9
9
  interface Raw {
10
10
  deployment_id?: string | null;
@@ -27,10 +27,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.GenerateBodyRequest = void 0;
30
- const core = __importStar(require("../../core"));
30
+ const core = __importStar(require("../../../core"));
31
31
  exports.GenerateBodyRequest = core.serialization.object({
32
32
  deploymentId: core.serialization.property("deployment_id", core.serialization.string().optional()),
33
33
  deploymentName: core.serialization.property("deployment_name", core.serialization.string().optional()),
34
- requests: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).GenerateRequest)),
35
- options: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).GenerateOptionsRequest).optional(),
34
+ requests: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateRequest)),
35
+ options: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateOptionsRequest).optional(),
36
36
  });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../..";
5
+ import * as Vellum from "../../../api";
6
+ import * as core from "../../../core";
7
+ export declare const GenerateStreamBodyRequest: core.serialization.Schema<serializers.GenerateStreamBodyRequest.Raw, Vellum.GenerateStreamBodyRequest>;
8
+ export declare namespace GenerateStreamBodyRequest {
9
+ interface Raw {
10
+ deployment_id?: string | null;
11
+ deployment_name?: string | null;
12
+ requests: serializers.GenerateRequest.Raw[];
13
+ options?: serializers.GenerateOptionsRequest.Raw | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.GenerateStreamBodyRequest = void 0;
30
+ const core = __importStar(require("../../../core"));
31
+ exports.GenerateStreamBodyRequest = core.serialization.object({
32
+ deploymentId: core.serialization.property("deployment_id", core.serialization.string().optional()),
33
+ deploymentName: core.serialization.property("deployment_name", core.serialization.string().optional()),
34
+ requests: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateRequest)),
35
+ options: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateOptionsRequest).optional(),
36
+ });
@@ -1,2 +1,4 @@
1
+ export { GenerateBodyRequest } from "./GenerateBodyRequest";
2
+ export { GenerateStreamBodyRequest } from "./GenerateStreamBodyRequest";
1
3
  export { SearchRequestBodyRequest } from "./SearchRequestBodyRequest";
2
4
  export { SubmitCompletionActualsRequest } from "./SubmitCompletionActualsRequest";
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = void 0;
3
+ exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = void 0;
4
+ var GenerateBodyRequest_1 = require("./GenerateBodyRequest");
5
+ Object.defineProperty(exports, "GenerateBodyRequest", { enumerable: true, get: function () { return GenerateBodyRequest_1.GenerateBodyRequest; } });
6
+ var GenerateStreamBodyRequest_1 = require("./GenerateStreamBodyRequest");
7
+ Object.defineProperty(exports, "GenerateStreamBodyRequest", { enumerable: true, get: function () { return GenerateStreamBodyRequest_1.GenerateStreamBodyRequest; } });
4
8
  var SearchRequestBodyRequest_1 = require("./SearchRequestBodyRequest");
5
9
  Object.defineProperty(exports, "SearchRequestBodyRequest", { enumerable: true, get: function () { return SearchRequestBodyRequest_1.SearchRequestBodyRequest; } });
6
10
  var SubmitCompletionActualsRequest_1 = require("./SubmitCompletionActualsRequest");
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const DeploymentRead: core.serialization.ObjectSchema<serializers.DeploymentRead.Raw, Vellum.DeploymentRead>;
8
+ export declare namespace DeploymentRead {
9
+ interface Raw {
10
+ id: string;
11
+ created: string;
12
+ label: string;
13
+ name: string;
14
+ status?: serializers.DeploymentReadStatusEnum.Raw | null;
15
+ environment?: serializers.EnvironmentEnum.Raw | null;
16
+ model_type: serializers.ModelTypeEnum.Raw;
17
+ active_model_version_ids: string[];
18
+ last_deployed_on: string;
19
+ }
20
+ }
@@ -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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.DeploymentRead = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.DeploymentRead = core.serialization.object({
32
+ id: core.serialization.string(),
33
+ created: core.serialization.string(),
34
+ label: core.serialization.string(),
35
+ name: core.serialization.string(),
36
+ status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DeploymentReadStatusEnum).optional(),
37
+ environment: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).EnvironmentEnum).optional(),
38
+ modelType: core.serialization.property("model_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelTypeEnum)),
39
+ activeModelVersionIds: core.serialization.property("active_model_version_ids", core.serialization.list(core.serialization.string())),
40
+ lastDeployedOn: core.serialization.property("last_deployed_on", core.serialization.string()),
41
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const DeploymentReadStatusEnum: core.serialization.Schema<serializers.DeploymentReadStatusEnum.Raw, Vellum.DeploymentReadStatusEnum>;
8
+ export declare namespace DeploymentReadStatusEnum {
9
+ type Raw = "ACTIVE" | "INACTIVE" | "ARCHIVED";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.DeploymentReadStatusEnum = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.DeploymentReadStatusEnum = core.serialization.enum_(["ACTIVE", "INACTIVE", "ARCHIVED"]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const EnvironmentEnum: core.serialization.Schema<serializers.EnvironmentEnum.Raw, Vellum.EnvironmentEnum>;
8
+ export declare namespace EnvironmentEnum {
9
+ type Raw = "DEVELOPMENT" | "STAGING" | "PRODUCTION";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.EnvironmentEnum = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.EnvironmentEnum = core.serialization.enum_(["DEVELOPMENT", "STAGING", "PRODUCTION"]);
@@ -8,7 +8,7 @@ export declare const ModelVersionSandboxSnapshot: core.serialization.ObjectSchem
8
8
  export declare namespace ModelVersionSandboxSnapshot {
9
9
  interface Raw {
10
10
  id: string;
11
- prompt_index: number;
11
+ prompt_index?: number | null;
12
12
  prompt_id?: string | null;
13
13
  }
14
14
  }
@@ -30,6 +30,6 @@ exports.ModelVersionSandboxSnapshot = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.ModelVersionSandboxSnapshot = core.serialization.object({
32
32
  id: core.serialization.string(),
33
- promptIndex: core.serialization.property("prompt_index", core.serialization.number()),
33
+ promptIndex: core.serialization.property("prompt_index", core.serialization.number().optional()),
34
34
  promptId: core.serialization.property("prompt_id", core.serialization.string().optional()),
35
35
  });
@@ -8,6 +8,7 @@ export declare const PromptTemplateBlockProperties: core.serialization.ObjectSch
8
8
  export declare namespace PromptTemplateBlockProperties {
9
9
  interface Raw {
10
10
  chat_role?: serializers.ChatMessageRole.Raw | null;
11
+ chat_message_unterminated?: boolean | null;
11
12
  template?: string | null;
12
13
  blocks?: Record<string, unknown>[] | null;
13
14
  }
@@ -30,6 +30,7 @@ exports.PromptTemplateBlockProperties = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.PromptTemplateBlockProperties = core.serialization.object({
32
32
  chatRole: core.serialization.property("chat_role", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRole).optional()),
33
+ chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
33
34
  template: core.serialization.string().optional(),
34
35
  blocks: core.serialization
35
36
  .list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
@@ -1,11 +1,13 @@
1
- export * from "./GenerateBodyRequest";
2
1
  export * from "./BlockTypeEnum";
3
2
  export * from "./ChatMessage";
4
3
  export * from "./ChatMessageRequest";
5
4
  export * from "./ChatMessageRole";
5
+ export * from "./DeploymentRead";
6
+ export * from "./DeploymentReadStatusEnum";
6
7
  export * from "./Document";
7
8
  export * from "./DocumentDocumentToDocumentIndex";
8
9
  export * from "./EnrichedNormalizedCompletion";
10
+ export * from "./EnvironmentEnum";
9
11
  export * from "./EvaluationParams";
10
12
  export * from "./EvaluationParamsRequest";
11
13
  export * from "./FinishReasonEnum";
@@ -14,14 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./GenerateBodyRequest"), exports);
18
17
  __exportStar(require("./BlockTypeEnum"), exports);
19
18
  __exportStar(require("./ChatMessage"), exports);
20
19
  __exportStar(require("./ChatMessageRequest"), exports);
21
20
  __exportStar(require("./ChatMessageRole"), exports);
21
+ __exportStar(require("./DeploymentRead"), exports);
22
+ __exportStar(require("./DeploymentReadStatusEnum"), exports);
22
23
  __exportStar(require("./Document"), exports);
23
24
  __exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
24
25
  __exportStar(require("./EnrichedNormalizedCompletion"), exports);
26
+ __exportStar(require("./EnvironmentEnum"), exports);
25
27
  __exportStar(require("./EvaluationParams"), exports);
26
28
  __exportStar(require("./EvaluationParamsRequest"), exports);
27
29
  __exportStar(require("./FinishReasonEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "v0.0.11",
3
+ "version": "v0.0.13",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "main": "./index.js",
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as serializers from "..";
5
- import * as Vellum from "../../api";
6
- import * as core from "../../core";
7
- export declare const GenerateBodyRequest: core.serialization.ObjectSchema<serializers.GenerateBodyRequest.Raw, Vellum.GenerateBodyRequest>;
4
+ import * as serializers from "../..";
5
+ import * as Vellum from "../../../api";
6
+ import * as core from "../../../core";
7
+ export declare const GenerateBodyRequest: core.serialization.Schema<serializers.GenerateBodyRequest.Raw, Vellum.GenerateBodyRequest>;
8
8
  export declare namespace GenerateBodyRequest {
9
9
  interface Raw {
10
10
  deployment_id?: string | null;
@@ -27,10 +27,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.GenerateBodyRequest = void 0;
30
- const core = __importStar(require("../../core"));
30
+ const core = __importStar(require("../../../core"));
31
31
  exports.GenerateBodyRequest = core.serialization.object({
32
32
  deploymentId: core.serialization.property("deployment_id", core.serialization.string().optional()),
33
33
  deploymentName: core.serialization.property("deployment_name", core.serialization.string().optional()),
34
- requests: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).GenerateRequest)),
35
- options: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).GenerateOptionsRequest).optional(),
34
+ requests: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateRequest)),
35
+ options: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateOptionsRequest).optional(),
36
36
  });