vellum-ai 0.0.5 → 0.0.7

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 (313) hide show
  1. package/Client.d.ts +4 -1
  2. package/Client.js +5 -0
  3. package/api/client/requests/GenerateBodyRequest.d.ts +1 -1
  4. package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  5. package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  6. package/api/resources/documents/client/Client.d.ts +2 -2
  7. package/api/resources/documents/client/Client.js +11 -5
  8. package/api/resources/documents/client/requests/{ListDocumentsRequest.d.ts → DocumentsListRequest.d.ts} +1 -1
  9. package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +3 -3
  10. package/api/resources/documents/client/requests/index.d.ts +1 -1
  11. package/api/resources/index.d.ts +2 -0
  12. package/api/resources/index.js +3 -1
  13. package/api/resources/modelVersions/client/Client.d.ts +1 -1
  14. package/api/resources/sandboxes/client/Client.d.ts +17 -0
  15. package/api/resources/sandboxes/client/Client.js +83 -0
  16. package/api/resources/sandboxes/client/index.d.ts +1 -0
  17. package/api/resources/sandboxes/client/index.js +17 -0
  18. package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +12 -0
  19. package/api/resources/sandboxes/client/requests/index.d.ts +1 -0
  20. package/api/resources/sandboxes/client/requests/index.js +2 -0
  21. package/api/resources/sandboxes/index.d.ts +1 -0
  22. package/api/resources/sandboxes/index.js +17 -0
  23. package/api/types/BlockTypeEnum.d.ts +2 -3
  24. package/api/types/BlockTypeEnum.js +1 -2
  25. package/api/types/ChatMessage.d.ts +8 -0
  26. package/api/types/ChatMessage.js +5 -0
  27. package/api/types/ChatMessageRequest.d.ts +8 -0
  28. package/api/types/ChatMessageRequest.js +5 -0
  29. package/{dist/api/types/ChatRoleEnum.d.ts → api/types/ChatMessageRole.d.ts} +2 -2
  30. package/{dist/api/types/ChatRoleEnum.js → api/types/ChatMessageRole.js} +2 -2
  31. package/api/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
  32. package/api/types/EnrichedNormalizedCompletion.d.ts +2 -2
  33. package/api/types/GenerateOptionsRequest.d.ts +1 -1
  34. package/api/types/GenerateRequest.d.ts +3 -0
  35. package/api/types/GenerateResponse.d.ts +1 -1
  36. package/api/types/GenerateResult.d.ts +1 -1
  37. package/api/types/GenerateResultData.d.ts +1 -1
  38. package/api/types/ModelVersionBuildConfig.d.ts +1 -1
  39. package/api/types/ModelVersionExecConfigParameters.d.ts +1 -1
  40. package/api/types/ModelVersionExecConfigRead.d.ts +3 -2
  41. package/api/types/ModelVersionRead.d.ts +1 -1
  42. package/api/types/ModelVersionSandboxSnapshot.d.ts +2 -0
  43. package/api/types/NormalizedLogProbs.d.ts +2 -2
  44. package/api/types/NormalizedTokenLogProbs.d.ts +2 -2
  45. package/api/types/PaginatedSlimDocumentList.d.ts +1 -1
  46. package/api/types/PromptTemplateBlock.d.ts +2 -1
  47. package/api/types/PromptTemplateBlockData.d.ts +1 -1
  48. package/api/types/PromptTemplateBlockProperties.d.ts +2 -2
  49. package/api/types/SandboxInput.d.ts +10 -0
  50. package/api/types/SandboxInput.js +5 -0
  51. package/api/types/SandboxInputRequest.d.ts +10 -0
  52. package/api/types/SandboxInputRequest.js +5 -0
  53. package/api/types/SandboxMetricInputParams.d.ts +6 -0
  54. package/api/types/SandboxMetricInputParams.js +5 -0
  55. package/api/types/SandboxMetricInputParamsRequest.d.ts +6 -0
  56. package/api/types/SandboxMetricInputParamsRequest.js +5 -0
  57. package/api/types/SandboxScenario.d.ts +12 -0
  58. package/api/types/SandboxScenario.js +5 -0
  59. package/api/types/SearchRequestOptionsRequest.d.ts +1 -1
  60. package/api/types/SearchResponse.d.ts +1 -1
  61. package/api/types/SearchResult.d.ts +1 -1
  62. package/api/types/SlimDocument.d.ts +1 -1
  63. package/api/types/TypeEnum.d.ts +8 -0
  64. package/api/types/TypeEnum.js +10 -0
  65. package/api/types/index.d.ts +9 -1
  66. package/api/types/index.js +9 -1
  67. package/dist/Client.d.ts +4 -1
  68. package/dist/Client.js +5 -0
  69. package/dist/api/client/requests/GenerateBodyRequest.d.ts +1 -1
  70. package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  71. package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  72. package/dist/api/resources/documents/client/Client.d.ts +2 -2
  73. package/dist/api/resources/documents/client/Client.js +11 -5
  74. package/dist/api/resources/documents/client/requests/{ListDocumentsRequest.d.ts → DocumentsListRequest.d.ts} +1 -1
  75. package/dist/api/resources/documents/client/requests/DocumentsListRequest.js +5 -0
  76. package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +3 -3
  77. package/dist/api/resources/documents/client/requests/index.d.ts +1 -1
  78. package/dist/api/resources/index.d.ts +2 -0
  79. package/dist/api/resources/index.js +3 -1
  80. package/dist/api/resources/modelVersions/client/Client.d.ts +1 -1
  81. package/dist/api/resources/sandboxes/client/Client.d.ts +17 -0
  82. package/dist/api/resources/sandboxes/client/Client.js +83 -0
  83. package/dist/api/resources/sandboxes/client/index.d.ts +1 -0
  84. package/dist/api/resources/sandboxes/client/index.js +17 -0
  85. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +12 -0
  86. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +5 -0
  87. package/dist/api/resources/sandboxes/client/requests/index.d.ts +1 -0
  88. package/dist/api/resources/sandboxes/client/requests/index.js +2 -0
  89. package/dist/api/resources/sandboxes/index.d.ts +1 -0
  90. package/dist/api/resources/sandboxes/index.js +17 -0
  91. package/dist/api/types/BlockTypeEnum.d.ts +2 -3
  92. package/dist/api/types/BlockTypeEnum.js +1 -2
  93. package/dist/api/types/ChatMessage.d.ts +8 -0
  94. package/dist/api/types/ChatMessage.js +5 -0
  95. package/dist/api/types/ChatMessageRequest.d.ts +8 -0
  96. package/dist/api/types/ChatMessageRequest.js +5 -0
  97. package/{api/types/ChatRoleEnum.d.ts → dist/api/types/ChatMessageRole.d.ts} +2 -2
  98. package/{api/types/ChatRoleEnum.js → dist/api/types/ChatMessageRole.js} +2 -2
  99. package/dist/api/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
  100. package/dist/api/types/EnrichedNormalizedCompletion.d.ts +2 -2
  101. package/dist/api/types/GenerateOptionsRequest.d.ts +1 -1
  102. package/dist/api/types/GenerateRequest.d.ts +3 -0
  103. package/dist/api/types/GenerateResponse.d.ts +1 -1
  104. package/dist/api/types/GenerateResult.d.ts +1 -1
  105. package/dist/api/types/GenerateResultData.d.ts +1 -1
  106. package/dist/api/types/ModelVersionBuildConfig.d.ts +1 -1
  107. package/dist/api/types/ModelVersionExecConfigParameters.d.ts +1 -1
  108. package/dist/api/types/ModelVersionExecConfigRead.d.ts +3 -2
  109. package/dist/api/types/ModelVersionRead.d.ts +1 -1
  110. package/dist/api/types/ModelVersionSandboxSnapshot.d.ts +2 -0
  111. package/dist/api/types/NormalizedLogProbs.d.ts +2 -2
  112. package/dist/api/types/NormalizedTokenLogProbs.d.ts +2 -2
  113. package/dist/api/types/PaginatedSlimDocumentList.d.ts +1 -1
  114. package/dist/api/types/PromptTemplateBlock.d.ts +2 -1
  115. package/dist/api/types/PromptTemplateBlockData.d.ts +1 -1
  116. package/dist/api/types/PromptTemplateBlockProperties.d.ts +2 -2
  117. package/dist/api/types/SandboxInput.d.ts +10 -0
  118. package/dist/api/types/SandboxInput.js +5 -0
  119. package/dist/api/types/SandboxInputRequest.d.ts +10 -0
  120. package/dist/api/types/SandboxInputRequest.js +5 -0
  121. package/dist/api/types/SandboxMetricInputParams.d.ts +6 -0
  122. package/dist/api/types/SandboxMetricInputParams.js +5 -0
  123. package/dist/api/types/SandboxMetricInputParamsRequest.d.ts +6 -0
  124. package/dist/api/types/SandboxMetricInputParamsRequest.js +5 -0
  125. package/dist/api/types/SandboxScenario.d.ts +12 -0
  126. package/dist/api/types/SandboxScenario.js +5 -0
  127. package/dist/api/types/SearchRequestOptionsRequest.d.ts +1 -1
  128. package/dist/api/types/SearchResponse.d.ts +1 -1
  129. package/dist/api/types/SearchResult.d.ts +1 -1
  130. package/dist/api/types/SlimDocument.d.ts +1 -1
  131. package/dist/api/types/TypeEnum.d.ts +8 -0
  132. package/dist/api/types/TypeEnum.js +10 -0
  133. package/dist/api/types/index.d.ts +9 -1
  134. package/dist/api/types/index.js +9 -1
  135. package/dist/serialization/client/requests/GenerateBodyRequest.d.ts +1 -1
  136. package/dist/serialization/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  137. package/dist/serialization/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  138. package/dist/serialization/index.d.ts +1 -0
  139. package/dist/serialization/index.js +1 -0
  140. package/dist/serialization/resources/index.d.ts +2 -0
  141. package/dist/serialization/resources/index.js +31 -0
  142. package/dist/serialization/resources/sandboxes/client/index.d.ts +1 -0
  143. package/dist/serialization/resources/sandboxes/client/index.js +17 -0
  144. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +15 -0
  145. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +38 -0
  146. package/dist/serialization/resources/sandboxes/client/requests/index.d.ts +1 -0
  147. package/dist/serialization/resources/sandboxes/client/requests/index.js +5 -0
  148. package/dist/serialization/resources/sandboxes/index.d.ts +1 -0
  149. package/dist/serialization/resources/sandboxes/index.js +17 -0
  150. package/dist/serialization/types/BlockTypeEnum.d.ts +2 -2
  151. package/dist/serialization/types/BlockTypeEnum.js +1 -1
  152. package/dist/serialization/types/ChatMessage.d.ts +13 -0
  153. package/dist/serialization/types/ChatMessage.js +34 -0
  154. package/dist/serialization/types/ChatMessageRequest.d.ts +13 -0
  155. package/dist/serialization/types/ChatMessageRequest.js +34 -0
  156. package/dist/serialization/types/ChatMessageRole.d.ts +10 -0
  157. package/dist/serialization/types/ChatMessageRole.js +31 -0
  158. package/dist/serialization/types/Document.d.ts +1 -1
  159. package/dist/serialization/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
  160. package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +2 -2
  161. package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -1
  162. package/dist/serialization/types/FinishReasonEnum.d.ts +1 -1
  163. package/dist/serialization/types/GenerateErrorResponse.d.ts +1 -1
  164. package/dist/serialization/types/GenerateOptionsRequest.d.ts +1 -1
  165. package/dist/serialization/types/GenerateRequest.d.ts +2 -1
  166. package/dist/serialization/types/GenerateRequest.js +3 -0
  167. package/dist/serialization/types/GenerateResponse.d.ts +1 -1
  168. package/dist/serialization/types/GenerateResult.d.ts +1 -1
  169. package/dist/serialization/types/GenerateResultData.d.ts +1 -1
  170. package/dist/serialization/types/GenerateResultError.d.ts +1 -1
  171. package/dist/serialization/types/IndexingStateEnum.d.ts +1 -1
  172. package/dist/serialization/types/LogprobsEnum.d.ts +1 -1
  173. package/dist/serialization/types/ModelTypeEnum.d.ts +1 -1
  174. package/dist/serialization/types/ModelVersionBuildConfig.d.ts +1 -1
  175. package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
  176. package/dist/serialization/types/ModelVersionExecConfigParameters.js +1 -1
  177. package/dist/serialization/types/ModelVersionExecConfigRead.d.ts +3 -2
  178. package/dist/serialization/types/ModelVersionExecConfigRead.js +2 -1
  179. package/dist/serialization/types/ModelVersionRead.d.ts +1 -1
  180. package/dist/serialization/types/ModelVersionReadStatusEnum.d.ts +1 -1
  181. package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +2 -1
  182. package/dist/serialization/types/ModelVersionSandboxSnapshot.js +1 -0
  183. package/dist/serialization/types/NormalizedLogProbs.d.ts +2 -2
  184. package/dist/serialization/types/NormalizedLogProbs.js +1 -1
  185. package/dist/serialization/types/NormalizedTokenLogProbs.d.ts +3 -3
  186. package/dist/serialization/types/NormalizedTokenLogProbs.js +2 -2
  187. package/dist/serialization/types/PaginatedSlimDocumentList.d.ts +1 -1
  188. package/dist/serialization/types/ProcessingStateEnum.d.ts +1 -1
  189. package/dist/serialization/types/PromptTemplateBlock.d.ts +2 -1
  190. package/dist/serialization/types/PromptTemplateBlock.js +1 -0
  191. package/dist/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  192. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +2 -2
  193. package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -1
  194. package/dist/serialization/types/ProviderEnum.d.ts +1 -1
  195. package/dist/serialization/types/SandboxInput.d.ts +15 -0
  196. package/dist/serialization/types/SandboxInput.js +38 -0
  197. package/dist/serialization/types/SandboxInputRequest.d.ts +15 -0
  198. package/dist/serialization/types/SandboxInputRequest.js +38 -0
  199. package/dist/serialization/types/SandboxMetricInputParams.d.ts +12 -0
  200. package/dist/serialization/types/SandboxMetricInputParams.js +33 -0
  201. package/dist/serialization/types/SandboxMetricInputParamsRequest.d.ts +12 -0
  202. package/dist/serialization/types/SandboxMetricInputParamsRequest.js +33 -0
  203. package/dist/serialization/types/SandboxScenario.d.ts +15 -0
  204. package/dist/serialization/types/SandboxScenario.js +36 -0
  205. package/dist/serialization/types/SearchErrorResponse.d.ts +1 -1
  206. package/dist/serialization/types/SearchFiltersRequest.d.ts +1 -1
  207. package/dist/serialization/types/SearchRequestOptionsRequest.d.ts +1 -1
  208. package/dist/serialization/types/SearchResponse.d.ts +1 -1
  209. package/dist/serialization/types/SearchResult.d.ts +1 -1
  210. package/dist/serialization/types/SearchResultMergingRequest.d.ts +1 -1
  211. package/dist/serialization/types/SearchWeightsRequest.d.ts +1 -1
  212. package/dist/serialization/types/SlimDocument.d.ts +1 -1
  213. package/dist/serialization/types/SlimDocumentStatusEnum.d.ts +1 -1
  214. package/dist/serialization/types/SubmitCompletionActualRequest.d.ts +1 -1
  215. package/dist/serialization/types/SubmitCompletionActualsErrorResponse.d.ts +1 -1
  216. package/dist/serialization/types/TypeEnum.d.ts +10 -0
  217. package/dist/serialization/types/{ChatRoleEnum.js → TypeEnum.js} +5 -2
  218. package/dist/serialization/types/UploadDocumentErrorResponse.d.ts +1 -1
  219. package/dist/serialization/types/UploadDocumentResponse.d.ts +1 -1
  220. package/dist/serialization/types/index.d.ts +9 -1
  221. package/dist/serialization/types/index.js +9 -1
  222. package/package.json +2 -3
  223. package/serialization/client/requests/GenerateBodyRequest.d.ts +1 -1
  224. package/serialization/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  225. package/serialization/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  226. package/serialization/index.d.ts +1 -0
  227. package/serialization/index.js +1 -0
  228. package/serialization/resources/index.d.ts +2 -0
  229. package/serialization/resources/index.js +31 -0
  230. package/serialization/resources/sandboxes/client/index.d.ts +1 -0
  231. package/serialization/resources/sandboxes/client/index.js +17 -0
  232. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +15 -0
  233. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +38 -0
  234. package/serialization/resources/sandboxes/client/requests/index.d.ts +1 -0
  235. package/serialization/resources/sandboxes/client/requests/index.js +5 -0
  236. package/serialization/resources/sandboxes/index.d.ts +1 -0
  237. package/serialization/resources/sandboxes/index.js +17 -0
  238. package/serialization/types/BlockTypeEnum.d.ts +2 -2
  239. package/serialization/types/BlockTypeEnum.js +1 -1
  240. package/serialization/types/ChatMessage.d.ts +13 -0
  241. package/serialization/types/ChatMessage.js +34 -0
  242. package/serialization/types/ChatMessageRequest.d.ts +13 -0
  243. package/serialization/types/ChatMessageRequest.js +34 -0
  244. package/serialization/types/ChatMessageRole.d.ts +10 -0
  245. package/serialization/types/ChatMessageRole.js +31 -0
  246. package/serialization/types/Document.d.ts +1 -1
  247. package/serialization/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
  248. package/serialization/types/EnrichedNormalizedCompletion.d.ts +2 -2
  249. package/serialization/types/EnrichedNormalizedCompletion.js +1 -1
  250. package/serialization/types/FinishReasonEnum.d.ts +1 -1
  251. package/serialization/types/GenerateErrorResponse.d.ts +1 -1
  252. package/serialization/types/GenerateOptionsRequest.d.ts +1 -1
  253. package/serialization/types/GenerateRequest.d.ts +2 -1
  254. package/serialization/types/GenerateRequest.js +3 -0
  255. package/serialization/types/GenerateResponse.d.ts +1 -1
  256. package/serialization/types/GenerateResult.d.ts +1 -1
  257. package/serialization/types/GenerateResultData.d.ts +1 -1
  258. package/serialization/types/GenerateResultError.d.ts +1 -1
  259. package/serialization/types/IndexingStateEnum.d.ts +1 -1
  260. package/serialization/types/LogprobsEnum.d.ts +1 -1
  261. package/serialization/types/ModelTypeEnum.d.ts +1 -1
  262. package/serialization/types/ModelVersionBuildConfig.d.ts +1 -1
  263. package/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
  264. package/serialization/types/ModelVersionExecConfigParameters.js +1 -1
  265. package/serialization/types/ModelVersionExecConfigRead.d.ts +3 -2
  266. package/serialization/types/ModelVersionExecConfigRead.js +2 -1
  267. package/serialization/types/ModelVersionRead.d.ts +1 -1
  268. package/serialization/types/ModelVersionReadStatusEnum.d.ts +1 -1
  269. package/serialization/types/ModelVersionSandboxSnapshot.d.ts +2 -1
  270. package/serialization/types/ModelVersionSandboxSnapshot.js +1 -0
  271. package/serialization/types/NormalizedLogProbs.d.ts +2 -2
  272. package/serialization/types/NormalizedLogProbs.js +1 -1
  273. package/serialization/types/NormalizedTokenLogProbs.d.ts +3 -3
  274. package/serialization/types/NormalizedTokenLogProbs.js +2 -2
  275. package/serialization/types/PaginatedSlimDocumentList.d.ts +1 -1
  276. package/serialization/types/ProcessingStateEnum.d.ts +1 -1
  277. package/serialization/types/PromptTemplateBlock.d.ts +2 -1
  278. package/serialization/types/PromptTemplateBlock.js +1 -0
  279. package/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  280. package/serialization/types/PromptTemplateBlockProperties.d.ts +2 -2
  281. package/serialization/types/PromptTemplateBlockProperties.js +1 -1
  282. package/serialization/types/ProviderEnum.d.ts +1 -1
  283. package/serialization/types/SandboxInput.d.ts +15 -0
  284. package/serialization/types/SandboxInput.js +38 -0
  285. package/serialization/types/SandboxInputRequest.d.ts +15 -0
  286. package/serialization/types/SandboxInputRequest.js +38 -0
  287. package/serialization/types/SandboxMetricInputParams.d.ts +12 -0
  288. package/serialization/types/SandboxMetricInputParams.js +33 -0
  289. package/serialization/types/SandboxMetricInputParamsRequest.d.ts +12 -0
  290. package/serialization/types/SandboxMetricInputParamsRequest.js +33 -0
  291. package/serialization/types/SandboxScenario.d.ts +15 -0
  292. package/serialization/types/SandboxScenario.js +36 -0
  293. package/serialization/types/SearchErrorResponse.d.ts +1 -1
  294. package/serialization/types/SearchFiltersRequest.d.ts +1 -1
  295. package/serialization/types/SearchRequestOptionsRequest.d.ts +1 -1
  296. package/serialization/types/SearchResponse.d.ts +1 -1
  297. package/serialization/types/SearchResult.d.ts +1 -1
  298. package/serialization/types/SearchResultMergingRequest.d.ts +1 -1
  299. package/serialization/types/SearchWeightsRequest.d.ts +1 -1
  300. package/serialization/types/SlimDocument.d.ts +1 -1
  301. package/serialization/types/SlimDocumentStatusEnum.d.ts +1 -1
  302. package/serialization/types/SubmitCompletionActualRequest.d.ts +1 -1
  303. package/serialization/types/SubmitCompletionActualsErrorResponse.d.ts +1 -1
  304. package/serialization/types/TypeEnum.d.ts +10 -0
  305. package/serialization/types/{ChatRoleEnum.js → TypeEnum.js} +5 -2
  306. package/serialization/types/UploadDocumentErrorResponse.d.ts +1 -1
  307. package/serialization/types/UploadDocumentResponse.d.ts +1 -1
  308. package/serialization/types/index.d.ts +9 -1
  309. package/serialization/types/index.js +9 -1
  310. package/dist/serialization/types/ChatRoleEnum.d.ts +0 -10
  311. package/serialization/types/ChatRoleEnum.d.ts +0 -10
  312. /package/api/resources/documents/client/requests/{ListDocumentsRequest.js → DocumentsListRequest.js} +0 -0
  313. /package/{dist/api/resources/documents/client/requests/ListDocumentsRequest.js → api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js} +0 -0
package/Client.d.ts CHANGED
@@ -3,9 +3,10 @@
3
3
  */
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
- import { Vellum } from ".";
6
+ import * as Vellum from "./api";
7
7
  import { Documents } from "./api/resources/documents/client/Client";
8
8
  import { ModelVersions } from "./api/resources/modelVersions/client/Client";
9
+ import { Sandboxes } from "./api/resources/sandboxes/client/Client";
9
10
  export declare namespace VellumClient {
10
11
  interface Options {
11
12
  environment?: environments.VellumEnvironment | environments.VellumEnvironmentUrls;
@@ -22,4 +23,6 @@ export declare class VellumClient {
22
23
  get documents(): Documents;
23
24
  protected _modelVersions: ModelVersions | undefined;
24
25
  get modelVersions(): ModelVersions;
26
+ protected _sandboxes: Sandboxes | undefined;
27
+ get sandboxes(): Sandboxes;
25
28
  }
package/Client.js CHANGED
@@ -37,6 +37,7 @@ const serializers = __importStar(require("./serialization"));
37
37
  const errors = __importStar(require("./errors"));
38
38
  const Client_1 = require("./api/resources/documents/client/Client");
39
39
  const Client_2 = require("./api/resources/modelVersions/client/Client");
40
+ const Client_3 = require("./api/resources/sandboxes/client/Client");
40
41
  class VellumClient {
41
42
  options;
42
43
  constructor(options) {
@@ -159,5 +160,9 @@ class VellumClient {
159
160
  get modelVersions() {
160
161
  return (this._modelVersions ??= new Client_2.ModelVersions(this.options));
161
162
  }
163
+ _sandboxes;
164
+ get sandboxes() {
165
+ return (this._sandboxes ??= new Client_3.Sandboxes(this.options));
166
+ }
162
167
  }
163
168
  exports.VellumClient = VellumClient;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../../..";
4
+ import * as Vellum from "../..";
5
5
  export interface GenerateBodyRequest {
6
6
  /** The ID of the deployment. Must provide either this or deployment_name. */
7
7
  deploymentId?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../../..";
4
+ import * as Vellum from "../..";
5
5
  export interface SearchRequestBodyRequest {
6
6
  /** The ID of the index to search against. Must provide either this or index_name. */
7
7
  indexId?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../../..";
4
+ import * as Vellum from "../..";
5
5
  export interface SubmitCompletionActualsRequest {
6
6
  /** The ID of the deployment. Must provide either this or deployment_name. */
7
7
  deploymentId?: string;
@@ -4,7 +4,7 @@
4
4
  /// <reference types="node" />
5
5
  import * as environments from "../../../../environments";
6
6
  import * as core from "../../../../core";
7
- import { Vellum } from "../../../..";
7
+ import * as Vellum from "../../..";
8
8
  import * as fs from "fs";
9
9
  export declare namespace Documents {
10
10
  interface Options {
@@ -15,6 +15,6 @@ export declare namespace Documents {
15
15
  export declare class Documents {
16
16
  protected readonly options: Documents.Options;
17
17
  constructor(options: Documents.Options);
18
- list(request?: Vellum.ListDocumentsRequest): Promise<Vellum.PaginatedSlimDocumentList>;
18
+ list(request?: Vellum.DocumentsListRequest): Promise<Vellum.PaginatedSlimDocumentList>;
19
19
  upload(contents: File | fs.ReadStream, request: Vellum.UploadDocumentBodyRequest): Promise<Vellum.UploadDocumentResponse>;
20
20
  }
@@ -95,14 +95,20 @@ class Documents {
95
95
  }
96
96
  async upload(contents, request) {
97
97
  const _request = new form_data_1.default();
98
- for (const _item of request.addToIndexNames) {
99
- _request.append("add_to_index_names", _item);
98
+ if (request.addToIndexNames != null) {
99
+ for (const _item of request.addToIndexNames) {
100
+ _request.append("add_to_index_names", _item);
101
+ }
102
+ }
103
+ if (request.externalId != null) {
104
+ _request.append("external_id", request.externalId);
100
105
  }
101
- _request.append("external_id", request.externalId);
102
106
  _request.append("label", request.label);
103
107
  _request.append("contents", contents);
104
- for (const _item of request.keywords) {
105
- _request.append("keywords", _item);
108
+ if (request.keywords != null) {
109
+ for (const _item of request.keywords) {
110
+ _request.append("keywords", _item);
111
+ }
106
112
  }
107
113
  const _response = await core.fetcher({
108
114
  url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).documents, "v1/upload-document"),
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface ListDocumentsRequest {
4
+ export interface DocumentsListRequest {
5
5
  documentIndexId?: string;
6
6
  limit?: number;
7
7
  offset?: number;
@@ -3,11 +3,11 @@
3
3
  */
4
4
  export interface UploadDocumentBodyRequest {
5
5
  /** Optionally include the names of all indexes that you'd like this document to be included in */
6
- addToIndexNames: string[];
6
+ addToIndexNames?: string[];
7
7
  /** Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed. */
8
- externalId: string;
8
+ externalId?: string;
9
9
  /** A human-friendly name for this document. Typically the filename. */
10
10
  label: string;
11
11
  /** Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches. */
12
- keywords: string[];
12
+ keywords?: string[];
13
13
  }
@@ -1,2 +1,2 @@
1
- export { ListDocumentsRequest } from "./ListDocumentsRequest";
1
+ export { DocumentsListRequest } from "./DocumentsListRequest";
2
2
  export { UploadDocumentBodyRequest } from "./UploadDocumentBodyRequest";
@@ -1,3 +1,5 @@
1
1
  export * as documents from "./documents";
2
2
  export * as modelVersions from "./modelVersions";
3
+ export * as sandboxes from "./sandboxes";
3
4
  export * from "./documents/client/requests";
5
+ export * from "./sandboxes/client/requests";
@@ -26,7 +26,9 @@ 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.modelVersions = exports.documents = void 0;
29
+ exports.sandboxes = exports.modelVersions = exports.documents = void 0;
30
30
  exports.documents = __importStar(require("./documents"));
31
31
  exports.modelVersions = __importStar(require("./modelVersions"));
32
+ exports.sandboxes = __importStar(require("./sandboxes"));
32
33
  __exportStar(require("./documents/client/requests"), exports);
34
+ __exportStar(require("./sandboxes/client/requests"), exports);
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
- import { Vellum } from "../../../..";
6
+ import * as Vellum from "../../..";
7
7
  export declare namespace ModelVersions {
8
8
  interface Options {
9
9
  environment?: environments.VellumEnvironment | environments.VellumEnvironmentUrls;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Vellum from "../../..";
7
+ export declare namespace Sandboxes {
8
+ interface Options {
9
+ environment?: environments.VellumEnvironment | environments.VellumEnvironmentUrls;
10
+ apiKey: core.Supplier<string>;
11
+ }
12
+ }
13
+ export declare class Sandboxes {
14
+ protected readonly options: Sandboxes.Options;
15
+ constructor(options: Sandboxes.Options);
16
+ upsertSandboxScenario(id: string, request: Vellum.UpsertSandboxScenarioRequestRequest): Promise<Vellum.SandboxScenario>;
17
+ }
@@ -0,0 +1,83 @@
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.Sandboxes = 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 Sandboxes {
39
+ options;
40
+ constructor(options) {
41
+ this.options = options;
42
+ }
43
+ async upsertSandboxScenario(id, request) {
44
+ const _response = await core.fetcher({
45
+ url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).default, `v1/sandboxes/${id}/scenarios`),
46
+ method: "POST",
47
+ headers: {
48
+ X_API_KEY: await core.Supplier.get(this.options.apiKey),
49
+ },
50
+ contentType: "application/json",
51
+ body: await serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
52
+ unrecognizedObjectKeys: "strip",
53
+ }),
54
+ });
55
+ if (_response.ok) {
56
+ return await serializers.SandboxScenario.parseOrThrow(_response.body, {
57
+ unrecognizedObjectKeys: "passthrough",
58
+ allowUnrecognizedUnionMembers: true,
59
+ allowUnrecognizedEnumValues: true,
60
+ });
61
+ }
62
+ if (_response.error.reason === "status-code") {
63
+ throw new errors.VellumError({
64
+ statusCode: _response.error.statusCode,
65
+ body: _response.error.body,
66
+ });
67
+ }
68
+ switch (_response.error.reason) {
69
+ case "non-json":
70
+ throw new errors.VellumError({
71
+ statusCode: _response.error.statusCode,
72
+ body: _response.error.rawBody,
73
+ });
74
+ case "timeout":
75
+ throw new errors.VellumTimeoutError();
76
+ case "unknown":
77
+ throw new errors.VellumError({
78
+ message: _response.error.errorMessage,
79
+ });
80
+ }
81
+ }
82
+ }
83
+ exports.Sandboxes = Sandboxes;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -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("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../../../..";
5
+ export interface UpsertSandboxScenarioRequestRequest {
6
+ label?: string;
7
+ /** The inputs for the scenario */
8
+ inputs: Vellum.SandboxInputRequest[];
9
+ metricInputParams?: Vellum.SandboxMetricInputParamsRequest;
10
+ /** The id of the scenario to update. If none is provided, an id will be generated and a new scenario will be appended. */
11
+ id?: string;
12
+ }
@@ -0,0 +1 @@
1
+ export { UpsertSandboxScenarioRequestRequest } from "./UpsertSandboxScenarioRequestRequest";
@@ -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,10 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type BlockTypeEnum = "CHAT_MESSAGE" | "CHAT_HISTORY" | "TEXT" | "VARIABLE";
4
+ export declare type BlockTypeEnum = "CHAT_MESSAGE" | "CHAT_HISTORY" | "JINJA";
5
5
  export declare const BlockTypeEnum: {
6
6
  readonly ChatMessage: "CHAT_MESSAGE";
7
7
  readonly ChatHistory: "CHAT_HISTORY";
8
- readonly Text: "TEXT";
9
- readonly Variable: "VARIABLE";
8
+ readonly Jinja: "JINJA";
10
9
  };
@@ -7,6 +7,5 @@ exports.BlockTypeEnum = void 0;
7
7
  exports.BlockTypeEnum = {
8
8
  ChatMessage: "CHAT_MESSAGE",
9
9
  ChatHistory: "CHAT_HISTORY",
10
- Text: "TEXT",
11
- Variable: "VARIABLE",
10
+ Jinja: "JINJA",
12
11
  };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface ChatMessage {
6
+ text: string;
7
+ role: Vellum.ChatMessageRole;
8
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface ChatMessageRequest {
6
+ text: string;
7
+ role: Vellum.ChatMessageRole;
8
+ }
@@ -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 });
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type ChatRoleEnum = "SYSTEM" | "ASSISTANT" | "USER";
5
- export declare const ChatRoleEnum: {
4
+ export declare type ChatMessageRole = "SYSTEM" | "ASSISTANT" | "USER";
5
+ export declare const ChatMessageRole: {
6
6
  readonly System: "SYSTEM";
7
7
  readonly Assistant: "ASSISTANT";
8
8
  readonly User: "USER";
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ChatRoleEnum = void 0;
7
- exports.ChatRoleEnum = {
6
+ exports.ChatMessageRole = void 0;
7
+ exports.ChatMessageRole = {
8
8
  System: "SYSTEM",
9
9
  Assistant: "ASSISTANT",
10
10
  User: "USER",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface DocumentDocumentToDocumentIndex {
6
6
  /** Vellum-generated ID that uniquely identifies this link. */
7
7
  id: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface EnrichedNormalizedCompletion {
6
6
  /** The Vellum-generated ID of the completion. */
7
7
  id: string;
@@ -10,7 +10,7 @@ export interface EnrichedNormalizedCompletion {
10
10
  /** The text generated by the LLM. */
11
11
  text: string;
12
12
  /** The reason the generation finished. */
13
- finishReason: Vellum.FinishReasonEnum;
13
+ finishReason?: Vellum.FinishReasonEnum;
14
14
  /** The logprobs of the completion. Only present if specified in the original request options. */
15
15
  logprobs?: Vellum.NormalizedLogProbs;
16
16
  /** The ID of the model version used to generate this completion. */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface GenerateOptionsRequest {
6
6
  /** Which logprobs to include, if any. Defaults to NONE. */
7
7
  logprobs?: Vellum.LogprobsEnum;
@@ -1,9 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Vellum from "..";
4
5
  export interface GenerateRequest {
5
6
  /** Key/value pairs for each template variable defined in the deployment's prompt. */
6
7
  inputValues: Record<string, unknown>;
8
+ /** Optionally provide a list of chat messages that'll be used in place of the special {$chat_history} variable, if included in the prompt. */
9
+ chatHistory?: Vellum.ChatMessageRequest[];
7
10
  /** Optionally include a unique identifier for each generation, as represented outside of Vellum. Note that this should generally be a list of length one. */
8
11
  externalIds?: string[];
9
12
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface GenerateResponse {
6
6
  /** The results of each generation request. */
7
7
  results: Vellum.GenerateResult[];
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface GenerateResult {
6
6
  /** An object containing the resulting generation. This key will be absent if the LLM provider experienced an error. */
7
7
  data?: Vellum.GenerateResultData;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface GenerateResultData {
6
6
  /** The generated completions. This will generally be a list of length one. */
7
7
  completions: Vellum.EnrichedNormalizedCompletion[];
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface ModelVersionBuildConfig {
6
6
  /** The name of the base model used to create this model version, as identified by the LLM provider. */
7
7
  baseModel: string;
@@ -4,7 +4,7 @@
4
4
  export interface ModelVersionExecConfigParameters {
5
5
  temperature: number;
6
6
  maxTokens: number;
7
- stop: string[];
7
+ stop?: string[];
8
8
  topP: number;
9
9
  topK?: number;
10
10
  frequencyPenalty: number;
@@ -1,13 +1,14 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface ModelVersionExecConfigRead {
6
6
  /** The generation parameters that are passed to the LLM provider at runtime. */
7
7
  parameters: Vellum.ModelVersionExecConfigParameters;
8
8
  /** Names of the template variables specified in the prompt template. */
9
9
  inputVariables: string[];
10
10
  /** The template used to generate prompts for this model version. */
11
- promptTemplate: string;
11
+ promptTemplate?: string;
12
12
  promptBlockData?: Vellum.PromptTemplateBlockData;
13
+ promptSyntaxVersion: number;
13
14
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface ModelVersionRead {
6
6
  /** Vellum-generated ID that uniquely identifies this model version. */
7
7
  id: string;
@@ -6,4 +6,6 @@ export interface ModelVersionSandboxSnapshot {
6
6
  id: string;
7
7
  /** The index of the prompt in the sandbox snapshot. */
8
8
  promptIndex: number;
9
+ /** The id of the prompt in the sandbox snapshot. */
10
+ promptId?: string;
9
11
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface NormalizedLogProbs {
6
6
  tokens: Vellum.NormalizedTokenLogProbs[];
7
- likelihood: number;
7
+ likelihood?: number;
8
8
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export interface NormalizedTokenLogProbs {
5
5
  token: string;
6
- logprob: number;
7
- topLogprobs: Record<string, number>;
6
+ logprob?: number;
7
+ topLogprobs?: Record<string, number | undefined>;
8
8
  textOffset: number;
9
9
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface PaginatedSlimDocumentList {
6
6
  count?: number;
7
7
  next?: string;
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface PromptTemplateBlock {
6
+ id: string;
6
7
  blockType: Vellum.BlockTypeEnum;
7
8
  properties: Vellum.PromptTemplateBlockProperties;
8
9
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockData {
6
6
  version: number;
7
7
  blocks: Vellum.PromptTemplateBlock[];
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockProperties {
6
- chatRole?: Vellum.ChatRoleEnum;
6
+ chatRole?: Vellum.ChatMessageRole;
7
7
  text?: string;
8
8
  variableName?: string;
9
9
  blocks?: Record<string, unknown>[];