vellum-ai 0.1.7 → 0.1.8

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 (265) hide show
  1. package/Client.d.ts +0 -16
  2. package/Client.js +12 -137
  3. package/api/errors/ForbiddenError.d.ts +2 -1
  4. package/api/resources/deployments/client/Client.js +2 -2
  5. package/api/resources/documentIndexes/client/Client.js +2 -2
  6. package/api/resources/documents/client/Client.js +4 -4
  7. package/api/resources/modelVersions/client/Client.js +1 -1
  8. package/api/resources/registeredPrompts/client/Client.js +1 -1
  9. package/api/resources/sandboxes/client/Client.js +2 -2
  10. package/api/resources/testSuites/client/Client.d.ts +1 -1
  11. package/api/resources/testSuites/client/Client.js +5 -3
  12. package/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +10 -0
  13. package/api/resources/testSuites/client/requests/index.d.ts +1 -1
  14. package/api/types/{ErrorExecutePromptResponse.d.ts → CodeExecutionNodeChatHistoryResult.d.ts} +3 -3
  15. package/api/types/{StreamingExecutePromptStreamingResponse.d.ts → CodeExecutionNodeErrorResult.d.ts} +3 -2
  16. package/{dist/api/types/TestCaseJsonVariableValueRequest.d.ts → api/types/CodeExecutionNodeJsonResult.d.ts} +2 -2
  17. package/api/types/{TestCaseNumberVariableValueRequest.d.ts → CodeExecutionNodeNumberResult.d.ts} +2 -2
  18. package/api/types/{FulfilledExecutePromptStreamingResponse.d.ts → CodeExecutionNodeResult.d.ts} +2 -2
  19. package/{dist/api/types/FulfilledExecutePromptStreamingResponse.d.ts → api/types/CodeExecutionNodeResultData.d.ts} +2 -2
  20. package/api/types/CodeExecutionNodeResultOutput.d.ts +25 -0
  21. package/api/types/CodeExecutionNodeSearchResultsResult.d.ts +8 -0
  22. package/api/types/{TestCaseStringVariableValueRequest.d.ts → CodeExecutionNodeStringResult.d.ts} +2 -2
  23. package/api/types/{TestCaseChatHistoryVariableValueRequest.d.ts → NamedTestCaseChatHistoryVariableValueRequest.d.ts} +2 -2
  24. package/api/types/{TestCaseErrorVariableValueRequest.d.ts → NamedTestCaseErrorVariableValueRequest.d.ts} +2 -2
  25. package/api/types/{TestCaseJsonVariableValueRequest.d.ts → NamedTestCaseJsonVariableValueRequest.d.ts} +2 -2
  26. package/{dist/api/types/TestCaseNumberVariableValueRequest.d.ts → api/types/NamedTestCaseNumberVariableValueRequest.d.ts} +2 -2
  27. package/api/types/{TestCaseSearchResultsVariableValueRequest.d.ts → NamedTestCaseSearchResultsVariableValueRequest.d.ts} +2 -2
  28. package/{dist/api/types/TestCaseStringVariableValueRequest.d.ts → api/types/NamedTestCaseStringVariableValueRequest.d.ts} +2 -2
  29. package/api/types/NamedTestCaseVariableValueRequest.d.ts +25 -0
  30. package/api/types/WorkflowNodeResultData.d.ts +4 -1
  31. package/api/types/index.d.ts +16 -20
  32. package/api/types/index.js +16 -20
  33. package/dist/Client.d.ts +0 -16
  34. package/dist/Client.js +12 -137
  35. package/dist/api/errors/ForbiddenError.d.ts +2 -1
  36. package/dist/api/resources/deployments/client/Client.js +2 -2
  37. package/dist/api/resources/documentIndexes/client/Client.js +2 -2
  38. package/dist/api/resources/documents/client/Client.js +4 -4
  39. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  40. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  41. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  42. package/dist/api/resources/testSuites/client/Client.d.ts +1 -1
  43. package/dist/api/resources/testSuites/client/Client.js +5 -3
  44. package/dist/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +10 -0
  45. package/dist/api/resources/testSuites/client/requests/index.d.ts +1 -1
  46. package/dist/api/types/{ErrorExecutePromptResponse.d.ts → CodeExecutionNodeChatHistoryResult.d.ts} +3 -3
  47. package/dist/api/types/{StreamingExecutePromptStreamingResponse.d.ts → CodeExecutionNodeErrorResult.d.ts} +3 -2
  48. package/dist/api/types/CodeExecutionNodeJsonResult.d.ts +7 -0
  49. package/dist/api/types/CodeExecutionNodeNumberResult.d.ts +7 -0
  50. package/dist/api/types/CodeExecutionNodeResult.d.ts +7 -0
  51. package/dist/api/types/CodeExecutionNodeResultData.d.ts +7 -0
  52. package/dist/api/types/CodeExecutionNodeResultOutput.d.ts +25 -0
  53. package/dist/api/types/CodeExecutionNodeSearchResultsResult.d.ts +8 -0
  54. package/dist/api/types/CodeExecutionNodeStringResult.d.ts +7 -0
  55. package/dist/api/types/{TestCaseChatHistoryVariableValueRequest.d.ts → NamedTestCaseChatHistoryVariableValueRequest.d.ts} +2 -2
  56. package/dist/api/types/{TestCaseErrorVariableValueRequest.d.ts → NamedTestCaseErrorVariableValueRequest.d.ts} +2 -2
  57. package/dist/api/types/NamedTestCaseJsonVariableValueRequest.d.ts +7 -0
  58. package/dist/api/types/NamedTestCaseNumberVariableValueRequest.d.ts +7 -0
  59. package/dist/api/types/{TestCaseSearchResultsVariableValueRequest.d.ts → NamedTestCaseSearchResultsVariableValueRequest.d.ts} +2 -2
  60. package/dist/api/types/NamedTestCaseStringVariableValueRequest.d.ts +7 -0
  61. package/dist/api/types/NamedTestCaseVariableValueRequest.d.ts +25 -0
  62. package/dist/api/types/WorkflowNodeResultData.d.ts +4 -1
  63. package/dist/api/types/index.d.ts +16 -20
  64. package/dist/api/types/index.js +16 -20
  65. package/dist/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +15 -0
  66. package/dist/serialization/resources/testSuites/client/requests/{TestSuiteTestCaseRequest.js → UpsertTestSuiteTestCaseRequest.js} +5 -5
  67. package/dist/serialization/resources/testSuites/client/requests/index.d.ts +1 -1
  68. package/dist/serialization/resources/testSuites/client/requests/index.js +3 -3
  69. package/dist/serialization/types/CodeExecutionNodeChatHistoryResult.d.ts +13 -0
  70. package/dist/serialization/types/CodeExecutionNodeChatHistoryResult.js +45 -0
  71. package/dist/serialization/types/CodeExecutionNodeErrorResult.d.ts +13 -0
  72. package/{serialization/types/ErrorExecutePromptResponse.js → dist/serialization/types/CodeExecutionNodeErrorResult.js} +4 -4
  73. package/dist/serialization/types/CodeExecutionNodeJsonResult.d.ts +13 -0
  74. package/{serialization/types/TestCaseJsonVariableValueRequest.js → dist/serialization/types/CodeExecutionNodeJsonResult.js} +3 -3
  75. package/{serialization/types/InitiatedExecutePromptResponse.d.ts → dist/serialization/types/CodeExecutionNodeNumberResult.d.ts} +4 -4
  76. package/{serialization/types/ExecutePromptApiErrorResponse.js → dist/serialization/types/CodeExecutionNodeNumberResult.js} +4 -3
  77. package/dist/serialization/types/CodeExecutionNodeResult.d.ts +12 -0
  78. package/dist/serialization/types/{RejectedExecutePromptStreamingResponse.js → CodeExecutionNodeResult.js} +3 -3
  79. package/dist/serialization/types/CodeExecutionNodeResultData.d.ts +12 -0
  80. package/{serialization/types/StreamingExecutePromptStreamingResponse.js → dist/serialization/types/CodeExecutionNodeResultData.js} +3 -3
  81. package/dist/serialization/types/CodeExecutionNodeResultOutput.d.ts +28 -0
  82. package/{serialization/types/TestCaseVariableValueRequest.js → dist/serialization/types/CodeExecutionNodeResultOutput.js} +8 -8
  83. package/dist/serialization/types/CodeExecutionNodeSearchResultsResult.d.ts +13 -0
  84. package/dist/serialization/types/CodeExecutionNodeSearchResultsResult.js +45 -0
  85. package/dist/serialization/types/CodeExecutionNodeStringResult.d.ts +13 -0
  86. package/dist/serialization/types/{ExecutePromptApiErrorResponse.js → CodeExecutionNodeStringResult.js} +4 -3
  87. package/dist/serialization/types/NamedTestCaseChatHistoryVariableValueRequest.d.ts +13 -0
  88. package/dist/serialization/types/{TestCaseChatHistoryVariableValueRequest.js → NamedTestCaseChatHistoryVariableValueRequest.js} +3 -3
  89. package/dist/serialization/types/NamedTestCaseErrorVariableValueRequest.d.ts +13 -0
  90. package/dist/serialization/types/{TestCaseErrorVariableValueRequest.js → NamedTestCaseErrorVariableValueRequest.js} +3 -3
  91. package/dist/serialization/types/NamedTestCaseJsonVariableValueRequest.d.ts +13 -0
  92. package/dist/serialization/types/{TestCaseJsonVariableValueRequest.js → NamedTestCaseJsonVariableValueRequest.js} +3 -3
  93. package/dist/serialization/types/NamedTestCaseNumberVariableValueRequest.d.ts +13 -0
  94. package/{serialization/types/TestCaseNumberVariableValueRequest.js → dist/serialization/types/NamedTestCaseNumberVariableValueRequest.js} +3 -3
  95. package/dist/serialization/types/NamedTestCaseSearchResultsVariableValueRequest.d.ts +13 -0
  96. package/dist/serialization/types/{TestCaseSearchResultsVariableValueRequest.js → NamedTestCaseSearchResultsVariableValueRequest.js} +3 -3
  97. package/dist/serialization/types/NamedTestCaseStringVariableValueRequest.d.ts +13 -0
  98. package/{serialization/types/TestCaseStringVariableValueRequest.js → dist/serialization/types/NamedTestCaseStringVariableValueRequest.js} +3 -3
  99. package/dist/serialization/types/NamedTestCaseVariableValueRequest.d.ts +28 -0
  100. package/{serialization/types/ExecutePromptResponse.js → dist/serialization/types/NamedTestCaseVariableValueRequest.js} +8 -5
  101. package/dist/serialization/types/WorkflowNodeResultData.d.ts +4 -1
  102. package/dist/serialization/types/WorkflowNodeResultData.js +1 -0
  103. package/dist/serialization/types/index.d.ts +16 -20
  104. package/dist/serialization/types/index.js +16 -20
  105. package/package.json +1 -1
  106. package/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +15 -0
  107. package/serialization/resources/testSuites/client/requests/{TestSuiteTestCaseRequest.js → UpsertTestSuiteTestCaseRequest.js} +5 -5
  108. package/serialization/resources/testSuites/client/requests/index.d.ts +1 -1
  109. package/serialization/resources/testSuites/client/requests/index.js +3 -3
  110. package/serialization/types/CodeExecutionNodeChatHistoryResult.d.ts +13 -0
  111. package/serialization/types/CodeExecutionNodeChatHistoryResult.js +45 -0
  112. package/serialization/types/CodeExecutionNodeErrorResult.d.ts +13 -0
  113. package/{dist/serialization/types/ErrorExecutePromptResponse.js → serialization/types/CodeExecutionNodeErrorResult.js} +4 -4
  114. package/serialization/types/CodeExecutionNodeJsonResult.d.ts +13 -0
  115. package/{dist/serialization/types/JsonExecutePromptResponse.js → serialization/types/CodeExecutionNodeJsonResult.js} +4 -4
  116. package/{dist/serialization/types/InitiatedExecutePromptResponse.d.ts → serialization/types/CodeExecutionNodeNumberResult.d.ts} +4 -4
  117. package/{dist/serialization/types/TestCaseNumberVariableValueRequest.js → serialization/types/CodeExecutionNodeNumberResult.js} +3 -3
  118. package/serialization/types/CodeExecutionNodeResult.d.ts +12 -0
  119. package/serialization/types/{RejectedExecutePromptStreamingResponse.js → CodeExecutionNodeResult.js} +3 -3
  120. package/serialization/types/CodeExecutionNodeResultData.d.ts +12 -0
  121. package/serialization/types/{FulfilledExecutePromptStreamingResponse.js → CodeExecutionNodeResultData.js} +3 -3
  122. package/serialization/types/CodeExecutionNodeResultOutput.d.ts +28 -0
  123. package/{dist/serialization/types/TestCaseVariableValueRequest.js → serialization/types/CodeExecutionNodeResultOutput.js} +8 -8
  124. package/serialization/types/CodeExecutionNodeSearchResultsResult.d.ts +13 -0
  125. package/serialization/types/CodeExecutionNodeSearchResultsResult.js +45 -0
  126. package/serialization/types/CodeExecutionNodeStringResult.d.ts +13 -0
  127. package/{dist/serialization/types/TestCaseStringVariableValueRequest.js → serialization/types/CodeExecutionNodeStringResult.js} +3 -3
  128. package/serialization/types/NamedTestCaseChatHistoryVariableValueRequest.d.ts +13 -0
  129. package/serialization/types/{TestCaseChatHistoryVariableValueRequest.js → NamedTestCaseChatHistoryVariableValueRequest.js} +3 -3
  130. package/serialization/types/NamedTestCaseErrorVariableValueRequest.d.ts +13 -0
  131. package/serialization/types/{TestCaseErrorVariableValueRequest.js → NamedTestCaseErrorVariableValueRequest.js} +3 -3
  132. package/serialization/types/NamedTestCaseJsonVariableValueRequest.d.ts +13 -0
  133. package/serialization/types/{JsonExecutePromptResponse.js → NamedTestCaseJsonVariableValueRequest.js} +4 -4
  134. package/serialization/types/NamedTestCaseNumberVariableValueRequest.d.ts +13 -0
  135. package/serialization/types/NamedTestCaseNumberVariableValueRequest.js +34 -0
  136. package/serialization/types/NamedTestCaseSearchResultsVariableValueRequest.d.ts +13 -0
  137. package/serialization/types/{TestCaseSearchResultsVariableValueRequest.js → NamedTestCaseSearchResultsVariableValueRequest.js} +3 -3
  138. package/serialization/types/NamedTestCaseStringVariableValueRequest.d.ts +13 -0
  139. package/serialization/types/NamedTestCaseStringVariableValueRequest.js +34 -0
  140. package/serialization/types/NamedTestCaseVariableValueRequest.d.ts +28 -0
  141. package/{dist/serialization/types/ExecutePromptResponse.js → serialization/types/NamedTestCaseVariableValueRequest.js} +8 -5
  142. package/serialization/types/WorkflowNodeResultData.d.ts +4 -1
  143. package/serialization/types/WorkflowNodeResultData.js +1 -0
  144. package/serialization/types/index.d.ts +16 -20
  145. package/serialization/types/index.js +16 -20
  146. package/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +0 -10
  147. package/api/types/ExecutePromptApiErrorResponse.d.ts +0 -7
  148. package/api/types/ExecutePromptRequest.d.ts +0 -14
  149. package/api/types/ExecutePromptResponse.d.ts +0 -16
  150. package/api/types/ExecutePromptStreamingResponse.d.ts +0 -19
  151. package/api/types/InitiatedExecutePromptResponse.d.ts +0 -8
  152. package/api/types/InitiatedExecutePromptStreamingResponse.d.ts +0 -7
  153. package/api/types/JsonExecutePromptResponse.d.ts +0 -7
  154. package/api/types/RejectedExecutePromptResponse.d.ts +0 -9
  155. package/api/types/RejectedExecutePromptStreamingResponse.d.ts +0 -7
  156. package/api/types/StringExecutePromptResponse.d.ts +0 -7
  157. package/api/types/TestCaseVariableValueRequest.d.ts +0 -25
  158. package/dist/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +0 -10
  159. package/dist/api/types/ExecutePromptApiErrorResponse.d.ts +0 -7
  160. package/dist/api/types/ExecutePromptRequest.d.ts +0 -14
  161. package/dist/api/types/ExecutePromptResponse.d.ts +0 -16
  162. package/dist/api/types/ExecutePromptStreamingResponse.d.ts +0 -19
  163. package/dist/api/types/InitiatedExecutePromptResponse.d.ts +0 -8
  164. package/dist/api/types/InitiatedExecutePromptStreamingResponse.d.ts +0 -7
  165. package/dist/api/types/JsonExecutePromptResponse.d.ts +0 -7
  166. package/dist/api/types/RejectedExecutePromptResponse.d.ts +0 -9
  167. package/dist/api/types/RejectedExecutePromptStreamingResponse.d.ts +0 -7
  168. package/dist/api/types/StringExecutePromptResponse.d.ts +0 -7
  169. package/dist/api/types/StringExecutePromptResponse.js +0 -5
  170. package/dist/api/types/TestCaseChatHistoryVariableValueRequest.js +0 -5
  171. package/dist/api/types/TestCaseErrorVariableValueRequest.js +0 -5
  172. package/dist/api/types/TestCaseJsonVariableValueRequest.js +0 -5
  173. package/dist/api/types/TestCaseNumberVariableValueRequest.js +0 -5
  174. package/dist/api/types/TestCaseSearchResultsVariableValueRequest.js +0 -5
  175. package/dist/api/types/TestCaseStringVariableValueRequest.js +0 -5
  176. package/dist/api/types/TestCaseVariableValueRequest.d.ts +0 -25
  177. package/dist/api/types/TestCaseVariableValueRequest.js +0 -5
  178. package/dist/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +0 -15
  179. package/dist/serialization/types/ErrorExecutePromptResponse.d.ts +0 -13
  180. package/dist/serialization/types/ExecutePromptApiErrorResponse.d.ts +0 -12
  181. package/dist/serialization/types/ExecutePromptRequest.d.ts +0 -16
  182. package/dist/serialization/types/ExecutePromptRequest.js +0 -46
  183. package/dist/serialization/types/ExecutePromptResponse.d.ts +0 -19
  184. package/dist/serialization/types/ExecutePromptStreamingResponse.d.ts +0 -22
  185. package/dist/serialization/types/ExecutePromptStreamingResponse.js +0 -50
  186. package/dist/serialization/types/FulfilledExecutePromptStreamingResponse.d.ts +0 -12
  187. package/dist/serialization/types/FulfilledExecutePromptStreamingResponse.js +0 -42
  188. package/dist/serialization/types/InitiatedExecutePromptResponse.js +0 -43
  189. package/dist/serialization/types/InitiatedExecutePromptStreamingResponse.d.ts +0 -12
  190. package/dist/serialization/types/InitiatedExecutePromptStreamingResponse.js +0 -42
  191. package/dist/serialization/types/JsonExecutePromptResponse.d.ts +0 -13
  192. package/dist/serialization/types/RejectedExecutePromptResponse.d.ts +0 -14
  193. package/dist/serialization/types/RejectedExecutePromptResponse.js +0 -44
  194. package/dist/serialization/types/RejectedExecutePromptStreamingResponse.d.ts +0 -12
  195. package/dist/serialization/types/StreamingExecutePromptStreamingResponse.d.ts +0 -12
  196. package/dist/serialization/types/StreamingExecutePromptStreamingResponse.js +0 -42
  197. package/dist/serialization/types/StringExecutePromptResponse.d.ts +0 -13
  198. package/dist/serialization/types/StringExecutePromptResponse.js +0 -34
  199. package/dist/serialization/types/TestCaseChatHistoryVariableValueRequest.d.ts +0 -13
  200. package/dist/serialization/types/TestCaseErrorVariableValueRequest.d.ts +0 -13
  201. package/dist/serialization/types/TestCaseJsonVariableValueRequest.d.ts +0 -13
  202. package/dist/serialization/types/TestCaseNumberVariableValueRequest.d.ts +0 -13
  203. package/dist/serialization/types/TestCaseSearchResultsVariableValueRequest.d.ts +0 -13
  204. package/dist/serialization/types/TestCaseStringVariableValueRequest.d.ts +0 -13
  205. package/dist/serialization/types/TestCaseVariableValueRequest.d.ts +0 -28
  206. package/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +0 -15
  207. package/serialization/types/ErrorExecutePromptResponse.d.ts +0 -13
  208. package/serialization/types/ExecutePromptApiErrorResponse.d.ts +0 -12
  209. package/serialization/types/ExecutePromptRequest.d.ts +0 -16
  210. package/serialization/types/ExecutePromptRequest.js +0 -46
  211. package/serialization/types/ExecutePromptResponse.d.ts +0 -19
  212. package/serialization/types/ExecutePromptStreamingResponse.d.ts +0 -22
  213. package/serialization/types/ExecutePromptStreamingResponse.js +0 -50
  214. package/serialization/types/FulfilledExecutePromptStreamingResponse.d.ts +0 -12
  215. package/serialization/types/InitiatedExecutePromptResponse.js +0 -43
  216. package/serialization/types/InitiatedExecutePromptStreamingResponse.d.ts +0 -12
  217. package/serialization/types/InitiatedExecutePromptStreamingResponse.js +0 -42
  218. package/serialization/types/JsonExecutePromptResponse.d.ts +0 -13
  219. package/serialization/types/RejectedExecutePromptResponse.d.ts +0 -14
  220. package/serialization/types/RejectedExecutePromptResponse.js +0 -44
  221. package/serialization/types/RejectedExecutePromptStreamingResponse.d.ts +0 -12
  222. package/serialization/types/StreamingExecutePromptStreamingResponse.d.ts +0 -12
  223. package/serialization/types/StringExecutePromptResponse.d.ts +0 -13
  224. package/serialization/types/StringExecutePromptResponse.js +0 -34
  225. package/serialization/types/TestCaseChatHistoryVariableValueRequest.d.ts +0 -13
  226. package/serialization/types/TestCaseErrorVariableValueRequest.d.ts +0 -13
  227. package/serialization/types/TestCaseJsonVariableValueRequest.d.ts +0 -13
  228. package/serialization/types/TestCaseNumberVariableValueRequest.d.ts +0 -13
  229. package/serialization/types/TestCaseSearchResultsVariableValueRequest.d.ts +0 -13
  230. package/serialization/types/TestCaseStringVariableValueRequest.d.ts +0 -13
  231. package/serialization/types/TestCaseVariableValueRequest.d.ts +0 -28
  232. /package/api/resources/testSuites/client/requests/{TestSuiteTestCaseRequest.js → UpsertTestSuiteTestCaseRequest.js} +0 -0
  233. /package/api/types/{ErrorExecutePromptResponse.js → CodeExecutionNodeChatHistoryResult.js} +0 -0
  234. /package/api/types/{ExecutePromptApiErrorResponse.js → CodeExecutionNodeErrorResult.js} +0 -0
  235. /package/api/types/{ExecutePromptRequest.js → CodeExecutionNodeJsonResult.js} +0 -0
  236. /package/api/types/{ExecutePromptResponse.js → CodeExecutionNodeNumberResult.js} +0 -0
  237. /package/api/types/{ExecutePromptStreamingResponse.js → CodeExecutionNodeResult.js} +0 -0
  238. /package/api/types/{FulfilledExecutePromptStreamingResponse.js → CodeExecutionNodeResultData.js} +0 -0
  239. /package/api/types/{InitiatedExecutePromptResponse.js → CodeExecutionNodeResultOutput.js} +0 -0
  240. /package/api/types/{InitiatedExecutePromptStreamingResponse.js → CodeExecutionNodeSearchResultsResult.js} +0 -0
  241. /package/api/types/{JsonExecutePromptResponse.js → CodeExecutionNodeStringResult.js} +0 -0
  242. /package/api/types/{RejectedExecutePromptResponse.js → NamedTestCaseChatHistoryVariableValueRequest.js} +0 -0
  243. /package/api/types/{RejectedExecutePromptStreamingResponse.js → NamedTestCaseErrorVariableValueRequest.js} +0 -0
  244. /package/api/types/{StreamingExecutePromptStreamingResponse.js → NamedTestCaseJsonVariableValueRequest.js} +0 -0
  245. /package/api/types/{StringExecutePromptResponse.js → NamedTestCaseNumberVariableValueRequest.js} +0 -0
  246. /package/api/types/{TestCaseChatHistoryVariableValueRequest.js → NamedTestCaseSearchResultsVariableValueRequest.js} +0 -0
  247. /package/api/types/{TestCaseErrorVariableValueRequest.js → NamedTestCaseStringVariableValueRequest.js} +0 -0
  248. /package/api/types/{TestCaseJsonVariableValueRequest.js → NamedTestCaseVariableValueRequest.js} +0 -0
  249. /package/{api/types/TestCaseNumberVariableValueRequest.js → dist/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.js} +0 -0
  250. /package/{api/types/TestCaseSearchResultsVariableValueRequest.js → dist/api/types/CodeExecutionNodeChatHistoryResult.js} +0 -0
  251. /package/{api/types/TestCaseStringVariableValueRequest.js → dist/api/types/CodeExecutionNodeErrorResult.js} +0 -0
  252. /package/{api/types/TestCaseVariableValueRequest.js → dist/api/types/CodeExecutionNodeJsonResult.js} +0 -0
  253. /package/dist/api/{resources/testSuites/client/requests/TestSuiteTestCaseRequest.js → types/CodeExecutionNodeNumberResult.js} +0 -0
  254. /package/dist/api/types/{ErrorExecutePromptResponse.js → CodeExecutionNodeResult.js} +0 -0
  255. /package/dist/api/types/{ExecutePromptApiErrorResponse.js → CodeExecutionNodeResultData.js} +0 -0
  256. /package/dist/api/types/{ExecutePromptRequest.js → CodeExecutionNodeResultOutput.js} +0 -0
  257. /package/dist/api/types/{ExecutePromptResponse.js → CodeExecutionNodeSearchResultsResult.js} +0 -0
  258. /package/dist/api/types/{ExecutePromptStreamingResponse.js → CodeExecutionNodeStringResult.js} +0 -0
  259. /package/dist/api/types/{FulfilledExecutePromptStreamingResponse.js → NamedTestCaseChatHistoryVariableValueRequest.js} +0 -0
  260. /package/dist/api/types/{InitiatedExecutePromptResponse.js → NamedTestCaseErrorVariableValueRequest.js} +0 -0
  261. /package/dist/api/types/{InitiatedExecutePromptStreamingResponse.js → NamedTestCaseJsonVariableValueRequest.js} +0 -0
  262. /package/dist/api/types/{JsonExecutePromptResponse.js → NamedTestCaseNumberVariableValueRequest.js} +0 -0
  263. /package/dist/api/types/{RejectedExecutePromptResponse.js → NamedTestCaseSearchResultsVariableValueRequest.js} +0 -0
  264. /package/dist/api/types/{RejectedExecutePromptStreamingResponse.js → NamedTestCaseStringVariableValueRequest.js} +0 -0
  265. /package/dist/api/types/{StreamingExecutePromptStreamingResponse.js → NamedTestCaseVariableValueRequest.js} +0 -0
package/Client.d.ts CHANGED
@@ -24,22 +24,6 @@ export declare namespace VellumClient {
24
24
  export declare class VellumClient {
25
25
  protected readonly _options: VellumClient.Options;
26
26
  constructor(_options: VellumClient.Options);
27
- /**
28
- * Executes a deployed Prompt and returns the result.
29
- * @throws {@link Vellum.BadRequestError}
30
- * @throws {@link Vellum.ForbiddenError}
31
- * @throws {@link Vellum.NotFoundError}
32
- * @throws {@link Vellum.InternalServerError}
33
- */
34
- executePrompt(request: Vellum.ExecutePromptRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecutePromptResponse>;
35
- /**
36
- * Executes a deployed Prompt and streams back the results.
37
- * @throws {@link Vellum.BadRequestError}
38
- * @throws {@link Vellum.ForbiddenError}
39
- * @throws {@link Vellum.NotFoundError}
40
- * @throws {@link Vellum.InternalServerError}
41
- */
42
- executePromptStream(request: Vellum.ExecutePromptRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecutePromptStreamingResponse>;
43
27
  /**
44
28
  * Executes a deployed Workflow and streams back its results.
45
29
  */
package/Client.js CHANGED
@@ -56,136 +56,6 @@ class VellumClient {
56
56
  constructor(_options) {
57
57
  this._options = _options;
58
58
  }
59
- /**
60
- * Executes a deployed Prompt and returns the result.
61
- * @throws {@link Vellum.BadRequestError}
62
- * @throws {@link Vellum.ForbiddenError}
63
- * @throws {@link Vellum.NotFoundError}
64
- * @throws {@link Vellum.InternalServerError}
65
- */
66
- executePrompt(request, requestOptions) {
67
- var _a;
68
- return __awaiter(this, void 0, void 0, function* () {
69
- const _response = yield core.fetcher({
70
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
71
- .default, "v1/execute-prompt"),
72
- method: "POST",
73
- headers: {
74
- X_API_KEY: yield core.Supplier.get(this._options.apiKey),
75
- "X-Fern-Language": "JavaScript",
76
- "X-Fern-SDK-Name": "vellum-ai",
77
- "X-Fern-SDK-Version": "0.1.7",
78
- },
79
- contentType: "application/json",
80
- body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
81
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
82
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
- });
84
- if (_response.ok) {
85
- return yield serializers.ExecutePromptResponse.parseOrThrow(_response.body, {
86
- unrecognizedObjectKeys: "passthrough",
87
- allowUnrecognizedUnionMembers: true,
88
- allowUnrecognizedEnumValues: true,
89
- breadcrumbsPrefix: ["response"],
90
- });
91
- }
92
- if (_response.error.reason === "status-code") {
93
- switch (_response.error.statusCode) {
94
- case 400:
95
- throw new Vellum.BadRequestError(_response.error.body);
96
- case 403:
97
- throw new Vellum.ForbiddenError(_response.error.body);
98
- case 404:
99
- throw new Vellum.NotFoundError(_response.error.body);
100
- case 500:
101
- throw new Vellum.InternalServerError(_response.error.body);
102
- default:
103
- throw new errors.VellumError({
104
- statusCode: _response.error.statusCode,
105
- body: _response.error.body,
106
- });
107
- }
108
- }
109
- switch (_response.error.reason) {
110
- case "non-json":
111
- throw new errors.VellumError({
112
- statusCode: _response.error.statusCode,
113
- body: _response.error.rawBody,
114
- });
115
- case "timeout":
116
- throw new errors.VellumTimeoutError();
117
- case "unknown":
118
- throw new errors.VellumError({
119
- message: _response.error.errorMessage,
120
- });
121
- }
122
- });
123
- }
124
- /**
125
- * Executes a deployed Prompt and streams back the results.
126
- * @throws {@link Vellum.BadRequestError}
127
- * @throws {@link Vellum.ForbiddenError}
128
- * @throws {@link Vellum.NotFoundError}
129
- * @throws {@link Vellum.InternalServerError}
130
- */
131
- executePromptStream(request, requestOptions) {
132
- var _a;
133
- return __awaiter(this, void 0, void 0, function* () {
134
- const _response = yield core.fetcher({
135
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
136
- .default, "v1/execute-prompt-stream"),
137
- method: "POST",
138
- headers: {
139
- X_API_KEY: yield core.Supplier.get(this._options.apiKey),
140
- "X-Fern-Language": "JavaScript",
141
- "X-Fern-SDK-Name": "vellum-ai",
142
- "X-Fern-SDK-Version": "0.1.7",
143
- },
144
- contentType: "application/json",
145
- body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
146
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
147
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
148
- });
149
- if (_response.ok) {
150
- return yield serializers.ExecutePromptStreamingResponse.parseOrThrow(_response.body, {
151
- unrecognizedObjectKeys: "passthrough",
152
- allowUnrecognizedUnionMembers: true,
153
- allowUnrecognizedEnumValues: true,
154
- breadcrumbsPrefix: ["response"],
155
- });
156
- }
157
- if (_response.error.reason === "status-code") {
158
- switch (_response.error.statusCode) {
159
- case 400:
160
- throw new Vellum.BadRequestError(_response.error.body);
161
- case 403:
162
- throw new Vellum.ForbiddenError(_response.error.body);
163
- case 404:
164
- throw new Vellum.NotFoundError(_response.error.body);
165
- case 500:
166
- throw new Vellum.InternalServerError(_response.error.body);
167
- default:
168
- throw new errors.VellumError({
169
- statusCode: _response.error.statusCode,
170
- body: _response.error.body,
171
- });
172
- }
173
- }
174
- switch (_response.error.reason) {
175
- case "non-json":
176
- throw new errors.VellumError({
177
- statusCode: _response.error.statusCode,
178
- body: _response.error.rawBody,
179
- });
180
- case "timeout":
181
- throw new errors.VellumTimeoutError();
182
- case "unknown":
183
- throw new errors.VellumError({
184
- message: _response.error.errorMessage,
185
- });
186
- }
187
- });
188
- }
189
59
  /**
190
60
  * Executes a deployed Workflow and streams back its results.
191
61
  */
@@ -200,7 +70,7 @@ class VellumClient {
200
70
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
201
71
  "X-Fern-Language": "JavaScript",
202
72
  "X-Fern-SDK-Name": "vellum-ai",
203
- "X-Fern-SDK-Version": "0.1.7",
73
+ "X-Fern-SDK-Version": "0.1.8",
204
74
  },
205
75
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
206
76
  unrecognizedObjectKeys: "strip",
@@ -241,7 +111,7 @@ class VellumClient {
241
111
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
242
112
  "X-Fern-Language": "JavaScript",
243
113
  "X-Fern-SDK-Name": "vellum-ai",
244
- "X-Fern-SDK-Version": "0.1.7",
114
+ "X-Fern-SDK-Version": "0.1.8",
245
115
  },
246
116
  contentType: "application/json",
247
117
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -261,7 +131,12 @@ class VellumClient {
261
131
  case 400:
262
132
  throw new Vellum.BadRequestError(_response.error.body);
263
133
  case 403:
264
- throw new Vellum.ForbiddenError(_response.error.body);
134
+ throw new Vellum.ForbiddenError(yield serializers.GenerateErrorResponse.parseOrThrow(_response.error.body, {
135
+ unrecognizedObjectKeys: "passthrough",
136
+ allowUnrecognizedUnionMembers: true,
137
+ allowUnrecognizedEnumValues: true,
138
+ breadcrumbsPrefix: ["response"],
139
+ }));
265
140
  case 404:
266
141
  throw new Vellum.NotFoundError(_response.error.body);
267
142
  case 500:
@@ -304,7 +179,7 @@ class VellumClient {
304
179
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
305
180
  "X-Fern-Language": "JavaScript",
306
181
  "X-Fern-SDK-Name": "vellum-ai",
307
- "X-Fern-SDK-Version": "0.1.7",
182
+ "X-Fern-SDK-Version": "0.1.8",
308
183
  },
309
184
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
310
185
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -342,7 +217,7 @@ class VellumClient {
342
217
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
343
218
  "X-Fern-Language": "JavaScript",
344
219
  "X-Fern-SDK-Name": "vellum-ai",
345
- "X-Fern-SDK-Version": "0.1.7",
220
+ "X-Fern-SDK-Version": "0.1.8",
346
221
  },
347
222
  contentType: "application/json",
348
223
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -406,7 +281,7 @@ class VellumClient {
406
281
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
407
282
  "X-Fern-Language": "JavaScript",
408
283
  "X-Fern-SDK-Name": "vellum-ai",
409
- "X-Fern-SDK-Version": "0.1.7",
284
+ "X-Fern-SDK-Version": "0.1.8",
410
285
  },
411
286
  contentType: "application/json",
412
287
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
@@ -464,7 +339,7 @@ class VellumClient {
464
339
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
465
340
  "X-Fern-Language": "JavaScript",
466
341
  "X-Fern-SDK-Name": "vellum-ai",
467
- "X-Fern-SDK-Version": "0.1.7",
342
+ "X-Fern-SDK-Version": "0.1.8",
468
343
  },
469
344
  contentType: "application/json",
470
345
  body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as errors from "../../errors";
5
+ import * as Vellum from "..";
5
6
  export declare class ForbiddenError extends errors.VellumError {
6
- constructor(body?: unknown);
7
+ constructor(body: Vellum.GenerateErrorResponse);
7
8
  }
@@ -62,7 +62,7 @@ class Deployments {
62
62
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "vellum-ai",
65
- "X-Fern-SDK-Version": "0.1.7",
65
+ "X-Fern-SDK-Version": "0.1.8",
66
66
  },
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -108,7 +108,7 @@ class Deployments {
108
108
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
109
109
  "X-Fern-Language": "JavaScript",
110
110
  "X-Fern-SDK-Name": "vellum-ai",
111
- "X-Fern-SDK-Version": "0.1.7",
111
+ "X-Fern-SDK-Version": "0.1.8",
112
112
  },
113
113
  contentType: "application/json",
114
114
  body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
@@ -62,7 +62,7 @@ class DocumentIndexes {
62
62
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "vellum-ai",
65
- "X-Fern-SDK-Version": "0.1.7",
65
+ "X-Fern-SDK-Version": "0.1.8",
66
66
  },
67
67
  contentType: "application/json",
68
68
  body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
@@ -114,7 +114,7 @@ class DocumentIndexes {
114
114
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
115
115
  "X-Fern-Language": "JavaScript",
116
116
  "X-Fern-SDK-Name": "vellum-ai",
117
- "X-Fern-SDK-Version": "0.1.7",
117
+ "X-Fern-SDK-Version": "0.1.8",
118
118
  },
119
119
  contentType: "application/json",
120
120
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -78,7 +78,7 @@ class Documents {
78
78
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "vellum-ai",
81
- "X-Fern-SDK-Version": "0.1.7",
81
+ "X-Fern-SDK-Version": "0.1.8",
82
82
  },
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
@@ -125,7 +125,7 @@ class Documents {
125
125
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
126
126
  "X-Fern-Language": "JavaScript",
127
127
  "X-Fern-SDK-Name": "vellum-ai",
128
- "X-Fern-SDK-Version": "0.1.7",
128
+ "X-Fern-SDK-Version": "0.1.8",
129
129
  },
130
130
  contentType: "application/json",
131
131
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -169,7 +169,7 @@ class Documents {
169
169
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
170
170
  "X-Fern-Language": "JavaScript",
171
171
  "X-Fern-SDK-Name": "vellum-ai",
172
- "X-Fern-SDK-Version": "0.1.7",
172
+ "X-Fern-SDK-Version": "0.1.8",
173
173
  },
174
174
  contentType: "application/json",
175
175
  body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
@@ -245,7 +245,7 @@ class Documents {
245
245
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
246
246
  "X-Fern-Language": "JavaScript",
247
247
  "X-Fern-SDK-Name": "vellum-ai",
248
- "X-Fern-SDK-Version": "0.1.7",
248
+ "X-Fern-SDK-Version": "0.1.8",
249
249
  "Content-Length": (yield core.getFormDataContentLength(_request)).toString(),
250
250
  },
251
251
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
@@ -62,7 +62,7 @@ class ModelVersions {
62
62
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "vellum-ai",
65
- "X-Fern-SDK-Version": "0.1.7",
65
+ "X-Fern-SDK-Version": "0.1.8",
66
66
  },
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -69,7 +69,7 @@ class RegisteredPrompts {
69
69
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
70
70
  "X-Fern-Language": "JavaScript",
71
71
  "X-Fern-SDK-Name": "vellum-ai",
72
- "X-Fern-SDK-Version": "0.1.7",
72
+ "X-Fern-SDK-Version": "0.1.8",
73
73
  },
74
74
  contentType: "application/json",
75
75
  body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
@@ -68,7 +68,7 @@ class Sandboxes {
68
68
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "vellum-ai",
71
- "X-Fern-SDK-Version": "0.1.7",
71
+ "X-Fern-SDK-Version": "0.1.8",
72
72
  },
73
73
  contentType: "application/json",
74
74
  body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
@@ -120,7 +120,7 @@ class Sandboxes {
120
120
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
121
121
  "X-Fern-Language": "JavaScript",
122
122
  "X-Fern-SDK-Name": "vellum-ai",
123
- "X-Fern-SDK-Version": "0.1.7",
123
+ "X-Fern-SDK-Version": "0.1.8",
124
124
  },
125
125
  contentType: "application/json",
126
126
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -26,7 +26,7 @@ export declare class TestSuites {
26
26
  * Note that a full replacement of the test case is performed, so any fields not provided will be removed
27
27
  * or overwritten with default values.
28
28
  */
29
- upsertTestSuiteTestCase(id: string, request: Vellum.TestSuiteTestCaseRequest, requestOptions?: TestSuites.RequestOptions): Promise<Vellum.TestSuiteTestCase>;
29
+ upsertTestSuiteTestCase(id: string, request: Vellum.UpsertTestSuiteTestCaseRequest, requestOptions?: TestSuites.RequestOptions): Promise<Vellum.TestSuiteTestCase>;
30
30
  /**
31
31
  * Deletes an existing test case for a test suite, keying off of the test case id.
32
32
  *
@@ -68,10 +68,12 @@ class TestSuites {
68
68
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "vellum-ai",
71
- "X-Fern-SDK-Version": "0.1.7",
71
+ "X-Fern-SDK-Version": "0.1.8",
72
72
  },
73
73
  contentType: "application/json",
74
- body: yield serializers.TestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
74
+ body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
75
+ unrecognizedObjectKeys: "strip",
76
+ }),
75
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
76
78
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
77
79
  });
@@ -119,7 +121,7 @@ class TestSuites {
119
121
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
120
122
  "X-Fern-Language": "JavaScript",
121
123
  "X-Fern-SDK-Name": "vellum-ai",
122
- "X-Fern-SDK-Version": "0.1.7",
124
+ "X-Fern-SDK-Version": "0.1.8",
123
125
  },
124
126
  contentType: "application/json",
125
127
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../../../..";
5
+ export interface UpsertTestSuiteTestCaseRequest {
6
+ upsertTestSuiteTestCaseRequestId?: string;
7
+ label?: string;
8
+ inputValues: Vellum.NamedTestCaseVariableValueRequest[];
9
+ evaluationValues: Vellum.NamedTestCaseVariableValueRequest[];
10
+ }
@@ -1 +1 @@
1
- export { TestSuiteTestCaseRequest } from "./TestSuiteTestCaseRequest";
1
+ export { UpsertTestSuiteTestCaseRequest } from "./UpsertTestSuiteTestCaseRequest";
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export interface ErrorExecutePromptResponse {
6
- executionId: string;
7
- value: Vellum.VellumError;
5
+ export interface CodeExecutionNodeChatHistoryResult {
6
+ id: string;
7
+ value?: Vellum.ChatMessage[];
8
8
  }
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export interface StreamingExecutePromptStreamingResponse {
6
- data: Vellum.ExecutePromptResponse;
5
+ export interface CodeExecutionNodeErrorResult {
6
+ id: string;
7
+ value?: Vellum.VellumError;
7
8
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface TestCaseJsonVariableValueRequest {
5
- variableId: string;
4
+ export interface CodeExecutionNodeJsonResult {
5
+ id: string;
6
6
  value?: Record<string, unknown>;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface TestCaseNumberVariableValueRequest {
5
- variableId: string;
4
+ export interface CodeExecutionNodeNumberResult {
5
+ id: string;
6
6
  value?: number;
7
7
  }
@@ -2,6 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export interface FulfilledExecutePromptStreamingResponse {
6
- data: Vellum.ExecutePromptResponse;
5
+ export interface CodeExecutionNodeResult {
6
+ data: Vellum.CodeExecutionNodeResultData;
7
7
  }
@@ -2,6 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export interface FulfilledExecutePromptStreamingResponse {
6
- data: Vellum.ExecutePromptResponse;
5
+ export interface CodeExecutionNodeResultData {
6
+ output: Vellum.CodeExecutionNodeResultOutput;
7
7
  }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export declare type CodeExecutionNodeResultOutput = Vellum.CodeExecutionNodeResultOutput.String | Vellum.CodeExecutionNodeResultOutput.Number | Vellum.CodeExecutionNodeResultOutput.Json | Vellum.CodeExecutionNodeResultOutput.ChatHistory | Vellum.CodeExecutionNodeResultOutput.SearchResults | Vellum.CodeExecutionNodeResultOutput.Error_;
6
+ export declare namespace CodeExecutionNodeResultOutput {
7
+ interface String extends Vellum.CodeExecutionNodeStringResult {
8
+ type: "STRING";
9
+ }
10
+ interface Number extends Vellum.CodeExecutionNodeNumberResult {
11
+ type: "NUMBER";
12
+ }
13
+ interface Json extends Vellum.CodeExecutionNodeJsonResult {
14
+ type: "JSON";
15
+ }
16
+ interface ChatHistory extends Vellum.CodeExecutionNodeChatHistoryResult {
17
+ type: "CHAT_HISTORY";
18
+ }
19
+ interface SearchResults extends Vellum.CodeExecutionNodeSearchResultsResult {
20
+ type: "SEARCH_RESULTS";
21
+ }
22
+ interface Error_ extends Vellum.CodeExecutionNodeErrorResult {
23
+ type: "ERROR";
24
+ }
25
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface CodeExecutionNodeSearchResultsResult {
6
+ id: string;
7
+ value?: Vellum.SearchResult[];
8
+ }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface TestCaseStringVariableValueRequest {
5
- variableId: string;
4
+ export interface CodeExecutionNodeStringResult {
5
+ id: string;
6
6
  value?: string;
7
7
  }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export interface TestCaseChatHistoryVariableValueRequest {
6
- variableId: string;
5
+ export interface NamedTestCaseChatHistoryVariableValueRequest {
6
+ name: string;
7
7
  value?: Vellum.ChatMessageRequest[];
8
8
  }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export interface TestCaseErrorVariableValueRequest {
6
- variableId: string;
5
+ export interface NamedTestCaseErrorVariableValueRequest {
6
+ name: string;
7
7
  value?: Vellum.VellumErrorRequest;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface TestCaseJsonVariableValueRequest {
5
- variableId: string;
4
+ export interface NamedTestCaseJsonVariableValueRequest {
5
+ name: string;
6
6
  value?: Record<string, unknown>;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface TestCaseNumberVariableValueRequest {
5
- variableId: string;
4
+ export interface NamedTestCaseNumberVariableValueRequest {
5
+ name: string;
6
6
  value?: number;
7
7
  }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export interface TestCaseSearchResultsVariableValueRequest {
6
- variableId: string;
5
+ export interface NamedTestCaseSearchResultsVariableValueRequest {
6
+ name: string;
7
7
  value?: Vellum.SearchResultRequest[];
8
8
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface TestCaseStringVariableValueRequest {
5
- variableId: string;
4
+ export interface NamedTestCaseStringVariableValueRequest {
5
+ name: string;
6
6
  value?: string;
7
7
  }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export declare type NamedTestCaseVariableValueRequest = Vellum.NamedTestCaseVariableValueRequest.String | Vellum.NamedTestCaseVariableValueRequest.Number | Vellum.NamedTestCaseVariableValueRequest.Json | Vellum.NamedTestCaseVariableValueRequest.ChatHistory | Vellum.NamedTestCaseVariableValueRequest.SearchResults | Vellum.NamedTestCaseVariableValueRequest.Error_;
6
+ export declare namespace NamedTestCaseVariableValueRequest {
7
+ interface String extends Vellum.NamedTestCaseStringVariableValueRequest {
8
+ type: "STRING";
9
+ }
10
+ interface Number extends Vellum.NamedTestCaseNumberVariableValueRequest {
11
+ type: "NUMBER";
12
+ }
13
+ interface Json extends Vellum.NamedTestCaseJsonVariableValueRequest {
14
+ type: "JSON";
15
+ }
16
+ interface ChatHistory extends Vellum.NamedTestCaseChatHistoryVariableValueRequest {
17
+ type: "CHAT_HISTORY";
18
+ }
19
+ interface SearchResults extends Vellum.NamedTestCaseSearchResultsVariableValueRequest {
20
+ type: "SEARCH_RESULTS";
21
+ }
22
+ interface Error_ extends Vellum.NamedTestCaseErrorVariableValueRequest {
23
+ type: "ERROR";
24
+ }
25
+ }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export declare type WorkflowNodeResultData = Vellum.WorkflowNodeResultData.Prompt | Vellum.WorkflowNodeResultData.Search | Vellum.WorkflowNodeResultData.Templating | Vellum.WorkflowNodeResultData.Conditional | Vellum.WorkflowNodeResultData.Api | Vellum.WorkflowNodeResultData.Terminal;
5
+ export declare type WorkflowNodeResultData = Vellum.WorkflowNodeResultData.Prompt | Vellum.WorkflowNodeResultData.Search | Vellum.WorkflowNodeResultData.Templating | Vellum.WorkflowNodeResultData.CodeExecution | Vellum.WorkflowNodeResultData.Conditional | Vellum.WorkflowNodeResultData.Api | Vellum.WorkflowNodeResultData.Terminal;
6
6
  export declare namespace WorkflowNodeResultData {
7
7
  interface Prompt extends Vellum.PromptNodeResult {
8
8
  type: "PROMPT";
@@ -13,6 +13,9 @@ export declare namespace WorkflowNodeResultData {
13
13
  interface Templating extends Vellum.TemplatingNodeResult {
14
14
  type: "TEMPLATING";
15
15
  }
16
+ interface CodeExecution extends Vellum.CodeExecutionNodeResult {
17
+ type: "CODE_EXECUTION";
18
+ }
16
19
  interface Conditional extends Vellum.ConditionalNodeResult {
17
20
  type: "CONDITIONAL";
18
21
  }