vellum-ai 0.8.16 → 0.8.17

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 (322) hide show
  1. package/.mock/definition/__package__.yml +297 -5
  2. package/.mock/definition/metricDefinitions.yml +49 -0
  3. package/.mock/definition/testSuites.yml +4 -4
  4. package/.mock/openapi/openapi.yml +470 -12
  5. package/Client.d.ts +28 -0
  6. package/Client.js +97 -19
  7. package/api/client/requests/CodeExecutorRequest.d.ts +28 -0
  8. package/api/client/requests/CodeExecutorRequest.js +5 -0
  9. package/api/client/requests/index.d.ts +1 -0
  10. package/api/resources/adHoc/client/Client.js +1 -1
  11. package/api/resources/deployments/client/Client.js +5 -5
  12. package/api/resources/documentIndexes/client/Client.js +8 -8
  13. package/api/resources/documents/client/Client.js +5 -5
  14. package/api/resources/folderEntities/client/Client.js +1 -1
  15. package/api/resources/index.d.ts +2 -0
  16. package/api/resources/index.js +3 -1
  17. package/api/resources/metricDefinitions/client/Client.d.ts +44 -0
  18. package/api/resources/metricDefinitions/client/Client.js +118 -0
  19. package/api/resources/metricDefinitions/client/index.d.ts +1 -0
  20. package/api/resources/metricDefinitions/client/index.js +17 -0
  21. package/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +18 -0
  22. package/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js +5 -0
  23. package/api/resources/metricDefinitions/client/requests/index.d.ts +1 -0
  24. package/api/resources/metricDefinitions/client/requests/index.js +2 -0
  25. package/api/resources/metricDefinitions/index.d.ts +1 -0
  26. package/api/resources/metricDefinitions/index.js +17 -0
  27. package/api/resources/sandboxes/client/Client.js +3 -3
  28. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  29. package/api/resources/testSuites/client/Client.d.ts +3 -3
  30. package/api/resources/testSuites/client/Client.js +7 -7
  31. package/api/resources/workflowDeployments/client/Client.js +4 -4
  32. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  33. package/api/types/ArrayInputRequest.d.ts +13 -0
  34. package/api/types/ArrayInputRequest.js +5 -0
  35. package/api/types/CodeExecutionPackageRequest.d.ts +7 -0
  36. package/api/types/CodeExecutionPackageRequest.js +5 -0
  37. package/api/types/CodeExecutionRuntime.d.ts +12 -0
  38. package/api/types/CodeExecutionRuntime.js +10 -0
  39. package/api/types/CodeExecutorInputRequest.d.ts +5 -0
  40. package/api/types/CodeExecutorInputRequest.js +5 -0
  41. package/api/types/CodeExecutorResponse.d.ts +8 -0
  42. package/api/types/CodeExecutorResponse.js +5 -0
  43. package/api/types/ConditionCombinator.d.ts +12 -0
  44. package/api/types/ConditionCombinator.js +10 -0
  45. package/api/types/ErrorInputRequest.d.ts +13 -0
  46. package/api/types/ErrorInputRequest.js +5 -0
  47. package/api/types/FunctionCallInputRequest.d.ts +13 -0
  48. package/api/types/FunctionCallInputRequest.js +5 -0
  49. package/api/types/GoogleVertexAiVectorizerConfig.d.ts +7 -0
  50. package/api/types/GoogleVertexAiVectorizerConfig.js +5 -0
  51. package/api/types/GoogleVertexAiVectorizerConfigRequest.d.ts +7 -0
  52. package/api/types/GoogleVertexAiVectorizerConfigRequest.js +5 -0
  53. package/api/types/GoogleVertexAiVectorizerTextEmbedding004.d.ts +8 -0
  54. package/api/types/GoogleVertexAiVectorizerTextEmbedding004.js +5 -0
  55. package/api/types/GoogleVertexAiVectorizerTextEmbedding004Request.d.ts +8 -0
  56. package/api/types/GoogleVertexAiVectorizerTextEmbedding004Request.js +5 -0
  57. package/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.d.ts +8 -0
  58. package/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.js +5 -0
  59. package/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.d.ts +8 -0
  60. package/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.js +5 -0
  61. package/api/types/IndexingConfigVectorizer.d.ts +1 -1
  62. package/api/types/IndexingConfigVectorizerRequest.d.ts +1 -1
  63. package/api/types/JsonInputRequest.d.ts +1 -1
  64. package/api/types/LogicalOperator.d.ts +5 -1
  65. package/api/types/LogicalOperator.js +2 -0
  66. package/api/types/MetadataFilterConfigRequest.d.ts +3 -0
  67. package/api/types/MetadataFiltersRequest.d.ts +5 -0
  68. package/api/types/MetadataFiltersRequest.js +5 -0
  69. package/api/types/MetricDefinitionExecution.d.ts +7 -0
  70. package/api/types/MetricDefinitionExecution.js +5 -0
  71. package/api/types/MetricDefinitionInputRequest.d.ts +5 -0
  72. package/api/types/MetricDefinitionInputRequest.js +5 -0
  73. package/api/types/NumberInputRequest.d.ts +12 -0
  74. package/api/types/NumberInputRequest.js +5 -0
  75. package/api/types/SearchFiltersRequest.d.ts +1 -1
  76. package/api/types/SearchResultsInputRequest.d.ts +13 -0
  77. package/api/types/SearchResultsInputRequest.js +5 -0
  78. package/api/types/StringInputRequest.d.ts +1 -1
  79. package/api/types/VellumValue.d.ts +5 -0
  80. package/api/types/VellumValue.js +5 -0
  81. package/api/types/VellumValueLogicalConditionGroupRequest.d.ts +13 -0
  82. package/api/types/VellumValueLogicalConditionGroupRequest.js +5 -0
  83. package/api/types/VellumValueLogicalConditionRequest.d.ts +13 -0
  84. package/api/types/VellumValueLogicalConditionRequest.js +5 -0
  85. package/api/types/VellumValueLogicalExpressionRequest.d.ts +5 -0
  86. package/api/types/VellumValueLogicalExpressionRequest.js +5 -0
  87. package/api/types/VellumValueRequest.d.ts +5 -0
  88. package/api/types/VellumValueRequest.js +5 -0
  89. package/api/types/index.d.ts +24 -0
  90. package/api/types/index.js +24 -0
  91. package/dist/Client.d.ts +28 -0
  92. package/dist/Client.js +97 -19
  93. package/dist/api/client/requests/CodeExecutorRequest.d.ts +28 -0
  94. package/dist/api/client/requests/CodeExecutorRequest.js +5 -0
  95. package/dist/api/client/requests/index.d.ts +1 -0
  96. package/dist/api/resources/adHoc/client/Client.js +1 -1
  97. package/dist/api/resources/deployments/client/Client.js +5 -5
  98. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  99. package/dist/api/resources/documents/client/Client.js +5 -5
  100. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  101. package/dist/api/resources/index.d.ts +2 -0
  102. package/dist/api/resources/index.js +3 -1
  103. package/dist/api/resources/metricDefinitions/client/Client.d.ts +44 -0
  104. package/dist/api/resources/metricDefinitions/client/Client.js +118 -0
  105. package/dist/api/resources/metricDefinitions/client/index.d.ts +1 -0
  106. package/dist/api/resources/metricDefinitions/client/index.js +17 -0
  107. package/dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +18 -0
  108. package/dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js +5 -0
  109. package/dist/api/resources/metricDefinitions/client/requests/index.d.ts +1 -0
  110. package/dist/api/resources/metricDefinitions/client/requests/index.js +2 -0
  111. package/dist/api/resources/metricDefinitions/index.d.ts +1 -0
  112. package/dist/api/resources/metricDefinitions/index.js +17 -0
  113. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  114. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  115. package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
  116. package/dist/api/resources/testSuites/client/Client.js +7 -7
  117. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  118. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  119. package/dist/api/types/ArrayInputRequest.d.ts +13 -0
  120. package/dist/api/types/ArrayInputRequest.js +5 -0
  121. package/dist/api/types/CodeExecutionPackageRequest.d.ts +7 -0
  122. package/dist/api/types/CodeExecutionPackageRequest.js +5 -0
  123. package/dist/api/types/CodeExecutionRuntime.d.ts +12 -0
  124. package/dist/api/types/CodeExecutionRuntime.js +10 -0
  125. package/dist/api/types/CodeExecutorInputRequest.d.ts +5 -0
  126. package/dist/api/types/CodeExecutorInputRequest.js +5 -0
  127. package/dist/api/types/CodeExecutorResponse.d.ts +8 -0
  128. package/dist/api/types/CodeExecutorResponse.js +5 -0
  129. package/dist/api/types/ConditionCombinator.d.ts +12 -0
  130. package/dist/api/types/ConditionCombinator.js +10 -0
  131. package/dist/api/types/ErrorInputRequest.d.ts +13 -0
  132. package/dist/api/types/ErrorInputRequest.js +5 -0
  133. package/dist/api/types/FunctionCallInputRequest.d.ts +13 -0
  134. package/dist/api/types/FunctionCallInputRequest.js +5 -0
  135. package/dist/api/types/GoogleVertexAiVectorizerConfig.d.ts +7 -0
  136. package/dist/api/types/GoogleVertexAiVectorizerConfig.js +5 -0
  137. package/dist/api/types/GoogleVertexAiVectorizerConfigRequest.d.ts +7 -0
  138. package/dist/api/types/GoogleVertexAiVectorizerConfigRequest.js +5 -0
  139. package/dist/api/types/GoogleVertexAiVectorizerTextEmbedding004.d.ts +8 -0
  140. package/dist/api/types/GoogleVertexAiVectorizerTextEmbedding004.js +5 -0
  141. package/dist/api/types/GoogleVertexAiVectorizerTextEmbedding004Request.d.ts +8 -0
  142. package/dist/api/types/GoogleVertexAiVectorizerTextEmbedding004Request.js +5 -0
  143. package/dist/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.d.ts +8 -0
  144. package/dist/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.js +5 -0
  145. package/dist/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.d.ts +8 -0
  146. package/dist/api/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.js +5 -0
  147. package/dist/api/types/IndexingConfigVectorizer.d.ts +1 -1
  148. package/dist/api/types/IndexingConfigVectorizerRequest.d.ts +1 -1
  149. package/dist/api/types/JsonInputRequest.d.ts +1 -1
  150. package/dist/api/types/LogicalOperator.d.ts +5 -1
  151. package/dist/api/types/LogicalOperator.js +2 -0
  152. package/dist/api/types/MetadataFilterConfigRequest.d.ts +3 -0
  153. package/dist/api/types/MetadataFiltersRequest.d.ts +5 -0
  154. package/dist/api/types/MetadataFiltersRequest.js +5 -0
  155. package/dist/api/types/MetricDefinitionExecution.d.ts +7 -0
  156. package/dist/api/types/MetricDefinitionExecution.js +5 -0
  157. package/dist/api/types/MetricDefinitionInputRequest.d.ts +5 -0
  158. package/dist/api/types/MetricDefinitionInputRequest.js +5 -0
  159. package/dist/api/types/NumberInputRequest.d.ts +12 -0
  160. package/dist/api/types/NumberInputRequest.js +5 -0
  161. package/dist/api/types/SearchFiltersRequest.d.ts +1 -1
  162. package/dist/api/types/SearchResultsInputRequest.d.ts +13 -0
  163. package/dist/api/types/SearchResultsInputRequest.js +5 -0
  164. package/dist/api/types/StringInputRequest.d.ts +1 -1
  165. package/dist/api/types/VellumValue.d.ts +5 -0
  166. package/dist/api/types/VellumValue.js +5 -0
  167. package/dist/api/types/VellumValueLogicalConditionGroupRequest.d.ts +13 -0
  168. package/dist/api/types/VellumValueLogicalConditionGroupRequest.js +5 -0
  169. package/dist/api/types/VellumValueLogicalConditionRequest.d.ts +13 -0
  170. package/dist/api/types/VellumValueLogicalConditionRequest.js +5 -0
  171. package/dist/api/types/VellumValueLogicalExpressionRequest.d.ts +5 -0
  172. package/dist/api/types/VellumValueLogicalExpressionRequest.js +5 -0
  173. package/dist/api/types/VellumValueRequest.d.ts +5 -0
  174. package/dist/api/types/VellumValueRequest.js +5 -0
  175. package/dist/api/types/index.d.ts +24 -0
  176. package/dist/api/types/index.js +24 -0
  177. package/dist/serialization/client/requests/CodeExecutorRequest.d.ts +20 -0
  178. package/dist/serialization/client/requests/CodeExecutorRequest.js +41 -0
  179. package/dist/serialization/client/requests/index.d.ts +1 -0
  180. package/dist/serialization/client/requests/index.js +3 -1
  181. package/dist/serialization/resources/index.d.ts +2 -0
  182. package/dist/serialization/resources/index.js +3 -1
  183. package/dist/serialization/resources/metricDefinitions/client/index.d.ts +1 -0
  184. package/dist/serialization/resources/metricDefinitions/client/index.js +17 -0
  185. package/dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +14 -0
  186. package/dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js +35 -0
  187. package/dist/serialization/resources/metricDefinitions/client/requests/index.d.ts +1 -0
  188. package/dist/serialization/resources/metricDefinitions/client/requests/index.js +5 -0
  189. package/dist/serialization/resources/metricDefinitions/index.d.ts +1 -0
  190. package/dist/serialization/resources/metricDefinitions/index.js +17 -0
  191. package/dist/serialization/types/ArrayInputRequest.d.ts +14 -0
  192. package/dist/serialization/types/ArrayInputRequest.js +36 -0
  193. package/dist/serialization/types/CodeExecutionPackageRequest.d.ts +13 -0
  194. package/dist/serialization/types/CodeExecutionPackageRequest.js +34 -0
  195. package/dist/serialization/types/CodeExecutionRuntime.d.ts +10 -0
  196. package/dist/serialization/types/CodeExecutionRuntime.js +31 -0
  197. package/dist/serialization/types/CodeExecutorInputRequest.d.ts +18 -0
  198. package/dist/serialization/types/CodeExecutorInputRequest.js +48 -0
  199. package/dist/serialization/types/CodeExecutorResponse.d.ts +14 -0
  200. package/dist/serialization/types/CodeExecutorResponse.js +35 -0
  201. package/dist/serialization/types/ConditionCombinator.d.ts +10 -0
  202. package/dist/serialization/types/ConditionCombinator.js +31 -0
  203. package/dist/serialization/types/ErrorInputRequest.d.ts +15 -0
  204. package/dist/serialization/types/ErrorInputRequest.js +36 -0
  205. package/dist/serialization/types/FunctionCallInputRequest.d.ts +15 -0
  206. package/dist/serialization/types/FunctionCallInputRequest.js +36 -0
  207. package/dist/serialization/types/GoogleVertexAiVectorizerConfig.d.ts +13 -0
  208. package/dist/serialization/types/GoogleVertexAiVectorizerConfig.js +34 -0
  209. package/dist/serialization/types/GoogleVertexAiVectorizerConfigRequest.d.ts +13 -0
  210. package/dist/serialization/types/GoogleVertexAiVectorizerConfigRequest.js +34 -0
  211. package/dist/serialization/types/GoogleVertexAiVectorizerTextEmbedding004.d.ts +14 -0
  212. package/dist/serialization/types/GoogleVertexAiVectorizerTextEmbedding004.js +35 -0
  213. package/dist/serialization/types/GoogleVertexAiVectorizerTextEmbedding004Request.d.ts +14 -0
  214. package/dist/serialization/types/GoogleVertexAiVectorizerTextEmbedding004Request.js +35 -0
  215. package/dist/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.d.ts +14 -0
  216. package/dist/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.js +35 -0
  217. package/dist/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.d.ts +14 -0
  218. package/dist/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.js +35 -0
  219. package/dist/serialization/types/IndexingConfigVectorizer.d.ts +3 -1
  220. package/dist/serialization/types/IndexingConfigVectorizer.js +4 -0
  221. package/dist/serialization/types/IndexingConfigVectorizerRequest.d.ts +3 -1
  222. package/dist/serialization/types/IndexingConfigVectorizerRequest.js +4 -0
  223. package/dist/serialization/types/LogicalOperator.d.ts +1 -1
  224. package/dist/serialization/types/LogicalOperator.js +2 -0
  225. package/dist/serialization/types/MetadataFiltersRequest.d.ts +11 -0
  226. package/dist/serialization/types/MetadataFiltersRequest.js +36 -0
  227. package/dist/serialization/types/MetricDefinitionExecution.d.ts +13 -0
  228. package/dist/serialization/types/MetricDefinitionExecution.js +34 -0
  229. package/dist/serialization/types/MetricDefinitionInputRequest.d.ts +14 -0
  230. package/dist/serialization/types/MetricDefinitionInputRequest.js +40 -0
  231. package/dist/serialization/types/NumberInputRequest.d.ts +14 -0
  232. package/dist/serialization/types/NumberInputRequest.js +35 -0
  233. package/dist/serialization/types/SearchFiltersRequest.d.ts +2 -2
  234. package/dist/serialization/types/SearchFiltersRequest.js +2 -2
  235. package/dist/serialization/types/SearchResultsInputRequest.d.ts +15 -0
  236. package/dist/serialization/types/SearchResultsInputRequest.js +36 -0
  237. package/dist/serialization/types/VellumValue.d.ts +18 -0
  238. package/dist/serialization/types/VellumValue.js +50 -0
  239. package/dist/serialization/types/VellumValueLogicalConditionGroupRequest.d.ts +16 -0
  240. package/dist/serialization/types/VellumValueLogicalConditionGroupRequest.js +38 -0
  241. package/dist/serialization/types/VellumValueLogicalConditionRequest.d.ts +17 -0
  242. package/dist/serialization/types/VellumValueLogicalConditionRequest.js +38 -0
  243. package/dist/serialization/types/VellumValueLogicalExpressionRequest.d.ts +11 -0
  244. package/dist/serialization/types/VellumValueLogicalExpressionRequest.js +36 -0
  245. package/dist/serialization/types/VellumValueRequest.d.ts +18 -0
  246. package/dist/serialization/types/VellumValueRequest.js +50 -0
  247. package/dist/serialization/types/index.d.ts +24 -0
  248. package/dist/serialization/types/index.js +24 -0
  249. package/package.json +1 -1
  250. package/reference.md +85 -4
  251. package/serialization/client/requests/CodeExecutorRequest.d.ts +20 -0
  252. package/serialization/client/requests/CodeExecutorRequest.js +41 -0
  253. package/serialization/client/requests/index.d.ts +1 -0
  254. package/serialization/client/requests/index.js +3 -1
  255. package/serialization/resources/index.d.ts +2 -0
  256. package/serialization/resources/index.js +3 -1
  257. package/serialization/resources/metricDefinitions/client/index.d.ts +1 -0
  258. package/serialization/resources/metricDefinitions/client/index.js +17 -0
  259. package/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +14 -0
  260. package/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js +35 -0
  261. package/serialization/resources/metricDefinitions/client/requests/index.d.ts +1 -0
  262. package/serialization/resources/metricDefinitions/client/requests/index.js +5 -0
  263. package/serialization/resources/metricDefinitions/index.d.ts +1 -0
  264. package/serialization/resources/metricDefinitions/index.js +17 -0
  265. package/serialization/types/ArrayInputRequest.d.ts +14 -0
  266. package/serialization/types/ArrayInputRequest.js +36 -0
  267. package/serialization/types/CodeExecutionPackageRequest.d.ts +13 -0
  268. package/serialization/types/CodeExecutionPackageRequest.js +34 -0
  269. package/serialization/types/CodeExecutionRuntime.d.ts +10 -0
  270. package/serialization/types/CodeExecutionRuntime.js +31 -0
  271. package/serialization/types/CodeExecutorInputRequest.d.ts +18 -0
  272. package/serialization/types/CodeExecutorInputRequest.js +48 -0
  273. package/serialization/types/CodeExecutorResponse.d.ts +14 -0
  274. package/serialization/types/CodeExecutorResponse.js +35 -0
  275. package/serialization/types/ConditionCombinator.d.ts +10 -0
  276. package/serialization/types/ConditionCombinator.js +31 -0
  277. package/serialization/types/ErrorInputRequest.d.ts +15 -0
  278. package/serialization/types/ErrorInputRequest.js +36 -0
  279. package/serialization/types/FunctionCallInputRequest.d.ts +15 -0
  280. package/serialization/types/FunctionCallInputRequest.js +36 -0
  281. package/serialization/types/GoogleVertexAiVectorizerConfig.d.ts +13 -0
  282. package/serialization/types/GoogleVertexAiVectorizerConfig.js +34 -0
  283. package/serialization/types/GoogleVertexAiVectorizerConfigRequest.d.ts +13 -0
  284. package/serialization/types/GoogleVertexAiVectorizerConfigRequest.js +34 -0
  285. package/serialization/types/GoogleVertexAiVectorizerTextEmbedding004.d.ts +14 -0
  286. package/serialization/types/GoogleVertexAiVectorizerTextEmbedding004.js +35 -0
  287. package/serialization/types/GoogleVertexAiVectorizerTextEmbedding004Request.d.ts +14 -0
  288. package/serialization/types/GoogleVertexAiVectorizerTextEmbedding004Request.js +35 -0
  289. package/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.d.ts +14 -0
  290. package/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002.js +35 -0
  291. package/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.d.ts +14 -0
  292. package/serialization/types/GoogleVertexAiVectorizerTextMultilingualEmbedding002Request.js +35 -0
  293. package/serialization/types/IndexingConfigVectorizer.d.ts +3 -1
  294. package/serialization/types/IndexingConfigVectorizer.js +4 -0
  295. package/serialization/types/IndexingConfigVectorizerRequest.d.ts +3 -1
  296. package/serialization/types/IndexingConfigVectorizerRequest.js +4 -0
  297. package/serialization/types/LogicalOperator.d.ts +1 -1
  298. package/serialization/types/LogicalOperator.js +2 -0
  299. package/serialization/types/MetadataFiltersRequest.d.ts +11 -0
  300. package/serialization/types/MetadataFiltersRequest.js +36 -0
  301. package/serialization/types/MetricDefinitionExecution.d.ts +13 -0
  302. package/serialization/types/MetricDefinitionExecution.js +34 -0
  303. package/serialization/types/MetricDefinitionInputRequest.d.ts +14 -0
  304. package/serialization/types/MetricDefinitionInputRequest.js +40 -0
  305. package/serialization/types/NumberInputRequest.d.ts +14 -0
  306. package/serialization/types/NumberInputRequest.js +35 -0
  307. package/serialization/types/SearchFiltersRequest.d.ts +2 -2
  308. package/serialization/types/SearchFiltersRequest.js +2 -2
  309. package/serialization/types/SearchResultsInputRequest.d.ts +15 -0
  310. package/serialization/types/SearchResultsInputRequest.js +36 -0
  311. package/serialization/types/VellumValue.d.ts +18 -0
  312. package/serialization/types/VellumValue.js +50 -0
  313. package/serialization/types/VellumValueLogicalConditionGroupRequest.d.ts +16 -0
  314. package/serialization/types/VellumValueLogicalConditionGroupRequest.js +38 -0
  315. package/serialization/types/VellumValueLogicalConditionRequest.d.ts +17 -0
  316. package/serialization/types/VellumValueLogicalConditionRequest.js +38 -0
  317. package/serialization/types/VellumValueLogicalExpressionRequest.d.ts +11 -0
  318. package/serialization/types/VellumValueLogicalExpressionRequest.js +36 -0
  319. package/serialization/types/VellumValueRequest.d.ts +18 -0
  320. package/serialization/types/VellumValueRequest.js +50 -0
  321. package/serialization/types/index.d.ts +24 -0
  322. package/serialization/types/index.js +24 -0
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.MetricDefinitions = void 0;
42
+ const environments = __importStar(require("../../../../environments"));
43
+ const core = __importStar(require("../../../../core"));
44
+ const serializers = __importStar(require("../../../../serialization/index"));
45
+ const url_join_1 = __importDefault(require("url-join"));
46
+ const errors = __importStar(require("../../../../errors/index"));
47
+ class MetricDefinitions {
48
+ constructor(_options) {
49
+ this._options = _options;
50
+ }
51
+ /**
52
+ * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
53
+ *
54
+ * @param {string} id - Either the Metric Definition's ID or its unique name
55
+ * @param {Vellum.ExecuteMetricDefinitionRequest} request
56
+ * @param {MetricDefinitions.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @example
59
+ * await client.metricDefinitions.executeMetricDefinition("id", {
60
+ * inputs: [{
61
+ * name: "name",
62
+ * type: "STRING",
63
+ * value: "value"
64
+ * }]
65
+ * })
66
+ */
67
+ executeMetricDefinition(id, request, requestOptions) {
68
+ var _a;
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const _response = yield core.fetcher({
71
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
72
+ .default, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
73
+ method: "POST",
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
+ contentType: "application/json",
76
+ requestType: "json",
77
+ body: serializers.ExecuteMetricDefinitionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
78
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
79
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
80
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
81
+ });
82
+ if (_response.ok) {
83
+ return serializers.MetricDefinitionExecution.parseOrThrow(_response.body, {
84
+ unrecognizedObjectKeys: "passthrough",
85
+ allowUnrecognizedUnionMembers: true,
86
+ allowUnrecognizedEnumValues: true,
87
+ breadcrumbsPrefix: ["response"],
88
+ });
89
+ }
90
+ if (_response.error.reason === "status-code") {
91
+ throw new errors.VellumError({
92
+ statusCode: _response.error.statusCode,
93
+ body: _response.error.body,
94
+ });
95
+ }
96
+ switch (_response.error.reason) {
97
+ case "non-json":
98
+ throw new errors.VellumError({
99
+ statusCode: _response.error.statusCode,
100
+ body: _response.error.rawBody,
101
+ });
102
+ case "timeout":
103
+ throw new errors.VellumTimeoutError();
104
+ case "unknown":
105
+ throw new errors.VellumError({
106
+ message: _response.error.errorMessage,
107
+ });
108
+ }
109
+ });
110
+ }
111
+ _getCustomAuthorizationHeaders() {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
114
+ return { X_API_KEY: apiKeyValue };
115
+ });
116
+ }
117
+ }
118
+ exports.MetricDefinitions = MetricDefinitions;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * inputs: [{
9
+ * name: "name",
10
+ * type: "STRING",
11
+ * value: "value"
12
+ * }]
13
+ * }
14
+ */
15
+ export interface ExecuteMetricDefinitionRequest {
16
+ inputs: Vellum.MetricDefinitionInputRequest[];
17
+ releaseTag?: string;
18
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type ExecuteMetricDefinitionRequest } from "./ExecuteMetricDefinitionRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -64,7 +64,7 @@ class Sandboxes {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
66
66
  method: "POST",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -151,7 +151,7 @@ class Sandboxes {
151
151
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
152
152
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
153
153
  method: "POST",
154
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
154
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
155
155
  contentType: "application/json",
156
156
  requestType: "json",
157
157
  body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -205,7 +205,7 @@ class Sandboxes {
205
205
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
206
206
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
207
207
  method: "DELETE",
208
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
209
209
  contentType: "application/json",
210
210
  requestType: "json",
211
211
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -72,7 +72,7 @@ class TestSuiteRuns {
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
  .default, "v1/test-suite-runs"),
74
74
  method: "POST",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "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.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -125,7 +125,7 @@ class TestSuiteRuns {
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/test-suite-runs/${encodeURIComponent(id)}`),
127
127
  method: "GET",
128
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "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.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
129
  contentType: "application/json",
130
130
  requestType: "json",
131
131
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -192,7 +192,7 @@ class TestSuiteRuns {
192
192
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
193
193
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
194
194
  method: "GET",
195
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
195
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
196
196
  contentType: "application/json",
197
197
  queryParameters: _queryParams,
198
198
  requestType: "json",
@@ -24,7 +24,7 @@ export declare class TestSuites {
24
24
  /**
25
25
  * List the Test Cases associated with a Test Suite
26
26
  *
27
- * @param {string} id - A UUID string identifying this test suite.
27
+ * @param {string} id - Either the Test Suites' ID or its unique name
28
28
  * @param {Vellum.ListTestSuiteTestCasesRequest} request
29
29
  * @param {TestSuites.RequestOptions} requestOptions - Request-specific configuration.
30
30
  *
@@ -41,7 +41,7 @@ export declare class TestSuites {
41
41
  * Note that a full replacement of the test case is performed, so any fields not provided will be removed
42
42
  * or overwritten with default values.
43
43
  *
44
- * @param {string} id - A UUID string identifying this test suite.
44
+ * @param {string} id - Either the Test Suites' ID or its unique name
45
45
  * @param {Vellum.UpsertTestSuiteTestCaseRequest} request
46
46
  * @param {TestSuites.RequestOptions} requestOptions - Request-specific configuration.
47
47
  *
@@ -65,7 +65,7 @@ export declare class TestSuites {
65
65
  /**
66
66
  * Deletes an existing test case for a test suite, keying off of the test case id.
67
67
  *
68
- * @param {string} id - A UUID string identifying this test suite.
68
+ * @param {string} id - Either the Test Suites' ID or its unique name
69
69
  * @param {string} testCaseId - An id identifying the test case that you'd like to delete
70
70
  * @param {TestSuites.RequestOptions} requestOptions - Request-specific configuration.
71
71
  *
@@ -51,7 +51,7 @@ class TestSuites {
51
51
  /**
52
52
  * List the Test Cases associated with a Test Suite
53
53
  *
54
- * @param {string} id - A UUID string identifying this test suite.
54
+ * @param {string} id - Either the Test Suites' ID or its unique name
55
55
  * @param {Vellum.ListTestSuiteTestCasesRequest} request
56
56
  * @param {TestSuites.RequestOptions} requestOptions - Request-specific configuration.
57
57
  *
@@ -73,7 +73,7 @@ class TestSuites {
73
73
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
74
74
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
75
75
  method: "GET",
76
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
79
79
  requestType: "json",
@@ -119,7 +119,7 @@ class TestSuites {
119
119
  * Note that a full replacement of the test case is performed, so any fields not provided will be removed
120
120
  * or overwritten with default values.
121
121
  *
122
- * @param {string} id - A UUID string identifying this test suite.
122
+ * @param {string} id - Either the Test Suites' ID or its unique name
123
123
  * @param {Vellum.UpsertTestSuiteTestCaseRequest} request
124
124
  * @param {TestSuites.RequestOptions} requestOptions - Request-specific configuration.
125
125
  *
@@ -142,7 +142,7 @@ class TestSuites {
142
142
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
143
143
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
144
144
  method: "POST",
145
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
145
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -189,7 +189,7 @@ class TestSuites {
189
189
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
190
190
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
191
191
  method: "POST",
192
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
192
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
193
193
  contentType: "application/json",
194
194
  requestType: "json",
195
195
  body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
@@ -242,7 +242,7 @@ class TestSuites {
242
242
  /**
243
243
  * Deletes an existing test case for a test suite, keying off of the test case id.
244
244
  *
245
- * @param {string} id - A UUID string identifying this test suite.
245
+ * @param {string} id - Either the Test Suites' ID or its unique name
246
246
  * @param {string} testCaseId - An id identifying the test case that you'd like to delete
247
247
  * @param {TestSuites.RequestOptions} requestOptions - Request-specific configuration.
248
248
  *
@@ -256,7 +256,7 @@ class TestSuites {
256
256
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
257
257
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
258
258
  method: "DELETE",
259
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
259
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
260
260
  contentType: "application/json",
261
261
  requestType: "json",
262
262
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -78,7 +78,7 @@ class WorkflowDeployments {
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/workflow-deployments"),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "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.8.17", "User-Agent": "vellum-ai/0.8.17", "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
  requestType: "json",
@@ -131,7 +131,7 @@ class WorkflowDeployments {
131
131
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
132
132
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
133
133
  method: "GET",
134
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
135
  contentType: "application/json",
136
136
  requestType: "json",
137
137
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -184,7 +184,7 @@ class WorkflowDeployments {
184
184
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
185
185
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
186
186
  method: "GET",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
188
  contentType: "application/json",
189
189
  requestType: "json",
190
190
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -238,7 +238,7 @@ class WorkflowDeployments {
238
238
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
239
239
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
240
240
  method: "PATCH",
241
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
241
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
242
242
  contentType: "application/json",
243
243
  requestType: "json",
244
244
  body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -64,7 +64,7 @@ class WorkflowSandboxes {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
66
66
  method: "POST",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.16", "User-Agent": "vellum-ai/0.8.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.17", "User-Agent": "vellum-ai/0.8.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A user input representing a Vellum Array value
7
+ */
8
+ export interface ArrayInputRequest {
9
+ /** The variable's name */
10
+ name: string;
11
+ type: "ARRAY";
12
+ value: Vellum.ArrayVellumValueItemRequest[];
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CodeExecutionPackageRequest {
5
+ version: string;
6
+ name: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * - `PYTHON_3_11_6` - PYTHON_3_11_6
6
+ * - `TYPESCRIPT_5_3_3` - TYPESCRIPT_5_3_3
7
+ */
8
+ export declare type CodeExecutionRuntime = "PYTHON_3_11_6" | "TYPESCRIPT_5_3_3";
9
+ export declare const CodeExecutionRuntime: {
10
+ readonly Python3116: "PYTHON_3_11_6";
11
+ readonly Typescript533: "TYPESCRIPT_5_3_3";
12
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CodeExecutionRuntime = void 0;
7
+ exports.CodeExecutionRuntime = {
8
+ Python3116: "PYTHON_3_11_6",
9
+ Typescript533: "TYPESCRIPT_5_3_3",
10
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export declare type CodeExecutorInputRequest = Vellum.StringInputRequest | Vellum.JsonInputRequest | Vellum.ChatHistoryInputRequest | Vellum.NumberInputRequest | Vellum.SearchResultsInputRequest | Vellum.ErrorInputRequest | Vellum.ArrayInputRequest | Vellum.FunctionCallInputRequest;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface CodeExecutorResponse {
6
+ log: string;
7
+ output: Vellum.VellumValue;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * - `OR` - OR
6
+ * - `AND` - AND
7
+ */
8
+ export declare type ConditionCombinator = "OR" | "AND";
9
+ export declare const ConditionCombinator: {
10
+ readonly Or: "OR";
11
+ readonly And: "AND";
12
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ConditionCombinator = void 0;
7
+ exports.ConditionCombinator = {
8
+ Or: "OR",
9
+ And: "AND",
10
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A user input representing a Vellum Error value
7
+ */
8
+ export interface ErrorInputRequest {
9
+ /** The variable's name */
10
+ name: string;
11
+ type: "ERROR";
12
+ value: Vellum.VellumErrorRequest;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A user input representing a Vellum Function Call value
7
+ */
8
+ export interface FunctionCallInputRequest {
9
+ /** The variable's name */
10
+ name: string;
11
+ type: "FUNCTION_CALL";
12
+ value: Vellum.FunctionCallRequest;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface GoogleVertexAiVectorizerConfig {
5
+ projectId: string;
6
+ region: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface GoogleVertexAiVectorizerConfigRequest {
5
+ projectId: string;
6
+ region: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface GoogleVertexAiVectorizerTextEmbedding004 {
6
+ modelName: "text-embedding-004";
7
+ config: Vellum.GoogleVertexAiVectorizerConfig;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface GoogleVertexAiVectorizerTextEmbedding004Request {
6
+ modelName: "text-embedding-004";
7
+ config: Vellum.GoogleVertexAiVectorizerConfigRequest;
8
+ }