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,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);