vellum-ai 0.6.2 → 0.6.4

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 (283) hide show
  1. package/Client.d.ts +7 -9
  2. package/Client.js +26 -28
  3. package/api/resources/deployments/client/Client.d.ts +0 -1
  4. package/api/resources/deployments/client/Client.js +5 -49
  5. package/api/resources/deployments/client/requests/index.d.ts +0 -1
  6. package/api/resources/documentIndexes/client/Client.js +6 -6
  7. package/api/resources/documents/client/Client.js +5 -5
  8. package/api/resources/folderEntities/client/Client.js +1 -1
  9. package/api/resources/index.d.ts +2 -2
  10. package/api/resources/index.js +3 -3
  11. package/api/resources/sandboxes/client/Client.d.ts +1 -0
  12. package/api/resources/sandboxes/client/Client.js +46 -2
  13. package/api/resources/sandboxes/client/requests/index.d.ts +1 -0
  14. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  15. package/api/resources/testSuites/client/Client.d.ts +4 -0
  16. package/api/resources/testSuites/client/Client.js +57 -3
  17. package/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +3 -0
  18. package/api/resources/workflowDeployments/client/Client.js +4 -4
  19. package/{dist/api/resources/promptVersions → api/resources/workflowSandboxes}/client/Client.d.ts +5 -5
  20. package/{dist/api/resources/promptVersions → api/resources/workflowSandboxes}/client/Client.js +8 -8
  21. package/api/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
  22. package/api/types/BulkCreateTestSuiteTestCaseDataRequest.d.ts +14 -0
  23. package/api/types/BulkReplaceTestSuiteTestCaseDataRequest.d.ts +16 -0
  24. package/api/types/CreateEnum.d.ts +4 -0
  25. package/api/types/CreateEnum.js +5 -0
  26. package/api/types/CreatedEnum.d.ts +4 -0
  27. package/api/types/CreatedEnum.js +5 -0
  28. package/api/types/DeleteEnum.d.ts +4 -0
  29. package/api/types/DeleteEnum.js +5 -0
  30. package/api/types/DeletedEnum.d.ts +4 -0
  31. package/api/types/DeletedEnum.js +5 -0
  32. package/api/types/ReplaceEnum.d.ts +4 -0
  33. package/api/types/ReplaceEnum.js +5 -0
  34. package/api/types/ReplacedEnum.d.ts +4 -0
  35. package/api/types/ReplacedEnum.js +5 -0
  36. package/api/types/TestSuiteTestCaseBulkOperationRequest.d.ts +16 -0
  37. package/api/types/TestSuiteTestCaseBulkOperationRequest.js +5 -0
  38. package/api/types/TestSuiteTestCaseBulkResult.d.ts +19 -0
  39. package/api/types/TestSuiteTestCaseBulkResult.js +5 -0
  40. package/api/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +12 -0
  41. package/api/types/TestSuiteTestCaseCreateBulkOperationRequest.js +5 -0
  42. package/api/types/TestSuiteTestCaseCreatedBulkResult.d.ts +11 -0
  43. package/api/types/TestSuiteTestCaseCreatedBulkResult.js +5 -0
  44. package/api/types/TestSuiteTestCaseCreatedBulkResultData.d.ts +9 -0
  45. package/api/types/TestSuiteTestCaseCreatedBulkResultData.js +5 -0
  46. package/api/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.d.ts +6 -0
  47. package/api/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.js +5 -0
  48. package/api/types/TestSuiteTestCaseDeleteBulkOperationRequest.d.ts +13 -0
  49. package/api/types/TestSuiteTestCaseDeleteBulkOperationRequest.js +5 -0
  50. package/api/types/TestSuiteTestCaseDeletedBulkResult.d.ts +12 -0
  51. package/api/types/TestSuiteTestCaseDeletedBulkResult.js +5 -0
  52. package/api/types/TestSuiteTestCaseDeletedBulkResultData.d.ts +9 -0
  53. package/api/types/TestSuiteTestCaseDeletedBulkResultData.js +5 -0
  54. package/api/types/TestSuiteTestCaseRejectedBulkResult.d.ts +12 -0
  55. package/api/types/TestSuiteTestCaseRejectedBulkResult.js +5 -0
  56. package/api/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +12 -0
  57. package/api/types/TestSuiteTestCaseReplaceBulkOperationRequest.js +5 -0
  58. package/api/types/TestSuiteTestCaseReplacedBulkResult.d.ts +12 -0
  59. package/api/types/TestSuiteTestCaseReplacedBulkResult.js +5 -0
  60. package/api/types/TestSuiteTestCaseReplacedBulkResultData.d.ts +9 -0
  61. package/api/types/TestSuiteTestCaseReplacedBulkResultData.js +5 -0
  62. package/api/types/index.d.ts +21 -0
  63. package/api/types/index.js +21 -0
  64. package/dist/Client.d.ts +7 -9
  65. package/dist/Client.js +26 -28
  66. package/dist/api/resources/deployments/client/Client.d.ts +0 -1
  67. package/dist/api/resources/deployments/client/Client.js +5 -49
  68. package/dist/api/resources/deployments/client/requests/index.d.ts +0 -1
  69. package/dist/api/resources/documentIndexes/client/Client.js +6 -6
  70. package/dist/api/resources/documents/client/Client.js +5 -5
  71. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  72. package/dist/api/resources/index.d.ts +2 -2
  73. package/dist/api/resources/index.js +3 -3
  74. package/dist/api/resources/sandboxes/client/Client.d.ts +1 -0
  75. package/dist/api/resources/sandboxes/client/Client.js +46 -2
  76. package/dist/api/resources/sandboxes/client/requests/DeploySandboxPromptRequest.js +5 -0
  77. package/dist/api/resources/sandboxes/client/requests/index.d.ts +1 -0
  78. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  79. package/dist/api/resources/testSuites/client/Client.d.ts +4 -0
  80. package/dist/api/resources/testSuites/client/Client.js +57 -3
  81. package/dist/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +3 -0
  82. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  83. package/{api/resources/promptVersions → dist/api/resources/workflowSandboxes}/client/Client.d.ts +5 -5
  84. package/{api/resources/promptVersions → dist/api/resources/workflowSandboxes}/client/Client.js +8 -8
  85. package/dist/api/resources/workflowSandboxes/client/requests/DeploySandboxWorkflowRequest.js +5 -0
  86. package/dist/api/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
  87. package/dist/api/types/BulkCreateTestSuiteTestCaseDataRequest.d.ts +14 -0
  88. package/dist/api/types/BulkCreateTestSuiteTestCaseDataRequest.js +5 -0
  89. package/dist/api/types/BulkReplaceTestSuiteTestCaseDataRequest.d.ts +16 -0
  90. package/dist/api/types/BulkReplaceTestSuiteTestCaseDataRequest.js +5 -0
  91. package/dist/api/types/CreateEnum.d.ts +4 -0
  92. package/dist/api/types/CreateEnum.js +5 -0
  93. package/dist/api/types/CreatedEnum.d.ts +4 -0
  94. package/dist/api/types/CreatedEnum.js +5 -0
  95. package/dist/api/types/DeleteEnum.d.ts +4 -0
  96. package/dist/api/types/DeleteEnum.js +5 -0
  97. package/dist/api/types/DeletedEnum.d.ts +4 -0
  98. package/dist/api/types/DeletedEnum.js +5 -0
  99. package/dist/api/types/ReplaceEnum.d.ts +4 -0
  100. package/dist/api/types/ReplaceEnum.js +5 -0
  101. package/dist/api/types/ReplacedEnum.d.ts +4 -0
  102. package/dist/api/types/ReplacedEnum.js +5 -0
  103. package/dist/api/types/TestSuiteTestCaseBulkOperationRequest.d.ts +16 -0
  104. package/dist/api/types/TestSuiteTestCaseBulkOperationRequest.js +5 -0
  105. package/dist/api/types/TestSuiteTestCaseBulkResult.d.ts +19 -0
  106. package/dist/api/types/TestSuiteTestCaseBulkResult.js +5 -0
  107. package/dist/api/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +12 -0
  108. package/dist/api/types/TestSuiteTestCaseCreateBulkOperationRequest.js +5 -0
  109. package/dist/api/types/TestSuiteTestCaseCreatedBulkResult.d.ts +11 -0
  110. package/dist/api/types/TestSuiteTestCaseCreatedBulkResult.js +5 -0
  111. package/dist/api/types/TestSuiteTestCaseCreatedBulkResultData.d.ts +9 -0
  112. package/dist/api/types/TestSuiteTestCaseCreatedBulkResultData.js +5 -0
  113. package/dist/api/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.d.ts +6 -0
  114. package/dist/api/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.js +5 -0
  115. package/dist/api/types/TestSuiteTestCaseDeleteBulkOperationRequest.d.ts +13 -0
  116. package/dist/api/types/TestSuiteTestCaseDeleteBulkOperationRequest.js +5 -0
  117. package/dist/api/types/TestSuiteTestCaseDeletedBulkResult.d.ts +12 -0
  118. package/dist/api/types/TestSuiteTestCaseDeletedBulkResult.js +5 -0
  119. package/dist/api/types/TestSuiteTestCaseDeletedBulkResultData.d.ts +9 -0
  120. package/dist/api/types/TestSuiteTestCaseDeletedBulkResultData.js +5 -0
  121. package/dist/api/types/TestSuiteTestCaseRejectedBulkResult.d.ts +12 -0
  122. package/dist/api/types/TestSuiteTestCaseRejectedBulkResult.js +5 -0
  123. package/dist/api/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +12 -0
  124. package/dist/api/types/TestSuiteTestCaseReplaceBulkOperationRequest.js +5 -0
  125. package/dist/api/types/TestSuiteTestCaseReplacedBulkResult.d.ts +12 -0
  126. package/dist/api/types/TestSuiteTestCaseReplacedBulkResult.js +5 -0
  127. package/dist/api/types/TestSuiteTestCaseReplacedBulkResultData.d.ts +9 -0
  128. package/dist/api/types/TestSuiteTestCaseReplacedBulkResultData.js +5 -0
  129. package/dist/api/types/index.d.ts +21 -0
  130. package/dist/api/types/index.js +21 -0
  131. package/dist/serialization/resources/deployments/client/requests/index.d.ts +0 -1
  132. package/dist/serialization/resources/deployments/client/requests/index.js +1 -3
  133. package/dist/serialization/resources/index.d.ts +3 -3
  134. package/dist/serialization/resources/index.js +4 -4
  135. package/dist/serialization/resources/sandboxes/client/requests/index.d.ts +1 -0
  136. package/dist/serialization/resources/sandboxes/client/requests/index.js +3 -1
  137. package/dist/serialization/resources/testSuites/client/index.d.ts +1 -0
  138. package/dist/serialization/resources/testSuites/client/index.js +14 -0
  139. package/dist/serialization/resources/testSuites/client/testSuiteTestCasesBulk.d.ts +16 -0
  140. package/dist/serialization/resources/testSuites/client/testSuiteTestCasesBulk.js +34 -0
  141. package/dist/serialization/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
  142. package/dist/serialization/resources/workflowSandboxes/client/requests/index.js +5 -0
  143. package/dist/serialization/types/BulkCreateTestSuiteTestCaseDataRequest.d.ts +15 -0
  144. package/dist/serialization/types/BulkCreateTestSuiteTestCaseDataRequest.js +36 -0
  145. package/dist/serialization/types/BulkReplaceTestSuiteTestCaseDataRequest.d.ts +16 -0
  146. package/dist/serialization/types/BulkReplaceTestSuiteTestCaseDataRequest.js +37 -0
  147. package/dist/serialization/types/CreateEnum.d.ts +10 -0
  148. package/dist/serialization/types/CreateEnum.js +31 -0
  149. package/dist/serialization/types/CreatedEnum.d.ts +10 -0
  150. package/dist/serialization/types/CreatedEnum.js +31 -0
  151. package/dist/serialization/types/DeleteEnum.d.ts +10 -0
  152. package/dist/serialization/types/DeleteEnum.js +31 -0
  153. package/dist/serialization/types/DeletedEnum.d.ts +10 -0
  154. package/dist/serialization/types/DeletedEnum.js +31 -0
  155. package/dist/serialization/types/ReplaceEnum.d.ts +10 -0
  156. package/dist/serialization/types/ReplaceEnum.js +31 -0
  157. package/dist/serialization/types/ReplacedEnum.d.ts +10 -0
  158. package/dist/serialization/types/ReplacedEnum.js +31 -0
  159. package/dist/serialization/types/TestSuiteTestCaseBulkOperationRequest.d.ts +22 -0
  160. package/dist/serialization/types/TestSuiteTestCaseBulkOperationRequest.js +43 -0
  161. package/dist/serialization/types/TestSuiteTestCaseBulkResult.d.ts +26 -0
  162. package/dist/serialization/types/TestSuiteTestCaseBulkResult.js +45 -0
  163. package/dist/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +14 -0
  164. package/dist/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.js +35 -0
  165. package/dist/serialization/types/TestSuiteTestCaseCreatedBulkResult.d.ts +14 -0
  166. package/dist/serialization/types/TestSuiteTestCaseCreatedBulkResult.js +35 -0
  167. package/dist/serialization/types/TestSuiteTestCaseCreatedBulkResultData.d.ts +12 -0
  168. package/dist/serialization/types/TestSuiteTestCaseCreatedBulkResultData.js +33 -0
  169. package/dist/serialization/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.d.ts +12 -0
  170. package/dist/serialization/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.js +33 -0
  171. package/dist/serialization/types/TestSuiteTestCaseDeleteBulkOperationRequest.d.ts +14 -0
  172. package/dist/serialization/types/TestSuiteTestCaseDeleteBulkOperationRequest.js +35 -0
  173. package/dist/serialization/types/TestSuiteTestCaseDeletedBulkResult.d.ts +14 -0
  174. package/dist/serialization/types/TestSuiteTestCaseDeletedBulkResult.js +35 -0
  175. package/dist/serialization/types/TestSuiteTestCaseDeletedBulkResultData.d.ts +12 -0
  176. package/dist/serialization/types/TestSuiteTestCaseDeletedBulkResultData.js +33 -0
  177. package/dist/serialization/types/TestSuiteTestCaseRejectedBulkResult.d.ts +13 -0
  178. package/dist/serialization/types/TestSuiteTestCaseRejectedBulkResult.js +34 -0
  179. package/dist/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +14 -0
  180. package/dist/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.js +35 -0
  181. package/dist/serialization/types/TestSuiteTestCaseReplacedBulkResult.d.ts +14 -0
  182. package/dist/serialization/types/TestSuiteTestCaseReplacedBulkResult.js +35 -0
  183. package/dist/serialization/types/TestSuiteTestCaseReplacedBulkResultData.d.ts +12 -0
  184. package/dist/serialization/types/TestSuiteTestCaseReplacedBulkResultData.js +33 -0
  185. package/dist/serialization/types/index.d.ts +21 -0
  186. package/dist/serialization/types/index.js +21 -0
  187. package/package.json +1 -1
  188. package/serialization/resources/deployments/client/requests/index.d.ts +0 -1
  189. package/serialization/resources/deployments/client/requests/index.js +1 -3
  190. package/serialization/resources/index.d.ts +3 -3
  191. package/serialization/resources/index.js +4 -4
  192. package/serialization/resources/sandboxes/client/requests/index.d.ts +1 -0
  193. package/serialization/resources/sandboxes/client/requests/index.js +3 -1
  194. package/serialization/resources/testSuites/client/index.d.ts +1 -0
  195. package/serialization/resources/testSuites/client/index.js +14 -0
  196. package/serialization/resources/testSuites/client/testSuiteTestCasesBulk.d.ts +16 -0
  197. package/serialization/resources/testSuites/client/testSuiteTestCasesBulk.js +34 -0
  198. package/serialization/resources/workflowSandboxes/client/requests/index.d.ts +1 -0
  199. package/serialization/resources/workflowSandboxes/client/requests/index.js +5 -0
  200. package/serialization/types/BulkCreateTestSuiteTestCaseDataRequest.d.ts +15 -0
  201. package/serialization/types/BulkCreateTestSuiteTestCaseDataRequest.js +36 -0
  202. package/serialization/types/BulkReplaceTestSuiteTestCaseDataRequest.d.ts +16 -0
  203. package/serialization/types/BulkReplaceTestSuiteTestCaseDataRequest.js +37 -0
  204. package/serialization/types/CreateEnum.d.ts +10 -0
  205. package/serialization/types/CreateEnum.js +31 -0
  206. package/serialization/types/CreatedEnum.d.ts +10 -0
  207. package/serialization/types/CreatedEnum.js +31 -0
  208. package/serialization/types/DeleteEnum.d.ts +10 -0
  209. package/serialization/types/DeleteEnum.js +31 -0
  210. package/serialization/types/DeletedEnum.d.ts +10 -0
  211. package/serialization/types/DeletedEnum.js +31 -0
  212. package/serialization/types/ReplaceEnum.d.ts +10 -0
  213. package/serialization/types/ReplaceEnum.js +31 -0
  214. package/serialization/types/ReplacedEnum.d.ts +10 -0
  215. package/serialization/types/ReplacedEnum.js +31 -0
  216. package/serialization/types/TestSuiteTestCaseBulkOperationRequest.d.ts +22 -0
  217. package/serialization/types/TestSuiteTestCaseBulkOperationRequest.js +43 -0
  218. package/serialization/types/TestSuiteTestCaseBulkResult.d.ts +26 -0
  219. package/serialization/types/TestSuiteTestCaseBulkResult.js +45 -0
  220. package/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +14 -0
  221. package/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.js +35 -0
  222. package/serialization/types/TestSuiteTestCaseCreatedBulkResult.d.ts +14 -0
  223. package/serialization/types/TestSuiteTestCaseCreatedBulkResult.js +35 -0
  224. package/serialization/types/TestSuiteTestCaseCreatedBulkResultData.d.ts +12 -0
  225. package/serialization/types/TestSuiteTestCaseCreatedBulkResultData.js +33 -0
  226. package/serialization/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.d.ts +12 -0
  227. package/serialization/types/TestSuiteTestCaseDeleteBulkOperationDataRequest.js +33 -0
  228. package/serialization/types/TestSuiteTestCaseDeleteBulkOperationRequest.d.ts +14 -0
  229. package/serialization/types/TestSuiteTestCaseDeleteBulkOperationRequest.js +35 -0
  230. package/serialization/types/TestSuiteTestCaseDeletedBulkResult.d.ts +14 -0
  231. package/serialization/types/TestSuiteTestCaseDeletedBulkResult.js +35 -0
  232. package/serialization/types/TestSuiteTestCaseDeletedBulkResultData.d.ts +12 -0
  233. package/serialization/types/TestSuiteTestCaseDeletedBulkResultData.js +33 -0
  234. package/serialization/types/TestSuiteTestCaseRejectedBulkResult.d.ts +13 -0
  235. package/serialization/types/TestSuiteTestCaseRejectedBulkResult.js +34 -0
  236. package/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +14 -0
  237. package/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.js +35 -0
  238. package/serialization/types/TestSuiteTestCaseReplacedBulkResult.d.ts +14 -0
  239. package/serialization/types/TestSuiteTestCaseReplacedBulkResult.js +35 -0
  240. package/serialization/types/TestSuiteTestCaseReplacedBulkResultData.d.ts +12 -0
  241. package/serialization/types/TestSuiteTestCaseReplacedBulkResultData.js +33 -0
  242. package/serialization/types/index.d.ts +21 -0
  243. package/serialization/types/index.js +21 -0
  244. package/api/resources/promptVersions/client/requests/index.d.ts +0 -1
  245. package/dist/api/resources/promptVersions/client/requests/index.d.ts +0 -1
  246. package/dist/serialization/resources/promptVersions/client/requests/index.d.ts +0 -1
  247. package/dist/serialization/resources/promptVersions/client/requests/index.js +0 -5
  248. package/serialization/resources/promptVersions/client/requests/index.d.ts +0 -1
  249. package/serialization/resources/promptVersions/client/requests/index.js +0 -5
  250. /package/api/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.d.ts +0 -0
  251. /package/api/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.js +0 -0
  252. /package/api/resources/{promptVersions → workflowSandboxes}/client/index.d.ts +0 -0
  253. /package/api/resources/{promptVersions → workflowSandboxes}/client/index.js +0 -0
  254. /package/api/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.d.ts +0 -0
  255. /package/api/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.js +0 -0
  256. /package/api/resources/{promptVersions → workflowSandboxes}/client/requests/index.js +0 -0
  257. /package/api/resources/{promptVersions → workflowSandboxes}/index.d.ts +0 -0
  258. /package/api/resources/{promptVersions → workflowSandboxes}/index.js +0 -0
  259. /package/{dist/api/resources/deployments/client/requests/DeploySandboxWorkflowRequest.js → api/types/BulkCreateTestSuiteTestCaseDataRequest.js} +0 -0
  260. /package/{dist/api/resources/promptVersions/client/requests/DeploySandboxPromptRequest.js → api/types/BulkReplaceTestSuiteTestCaseDataRequest.js} +0 -0
  261. /package/dist/api/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.d.ts +0 -0
  262. /package/dist/api/resources/{promptVersions → workflowSandboxes}/client/index.d.ts +0 -0
  263. /package/dist/api/resources/{promptVersions → workflowSandboxes}/client/index.js +0 -0
  264. /package/dist/api/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.d.ts +0 -0
  265. /package/dist/api/resources/{promptVersions → workflowSandboxes}/client/requests/index.js +0 -0
  266. /package/dist/api/resources/{promptVersions → workflowSandboxes}/index.d.ts +0 -0
  267. /package/dist/api/resources/{promptVersions → workflowSandboxes}/index.js +0 -0
  268. /package/dist/serialization/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.d.ts +0 -0
  269. /package/dist/serialization/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.js +0 -0
  270. /package/dist/serialization/resources/{promptVersions → workflowSandboxes}/client/index.d.ts +0 -0
  271. /package/dist/serialization/resources/{promptVersions → workflowSandboxes}/client/index.js +0 -0
  272. /package/dist/serialization/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.d.ts +0 -0
  273. /package/dist/serialization/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.js +0 -0
  274. /package/dist/serialization/resources/{promptVersions → workflowSandboxes}/index.d.ts +0 -0
  275. /package/dist/serialization/resources/{promptVersions → workflowSandboxes}/index.js +0 -0
  276. /package/serialization/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.d.ts +0 -0
  277. /package/serialization/resources/{promptVersions → sandboxes}/client/requests/DeploySandboxPromptRequest.js +0 -0
  278. /package/serialization/resources/{promptVersions → workflowSandboxes}/client/index.d.ts +0 -0
  279. /package/serialization/resources/{promptVersions → workflowSandboxes}/client/index.js +0 -0
  280. /package/serialization/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.d.ts +0 -0
  281. /package/serialization/resources/{deployments → workflowSandboxes}/client/requests/DeploySandboxWorkflowRequest.js +0 -0
  282. /package/serialization/resources/{promptVersions → workflowSandboxes}/index.d.ts +0 -0
  283. /package/serialization/resources/{promptVersions → workflowSandboxes}/index.js +0 -0
package/Client.d.ts CHANGED
@@ -8,11 +8,11 @@ import { Deployments } from "./api/resources/deployments/client/Client";
8
8
  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
- import { PromptVersions } from "./api/resources/promptVersions/client/Client";
12
11
  import { Sandboxes } from "./api/resources/sandboxes/client/Client";
13
12
  import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
14
13
  import { TestSuites } from "./api/resources/testSuites/client/Client";
15
14
  import { WorkflowDeployments } from "./api/resources/workflowDeployments/client/Client";
15
+ import { WorkflowSandboxes } from "./api/resources/workflowSandboxes/client/Client";
16
16
  export declare namespace VellumClient {
17
17
  interface Options {
18
18
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
@@ -52,7 +52,8 @@ export declare class VellumClient {
52
52
  /**
53
53
  * Generate a completion using a previously defined deployment.
54
54
  *
55
- * **Note:** Uses a base url of `https://predict.vellum.ai`.
55
+ * Important: This endpoint is DEPRECATED and has been superseded by
56
+ * [execute-prompt](/api-reference/api-reference/execute-prompt).
56
57
  * @throws {@link Vellum.BadRequestError}
57
58
  * @throws {@link Vellum.ForbiddenError}
58
59
  * @throws {@link Vellum.NotFoundError}
@@ -69,13 +70,12 @@ export declare class VellumClient {
69
70
  /**
70
71
  * Generate a stream of completions using a previously defined deployment.
71
72
  *
72
- * **Note:** Uses a base url of `https://predict.vellum.ai`.
73
+ * Important: This endpoint is DEPRECATED and has been superseded by
74
+ * [execute-prompt-stream](/api-reference/api-reference/execute-prompt-stream).
73
75
  */
74
76
  generateStream(request: Vellum.GenerateStreamBodyRequest, requestOptions?: VellumClient.RequestOptions): Promise<core.Stream<Vellum.GenerateStreamResponse>>;
75
77
  /**
76
78
  * Perform a search against a document index.
77
- *
78
- * **Note:** Uses a base url of `https://predict.vellum.ai`.
79
79
  * @throws {@link Vellum.BadRequestError}
80
80
  * @throws {@link Vellum.NotFoundError}
81
81
  * @throws {@link Vellum.InternalServerError}
@@ -88,8 +88,6 @@ export declare class VellumClient {
88
88
  search(request: Vellum.SearchRequestBodyRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.SearchResponse>;
89
89
  /**
90
90
  * Used to submit feedback regarding the quality of previously generated completions.
91
- *
92
- * **Note:** Uses a base url of `https://predict.vellum.ai`.
93
91
  * @throws {@link Vellum.BadRequestError}
94
92
  * @throws {@link Vellum.NotFoundError}
95
93
  * @throws {@link Vellum.InternalServerError}
@@ -119,8 +117,6 @@ export declare class VellumClient {
119
117
  get documents(): Documents;
120
118
  protected _folderEntities: FolderEntities | undefined;
121
119
  get folderEntities(): FolderEntities;
122
- protected _promptVersions: PromptVersions | undefined;
123
- get promptVersions(): PromptVersions;
124
120
  protected _sandboxes: Sandboxes | undefined;
125
121
  get sandboxes(): Sandboxes;
126
122
  protected _testSuiteRuns: TestSuiteRuns | undefined;
@@ -129,6 +125,8 @@ export declare class VellumClient {
129
125
  get testSuites(): TestSuites;
130
126
  protected _workflowDeployments: WorkflowDeployments | undefined;
131
127
  get workflowDeployments(): WorkflowDeployments;
128
+ protected _workflowSandboxes: WorkflowSandboxes | undefined;
129
+ get workflowSandboxes(): WorkflowSandboxes;
132
130
  protected _getCustomAuthorizationHeaders(): Promise<{
133
131
  X_API_KEY: string;
134
132
  }>;
package/Client.js CHANGED
@@ -49,11 +49,11 @@ const Client_1 = require("./api/resources/deployments/client/Client");
49
49
  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
- const Client_5 = require("./api/resources/promptVersions/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");
52
+ const Client_5 = require("./api/resources/sandboxes/client/Client");
53
+ const Client_6 = require("./api/resources/testSuiteRuns/client/Client");
54
+ const Client_7 = require("./api/resources/testSuites/client/Client");
55
+ const Client_8 = require("./api/resources/workflowDeployments/client/Client");
56
+ const Client_9 = require("./api/resources/workflowSandboxes/client/Client");
57
57
  class VellumClient {
58
58
  constructor(_options) {
59
59
  this._options = _options;
@@ -72,7 +72,7 @@ class VellumClient {
72
72
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
73
73
  .predict, "v1/execute-prompt"),
74
74
  method: "POST",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -128,7 +128,7 @@ class VellumClient {
128
128
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
129
129
  .predict, "v1/execute-prompt-stream"),
130
130
  method: "POST",
131
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
132
  contentType: "application/json",
133
133
  body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
134
134
  unrecognizedObjectKeys: "strip",
@@ -196,7 +196,7 @@ class VellumClient {
196
196
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
197
197
  .predict, "v1/execute-workflow"),
198
198
  method: "POST",
199
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
200
200
  contentType: "application/json",
201
201
  body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
202
202
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -250,7 +250,7 @@ class VellumClient {
250
250
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
251
251
  .predict, "v1/execute-workflow-stream"),
252
252
  method: "POST",
253
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
254
254
  contentType: "application/json",
255
255
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
256
256
  unrecognizedObjectKeys: "strip",
@@ -306,7 +306,8 @@ class VellumClient {
306
306
  /**
307
307
  * Generate a completion using a previously defined deployment.
308
308
  *
309
- * **Note:** Uses a base url of `https://predict.vellum.ai`.
309
+ * Important: This endpoint is DEPRECATED and has been superseded by
310
+ * [execute-prompt](/api-reference/api-reference/execute-prompt).
310
311
  * @throws {@link Vellum.BadRequestError}
311
312
  * @throws {@link Vellum.ForbiddenError}
312
313
  * @throws {@link Vellum.NotFoundError}
@@ -326,7 +327,7 @@ class VellumClient {
326
327
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
327
328
  .predict, "v1/generate"),
328
329
  method: "POST",
329
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
330
331
  contentType: "application/json",
331
332
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
332
333
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -375,7 +376,8 @@ class VellumClient {
375
376
  /**
376
377
  * Generate a stream of completions using a previously defined deployment.
377
378
  *
378
- * **Note:** Uses a base url of `https://predict.vellum.ai`.
379
+ * Important: This endpoint is DEPRECATED and has been superseded by
380
+ * [execute-prompt-stream](/api-reference/api-reference/execute-prompt-stream).
379
381
  */
380
382
  generateStream(request, requestOptions) {
381
383
  var _a;
@@ -384,7 +386,7 @@ class VellumClient {
384
386
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
385
387
  .predict, "v1/generate-stream"),
386
388
  method: "POST",
387
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
389
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
388
390
  contentType: "application/json",
389
391
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
390
392
  responseType: "streaming",
@@ -439,8 +441,6 @@ class VellumClient {
439
441
  }
440
442
  /**
441
443
  * Perform a search against a document index.
442
- *
443
- * **Note:** Uses a base url of `https://predict.vellum.ai`.
444
444
  * @throws {@link Vellum.BadRequestError}
445
445
  * @throws {@link Vellum.NotFoundError}
446
446
  * @throws {@link Vellum.InternalServerError}
@@ -457,7 +457,7 @@ class VellumClient {
457
457
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
458
458
  .predict, "v1/search"),
459
459
  method: "POST",
460
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
461
461
  contentType: "application/json",
462
462
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
463
463
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -503,8 +503,6 @@ class VellumClient {
503
503
  }
504
504
  /**
505
505
  * Used to submit feedback regarding the quality of previously generated completions.
506
- *
507
- * **Note:** Uses a base url of `https://predict.vellum.ai`.
508
506
  * @throws {@link Vellum.BadRequestError}
509
507
  * @throws {@link Vellum.NotFoundError}
510
508
  * @throws {@link Vellum.InternalServerError}
@@ -521,7 +519,7 @@ class VellumClient {
521
519
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
522
520
  .predict, "v1/submit-completion-actuals"),
523
521
  method: "POST",
524
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
522
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
525
523
  contentType: "application/json",
526
524
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
527
525
  unrecognizedObjectKeys: "strip",
@@ -579,7 +577,7 @@ class VellumClient {
579
577
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
580
578
  .predict, "v1/submit-workflow-execution-actuals"),
581
579
  method: "POST",
582
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
580
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
583
581
  contentType: "application/json",
584
582
  body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
585
583
  unrecognizedObjectKeys: "strip",
@@ -627,25 +625,25 @@ class VellumClient {
627
625
  var _a;
628
626
  return ((_a = this._folderEntities) !== null && _a !== void 0 ? _a : (this._folderEntities = new Client_4.FolderEntities(this._options)));
629
627
  }
630
- get promptVersions() {
631
- var _a;
632
- return ((_a = this._promptVersions) !== null && _a !== void 0 ? _a : (this._promptVersions = new Client_5.PromptVersions(this._options)));
633
- }
634
628
  get sandboxes() {
635
629
  var _a;
636
- return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_6.Sandboxes(this._options)));
630
+ return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_5.Sandboxes(this._options)));
637
631
  }
638
632
  get testSuiteRuns() {
639
633
  var _a;
640
- return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_7.TestSuiteRuns(this._options)));
634
+ return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_6.TestSuiteRuns(this._options)));
641
635
  }
642
636
  get testSuites() {
643
637
  var _a;
644
- return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_8.TestSuites(this._options)));
638
+ return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_7.TestSuites(this._options)));
645
639
  }
646
640
  get workflowDeployments() {
647
641
  var _a;
648
- return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_9.WorkflowDeployments(this._options)));
642
+ return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_8.WorkflowDeployments(this._options)));
643
+ }
644
+ get workflowSandboxes() {
645
+ var _a;
646
+ return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_9.WorkflowSandboxes(this._options)));
649
647
  }
650
648
  _getCustomAuthorizationHeaders() {
651
649
  return __awaiter(this, void 0, void 0, function* () {
@@ -51,7 +51,6 @@ export declare class Deployments {
51
51
  * })
52
52
  */
53
53
  retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
54
- deployWorkflow(id: string, workflowId: string, request?: Vellum.DeploySandboxWorkflowRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
55
54
  protected _getCustomAuthorizationHeaders(): Promise<{
56
55
  X_API_KEY: string;
57
56
  }>;
@@ -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.6.2", "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.6.4", "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.6.2", "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.6.4", "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,
@@ -165,7 +165,7 @@ class Deployments {
165
165
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
166
166
  .default, `v1/deployments/${id}/release-tags/${name}`),
167
167
  method: "GET",
168
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
168
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
169
169
  contentType: "application/json",
170
170
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
171
171
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -212,7 +212,7 @@ class Deployments {
212
212
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
213
213
  .default, `v1/deployments/${id}/release-tags/${name}`),
214
214
  method: "PATCH",
215
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
215
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
216
216
  contentType: "application/json",
217
217
  body: yield serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
218
218
  unrecognizedObjectKeys: "strip",
@@ -267,7 +267,7 @@ class Deployments {
267
267
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
268
268
  .default, "v1/deployments/provider-payload"),
269
269
  method: "POST",
270
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
270
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
271
271
  contentType: "application/json",
272
272
  body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
273
273
  unrecognizedObjectKeys: "strip",
@@ -315,50 +315,6 @@ class Deployments {
315
315
  }
316
316
  });
317
317
  }
318
- deployWorkflow(id, workflowId, request = {}, requestOptions) {
319
- var _a;
320
- return __awaiter(this, void 0, void 0, function* () {
321
- const _response = yield core.fetcher({
322
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
323
- .default, `v1/workflow-sandboxes/${id}/workflows/${workflowId}/deploy`),
324
- method: "POST",
325
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
326
- contentType: "application/json",
327
- body: yield serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, {
328
- unrecognizedObjectKeys: "strip",
329
- }),
330
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
331
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
332
- });
333
- if (_response.ok) {
334
- return yield serializers.WorkflowDeploymentRead.parseOrThrow(_response.body, {
335
- unrecognizedObjectKeys: "passthrough",
336
- allowUnrecognizedUnionMembers: true,
337
- allowUnrecognizedEnumValues: true,
338
- breadcrumbsPrefix: ["response"],
339
- });
340
- }
341
- if (_response.error.reason === "status-code") {
342
- throw new errors.VellumError({
343
- statusCode: _response.error.statusCode,
344
- body: _response.error.body,
345
- });
346
- }
347
- switch (_response.error.reason) {
348
- case "non-json":
349
- throw new errors.VellumError({
350
- statusCode: _response.error.statusCode,
351
- body: _response.error.rawBody,
352
- });
353
- case "timeout":
354
- throw new errors.VellumTimeoutError();
355
- case "unknown":
356
- throw new errors.VellumError({
357
- message: _response.error.errorMessage,
358
- });
359
- }
360
- });
361
- }
362
318
  _getCustomAuthorizationHeaders() {
363
319
  return __awaiter(this, void 0, void 0, function* () {
364
320
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -1,4 +1,3 @@
1
1
  export { DeploymentsListRequest } from "./DeploymentsListRequest";
2
2
  export { PatchedDeploymentReleaseTagUpdateRequest } from "./PatchedDeploymentReleaseTagUpdateRequest";
3
3
  export { DeploymentProviderPayloadRequest } from "./DeploymentProviderPayloadRequest";
4
- export { DeploySandboxWorkflowRequest } from "./DeploySandboxWorkflowRequest";
@@ -78,7 +78,7 @@ class DocumentIndexes {
78
78
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
79
79
  .default, "v1/document-indexes"),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -123,7 +123,7 @@ class DocumentIndexes {
123
123
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
124
124
  .default, "v1/document-indexes"),
125
125
  method: "POST",
126
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
126
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
127
  contentType: "application/json",
128
128
  body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
129
129
  unrecognizedObjectKeys: "strip",
@@ -170,7 +170,7 @@ class DocumentIndexes {
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/document-indexes/${id}`),
172
172
  method: "GET",
173
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
174
174
  contentType: "application/json",
175
175
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
176
176
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -214,7 +214,7 @@ class DocumentIndexes {
214
214
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
215
215
  .default, `v1/document-indexes/${id}`),
216
216
  method: "PUT",
217
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
217
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
218
218
  contentType: "application/json",
219
219
  body: yield serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, {
220
220
  unrecognizedObjectKeys: "strip",
@@ -264,7 +264,7 @@ class DocumentIndexes {
264
264
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
265
265
  .default, `v1/document-indexes/${id}`),
266
266
  method: "DELETE",
267
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
267
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
268
268
  contentType: "application/json",
269
269
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
270
270
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -303,7 +303,7 @@ class DocumentIndexes {
303
303
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
304
304
  .default, `v1/document-indexes/${id}`),
305
305
  method: "PATCH",
306
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
306
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
307
307
  contentType: "application/json",
308
308
  body: yield serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
309
309
  unrecognizedObjectKeys: "strip",
@@ -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.6.2", "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.6.4", "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,
@@ -125,7 +125,7 @@ class Documents {
125
125
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
126
126
  .default, `v1/documents/${id}`),
127
127
  method: "GET",
128
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
129
  contentType: "application/json",
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
131
131
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -172,7 +172,7 @@ class Documents {
172
172
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
173
173
  .default, `v1/documents/${id}`),
174
174
  method: "DELETE",
175
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
175
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
176
176
  contentType: "application/json",
177
177
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
178
178
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -214,7 +214,7 @@ class Documents {
214
214
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
215
215
  .default, `v1/documents/${id}`),
216
216
  method: "PATCH",
217
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
217
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
218
218
  contentType: "application/json",
219
219
  body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
220
220
  unrecognizedObjectKeys: "strip",
@@ -293,7 +293,7 @@ class Documents {
293
293
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
294
294
  .documents, "v1/upload-document"),
295
295
  method: "POST",
296
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
296
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
297
297
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
298
298
  body: _request,
299
299
  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.6.2", "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.6.4", "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,
@@ -6,16 +6,16 @@ export * as workflowDeployments from "./workflowDeployments";
6
6
  export * from "./workflowDeployments/types";
7
7
  export * as documents from "./documents";
8
8
  export * as folderEntities from "./folderEntities";
9
- export * as promptVersions from "./promptVersions";
10
9
  export * as sandboxes from "./sandboxes";
11
10
  export * as testSuiteRuns from "./testSuiteRuns";
12
11
  export * as testSuites from "./testSuites";
12
+ export * as workflowSandboxes from "./workflowSandboxes";
13
13
  export * from "./deployments/client/requests";
14
14
  export * from "./documentIndexes/client/requests";
15
15
  export * from "./documents/client/requests";
16
16
  export * from "./folderEntities/client/requests";
17
- export * from "./promptVersions/client/requests";
18
17
  export * from "./sandboxes/client/requests";
19
18
  export * from "./testSuiteRuns/client/requests";
20
19
  export * from "./testSuites/client/requests";
21
20
  export * from "./workflowDeployments/client/requests";
21
+ export * from "./workflowSandboxes/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.promptVersions = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
29
+ exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = 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"));
@@ -35,16 +35,16 @@ exports.workflowDeployments = __importStar(require("./workflowDeployments"));
35
35
  __exportStar(require("./workflowDeployments/types"), exports);
36
36
  exports.documents = __importStar(require("./documents"));
37
37
  exports.folderEntities = __importStar(require("./folderEntities"));
38
- exports.promptVersions = __importStar(require("./promptVersions"));
39
38
  exports.sandboxes = __importStar(require("./sandboxes"));
40
39
  exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
41
40
  exports.testSuites = __importStar(require("./testSuites"));
41
+ exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
42
42
  __exportStar(require("./deployments/client/requests"), exports);
43
43
  __exportStar(require("./documentIndexes/client/requests"), exports);
44
44
  __exportStar(require("./documents/client/requests"), exports);
45
45
  __exportStar(require("./folderEntities/client/requests"), exports);
46
- __exportStar(require("./promptVersions/client/requests"), exports);
47
46
  __exportStar(require("./sandboxes/client/requests"), exports);
48
47
  __exportStar(require("./testSuiteRuns/client/requests"), exports);
49
48
  __exportStar(require("./testSuites/client/requests"), exports);
50
49
  __exportStar(require("./workflowDeployments/client/requests"), exports);
50
+ __exportStar(require("./workflowSandboxes/client/requests"), exports);
@@ -17,6 +17,7 @@ export declare namespace Sandboxes {
17
17
  export declare class Sandboxes {
18
18
  protected readonly _options: Sandboxes.Options;
19
19
  constructor(_options: Sandboxes.Options);
20
+ deployPrompt(id: string, promptId: string, request?: Vellum.DeploySandboxPromptRequest, requestOptions?: Sandboxes.RequestOptions): Promise<Vellum.DeploymentRead>;
20
21
  /**
21
22
  * Upserts a new scenario for a sandbox, keying off of the optionally provided scenario id.
22
23
  *
@@ -48,6 +48,50 @@ class Sandboxes {
48
48
  constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
+ deployPrompt(id, promptId, request = {}, requestOptions) {
52
+ var _a;
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const _response = yield core.fetcher({
55
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
56
+ .default, `v1/sandboxes/${id}/prompts/${promptId}/deploy`),
57
+ method: "POST",
58
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
59
+ contentType: "application/json",
60
+ body: yield serializers.DeploySandboxPromptRequest.jsonOrThrow(request, {
61
+ unrecognizedObjectKeys: "strip",
62
+ }),
63
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
64
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
65
+ });
66
+ if (_response.ok) {
67
+ return yield serializers.DeploymentRead.parseOrThrow(_response.body, {
68
+ unrecognizedObjectKeys: "passthrough",
69
+ allowUnrecognizedUnionMembers: true,
70
+ allowUnrecognizedEnumValues: true,
71
+ breadcrumbsPrefix: ["response"],
72
+ });
73
+ }
74
+ if (_response.error.reason === "status-code") {
75
+ throw new errors.VellumError({
76
+ statusCode: _response.error.statusCode,
77
+ body: _response.error.body,
78
+ });
79
+ }
80
+ switch (_response.error.reason) {
81
+ case "non-json":
82
+ throw new errors.VellumError({
83
+ statusCode: _response.error.statusCode,
84
+ body: _response.error.rawBody,
85
+ });
86
+ case "timeout":
87
+ throw new errors.VellumTimeoutError();
88
+ case "unknown":
89
+ throw new errors.VellumError({
90
+ message: _response.error.errorMessage,
91
+ });
92
+ }
93
+ });
94
+ }
51
95
  /**
52
96
  * Upserts a new scenario for a sandbox, keying off of the optionally provided scenario id.
53
97
  *
@@ -76,7 +120,7 @@ class Sandboxes {
76
120
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
77
121
  .default, `v1/sandboxes/${id}/scenarios`),
78
122
  method: "POST",
79
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
124
  contentType: "application/json",
81
125
  body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
82
126
  unrecognizedObjectKeys: "strip",
@@ -126,7 +170,7 @@ class Sandboxes {
126
170
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
127
171
  .default, `v1/sandboxes/${id}/scenarios/${scenarioId}`),
128
172
  method: "DELETE",
129
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.2", "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.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
130
174
  contentType: "application/json",
131
175
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
132
176
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1 +1,2 @@
1
+ export { DeploySandboxPromptRequest } from "./DeploySandboxPromptRequest";
1
2
  export { UpsertSandboxScenarioRequestRequest } from "./UpsertSandboxScenarioRequestRequest";