vellum-ai 0.3.25 → 0.4.1

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 (390) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +17 -22
  3. package/api/errors/index.d.ts +0 -1
  4. package/api/errors/index.js +0 -1
  5. package/api/resources/deployments/client/Client.js +3 -3
  6. package/api/resources/documentIndexes/client/Client.js +6 -6
  7. package/api/resources/documents/client/Client.d.ts +7 -0
  8. package/api/resources/documents/client/Client.js +51 -4
  9. package/api/resources/folderEntities/client/Client.js +1 -1
  10. package/api/resources/index.d.ts +0 -2
  11. package/api/resources/index.js +1 -3
  12. package/api/resources/modelVersions/client/Client.js +1 -1
  13. package/api/resources/sandboxes/client/Client.d.ts +1 -9
  14. package/api/resources/sandboxes/client/Client.js +3 -11
  15. package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -10
  16. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  17. package/api/resources/testSuites/client/Client.js +3 -3
  18. package/api/resources/workflowDeployments/client/Client.js +2 -2
  19. package/api/types/ChatHistoryPromptTemplateBlock.d.ts +12 -0
  20. package/api/types/ChatMessageEnum.d.ts +4 -0
  21. package/api/types/ChatMessagePromptTemplateBlock.d.ts +12 -0
  22. package/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +13 -0
  23. package/api/types/FulfilledFunctionCallRequest.d.ts +13 -0
  24. package/api/types/FunctionDefinitionEnum.d.ts +4 -0
  25. package/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +12 -0
  26. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +13 -0
  27. package/api/types/JinjaEnum.d.ts +4 -0
  28. package/api/types/JinjaPromptTemplateBlock.d.ts +12 -0
  29. package/api/types/JinjaPromptTemplateBlockProperties.d.ts +8 -0
  30. package/api/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +11 -0
  31. package/api/types/NamedScenarioInputRequest.d.ts +13 -0
  32. package/api/types/NamedScenarioInputStringVariableValueRequest.d.ts +10 -0
  33. package/api/types/NamedTestCaseFunctionCallVariableValue.d.ts +11 -0
  34. package/api/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +11 -0
  35. package/api/types/NamedTestCaseVariableValue.d.ts +4 -1
  36. package/api/types/NamedTestCaseVariableValueRequest.d.ts +4 -1
  37. package/api/types/PromptTemplateBlock.d.ts +14 -5
  38. package/api/types/PromptTemplateBlockData.d.ts +1 -1
  39. package/api/types/ScenarioInput.d.ts +8 -5
  40. package/api/types/ScenarioInputChatHistoryVariableValue.d.ts +11 -0
  41. package/api/types/ScenarioInputStringVariableValue.d.ts +10 -0
  42. package/api/types/TestCaseFunctionCallVariableValue.d.ts +12 -0
  43. package/api/types/TestCaseVariableValue.d.ts +4 -1
  44. package/api/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +12 -0
  45. package/api/types/TestSuiteRunExecutionOutput.d.ts +4 -1
  46. package/api/types/VellumVariableType.d.ts +3 -1
  47. package/api/types/VellumVariableType.js +1 -0
  48. package/api/types/index.d.ts +20 -17
  49. package/api/types/index.js +20 -17
  50. package/dist/Client.d.ts +0 -3
  51. package/dist/Client.js +17 -22
  52. package/dist/api/errors/index.d.ts +0 -1
  53. package/dist/api/errors/index.js +0 -1
  54. package/dist/api/resources/deployments/client/Client.js +3 -3
  55. package/dist/api/resources/documentIndexes/client/Client.js +6 -6
  56. package/dist/api/resources/documents/client/Client.d.ts +7 -0
  57. package/dist/api/resources/documents/client/Client.js +51 -4
  58. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  59. package/dist/api/resources/index.d.ts +0 -2
  60. package/dist/api/resources/index.js +1 -3
  61. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  62. package/dist/api/resources/sandboxes/client/Client.d.ts +1 -9
  63. package/dist/api/resources/sandboxes/client/Client.js +3 -11
  64. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -10
  65. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  66. package/dist/api/resources/testSuites/client/Client.js +3 -3
  67. package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
  68. package/dist/api/types/ChatHistoryPromptTemplateBlock.d.ts +12 -0
  69. package/dist/api/types/ChatMessageEnum.d.ts +4 -0
  70. package/dist/api/types/ChatMessagePromptTemplateBlock.d.ts +12 -0
  71. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +13 -0
  72. package/dist/api/types/FulfilledFunctionCallRequest.d.ts +13 -0
  73. package/dist/api/types/FunctionDefinitionEnum.d.ts +4 -0
  74. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +12 -0
  75. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +13 -0
  76. package/dist/api/types/JinjaEnum.d.ts +4 -0
  77. package/dist/api/types/JinjaPromptTemplateBlock.d.ts +12 -0
  78. package/dist/api/types/JinjaPromptTemplateBlockProperties.d.ts +8 -0
  79. package/dist/api/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +11 -0
  80. package/dist/api/types/NamedScenarioInputRequest.d.ts +13 -0
  81. package/dist/api/types/NamedScenarioInputRequest.js +5 -0
  82. package/dist/api/types/NamedScenarioInputStringVariableValueRequest.d.ts +10 -0
  83. package/dist/api/types/NamedScenarioInputStringVariableValueRequest.js +5 -0
  84. package/dist/api/types/NamedTestCaseFunctionCallVariableValue.d.ts +11 -0
  85. package/dist/api/types/NamedTestCaseFunctionCallVariableValue.js +5 -0
  86. package/dist/api/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +11 -0
  87. package/dist/api/types/NamedTestCaseFunctionCallVariableValueRequest.js +5 -0
  88. package/dist/api/types/NamedTestCaseVariableValue.d.ts +4 -1
  89. package/dist/api/types/NamedTestCaseVariableValueRequest.d.ts +4 -1
  90. package/dist/api/types/PromptTemplateBlock.d.ts +14 -5
  91. package/dist/api/types/PromptTemplateBlockData.d.ts +1 -1
  92. package/dist/api/types/ScenarioInput.d.ts +8 -5
  93. package/dist/api/types/ScenarioInputChatHistoryVariableValue.d.ts +11 -0
  94. package/dist/api/types/ScenarioInputChatHistoryVariableValue.js +5 -0
  95. package/dist/api/types/ScenarioInputStringVariableValue.d.ts +10 -0
  96. package/dist/api/types/ScenarioInputStringVariableValue.js +5 -0
  97. package/dist/api/types/TestCaseFunctionCallVariableValue.d.ts +12 -0
  98. package/dist/api/types/TestCaseFunctionCallVariableValue.js +5 -0
  99. package/dist/api/types/TestCaseVariableValue.d.ts +4 -1
  100. package/dist/api/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +12 -0
  101. package/dist/api/types/TestSuiteRunExecutionFunctionCallOutput.js +5 -0
  102. package/dist/api/types/TestSuiteRunExecutionOutput.d.ts +4 -1
  103. package/dist/api/types/VellumVariableType.d.ts +3 -1
  104. package/dist/api/types/VellumVariableType.js +1 -0
  105. package/dist/api/types/index.d.ts +20 -17
  106. package/dist/api/types/index.js +20 -17
  107. package/dist/serialization/resources/index.d.ts +0 -2
  108. package/dist/serialization/resources/index.js +1 -3
  109. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -2
  110. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +2 -2
  111. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +15 -0
  112. package/dist/serialization/types/{RegisteredPromptSandbox.js → ChatHistoryPromptTemplateBlock.js} +5 -3
  113. package/dist/serialization/types/ChatMessageEnum.d.ts +10 -0
  114. package/{serialization/types/ScenarioInputTypeEnum.js → dist/serialization/types/ChatMessageEnum.js} +2 -2
  115. package/dist/serialization/types/ChatMessagePromptTemplateBlock.d.ts +15 -0
  116. package/dist/serialization/types/{PromptTemplateBlockRequest.js → ChatMessagePromptTemplateBlock.js} +3 -5
  117. package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +16 -0
  118. package/{serialization/types/PromptTemplateBlockDataRequest.js → dist/serialization/types/ChatMessagePromptTemplateBlockProperties.js} +7 -4
  119. package/dist/serialization/types/FulfilledFunctionCallRequest.d.ts +16 -0
  120. package/dist/serialization/types/FulfilledFunctionCallRequest.js +37 -0
  121. package/dist/serialization/types/FunctionDefinitionEnum.d.ts +10 -0
  122. package/dist/serialization/types/{BlockTypeEnum.js → FunctionDefinitionEnum.js} +2 -2
  123. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +16 -0
  124. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.js +37 -0
  125. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +15 -0
  126. package/dist/serialization/types/{RegisterPromptPromptInfoRequest.js → FunctionDefinitionPromptTemplateBlockProperties.js} +6 -6
  127. package/dist/serialization/types/JinjaEnum.d.ts +10 -0
  128. package/dist/serialization/types/{ScenarioInputTypeEnum.js → JinjaEnum.js} +2 -2
  129. package/dist/serialization/types/JinjaPromptTemplateBlock.d.ts +16 -0
  130. package/dist/serialization/types/JinjaPromptTemplateBlock.js +37 -0
  131. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +14 -0
  132. package/{serialization/types/RegisteredPromptInputVariableRequest.js → dist/serialization/types/JinjaPromptTemplateBlockProperties.js} +4 -5
  133. package/dist/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +14 -0
  134. package/dist/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.js +35 -0
  135. package/dist/serialization/types/NamedScenarioInputRequest.d.ts +18 -0
  136. package/dist/serialization/types/NamedScenarioInputRequest.js +41 -0
  137. package/dist/serialization/types/NamedScenarioInputStringVariableValueRequest.d.ts +13 -0
  138. package/{serialization/types/RegisteredPromptDeployment.js → dist/serialization/types/NamedScenarioInputStringVariableValueRequest.js} +3 -4
  139. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValue.d.ts +14 -0
  140. package/dist/serialization/types/{RegisteredPromptModelVersion.js → NamedTestCaseFunctionCallVariableValue.js} +5 -4
  141. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +14 -0
  142. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.js +35 -0
  143. package/dist/serialization/types/NamedTestCaseVariableValue.d.ts +5 -1
  144. package/dist/serialization/types/NamedTestCaseVariableValue.js +2 -0
  145. package/dist/serialization/types/NamedTestCaseVariableValueRequest.d.ts +5 -1
  146. package/dist/serialization/types/NamedTestCaseVariableValueRequest.js +2 -0
  147. package/dist/serialization/types/PromptTemplateBlock.d.ts +16 -8
  148. package/dist/serialization/types/PromptTemplateBlock.js +13 -7
  149. package/dist/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  150. package/dist/serialization/types/PromptTemplateBlockData.js +1 -1
  151. package/dist/serialization/types/ScenarioInput.d.ts +9 -8
  152. package/dist/serialization/types/ScenarioInput.js +10 -7
  153. package/dist/serialization/types/ScenarioInputChatHistoryVariableValue.d.ts +14 -0
  154. package/dist/serialization/types/ScenarioInputChatHistoryVariableValue.js +35 -0
  155. package/dist/serialization/types/ScenarioInputStringVariableValue.d.ts +13 -0
  156. package/dist/serialization/types/{RegisterPromptErrorResponse.js → ScenarioInputStringVariableValue.js} +4 -3
  157. package/dist/serialization/types/TestCaseFunctionCallVariableValue.d.ts +15 -0
  158. package/dist/serialization/types/TestCaseFunctionCallVariableValue.js +36 -0
  159. package/dist/serialization/types/TestCaseVariableValue.d.ts +5 -1
  160. package/dist/serialization/types/TestCaseVariableValue.js +2 -0
  161. package/dist/serialization/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +15 -0
  162. package/dist/serialization/types/TestSuiteRunExecutionFunctionCallOutput.js +36 -0
  163. package/dist/serialization/types/TestSuiteRunExecutionOutput.d.ts +5 -1
  164. package/dist/serialization/types/TestSuiteRunExecutionOutput.js +2 -0
  165. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  166. package/dist/serialization/types/VellumVariableType.js +1 -0
  167. package/dist/serialization/types/index.d.ts +20 -17
  168. package/dist/serialization/types/index.js +20 -17
  169. package/package.json +1 -1
  170. package/serialization/resources/index.d.ts +0 -2
  171. package/serialization/resources/index.js +1 -3
  172. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -2
  173. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +2 -2
  174. package/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +15 -0
  175. package/serialization/types/ChatHistoryPromptTemplateBlock.js +36 -0
  176. package/serialization/types/ChatMessageEnum.d.ts +10 -0
  177. package/serialization/types/{BlockTypeEnum.js → ChatMessageEnum.js} +2 -2
  178. package/serialization/types/ChatMessagePromptTemplateBlock.d.ts +15 -0
  179. package/serialization/types/{PromptTemplateBlockRequest.js → ChatMessagePromptTemplateBlock.js} +3 -5
  180. package/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +16 -0
  181. package/{dist/serialization/types/PromptTemplateBlockDataRequest.js → serialization/types/ChatMessagePromptTemplateBlockProperties.js} +7 -4
  182. package/serialization/types/FulfilledFunctionCallRequest.d.ts +16 -0
  183. package/serialization/types/FulfilledFunctionCallRequest.js +37 -0
  184. package/serialization/types/FunctionDefinitionEnum.d.ts +10 -0
  185. package/serialization/types/FunctionDefinitionEnum.js +31 -0
  186. package/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +16 -0
  187. package/serialization/types/FunctionDefinitionPromptTemplateBlock.js +37 -0
  188. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +15 -0
  189. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +36 -0
  190. package/serialization/types/JinjaEnum.d.ts +10 -0
  191. package/serialization/types/JinjaEnum.js +31 -0
  192. package/serialization/types/JinjaPromptTemplateBlock.d.ts +16 -0
  193. package/serialization/types/JinjaPromptTemplateBlock.js +37 -0
  194. package/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +14 -0
  195. package/{dist/serialization/types/RegisteredPromptInputVariableRequest.js → serialization/types/JinjaPromptTemplateBlockProperties.js} +4 -5
  196. package/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +14 -0
  197. package/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.js +35 -0
  198. package/serialization/types/NamedScenarioInputRequest.d.ts +18 -0
  199. package/serialization/types/NamedScenarioInputRequest.js +41 -0
  200. package/serialization/types/NamedScenarioInputStringVariableValueRequest.d.ts +13 -0
  201. package/{dist/serialization/types/RegisteredPromptDeployment.js → serialization/types/NamedScenarioInputStringVariableValueRequest.js} +3 -4
  202. package/serialization/types/NamedTestCaseFunctionCallVariableValue.d.ts +14 -0
  203. package/serialization/types/NamedTestCaseFunctionCallVariableValue.js +35 -0
  204. package/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +14 -0
  205. package/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.js +35 -0
  206. package/serialization/types/NamedTestCaseVariableValue.d.ts +5 -1
  207. package/serialization/types/NamedTestCaseVariableValue.js +2 -0
  208. package/serialization/types/NamedTestCaseVariableValueRequest.d.ts +5 -1
  209. package/serialization/types/NamedTestCaseVariableValueRequest.js +2 -0
  210. package/serialization/types/PromptTemplateBlock.d.ts +16 -8
  211. package/serialization/types/PromptTemplateBlock.js +13 -7
  212. package/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  213. package/serialization/types/PromptTemplateBlockData.js +1 -1
  214. package/serialization/types/ScenarioInput.d.ts +9 -8
  215. package/serialization/types/ScenarioInput.js +10 -7
  216. package/serialization/types/ScenarioInputChatHistoryVariableValue.d.ts +14 -0
  217. package/serialization/types/ScenarioInputChatHistoryVariableValue.js +35 -0
  218. package/serialization/types/ScenarioInputStringVariableValue.d.ts +13 -0
  219. package/{dist/serialization/types/RegisterPromptPrompt.js → serialization/types/ScenarioInputStringVariableValue.js} +4 -4
  220. package/serialization/types/TestCaseFunctionCallVariableValue.d.ts +15 -0
  221. package/serialization/types/TestCaseFunctionCallVariableValue.js +36 -0
  222. package/serialization/types/TestCaseVariableValue.d.ts +5 -1
  223. package/serialization/types/TestCaseVariableValue.js +2 -0
  224. package/serialization/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +15 -0
  225. package/serialization/types/TestSuiteRunExecutionFunctionCallOutput.js +36 -0
  226. package/serialization/types/TestSuiteRunExecutionOutput.d.ts +5 -1
  227. package/serialization/types/TestSuiteRunExecutionOutput.js +2 -0
  228. package/serialization/types/VellumVariableType.d.ts +1 -1
  229. package/serialization/types/VellumVariableType.js +1 -0
  230. package/serialization/types/index.d.ts +20 -17
  231. package/serialization/types/index.js +20 -17
  232. package/api/errors/ConflictError.d.ts +0 -8
  233. package/api/errors/ConflictError.js +0 -41
  234. package/api/resources/registeredPrompts/client/Client.d.ts +0 -60
  235. package/api/resources/registeredPrompts/client/Client.js +0 -153
  236. package/api/resources/registeredPrompts/client/index.d.ts +0 -1
  237. package/api/resources/registeredPrompts/client/index.js +0 -17
  238. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -64
  239. package/api/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  240. package/api/resources/registeredPrompts/client/requests/index.js +0 -2
  241. package/api/resources/registeredPrompts/index.d.ts +0 -1
  242. package/api/resources/registeredPrompts/index.js +0 -17
  243. package/api/types/BlockTypeEnum.d.ts +0 -16
  244. package/api/types/BlockTypeEnum.js +0 -12
  245. package/api/types/PromptTemplateBlockDataRequest.d.ts +0 -8
  246. package/api/types/PromptTemplateBlockProperties.d.ts +0 -16
  247. package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -16
  248. package/api/types/PromptTemplateBlockRequest.d.ts +0 -10
  249. package/api/types/RegisterPromptErrorResponse.d.ts +0 -7
  250. package/api/types/RegisterPromptModelParametersRequest.d.ts +0 -14
  251. package/api/types/RegisterPromptPrompt.d.ts +0 -9
  252. package/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -9
  253. package/api/types/RegisterPromptResponse.d.ts +0 -18
  254. package/api/types/RegisteredPromptDeployment.d.ts +0 -11
  255. package/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -9
  256. package/api/types/RegisteredPromptModelVersion.d.ts +0 -9
  257. package/api/types/RegisteredPromptSandbox.d.ts +0 -9
  258. package/api/types/RegisteredPromptSandboxSnapshot.d.ts +0 -7
  259. package/api/types/ScenarioInputRequest.d.ts +0 -10
  260. package/api/types/ScenarioInputTypeEnum.d.ts +0 -12
  261. package/api/types/ScenarioInputTypeEnum.js +0 -10
  262. package/dist/api/errors/ConflictError.d.ts +0 -8
  263. package/dist/api/errors/ConflictError.js +0 -41
  264. package/dist/api/resources/registeredPrompts/client/Client.d.ts +0 -60
  265. package/dist/api/resources/registeredPrompts/client/Client.js +0 -153
  266. package/dist/api/resources/registeredPrompts/client/index.d.ts +0 -1
  267. package/dist/api/resources/registeredPrompts/client/index.js +0 -17
  268. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -64
  269. package/dist/api/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  270. package/dist/api/resources/registeredPrompts/client/requests/index.js +0 -2
  271. package/dist/api/resources/registeredPrompts/index.d.ts +0 -1
  272. package/dist/api/resources/registeredPrompts/index.js +0 -17
  273. package/dist/api/types/BlockTypeEnum.d.ts +0 -16
  274. package/dist/api/types/BlockTypeEnum.js +0 -12
  275. package/dist/api/types/PromptTemplateBlockDataRequest.d.ts +0 -8
  276. package/dist/api/types/PromptTemplateBlockProperties.d.ts +0 -16
  277. package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -16
  278. package/dist/api/types/PromptTemplateBlockRequest.d.ts +0 -10
  279. package/dist/api/types/RegisterPromptErrorResponse.d.ts +0 -7
  280. package/dist/api/types/RegisterPromptModelParametersRequest.d.ts +0 -14
  281. package/dist/api/types/RegisterPromptPrompt.d.ts +0 -9
  282. package/dist/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -9
  283. package/dist/api/types/RegisterPromptResponse.d.ts +0 -18
  284. package/dist/api/types/RegisteredPromptDeployment.d.ts +0 -11
  285. package/dist/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -9
  286. package/dist/api/types/RegisteredPromptModelVersion.d.ts +0 -9
  287. package/dist/api/types/RegisteredPromptSandbox.d.ts +0 -9
  288. package/dist/api/types/RegisteredPromptSandboxSnapshot.d.ts +0 -7
  289. package/dist/api/types/ScenarioInputRequest.d.ts +0 -10
  290. package/dist/api/types/ScenarioInputTypeEnum.d.ts +0 -12
  291. package/dist/api/types/ScenarioInputTypeEnum.js +0 -10
  292. package/dist/serialization/resources/registeredPrompts/client/index.d.ts +0 -1
  293. package/dist/serialization/resources/registeredPrompts/client/index.js +0 -17
  294. package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -21
  295. package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -42
  296. package/dist/serialization/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  297. package/dist/serialization/resources/registeredPrompts/client/requests/index.js +0 -5
  298. package/dist/serialization/resources/registeredPrompts/index.d.ts +0 -1
  299. package/dist/serialization/resources/registeredPrompts/index.js +0 -17
  300. package/dist/serialization/types/BlockTypeEnum.d.ts +0 -10
  301. package/dist/serialization/types/PromptTemplateBlockDataRequest.d.ts +0 -13
  302. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +0 -23
  303. package/dist/serialization/types/PromptTemplateBlockProperties.js +0 -55
  304. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -23
  305. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +0 -55
  306. package/dist/serialization/types/PromptTemplateBlockRequest.d.ts +0 -17
  307. package/dist/serialization/types/RegisterPromptErrorResponse.d.ts +0 -12
  308. package/dist/serialization/types/RegisterPromptModelParametersRequest.d.ts +0 -20
  309. package/dist/serialization/types/RegisterPromptModelParametersRequest.js +0 -41
  310. package/dist/serialization/types/RegisterPromptPrompt.d.ts +0 -13
  311. package/dist/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -15
  312. package/dist/serialization/types/RegisterPromptResponse.d.ts +0 -22
  313. package/dist/serialization/types/RegisterPromptResponse.js +0 -43
  314. package/dist/serialization/types/RegisteredPromptDeployment.d.ts +0 -14
  315. package/dist/serialization/types/RegisteredPromptInputVariableRequest.d.ts +0 -15
  316. package/dist/serialization/types/RegisteredPromptModelVersion.d.ts +0 -13
  317. package/dist/serialization/types/RegisteredPromptSandbox.d.ts +0 -13
  318. package/dist/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +0 -12
  319. package/dist/serialization/types/RegisteredPromptSandboxSnapshot.js +0 -33
  320. package/dist/serialization/types/ScenarioInputRequest.d.ts +0 -17
  321. package/dist/serialization/types/ScenarioInputRequest.js +0 -38
  322. package/dist/serialization/types/ScenarioInputTypeEnum.d.ts +0 -10
  323. package/serialization/resources/registeredPrompts/client/index.d.ts +0 -1
  324. package/serialization/resources/registeredPrompts/client/index.js +0 -17
  325. package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -21
  326. package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -42
  327. package/serialization/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  328. package/serialization/resources/registeredPrompts/client/requests/index.js +0 -5
  329. package/serialization/resources/registeredPrompts/index.d.ts +0 -1
  330. package/serialization/resources/registeredPrompts/index.js +0 -17
  331. package/serialization/types/BlockTypeEnum.d.ts +0 -10
  332. package/serialization/types/PromptTemplateBlockDataRequest.d.ts +0 -13
  333. package/serialization/types/PromptTemplateBlockProperties.d.ts +0 -23
  334. package/serialization/types/PromptTemplateBlockProperties.js +0 -55
  335. package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -23
  336. package/serialization/types/PromptTemplateBlockPropertiesRequest.js +0 -55
  337. package/serialization/types/PromptTemplateBlockRequest.d.ts +0 -17
  338. package/serialization/types/RegisterPromptErrorResponse.d.ts +0 -12
  339. package/serialization/types/RegisterPromptErrorResponse.js +0 -33
  340. package/serialization/types/RegisterPromptModelParametersRequest.d.ts +0 -20
  341. package/serialization/types/RegisterPromptModelParametersRequest.js +0 -41
  342. package/serialization/types/RegisterPromptPrompt.d.ts +0 -13
  343. package/serialization/types/RegisterPromptPrompt.js +0 -34
  344. package/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -15
  345. package/serialization/types/RegisterPromptPromptInfoRequest.js +0 -36
  346. package/serialization/types/RegisterPromptResponse.d.ts +0 -22
  347. package/serialization/types/RegisterPromptResponse.js +0 -43
  348. package/serialization/types/RegisteredPromptDeployment.d.ts +0 -14
  349. package/serialization/types/RegisteredPromptInputVariableRequest.d.ts +0 -15
  350. package/serialization/types/RegisteredPromptModelVersion.d.ts +0 -13
  351. package/serialization/types/RegisteredPromptModelVersion.js +0 -34
  352. package/serialization/types/RegisteredPromptSandbox.d.ts +0 -13
  353. package/serialization/types/RegisteredPromptSandbox.js +0 -34
  354. package/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +0 -12
  355. package/serialization/types/RegisteredPromptSandboxSnapshot.js +0 -33
  356. package/serialization/types/ScenarioInputRequest.d.ts +0 -17
  357. package/serialization/types/ScenarioInputRequest.js +0 -38
  358. package/serialization/types/ScenarioInputTypeEnum.d.ts +0 -10
  359. /package/api/{resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js → types/ChatHistoryPromptTemplateBlock.js} +0 -0
  360. /package/api/types/{PromptTemplateBlockDataRequest.js → ChatMessageEnum.js} +0 -0
  361. /package/api/types/{PromptTemplateBlockProperties.js → ChatMessagePromptTemplateBlock.js} +0 -0
  362. /package/api/types/{PromptTemplateBlockPropertiesRequest.js → ChatMessagePromptTemplateBlockProperties.js} +0 -0
  363. /package/api/types/{PromptTemplateBlockRequest.js → FulfilledFunctionCallRequest.js} +0 -0
  364. /package/api/types/{RegisterPromptErrorResponse.js → FunctionDefinitionEnum.js} +0 -0
  365. /package/api/types/{RegisterPromptModelParametersRequest.js → FunctionDefinitionPromptTemplateBlock.js} +0 -0
  366. /package/api/types/{RegisterPromptPrompt.js → FunctionDefinitionPromptTemplateBlockProperties.js} +0 -0
  367. /package/api/types/{RegisterPromptPromptInfoRequest.js → JinjaEnum.js} +0 -0
  368. /package/api/types/{RegisterPromptResponse.js → JinjaPromptTemplateBlock.js} +0 -0
  369. /package/api/types/{RegisteredPromptDeployment.js → JinjaPromptTemplateBlockProperties.js} +0 -0
  370. /package/api/types/{RegisteredPromptInputVariableRequest.js → NamedScenarioInputChatHistoryVariableValueRequest.js} +0 -0
  371. /package/api/types/{RegisteredPromptModelVersion.js → NamedScenarioInputRequest.js} +0 -0
  372. /package/api/types/{RegisteredPromptSandbox.js → NamedScenarioInputStringVariableValueRequest.js} +0 -0
  373. /package/api/types/{RegisteredPromptSandboxSnapshot.js → NamedTestCaseFunctionCallVariableValue.js} +0 -0
  374. /package/api/types/{ScenarioInputRequest.js → NamedTestCaseFunctionCallVariableValueRequest.js} +0 -0
  375. /package/{dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js → api/types/ScenarioInputChatHistoryVariableValue.js} +0 -0
  376. /package/{dist/api/types/PromptTemplateBlockDataRequest.js → api/types/ScenarioInputStringVariableValue.js} +0 -0
  377. /package/{dist/api/types/PromptTemplateBlockProperties.js → api/types/TestCaseFunctionCallVariableValue.js} +0 -0
  378. /package/{dist/api/types/PromptTemplateBlockPropertiesRequest.js → api/types/TestSuiteRunExecutionFunctionCallOutput.js} +0 -0
  379. /package/dist/api/types/{PromptTemplateBlockRequest.js → ChatHistoryPromptTemplateBlock.js} +0 -0
  380. /package/dist/api/types/{RegisterPromptErrorResponse.js → ChatMessageEnum.js} +0 -0
  381. /package/dist/api/types/{RegisterPromptModelParametersRequest.js → ChatMessagePromptTemplateBlock.js} +0 -0
  382. /package/dist/api/types/{RegisterPromptPrompt.js → ChatMessagePromptTemplateBlockProperties.js} +0 -0
  383. /package/dist/api/types/{RegisterPromptPromptInfoRequest.js → FulfilledFunctionCallRequest.js} +0 -0
  384. /package/dist/api/types/{RegisterPromptResponse.js → FunctionDefinitionEnum.js} +0 -0
  385. /package/dist/api/types/{RegisteredPromptDeployment.js → FunctionDefinitionPromptTemplateBlock.js} +0 -0
  386. /package/dist/api/types/{RegisteredPromptInputVariableRequest.js → FunctionDefinitionPromptTemplateBlockProperties.js} +0 -0
  387. /package/dist/api/types/{RegisteredPromptModelVersion.js → JinjaEnum.js} +0 -0
  388. /package/dist/api/types/{RegisteredPromptSandbox.js → JinjaPromptTemplateBlock.js} +0 -0
  389. /package/dist/api/types/{RegisteredPromptSandboxSnapshot.js → JinjaPromptTemplateBlockProperties.js} +0 -0
  390. /package/dist/api/types/{ScenarioInputRequest.js → NamedScenarioInputChatHistoryVariableValueRequest.js} +0 -0
package/Client.d.ts CHANGED
@@ -9,7 +9,6 @@ import { DocumentIndexes } from "./api/resources/documentIndexes/client/Client";
9
9
  import { Documents } from "./api/resources/documents/client/Client";
10
10
  import { FolderEntities } from "./api/resources/folderEntities/client/Client";
11
11
  import { ModelVersions } from "./api/resources/modelVersions/client/Client";
12
- import { RegisteredPrompts } from "./api/resources/registeredPrompts/client/Client";
13
12
  import { Sandboxes } from "./api/resources/sandboxes/client/Client";
14
13
  import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
15
14
  import { TestSuites } from "./api/resources/testSuites/client/Client";
@@ -122,8 +121,6 @@ export declare class VellumClient {
122
121
  get folderEntities(): FolderEntities;
123
122
  protected _modelVersions: ModelVersions | undefined;
124
123
  get modelVersions(): ModelVersions;
125
- protected _registeredPrompts: RegisteredPrompts | undefined;
126
- get registeredPrompts(): RegisteredPrompts;
127
124
  protected _sandboxes: Sandboxes | undefined;
128
125
  get sandboxes(): Sandboxes;
129
126
  protected _testSuiteRuns: TestSuiteRuns | undefined;
package/Client.js CHANGED
@@ -50,11 +50,10 @@ const Client_2 = require("./api/resources/documentIndexes/client/Client");
50
50
  const Client_3 = require("./api/resources/documents/client/Client");
51
51
  const Client_4 = require("./api/resources/folderEntities/client/Client");
52
52
  const Client_5 = require("./api/resources/modelVersions/client/Client");
53
- const Client_6 = require("./api/resources/registeredPrompts/client/Client");
54
- const Client_7 = require("./api/resources/sandboxes/client/Client");
55
- const Client_8 = require("./api/resources/testSuiteRuns/client/Client");
56
- const Client_9 = require("./api/resources/testSuites/client/Client");
57
- const Client_10 = require("./api/resources/workflowDeployments/client/Client");
53
+ const Client_6 = require("./api/resources/sandboxes/client/Client");
54
+ const Client_7 = require("./api/resources/testSuiteRuns/client/Client");
55
+ const Client_8 = require("./api/resources/testSuites/client/Client");
56
+ const Client_9 = require("./api/resources/workflowDeployments/client/Client");
58
57
  class VellumClient {
59
58
  constructor(_options) {
60
59
  this._options = _options;
@@ -73,7 +72,7 @@ class VellumClient {
73
72
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
74
73
  .predict, "v1/execute-prompt"),
75
74
  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())),
75
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
76
  contentType: "application/json",
78
77
  body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
79
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -129,7 +128,7 @@ class VellumClient {
129
128
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
130
129
  .predict, "v1/execute-prompt-stream"),
131
130
  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())),
131
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
132
  contentType: "application/json",
134
133
  body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
135
134
  unrecognizedObjectKeys: "strip",
@@ -197,7 +196,7 @@ class VellumClient {
197
196
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
198
197
  .predict, "v1/execute-workflow"),
199
198
  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())),
199
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
201
200
  contentType: "application/json",
202
201
  body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
203
202
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -251,7 +250,7 @@ class VellumClient {
251
250
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
252
251
  .predict, "v1/execute-workflow-stream"),
253
252
  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())),
253
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
255
254
  contentType: "application/json",
256
255
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
257
256
  unrecognizedObjectKeys: "strip",
@@ -327,7 +326,7 @@ class VellumClient {
327
326
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
328
327
  .predict, "v1/generate"),
329
328
  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())),
329
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
331
330
  contentType: "application/json",
332
331
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
333
332
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -385,7 +384,7 @@ class VellumClient {
385
384
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
386
385
  .predict, "v1/generate-stream"),
387
386
  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())),
387
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
389
388
  contentType: "application/json",
390
389
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
391
390
  responseType: "streaming",
@@ -458,7 +457,7 @@ class VellumClient {
458
457
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
459
458
  .predict, "v1/search"),
460
459
  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())),
460
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
462
461
  contentType: "application/json",
463
462
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
464
463
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -522,7 +521,7 @@ class VellumClient {
522
521
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
523
522
  .predict, "v1/submit-completion-actuals"),
524
523
  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())),
524
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
526
525
  contentType: "application/json",
527
526
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
528
527
  unrecognizedObjectKeys: "strip",
@@ -580,7 +579,7 @@ class VellumClient {
580
579
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
581
580
  .predict, "v1/submit-workflow-execution-actuals"),
582
581
  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())),
582
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
584
583
  contentType: "application/json",
585
584
  body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
586
585
  unrecognizedObjectKeys: "strip",
@@ -632,25 +631,21 @@ class VellumClient {
632
631
  var _a;
633
632
  return ((_a = this._modelVersions) !== null && _a !== void 0 ? _a : (this._modelVersions = new Client_5.ModelVersions(this._options)));
634
633
  }
635
- get registeredPrompts() {
636
- var _a;
637
- return ((_a = this._registeredPrompts) !== null && _a !== void 0 ? _a : (this._registeredPrompts = new Client_6.RegisteredPrompts(this._options)));
638
- }
639
634
  get sandboxes() {
640
635
  var _a;
641
- return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_7.Sandboxes(this._options)));
636
+ return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_6.Sandboxes(this._options)));
642
637
  }
643
638
  get testSuiteRuns() {
644
639
  var _a;
645
- return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_8.TestSuiteRuns(this._options)));
640
+ return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_7.TestSuiteRuns(this._options)));
646
641
  }
647
642
  get testSuites() {
648
643
  var _a;
649
- return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_9.TestSuites(this._options)));
644
+ return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_8.TestSuites(this._options)));
650
645
  }
651
646
  get workflowDeployments() {
652
647
  var _a;
653
- return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_10.WorkflowDeployments(this._options)));
648
+ return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_9.WorkflowDeployments(this._options)));
654
649
  }
655
650
  _getCustomAuthorizationHeaders() {
656
651
  return __awaiter(this, void 0, void 0, function* () {
@@ -1,5 +1,4 @@
1
1
  export * from "./BadRequestError";
2
2
  export * from "./ForbiddenError";
3
3
  export * from "./NotFoundError";
4
- export * from "./ConflictError";
5
4
  export * from "./InternalServerError";
@@ -17,5 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BadRequestError"), exports);
18
18
  __exportStar(require("./ForbiddenError"), exports);
19
19
  __exportStar(require("./NotFoundError"), exports);
20
- __exportStar(require("./ConflictError"), exports);
21
20
  __exportStar(require("./InternalServerError"), exports);
@@ -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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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,
@@ -7,7 +7,6 @@ export * from "./workflowDeployments/types";
7
7
  export * as documents from "./documents";
8
8
  export * as folderEntities from "./folderEntities";
9
9
  export * as modelVersions from "./modelVersions";
10
- export * as registeredPrompts from "./registeredPrompts";
11
10
  export * as sandboxes from "./sandboxes";
12
11
  export * as testSuiteRuns from "./testSuiteRuns";
13
12
  export * as testSuites from "./testSuites";
@@ -15,7 +14,6 @@ export * from "./deployments/client/requests";
15
14
  export * from "./documentIndexes/client/requests";
16
15
  export * from "./documents/client/requests";
17
16
  export * from "./folderEntities/client/requests";
18
- export * from "./registeredPrompts/client/requests";
19
17
  export * from "./sandboxes/client/requests";
20
18
  export * from "./testSuiteRuns/client/requests";
21
19
  export * from "./testSuites/client/requests";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.registeredPrompts = exports.modelVersions = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
29
+ exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.modelVersions = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
30
30
  exports.deployments = __importStar(require("./deployments"));
31
31
  __exportStar(require("./deployments/types"), exports);
32
32
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -36,7 +36,6 @@ __exportStar(require("./workflowDeployments/types"), exports);
36
36
  exports.documents = __importStar(require("./documents"));
37
37
  exports.folderEntities = __importStar(require("./folderEntities"));
38
38
  exports.modelVersions = __importStar(require("./modelVersions"));
39
- exports.registeredPrompts = __importStar(require("./registeredPrompts"));
40
39
  exports.sandboxes = __importStar(require("./sandboxes"));
41
40
  exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
42
41
  exports.testSuites = __importStar(require("./testSuites"));
@@ -44,7 +43,6 @@ __exportStar(require("./deployments/client/requests"), exports);
44
43
  __exportStar(require("./documentIndexes/client/requests"), exports);
45
44
  __exportStar(require("./documents/client/requests"), exports);
46
45
  __exportStar(require("./folderEntities/client/requests"), exports);
47
- __exportStar(require("./registeredPrompts/client/requests"), exports);
48
46
  __exportStar(require("./sandboxes/client/requests"), exports);
49
47
  __exportStar(require("./testSuiteRuns/client/requests"), exports);
50
48
  __exportStar(require("./testSuites/client/requests"), exports);
@@ -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.1", "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,
@@ -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>;
@@ -60,15 +60,7 @@ class Sandboxes {
60
60
  * @example
61
61
  * await vellum.sandboxes.upsertSandboxScenario("id", {
62
62
  * label: "Scenario 1",
63
- * inputs: [{
64
- * key: "var_1",
65
- * type: Vellum.ScenarioInputTypeEnum.Text,
66
- * value: "Hello, world!"
67
- * }, {
68
- * key: "var_2",
69
- * type: Vellum.ScenarioInputTypeEnum.Text,
70
- * value: "Why hello, there!"
71
- * }]
63
+ * inputs: []
72
64
  * })
73
65
  */
74
66
  upsertSandboxScenario(id, request, requestOptions) {
@@ -78,7 +70,7 @@ class Sandboxes {
78
70
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
79
71
  .default, `v1/sandboxes/${id}/scenarios`),
80
72
  method: "POST",
81
- 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.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
74
  contentType: "application/json",
83
75
  body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
84
76
  unrecognizedObjectKeys: "strip",
@@ -128,7 +120,7 @@ class Sandboxes {
128
120
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
129
121
  .default, `v1/sandboxes/${id}/scenarios/${scenarioId}`),
130
122
  method: "DELETE",
131
- 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())),
123
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
124
  contentType: "application/json",
133
125
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
134
126
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -6,21 +6,13 @@ import * as Vellum from "../../../..";
6
6
  * @example
7
7
  * {
8
8
  * label: "Scenario 1",
9
- * inputs: [{
10
- * key: "var_1",
11
- * type: Vellum.ScenarioInputTypeEnum.Text,
12
- * value: "Hello, world!"
13
- * }, {
14
- * key: "var_2",
15
- * type: Vellum.ScenarioInputTypeEnum.Text,
16
- * value: "Why hello, there!"
17
- * }]
9
+ * inputs: []
18
10
  * }
19
11
  */
20
12
  export interface UpsertSandboxScenarioRequestRequest {
21
13
  label?: string;
22
14
  /** The inputs for the scenario */
23
- inputs: Vellum.ScenarioInputRequest[];
15
+ inputs: Vellum.NamedScenarioInputRequest[];
24
16
  /** The id of the scenario to update. If none is provided, an id will be generated and a new scenario will be appended. */
25
17
  scenarioId?: string;
26
18
  }
@@ -58,7 +58,7 @@ class TestSuiteRuns {
58
58
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
59
59
  .default, "v1/test-suite-runs"),
60
60
  method: "POST",
61
- 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())),
61
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
62
  contentType: "application/json",
63
63
  body: yield serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
64
64
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -106,7 +106,7 @@ class TestSuiteRuns {
106
106
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
107
107
  .default, `v1/test-suite-runs/${id}`),
108
108
  method: "GET",
109
- 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())),
109
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
110
110
  contentType: "application/json",
111
111
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
112
112
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -163,7 +163,7 @@ class TestSuiteRuns {
163
163
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
164
164
  .default, `v1/test-suite-runs/${id}/executions`),
165
165
  method: "GET",
166
- 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())),
166
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
167
167
  contentType: "application/json",
168
168
  queryParameters: _queryParams,
169
169
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -69,7 +69,7 @@ class TestSuites {
69
69
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
70
70
  .default, `v1/test-suites/${id}/test-cases`),
71
71
  method: "GET",
72
- 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())),
72
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -126,7 +126,7 @@ class TestSuites {
126
126
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
127
127
  .default, `v1/test-suites/${id}/test-cases`),
128
128
  method: "POST",
129
- 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())),
129
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
130
130
  contentType: "application/json",
131
131
  body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
132
132
  unrecognizedObjectKeys: "strip",
@@ -176,7 +176,7 @@ class TestSuites {
176
176
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
177
177
  .default, `v1/test-suites/${id}/test-cases/${testCaseId}`),
178
178
  method: "DELETE",
179
- 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())),
179
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
180
180
  contentType: "application/json",
181
181
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
182
182
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -69,7 +69,7 @@ class WorkflowDeployments {
69
69
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
70
70
  .default, "v1/workflow-deployments"),
71
71
  method: "GET",
72
- 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())),
72
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -117,7 +117,7 @@ class WorkflowDeployments {
117
117
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
118
118
  .default, `v1/workflow-deployments/${id}`),
119
119
  method: "GET",
120
- 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())),
120
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
121
  contentType: "application/json",
122
122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
123
123
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * A block of that represents a chat history variable in a prompt template.
7
+ */
8
+ export interface ChatHistoryPromptTemplateBlock {
9
+ properties: Record<string, unknown>;
10
+ id: string;
11
+ state?: Vellum.PromptTemplateBlockState;
12
+ }