vellum-ai 0.8.15 → 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
package/dist/Client.js CHANGED
@@ -50,15 +50,89 @@ const Client_2 = require("./api/resources/deployments/client/Client");
50
50
  const Client_3 = require("./api/resources/documentIndexes/client/Client");
51
51
  const Client_4 = require("./api/resources/documents/client/Client");
52
52
  const Client_5 = require("./api/resources/folderEntities/client/Client");
53
- const Client_6 = require("./api/resources/sandboxes/client/Client");
54
- const Client_7 = require("./api/resources/testSuiteRuns/client/Client");
55
- const Client_8 = require("./api/resources/testSuites/client/Client");
56
- const Client_9 = require("./api/resources/workflowDeployments/client/Client");
57
- const Client_10 = require("./api/resources/workflowSandboxes/client/Client");
53
+ const Client_6 = require("./api/resources/metricDefinitions/client/Client");
54
+ const Client_7 = require("./api/resources/sandboxes/client/Client");
55
+ const Client_8 = require("./api/resources/testSuiteRuns/client/Client");
56
+ const Client_9 = require("./api/resources/testSuites/client/Client");
57
+ const Client_10 = require("./api/resources/workflowDeployments/client/Client");
58
+ const Client_11 = require("./api/resources/workflowSandboxes/client/Client");
58
59
  class VellumClient {
59
60
  constructor(_options) {
60
61
  this._options = _options;
61
62
  }
63
+ /**
64
+ * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
65
+ *
66
+ * @param {Vellum.CodeExecutorRequest} request
67
+ * @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link Vellum.BadRequestError}
70
+ *
71
+ * @example
72
+ * await client.executeCode({
73
+ * code: "code",
74
+ * runtime: Vellum.CodeExecutionRuntime.Python3116,
75
+ * inputValues: [{
76
+ * name: "name",
77
+ * type: "STRING",
78
+ * value: "value"
79
+ * }],
80
+ * packages: [{
81
+ * version: "version",
82
+ * name: "name"
83
+ * }],
84
+ * outputType: Vellum.VellumVariableType.String
85
+ * })
86
+ */
87
+ executeCode(request, requestOptions) {
88
+ var _a;
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const _response = yield core.fetcher({
91
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
92
+ .default, "v1/execute-code"),
93
+ method: "POST",
94
+ 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())),
95
+ contentType: "application/json",
96
+ requestType: "json",
97
+ body: serializers.CodeExecutorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
98
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
99
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
100
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
101
+ });
102
+ if (_response.ok) {
103
+ return serializers.CodeExecutorResponse.parseOrThrow(_response.body, {
104
+ unrecognizedObjectKeys: "passthrough",
105
+ allowUnrecognizedUnionMembers: true,
106
+ allowUnrecognizedEnumValues: true,
107
+ breadcrumbsPrefix: ["response"],
108
+ });
109
+ }
110
+ if (_response.error.reason === "status-code") {
111
+ switch (_response.error.statusCode) {
112
+ case 400:
113
+ throw new Vellum.BadRequestError(_response.error.body);
114
+ default:
115
+ throw new errors.VellumError({
116
+ statusCode: _response.error.statusCode,
117
+ body: _response.error.body,
118
+ });
119
+ }
120
+ }
121
+ switch (_response.error.reason) {
122
+ case "non-json":
123
+ throw new errors.VellumError({
124
+ statusCode: _response.error.statusCode,
125
+ body: _response.error.rawBody,
126
+ });
127
+ case "timeout":
128
+ throw new errors.VellumTimeoutError();
129
+ case "unknown":
130
+ throw new errors.VellumError({
131
+ message: _response.error.errorMessage,
132
+ });
133
+ }
134
+ });
135
+ }
62
136
  /**
63
137
  * Executes a deployed Prompt and returns the result.
64
138
  *
@@ -86,7 +160,7 @@ class VellumClient {
86
160
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
87
161
  .predict, "v1/execute-prompt"),
88
162
  method: "POST",
89
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
163
+ 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())),
90
164
  contentType: "application/json",
91
165
  requestType: "json",
92
166
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -144,7 +218,7 @@ class VellumClient {
144
218
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
145
219
  .predict, "v1/execute-prompt-stream"),
146
220
  method: "POST",
147
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
221
+ 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())),
148
222
  contentType: "application/json",
149
223
  requestType: "json",
150
224
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -229,7 +303,7 @@ class VellumClient {
229
303
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
230
304
  .predict, "v1/execute-workflow"),
231
305
  method: "POST",
232
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
306
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.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())),
233
307
  contentType: "application/json",
234
308
  requestType: "json",
235
309
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -285,7 +359,7 @@ class VellumClient {
285
359
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
286
360
  .predict, "v1/execute-workflow-stream"),
287
361
  method: "POST",
288
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
362
+ 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())),
289
363
  contentType: "application/json",
290
364
  requestType: "json",
291
365
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -372,7 +446,7 @@ class VellumClient {
372
446
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
373
447
  .predict, "v1/generate"),
374
448
  method: "POST",
375
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
449
+ 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())),
376
450
  contentType: "application/json",
377
451
  requestType: "json",
378
452
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -433,7 +507,7 @@ class VellumClient {
433
507
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
434
508
  .predict, "v1/generate-stream"),
435
509
  method: "POST",
436
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
510
+ 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())),
437
511
  contentType: "application/json",
438
512
  requestType: "json",
439
513
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -514,7 +588,7 @@ class VellumClient {
514
588
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
515
589
  .predict, "v1/search"),
516
590
  method: "POST",
517
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
591
+ 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())),
518
592
  contentType: "application/json",
519
593
  requestType: "json",
520
594
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -582,7 +656,7 @@ class VellumClient {
582
656
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
583
657
  .predict, "v1/submit-completion-actuals"),
584
658
  method: "POST",
585
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
659
+ 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())),
586
660
  contentType: "application/json",
587
661
  requestType: "json",
588
662
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -645,7 +719,7 @@ class VellumClient {
645
719
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
646
720
  .predict, "v1/submit-workflow-execution-actuals"),
647
721
  method: "POST",
648
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
722
+ 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())),
649
723
  contentType: "application/json",
650
724
  requestType: "json",
651
725
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -699,25 +773,29 @@ class VellumClient {
699
773
  var _a;
700
774
  return ((_a = this._folderEntities) !== null && _a !== void 0 ? _a : (this._folderEntities = new Client_5.FolderEntities(this._options)));
701
775
  }
776
+ get metricDefinitions() {
777
+ var _a;
778
+ return ((_a = this._metricDefinitions) !== null && _a !== void 0 ? _a : (this._metricDefinitions = new Client_6.MetricDefinitions(this._options)));
779
+ }
702
780
  get sandboxes() {
703
781
  var _a;
704
- return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_6.Sandboxes(this._options)));
782
+ return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_7.Sandboxes(this._options)));
705
783
  }
706
784
  get testSuiteRuns() {
707
785
  var _a;
708
- return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_7.TestSuiteRuns(this._options)));
786
+ return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_8.TestSuiteRuns(this._options)));
709
787
  }
710
788
  get testSuites() {
711
789
  var _a;
712
- return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_8.TestSuites(this._options)));
790
+ return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_9.TestSuites(this._options)));
713
791
  }
714
792
  get workflowDeployments() {
715
793
  var _a;
716
- return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_9.WorkflowDeployments(this._options)));
794
+ return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_10.WorkflowDeployments(this._options)));
717
795
  }
718
796
  get workflowSandboxes() {
719
797
  var _a;
720
- return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_10.WorkflowSandboxes(this._options)));
798
+ return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_11.WorkflowSandboxes(this._options)));
721
799
  }
722
800
  _getCustomAuthorizationHeaders() {
723
801
  return __awaiter(this, void 0, void 0, function* () {
@@ -0,0 +1,28 @@
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
+ * code: "code",
9
+ * runtime: Vellum.CodeExecutionRuntime.Python3116,
10
+ * inputValues: [{
11
+ * name: "name",
12
+ * type: "STRING",
13
+ * value: "value"
14
+ * }],
15
+ * packages: [{
16
+ * version: "version",
17
+ * name: "name"
18
+ * }],
19
+ * outputType: Vellum.VellumVariableType.String
20
+ * }
21
+ */
22
+ export interface CodeExecutorRequest {
23
+ code: string;
24
+ runtime: Vellum.CodeExecutionRuntime;
25
+ inputValues: Vellum.CodeExecutorInputRequest[];
26
+ packages: Vellum.CodeExecutionPackageRequest[];
27
+ outputType: Vellum.VellumVariableType;
28
+ }
@@ -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 });
@@ -1,3 +1,4 @@
1
+ export { type CodeExecutorRequest } from "./CodeExecutorRequest";
1
2
  export { type ExecutePromptRequest } from "./ExecutePromptRequest";
2
3
  export { type ExecutePromptStreamRequest } from "./ExecutePromptStreamRequest";
3
4
  export { type ExecuteWorkflowRequest } from "./ExecuteWorkflowRequest";
@@ -59,7 +59,7 @@ class AdHoc {
59
59
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
60
60
  .default, "v1/ad-hoc/execute-prompt-stream"),
61
61
  method: "POST",
62
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
+ 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())),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  body: serializers.AdHocExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -79,7 +79,7 @@ class Deployments {
79
79
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
80
80
  .default, "v1/deployments"),
81
81
  method: "GET",
82
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ 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())),
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
85
85
  requestType: "json",
@@ -132,7 +132,7 @@ class Deployments {
132
132
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
133
133
  .default, `v1/deployments/${encodeURIComponent(id)}`),
134
134
  method: "GET",
135
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ 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())),
136
136
  contentType: "application/json",
137
137
  requestType: "json",
138
138
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -185,7 +185,7 @@ class Deployments {
185
185
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
186
186
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
187
187
  method: "GET",
188
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
+ 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())),
189
189
  contentType: "application/json",
190
190
  requestType: "json",
191
191
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -239,7 +239,7 @@ class Deployments {
239
239
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
240
240
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
241
241
  method: "PATCH",
242
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
242
+ 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())),
243
243
  contentType: "application/json",
244
244
  requestType: "json",
245
245
  body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -314,7 +314,7 @@ class Deployments {
314
314
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
315
315
  .default, "v1/deployments/provider-payload"),
316
316
  method: "POST",
317
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
317
+ 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())),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
@@ -81,7 +81,7 @@ class DocumentIndexes {
81
81
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
82
82
  .default, "v1/document-indexes"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ 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())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -196,7 +196,7 @@ class DocumentIndexes {
196
196
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
197
197
  .default, "v1/document-indexes"),
198
198
  method: "POST",
199
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
199
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.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())),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  body: serializers.DocumentIndexCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -249,7 +249,7 @@ class DocumentIndexes {
249
249
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
250
250
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
251
251
  method: "GET",
252
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
+ 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())),
253
253
  contentType: "application/json",
254
254
  requestType: "json",
255
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -304,7 +304,7 @@ class DocumentIndexes {
304
304
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
305
305
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
306
306
  method: "PUT",
307
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
307
+ 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())),
308
308
  contentType: "application/json",
309
309
  requestType: "json",
310
310
  body: serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -357,7 +357,7 @@ class DocumentIndexes {
357
357
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
358
358
  .documents, `v1/document-indexes/${encodeURIComponent(id)}`),
359
359
  method: "DELETE",
360
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
360
+ 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())),
361
361
  contentType: "application/json",
362
362
  requestType: "json",
363
363
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -405,7 +405,7 @@ class DocumentIndexes {
405
405
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
406
406
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
407
407
  method: "PATCH",
408
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
408
+ 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())),
409
409
  contentType: "application/json",
410
410
  requestType: "json",
411
411
  body: serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
@@ -461,7 +461,7 @@ class DocumentIndexes {
461
461
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
462
462
  .default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
463
463
  method: "POST",
464
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
464
+ 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())),
465
465
  contentType: "application/json",
466
466
  requestType: "json",
467
467
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -509,7 +509,7 @@ class DocumentIndexes {
509
509
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
510
510
  .documents, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
511
511
  method: "DELETE",
512
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
512
+ 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())),
513
513
  contentType: "application/json",
514
514
  requestType: "json",
515
515
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -79,7 +79,7 @@ class Documents {
79
79
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
80
80
  .default, "v1/documents"),
81
81
  method: "GET",
82
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ 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())),
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
85
85
  requestType: "json",
@@ -132,7 +132,7 @@ class Documents {
132
132
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
133
133
  .default, `v1/documents/${encodeURIComponent(id)}`),
134
134
  method: "GET",
135
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ 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())),
136
136
  contentType: "application/json",
137
137
  requestType: "json",
138
138
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -184,7 +184,7 @@ class Documents {
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
  .documents, `v1/documents/${encodeURIComponent(id)}`),
186
186
  method: "DELETE",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "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,
@@ -232,7 +232,7 @@ class Documents {
232
232
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
233
233
  .default, `v1/documents/${encodeURIComponent(id)}`),
234
234
  method: "PATCH",
235
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
235
+ 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())),
236
236
  contentType: "application/json",
237
237
  requestType: "json",
238
238
  body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -322,7 +322,7 @@ class Documents {
322
322
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
323
323
  .documents, "v1/upload-document"),
324
324
  method: "POST",
325
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
325
+ headers: Object.assign(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())), _maybeEncodedRequest.headers),
326
326
  requestType: "file",
327
327
  duplex: _maybeEncodedRequest.duplex,
328
328
  body: _maybeEncodedRequest.body,
@@ -69,7 +69,7 @@ class FolderEntities {
69
69
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
70
70
  .default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
71
71
  method: "POST",
72
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.15", "User-Agent": "vellum-ai/0.8.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
72
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.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())),
73
73
  contentType: "application/json",
74
74
  requestType: "json",
75
75
  body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -7,6 +7,7 @@ export * from "./workflowDeployments/types";
7
7
  export * as adHoc from "./adHoc";
8
8
  export * as documents from "./documents";
9
9
  export * as folderEntities from "./folderEntities";
10
+ export * as metricDefinitions from "./metricDefinitions";
10
11
  export * as sandboxes from "./sandboxes";
11
12
  export * as testSuiteRuns from "./testSuiteRuns";
12
13
  export * as testSuites from "./testSuites";
@@ -16,6 +17,7 @@ export * from "./deployments/client/requests";
16
17
  export * from "./documentIndexes/client/requests";
17
18
  export * from "./documents/client/requests";
18
19
  export * from "./folderEntities/client/requests";
20
+ export * from "./metricDefinitions/client/requests";
19
21
  export * from "./sandboxes/client/requests";
20
22
  export * from "./testSuiteRuns/client/requests";
21
23
  export * from "./testSuites/client/requests";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.folderEntities = exports.documents = exports.adHoc = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
29
+ exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.folderEntities = exports.documents = exports.adHoc = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
30
30
  exports.deployments = __importStar(require("./deployments"));
31
31
  __exportStar(require("./deployments/types"), exports);
32
32
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -36,6 +36,7 @@ __exportStar(require("./workflowDeployments/types"), exports);
36
36
  exports.adHoc = __importStar(require("./adHoc"));
37
37
  exports.documents = __importStar(require("./documents"));
38
38
  exports.folderEntities = __importStar(require("./folderEntities"));
39
+ exports.metricDefinitions = __importStar(require("./metricDefinitions"));
39
40
  exports.sandboxes = __importStar(require("./sandboxes"));
40
41
  exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
41
42
  exports.testSuites = __importStar(require("./testSuites"));
@@ -45,6 +46,7 @@ __exportStar(require("./deployments/client/requests"), exports);
45
46
  __exportStar(require("./documentIndexes/client/requests"), exports);
46
47
  __exportStar(require("./documents/client/requests"), exports);
47
48
  __exportStar(require("./folderEntities/client/requests"), exports);
49
+ __exportStar(require("./metricDefinitions/client/requests"), exports);
48
50
  __exportStar(require("./sandboxes/client/requests"), exports);
49
51
  __exportStar(require("./testSuiteRuns/client/requests"), exports);
50
52
  __exportStar(require("./testSuites/client/requests"), exports);
@@ -0,0 +1,44 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Vellum from "../../../index";
7
+ export declare namespace MetricDefinitions {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
+ apiKey: core.Supplier<string>;
11
+ }
12
+ interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
14
+ timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
16
+ maxRetries?: number;
17
+ /** A hook to abort the request. */
18
+ abortSignal?: AbortSignal;
19
+ }
20
+ }
21
+ export declare class MetricDefinitions {
22
+ protected readonly _options: MetricDefinitions.Options;
23
+ constructor(_options: MetricDefinitions.Options);
24
+ /**
25
+ * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
26
+ *
27
+ * @param {string} id - Either the Metric Definition's ID or its unique name
28
+ * @param {Vellum.ExecuteMetricDefinitionRequest} request
29
+ * @param {MetricDefinitions.RequestOptions} requestOptions - Request-specific configuration.
30
+ *
31
+ * @example
32
+ * await client.metricDefinitions.executeMetricDefinition("id", {
33
+ * inputs: [{
34
+ * name: "name",
35
+ * type: "STRING",
36
+ * value: "value"
37
+ * }]
38
+ * })
39
+ */
40
+ executeMetricDefinition(id: string, request: Vellum.ExecuteMetricDefinitionRequest, requestOptions?: MetricDefinitions.RequestOptions): Promise<Vellum.MetricDefinitionExecution>;
41
+ protected _getCustomAuthorizationHeaders(): Promise<{
42
+ X_API_KEY: string;
43
+ }>;
44
+ }