@meetkai/mka1 0.51.35 → 0.51.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/README.md +232 -241
  2. package/bin/mcp-server.js +1703 -1825
  3. package/bin/mcp-server.js.map +26 -34
  4. package/dist/commonjs/funcs/llmEvalsListSuiteLeaderboardRuns.d.ts +17 -0
  5. package/dist/commonjs/funcs/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/{reposCollaboratorsList.js → llmEvalsListSuiteLeaderboardRuns.js} +17 -19
  7. package/dist/commonjs/funcs/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
  8. package/dist/commonjs/funcs/reposCreate.d.ts +3 -3
  9. package/dist/commonjs/funcs/reposCreate.js +4 -4
  10. package/dist/commonjs/funcs/reposCreate.js.map +1 -1
  11. package/dist/commonjs/funcs/reposDelete.d.ts +2 -2
  12. package/dist/commonjs/funcs/reposDelete.js +2 -2
  13. package/dist/commonjs/funcs/reposGet.d.ts +2 -1
  14. package/dist/commonjs/funcs/reposGet.d.ts.map +1 -1
  15. package/dist/commonjs/funcs/reposGet.js +2 -1
  16. package/dist/commonjs/funcs/reposGet.js.map +1 -1
  17. package/dist/commonjs/funcs/reposList.d.ts +3 -3
  18. package/dist/commonjs/funcs/reposList.js +4 -4
  19. package/dist/commonjs/funcs/reposList.js.map +1 -1
  20. package/dist/commonjs/funcs/reposUpdate.d.ts +3 -4
  21. package/dist/commonjs/funcs/reposUpdate.d.ts.map +1 -1
  22. package/dist/commonjs/funcs/reposUpdate.js +3 -4
  23. package/dist/commonjs/funcs/reposUpdate.js.map +1 -1
  24. package/dist/commonjs/lib/config.d.ts +2 -2
  25. package/dist/commonjs/lib/config.js +2 -2
  26. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  27. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  28. package/dist/commonjs/mcp-server/server.js +3 -7
  29. package/dist/commonjs/mcp-server/server.js.map +1 -1
  30. package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.d.ts +8 -0
  31. package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
  32. package/dist/commonjs/mcp-server/tools/{reposCollaboratorsList.js → llmEvalsListSuiteLeaderboardRuns.js} +9 -11
  33. package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
  34. package/dist/commonjs/mcp-server/tools/reposCreate.js +3 -3
  35. package/dist/commonjs/mcp-server/tools/reposDelete.js +2 -2
  36. package/dist/commonjs/mcp-server/tools/reposGet.d.ts.map +1 -1
  37. package/dist/commonjs/mcp-server/tools/reposGet.js +3 -1
  38. package/dist/commonjs/mcp-server/tools/reposGet.js.map +1 -1
  39. package/dist/commonjs/mcp-server/tools/reposList.js +3 -3
  40. package/dist/commonjs/mcp-server/tools/reposUpdate.d.ts.map +1 -1
  41. package/dist/commonjs/mcp-server/tools/reposUpdate.js +3 -4
  42. package/dist/commonjs/mcp-server/tools/reposUpdate.js.map +1 -1
  43. package/dist/commonjs/models/components/createreporequest.d.ts +0 -21
  44. package/dist/commonjs/models/components/createreporequest.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/createreporequest.js +1 -14
  46. package/dist/commonjs/models/components/createreporequest.js.map +1 -1
  47. package/dist/commonjs/models/components/evalleaderboardrungroup.d.ts +35 -0
  48. package/dist/commonjs/models/components/evalleaderboardrungroup.d.ts.map +1 -0
  49. package/dist/commonjs/models/{operations/deletecollaborator.js → components/evalleaderboardrungroup.js} +22 -20
  50. package/dist/commonjs/models/components/evalleaderboardrungroup.js.map +1 -0
  51. package/dist/commonjs/models/components/index.d.ts +1 -3
  52. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/index.js +1 -3
  54. package/dist/commonjs/models/components/index.js.map +1 -1
  55. package/dist/commonjs/models/components/patchreporequest.d.ts +1 -10
  56. package/dist/commonjs/models/components/patchreporequest.d.ts.map +1 -1
  57. package/dist/commonjs/models/components/patchreporequest.js +0 -3
  58. package/dist/commonjs/models/components/patchreporequest.js.map +1 -1
  59. package/dist/commonjs/models/components/repo.d.ts +0 -9
  60. package/dist/commonjs/models/components/repo.d.ts.map +1 -1
  61. package/dist/commonjs/models/components/repo.js +0 -3
  62. package/dist/commonjs/models/components/repo.js.map +1 -1
  63. package/dist/commonjs/models/operations/index.d.ts +1 -3
  64. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  65. package/dist/commonjs/models/operations/index.js +1 -3
  66. package/dist/commonjs/models/operations/index.js.map +1 -1
  67. package/dist/commonjs/models/operations/listevalsuiteleaderboardruns.d.ts +273 -0
  68. package/dist/commonjs/models/operations/listevalsuiteleaderboardruns.d.ts.map +1 -0
  69. package/dist/commonjs/models/operations/listevalsuiteleaderboardruns.js +390 -0
  70. package/dist/commonjs/models/operations/listevalsuiteleaderboardruns.js.map +1 -0
  71. package/dist/commonjs/models/operations/listrepos.d.ts +1 -1
  72. package/dist/commonjs/react-query/index.d.ts +1 -3
  73. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  74. package/dist/commonjs/react-query/index.js +1 -3
  75. package/dist/commonjs/react-query/index.js.map +1 -1
  76. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.core.d.ts +18 -0
  77. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.core.d.ts.map +1 -0
  78. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.core.js +46 -0
  79. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.core.js.map +1 -0
  80. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.d.ts +46 -0
  81. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
  82. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.js +65 -0
  83. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
  84. package/dist/commonjs/react-query/reposCreate.d.ts +3 -3
  85. package/dist/commonjs/react-query/reposCreate.js +3 -3
  86. package/dist/commonjs/react-query/reposDelete.d.ts +2 -2
  87. package/dist/commonjs/react-query/reposDelete.js +2 -2
  88. package/dist/commonjs/react-query/reposGet.d.ts +4 -2
  89. package/dist/commonjs/react-query/reposGet.d.ts.map +1 -1
  90. package/dist/commonjs/react-query/reposGet.js +4 -2
  91. package/dist/commonjs/react-query/reposGet.js.map +1 -1
  92. package/dist/commonjs/react-query/reposList.d.ts +6 -6
  93. package/dist/commonjs/react-query/reposList.js +6 -6
  94. package/dist/commonjs/react-query/reposUpdate.d.ts +3 -4
  95. package/dist/commonjs/react-query/reposUpdate.d.ts.map +1 -1
  96. package/dist/commonjs/react-query/reposUpdate.js +3 -4
  97. package/dist/commonjs/react-query/reposUpdate.js.map +1 -1
  98. package/dist/commonjs/sdk/evals.d.ts +7 -0
  99. package/dist/commonjs/sdk/evals.d.ts.map +1 -1
  100. package/dist/commonjs/sdk/evals.js +10 -0
  101. package/dist/commonjs/sdk/evals.js.map +1 -1
  102. package/dist/commonjs/sdk/repos.d.ts +13 -16
  103. package/dist/commonjs/sdk/repos.d.ts.map +1 -1
  104. package/dist/commonjs/sdk/repos.js +13 -17
  105. package/dist/commonjs/sdk/repos.js.map +1 -1
  106. package/dist/esm/funcs/llmEvalsListSuiteLeaderboardRuns.d.ts +17 -0
  107. package/dist/esm/funcs/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
  108. package/dist/esm/funcs/{reposCollaboratorsList.js → llmEvalsListSuiteLeaderboardRuns.js} +17 -19
  109. package/dist/esm/funcs/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
  110. package/dist/esm/funcs/reposCreate.d.ts +3 -3
  111. package/dist/esm/funcs/reposCreate.js +4 -4
  112. package/dist/esm/funcs/reposCreate.js.map +1 -1
  113. package/dist/esm/funcs/reposDelete.d.ts +2 -2
  114. package/dist/esm/funcs/reposDelete.js +2 -2
  115. package/dist/esm/funcs/reposGet.d.ts +2 -1
  116. package/dist/esm/funcs/reposGet.d.ts.map +1 -1
  117. package/dist/esm/funcs/reposGet.js +2 -1
  118. package/dist/esm/funcs/reposGet.js.map +1 -1
  119. package/dist/esm/funcs/reposList.d.ts +3 -3
  120. package/dist/esm/funcs/reposList.js +4 -4
  121. package/dist/esm/funcs/reposList.js.map +1 -1
  122. package/dist/esm/funcs/reposUpdate.d.ts +3 -4
  123. package/dist/esm/funcs/reposUpdate.d.ts.map +1 -1
  124. package/dist/esm/funcs/reposUpdate.js +3 -4
  125. package/dist/esm/funcs/reposUpdate.js.map +1 -1
  126. package/dist/esm/lib/config.d.ts +2 -2
  127. package/dist/esm/lib/config.js +2 -2
  128. package/dist/esm/mcp-server/mcp-server.js +1 -1
  129. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  130. package/dist/esm/mcp-server/server.js +3 -7
  131. package/dist/esm/mcp-server/server.js.map +1 -1
  132. package/dist/esm/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.d.ts +8 -0
  133. package/dist/esm/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
  134. package/dist/esm/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.js +28 -0
  135. package/dist/esm/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
  136. package/dist/esm/mcp-server/tools/reposCreate.js +3 -3
  137. package/dist/esm/mcp-server/tools/reposDelete.js +2 -2
  138. package/dist/esm/mcp-server/tools/reposGet.d.ts.map +1 -1
  139. package/dist/esm/mcp-server/tools/reposGet.js +3 -1
  140. package/dist/esm/mcp-server/tools/reposGet.js.map +1 -1
  141. package/dist/esm/mcp-server/tools/reposList.js +3 -3
  142. package/dist/esm/mcp-server/tools/reposUpdate.d.ts.map +1 -1
  143. package/dist/esm/mcp-server/tools/reposUpdate.js +3 -4
  144. package/dist/esm/mcp-server/tools/reposUpdate.js.map +1 -1
  145. package/dist/esm/models/components/createreporequest.d.ts +0 -21
  146. package/dist/esm/models/components/createreporequest.d.ts.map +1 -1
  147. package/dist/esm/models/components/createreporequest.js +0 -13
  148. package/dist/esm/models/components/createreporequest.js.map +1 -1
  149. package/dist/esm/models/components/evalleaderboardrungroup.d.ts +35 -0
  150. package/dist/esm/models/components/evalleaderboardrungroup.d.ts.map +1 -0
  151. package/dist/esm/models/components/evalleaderboardrungroup.js +37 -0
  152. package/dist/esm/models/components/evalleaderboardrungroup.js.map +1 -0
  153. package/dist/esm/models/components/index.d.ts +1 -3
  154. package/dist/esm/models/components/index.d.ts.map +1 -1
  155. package/dist/esm/models/components/index.js +1 -3
  156. package/dist/esm/models/components/index.js.map +1 -1
  157. package/dist/esm/models/components/patchreporequest.d.ts +1 -10
  158. package/dist/esm/models/components/patchreporequest.d.ts.map +1 -1
  159. package/dist/esm/models/components/patchreporequest.js +0 -3
  160. package/dist/esm/models/components/patchreporequest.js.map +1 -1
  161. package/dist/esm/models/components/repo.d.ts +0 -9
  162. package/dist/esm/models/components/repo.d.ts.map +1 -1
  163. package/dist/esm/models/components/repo.js +0 -3
  164. package/dist/esm/models/components/repo.js.map +1 -1
  165. package/dist/esm/models/operations/index.d.ts +1 -3
  166. package/dist/esm/models/operations/index.d.ts.map +1 -1
  167. package/dist/esm/models/operations/index.js +1 -3
  168. package/dist/esm/models/operations/index.js.map +1 -1
  169. package/dist/esm/models/operations/listevalsuiteleaderboardruns.d.ts +273 -0
  170. package/dist/esm/models/operations/listevalsuiteleaderboardruns.d.ts.map +1 -0
  171. package/dist/esm/models/operations/listevalsuiteleaderboardruns.js +340 -0
  172. package/dist/esm/models/operations/listevalsuiteleaderboardruns.js.map +1 -0
  173. package/dist/esm/models/operations/listrepos.d.ts +1 -1
  174. package/dist/esm/react-query/index.d.ts +1 -3
  175. package/dist/esm/react-query/index.d.ts.map +1 -1
  176. package/dist/esm/react-query/index.js +1 -3
  177. package/dist/esm/react-query/index.js.map +1 -1
  178. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.core.d.ts +18 -0
  179. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.core.d.ts.map +1 -0
  180. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.core.js +41 -0
  181. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.core.js.map +1 -0
  182. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.d.ts +46 -0
  183. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
  184. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.js +55 -0
  185. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
  186. package/dist/esm/react-query/reposCreate.d.ts +3 -3
  187. package/dist/esm/react-query/reposCreate.js +3 -3
  188. package/dist/esm/react-query/reposDelete.d.ts +2 -2
  189. package/dist/esm/react-query/reposDelete.js +2 -2
  190. package/dist/esm/react-query/reposGet.d.ts +4 -2
  191. package/dist/esm/react-query/reposGet.d.ts.map +1 -1
  192. package/dist/esm/react-query/reposGet.js +4 -2
  193. package/dist/esm/react-query/reposGet.js.map +1 -1
  194. package/dist/esm/react-query/reposList.d.ts +6 -6
  195. package/dist/esm/react-query/reposList.js +6 -6
  196. package/dist/esm/react-query/reposUpdate.d.ts +3 -4
  197. package/dist/esm/react-query/reposUpdate.d.ts.map +1 -1
  198. package/dist/esm/react-query/reposUpdate.js +3 -4
  199. package/dist/esm/react-query/reposUpdate.js.map +1 -1
  200. package/dist/esm/sdk/evals.d.ts +7 -0
  201. package/dist/esm/sdk/evals.d.ts.map +1 -1
  202. package/dist/esm/sdk/evals.js +10 -0
  203. package/dist/esm/sdk/evals.js.map +1 -1
  204. package/dist/esm/sdk/repos.d.ts +13 -16
  205. package/dist/esm/sdk/repos.d.ts.map +1 -1
  206. package/dist/esm/sdk/repos.js +13 -17
  207. package/dist/esm/sdk/repos.js.map +1 -1
  208. package/jsr.json +1 -1
  209. package/package.json +1 -1
  210. package/src/funcs/{reposCollaboratorsList.ts → llmEvalsListSuiteLeaderboardRuns.ts} +31 -31
  211. package/src/funcs/reposCreate.ts +4 -4
  212. package/src/funcs/reposDelete.ts +2 -2
  213. package/src/funcs/reposGet.ts +2 -1
  214. package/src/funcs/reposList.ts +5 -5
  215. package/src/funcs/reposUpdate.ts +3 -4
  216. package/src/lib/config.ts +2 -2
  217. package/src/mcp-server/mcp-server.ts +1 -1
  218. package/src/mcp-server/server.ts +3 -7
  219. package/src/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.ts +39 -0
  220. package/src/mcp-server/tools/reposCreate.ts +3 -3
  221. package/src/mcp-server/tools/reposDelete.ts +2 -2
  222. package/src/mcp-server/tools/reposGet.ts +3 -1
  223. package/src/mcp-server/tools/reposList.ts +3 -3
  224. package/src/mcp-server/tools/reposUpdate.ts +3 -4
  225. package/src/models/components/createreporequest.ts +0 -31
  226. package/src/models/components/evalleaderboardrungroup.ts +86 -0
  227. package/src/models/components/index.ts +1 -3
  228. package/src/models/components/patchreporequest.ts +1 -16
  229. package/src/models/components/repo.ts +0 -15
  230. package/src/models/operations/index.ts +1 -3
  231. package/src/models/operations/listevalsuiteleaderboardruns.ts +754 -0
  232. package/src/models/operations/listrepos.ts +1 -1
  233. package/src/react-query/index.ts +1 -3
  234. package/src/react-query/llmEvalsListSuiteLeaderboardRuns.core.ts +92 -0
  235. package/src/react-query/llmEvalsListSuiteLeaderboardRuns.ts +164 -0
  236. package/src/react-query/reposCreate.ts +3 -3
  237. package/src/react-query/reposDelete.ts +2 -2
  238. package/src/react-query/reposGet.ts +4 -2
  239. package/src/react-query/reposList.ts +6 -6
  240. package/src/react-query/reposUpdate.ts +3 -4
  241. package/src/sdk/evals.ts +18 -0
  242. package/src/sdk/repos.ts +13 -19
  243. package/dist/commonjs/funcs/reposCollaboratorsAdd.d.ts +0 -21
  244. package/dist/commonjs/funcs/reposCollaboratorsAdd.d.ts.map +0 -1
  245. package/dist/commonjs/funcs/reposCollaboratorsAdd.js +0 -149
  246. package/dist/commonjs/funcs/reposCollaboratorsAdd.js.map +0 -1
  247. package/dist/commonjs/funcs/reposCollaboratorsList.d.ts +0 -19
  248. package/dist/commonjs/funcs/reposCollaboratorsList.d.ts.map +0 -1
  249. package/dist/commonjs/funcs/reposCollaboratorsList.js.map +0 -1
  250. package/dist/commonjs/funcs/reposCollaboratorsRemove.d.ts +0 -19
  251. package/dist/commonjs/funcs/reposCollaboratorsRemove.d.ts.map +0 -1
  252. package/dist/commonjs/funcs/reposCollaboratorsRemove.js +0 -145
  253. package/dist/commonjs/funcs/reposCollaboratorsRemove.js.map +0 -1
  254. package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.d.ts +0 -8
  255. package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.d.ts.map +0 -1
  256. package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.js +0 -67
  257. package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.js.map +0 -1
  258. package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.d.ts +0 -8
  259. package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.d.ts.map +0 -1
  260. package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.js.map +0 -1
  261. package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.d.ts +0 -8
  262. package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.d.ts.map +0 -1
  263. package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.js +0 -65
  264. package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.js.map +0 -1
  265. package/dist/commonjs/models/components/collaboratorrequest.d.ts +0 -45
  266. package/dist/commonjs/models/components/collaboratorrequest.d.ts.map +0 -1
  267. package/dist/commonjs/models/components/collaboratorrequest.js +0 -72
  268. package/dist/commonjs/models/components/collaboratorrequest.js.map +0 -1
  269. package/dist/commonjs/models/components/member.d.ts +0 -51
  270. package/dist/commonjs/models/components/member.d.ts.map +0 -1
  271. package/dist/commonjs/models/components/member.js +0 -77
  272. package/dist/commonjs/models/components/member.js.map +0 -1
  273. package/dist/commonjs/models/components/visibility.d.ts +0 -24
  274. package/dist/commonjs/models/components/visibility.d.ts.map +0 -1
  275. package/dist/commonjs/models/components/visibility.js +0 -56
  276. package/dist/commonjs/models/components/visibility.js.map +0 -1
  277. package/dist/commonjs/models/operations/deletecollaborator.d.ts +0 -35
  278. package/dist/commonjs/models/operations/deletecollaborator.d.ts.map +0 -1
  279. package/dist/commonjs/models/operations/deletecollaborator.js.map +0 -1
  280. package/dist/commonjs/models/operations/listcollaborators.d.ts +0 -47
  281. package/dist/commonjs/models/operations/listcollaborators.d.ts.map +0 -1
  282. package/dist/commonjs/models/operations/listcollaborators.js +0 -88
  283. package/dist/commonjs/models/operations/listcollaborators.js.map +0 -1
  284. package/dist/commonjs/models/operations/putcollaborator.d.ts +0 -38
  285. package/dist/commonjs/models/operations/putcollaborator.d.ts.map +0 -1
  286. package/dist/commonjs/models/operations/putcollaborator.js +0 -78
  287. package/dist/commonjs/models/operations/putcollaborator.js.map +0 -1
  288. package/dist/commonjs/react-query/reposCollaboratorsAdd.d.ts +0 -32
  289. package/dist/commonjs/react-query/reposCollaboratorsAdd.d.ts.map +0 -1
  290. package/dist/commonjs/react-query/reposCollaboratorsAdd.js +0 -49
  291. package/dist/commonjs/react-query/reposCollaboratorsAdd.js.map +0 -1
  292. package/dist/commonjs/react-query/reposCollaboratorsList.core.d.ts +0 -14
  293. package/dist/commonjs/react-query/reposCollaboratorsList.core.d.ts.map +0 -1
  294. package/dist/commonjs/react-query/reposCollaboratorsList.core.js +0 -36
  295. package/dist/commonjs/react-query/reposCollaboratorsList.core.js.map +0 -1
  296. package/dist/commonjs/react-query/reposCollaboratorsList.d.ts +0 -43
  297. package/dist/commonjs/react-query/reposCollaboratorsList.d.ts.map +0 -1
  298. package/dist/commonjs/react-query/reposCollaboratorsList.js +0 -62
  299. package/dist/commonjs/react-query/reposCollaboratorsList.js.map +0 -1
  300. package/dist/commonjs/react-query/reposCollaboratorsRemove.d.ts +0 -30
  301. package/dist/commonjs/react-query/reposCollaboratorsRemove.d.ts.map +0 -1
  302. package/dist/commonjs/react-query/reposCollaboratorsRemove.js +0 -48
  303. package/dist/commonjs/react-query/reposCollaboratorsRemove.js.map +0 -1
  304. package/dist/commonjs/sdk/collaborators.d.ts +0 -31
  305. package/dist/commonjs/sdk/collaborators.d.ts.map +0 -1
  306. package/dist/commonjs/sdk/collaborators.js +0 -46
  307. package/dist/commonjs/sdk/collaborators.js.map +0 -1
  308. package/dist/esm/funcs/reposCollaboratorsAdd.d.ts +0 -21
  309. package/dist/esm/funcs/reposCollaboratorsAdd.d.ts.map +0 -1
  310. package/dist/esm/funcs/reposCollaboratorsAdd.js +0 -113
  311. package/dist/esm/funcs/reposCollaboratorsAdd.js.map +0 -1
  312. package/dist/esm/funcs/reposCollaboratorsList.d.ts +0 -19
  313. package/dist/esm/funcs/reposCollaboratorsList.d.ts.map +0 -1
  314. package/dist/esm/funcs/reposCollaboratorsList.js.map +0 -1
  315. package/dist/esm/funcs/reposCollaboratorsRemove.d.ts +0 -19
  316. package/dist/esm/funcs/reposCollaboratorsRemove.d.ts.map +0 -1
  317. package/dist/esm/funcs/reposCollaboratorsRemove.js +0 -109
  318. package/dist/esm/funcs/reposCollaboratorsRemove.js.map +0 -1
  319. package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.d.ts +0 -8
  320. package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.d.ts.map +0 -1
  321. package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.js +0 -31
  322. package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.js.map +0 -1
  323. package/dist/esm/mcp-server/tools/reposCollaboratorsList.d.ts +0 -8
  324. package/dist/esm/mcp-server/tools/reposCollaboratorsList.d.ts.map +0 -1
  325. package/dist/esm/mcp-server/tools/reposCollaboratorsList.js +0 -30
  326. package/dist/esm/mcp-server/tools/reposCollaboratorsList.js.map +0 -1
  327. package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.d.ts +0 -8
  328. package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.d.ts.map +0 -1
  329. package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.js +0 -29
  330. package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.js.map +0 -1
  331. package/dist/esm/models/components/collaboratorrequest.d.ts +0 -45
  332. package/dist/esm/models/components/collaboratorrequest.d.ts.map +0 -1
  333. package/dist/esm/models/components/collaboratorrequest.js +0 -34
  334. package/dist/esm/models/components/collaboratorrequest.js.map +0 -1
  335. package/dist/esm/models/components/member.d.ts +0 -51
  336. package/dist/esm/models/components/member.d.ts.map +0 -1
  337. package/dist/esm/models/components/member.js +0 -39
  338. package/dist/esm/models/components/member.js.map +0 -1
  339. package/dist/esm/models/components/visibility.d.ts +0 -24
  340. package/dist/esm/models/components/visibility.d.ts.map +0 -1
  341. package/dist/esm/models/components/visibility.js +0 -20
  342. package/dist/esm/models/components/visibility.js.map +0 -1
  343. package/dist/esm/models/operations/deletecollaborator.d.ts +0 -35
  344. package/dist/esm/models/operations/deletecollaborator.d.ts.map +0 -1
  345. package/dist/esm/models/operations/deletecollaborator.js +0 -35
  346. package/dist/esm/models/operations/deletecollaborator.js.map +0 -1
  347. package/dist/esm/models/operations/listcollaborators.d.ts +0 -47
  348. package/dist/esm/models/operations/listcollaborators.d.ts.map +0 -1
  349. package/dist/esm/models/operations/listcollaborators.js +0 -48
  350. package/dist/esm/models/operations/listcollaborators.js.map +0 -1
  351. package/dist/esm/models/operations/putcollaborator.d.ts +0 -38
  352. package/dist/esm/models/operations/putcollaborator.d.ts.map +0 -1
  353. package/dist/esm/models/operations/putcollaborator.js +0 -40
  354. package/dist/esm/models/operations/putcollaborator.js.map +0 -1
  355. package/dist/esm/react-query/reposCollaboratorsAdd.d.ts +0 -32
  356. package/dist/esm/react-query/reposCollaboratorsAdd.d.ts.map +0 -1
  357. package/dist/esm/react-query/reposCollaboratorsAdd.js +0 -44
  358. package/dist/esm/react-query/reposCollaboratorsAdd.js.map +0 -1
  359. package/dist/esm/react-query/reposCollaboratorsList.core.d.ts +0 -14
  360. package/dist/esm/react-query/reposCollaboratorsList.core.d.ts.map +0 -1
  361. package/dist/esm/react-query/reposCollaboratorsList.core.js +0 -31
  362. package/dist/esm/react-query/reposCollaboratorsList.core.js.map +0 -1
  363. package/dist/esm/react-query/reposCollaboratorsList.d.ts +0 -43
  364. package/dist/esm/react-query/reposCollaboratorsList.d.ts.map +0 -1
  365. package/dist/esm/react-query/reposCollaboratorsList.js +0 -52
  366. package/dist/esm/react-query/reposCollaboratorsList.js.map +0 -1
  367. package/dist/esm/react-query/reposCollaboratorsRemove.d.ts +0 -30
  368. package/dist/esm/react-query/reposCollaboratorsRemove.d.ts.map +0 -1
  369. package/dist/esm/react-query/reposCollaboratorsRemove.js +0 -43
  370. package/dist/esm/react-query/reposCollaboratorsRemove.js.map +0 -1
  371. package/dist/esm/sdk/collaborators.d.ts +0 -31
  372. package/dist/esm/sdk/collaborators.d.ts.map +0 -1
  373. package/dist/esm/sdk/collaborators.js +0 -42
  374. package/dist/esm/sdk/collaborators.js.map +0 -1
  375. package/src/funcs/reposCollaboratorsAdd.ts +0 -208
  376. package/src/funcs/reposCollaboratorsRemove.ts +0 -204
  377. package/src/mcp-server/tools/reposCollaboratorsAdd.ts +0 -40
  378. package/src/mcp-server/tools/reposCollaboratorsList.ts +0 -39
  379. package/src/mcp-server/tools/reposCollaboratorsRemove.ts +0 -37
  380. package/src/models/components/collaboratorrequest.ts +0 -87
  381. package/src/models/components/member.ts +0 -84
  382. package/src/models/components/visibility.ts +0 -31
  383. package/src/models/operations/deletecollaborator.ts +0 -84
  384. package/src/models/operations/listcollaborators.ts +0 -126
  385. package/src/models/operations/putcollaborator.ts +0 -91
  386. package/src/react-query/reposCollaboratorsAdd.ts +0 -113
  387. package/src/react-query/reposCollaboratorsList.core.ts +0 -77
  388. package/src/react-query/reposCollaboratorsList.ts +0 -150
  389. package/src/react-query/reposCollaboratorsRemove.ts +0 -111
  390. package/src/sdk/collaborators.ts +0 -68
@@ -0,0 +1,754 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import {
8
+ collectExtraKeys as collectExtraKeys$,
9
+ safeParse,
10
+ } from "../../lib/schemas.js";
11
+ import { ClosedEnum } from "../../types/enums.js";
12
+ import { Result as SafeParseResult } from "../../types/fp.js";
13
+ import * as components from "../components/index.js";
14
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
15
+
16
+ export type ListEvalSuiteLeaderboardRunsRequest = {
17
+ suiteId: string;
18
+ suiteVersion?: number | undefined;
19
+ perGroup?: number | undefined;
20
+ model?: string | undefined;
21
+ cursor?: string | undefined;
22
+ /**
23
+ * Optional external end-user identifier forwarded by the API gateway.
24
+ */
25
+ xOnBehalfOf?: string | undefined;
26
+ };
27
+
28
+ export type ListEvalSuiteLeaderboardRunsStop = string | Array<string>;
29
+
30
+ export const ListEvalSuiteLeaderboardRunsTruncation = {
31
+ Auto: "auto",
32
+ Disabled: "disabled",
33
+ } as const;
34
+ export type ListEvalSuiteLeaderboardRunsTruncation = ClosedEnum<
35
+ typeof ListEvalSuiteLeaderboardRunsTruncation
36
+ >;
37
+
38
+ export const ListEvalSuiteLeaderboardRunsServiceTier = {
39
+ Auto: "auto",
40
+ Default: "default",
41
+ Flex: "flex",
42
+ Priority: "priority",
43
+ } as const;
44
+ export type ListEvalSuiteLeaderboardRunsServiceTier = ClosedEnum<
45
+ typeof ListEvalSuiteLeaderboardRunsServiceTier
46
+ >;
47
+
48
+ export type ListEvalSuiteLeaderboardRunsPrefillThink = boolean | string;
49
+
50
+ export type ListEvalSuiteLeaderboardRunsGeneration = {
51
+ instructions?: string | undefined;
52
+ temperature?: number | undefined;
53
+ topP?: number | undefined;
54
+ maxOutputTokens?: number | undefined;
55
+ /**
56
+ * lm-eval alias for max_output_tokens.
57
+ */
58
+ maxGenToks?: number | undefined;
59
+ stop?: string | Array<string> | undefined;
60
+ /**
61
+ * lm-eval generate_until stop sequences.
62
+ */
63
+ until?: Array<string> | undefined;
64
+ maxToolCalls?: number | undefined;
65
+ reasoning?: any | undefined;
66
+ text?: any | undefined;
67
+ tools?: Array<any | null> | undefined;
68
+ toolChoice?: any | undefined;
69
+ parallelToolCalls?: boolean | undefined;
70
+ truncation?: ListEvalSuiteLeaderboardRunsTruncation | undefined;
71
+ serviceTier?: ListEvalSuiteLeaderboardRunsServiceTier | undefined;
72
+ presencePenalty?: number | undefined;
73
+ frequencyPenalty?: number | undefined;
74
+ topK?: number | undefined;
75
+ minP?: number | undefined;
76
+ repetitionPenalty?: number | undefined;
77
+ doSample?: boolean | undefined;
78
+ extraBody?: { [k: string]: any } | undefined;
79
+ chatTemplateKwargs?: { [k: string]: any } | undefined;
80
+ prefillThink?: boolean | string | undefined;
81
+ useCache?: boolean | undefined;
82
+ timeoutSeconds?: number | undefined;
83
+ maxRetries?: number | undefined;
84
+ maxEmptyRetries?: number | undefined;
85
+ additionalProperties?: { [k: string]: any } | undefined;
86
+ };
87
+
88
+ export type ListEvalSuiteLeaderboardRunsRequestCounts = {
89
+ total: number;
90
+ completed: number;
91
+ failed: number;
92
+ };
93
+
94
+ export type ListEvalSuiteLeaderboardRunsData = {
95
+ id: string;
96
+ object: "eval.run";
97
+ suiteId: string;
98
+ suiteVersion: number;
99
+ suiteVersionId: string;
100
+ status: components.EvalRunStatus;
101
+ models: Array<string>;
102
+ taskIds: Array<string> | null;
103
+ judgeModel: string | null;
104
+ embeddingModel: string | null;
105
+ generation: ListEvalSuiteLeaderboardRunsGeneration;
106
+ requestCounts: ListEvalSuiteLeaderboardRunsRequestCounts;
107
+ metrics: { [k: string]: any } | null;
108
+ error: { [k: string]: any } | null;
109
+ artifactFileIds: Array<string>;
110
+ metadata: { [k: string]: string };
111
+ createdAt: number;
112
+ startedAt: number | null;
113
+ completedAt: number | null;
114
+ cancelledAt: number | null;
115
+ failedAt: number | null;
116
+ };
117
+
118
+ /**
119
+ * OK
120
+ */
121
+ export type ListEvalSuiteLeaderboardRunsResponseBody = {
122
+ object: "eval.leaderboard_runs";
123
+ /**
124
+ * The deduplicated runs behind `groups`, newest first.
125
+ */
126
+ data: Array<ListEvalSuiteLeaderboardRunsData>;
127
+ /**
128
+ * The server's group assignments — build boards from these, not from run.models/run.task_ids. Ordered by model, then task id with the covers-everything group first within each model, then rank; that ordering is contract.
129
+ */
130
+ groups: Array<components.EvalLeaderboardRunGroup>;
131
+ /**
132
+ * True when a server ceiling trimmed the aggregate. Whole runs are kept in (rank, model, task) order — never dropped for being old; resume with `cursor: next_cursor`.
133
+ */
134
+ truncated: boolean;
135
+ /**
136
+ * Set when truncated: pass as `cursor` on the next request and union the responses until truncated is false to assemble the complete aggregate. Null when this response is complete.
137
+ */
138
+ nextCursor: string | null;
139
+ };
140
+
141
+ /** @internal */
142
+ export const ListEvalSuiteLeaderboardRunsRequest$inboundSchema: z.ZodType<
143
+ ListEvalSuiteLeaderboardRunsRequest,
144
+ z.ZodTypeDef,
145
+ unknown
146
+ > = z.object({
147
+ suite_id: z.string(),
148
+ suite_version: z.number().int().optional(),
149
+ per_group: z.number().int().default(5),
150
+ model: z.string().optional(),
151
+ cursor: z.string().optional(),
152
+ "X-On-Behalf-Of": z.string().optional(),
153
+ }).transform((v) => {
154
+ return remap$(v, {
155
+ "suite_id": "suiteId",
156
+ "suite_version": "suiteVersion",
157
+ "per_group": "perGroup",
158
+ "X-On-Behalf-Of": "xOnBehalfOf",
159
+ });
160
+ });
161
+ /** @internal */
162
+ export type ListEvalSuiteLeaderboardRunsRequest$Outbound = {
163
+ suite_id: string;
164
+ suite_version?: number | undefined;
165
+ per_group: number;
166
+ model?: string | undefined;
167
+ cursor?: string | undefined;
168
+ "X-On-Behalf-Of"?: string | undefined;
169
+ };
170
+
171
+ /** @internal */
172
+ export const ListEvalSuiteLeaderboardRunsRequest$outboundSchema: z.ZodType<
173
+ ListEvalSuiteLeaderboardRunsRequest$Outbound,
174
+ z.ZodTypeDef,
175
+ ListEvalSuiteLeaderboardRunsRequest
176
+ > = z.object({
177
+ suiteId: z.string(),
178
+ suiteVersion: z.number().int().optional(),
179
+ perGroup: z.number().int().default(5),
180
+ model: z.string().optional(),
181
+ cursor: z.string().optional(),
182
+ xOnBehalfOf: z.string().optional(),
183
+ }).transform((v) => {
184
+ return remap$(v, {
185
+ suiteId: "suite_id",
186
+ suiteVersion: "suite_version",
187
+ perGroup: "per_group",
188
+ xOnBehalfOf: "X-On-Behalf-Of",
189
+ });
190
+ });
191
+
192
+ export function listEvalSuiteLeaderboardRunsRequestToJSON(
193
+ listEvalSuiteLeaderboardRunsRequest: ListEvalSuiteLeaderboardRunsRequest,
194
+ ): string {
195
+ return JSON.stringify(
196
+ ListEvalSuiteLeaderboardRunsRequest$outboundSchema.parse(
197
+ listEvalSuiteLeaderboardRunsRequest,
198
+ ),
199
+ );
200
+ }
201
+ export function listEvalSuiteLeaderboardRunsRequestFromJSON(
202
+ jsonString: string,
203
+ ): SafeParseResult<ListEvalSuiteLeaderboardRunsRequest, SDKValidationError> {
204
+ return safeParse(
205
+ jsonString,
206
+ (x) =>
207
+ ListEvalSuiteLeaderboardRunsRequest$inboundSchema.parse(JSON.parse(x)),
208
+ `Failed to parse 'ListEvalSuiteLeaderboardRunsRequest' from JSON`,
209
+ );
210
+ }
211
+
212
+ /** @internal */
213
+ export const ListEvalSuiteLeaderboardRunsStop$inboundSchema: z.ZodType<
214
+ ListEvalSuiteLeaderboardRunsStop,
215
+ z.ZodTypeDef,
216
+ unknown
217
+ > = z.union([z.string(), z.array(z.string())]);
218
+ /** @internal */
219
+ export type ListEvalSuiteLeaderboardRunsStop$Outbound = string | Array<string>;
220
+
221
+ /** @internal */
222
+ export const ListEvalSuiteLeaderboardRunsStop$outboundSchema: z.ZodType<
223
+ ListEvalSuiteLeaderboardRunsStop$Outbound,
224
+ z.ZodTypeDef,
225
+ ListEvalSuiteLeaderboardRunsStop
226
+ > = z.union([z.string(), z.array(z.string())]);
227
+
228
+ export function listEvalSuiteLeaderboardRunsStopToJSON(
229
+ listEvalSuiteLeaderboardRunsStop: ListEvalSuiteLeaderboardRunsStop,
230
+ ): string {
231
+ return JSON.stringify(
232
+ ListEvalSuiteLeaderboardRunsStop$outboundSchema.parse(
233
+ listEvalSuiteLeaderboardRunsStop,
234
+ ),
235
+ );
236
+ }
237
+ export function listEvalSuiteLeaderboardRunsStopFromJSON(
238
+ jsonString: string,
239
+ ): SafeParseResult<ListEvalSuiteLeaderboardRunsStop, SDKValidationError> {
240
+ return safeParse(
241
+ jsonString,
242
+ (x) => ListEvalSuiteLeaderboardRunsStop$inboundSchema.parse(JSON.parse(x)),
243
+ `Failed to parse 'ListEvalSuiteLeaderboardRunsStop' from JSON`,
244
+ );
245
+ }
246
+
247
+ /** @internal */
248
+ export const ListEvalSuiteLeaderboardRunsTruncation$inboundSchema:
249
+ z.ZodNativeEnum<typeof ListEvalSuiteLeaderboardRunsTruncation> = z.nativeEnum(
250
+ ListEvalSuiteLeaderboardRunsTruncation,
251
+ );
252
+ /** @internal */
253
+ export const ListEvalSuiteLeaderboardRunsTruncation$outboundSchema:
254
+ z.ZodNativeEnum<typeof ListEvalSuiteLeaderboardRunsTruncation> =
255
+ ListEvalSuiteLeaderboardRunsTruncation$inboundSchema;
256
+
257
+ /** @internal */
258
+ export const ListEvalSuiteLeaderboardRunsServiceTier$inboundSchema:
259
+ z.ZodNativeEnum<typeof ListEvalSuiteLeaderboardRunsServiceTier> = z
260
+ .nativeEnum(ListEvalSuiteLeaderboardRunsServiceTier);
261
+ /** @internal */
262
+ export const ListEvalSuiteLeaderboardRunsServiceTier$outboundSchema:
263
+ z.ZodNativeEnum<typeof ListEvalSuiteLeaderboardRunsServiceTier> =
264
+ ListEvalSuiteLeaderboardRunsServiceTier$inboundSchema;
265
+
266
+ /** @internal */
267
+ export const ListEvalSuiteLeaderboardRunsPrefillThink$inboundSchema: z.ZodType<
268
+ ListEvalSuiteLeaderboardRunsPrefillThink,
269
+ z.ZodTypeDef,
270
+ unknown
271
+ > = z.union([z.boolean(), z.string()]);
272
+ /** @internal */
273
+ export type ListEvalSuiteLeaderboardRunsPrefillThink$Outbound =
274
+ | boolean
275
+ | string;
276
+
277
+ /** @internal */
278
+ export const ListEvalSuiteLeaderboardRunsPrefillThink$outboundSchema: z.ZodType<
279
+ ListEvalSuiteLeaderboardRunsPrefillThink$Outbound,
280
+ z.ZodTypeDef,
281
+ ListEvalSuiteLeaderboardRunsPrefillThink
282
+ > = z.union([z.boolean(), z.string()]);
283
+
284
+ export function listEvalSuiteLeaderboardRunsPrefillThinkToJSON(
285
+ listEvalSuiteLeaderboardRunsPrefillThink:
286
+ ListEvalSuiteLeaderboardRunsPrefillThink,
287
+ ): string {
288
+ return JSON.stringify(
289
+ ListEvalSuiteLeaderboardRunsPrefillThink$outboundSchema.parse(
290
+ listEvalSuiteLeaderboardRunsPrefillThink,
291
+ ),
292
+ );
293
+ }
294
+ export function listEvalSuiteLeaderboardRunsPrefillThinkFromJSON(
295
+ jsonString: string,
296
+ ): SafeParseResult<
297
+ ListEvalSuiteLeaderboardRunsPrefillThink,
298
+ SDKValidationError
299
+ > {
300
+ return safeParse(
301
+ jsonString,
302
+ (x) =>
303
+ ListEvalSuiteLeaderboardRunsPrefillThink$inboundSchema.parse(
304
+ JSON.parse(x),
305
+ ),
306
+ `Failed to parse 'ListEvalSuiteLeaderboardRunsPrefillThink' from JSON`,
307
+ );
308
+ }
309
+
310
+ /** @internal */
311
+ export const ListEvalSuiteLeaderboardRunsGeneration$inboundSchema: z.ZodType<
312
+ ListEvalSuiteLeaderboardRunsGeneration,
313
+ z.ZodTypeDef,
314
+ unknown
315
+ > = collectExtraKeys$(
316
+ z.object({
317
+ instructions: z.string().optional(),
318
+ temperature: z.number().optional(),
319
+ top_p: z.number().optional(),
320
+ max_output_tokens: z.number().int().optional(),
321
+ max_gen_toks: z.number().int().optional(),
322
+ stop: z.union([z.string(), z.array(z.string())]).optional(),
323
+ until: z.array(z.string()).optional(),
324
+ max_tool_calls: z.number().int().optional(),
325
+ reasoning: z.any().optional(),
326
+ text: z.any().optional(),
327
+ tools: z.array(z.nullable(z.any())).optional(),
328
+ tool_choice: z.any().optional(),
329
+ parallel_tool_calls: z.boolean().optional(),
330
+ truncation: ListEvalSuiteLeaderboardRunsTruncation$inboundSchema.optional(),
331
+ service_tier: ListEvalSuiteLeaderboardRunsServiceTier$inboundSchema
332
+ .optional(),
333
+ presence_penalty: z.number().optional(),
334
+ frequency_penalty: z.number().optional(),
335
+ top_k: z.number().int().optional(),
336
+ min_p: z.number().optional(),
337
+ repetition_penalty: z.number().optional(),
338
+ do_sample: z.boolean().optional(),
339
+ extra_body: z.record(z.any()).optional(),
340
+ chat_template_kwargs: z.record(z.any()).optional(),
341
+ prefill_think: z.union([z.boolean(), z.string()]).optional(),
342
+ use_cache: z.boolean().optional(),
343
+ timeout_seconds: z.number().int().optional(),
344
+ max_retries: z.number().int().optional(),
345
+ max_empty_retries: z.number().int().optional(),
346
+ }).catchall(z.any()),
347
+ "additionalProperties",
348
+ true,
349
+ ).transform((v) => {
350
+ return remap$(v, {
351
+ "top_p": "topP",
352
+ "max_output_tokens": "maxOutputTokens",
353
+ "max_gen_toks": "maxGenToks",
354
+ "max_tool_calls": "maxToolCalls",
355
+ "tool_choice": "toolChoice",
356
+ "parallel_tool_calls": "parallelToolCalls",
357
+ "service_tier": "serviceTier",
358
+ "presence_penalty": "presencePenalty",
359
+ "frequency_penalty": "frequencyPenalty",
360
+ "top_k": "topK",
361
+ "min_p": "minP",
362
+ "repetition_penalty": "repetitionPenalty",
363
+ "do_sample": "doSample",
364
+ "extra_body": "extraBody",
365
+ "chat_template_kwargs": "chatTemplateKwargs",
366
+ "prefill_think": "prefillThink",
367
+ "use_cache": "useCache",
368
+ "timeout_seconds": "timeoutSeconds",
369
+ "max_retries": "maxRetries",
370
+ "max_empty_retries": "maxEmptyRetries",
371
+ });
372
+ });
373
+ /** @internal */
374
+ export type ListEvalSuiteLeaderboardRunsGeneration$Outbound = {
375
+ instructions?: string | undefined;
376
+ temperature?: number | undefined;
377
+ top_p?: number | undefined;
378
+ max_output_tokens?: number | undefined;
379
+ max_gen_toks?: number | undefined;
380
+ stop?: string | Array<string> | undefined;
381
+ until?: Array<string> | undefined;
382
+ max_tool_calls?: number | undefined;
383
+ reasoning?: any | undefined;
384
+ text?: any | undefined;
385
+ tools?: Array<any | null> | undefined;
386
+ tool_choice?: any | undefined;
387
+ parallel_tool_calls?: boolean | undefined;
388
+ truncation?: string | undefined;
389
+ service_tier?: string | undefined;
390
+ presence_penalty?: number | undefined;
391
+ frequency_penalty?: number | undefined;
392
+ top_k?: number | undefined;
393
+ min_p?: number | undefined;
394
+ repetition_penalty?: number | undefined;
395
+ do_sample?: boolean | undefined;
396
+ extra_body?: { [k: string]: any } | undefined;
397
+ chat_template_kwargs?: { [k: string]: any } | undefined;
398
+ prefill_think?: boolean | string | undefined;
399
+ use_cache?: boolean | undefined;
400
+ timeout_seconds?: number | undefined;
401
+ max_retries?: number | undefined;
402
+ max_empty_retries?: number | undefined;
403
+ [additionalProperties: string]: unknown;
404
+ };
405
+
406
+ /** @internal */
407
+ export const ListEvalSuiteLeaderboardRunsGeneration$outboundSchema: z.ZodType<
408
+ ListEvalSuiteLeaderboardRunsGeneration$Outbound,
409
+ z.ZodTypeDef,
410
+ ListEvalSuiteLeaderboardRunsGeneration
411
+ > = z.object({
412
+ instructions: z.string().optional(),
413
+ temperature: z.number().optional(),
414
+ topP: z.number().optional(),
415
+ maxOutputTokens: z.number().int().optional(),
416
+ maxGenToks: z.number().int().optional(),
417
+ stop: z.union([z.string(), z.array(z.string())]).optional(),
418
+ until: z.array(z.string()).optional(),
419
+ maxToolCalls: z.number().int().optional(),
420
+ reasoning: z.any().optional(),
421
+ text: z.any().optional(),
422
+ tools: z.array(z.nullable(z.any())).optional(),
423
+ toolChoice: z.any().optional(),
424
+ parallelToolCalls: z.boolean().optional(),
425
+ truncation: ListEvalSuiteLeaderboardRunsTruncation$outboundSchema.optional(),
426
+ serviceTier: ListEvalSuiteLeaderboardRunsServiceTier$outboundSchema
427
+ .optional(),
428
+ presencePenalty: z.number().optional(),
429
+ frequencyPenalty: z.number().optional(),
430
+ topK: z.number().int().optional(),
431
+ minP: z.number().optional(),
432
+ repetitionPenalty: z.number().optional(),
433
+ doSample: z.boolean().optional(),
434
+ extraBody: z.record(z.any()).optional(),
435
+ chatTemplateKwargs: z.record(z.any()).optional(),
436
+ prefillThink: z.union([z.boolean(), z.string()]).optional(),
437
+ useCache: z.boolean().optional(),
438
+ timeoutSeconds: z.number().int().optional(),
439
+ maxRetries: z.number().int().optional(),
440
+ maxEmptyRetries: z.number().int().optional(),
441
+ additionalProperties: z.record(z.any()).optional(),
442
+ }).transform((v) => {
443
+ return {
444
+ ...v.additionalProperties,
445
+ ...remap$(v, {
446
+ topP: "top_p",
447
+ maxOutputTokens: "max_output_tokens",
448
+ maxGenToks: "max_gen_toks",
449
+ maxToolCalls: "max_tool_calls",
450
+ toolChoice: "tool_choice",
451
+ parallelToolCalls: "parallel_tool_calls",
452
+ serviceTier: "service_tier",
453
+ presencePenalty: "presence_penalty",
454
+ frequencyPenalty: "frequency_penalty",
455
+ topK: "top_k",
456
+ minP: "min_p",
457
+ repetitionPenalty: "repetition_penalty",
458
+ doSample: "do_sample",
459
+ extraBody: "extra_body",
460
+ chatTemplateKwargs: "chat_template_kwargs",
461
+ prefillThink: "prefill_think",
462
+ useCache: "use_cache",
463
+ timeoutSeconds: "timeout_seconds",
464
+ maxRetries: "max_retries",
465
+ maxEmptyRetries: "max_empty_retries",
466
+ additionalProperties: null,
467
+ }),
468
+ };
469
+ });
470
+
471
+ export function listEvalSuiteLeaderboardRunsGenerationToJSON(
472
+ listEvalSuiteLeaderboardRunsGeneration:
473
+ ListEvalSuiteLeaderboardRunsGeneration,
474
+ ): string {
475
+ return JSON.stringify(
476
+ ListEvalSuiteLeaderboardRunsGeneration$outboundSchema.parse(
477
+ listEvalSuiteLeaderboardRunsGeneration,
478
+ ),
479
+ );
480
+ }
481
+ export function listEvalSuiteLeaderboardRunsGenerationFromJSON(
482
+ jsonString: string,
483
+ ): SafeParseResult<ListEvalSuiteLeaderboardRunsGeneration, SDKValidationError> {
484
+ return safeParse(
485
+ jsonString,
486
+ (x) =>
487
+ ListEvalSuiteLeaderboardRunsGeneration$inboundSchema.parse(JSON.parse(x)),
488
+ `Failed to parse 'ListEvalSuiteLeaderboardRunsGeneration' from JSON`,
489
+ );
490
+ }
491
+
492
+ /** @internal */
493
+ export const ListEvalSuiteLeaderboardRunsRequestCounts$inboundSchema: z.ZodType<
494
+ ListEvalSuiteLeaderboardRunsRequestCounts,
495
+ z.ZodTypeDef,
496
+ unknown
497
+ > = z.object({
498
+ total: z.number().int(),
499
+ completed: z.number().int(),
500
+ failed: z.number().int(),
501
+ });
502
+ /** @internal */
503
+ export type ListEvalSuiteLeaderboardRunsRequestCounts$Outbound = {
504
+ total: number;
505
+ completed: number;
506
+ failed: number;
507
+ };
508
+
509
+ /** @internal */
510
+ export const ListEvalSuiteLeaderboardRunsRequestCounts$outboundSchema:
511
+ z.ZodType<
512
+ ListEvalSuiteLeaderboardRunsRequestCounts$Outbound,
513
+ z.ZodTypeDef,
514
+ ListEvalSuiteLeaderboardRunsRequestCounts
515
+ > = z.object({
516
+ total: z.number().int(),
517
+ completed: z.number().int(),
518
+ failed: z.number().int(),
519
+ });
520
+
521
+ export function listEvalSuiteLeaderboardRunsRequestCountsToJSON(
522
+ listEvalSuiteLeaderboardRunsRequestCounts:
523
+ ListEvalSuiteLeaderboardRunsRequestCounts,
524
+ ): string {
525
+ return JSON.stringify(
526
+ ListEvalSuiteLeaderboardRunsRequestCounts$outboundSchema.parse(
527
+ listEvalSuiteLeaderboardRunsRequestCounts,
528
+ ),
529
+ );
530
+ }
531
+ export function listEvalSuiteLeaderboardRunsRequestCountsFromJSON(
532
+ jsonString: string,
533
+ ): SafeParseResult<
534
+ ListEvalSuiteLeaderboardRunsRequestCounts,
535
+ SDKValidationError
536
+ > {
537
+ return safeParse(
538
+ jsonString,
539
+ (x) =>
540
+ ListEvalSuiteLeaderboardRunsRequestCounts$inboundSchema.parse(
541
+ JSON.parse(x),
542
+ ),
543
+ `Failed to parse 'ListEvalSuiteLeaderboardRunsRequestCounts' from JSON`,
544
+ );
545
+ }
546
+
547
+ /** @internal */
548
+ export const ListEvalSuiteLeaderboardRunsData$inboundSchema: z.ZodType<
549
+ ListEvalSuiteLeaderboardRunsData,
550
+ z.ZodTypeDef,
551
+ unknown
552
+ > = z.object({
553
+ id: z.string(),
554
+ object: z.literal("eval.run"),
555
+ suite_id: z.string(),
556
+ suite_version: z.number().int(),
557
+ suite_version_id: z.string(),
558
+ status: components.EvalRunStatus$inboundSchema,
559
+ models: z.array(z.string()),
560
+ task_ids: z.nullable(z.array(z.string())),
561
+ judge_model: z.nullable(z.string()),
562
+ embedding_model: z.nullable(z.string()),
563
+ generation: z.lazy(() =>
564
+ ListEvalSuiteLeaderboardRunsGeneration$inboundSchema
565
+ ),
566
+ request_counts: z.lazy(() =>
567
+ ListEvalSuiteLeaderboardRunsRequestCounts$inboundSchema
568
+ ),
569
+ metrics: z.nullable(z.record(z.any())),
570
+ error: z.nullable(z.record(z.any())),
571
+ artifact_file_ids: z.array(z.string()),
572
+ metadata: z.record(z.string()),
573
+ created_at: z.number().int(),
574
+ started_at: z.nullable(z.number().int()),
575
+ completed_at: z.nullable(z.number().int()),
576
+ cancelled_at: z.nullable(z.number().int()),
577
+ failed_at: z.nullable(z.number().int()),
578
+ }).transform((v) => {
579
+ return remap$(v, {
580
+ "suite_id": "suiteId",
581
+ "suite_version": "suiteVersion",
582
+ "suite_version_id": "suiteVersionId",
583
+ "task_ids": "taskIds",
584
+ "judge_model": "judgeModel",
585
+ "embedding_model": "embeddingModel",
586
+ "request_counts": "requestCounts",
587
+ "artifact_file_ids": "artifactFileIds",
588
+ "created_at": "createdAt",
589
+ "started_at": "startedAt",
590
+ "completed_at": "completedAt",
591
+ "cancelled_at": "cancelledAt",
592
+ "failed_at": "failedAt",
593
+ });
594
+ });
595
+ /** @internal */
596
+ export type ListEvalSuiteLeaderboardRunsData$Outbound = {
597
+ id: string;
598
+ object: "eval.run";
599
+ suite_id: string;
600
+ suite_version: number;
601
+ suite_version_id: string;
602
+ status: string;
603
+ models: Array<string>;
604
+ task_ids: Array<string> | null;
605
+ judge_model: string | null;
606
+ embedding_model: string | null;
607
+ generation: ListEvalSuiteLeaderboardRunsGeneration$Outbound;
608
+ request_counts: ListEvalSuiteLeaderboardRunsRequestCounts$Outbound;
609
+ metrics: { [k: string]: any } | null;
610
+ error: { [k: string]: any } | null;
611
+ artifact_file_ids: Array<string>;
612
+ metadata: { [k: string]: string };
613
+ created_at: number;
614
+ started_at: number | null;
615
+ completed_at: number | null;
616
+ cancelled_at: number | null;
617
+ failed_at: number | null;
618
+ };
619
+
620
+ /** @internal */
621
+ export const ListEvalSuiteLeaderboardRunsData$outboundSchema: z.ZodType<
622
+ ListEvalSuiteLeaderboardRunsData$Outbound,
623
+ z.ZodTypeDef,
624
+ ListEvalSuiteLeaderboardRunsData
625
+ > = z.object({
626
+ id: z.string(),
627
+ object: z.literal("eval.run"),
628
+ suiteId: z.string(),
629
+ suiteVersion: z.number().int(),
630
+ suiteVersionId: z.string(),
631
+ status: components.EvalRunStatus$outboundSchema,
632
+ models: z.array(z.string()),
633
+ taskIds: z.nullable(z.array(z.string())),
634
+ judgeModel: z.nullable(z.string()),
635
+ embeddingModel: z.nullable(z.string()),
636
+ generation: z.lazy(() =>
637
+ ListEvalSuiteLeaderboardRunsGeneration$outboundSchema
638
+ ),
639
+ requestCounts: z.lazy(() =>
640
+ ListEvalSuiteLeaderboardRunsRequestCounts$outboundSchema
641
+ ),
642
+ metrics: z.nullable(z.record(z.any())),
643
+ error: z.nullable(z.record(z.any())),
644
+ artifactFileIds: z.array(z.string()),
645
+ metadata: z.record(z.string()),
646
+ createdAt: z.number().int(),
647
+ startedAt: z.nullable(z.number().int()),
648
+ completedAt: z.nullable(z.number().int()),
649
+ cancelledAt: z.nullable(z.number().int()),
650
+ failedAt: z.nullable(z.number().int()),
651
+ }).transform((v) => {
652
+ return remap$(v, {
653
+ suiteId: "suite_id",
654
+ suiteVersion: "suite_version",
655
+ suiteVersionId: "suite_version_id",
656
+ taskIds: "task_ids",
657
+ judgeModel: "judge_model",
658
+ embeddingModel: "embedding_model",
659
+ requestCounts: "request_counts",
660
+ artifactFileIds: "artifact_file_ids",
661
+ createdAt: "created_at",
662
+ startedAt: "started_at",
663
+ completedAt: "completed_at",
664
+ cancelledAt: "cancelled_at",
665
+ failedAt: "failed_at",
666
+ });
667
+ });
668
+
669
+ export function listEvalSuiteLeaderboardRunsDataToJSON(
670
+ listEvalSuiteLeaderboardRunsData: ListEvalSuiteLeaderboardRunsData,
671
+ ): string {
672
+ return JSON.stringify(
673
+ ListEvalSuiteLeaderboardRunsData$outboundSchema.parse(
674
+ listEvalSuiteLeaderboardRunsData,
675
+ ),
676
+ );
677
+ }
678
+ export function listEvalSuiteLeaderboardRunsDataFromJSON(
679
+ jsonString: string,
680
+ ): SafeParseResult<ListEvalSuiteLeaderboardRunsData, SDKValidationError> {
681
+ return safeParse(
682
+ jsonString,
683
+ (x) => ListEvalSuiteLeaderboardRunsData$inboundSchema.parse(JSON.parse(x)),
684
+ `Failed to parse 'ListEvalSuiteLeaderboardRunsData' from JSON`,
685
+ );
686
+ }
687
+
688
+ /** @internal */
689
+ export const ListEvalSuiteLeaderboardRunsResponseBody$inboundSchema: z.ZodType<
690
+ ListEvalSuiteLeaderboardRunsResponseBody,
691
+ z.ZodTypeDef,
692
+ unknown
693
+ > = z.object({
694
+ object: z.literal("eval.leaderboard_runs"),
695
+ data: z.array(z.lazy(() => ListEvalSuiteLeaderboardRunsData$inboundSchema)),
696
+ groups: z.array(components.EvalLeaderboardRunGroup$inboundSchema),
697
+ truncated: z.boolean(),
698
+ next_cursor: z.nullable(z.string()),
699
+ }).transform((v) => {
700
+ return remap$(v, {
701
+ "next_cursor": "nextCursor",
702
+ });
703
+ });
704
+ /** @internal */
705
+ export type ListEvalSuiteLeaderboardRunsResponseBody$Outbound = {
706
+ object: "eval.leaderboard_runs";
707
+ data: Array<ListEvalSuiteLeaderboardRunsData$Outbound>;
708
+ groups: Array<components.EvalLeaderboardRunGroup$Outbound>;
709
+ truncated: boolean;
710
+ next_cursor: string | null;
711
+ };
712
+
713
+ /** @internal */
714
+ export const ListEvalSuiteLeaderboardRunsResponseBody$outboundSchema: z.ZodType<
715
+ ListEvalSuiteLeaderboardRunsResponseBody$Outbound,
716
+ z.ZodTypeDef,
717
+ ListEvalSuiteLeaderboardRunsResponseBody
718
+ > = z.object({
719
+ object: z.literal("eval.leaderboard_runs"),
720
+ data: z.array(z.lazy(() => ListEvalSuiteLeaderboardRunsData$outboundSchema)),
721
+ groups: z.array(components.EvalLeaderboardRunGroup$outboundSchema),
722
+ truncated: z.boolean(),
723
+ nextCursor: z.nullable(z.string()),
724
+ }).transform((v) => {
725
+ return remap$(v, {
726
+ nextCursor: "next_cursor",
727
+ });
728
+ });
729
+
730
+ export function listEvalSuiteLeaderboardRunsResponseBodyToJSON(
731
+ listEvalSuiteLeaderboardRunsResponseBody:
732
+ ListEvalSuiteLeaderboardRunsResponseBody,
733
+ ): string {
734
+ return JSON.stringify(
735
+ ListEvalSuiteLeaderboardRunsResponseBody$outboundSchema.parse(
736
+ listEvalSuiteLeaderboardRunsResponseBody,
737
+ ),
738
+ );
739
+ }
740
+ export function listEvalSuiteLeaderboardRunsResponseBodyFromJSON(
741
+ jsonString: string,
742
+ ): SafeParseResult<
743
+ ListEvalSuiteLeaderboardRunsResponseBody,
744
+ SDKValidationError
745
+ > {
746
+ return safeParse(
747
+ jsonString,
748
+ (x) =>
749
+ ListEvalSuiteLeaderboardRunsResponseBody$inboundSchema.parse(
750
+ JSON.parse(x),
751
+ ),
752
+ `Failed to parse 'ListEvalSuiteLeaderboardRunsResponseBody' from JSON`,
753
+ );
754
+ }