vellum-ai 0.3.25 → 0.4.0

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 (347) hide show
  1. package/Client.js +9 -9
  2. package/api/resources/deployments/client/Client.js +3 -3
  3. package/api/resources/documentIndexes/client/Client.js +6 -6
  4. package/api/resources/documents/client/Client.d.ts +7 -0
  5. package/api/resources/documents/client/Client.js +51 -4
  6. package/api/resources/folderEntities/client/Client.js +1 -1
  7. package/api/resources/modelVersions/client/Client.js +1 -1
  8. package/api/resources/registeredPrompts/client/Client.d.ts +2 -6
  9. package/api/resources/registeredPrompts/client/Client.js +3 -7
  10. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -6
  11. package/api/resources/sandboxes/client/Client.d.ts +1 -9
  12. package/api/resources/sandboxes/client/Client.js +3 -11
  13. package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -10
  14. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  15. package/api/resources/testSuites/client/Client.js +3 -3
  16. package/api/resources/workflowDeployments/client/Client.js +2 -2
  17. package/api/types/ChatHistoryPromptTemplateBlock.d.ts +12 -0
  18. package/api/types/ChatHistoryPromptTemplateBlockRequest.d.ts +12 -0
  19. package/api/types/ChatMessageEnum.d.ts +4 -0
  20. package/api/types/ChatMessagePromptTemplateBlock.d.ts +12 -0
  21. package/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +13 -0
  22. package/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +13 -0
  23. package/api/types/ChatMessagePromptTemplateBlockRequest.d.ts +12 -0
  24. package/api/types/ChatMessagePromptTemplateBlockRequest.js +5 -0
  25. package/api/types/FulfilledFunctionCallRequest.d.ts +13 -0
  26. package/api/types/FulfilledFunctionCallRequest.js +5 -0
  27. package/api/types/FunctionDefinitionEnum.d.ts +4 -0
  28. package/api/types/FunctionDefinitionEnum.js +5 -0
  29. package/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +12 -0
  30. package/api/types/FunctionDefinitionPromptTemplateBlock.js +5 -0
  31. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +13 -0
  32. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +5 -0
  33. package/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +13 -0
  34. package/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +5 -0
  35. package/api/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +12 -0
  36. package/api/types/FunctionDefinitionPromptTemplateBlockRequest.js +5 -0
  37. package/api/types/JinjaEnum.d.ts +4 -0
  38. package/api/types/JinjaEnum.js +5 -0
  39. package/api/types/JinjaPromptTemplateBlock.d.ts +12 -0
  40. package/api/types/JinjaPromptTemplateBlock.js +5 -0
  41. package/api/types/JinjaPromptTemplateBlockProperties.d.ts +8 -0
  42. package/api/types/JinjaPromptTemplateBlockProperties.js +5 -0
  43. package/api/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +8 -0
  44. package/api/types/JinjaPromptTemplateBlockPropertiesRequest.js +5 -0
  45. package/api/types/JinjaPromptTemplateBlockRequest.d.ts +12 -0
  46. package/api/types/JinjaPromptTemplateBlockRequest.js +5 -0
  47. package/api/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +11 -0
  48. package/api/types/NamedScenarioInputChatHistoryVariableValueRequest.js +5 -0
  49. package/api/types/NamedScenarioInputRequest.d.ts +13 -0
  50. package/api/types/NamedScenarioInputRequest.js +5 -0
  51. package/api/types/NamedScenarioInputStringVariableValueRequest.d.ts +10 -0
  52. package/api/types/NamedScenarioInputStringVariableValueRequest.js +5 -0
  53. package/api/types/NamedTestCaseFunctionCallVariableValue.d.ts +11 -0
  54. package/api/types/NamedTestCaseFunctionCallVariableValue.js +5 -0
  55. package/api/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +11 -0
  56. package/api/types/NamedTestCaseFunctionCallVariableValueRequest.js +5 -0
  57. package/api/types/NamedTestCaseVariableValue.d.ts +4 -1
  58. package/api/types/NamedTestCaseVariableValueRequest.d.ts +4 -1
  59. package/api/types/PromptTemplateBlock.d.ts +14 -5
  60. package/api/types/PromptTemplateBlockData.d.ts +1 -1
  61. package/api/types/PromptTemplateBlockDataRequest.d.ts +1 -1
  62. package/api/types/PromptTemplateBlockRequest.d.ts +14 -5
  63. package/api/types/ScenarioInput.d.ts +8 -5
  64. package/api/types/ScenarioInputChatHistoryVariableValue.d.ts +11 -0
  65. package/api/types/ScenarioInputChatHistoryVariableValue.js +5 -0
  66. package/api/types/ScenarioInputStringVariableValue.d.ts +10 -0
  67. package/api/types/ScenarioInputStringVariableValue.js +5 -0
  68. package/api/types/TestCaseFunctionCallVariableValue.d.ts +12 -0
  69. package/api/types/TestCaseFunctionCallVariableValue.js +5 -0
  70. package/api/types/TestCaseVariableValue.d.ts +4 -1
  71. package/api/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +12 -0
  72. package/api/types/TestSuiteRunExecutionFunctionCallOutput.js +5 -0
  73. package/api/types/TestSuiteRunExecutionOutput.d.ts +4 -1
  74. package/api/types/VellumVariableType.d.ts +3 -1
  75. package/api/types/VellumVariableType.js +1 -0
  76. package/api/types/index.d.ts +27 -5
  77. package/api/types/index.js +27 -5
  78. package/dist/Client.js +9 -9
  79. package/dist/api/resources/deployments/client/Client.js +3 -3
  80. package/dist/api/resources/documentIndexes/client/Client.js +6 -6
  81. package/dist/api/resources/documents/client/Client.d.ts +7 -0
  82. package/dist/api/resources/documents/client/Client.js +51 -4
  83. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  84. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  85. package/dist/api/resources/registeredPrompts/client/Client.d.ts +2 -6
  86. package/dist/api/resources/registeredPrompts/client/Client.js +3 -7
  87. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -6
  88. package/dist/api/resources/sandboxes/client/Client.d.ts +1 -9
  89. package/dist/api/resources/sandboxes/client/Client.js +3 -11
  90. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -10
  91. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  92. package/dist/api/resources/testSuites/client/Client.js +3 -3
  93. package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
  94. package/dist/api/types/ChatHistoryPromptTemplateBlock.d.ts +12 -0
  95. package/dist/api/types/ChatHistoryPromptTemplateBlock.js +5 -0
  96. package/dist/api/types/ChatHistoryPromptTemplateBlockRequest.d.ts +12 -0
  97. package/dist/api/types/ChatHistoryPromptTemplateBlockRequest.js +5 -0
  98. package/dist/api/types/ChatMessageEnum.d.ts +4 -0
  99. package/dist/api/types/ChatMessageEnum.js +5 -0
  100. package/dist/api/types/ChatMessagePromptTemplateBlock.d.ts +12 -0
  101. package/dist/api/types/ChatMessagePromptTemplateBlock.js +5 -0
  102. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +13 -0
  103. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.js +5 -0
  104. package/dist/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +13 -0
  105. package/dist/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +5 -0
  106. package/dist/api/types/ChatMessagePromptTemplateBlockRequest.d.ts +12 -0
  107. package/dist/api/types/ChatMessagePromptTemplateBlockRequest.js +5 -0
  108. package/dist/api/types/FulfilledFunctionCallRequest.d.ts +13 -0
  109. package/dist/api/types/FulfilledFunctionCallRequest.js +5 -0
  110. package/dist/api/types/FunctionDefinitionEnum.d.ts +4 -0
  111. package/dist/api/types/FunctionDefinitionEnum.js +5 -0
  112. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +12 -0
  113. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.js +5 -0
  114. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +13 -0
  115. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +5 -0
  116. package/dist/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +13 -0
  117. package/dist/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +5 -0
  118. package/dist/api/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +12 -0
  119. package/dist/api/types/FunctionDefinitionPromptTemplateBlockRequest.js +5 -0
  120. package/dist/api/types/JinjaEnum.d.ts +4 -0
  121. package/dist/api/types/JinjaEnum.js +5 -0
  122. package/dist/api/types/JinjaPromptTemplateBlock.d.ts +12 -0
  123. package/dist/api/types/JinjaPromptTemplateBlock.js +5 -0
  124. package/dist/api/types/JinjaPromptTemplateBlockProperties.d.ts +8 -0
  125. package/dist/api/types/JinjaPromptTemplateBlockProperties.js +5 -0
  126. package/dist/api/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +8 -0
  127. package/dist/api/types/JinjaPromptTemplateBlockPropertiesRequest.js +5 -0
  128. package/dist/api/types/JinjaPromptTemplateBlockRequest.d.ts +12 -0
  129. package/dist/api/types/JinjaPromptTemplateBlockRequest.js +5 -0
  130. package/dist/api/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +11 -0
  131. package/dist/api/types/NamedScenarioInputChatHistoryVariableValueRequest.js +5 -0
  132. package/dist/api/types/NamedScenarioInputRequest.d.ts +13 -0
  133. package/dist/api/types/NamedScenarioInputRequest.js +5 -0
  134. package/dist/api/types/NamedScenarioInputStringVariableValueRequest.d.ts +10 -0
  135. package/dist/api/types/NamedScenarioInputStringVariableValueRequest.js +5 -0
  136. package/dist/api/types/NamedTestCaseFunctionCallVariableValue.d.ts +11 -0
  137. package/dist/api/types/NamedTestCaseFunctionCallVariableValue.js +5 -0
  138. package/dist/api/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +11 -0
  139. package/dist/api/types/NamedTestCaseFunctionCallVariableValueRequest.js +5 -0
  140. package/dist/api/types/NamedTestCaseVariableValue.d.ts +4 -1
  141. package/dist/api/types/NamedTestCaseVariableValueRequest.d.ts +4 -1
  142. package/dist/api/types/PromptTemplateBlock.d.ts +14 -5
  143. package/dist/api/types/PromptTemplateBlockData.d.ts +1 -1
  144. package/dist/api/types/PromptTemplateBlockDataRequest.d.ts +1 -1
  145. package/dist/api/types/PromptTemplateBlockRequest.d.ts +14 -5
  146. package/dist/api/types/ScenarioInput.d.ts +8 -5
  147. package/dist/api/types/ScenarioInputChatHistoryVariableValue.d.ts +11 -0
  148. package/dist/api/types/ScenarioInputChatHistoryVariableValue.js +5 -0
  149. package/dist/api/types/ScenarioInputStringVariableValue.d.ts +10 -0
  150. package/dist/api/types/ScenarioInputStringVariableValue.js +5 -0
  151. package/dist/api/types/TestCaseFunctionCallVariableValue.d.ts +12 -0
  152. package/dist/api/types/TestCaseFunctionCallVariableValue.js +5 -0
  153. package/dist/api/types/TestCaseVariableValue.d.ts +4 -1
  154. package/dist/api/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +12 -0
  155. package/dist/api/types/TestSuiteRunExecutionFunctionCallOutput.js +5 -0
  156. package/dist/api/types/TestSuiteRunExecutionOutput.d.ts +4 -1
  157. package/dist/api/types/VellumVariableType.d.ts +3 -1
  158. package/dist/api/types/VellumVariableType.js +1 -0
  159. package/dist/api/types/index.d.ts +27 -5
  160. package/dist/api/types/index.js +27 -5
  161. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -2
  162. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +2 -2
  163. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +15 -0
  164. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.js +36 -0
  165. package/dist/serialization/types/ChatHistoryPromptTemplateBlockRequest.d.ts +15 -0
  166. package/dist/serialization/types/ChatHistoryPromptTemplateBlockRequest.js +36 -0
  167. package/dist/serialization/types/ChatMessageEnum.d.ts +10 -0
  168. package/{serialization/types/ScenarioInputTypeEnum.js → dist/serialization/types/ChatMessageEnum.js} +2 -2
  169. package/dist/serialization/types/ChatMessagePromptTemplateBlock.d.ts +15 -0
  170. package/dist/serialization/types/ChatMessagePromptTemplateBlock.js +45 -0
  171. package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +16 -0
  172. package/{serialization/types/PromptTemplateBlockProperties.js → dist/serialization/types/ChatMessagePromptTemplateBlockProperties.js} +4 -13
  173. package/dist/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +16 -0
  174. package/dist/serialization/types/{PromptTemplateBlockProperties.js → ChatMessagePromptTemplateBlockPropertiesRequest.js} +4 -13
  175. package/dist/serialization/types/ChatMessagePromptTemplateBlockRequest.d.ts +15 -0
  176. package/dist/serialization/types/ChatMessagePromptTemplateBlockRequest.js +45 -0
  177. package/dist/serialization/types/FulfilledFunctionCallRequest.d.ts +16 -0
  178. package/dist/serialization/types/FulfilledFunctionCallRequest.js +37 -0
  179. package/dist/serialization/types/FunctionDefinitionEnum.d.ts +10 -0
  180. package/dist/serialization/types/{BlockTypeEnum.js → FunctionDefinitionEnum.js} +2 -2
  181. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +16 -0
  182. package/{serialization/types/ScenarioInputRequest.js → dist/serialization/types/FunctionDefinitionPromptTemplateBlock.js} +7 -8
  183. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +15 -0
  184. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +36 -0
  185. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +15 -0
  186. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +36 -0
  187. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +16 -0
  188. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.js +37 -0
  189. package/dist/serialization/types/JinjaEnum.d.ts +10 -0
  190. package/dist/serialization/types/{ScenarioInputTypeEnum.js → JinjaEnum.js} +2 -2
  191. package/dist/serialization/types/JinjaPromptTemplateBlock.d.ts +16 -0
  192. package/dist/serialization/types/JinjaPromptTemplateBlock.js +37 -0
  193. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +14 -0
  194. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.js +35 -0
  195. package/dist/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +14 -0
  196. package/dist/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.js +35 -0
  197. package/dist/serialization/types/JinjaPromptTemplateBlockRequest.d.ts +16 -0
  198. package/dist/serialization/types/JinjaPromptTemplateBlockRequest.js +37 -0
  199. package/dist/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +14 -0
  200. package/dist/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.js +35 -0
  201. package/dist/serialization/types/NamedScenarioInputRequest.d.ts +18 -0
  202. package/dist/serialization/types/NamedScenarioInputRequest.js +41 -0
  203. package/dist/serialization/types/NamedScenarioInputStringVariableValueRequest.d.ts +13 -0
  204. package/dist/serialization/types/NamedScenarioInputStringVariableValueRequest.js +34 -0
  205. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValue.d.ts +14 -0
  206. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValue.js +35 -0
  207. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +14 -0
  208. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.js +35 -0
  209. package/dist/serialization/types/NamedTestCaseVariableValue.d.ts +5 -1
  210. package/dist/serialization/types/NamedTestCaseVariableValue.js +2 -0
  211. package/dist/serialization/types/NamedTestCaseVariableValueRequest.d.ts +5 -1
  212. package/dist/serialization/types/NamedTestCaseVariableValueRequest.js +2 -0
  213. package/dist/serialization/types/PromptTemplateBlock.d.ts +16 -8
  214. package/dist/serialization/types/PromptTemplateBlock.js +13 -7
  215. package/dist/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  216. package/dist/serialization/types/PromptTemplateBlockData.js +1 -1
  217. package/dist/serialization/types/PromptTemplateBlockDataRequest.d.ts +1 -1
  218. package/dist/serialization/types/PromptTemplateBlockDataRequest.js +1 -1
  219. package/dist/serialization/types/PromptTemplateBlockRequest.d.ts +16 -8
  220. package/dist/serialization/types/PromptTemplateBlockRequest.js +13 -7
  221. package/dist/serialization/types/ScenarioInput.d.ts +9 -8
  222. package/dist/serialization/types/ScenarioInput.js +10 -7
  223. package/dist/serialization/types/ScenarioInputChatHistoryVariableValue.d.ts +14 -0
  224. package/dist/serialization/types/ScenarioInputChatHistoryVariableValue.js +35 -0
  225. package/dist/serialization/types/ScenarioInputStringVariableValue.d.ts +13 -0
  226. package/dist/serialization/types/ScenarioInputStringVariableValue.js +34 -0
  227. package/dist/serialization/types/TestCaseFunctionCallVariableValue.d.ts +15 -0
  228. package/dist/serialization/types/TestCaseFunctionCallVariableValue.js +36 -0
  229. package/dist/serialization/types/TestCaseVariableValue.d.ts +5 -1
  230. package/dist/serialization/types/TestCaseVariableValue.js +2 -0
  231. package/dist/serialization/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +15 -0
  232. package/dist/serialization/types/TestSuiteRunExecutionFunctionCallOutput.js +36 -0
  233. package/dist/serialization/types/TestSuiteRunExecutionOutput.d.ts +5 -1
  234. package/dist/serialization/types/TestSuiteRunExecutionOutput.js +2 -0
  235. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  236. package/dist/serialization/types/VellumVariableType.js +1 -0
  237. package/dist/serialization/types/index.d.ts +27 -5
  238. package/dist/serialization/types/index.js +27 -5
  239. package/package.json +1 -1
  240. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -2
  241. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +2 -2
  242. package/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +15 -0
  243. package/serialization/types/ChatHistoryPromptTemplateBlock.js +36 -0
  244. package/serialization/types/ChatHistoryPromptTemplateBlockRequest.d.ts +15 -0
  245. package/serialization/types/ChatHistoryPromptTemplateBlockRequest.js +36 -0
  246. package/serialization/types/ChatMessageEnum.d.ts +10 -0
  247. package/serialization/types/{BlockTypeEnum.js → ChatMessageEnum.js} +2 -2
  248. package/serialization/types/ChatMessagePromptTemplateBlock.d.ts +15 -0
  249. package/serialization/types/ChatMessagePromptTemplateBlock.js +45 -0
  250. package/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +16 -0
  251. package/{dist/serialization/types/PromptTemplateBlockPropertiesRequest.js → serialization/types/ChatMessagePromptTemplateBlockProperties.js} +4 -13
  252. package/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +16 -0
  253. package/serialization/types/{PromptTemplateBlockPropertiesRequest.js → ChatMessagePromptTemplateBlockPropertiesRequest.js} +4 -13
  254. package/serialization/types/ChatMessagePromptTemplateBlockRequest.d.ts +15 -0
  255. package/serialization/types/ChatMessagePromptTemplateBlockRequest.js +45 -0
  256. package/serialization/types/FulfilledFunctionCallRequest.d.ts +16 -0
  257. package/serialization/types/FulfilledFunctionCallRequest.js +37 -0
  258. package/serialization/types/FunctionDefinitionEnum.d.ts +10 -0
  259. package/serialization/types/FunctionDefinitionEnum.js +31 -0
  260. package/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +16 -0
  261. package/{dist/serialization/types/ScenarioInputRequest.js → serialization/types/FunctionDefinitionPromptTemplateBlock.js} +7 -8
  262. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +15 -0
  263. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +36 -0
  264. package/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +15 -0
  265. package/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +36 -0
  266. package/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +16 -0
  267. package/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.js +37 -0
  268. package/serialization/types/JinjaEnum.d.ts +10 -0
  269. package/serialization/types/JinjaEnum.js +31 -0
  270. package/serialization/types/JinjaPromptTemplateBlock.d.ts +16 -0
  271. package/serialization/types/JinjaPromptTemplateBlock.js +37 -0
  272. package/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +14 -0
  273. package/serialization/types/JinjaPromptTemplateBlockProperties.js +35 -0
  274. package/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +14 -0
  275. package/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.js +35 -0
  276. package/serialization/types/JinjaPromptTemplateBlockRequest.d.ts +16 -0
  277. package/serialization/types/JinjaPromptTemplateBlockRequest.js +37 -0
  278. package/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +14 -0
  279. package/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.js +35 -0
  280. package/serialization/types/NamedScenarioInputRequest.d.ts +18 -0
  281. package/serialization/types/NamedScenarioInputRequest.js +41 -0
  282. package/serialization/types/NamedScenarioInputStringVariableValueRequest.d.ts +13 -0
  283. package/serialization/types/NamedScenarioInputStringVariableValueRequest.js +34 -0
  284. package/serialization/types/NamedTestCaseFunctionCallVariableValue.d.ts +14 -0
  285. package/serialization/types/NamedTestCaseFunctionCallVariableValue.js +35 -0
  286. package/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +14 -0
  287. package/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.js +35 -0
  288. package/serialization/types/NamedTestCaseVariableValue.d.ts +5 -1
  289. package/serialization/types/NamedTestCaseVariableValue.js +2 -0
  290. package/serialization/types/NamedTestCaseVariableValueRequest.d.ts +5 -1
  291. package/serialization/types/NamedTestCaseVariableValueRequest.js +2 -0
  292. package/serialization/types/PromptTemplateBlock.d.ts +16 -8
  293. package/serialization/types/PromptTemplateBlock.js +13 -7
  294. package/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  295. package/serialization/types/PromptTemplateBlockData.js +1 -1
  296. package/serialization/types/PromptTemplateBlockDataRequest.d.ts +1 -1
  297. package/serialization/types/PromptTemplateBlockDataRequest.js +1 -1
  298. package/serialization/types/PromptTemplateBlockRequest.d.ts +16 -8
  299. package/serialization/types/PromptTemplateBlockRequest.js +13 -7
  300. package/serialization/types/ScenarioInput.d.ts +9 -8
  301. package/serialization/types/ScenarioInput.js +10 -7
  302. package/serialization/types/ScenarioInputChatHistoryVariableValue.d.ts +14 -0
  303. package/serialization/types/ScenarioInputChatHistoryVariableValue.js +35 -0
  304. package/serialization/types/ScenarioInputStringVariableValue.d.ts +13 -0
  305. package/serialization/types/ScenarioInputStringVariableValue.js +34 -0
  306. package/serialization/types/TestCaseFunctionCallVariableValue.d.ts +15 -0
  307. package/serialization/types/TestCaseFunctionCallVariableValue.js +36 -0
  308. package/serialization/types/TestCaseVariableValue.d.ts +5 -1
  309. package/serialization/types/TestCaseVariableValue.js +2 -0
  310. package/serialization/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +15 -0
  311. package/serialization/types/TestSuiteRunExecutionFunctionCallOutput.js +36 -0
  312. package/serialization/types/TestSuiteRunExecutionOutput.d.ts +5 -1
  313. package/serialization/types/TestSuiteRunExecutionOutput.js +2 -0
  314. package/serialization/types/VellumVariableType.d.ts +1 -1
  315. package/serialization/types/VellumVariableType.js +1 -0
  316. package/serialization/types/index.d.ts +27 -5
  317. package/serialization/types/index.js +27 -5
  318. package/api/types/BlockTypeEnum.d.ts +0 -16
  319. package/api/types/BlockTypeEnum.js +0 -12
  320. package/api/types/PromptTemplateBlockProperties.d.ts +0 -16
  321. package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -16
  322. package/api/types/ScenarioInputRequest.d.ts +0 -10
  323. package/api/types/ScenarioInputTypeEnum.d.ts +0 -12
  324. package/api/types/ScenarioInputTypeEnum.js +0 -10
  325. package/dist/api/types/BlockTypeEnum.d.ts +0 -16
  326. package/dist/api/types/BlockTypeEnum.js +0 -12
  327. package/dist/api/types/PromptTemplateBlockProperties.d.ts +0 -16
  328. package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -16
  329. package/dist/api/types/ScenarioInputRequest.d.ts +0 -10
  330. package/dist/api/types/ScenarioInputTypeEnum.d.ts +0 -12
  331. package/dist/api/types/ScenarioInputTypeEnum.js +0 -10
  332. package/dist/serialization/types/BlockTypeEnum.d.ts +0 -10
  333. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +0 -23
  334. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -23
  335. package/dist/serialization/types/ScenarioInputRequest.d.ts +0 -17
  336. package/dist/serialization/types/ScenarioInputTypeEnum.d.ts +0 -10
  337. package/serialization/types/BlockTypeEnum.d.ts +0 -10
  338. package/serialization/types/PromptTemplateBlockProperties.d.ts +0 -23
  339. package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -23
  340. package/serialization/types/ScenarioInputRequest.d.ts +0 -17
  341. package/serialization/types/ScenarioInputTypeEnum.d.ts +0 -10
  342. /package/api/types/{PromptTemplateBlockProperties.js → ChatHistoryPromptTemplateBlock.js} +0 -0
  343. /package/api/types/{PromptTemplateBlockPropertiesRequest.js → ChatHistoryPromptTemplateBlockRequest.js} +0 -0
  344. /package/api/types/{ScenarioInputRequest.js → ChatMessageEnum.js} +0 -0
  345. /package/{dist/api/types/PromptTemplateBlockProperties.js → api/types/ChatMessagePromptTemplateBlock.js} +0 -0
  346. /package/{dist/api/types/PromptTemplateBlockPropertiesRequest.js → api/types/ChatMessagePromptTemplateBlockProperties.js} +0 -0
  347. /package/{dist/api/types/ScenarioInputRequest.js → api/types/ChatMessagePromptTemplateBlockPropertiesRequest.js} +0 -0
@@ -6,13 +6,19 @@ export * from "./ArrayChatMessageContentItemRequest";
6
6
  export * from "./ArrayChatMessageContentRequest";
7
7
  export * from "./ArrayEnum";
8
8
  export * from "./ArrayVariableValueItem";
9
- export * from "./BlockTypeEnum";
10
9
  export * from "./ChatHistoryEnum";
11
10
  export * from "./ChatHistoryInputRequest";
11
+ export * from "./ChatHistoryPromptTemplateBlock";
12
+ export * from "./ChatHistoryPromptTemplateBlockRequest";
12
13
  export * from "./ChatHistoryVariableValue";
13
14
  export * from "./ChatMessage";
14
15
  export * from "./ChatMessageContent";
15
16
  export * from "./ChatMessageContentRequest";
17
+ export * from "./ChatMessageEnum";
18
+ export * from "./ChatMessagePromptTemplateBlock";
19
+ export * from "./ChatMessagePromptTemplateBlockProperties";
20
+ export * from "./ChatMessagePromptTemplateBlockPropertiesRequest";
21
+ export * from "./ChatMessagePromptTemplateBlockRequest";
16
22
  export * from "./ChatMessageRequest";
17
23
  export * from "./ChatMessageRole";
18
24
  export * from "./CodeExecutionNodeArrayResult";
@@ -63,6 +69,7 @@ export * from "./FulfilledExecutePromptEvent";
63
69
  export * from "./FulfilledExecutePromptResponse";
64
70
  export * from "./FulfilledExecuteWorkflowWorkflowResultEvent";
65
71
  export * from "./FulfilledFunctionCall";
72
+ export * from "./FulfilledFunctionCallRequest";
66
73
  export * from "./FulfilledPromptExecutionMeta";
67
74
  export * from "./FulfilledWorkflowNodeResultEvent";
68
75
  export * from "./FunctionCall";
@@ -72,6 +79,11 @@ export * from "./FunctionCallChatMessageContentValue";
72
79
  export * from "./FunctionCallChatMessageContentValueRequest";
73
80
  export * from "./FunctionCallEnum";
74
81
  export * from "./FunctionCallVariableValue";
82
+ export * from "./FunctionDefinitionEnum";
83
+ export * from "./FunctionDefinitionPromptTemplateBlock";
84
+ export * from "./FunctionDefinitionPromptTemplateBlockProperties";
85
+ export * from "./FunctionDefinitionPromptTemplateBlockPropertiesRequest";
86
+ export * from "./FunctionDefinitionPromptTemplateBlockRequest";
75
87
  export * from "./GenerateErrorResponse";
76
88
  export * from "./GenerateOptionsRequest";
77
89
  export * from "./GenerateRequest";
@@ -92,6 +104,11 @@ export * from "./InitiatedExecutePromptEvent";
92
104
  export * from "./InitiatedPromptExecutionMeta";
93
105
  export * from "./InitiatedWorkflowNodeResultEvent";
94
106
  export * from "./JsonInputRequest";
107
+ export * from "./JinjaEnum";
108
+ export * from "./JinjaPromptTemplateBlock";
109
+ export * from "./JinjaPromptTemplateBlockProperties";
110
+ export * from "./JinjaPromptTemplateBlockPropertiesRequest";
111
+ export * from "./JinjaPromptTemplateBlockRequest";
95
112
  export * from "./JsonEnum";
96
113
  export * from "./JsonVariableValue";
97
114
  export * from "./LogicalOperator";
@@ -106,10 +123,15 @@ export * from "./ModelVersionExecConfigParameters";
106
123
  export * from "./ModelVersionRead";
107
124
  export * from "./ModelVersionReadStatusEnum";
108
125
  export * from "./ModelVersionSandboxSnapshot";
126
+ export * from "./NamedScenarioInputChatHistoryVariableValueRequest";
127
+ export * from "./NamedScenarioInputRequest";
128
+ export * from "./NamedScenarioInputStringVariableValueRequest";
109
129
  export * from "./NamedTestCaseChatHistoryVariableValue";
110
130
  export * from "./NamedTestCaseChatHistoryVariableValueRequest";
111
131
  export * from "./NamedTestCaseErrorVariableValue";
112
132
  export * from "./NamedTestCaseErrorVariableValueRequest";
133
+ export * from "./NamedTestCaseFunctionCallVariableValue";
134
+ export * from "./NamedTestCaseFunctionCallVariableValueRequest";
113
135
  export * from "./NamedTestCaseJsonVariableValue";
114
136
  export * from "./NamedTestCaseJsonVariableValueRequest";
115
137
  export * from "./NamedTestCaseNumberVariableValue";
@@ -159,8 +181,6 @@ export * from "./PromptOutput";
159
181
  export * from "./PromptTemplateBlock";
160
182
  export * from "./PromptTemplateBlockData";
161
183
  export * from "./PromptTemplateBlockDataRequest";
162
- export * from "./PromptTemplateBlockProperties";
163
- export * from "./PromptTemplateBlockPropertiesRequest";
164
184
  export * from "./PromptTemplateBlockRequest";
165
185
  export * from "./PromptTemplateBlockState";
166
186
  export * from "./ProviderEnum";
@@ -184,8 +204,8 @@ export * from "./RejectedPromptExecutionMeta";
184
204
  export * from "./RejectedWorkflowNodeResultEvent";
185
205
  export * from "./SandboxScenario";
186
206
  export * from "./ScenarioInput";
187
- export * from "./ScenarioInputRequest";
188
- export * from "./ScenarioInputTypeEnum";
207
+ export * from "./ScenarioInputChatHistoryVariableValue";
208
+ export * from "./ScenarioInputStringVariableValue";
189
209
  export * from "./SearchErrorResponse";
190
210
  export * from "./SearchFiltersRequest";
191
211
  export * from "./SearchNodeResult";
@@ -241,6 +261,7 @@ export * from "./TerminalNodeSearchResultsResult";
241
261
  export * from "./TerminalNodeStringResult";
242
262
  export * from "./TestCaseChatHistoryVariableValue";
243
263
  export * from "./TestCaseErrorVariableValue";
264
+ export * from "./TestCaseFunctionCallVariableValue";
244
265
  export * from "./TestCaseJsonVariableValue";
245
266
  export * from "./TestCaseNumberVariableValue";
246
267
  export * from "./TestCaseSearchResultsVariableValue";
@@ -256,6 +277,7 @@ export * from "./TestSuiteRunExecConfigRequest";
256
277
  export * from "./TestSuiteRunExecution";
257
278
  export * from "./TestSuiteRunExecutionChatHistoryOutput";
258
279
  export * from "./TestSuiteRunExecutionErrorOutput";
280
+ export * from "./TestSuiteRunExecutionFunctionCallOutput";
259
281
  export * from "./TestSuiteRunExecutionJsonOutput";
260
282
  export * from "./TestSuiteRunExecutionMetricDefinition";
261
283
  export * from "./TestSuiteRunExecutionMetricResult";
@@ -22,13 +22,19 @@ __exportStar(require("./ArrayChatMessageContentItemRequest"), exports);
22
22
  __exportStar(require("./ArrayChatMessageContentRequest"), exports);
23
23
  __exportStar(require("./ArrayEnum"), exports);
24
24
  __exportStar(require("./ArrayVariableValueItem"), exports);
25
- __exportStar(require("./BlockTypeEnum"), exports);
26
25
  __exportStar(require("./ChatHistoryEnum"), exports);
27
26
  __exportStar(require("./ChatHistoryInputRequest"), exports);
27
+ __exportStar(require("./ChatHistoryPromptTemplateBlock"), exports);
28
+ __exportStar(require("./ChatHistoryPromptTemplateBlockRequest"), exports);
28
29
  __exportStar(require("./ChatHistoryVariableValue"), exports);
29
30
  __exportStar(require("./ChatMessage"), exports);
30
31
  __exportStar(require("./ChatMessageContent"), exports);
31
32
  __exportStar(require("./ChatMessageContentRequest"), exports);
33
+ __exportStar(require("./ChatMessageEnum"), exports);
34
+ __exportStar(require("./ChatMessagePromptTemplateBlock"), exports);
35
+ __exportStar(require("./ChatMessagePromptTemplateBlockProperties"), exports);
36
+ __exportStar(require("./ChatMessagePromptTemplateBlockPropertiesRequest"), exports);
37
+ __exportStar(require("./ChatMessagePromptTemplateBlockRequest"), exports);
32
38
  __exportStar(require("./ChatMessageRequest"), exports);
33
39
  __exportStar(require("./ChatMessageRole"), exports);
34
40
  __exportStar(require("./CodeExecutionNodeArrayResult"), exports);
@@ -79,6 +85,7 @@ __exportStar(require("./FulfilledExecutePromptEvent"), exports);
79
85
  __exportStar(require("./FulfilledExecutePromptResponse"), exports);
80
86
  __exportStar(require("./FulfilledExecuteWorkflowWorkflowResultEvent"), exports);
81
87
  __exportStar(require("./FulfilledFunctionCall"), exports);
88
+ __exportStar(require("./FulfilledFunctionCallRequest"), exports);
82
89
  __exportStar(require("./FulfilledPromptExecutionMeta"), exports);
83
90
  __exportStar(require("./FulfilledWorkflowNodeResultEvent"), exports);
84
91
  __exportStar(require("./FunctionCall"), exports);
@@ -88,6 +95,11 @@ __exportStar(require("./FunctionCallChatMessageContentValue"), exports);
88
95
  __exportStar(require("./FunctionCallChatMessageContentValueRequest"), exports);
89
96
  __exportStar(require("./FunctionCallEnum"), exports);
90
97
  __exportStar(require("./FunctionCallVariableValue"), exports);
98
+ __exportStar(require("./FunctionDefinitionEnum"), exports);
99
+ __exportStar(require("./FunctionDefinitionPromptTemplateBlock"), exports);
100
+ __exportStar(require("./FunctionDefinitionPromptTemplateBlockProperties"), exports);
101
+ __exportStar(require("./FunctionDefinitionPromptTemplateBlockPropertiesRequest"), exports);
102
+ __exportStar(require("./FunctionDefinitionPromptTemplateBlockRequest"), exports);
91
103
  __exportStar(require("./GenerateErrorResponse"), exports);
92
104
  __exportStar(require("./GenerateOptionsRequest"), exports);
93
105
  __exportStar(require("./GenerateRequest"), exports);
@@ -108,6 +120,11 @@ __exportStar(require("./InitiatedExecutePromptEvent"), exports);
108
120
  __exportStar(require("./InitiatedPromptExecutionMeta"), exports);
109
121
  __exportStar(require("./InitiatedWorkflowNodeResultEvent"), exports);
110
122
  __exportStar(require("./JsonInputRequest"), exports);
123
+ __exportStar(require("./JinjaEnum"), exports);
124
+ __exportStar(require("./JinjaPromptTemplateBlock"), exports);
125
+ __exportStar(require("./JinjaPromptTemplateBlockProperties"), exports);
126
+ __exportStar(require("./JinjaPromptTemplateBlockPropertiesRequest"), exports);
127
+ __exportStar(require("./JinjaPromptTemplateBlockRequest"), exports);
111
128
  __exportStar(require("./JsonEnum"), exports);
112
129
  __exportStar(require("./JsonVariableValue"), exports);
113
130
  __exportStar(require("./LogicalOperator"), exports);
@@ -122,10 +139,15 @@ __exportStar(require("./ModelVersionExecConfigParameters"), exports);
122
139
  __exportStar(require("./ModelVersionRead"), exports);
123
140
  __exportStar(require("./ModelVersionReadStatusEnum"), exports);
124
141
  __exportStar(require("./ModelVersionSandboxSnapshot"), exports);
142
+ __exportStar(require("./NamedScenarioInputChatHistoryVariableValueRequest"), exports);
143
+ __exportStar(require("./NamedScenarioInputRequest"), exports);
144
+ __exportStar(require("./NamedScenarioInputStringVariableValueRequest"), exports);
125
145
  __exportStar(require("./NamedTestCaseChatHistoryVariableValue"), exports);
126
146
  __exportStar(require("./NamedTestCaseChatHistoryVariableValueRequest"), exports);
127
147
  __exportStar(require("./NamedTestCaseErrorVariableValue"), exports);
128
148
  __exportStar(require("./NamedTestCaseErrorVariableValueRequest"), exports);
149
+ __exportStar(require("./NamedTestCaseFunctionCallVariableValue"), exports);
150
+ __exportStar(require("./NamedTestCaseFunctionCallVariableValueRequest"), exports);
129
151
  __exportStar(require("./NamedTestCaseJsonVariableValue"), exports);
130
152
  __exportStar(require("./NamedTestCaseJsonVariableValueRequest"), exports);
131
153
  __exportStar(require("./NamedTestCaseNumberVariableValue"), exports);
@@ -175,8 +197,6 @@ __exportStar(require("./PromptOutput"), exports);
175
197
  __exportStar(require("./PromptTemplateBlock"), exports);
176
198
  __exportStar(require("./PromptTemplateBlockData"), exports);
177
199
  __exportStar(require("./PromptTemplateBlockDataRequest"), exports);
178
- __exportStar(require("./PromptTemplateBlockProperties"), exports);
179
- __exportStar(require("./PromptTemplateBlockPropertiesRequest"), exports);
180
200
  __exportStar(require("./PromptTemplateBlockRequest"), exports);
181
201
  __exportStar(require("./PromptTemplateBlockState"), exports);
182
202
  __exportStar(require("./ProviderEnum"), exports);
@@ -200,8 +220,8 @@ __exportStar(require("./RejectedPromptExecutionMeta"), exports);
200
220
  __exportStar(require("./RejectedWorkflowNodeResultEvent"), exports);
201
221
  __exportStar(require("./SandboxScenario"), exports);
202
222
  __exportStar(require("./ScenarioInput"), exports);
203
- __exportStar(require("./ScenarioInputRequest"), exports);
204
- __exportStar(require("./ScenarioInputTypeEnum"), exports);
223
+ __exportStar(require("./ScenarioInputChatHistoryVariableValue"), exports);
224
+ __exportStar(require("./ScenarioInputStringVariableValue"), exports);
205
225
  __exportStar(require("./SearchErrorResponse"), exports);
206
226
  __exportStar(require("./SearchFiltersRequest"), exports);
207
227
  __exportStar(require("./SearchNodeResult"), exports);
@@ -257,6 +277,7 @@ __exportStar(require("./TerminalNodeSearchResultsResult"), exports);
257
277
  __exportStar(require("./TerminalNodeStringResult"), exports);
258
278
  __exportStar(require("./TestCaseChatHistoryVariableValue"), exports);
259
279
  __exportStar(require("./TestCaseErrorVariableValue"), exports);
280
+ __exportStar(require("./TestCaseFunctionCallVariableValue"), exports);
260
281
  __exportStar(require("./TestCaseJsonVariableValue"), exports);
261
282
  __exportStar(require("./TestCaseNumberVariableValue"), exports);
262
283
  __exportStar(require("./TestCaseSearchResultsVariableValue"), exports);
@@ -272,6 +293,7 @@ __exportStar(require("./TestSuiteRunExecConfigRequest"), exports);
272
293
  __exportStar(require("./TestSuiteRunExecution"), exports);
273
294
  __exportStar(require("./TestSuiteRunExecutionChatHistoryOutput"), exports);
274
295
  __exportStar(require("./TestSuiteRunExecutionErrorOutput"), exports);
296
+ __exportStar(require("./TestSuiteRunExecutionFunctionCallOutput"), exports);
275
297
  __exportStar(require("./TestSuiteRunExecutionJsonOutput"), exports);
276
298
  __exportStar(require("./TestSuiteRunExecutionMetricDefinition"), exports);
277
299
  __exportStar(require("./TestSuiteRunExecutionMetricResult"), exports);
package/dist/Client.js CHANGED
@@ -73,7 +73,7 @@ class VellumClient {
73
73
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
74
74
  .predict, "v1/execute-prompt"),
75
75
  method: "POST",
76
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
77
  contentType: "application/json",
78
78
  body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -129,7 +129,7 @@ class VellumClient {
129
129
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
130
130
  .predict, "v1/execute-prompt-stream"),
131
131
  method: "POST",
132
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
133
  contentType: "application/json",
134
134
  body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
135
135
  unrecognizedObjectKeys: "strip",
@@ -197,7 +197,7 @@ class VellumClient {
197
197
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
198
198
  .predict, "v1/execute-workflow"),
199
199
  method: "POST",
200
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
200
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
201
201
  contentType: "application/json",
202
202
  body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
203
203
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -251,7 +251,7 @@ class VellumClient {
251
251
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
252
252
  .predict, "v1/execute-workflow-stream"),
253
253
  method: "POST",
254
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
254
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
255
255
  contentType: "application/json",
256
256
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
257
257
  unrecognizedObjectKeys: "strip",
@@ -327,7 +327,7 @@ class VellumClient {
327
327
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
328
328
  .predict, "v1/generate"),
329
329
  method: "POST",
330
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
330
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
331
331
  contentType: "application/json",
332
332
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
333
333
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -385,7 +385,7 @@ class VellumClient {
385
385
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
386
386
  .predict, "v1/generate-stream"),
387
387
  method: "POST",
388
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
388
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
389
389
  contentType: "application/json",
390
390
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
391
391
  responseType: "streaming",
@@ -458,7 +458,7 @@ class VellumClient {
458
458
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
459
459
  .predict, "v1/search"),
460
460
  method: "POST",
461
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
461
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
462
462
  contentType: "application/json",
463
463
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
464
464
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -522,7 +522,7 @@ class VellumClient {
522
522
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
523
523
  .predict, "v1/submit-completion-actuals"),
524
524
  method: "POST",
525
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
525
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
526
526
  contentType: "application/json",
527
527
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
528
528
  unrecognizedObjectKeys: "strip",
@@ -580,7 +580,7 @@ class VellumClient {
580
580
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
581
581
  .predict, "v1/submit-workflow-execution-actuals"),
582
582
  method: "POST",
583
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
583
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
584
584
  contentType: "application/json",
585
585
  body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
586
586
  unrecognizedObjectKeys: "strip",
@@ -70,7 +70,7 @@ class Deployments {
70
70
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
71
71
  .default, "v1/deployments"),
72
72
  method: "GET",
73
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
74
  contentType: "application/json",
75
75
  queryParameters: _queryParams,
76
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -118,7 +118,7 @@ class Deployments {
118
118
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
119
119
  .default, `v1/deployments/${id}`),
120
120
  method: "GET",
121
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
122
122
  contentType: "application/json",
123
123
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
124
124
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -170,7 +170,7 @@ class Deployments {
170
170
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
171
171
  .default, "v1/deployments/provider-payload"),
172
172
  method: "POST",
173
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
173
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
174
174
  contentType: "application/json",
175
175
  body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
176
176
  unrecognizedObjectKeys: "strip",
@@ -75,7 +75,7 @@ class DocumentIndexes {
75
75
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
76
76
  .default, "v1/document-indexes"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -143,7 +143,7 @@ class DocumentIndexes {
143
143
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
144
144
  .default, "v1/document-indexes"),
145
145
  method: "POST",
146
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
146
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
147
147
  contentType: "application/json",
148
148
  body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
149
149
  unrecognizedObjectKeys: "strip",
@@ -193,7 +193,7 @@ class DocumentIndexes {
193
193
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
194
194
  .default, `v1/document-indexes/${id}`),
195
195
  method: "GET",
196
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
196
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
197
197
  contentType: "application/json",
198
198
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
199
199
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -242,7 +242,7 @@ class DocumentIndexes {
242
242
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
243
243
  .default, `v1/document-indexes/${id}`),
244
244
  method: "PUT",
245
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
245
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
246
246
  contentType: "application/json",
247
247
  body: yield serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, {
248
248
  unrecognizedObjectKeys: "strip",
@@ -292,7 +292,7 @@ class DocumentIndexes {
292
292
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
293
293
  .default, `v1/document-indexes/${id}`),
294
294
  method: "DELETE",
295
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
295
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
296
296
  contentType: "application/json",
297
297
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
298
298
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -334,7 +334,7 @@ class DocumentIndexes {
334
334
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
335
335
  .default, `v1/document-indexes/${id}`),
336
336
  method: "PATCH",
337
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
337
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
338
338
  contentType: "application/json",
339
339
  body: yield serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
340
340
  unrecognizedObjectKeys: "strip",
@@ -26,6 +26,13 @@ export declare class Documents {
26
26
  * await vellum.documents.list()
27
27
  */
28
28
  list(request?: Vellum.DocumentsListRequest, requestOptions?: Documents.RequestOptions): Promise<Vellum.PaginatedSlimDocumentList>;
29
+ /**
30
+ * Retrieve a Document via its Vellum-generated ID.
31
+ *
32
+ * @example
33
+ * await vellum.documents.retrieve("id")
34
+ */
35
+ retrieve(id: string, requestOptions?: Documents.RequestOptions): Promise<Vellum.DocumentRead>;
29
36
  destroy(id: string, requestOptions?: Documents.RequestOptions): Promise<void>;
30
37
  /**
31
38
  * Update a Document, keying off of its Vellum-generated ID. Particularly useful for updating its metadata.
@@ -77,7 +77,7 @@ class Documents {
77
77
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
78
78
  .default, "v1/documents"),
79
79
  method: "GET",
80
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: "application/json",
82
82
  queryParameters: _queryParams,
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -112,6 +112,53 @@ class Documents {
112
112
  }
113
113
  });
114
114
  }
115
+ /**
116
+ * Retrieve a Document via its Vellum-generated ID.
117
+ *
118
+ * @example
119
+ * await vellum.documents.retrieve("id")
120
+ */
121
+ retrieve(id, requestOptions) {
122
+ var _a;
123
+ return __awaiter(this, void 0, void 0, function* () {
124
+ const _response = yield core.fetcher({
125
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
126
+ .default, `v1/documents/${id}`),
127
+ method: "GET",
128
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
+ contentType: "application/json",
130
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
131
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
132
+ });
133
+ if (_response.ok) {
134
+ return yield serializers.DocumentRead.parseOrThrow(_response.body, {
135
+ unrecognizedObjectKeys: "passthrough",
136
+ allowUnrecognizedUnionMembers: true,
137
+ allowUnrecognizedEnumValues: true,
138
+ breadcrumbsPrefix: ["response"],
139
+ });
140
+ }
141
+ if (_response.error.reason === "status-code") {
142
+ throw new errors.VellumError({
143
+ statusCode: _response.error.statusCode,
144
+ body: _response.error.body,
145
+ });
146
+ }
147
+ switch (_response.error.reason) {
148
+ case "non-json":
149
+ throw new errors.VellumError({
150
+ statusCode: _response.error.statusCode,
151
+ body: _response.error.rawBody,
152
+ });
153
+ case "timeout":
154
+ throw new errors.VellumTimeoutError();
155
+ case "unknown":
156
+ throw new errors.VellumError({
157
+ message: _response.error.errorMessage,
158
+ });
159
+ }
160
+ });
161
+ }
115
162
  destroy(id, requestOptions) {
116
163
  var _a;
117
164
  return __awaiter(this, void 0, void 0, function* () {
@@ -119,7 +166,7 @@ class Documents {
119
166
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
120
167
  .default, `v1/documents/${id}`),
121
168
  method: "DELETE",
122
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
169
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
123
170
  contentType: "application/json",
124
171
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
125
172
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -161,7 +208,7 @@ class Documents {
161
208
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
162
209
  .default, `v1/documents/${id}`),
163
210
  method: "PATCH",
164
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
211
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
165
212
  contentType: "application/json",
166
213
  body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
167
214
  unrecognizedObjectKeys: "strip",
@@ -240,7 +287,7 @@ class Documents {
240
287
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
241
288
  .documents, "v1/upload-document"),
242
289
  method: "POST",
243
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
290
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
244
291
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
245
292
  body: _request,
246
293
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -65,7 +65,7 @@ class FolderEntities {
65
65
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
66
66
  .default, `v1/folders/${folderId}/add-entity`),
67
67
  method: "POST",
68
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
69
69
  contentType: "application/json",
70
70
  body: yield serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
71
71
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -61,7 +61,7 @@ class ModelVersions {
61
61
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
62
62
  .default, `v1/model-versions/${id}`),
63
63
  method: "GET",
64
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
64
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
65
65
  contentType: "application/json",
66
66
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
67
67
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -32,12 +32,8 @@ export declare class RegisteredPrompts {
32
32
  * name: "name",
33
33
  * prompt: {
34
34
  * promptBlockData: {
35
- * version: 1,
36
- * blocks: [{
37
- * id: "id",
38
- * blockType: Vellum.BlockTypeEnum.ChatMessage,
39
- * properties: {}
40
- * }]
35
+ * blocks: [],
36
+ * version: 1
41
37
  * },
42
38
  * inputVariables: [{
43
39
  * key: "key"
@@ -64,12 +64,8 @@ class RegisteredPrompts {
64
64
  * name: "name",
65
65
  * prompt: {
66
66
  * promptBlockData: {
67
- * version: 1,
68
- * blocks: [{
69
- * id: "id",
70
- * blockType: Vellum.BlockTypeEnum.ChatMessage,
71
- * properties: {}
72
- * }]
67
+ * blocks: [],
68
+ * version: 1
73
69
  * },
74
70
  * inputVariables: [{
75
71
  * key: "key"
@@ -92,7 +88,7 @@ class RegisteredPrompts {
92
88
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
93
89
  .default, "v1/registered-prompts/register"),
94
90
  method: "POST",
95
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
91
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
96
92
  contentType: "application/json",
97
93
  body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
98
94
  unrecognizedObjectKeys: "strip",
@@ -9,12 +9,8 @@ import * as Vellum from "../../../..";
9
9
  * name: "name",
10
10
  * prompt: {
11
11
  * promptBlockData: {
12
- * version: 1,
13
- * blocks: [{
14
- * id: "id",
15
- * blockType: Vellum.BlockTypeEnum.ChatMessage,
16
- * properties: {}
17
- * }]
12
+ * blocks: [],
13
+ * version: 1
18
14
  * },
19
15
  * inputVariables: [{
20
16
  * key: "key"
@@ -29,15 +29,7 @@ export declare class Sandboxes {
29
29
  * @example
30
30
  * await vellum.sandboxes.upsertSandboxScenario("id", {
31
31
  * label: "Scenario 1",
32
- * inputs: [{
33
- * key: "var_1",
34
- * type: Vellum.ScenarioInputTypeEnum.Text,
35
- * value: "Hello, world!"
36
- * }, {
37
- * key: "var_2",
38
- * type: Vellum.ScenarioInputTypeEnum.Text,
39
- * value: "Why hello, there!"
40
- * }]
32
+ * inputs: []
41
33
  * })
42
34
  */
43
35
  upsertSandboxScenario(id: string, request: Vellum.UpsertSandboxScenarioRequestRequest, requestOptions?: Sandboxes.RequestOptions): Promise<Vellum.SandboxScenario>;