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
@@ -0,0 +1,38 @@
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.UpsertSandboxScenarioRequestRequest = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.UpsertSandboxScenarioRequestRequest = core.serialization.object({
32
+ label: core.serialization.string().optional(),
33
+ inputs: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).SandboxInputRequest)),
34
+ metricInputParams: core.serialization.property("metric_input_params", core.serialization
35
+ .lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).SandboxMetricInputParamsRequest)
36
+ .optional()),
37
+ id: core.serialization.string().optional(),
38
+ });
@@ -0,0 +1 @@
1
+ export { UpsertSandboxScenarioRequestRequest } from "./UpsertSandboxScenarioRequestRequest";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpsertSandboxScenarioRequestRequest = void 0;
4
+ var UpsertSandboxScenarioRequestRequest_1 = require("./UpsertSandboxScenarioRequestRequest");
5
+ Object.defineProperty(exports, "UpsertSandboxScenarioRequestRequest", { enumerable: true, get: function () { return UpsertSandboxScenarioRequestRequest_1.UpsertSandboxScenarioRequestRequest; } });
@@ -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);
@@ -2,9 +2,9 @@
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 {
9
- type Raw = "CHAT_MESSAGE" | "CHAT_HISTORY" | "TEXT" | "VARIABLE";
9
+ type Raw = "CHAT_MESSAGE" | "CHAT_HISTORY" | "JINJA";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.BlockTypeEnum = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.BlockTypeEnum = core.serialization.enum_(["CHAT_MESSAGE", "CHAT_HISTORY", "TEXT", "VARIABLE"]);
31
+ exports.BlockTypeEnum = core.serialization.enum_(["CHAT_MESSAGE", "CHAT_HISTORY", "JINJA"]);
@@ -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 ChatMessage: core.serialization.ObjectSchema<serializers.ChatMessage.Raw, Vellum.ChatMessage>;
8
+ export declare namespace ChatMessage {
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.ChatMessage = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ChatMessage = 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,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
+ }
@@ -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.ChatMessageRole = void 0;
30
+ const core = __importStar(require("../../core"));
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,14 +2,15 @@
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 {
9
9
  interface Raw {
10
10
  parameters: serializers.ModelVersionExecConfigParameters.Raw;
11
11
  input_variables: string[];
12
- prompt_template: string;
12
+ prompt_template?: string | null;
13
13
  prompt_block_data?: serializers.PromptTemplateBlockData.Raw | null;
14
+ prompt_syntax_version: number;
14
15
  }
15
16
  }
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
31
31
  exports.ModelVersionExecConfigRead = core.serialization.object({
32
32
  parameters: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionExecConfigParameters),
33
33
  inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.string())),
34
- promptTemplate: core.serialization.property("prompt_template", core.serialization.string()),
34
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
35
35
  promptBlockData: core.serialization.property("prompt_block_data", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockData).optional()),
36
+ promptSyntaxVersion: core.serialization.property("prompt_syntax_version", core.serialization.number()),
36
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 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,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 ModelVersionSandboxSnapshot: core.serialization.ObjectSchema<serializers.ModelVersionSandboxSnapshot.Raw, Vellum.ModelVersionSandboxSnapshot>;
8
8
  export declare namespace ModelVersionSandboxSnapshot {
9
9
  interface Raw {
10
10
  id: string;
11
11
  prompt_index: number;
12
+ prompt_id?: string | null;
12
13
  }
13
14
  }
@@ -31,4 +31,5 @@ const core = __importStar(require("../../core"));
31
31
  exports.ModelVersionSandboxSnapshot = core.serialization.object({
32
32
  id: core.serialization.string(),
33
33
  promptIndex: core.serialization.property("prompt_index", core.serialization.number()),
34
+ promptId: core.serialization.property("prompt_id", core.serialization.string().optional()),
34
35
  });
@@ -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 NormalizedLogProbs: core.serialization.ObjectSchema<serializers.NormalizedLogProbs.Raw, Vellum.NormalizedLogProbs>;
8
8
  export declare namespace NormalizedLogProbs {
9
9
  interface Raw {
10
10
  tokens: serializers.NormalizedTokenLogProbs.Raw[];
11
- likelihood: number;
11
+ likelihood?: number | null;
12
12
  }
13
13
  }
@@ -30,5 +30,5 @@ exports.NormalizedLogProbs = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.NormalizedLogProbs = core.serialization.object({
32
32
  tokens: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NormalizedTokenLogProbs)),
33
- likelihood: core.serialization.number(),
33
+ likelihood: core.serialization.number().optional(),
34
34
  });
@@ -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 NormalizedTokenLogProbs: core.serialization.ObjectSchema<serializers.NormalizedTokenLogProbs.Raw, Vellum.NormalizedTokenLogProbs>;
8
8
  export declare namespace NormalizedTokenLogProbs {
9
9
  interface Raw {
10
10
  token: string;
11
- logprob: number;
12
- top_logprobs: Record<string, number>;
11
+ logprob?: number | null;
12
+ top_logprobs?: Record<string, number | null | undefined> | null;
13
13
  text_offset: number;
14
14
  }
15
15
  }
@@ -30,7 +30,7 @@ exports.NormalizedTokenLogProbs = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.NormalizedTokenLogProbs = core.serialization.object({
32
32
  token: core.serialization.string(),
33
- logprob: core.serialization.number(),
34
- topLogprobs: core.serialization.property("top_logprobs", core.serialization.record(core.serialization.string(), core.serialization.number())),
33
+ logprob: core.serialization.number().optional(),
34
+ topLogprobs: core.serialization.property("top_logprobs", core.serialization.record(core.serialization.string(), core.serialization.number().optional()).optional()),
35
35
  textOffset: core.serialization.property("text_offset", core.serialization.number()),
36
36
  });
@@ -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 PaginatedSlimDocumentList: core.serialization.ObjectSchema<serializers.PaginatedSlimDocumentList.Raw, Vellum.PaginatedSlimDocumentList>;
8
8
  export declare namespace PaginatedSlimDocumentList {
@@ -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 ProcessingStateEnum: core.serialization.Schema<serializers.ProcessingStateEnum.Raw, Vellum.ProcessingStateEnum>;
8
8
  export declare namespace ProcessingStateEnum {
@@ -2,11 +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 PromptTemplateBlock: core.serialization.ObjectSchema<serializers.PromptTemplateBlock.Raw, Vellum.PromptTemplateBlock>;
8
8
  export declare namespace PromptTemplateBlock {
9
9
  interface Raw {
10
+ id: string;
10
11
  block_type: serializers.BlockTypeEnum.Raw;
11
12
  properties: serializers.PromptTemplateBlockProperties.Raw;
12
13
  }