vellum-ai 0.0.5 → 0.0.6

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 (187) hide show
  1. package/Client.d.ts +1 -1
  2. package/api/client/requests/GenerateBodyRequest.d.ts +1 -1
  3. package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  4. package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  5. package/api/resources/documents/client/Client.d.ts +1 -1
  6. package/api/resources/documents/client/Client.js +11 -5
  7. package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +3 -3
  8. package/api/resources/modelVersions/client/Client.d.ts +1 -1
  9. package/api/types/ChatMessageRequest.d.ts +8 -0
  10. package/api/types/ChatMessageRequest.js +5 -0
  11. package/api/types/{ChatRoleEnum.d.ts → ChatMessageRole.d.ts} +2 -2
  12. package/api/types/{ChatRoleEnum.js → ChatMessageRole.js} +2 -2
  13. package/api/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
  14. package/api/types/EnrichedNormalizedCompletion.d.ts +2 -2
  15. package/api/types/GenerateOptionsRequest.d.ts +1 -1
  16. package/api/types/GenerateRequest.d.ts +3 -0
  17. package/api/types/GenerateResponse.d.ts +1 -1
  18. package/api/types/GenerateResult.d.ts +1 -1
  19. package/api/types/GenerateResultData.d.ts +1 -1
  20. package/api/types/ModelVersionBuildConfig.d.ts +1 -1
  21. package/api/types/ModelVersionExecConfigParameters.d.ts +1 -1
  22. package/api/types/ModelVersionExecConfigRead.d.ts +1 -1
  23. package/api/types/ModelVersionRead.d.ts +1 -1
  24. package/api/types/NormalizedLogProbs.d.ts +2 -2
  25. package/api/types/NormalizedTokenLogProbs.d.ts +2 -2
  26. package/api/types/PaginatedSlimDocumentList.d.ts +1 -1
  27. package/api/types/PromptTemplateBlock.d.ts +1 -1
  28. package/api/types/PromptTemplateBlockData.d.ts +1 -1
  29. package/api/types/PromptTemplateBlockProperties.d.ts +2 -2
  30. package/api/types/SearchRequestOptionsRequest.d.ts +1 -1
  31. package/api/types/SearchResponse.d.ts +1 -1
  32. package/api/types/SearchResult.d.ts +1 -1
  33. package/api/types/SlimDocument.d.ts +1 -1
  34. package/api/types/index.d.ts +2 -1
  35. package/api/types/index.js +2 -1
  36. package/dist/Client.d.ts +1 -1
  37. package/dist/api/client/requests/GenerateBodyRequest.d.ts +1 -1
  38. package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  39. package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  40. package/dist/api/resources/documents/client/Client.d.ts +1 -1
  41. package/dist/api/resources/documents/client/Client.js +11 -5
  42. package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +3 -3
  43. package/dist/api/resources/modelVersions/client/Client.d.ts +1 -1
  44. package/dist/api/types/ChatMessageRequest.d.ts +8 -0
  45. package/dist/api/types/ChatMessageRequest.js +5 -0
  46. package/dist/api/types/{ChatRoleEnum.d.ts → ChatMessageRole.d.ts} +2 -2
  47. package/dist/api/types/{ChatRoleEnum.js → ChatMessageRole.js} +2 -2
  48. package/dist/api/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
  49. package/dist/api/types/EnrichedNormalizedCompletion.d.ts +2 -2
  50. package/dist/api/types/GenerateOptionsRequest.d.ts +1 -1
  51. package/dist/api/types/GenerateRequest.d.ts +3 -0
  52. package/dist/api/types/GenerateResponse.d.ts +1 -1
  53. package/dist/api/types/GenerateResult.d.ts +1 -1
  54. package/dist/api/types/GenerateResultData.d.ts +1 -1
  55. package/dist/api/types/ModelVersionBuildConfig.d.ts +1 -1
  56. package/dist/api/types/ModelVersionExecConfigParameters.d.ts +1 -1
  57. package/dist/api/types/ModelVersionExecConfigRead.d.ts +1 -1
  58. package/dist/api/types/ModelVersionRead.d.ts +1 -1
  59. package/dist/api/types/NormalizedLogProbs.d.ts +2 -2
  60. package/dist/api/types/NormalizedTokenLogProbs.d.ts +2 -2
  61. package/dist/api/types/PaginatedSlimDocumentList.d.ts +1 -1
  62. package/dist/api/types/PromptTemplateBlock.d.ts +1 -1
  63. package/dist/api/types/PromptTemplateBlockData.d.ts +1 -1
  64. package/dist/api/types/PromptTemplateBlockProperties.d.ts +2 -2
  65. package/dist/api/types/SearchRequestOptionsRequest.d.ts +1 -1
  66. package/dist/api/types/SearchResponse.d.ts +1 -1
  67. package/dist/api/types/SearchResult.d.ts +1 -1
  68. package/dist/api/types/SlimDocument.d.ts +1 -1
  69. package/dist/api/types/index.d.ts +2 -1
  70. package/dist/api/types/index.js +2 -1
  71. package/dist/serialization/client/requests/GenerateBodyRequest.d.ts +1 -1
  72. package/dist/serialization/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  73. package/dist/serialization/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  74. package/dist/serialization/types/BlockTypeEnum.d.ts +1 -1
  75. package/dist/serialization/types/ChatMessageRequest.d.ts +13 -0
  76. package/dist/serialization/types/ChatMessageRequest.js +34 -0
  77. package/dist/serialization/types/ChatMessageRole.d.ts +10 -0
  78. package/dist/serialization/types/{ChatRoleEnum.js → ChatMessageRole.js} +2 -2
  79. package/dist/serialization/types/Document.d.ts +1 -1
  80. package/dist/serialization/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
  81. package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +2 -2
  82. package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -1
  83. package/dist/serialization/types/FinishReasonEnum.d.ts +1 -1
  84. package/dist/serialization/types/GenerateErrorResponse.d.ts +1 -1
  85. package/dist/serialization/types/GenerateOptionsRequest.d.ts +1 -1
  86. package/dist/serialization/types/GenerateRequest.d.ts +2 -1
  87. package/dist/serialization/types/GenerateRequest.js +3 -0
  88. package/dist/serialization/types/GenerateResponse.d.ts +1 -1
  89. package/dist/serialization/types/GenerateResult.d.ts +1 -1
  90. package/dist/serialization/types/GenerateResultData.d.ts +1 -1
  91. package/dist/serialization/types/GenerateResultError.d.ts +1 -1
  92. package/dist/serialization/types/IndexingStateEnum.d.ts +1 -1
  93. package/dist/serialization/types/LogprobsEnum.d.ts +1 -1
  94. package/dist/serialization/types/ModelTypeEnum.d.ts +1 -1
  95. package/dist/serialization/types/ModelVersionBuildConfig.d.ts +1 -1
  96. package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
  97. package/dist/serialization/types/ModelVersionExecConfigParameters.js +1 -1
  98. package/dist/serialization/types/ModelVersionExecConfigRead.d.ts +1 -1
  99. package/dist/serialization/types/ModelVersionRead.d.ts +1 -1
  100. package/dist/serialization/types/ModelVersionReadStatusEnum.d.ts +1 -1
  101. package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -1
  102. package/dist/serialization/types/NormalizedLogProbs.d.ts +2 -2
  103. package/dist/serialization/types/NormalizedLogProbs.js +1 -1
  104. package/dist/serialization/types/NormalizedTokenLogProbs.d.ts +3 -3
  105. package/dist/serialization/types/NormalizedTokenLogProbs.js +2 -2
  106. package/dist/serialization/types/PaginatedSlimDocumentList.d.ts +1 -1
  107. package/dist/serialization/types/ProcessingStateEnum.d.ts +1 -1
  108. package/dist/serialization/types/PromptTemplateBlock.d.ts +1 -1
  109. package/dist/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  110. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +2 -2
  111. package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -1
  112. package/dist/serialization/types/ProviderEnum.d.ts +1 -1
  113. package/dist/serialization/types/SearchErrorResponse.d.ts +1 -1
  114. package/dist/serialization/types/SearchFiltersRequest.d.ts +1 -1
  115. package/dist/serialization/types/SearchRequestOptionsRequest.d.ts +1 -1
  116. package/dist/serialization/types/SearchResponse.d.ts +1 -1
  117. package/dist/serialization/types/SearchResult.d.ts +1 -1
  118. package/dist/serialization/types/SearchResultMergingRequest.d.ts +1 -1
  119. package/dist/serialization/types/SearchWeightsRequest.d.ts +1 -1
  120. package/dist/serialization/types/SlimDocument.d.ts +1 -1
  121. package/dist/serialization/types/SlimDocumentStatusEnum.d.ts +1 -1
  122. package/dist/serialization/types/SubmitCompletionActualRequest.d.ts +1 -1
  123. package/dist/serialization/types/SubmitCompletionActualsErrorResponse.d.ts +1 -1
  124. package/dist/serialization/types/UploadDocumentErrorResponse.d.ts +1 -1
  125. package/dist/serialization/types/UploadDocumentResponse.d.ts +1 -1
  126. package/dist/serialization/types/index.d.ts +2 -1
  127. package/dist/serialization/types/index.js +2 -1
  128. package/package.json +2 -3
  129. package/serialization/client/requests/GenerateBodyRequest.d.ts +1 -1
  130. package/serialization/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  131. package/serialization/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  132. package/serialization/types/BlockTypeEnum.d.ts +1 -1
  133. package/serialization/types/ChatMessageRequest.d.ts +13 -0
  134. package/serialization/types/ChatMessageRequest.js +34 -0
  135. package/serialization/types/ChatMessageRole.d.ts +10 -0
  136. package/serialization/types/{ChatRoleEnum.js → ChatMessageRole.js} +2 -2
  137. package/serialization/types/Document.d.ts +1 -1
  138. package/serialization/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
  139. package/serialization/types/EnrichedNormalizedCompletion.d.ts +2 -2
  140. package/serialization/types/EnrichedNormalizedCompletion.js +1 -1
  141. package/serialization/types/FinishReasonEnum.d.ts +1 -1
  142. package/serialization/types/GenerateErrorResponse.d.ts +1 -1
  143. package/serialization/types/GenerateOptionsRequest.d.ts +1 -1
  144. package/serialization/types/GenerateRequest.d.ts +2 -1
  145. package/serialization/types/GenerateRequest.js +3 -0
  146. package/serialization/types/GenerateResponse.d.ts +1 -1
  147. package/serialization/types/GenerateResult.d.ts +1 -1
  148. package/serialization/types/GenerateResultData.d.ts +1 -1
  149. package/serialization/types/GenerateResultError.d.ts +1 -1
  150. package/serialization/types/IndexingStateEnum.d.ts +1 -1
  151. package/serialization/types/LogprobsEnum.d.ts +1 -1
  152. package/serialization/types/ModelTypeEnum.d.ts +1 -1
  153. package/serialization/types/ModelVersionBuildConfig.d.ts +1 -1
  154. package/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
  155. package/serialization/types/ModelVersionExecConfigParameters.js +1 -1
  156. package/serialization/types/ModelVersionExecConfigRead.d.ts +1 -1
  157. package/serialization/types/ModelVersionRead.d.ts +1 -1
  158. package/serialization/types/ModelVersionReadStatusEnum.d.ts +1 -1
  159. package/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -1
  160. package/serialization/types/NormalizedLogProbs.d.ts +2 -2
  161. package/serialization/types/NormalizedLogProbs.js +1 -1
  162. package/serialization/types/NormalizedTokenLogProbs.d.ts +3 -3
  163. package/serialization/types/NormalizedTokenLogProbs.js +2 -2
  164. package/serialization/types/PaginatedSlimDocumentList.d.ts +1 -1
  165. package/serialization/types/ProcessingStateEnum.d.ts +1 -1
  166. package/serialization/types/PromptTemplateBlock.d.ts +1 -1
  167. package/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  168. package/serialization/types/PromptTemplateBlockProperties.d.ts +2 -2
  169. package/serialization/types/PromptTemplateBlockProperties.js +1 -1
  170. package/serialization/types/ProviderEnum.d.ts +1 -1
  171. package/serialization/types/SearchErrorResponse.d.ts +1 -1
  172. package/serialization/types/SearchFiltersRequest.d.ts +1 -1
  173. package/serialization/types/SearchRequestOptionsRequest.d.ts +1 -1
  174. package/serialization/types/SearchResponse.d.ts +1 -1
  175. package/serialization/types/SearchResult.d.ts +1 -1
  176. package/serialization/types/SearchResultMergingRequest.d.ts +1 -1
  177. package/serialization/types/SearchWeightsRequest.d.ts +1 -1
  178. package/serialization/types/SlimDocument.d.ts +1 -1
  179. package/serialization/types/SlimDocumentStatusEnum.d.ts +1 -1
  180. package/serialization/types/SubmitCompletionActualRequest.d.ts +1 -1
  181. package/serialization/types/SubmitCompletionActualsErrorResponse.d.ts +1 -1
  182. package/serialization/types/UploadDocumentErrorResponse.d.ts +1 -1
  183. package/serialization/types/UploadDocumentResponse.d.ts +1 -1
  184. package/serialization/types/index.d.ts +2 -1
  185. package/serialization/types/index.js +2 -1
  186. package/dist/serialization/types/ChatRoleEnum.d.ts +0 -10
  187. package/serialization/types/ChatRoleEnum.d.ts +0 -10
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const PromptTemplateBlock: core.serialization.ObjectSchema<serializers.PromptTemplateBlock.Raw, Vellum.PromptTemplateBlock>;
8
8
  export declare namespace PromptTemplateBlock {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const PromptTemplateBlockData: core.serialization.ObjectSchema<serializers.PromptTemplateBlockData.Raw, Vellum.PromptTemplateBlockData>;
8
8
  export declare namespace PromptTemplateBlockData {
@@ -2,12 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const PromptTemplateBlockProperties: core.serialization.ObjectSchema<serializers.PromptTemplateBlockProperties.Raw, Vellum.PromptTemplateBlockProperties>;
8
8
  export declare namespace PromptTemplateBlockProperties {
9
9
  interface Raw {
10
- chat_role?: serializers.ChatRoleEnum.Raw | null;
10
+ chat_role?: serializers.ChatMessageRole.Raw | null;
11
11
  text?: string | null;
12
12
  variable_name?: string | null;
13
13
  blocks?: Record<string, unknown>[] | null;
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PromptTemplateBlockProperties = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.PromptTemplateBlockProperties = core.serialization.object({
32
- chatRole: core.serialization.property("chat_role", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatRoleEnum).optional()),
32
+ chatRole: core.serialization.property("chat_role", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRole).optional()),
33
33
  text: core.serialization.string().optional(),
34
34
  variableName: core.serialization.property("variable_name", core.serialization.string().optional()),
35
35
  blocks: core.serialization
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const ProviderEnum: core.serialization.Schema<serializers.ProviderEnum.Raw, Vellum.ProviderEnum>;
8
8
  export declare namespace ProviderEnum {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const SearchErrorResponse: core.serialization.ObjectSchema<serializers.SearchErrorResponse.Raw, Vellum.SearchErrorResponse>;
8
8
  export declare namespace SearchErrorResponse {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const SearchFiltersRequest: core.serialization.ObjectSchema<serializers.SearchFiltersRequest.Raw, Vellum.SearchFiltersRequest>;
8
8
  export declare namespace SearchFiltersRequest {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const SearchRequestOptionsRequest: core.serialization.ObjectSchema<serializers.SearchRequestOptionsRequest.Raw, Vellum.SearchRequestOptionsRequest>;
8
8
  export declare namespace SearchRequestOptionsRequest {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const SearchResponse: core.serialization.ObjectSchema<serializers.SearchResponse.Raw, Vellum.SearchResponse>;
8
8
  export declare namespace SearchResponse {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const SearchResult: core.serialization.ObjectSchema<serializers.SearchResult.Raw, Vellum.SearchResult>;
8
8
  export declare namespace SearchResult {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const SearchResultMergingRequest: core.serialization.ObjectSchema<serializers.SearchResultMergingRequest.Raw, Vellum.SearchResultMergingRequest>;
8
8
  export declare namespace SearchResultMergingRequest {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const SearchWeightsRequest: core.serialization.ObjectSchema<serializers.SearchWeightsRequest.Raw, Vellum.SearchWeightsRequest>;
8
8
  export declare namespace SearchWeightsRequest {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const SlimDocument: core.serialization.ObjectSchema<serializers.SlimDocument.Raw, Vellum.SlimDocument>;
8
8
  export declare namespace SlimDocument {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const SlimDocumentStatusEnum: core.serialization.Schema<serializers.SlimDocumentStatusEnum.Raw, Vellum.SlimDocumentStatusEnum>;
8
8
  export declare namespace SlimDocumentStatusEnum {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const SubmitCompletionActualRequest: core.serialization.ObjectSchema<serializers.SubmitCompletionActualRequest.Raw, Vellum.SubmitCompletionActualRequest>;
8
8
  export declare namespace SubmitCompletionActualRequest {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const SubmitCompletionActualsErrorResponse: core.serialization.ObjectSchema<serializers.SubmitCompletionActualsErrorResponse.Raw, Vellum.SubmitCompletionActualsErrorResponse>;
8
8
  export declare namespace SubmitCompletionActualsErrorResponse {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const UploadDocumentErrorResponse: core.serialization.ObjectSchema<serializers.UploadDocumentErrorResponse.Raw, Vellum.UploadDocumentErrorResponse>;
8
8
  export declare namespace UploadDocumentErrorResponse {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const UploadDocumentResponse: core.serialization.ObjectSchema<serializers.UploadDocumentResponse.Raw, Vellum.UploadDocumentResponse>;
8
8
  export declare namespace UploadDocumentResponse {
@@ -1,5 +1,6 @@
1
1
  export * from "./BlockTypeEnum";
2
- export * from "./ChatRoleEnum";
2
+ export * from "./ChatMessageRequest";
3
+ export * from "./ChatMessageRole";
3
4
  export * from "./Document";
4
5
  export * from "./DocumentDocumentToDocumentIndex";
5
6
  export * from "./EnrichedNormalizedCompletion";
@@ -15,7 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BlockTypeEnum"), exports);
18
- __exportStar(require("./ChatRoleEnum"), exports);
18
+ __exportStar(require("./ChatMessageRequest"), exports);
19
+ __exportStar(require("./ChatMessageRole"), exports);
19
20
  __exportStar(require("./Document"), exports);
20
21
  __exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
21
22
  __exportStar(require("./EnrichedNormalizedCompletion"), exports);
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "v0.0.5",
3
+ "version": "v0.0.6",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "main": "./index.js",
7
7
  "types": "./index.d.ts",
8
8
  "scripts": {
9
9
  "format": "prettier --write 'src/**/*.ts'",
10
- "build": "tsc && tsc-alias",
10
+ "build": "tsc",
11
11
  "prepack": "cp -rv dist/. ."
12
12
  },
13
13
  "dependencies": {
@@ -20,7 +20,6 @@
20
20
  "devDependencies": {
21
21
  "@types/node": "17.0.33",
22
22
  "prettier": "2.7.1",
23
- "tsc-alias": "1.7.1",
24
23
  "typescript": "4.6.4"
25
24
  }
26
25
  }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "../..";
5
- import { Vellum } from "../../..";
5
+ import * as Vellum from "../../../api";
6
6
  import * as core from "../../../core";
7
7
  export declare const GenerateBodyRequest: core.serialization.Schema<serializers.GenerateBodyRequest.Raw, Vellum.GenerateBodyRequest>;
8
8
  export declare namespace GenerateBodyRequest {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "../..";
5
- import { Vellum } from "../../..";
5
+ import * as Vellum from "../../../api";
6
6
  import * as core from "../../../core";
7
7
  export declare const SearchRequestBodyRequest: core.serialization.Schema<serializers.SearchRequestBodyRequest.Raw, Vellum.SearchRequestBodyRequest>;
8
8
  export declare namespace SearchRequestBodyRequest {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "../..";
5
- import { Vellum } from "../../..";
5
+ import * as Vellum from "../../../api";
6
6
  import * as core from "../../../core";
7
7
  export declare const SubmitCompletionActualsRequest: core.serialization.Schema<serializers.SubmitCompletionActualsRequest.Raw, Vellum.SubmitCompletionActualsRequest>;
8
8
  export declare namespace SubmitCompletionActualsRequest {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const BlockTypeEnum: core.serialization.Schema<serializers.BlockTypeEnum.Raw, Vellum.BlockTypeEnum>;
8
8
  export declare namespace BlockTypeEnum {
@@ -0,0 +1,13 @@
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 ChatMessageRequest: core.serialization.ObjectSchema<serializers.ChatMessageRequest.Raw, Vellum.ChatMessageRequest>;
8
+ export declare namespace ChatMessageRequest {
9
+ interface Raw {
10
+ text: string;
11
+ role: serializers.ChatMessageRole.Raw;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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.ChatMessageRequest = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ChatMessageRequest = core.serialization.object({
32
+ text: core.serialization.string(),
33
+ role: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRole),
34
+ });
@@ -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 ChatMessageRole: core.serialization.Schema<serializers.ChatMessageRole.Raw, Vellum.ChatMessageRole>;
8
+ export declare namespace ChatMessageRole {
9
+ type Raw = "SYSTEM" | "ASSISTANT" | "USER";
10
+ }
@@ -26,6 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ChatRoleEnum = void 0;
29
+ exports.ChatMessageRole = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.ChatRoleEnum = core.serialization.enum_(["SYSTEM", "ASSISTANT", "USER"]);
31
+ exports.ChatMessageRole = core.serialization.enum_(["SYSTEM", "ASSISTANT", "USER"]);
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const Document: core.serialization.ObjectSchema<serializers.Document.Raw, Vellum.Document>;
8
8
  export declare namespace Document {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const DocumentDocumentToDocumentIndex: core.serialization.ObjectSchema<serializers.DocumentDocumentToDocumentIndex.Raw, Vellum.DocumentDocumentToDocumentIndex>;
8
8
  export declare namespace DocumentDocumentToDocumentIndex {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const EnrichedNormalizedCompletion: core.serialization.ObjectSchema<serializers.EnrichedNormalizedCompletion.Raw, Vellum.EnrichedNormalizedCompletion>;
8
8
  export declare namespace EnrichedNormalizedCompletion {
@@ -10,7 +10,7 @@ export declare namespace EnrichedNormalizedCompletion {
10
10
  id: string;
11
11
  external_id?: string | null;
12
12
  text: string;
13
- finish_reason: serializers.FinishReasonEnum.Raw;
13
+ finish_reason?: serializers.FinishReasonEnum.Raw | null;
14
14
  logprobs?: serializers.NormalizedLogProbs.Raw | null;
15
15
  model_version_id: string;
16
16
  }
@@ -32,7 +32,7 @@ exports.EnrichedNormalizedCompletion = core.serialization.object({
32
32
  id: core.serialization.string(),
33
33
  externalId: core.serialization.property("external_id", core.serialization.string().optional()),
34
34
  text: core.serialization.string(),
35
- finishReason: core.serialization.property("finish_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).FinishReasonEnum)),
35
+ finishReason: core.serialization.property("finish_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).FinishReasonEnum).optional()),
36
36
  logprobs: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NormalizedLogProbs).optional(),
37
37
  modelVersionId: core.serialization.property("model_version_id", core.serialization.string()),
38
38
  });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const FinishReasonEnum: core.serialization.Schema<serializers.FinishReasonEnum.Raw, Vellum.FinishReasonEnum>;
8
8
  export declare namespace FinishReasonEnum {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const GenerateErrorResponse: core.serialization.ObjectSchema<serializers.GenerateErrorResponse.Raw, Vellum.GenerateErrorResponse>;
8
8
  export declare namespace GenerateErrorResponse {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const GenerateOptionsRequest: core.serialization.ObjectSchema<serializers.GenerateOptionsRequest.Raw, Vellum.GenerateOptionsRequest>;
8
8
  export declare namespace GenerateOptionsRequest {
@@ -2,12 +2,13 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const GenerateRequest: core.serialization.ObjectSchema<serializers.GenerateRequest.Raw, Vellum.GenerateRequest>;
8
8
  export declare namespace GenerateRequest {
9
9
  interface Raw {
10
10
  input_values: Record<string, unknown>;
11
+ chat_history?: serializers.ChatMessageRequest.Raw[] | null;
11
12
  external_ids?: string[] | null;
12
13
  }
13
14
  }
@@ -30,5 +30,8 @@ exports.GenerateRequest = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.GenerateRequest = core.serialization.object({
32
32
  inputValues: core.serialization.property("input_values", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
33
+ chatHistory: core.serialization.property("chat_history", core.serialization
34
+ .list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest))
35
+ .optional()),
33
36
  externalIds: core.serialization.property("external_ids", core.serialization.list(core.serialization.string()).optional()),
34
37
  });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const GenerateResponse: core.serialization.ObjectSchema<serializers.GenerateResponse.Raw, Vellum.GenerateResponse>;
8
8
  export declare namespace GenerateResponse {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const GenerateResult: core.serialization.ObjectSchema<serializers.GenerateResult.Raw, Vellum.GenerateResult>;
8
8
  export declare namespace GenerateResult {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const GenerateResultData: core.serialization.ObjectSchema<serializers.GenerateResultData.Raw, Vellum.GenerateResultData>;
8
8
  export declare namespace GenerateResultData {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const GenerateResultError: core.serialization.ObjectSchema<serializers.GenerateResultError.Raw, Vellum.GenerateResultError>;
8
8
  export declare namespace GenerateResultError {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const IndexingStateEnum: core.serialization.Schema<serializers.IndexingStateEnum.Raw, Vellum.IndexingStateEnum>;
8
8
  export declare namespace IndexingStateEnum {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const LogprobsEnum: core.serialization.Schema<serializers.LogprobsEnum.Raw, Vellum.LogprobsEnum>;
8
8
  export declare namespace LogprobsEnum {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const ModelTypeEnum: core.serialization.Schema<serializers.ModelTypeEnum.Raw, Vellum.ModelTypeEnum>;
8
8
  export declare namespace ModelTypeEnum {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const ModelVersionBuildConfig: core.serialization.ObjectSchema<serializers.ModelVersionBuildConfig.Raw, Vellum.ModelVersionBuildConfig>;
8
8
  export declare namespace ModelVersionBuildConfig {
@@ -2,14 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const ModelVersionExecConfigParameters: core.serialization.ObjectSchema<serializers.ModelVersionExecConfigParameters.Raw, Vellum.ModelVersionExecConfigParameters>;
8
8
  export declare namespace ModelVersionExecConfigParameters {
9
9
  interface Raw {
10
10
  temperature: number;
11
11
  max_tokens: number;
12
- stop: string[];
12
+ stop?: string[] | null;
13
13
  top_p: number;
14
14
  top_k?: number | null;
15
15
  frequency_penalty: number;
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
31
31
  exports.ModelVersionExecConfigParameters = core.serialization.object({
32
32
  temperature: core.serialization.number(),
33
33
  maxTokens: core.serialization.property("max_tokens", core.serialization.number()),
34
- stop: core.serialization.list(core.serialization.string()),
34
+ stop: core.serialization.list(core.serialization.string()).optional(),
35
35
  topP: core.serialization.property("top_p", core.serialization.number()),
36
36
  topK: core.serialization.property("top_k", core.serialization.number().optional()),
37
37
  frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number()),
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const ModelVersionExecConfigRead: core.serialization.ObjectSchema<serializers.ModelVersionExecConfigRead.Raw, Vellum.ModelVersionExecConfigRead>;
8
8
  export declare namespace ModelVersionExecConfigRead {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const ModelVersionRead: core.serialization.ObjectSchema<serializers.ModelVersionRead.Raw, Vellum.ModelVersionRead>;
8
8
  export declare namespace ModelVersionRead {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const ModelVersionReadStatusEnum: core.serialization.Schema<serializers.ModelVersionReadStatusEnum.Raw, Vellum.ModelVersionReadStatusEnum>;
8
8
  export declare namespace ModelVersionReadStatusEnum {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as serializers from "..";
5
- import { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const ModelVersionSandboxSnapshot: core.serialization.ObjectSchema<serializers.ModelVersionSandboxSnapshot.Raw, Vellum.ModelVersionSandboxSnapshot>;
8
8
  export declare namespace ModelVersionSandboxSnapshot {