@meetkai/mka1 0.54.91 → 0.54.92

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 (302) hide show
  1. package/README.md +318 -318
  2. package/bin/mcp-server.js +2275 -1708
  3. package/bin/mcp-server.js.map +29 -15
  4. package/dist/commonjs/funcs/llmEvalsCreateSuiteShare.d.ts +20 -0
  5. package/dist/commonjs/funcs/llmEvalsCreateSuiteShare.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/llmEvalsCreateSuiteShare.js +137 -0
  7. package/dist/commonjs/funcs/llmEvalsCreateSuiteShare.js.map +1 -0
  8. package/dist/commonjs/funcs/llmEvalsDeleteSuiteShare.d.ts +20 -0
  9. package/dist/commonjs/funcs/llmEvalsDeleteSuiteShare.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/llmEvalsDeleteSuiteShare.js +138 -0
  11. package/dist/commonjs/funcs/llmEvalsDeleteSuiteShare.js.map +1 -0
  12. package/dist/commonjs/funcs/llmEvalsGetArtifacts.d.ts +1 -1
  13. package/dist/commonjs/funcs/llmEvalsGetArtifacts.js +1 -1
  14. package/dist/commonjs/funcs/llmEvalsListRuns.js +1 -0
  15. package/dist/commonjs/funcs/llmEvalsListRuns.js.map +1 -1
  16. package/dist/commonjs/funcs/llmEvalsListSuiteShares.d.ts +20 -0
  17. package/dist/commonjs/funcs/llmEvalsListSuiteShares.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/llmEvalsListSuiteShares.js +134 -0
  19. package/dist/commonjs/funcs/llmEvalsListSuiteShares.js.map +1 -0
  20. package/dist/commonjs/funcs/llmEvalsListSuites.js +1 -0
  21. package/dist/commonjs/funcs/llmEvalsListSuites.js.map +1 -1
  22. package/dist/commonjs/lib/config.d.ts +2 -2
  23. package/dist/commonjs/lib/config.js +2 -2
  24. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  25. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  26. package/dist/commonjs/mcp-server/server.js +7 -1
  27. package/dist/commonjs/mcp-server/server.js.map +1 -1
  28. package/dist/commonjs/mcp-server/tools/llmEvalsCreateSuiteShare.d.ts +8 -0
  29. package/dist/commonjs/mcp-server/tools/llmEvalsCreateSuiteShare.d.ts.map +1 -0
  30. package/dist/commonjs/mcp-server/tools/llmEvalsCreateSuiteShare.js +64 -0
  31. package/dist/commonjs/mcp-server/tools/llmEvalsCreateSuiteShare.js.map +1 -0
  32. package/dist/commonjs/mcp-server/tools/llmEvalsDeleteSuiteShare.d.ts +8 -0
  33. package/dist/commonjs/mcp-server/tools/llmEvalsDeleteSuiteShare.d.ts.map +1 -0
  34. package/dist/commonjs/mcp-server/tools/llmEvalsDeleteSuiteShare.js +64 -0
  35. package/dist/commonjs/mcp-server/tools/llmEvalsDeleteSuiteShare.js.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/llmEvalsGetArtifacts.js +1 -1
  37. package/dist/commonjs/mcp-server/tools/llmEvalsGetArtifacts.js.map +1 -1
  38. package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteShares.d.ts +8 -0
  39. package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteShares.d.ts.map +1 -0
  40. package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteShares.js +64 -0
  41. package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteShares.js.map +1 -0
  42. package/dist/commonjs/models/components/createevalsuitesharerequest.d.ts +20 -0
  43. package/dist/commonjs/models/components/createevalsuitesharerequest.d.ts.map +1 -0
  44. package/dist/commonjs/models/components/createevalsuitesharerequest.js +67 -0
  45. package/dist/commonjs/models/components/createevalsuitesharerequest.js.map +1 -0
  46. package/dist/commonjs/models/components/evalsuiteaccess.d.ts +18 -0
  47. package/dist/commonjs/models/components/evalsuiteaccess.d.ts.map +1 -0
  48. package/dist/commonjs/models/components/evalsuiteaccess.js +52 -0
  49. package/dist/commonjs/models/components/evalsuiteaccess.js.map +1 -0
  50. package/dist/commonjs/models/components/evalsuiteobject.d.ts +6 -0
  51. package/dist/commonjs/models/components/evalsuiteobject.d.ts.map +1 -1
  52. package/dist/commonjs/models/components/evalsuiteobject.js +3 -0
  53. package/dist/commonjs/models/components/evalsuiteobject.js.map +1 -1
  54. package/dist/commonjs/models/components/evalsuitesharedeletedobject.d.ts +24 -0
  55. package/dist/commonjs/models/components/evalsuitesharedeletedobject.d.ts.map +1 -0
  56. package/dist/commonjs/models/components/evalsuitesharedeletedobject.js +62 -0
  57. package/dist/commonjs/models/components/evalsuitesharedeletedobject.js.map +1 -0
  58. package/dist/commonjs/models/components/evalsuitesharelist.d.ts +23 -0
  59. package/dist/commonjs/models/components/evalsuitesharelist.d.ts.map +1 -0
  60. package/dist/commonjs/models/components/evalsuitesharelist.js +61 -0
  61. package/dist/commonjs/models/components/evalsuitesharelist.js.map +1 -0
  62. package/dist/commonjs/models/components/evalsuiteshareobject.d.ts +33 -0
  63. package/dist/commonjs/models/components/evalsuiteshareobject.d.ts.map +1 -0
  64. package/dist/commonjs/models/components/evalsuiteshareobject.js +83 -0
  65. package/dist/commonjs/models/components/evalsuiteshareobject.js.map +1 -0
  66. package/dist/commonjs/models/components/index.d.ts +5 -0
  67. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  68. package/dist/commonjs/models/components/index.js +5 -0
  69. package/dist/commonjs/models/components/index.js.map +1 -1
  70. package/dist/commonjs/models/operations/createevalsuiteshare.d.ts +25 -0
  71. package/dist/commonjs/models/operations/createevalsuiteshare.d.ts.map +1 -0
  72. package/dist/commonjs/models/operations/createevalsuiteshare.js +76 -0
  73. package/dist/commonjs/models/operations/createevalsuiteshare.js.map +1 -0
  74. package/dist/commonjs/models/operations/deleteevalsuiteshare.d.ts +24 -0
  75. package/dist/commonjs/models/operations/deleteevalsuiteshare.d.ts.map +1 -0
  76. package/dist/commonjs/models/operations/deleteevalsuiteshare.js +75 -0
  77. package/dist/commonjs/models/operations/deleteevalsuiteshare.js.map +1 -0
  78. package/dist/commonjs/models/operations/index.d.ts +3 -0
  79. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  80. package/dist/commonjs/models/operations/index.js +3 -0
  81. package/dist/commonjs/models/operations/index.js.map +1 -1
  82. package/dist/commonjs/models/operations/listevalruns.d.ts +2 -0
  83. package/dist/commonjs/models/operations/listevalruns.d.ts.map +1 -1
  84. package/dist/commonjs/models/operations/listevalruns.js +4 -0
  85. package/dist/commonjs/models/operations/listevalruns.js.map +1 -1
  86. package/dist/commonjs/models/operations/listevalsuites.d.ts +2 -0
  87. package/dist/commonjs/models/operations/listevalsuites.d.ts.map +1 -1
  88. package/dist/commonjs/models/operations/listevalsuites.js +4 -0
  89. package/dist/commonjs/models/operations/listevalsuites.js.map +1 -1
  90. package/dist/commonjs/models/operations/listevalsuiteshares.d.ts +22 -0
  91. package/dist/commonjs/models/operations/listevalsuiteshares.d.ts.map +1 -0
  92. package/dist/commonjs/models/operations/listevalsuiteshares.js +71 -0
  93. package/dist/commonjs/models/operations/listevalsuiteshares.js.map +1 -0
  94. package/dist/commonjs/react-query/index.d.ts +3 -0
  95. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  96. package/dist/commonjs/react-query/index.js +3 -0
  97. package/dist/commonjs/react-query/index.js.map +1 -1
  98. package/dist/commonjs/react-query/llmEvalsCreateSuiteShare.d.ts +29 -0
  99. package/dist/commonjs/react-query/llmEvalsCreateSuiteShare.d.ts.map +1 -0
  100. package/dist/commonjs/react-query/llmEvalsCreateSuiteShare.js +47 -0
  101. package/dist/commonjs/react-query/llmEvalsCreateSuiteShare.js.map +1 -0
  102. package/dist/commonjs/react-query/llmEvalsDeleteSuiteShare.d.ts +29 -0
  103. package/dist/commonjs/react-query/llmEvalsDeleteSuiteShare.d.ts.map +1 -0
  104. package/dist/commonjs/react-query/llmEvalsDeleteSuiteShare.js +47 -0
  105. package/dist/commonjs/react-query/llmEvalsDeleteSuiteShare.js.map +1 -0
  106. package/dist/commonjs/react-query/llmEvalsGetArtifacts.d.ts +2 -2
  107. package/dist/commonjs/react-query/llmEvalsGetArtifacts.js +2 -2
  108. package/dist/commonjs/react-query/llmEvalsListRuns.core.d.ts +1 -0
  109. package/dist/commonjs/react-query/llmEvalsListRuns.core.d.ts.map +1 -1
  110. package/dist/commonjs/react-query/llmEvalsListRuns.core.js +1 -0
  111. package/dist/commonjs/react-query/llmEvalsListRuns.core.js.map +1 -1
  112. package/dist/commonjs/react-query/llmEvalsListRuns.d.ts +2 -0
  113. package/dist/commonjs/react-query/llmEvalsListRuns.d.ts.map +1 -1
  114. package/dist/commonjs/react-query/llmEvalsListRuns.js.map +1 -1
  115. package/dist/commonjs/react-query/llmEvalsListSuiteShares.core.d.ts +15 -0
  116. package/dist/commonjs/react-query/llmEvalsListSuiteShares.core.d.ts.map +1 -0
  117. package/dist/commonjs/react-query/llmEvalsListSuiteShares.core.js +36 -0
  118. package/dist/commonjs/react-query/llmEvalsListSuiteShares.core.js.map +1 -0
  119. package/dist/commonjs/react-query/llmEvalsListSuiteShares.d.ts +38 -0
  120. package/dist/commonjs/react-query/llmEvalsListSuiteShares.d.ts.map +1 -0
  121. package/dist/commonjs/react-query/llmEvalsListSuiteShares.js +60 -0
  122. package/dist/commonjs/react-query/llmEvalsListSuiteShares.js.map +1 -0
  123. package/dist/commonjs/react-query/llmEvalsListSuites.core.d.ts +1 -0
  124. package/dist/commonjs/react-query/llmEvalsListSuites.core.d.ts.map +1 -1
  125. package/dist/commonjs/react-query/llmEvalsListSuites.core.js +1 -0
  126. package/dist/commonjs/react-query/llmEvalsListSuites.core.js.map +1 -1
  127. package/dist/commonjs/react-query/llmEvalsListSuites.d.ts +2 -0
  128. package/dist/commonjs/react-query/llmEvalsListSuites.d.ts.map +1 -1
  129. package/dist/commonjs/react-query/llmEvalsListSuites.js.map +1 -1
  130. package/dist/commonjs/sdk/evals.d.ts +22 -1
  131. package/dist/commonjs/sdk/evals.d.ts.map +1 -1
  132. package/dist/commonjs/sdk/evals.js +31 -1
  133. package/dist/commonjs/sdk/evals.js.map +1 -1
  134. package/dist/esm/funcs/llmEvalsCreateSuiteShare.d.ts +20 -0
  135. package/dist/esm/funcs/llmEvalsCreateSuiteShare.d.ts.map +1 -0
  136. package/dist/esm/funcs/llmEvalsCreateSuiteShare.js +101 -0
  137. package/dist/esm/funcs/llmEvalsCreateSuiteShare.js.map +1 -0
  138. package/dist/esm/funcs/llmEvalsDeleteSuiteShare.d.ts +20 -0
  139. package/dist/esm/funcs/llmEvalsDeleteSuiteShare.d.ts.map +1 -0
  140. package/dist/esm/funcs/llmEvalsDeleteSuiteShare.js +102 -0
  141. package/dist/esm/funcs/llmEvalsDeleteSuiteShare.js.map +1 -0
  142. package/dist/esm/funcs/llmEvalsGetArtifacts.d.ts +1 -1
  143. package/dist/esm/funcs/llmEvalsGetArtifacts.js +1 -1
  144. package/dist/esm/funcs/llmEvalsListRuns.js +1 -0
  145. package/dist/esm/funcs/llmEvalsListRuns.js.map +1 -1
  146. package/dist/esm/funcs/llmEvalsListSuiteShares.d.ts +20 -0
  147. package/dist/esm/funcs/llmEvalsListSuiteShares.d.ts.map +1 -0
  148. package/dist/esm/funcs/llmEvalsListSuiteShares.js +98 -0
  149. package/dist/esm/funcs/llmEvalsListSuiteShares.js.map +1 -0
  150. package/dist/esm/funcs/llmEvalsListSuites.js +1 -0
  151. package/dist/esm/funcs/llmEvalsListSuites.js.map +1 -1
  152. package/dist/esm/lib/config.d.ts +2 -2
  153. package/dist/esm/lib/config.js +2 -2
  154. package/dist/esm/mcp-server/mcp-server.js +1 -1
  155. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  156. package/dist/esm/mcp-server/server.js +7 -1
  157. package/dist/esm/mcp-server/server.js.map +1 -1
  158. package/dist/esm/mcp-server/tools/llmEvalsCreateSuiteShare.d.ts +8 -0
  159. package/dist/esm/mcp-server/tools/llmEvalsCreateSuiteShare.d.ts.map +1 -0
  160. package/dist/esm/mcp-server/tools/llmEvalsCreateSuiteShare.js +28 -0
  161. package/dist/esm/mcp-server/tools/llmEvalsCreateSuiteShare.js.map +1 -0
  162. package/dist/esm/mcp-server/tools/llmEvalsDeleteSuiteShare.d.ts +8 -0
  163. package/dist/esm/mcp-server/tools/llmEvalsDeleteSuiteShare.d.ts.map +1 -0
  164. package/dist/esm/mcp-server/tools/llmEvalsDeleteSuiteShare.js +28 -0
  165. package/dist/esm/mcp-server/tools/llmEvalsDeleteSuiteShare.js.map +1 -0
  166. package/dist/esm/mcp-server/tools/llmEvalsGetArtifacts.js +1 -1
  167. package/dist/esm/mcp-server/tools/llmEvalsGetArtifacts.js.map +1 -1
  168. package/dist/esm/mcp-server/tools/llmEvalsListSuiteShares.d.ts +8 -0
  169. package/dist/esm/mcp-server/tools/llmEvalsListSuiteShares.d.ts.map +1 -0
  170. package/dist/esm/mcp-server/tools/llmEvalsListSuiteShares.js +28 -0
  171. package/dist/esm/mcp-server/tools/llmEvalsListSuiteShares.js.map +1 -0
  172. package/dist/esm/models/components/createevalsuitesharerequest.d.ts +20 -0
  173. package/dist/esm/models/components/createevalsuitesharerequest.d.ts.map +1 -0
  174. package/dist/esm/models/components/createevalsuitesharerequest.js +29 -0
  175. package/dist/esm/models/components/createevalsuitesharerequest.js.map +1 -0
  176. package/dist/esm/models/components/evalsuiteaccess.d.ts +18 -0
  177. package/dist/esm/models/components/evalsuiteaccess.d.ts.map +1 -0
  178. package/dist/esm/models/components/evalsuiteaccess.js +16 -0
  179. package/dist/esm/models/components/evalsuiteaccess.js.map +1 -0
  180. package/dist/esm/models/components/evalsuiteobject.d.ts +6 -0
  181. package/dist/esm/models/components/evalsuiteobject.d.ts.map +1 -1
  182. package/dist/esm/models/components/evalsuiteobject.js +3 -0
  183. package/dist/esm/models/components/evalsuiteobject.js.map +1 -1
  184. package/dist/esm/models/components/evalsuitesharedeletedobject.d.ts +24 -0
  185. package/dist/esm/models/components/evalsuitesharedeletedobject.d.ts.map +1 -0
  186. package/dist/esm/models/components/evalsuitesharedeletedobject.js +24 -0
  187. package/dist/esm/models/components/evalsuitesharedeletedobject.js.map +1 -0
  188. package/dist/esm/models/components/evalsuitesharelist.d.ts +23 -0
  189. package/dist/esm/models/components/evalsuitesharelist.d.ts.map +1 -0
  190. package/dist/esm/models/components/evalsuitesharelist.js +23 -0
  191. package/dist/esm/models/components/evalsuitesharelist.js.map +1 -0
  192. package/dist/esm/models/components/evalsuiteshareobject.d.ts +33 -0
  193. package/dist/esm/models/components/evalsuiteshareobject.d.ts.map +1 -0
  194. package/dist/esm/models/components/evalsuiteshareobject.js +45 -0
  195. package/dist/esm/models/components/evalsuiteshareobject.js.map +1 -0
  196. package/dist/esm/models/components/index.d.ts +5 -0
  197. package/dist/esm/models/components/index.d.ts.map +1 -1
  198. package/dist/esm/models/components/index.js +5 -0
  199. package/dist/esm/models/components/index.js.map +1 -1
  200. package/dist/esm/models/operations/createevalsuiteshare.d.ts +25 -0
  201. package/dist/esm/models/operations/createevalsuiteshare.d.ts.map +1 -0
  202. package/dist/esm/models/operations/createevalsuiteshare.js +38 -0
  203. package/dist/esm/models/operations/createevalsuiteshare.js.map +1 -0
  204. package/dist/esm/models/operations/deleteevalsuiteshare.d.ts +24 -0
  205. package/dist/esm/models/operations/deleteevalsuiteshare.d.ts.map +1 -0
  206. package/dist/esm/models/operations/deleteevalsuiteshare.js +37 -0
  207. package/dist/esm/models/operations/deleteevalsuiteshare.js.map +1 -0
  208. package/dist/esm/models/operations/index.d.ts +3 -0
  209. package/dist/esm/models/operations/index.d.ts.map +1 -1
  210. package/dist/esm/models/operations/index.js +3 -0
  211. package/dist/esm/models/operations/index.js.map +1 -1
  212. package/dist/esm/models/operations/listevalruns.d.ts +2 -0
  213. package/dist/esm/models/operations/listevalruns.d.ts.map +1 -1
  214. package/dist/esm/models/operations/listevalruns.js +4 -0
  215. package/dist/esm/models/operations/listevalruns.js.map +1 -1
  216. package/dist/esm/models/operations/listevalsuites.d.ts +2 -0
  217. package/dist/esm/models/operations/listevalsuites.d.ts.map +1 -1
  218. package/dist/esm/models/operations/listevalsuites.js +4 -0
  219. package/dist/esm/models/operations/listevalsuites.js.map +1 -1
  220. package/dist/esm/models/operations/listevalsuiteshares.d.ts +22 -0
  221. package/dist/esm/models/operations/listevalsuiteshares.d.ts.map +1 -0
  222. package/dist/esm/models/operations/listevalsuiteshares.js +33 -0
  223. package/dist/esm/models/operations/listevalsuiteshares.js.map +1 -0
  224. package/dist/esm/react-query/index.d.ts +3 -0
  225. package/dist/esm/react-query/index.d.ts.map +1 -1
  226. package/dist/esm/react-query/index.js +3 -0
  227. package/dist/esm/react-query/index.js.map +1 -1
  228. package/dist/esm/react-query/llmEvalsCreateSuiteShare.d.ts +29 -0
  229. package/dist/esm/react-query/llmEvalsCreateSuiteShare.d.ts.map +1 -0
  230. package/dist/esm/react-query/llmEvalsCreateSuiteShare.js +42 -0
  231. package/dist/esm/react-query/llmEvalsCreateSuiteShare.js.map +1 -0
  232. package/dist/esm/react-query/llmEvalsDeleteSuiteShare.d.ts +29 -0
  233. package/dist/esm/react-query/llmEvalsDeleteSuiteShare.d.ts.map +1 -0
  234. package/dist/esm/react-query/llmEvalsDeleteSuiteShare.js +42 -0
  235. package/dist/esm/react-query/llmEvalsDeleteSuiteShare.js.map +1 -0
  236. package/dist/esm/react-query/llmEvalsGetArtifacts.d.ts +2 -2
  237. package/dist/esm/react-query/llmEvalsGetArtifacts.js +2 -2
  238. package/dist/esm/react-query/llmEvalsListRuns.core.d.ts +1 -0
  239. package/dist/esm/react-query/llmEvalsListRuns.core.d.ts.map +1 -1
  240. package/dist/esm/react-query/llmEvalsListRuns.core.js +1 -0
  241. package/dist/esm/react-query/llmEvalsListRuns.core.js.map +1 -1
  242. package/dist/esm/react-query/llmEvalsListRuns.d.ts +2 -0
  243. package/dist/esm/react-query/llmEvalsListRuns.d.ts.map +1 -1
  244. package/dist/esm/react-query/llmEvalsListRuns.js.map +1 -1
  245. package/dist/esm/react-query/llmEvalsListSuiteShares.core.d.ts +15 -0
  246. package/dist/esm/react-query/llmEvalsListSuiteShares.core.d.ts.map +1 -0
  247. package/dist/esm/react-query/llmEvalsListSuiteShares.core.js +31 -0
  248. package/dist/esm/react-query/llmEvalsListSuiteShares.core.js.map +1 -0
  249. package/dist/esm/react-query/llmEvalsListSuiteShares.d.ts +38 -0
  250. package/dist/esm/react-query/llmEvalsListSuiteShares.d.ts.map +1 -0
  251. package/dist/esm/react-query/llmEvalsListSuiteShares.js +50 -0
  252. package/dist/esm/react-query/llmEvalsListSuiteShares.js.map +1 -0
  253. package/dist/esm/react-query/llmEvalsListSuites.core.d.ts +1 -0
  254. package/dist/esm/react-query/llmEvalsListSuites.core.d.ts.map +1 -1
  255. package/dist/esm/react-query/llmEvalsListSuites.core.js +1 -0
  256. package/dist/esm/react-query/llmEvalsListSuites.core.js.map +1 -1
  257. package/dist/esm/react-query/llmEvalsListSuites.d.ts +2 -0
  258. package/dist/esm/react-query/llmEvalsListSuites.d.ts.map +1 -1
  259. package/dist/esm/react-query/llmEvalsListSuites.js.map +1 -1
  260. package/dist/esm/sdk/evals.d.ts +22 -1
  261. package/dist/esm/sdk/evals.d.ts.map +1 -1
  262. package/dist/esm/sdk/evals.js +31 -1
  263. package/dist/esm/sdk/evals.js.map +1 -1
  264. package/jsr.json +1 -1
  265. package/package.json +1 -1
  266. package/src/funcs/llmEvalsCreateSuiteShare.ts +191 -0
  267. package/src/funcs/llmEvalsDeleteSuiteShare.ts +192 -0
  268. package/src/funcs/llmEvalsGetArtifacts.ts +1 -1
  269. package/src/funcs/llmEvalsListRuns.ts +1 -0
  270. package/src/funcs/llmEvalsListSuiteShares.ts +188 -0
  271. package/src/funcs/llmEvalsListSuites.ts +1 -0
  272. package/src/lib/config.ts +2 -2
  273. package/src/mcp-server/mcp-server.ts +1 -1
  274. package/src/mcp-server/server.ts +7 -1
  275. package/src/mcp-server/tools/llmEvalsCreateSuiteShare.ts +37 -0
  276. package/src/mcp-server/tools/llmEvalsDeleteSuiteShare.ts +37 -0
  277. package/src/mcp-server/tools/llmEvalsGetArtifacts.ts +1 -1
  278. package/src/mcp-server/tools/llmEvalsListSuiteShares.ts +37 -0
  279. package/src/models/components/createevalsuitesharerequest.ts +65 -0
  280. package/src/models/components/evalsuiteaccess.ts +27 -0
  281. package/src/models/components/evalsuiteobject.ts +12 -0
  282. package/src/models/components/evalsuitesharedeletedobject.ts +64 -0
  283. package/src/models/components/evalsuitesharelist.ts +64 -0
  284. package/src/models/components/evalsuiteshareobject.ts +92 -0
  285. package/src/models/components/index.ts +5 -0
  286. package/src/models/operations/createevalsuiteshare.ts +80 -0
  287. package/src/models/operations/deleteevalsuiteshare.ts +77 -0
  288. package/src/models/operations/index.ts +3 -0
  289. package/src/models/operations/listevalruns.ts +6 -0
  290. package/src/models/operations/listevalsuites.ts +6 -0
  291. package/src/models/operations/listevalsuiteshares.ts +69 -0
  292. package/src/react-query/index.ts +3 -0
  293. package/src/react-query/llmEvalsCreateSuiteShare.ts +110 -0
  294. package/src/react-query/llmEvalsDeleteSuiteShare.ts +110 -0
  295. package/src/react-query/llmEvalsGetArtifacts.ts +2 -2
  296. package/src/react-query/llmEvalsListRuns.core.ts +2 -0
  297. package/src/react-query/llmEvalsListRuns.ts +2 -0
  298. package/src/react-query/llmEvalsListSuiteShares.core.ts +76 -0
  299. package/src/react-query/llmEvalsListSuiteShares.ts +141 -0
  300. package/src/react-query/llmEvalsListSuites.core.ts +2 -0
  301. package/src/react-query/llmEvalsListSuites.ts +2 -0
  302. package/src/sdk/evals.ts +55 -1
@@ -0,0 +1,92 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type EvalSuiteShareObject = {
12
+ id: string;
13
+ object: "eval.suite.share";
14
+ suiteId: string;
15
+ /**
16
+ * The org granted read-only access.
17
+ */
18
+ orgId: string;
19
+ /**
20
+ * The user id that granted the share.
21
+ */
22
+ grantedBy: string;
23
+ createdAt: number;
24
+ };
25
+
26
+ /** @internal */
27
+ export const EvalSuiteShareObject$inboundSchema: z.ZodType<
28
+ EvalSuiteShareObject,
29
+ z.ZodTypeDef,
30
+ unknown
31
+ > = z.object({
32
+ id: z.string(),
33
+ object: z.literal("eval.suite.share"),
34
+ suite_id: z.string(),
35
+ org_id: z.string(),
36
+ granted_by: z.string(),
37
+ created_at: z.number().int(),
38
+ }).transform((v) => {
39
+ return remap$(v, {
40
+ "suite_id": "suiteId",
41
+ "org_id": "orgId",
42
+ "granted_by": "grantedBy",
43
+ "created_at": "createdAt",
44
+ });
45
+ });
46
+ /** @internal */
47
+ export type EvalSuiteShareObject$Outbound = {
48
+ id: string;
49
+ object: "eval.suite.share";
50
+ suite_id: string;
51
+ org_id: string;
52
+ granted_by: string;
53
+ created_at: number;
54
+ };
55
+
56
+ /** @internal */
57
+ export const EvalSuiteShareObject$outboundSchema: z.ZodType<
58
+ EvalSuiteShareObject$Outbound,
59
+ z.ZodTypeDef,
60
+ EvalSuiteShareObject
61
+ > = z.object({
62
+ id: z.string(),
63
+ object: z.literal("eval.suite.share"),
64
+ suiteId: z.string(),
65
+ orgId: z.string(),
66
+ grantedBy: z.string(),
67
+ createdAt: z.number().int(),
68
+ }).transform((v) => {
69
+ return remap$(v, {
70
+ suiteId: "suite_id",
71
+ orgId: "org_id",
72
+ grantedBy: "granted_by",
73
+ createdAt: "created_at",
74
+ });
75
+ });
76
+
77
+ export function evalSuiteShareObjectToJSON(
78
+ evalSuiteShareObject: EvalSuiteShareObject,
79
+ ): string {
80
+ return JSON.stringify(
81
+ EvalSuiteShareObject$outboundSchema.parse(evalSuiteShareObject),
82
+ );
83
+ }
84
+ export function evalSuiteShareObjectFromJSON(
85
+ jsonString: string,
86
+ ): SafeParseResult<EvalSuiteShareObject, SDKValidationError> {
87
+ return safeParse(
88
+ jsonString,
89
+ (x) => EvalSuiteShareObject$inboundSchema.parse(JSON.parse(x)),
90
+ `Failed to parse 'EvalSuiteShareObject' from JSON`,
91
+ );
92
+ }
@@ -207,6 +207,7 @@ export * from "./createdby.js";
207
207
  export * from "./createevalrunrequest.js";
208
208
  export * from "./createevalschedulerequest.js";
209
209
  export * from "./createevalsuiterequest.js";
210
+ export * from "./createevalsuitesharerequest.js";
210
211
  export * from "./createevalsuiteversionrequest.js";
211
212
  export * from "./createfeedbackrequest.js";
212
213
  export * from "./createfeedbackresponse.js";
@@ -296,11 +297,15 @@ export * from "./evalsampletrajectoryuploadedobject.js";
296
297
  export * from "./evalscheduledeletedobject.js";
297
298
  export * from "./evalscheduleoverlappolicy.js";
298
299
  export * from "./evalschedulerunrequestconfig.js";
300
+ export * from "./evalsuiteaccess.js";
299
301
  export * from "./evalsuitedeletedobject.js";
300
302
  export * from "./evalsuiteleaderboard.js";
301
303
  export * from "./evalsuitelist.js";
302
304
  export * from "./evalsuitemanifest.js";
303
305
  export * from "./evalsuiteobject.js";
306
+ export * from "./evalsuitesharedeletedobject.js";
307
+ export * from "./evalsuitesharelist.js";
308
+ export * from "./evalsuiteshareobject.js";
304
309
  export * from "./evalsuitetokenmeasurement.js";
305
310
  export * from "./evaltask.js";
306
311
  export * from "./evaltasktype.js";
@@ -0,0 +1,80 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type CreateEvalSuiteShareRequest = {
13
+ suiteId: string;
14
+ /**
15
+ * Optional external end-user identifier forwarded by the API gateway.
16
+ */
17
+ xOnBehalfOf?: string | undefined;
18
+ createEvalSuiteShareRequest: components.CreateEvalSuiteShareRequest;
19
+ };
20
+
21
+ /** @internal */
22
+ export const CreateEvalSuiteShareRequest$inboundSchema: z.ZodType<
23
+ CreateEvalSuiteShareRequest,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ suite_id: z.string(),
28
+ "X-On-Behalf-Of": z.string().optional(),
29
+ CreateEvalSuiteShareRequest:
30
+ components.CreateEvalSuiteShareRequest$inboundSchema,
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "suite_id": "suiteId",
34
+ "X-On-Behalf-Of": "xOnBehalfOf",
35
+ "CreateEvalSuiteShareRequest": "createEvalSuiteShareRequest",
36
+ });
37
+ });
38
+ /** @internal */
39
+ export type CreateEvalSuiteShareRequest$Outbound = {
40
+ suite_id: string;
41
+ "X-On-Behalf-Of"?: string | undefined;
42
+ CreateEvalSuiteShareRequest: components.CreateEvalSuiteShareRequest$Outbound;
43
+ };
44
+
45
+ /** @internal */
46
+ export const CreateEvalSuiteShareRequest$outboundSchema: z.ZodType<
47
+ CreateEvalSuiteShareRequest$Outbound,
48
+ z.ZodTypeDef,
49
+ CreateEvalSuiteShareRequest
50
+ > = z.object({
51
+ suiteId: z.string(),
52
+ xOnBehalfOf: z.string().optional(),
53
+ createEvalSuiteShareRequest:
54
+ components.CreateEvalSuiteShareRequest$outboundSchema,
55
+ }).transform((v) => {
56
+ return remap$(v, {
57
+ suiteId: "suite_id",
58
+ xOnBehalfOf: "X-On-Behalf-Of",
59
+ createEvalSuiteShareRequest: "CreateEvalSuiteShareRequest",
60
+ });
61
+ });
62
+
63
+ export function createEvalSuiteShareRequestToJSON(
64
+ createEvalSuiteShareRequest: CreateEvalSuiteShareRequest,
65
+ ): string {
66
+ return JSON.stringify(
67
+ CreateEvalSuiteShareRequest$outboundSchema.parse(
68
+ createEvalSuiteShareRequest,
69
+ ),
70
+ );
71
+ }
72
+ export function createEvalSuiteShareRequestFromJSON(
73
+ jsonString: string,
74
+ ): SafeParseResult<CreateEvalSuiteShareRequest, SDKValidationError> {
75
+ return safeParse(
76
+ jsonString,
77
+ (x) => CreateEvalSuiteShareRequest$inboundSchema.parse(JSON.parse(x)),
78
+ `Failed to parse 'CreateEvalSuiteShareRequest' from JSON`,
79
+ );
80
+ }
@@ -0,0 +1,77 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type DeleteEvalSuiteShareRequest = {
12
+ suiteId: string;
13
+ orgId: string;
14
+ /**
15
+ * Optional external end-user identifier forwarded by the API gateway.
16
+ */
17
+ xOnBehalfOf?: string | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const DeleteEvalSuiteShareRequest$inboundSchema: z.ZodType<
22
+ DeleteEvalSuiteShareRequest,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ suite_id: z.string(),
27
+ org_id: z.string(),
28
+ "X-On-Behalf-Of": z.string().optional(),
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "suite_id": "suiteId",
32
+ "org_id": "orgId",
33
+ "X-On-Behalf-Of": "xOnBehalfOf",
34
+ });
35
+ });
36
+ /** @internal */
37
+ export type DeleteEvalSuiteShareRequest$Outbound = {
38
+ suite_id: string;
39
+ org_id: string;
40
+ "X-On-Behalf-Of"?: string | undefined;
41
+ };
42
+
43
+ /** @internal */
44
+ export const DeleteEvalSuiteShareRequest$outboundSchema: z.ZodType<
45
+ DeleteEvalSuiteShareRequest$Outbound,
46
+ z.ZodTypeDef,
47
+ DeleteEvalSuiteShareRequest
48
+ > = z.object({
49
+ suiteId: z.string(),
50
+ orgId: z.string(),
51
+ xOnBehalfOf: z.string().optional(),
52
+ }).transform((v) => {
53
+ return remap$(v, {
54
+ suiteId: "suite_id",
55
+ orgId: "org_id",
56
+ xOnBehalfOf: "X-On-Behalf-Of",
57
+ });
58
+ });
59
+
60
+ export function deleteEvalSuiteShareRequestToJSON(
61
+ deleteEvalSuiteShareRequest: DeleteEvalSuiteShareRequest,
62
+ ): string {
63
+ return JSON.stringify(
64
+ DeleteEvalSuiteShareRequest$outboundSchema.parse(
65
+ deleteEvalSuiteShareRequest,
66
+ ),
67
+ );
68
+ }
69
+ export function deleteEvalSuiteShareRequestFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<DeleteEvalSuiteShareRequest, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => DeleteEvalSuiteShareRequest$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'DeleteEvalSuiteShareRequest' from JSON`,
76
+ );
77
+ }
@@ -60,6 +60,7 @@ export * from "./createcomputesecret.js";
60
60
  export * from "./createevalrun.js";
61
61
  export * from "./createevalschedule.js";
62
62
  export * from "./createevalsuite.js";
63
+ export * from "./createevalsuiteshare.js";
63
64
  export * from "./createevalsuiteversion.js";
64
65
  export * from "./createextractschema.js";
65
66
  export * from "./createfeatureflag.js";
@@ -105,6 +106,7 @@ export * from "./deletecomputesecret.js";
105
106
  export * from "./deleteevalrun.js";
106
107
  export * from "./deleteevalschedule.js";
107
108
  export * from "./deleteevalsuite.js";
109
+ export * from "./deleteevalsuiteshare.js";
108
110
  export * from "./deleteexternaluserbudget.js";
109
111
  export * from "./deleteexternaluserdefaultbudget.js";
110
112
  export * from "./deleteextractschema.js";
@@ -277,6 +279,7 @@ export * from "./listevalscheduleruns.js";
277
279
  export * from "./listevalschedules.js";
278
280
  export * from "./listevalsuiteleaderboardruns.js";
279
281
  export * from "./listevalsuites.js";
282
+ export * from "./listevalsuiteshares.js";
280
283
  export * from "./listevalsuiteversions.js";
281
284
  export * from "./listexternaluserbudgetevents.js";
282
285
  export * from "./listexternaluserdefaultbudgetevents.js";
@@ -29,6 +29,7 @@ export type ListEvalRunsQueryParamStatus = ClosedEnum<
29
29
  export type ListEvalRunsRequest = {
30
30
  after?: string | undefined;
31
31
  limit?: number | undefined;
32
+ ownedOnly?: boolean | undefined;
32
33
  suiteId?: string | undefined;
33
34
  suiteVersion?: number | undefined;
34
35
  status?: ListEvalRunsQueryParamStatus | undefined;
@@ -201,12 +202,14 @@ export const ListEvalRunsRequest$inboundSchema: z.ZodType<
201
202
  > = z.object({
202
203
  after: z.string().optional(),
203
204
  limit: z.number().int().default(20),
205
+ owned_only: z.boolean().default(false),
204
206
  suite_id: z.string().optional(),
205
207
  suite_version: z.number().int().optional(),
206
208
  status: ListEvalRunsQueryParamStatus$inboundSchema.optional(),
207
209
  "X-On-Behalf-Of": z.string().optional(),
208
210
  }).transform((v) => {
209
211
  return remap$(v, {
212
+ "owned_only": "ownedOnly",
210
213
  "suite_id": "suiteId",
211
214
  "suite_version": "suiteVersion",
212
215
  "X-On-Behalf-Of": "xOnBehalfOf",
@@ -216,6 +219,7 @@ export const ListEvalRunsRequest$inboundSchema: z.ZodType<
216
219
  export type ListEvalRunsRequest$Outbound = {
217
220
  after?: string | undefined;
218
221
  limit: number;
222
+ owned_only: boolean;
219
223
  suite_id?: string | undefined;
220
224
  suite_version?: number | undefined;
221
225
  status?: string | undefined;
@@ -230,12 +234,14 @@ export const ListEvalRunsRequest$outboundSchema: z.ZodType<
230
234
  > = z.object({
231
235
  after: z.string().optional(),
232
236
  limit: z.number().int().default(20),
237
+ ownedOnly: z.boolean().default(false),
233
238
  suiteId: z.string().optional(),
234
239
  suiteVersion: z.number().int().optional(),
235
240
  status: ListEvalRunsQueryParamStatus$outboundSchema.optional(),
236
241
  xOnBehalfOf: z.string().optional(),
237
242
  }).transform((v) => {
238
243
  return remap$(v, {
244
+ ownedOnly: "owned_only",
239
245
  suiteId: "suite_id",
240
246
  suiteVersion: "suite_version",
241
247
  xOnBehalfOf: "X-On-Behalf-Of",
@@ -11,6 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
  export type ListEvalSuitesRequest = {
12
12
  after?: string | undefined;
13
13
  limit?: number | undefined;
14
+ ownedOnly?: boolean | undefined;
14
15
  /**
15
16
  * Optional external end-user identifier forwarded by the API gateway.
16
17
  */
@@ -25,9 +26,11 @@ export const ListEvalSuitesRequest$inboundSchema: z.ZodType<
25
26
  > = z.object({
26
27
  after: z.string().optional(),
27
28
  limit: z.number().int().default(20),
29
+ owned_only: z.boolean().default(false),
28
30
  "X-On-Behalf-Of": z.string().optional(),
29
31
  }).transform((v) => {
30
32
  return remap$(v, {
33
+ "owned_only": "ownedOnly",
31
34
  "X-On-Behalf-Of": "xOnBehalfOf",
32
35
  });
33
36
  });
@@ -35,6 +38,7 @@ export const ListEvalSuitesRequest$inboundSchema: z.ZodType<
35
38
  export type ListEvalSuitesRequest$Outbound = {
36
39
  after?: string | undefined;
37
40
  limit: number;
41
+ owned_only: boolean;
38
42
  "X-On-Behalf-Of"?: string | undefined;
39
43
  };
40
44
 
@@ -46,9 +50,11 @@ export const ListEvalSuitesRequest$outboundSchema: z.ZodType<
46
50
  > = z.object({
47
51
  after: z.string().optional(),
48
52
  limit: z.number().int().default(20),
53
+ ownedOnly: z.boolean().default(false),
49
54
  xOnBehalfOf: z.string().optional(),
50
55
  }).transform((v) => {
51
56
  return remap$(v, {
57
+ ownedOnly: "owned_only",
52
58
  xOnBehalfOf: "X-On-Behalf-Of",
53
59
  });
54
60
  });
@@ -0,0 +1,69 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type ListEvalSuiteSharesRequest = {
12
+ suiteId: string;
13
+ /**
14
+ * Optional external end-user identifier forwarded by the API gateway.
15
+ */
16
+ xOnBehalfOf?: string | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const ListEvalSuiteSharesRequest$inboundSchema: z.ZodType<
21
+ ListEvalSuiteSharesRequest,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ suite_id: z.string(),
26
+ "X-On-Behalf-Of": z.string().optional(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ "suite_id": "suiteId",
30
+ "X-On-Behalf-Of": "xOnBehalfOf",
31
+ });
32
+ });
33
+ /** @internal */
34
+ export type ListEvalSuiteSharesRequest$Outbound = {
35
+ suite_id: string;
36
+ "X-On-Behalf-Of"?: string | undefined;
37
+ };
38
+
39
+ /** @internal */
40
+ export const ListEvalSuiteSharesRequest$outboundSchema: z.ZodType<
41
+ ListEvalSuiteSharesRequest$Outbound,
42
+ z.ZodTypeDef,
43
+ ListEvalSuiteSharesRequest
44
+ > = z.object({
45
+ suiteId: z.string(),
46
+ xOnBehalfOf: z.string().optional(),
47
+ }).transform((v) => {
48
+ return remap$(v, {
49
+ suiteId: "suite_id",
50
+ xOnBehalfOf: "X-On-Behalf-Of",
51
+ });
52
+ });
53
+
54
+ export function listEvalSuiteSharesRequestToJSON(
55
+ listEvalSuiteSharesRequest: ListEvalSuiteSharesRequest,
56
+ ): string {
57
+ return JSON.stringify(
58
+ ListEvalSuiteSharesRequest$outboundSchema.parse(listEvalSuiteSharesRequest),
59
+ );
60
+ }
61
+ export function listEvalSuiteSharesRequestFromJSON(
62
+ jsonString: string,
63
+ ): SafeParseResult<ListEvalSuiteSharesRequest, SDKValidationError> {
64
+ return safeParse(
65
+ jsonString,
66
+ (x) => ListEvalSuiteSharesRequest$inboundSchema.parse(JSON.parse(x)),
67
+ `Failed to parse 'ListEvalSuiteSharesRequest' from JSON`,
68
+ );
69
+ }
@@ -225,10 +225,12 @@ export * from "./llmEvalsCancelRun.js";
225
225
  export * from "./llmEvalsCreateRun.js";
226
226
  export * from "./llmEvalsCreateSchedule.js";
227
227
  export * from "./llmEvalsCreateSuite.js";
228
+ export * from "./llmEvalsCreateSuiteShare.js";
228
229
  export * from "./llmEvalsCreateSuiteVersion.js";
229
230
  export * from "./llmEvalsDeleteRun.js";
230
231
  export * from "./llmEvalsDeleteSchedule.js";
231
232
  export * from "./llmEvalsDeleteSuite.js";
233
+ export * from "./llmEvalsDeleteSuiteShare.js";
232
234
  export * from "./llmEvalsGetArtifacts.js";
233
235
  export * from "./llmEvalsGetRun.js";
234
236
  export * from "./llmEvalsGetRunOverview.js";
@@ -246,6 +248,7 @@ export * from "./llmEvalsListScheduleRuns.js";
246
248
  export * from "./llmEvalsListSchedules.js";
247
249
  export * from "./llmEvalsListSuiteLeaderboardRuns.js";
248
250
  export * from "./llmEvalsListSuites.js";
251
+ export * from "./llmEvalsListSuiteShares.js";
249
252
  export * from "./llmEvalsListSuiteVersions.js";
250
253
  export * from "./llmEvalsMeasureSuiteTokens.js";
251
254
  export * from "./llmEvalsRerunFailedSamples.js";
@@ -0,0 +1,110 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ MutationKey,
7
+ useMutation,
8
+ UseMutationResult,
9
+ } from "@tanstack/react-query";
10
+ import { SDKCore } from "../core.js";
11
+ import { llmEvalsCreateSuiteShare } from "../funcs/llmEvalsCreateSuiteShare.js";
12
+ import { combineSignals } from "../lib/primitives.js";
13
+ import { RequestOptions } from "../lib/sdks.js";
14
+ import * as components from "../models/components/index.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKError } from "../models/errors/sdkerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { unwrapAsync } from "../types/fp.js";
27
+ import { useSDKContext } from "./_context.js";
28
+ import { MutationHookOptions } from "./_types.js";
29
+
30
+ export type LlmEvalsCreateSuiteShareMutationVariables = {
31
+ request: operations.CreateEvalSuiteShareRequest;
32
+ options?: RequestOptions;
33
+ };
34
+
35
+ export type LlmEvalsCreateSuiteShareMutationData =
36
+ components.EvalSuiteShareObject;
37
+
38
+ export type LlmEvalsCreateSuiteShareMutationError =
39
+ | SDKError
40
+ | ResponseValidationError
41
+ | ConnectionError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | InvalidRequestError
45
+ | UnexpectedClientError
46
+ | SDKValidationError;
47
+
48
+ /**
49
+ * Share an eval suite with an org
50
+ *
51
+ * @remarks
52
+ * Grants another org on this cluster read-only access to the suite, its versions and every run under it, including runs by other members of the owning team. Org admins only, and never a delegated (on-behalf-of) context (403); the owning org cannot be the recipient. Sharing again with the same org returns the existing grant.
53
+ */
54
+ export function useLlmEvalsCreateSuiteShareMutation(
55
+ options?: MutationHookOptions<
56
+ LlmEvalsCreateSuiteShareMutationData,
57
+ LlmEvalsCreateSuiteShareMutationError,
58
+ LlmEvalsCreateSuiteShareMutationVariables
59
+ >,
60
+ ): UseMutationResult<
61
+ LlmEvalsCreateSuiteShareMutationData,
62
+ LlmEvalsCreateSuiteShareMutationError,
63
+ LlmEvalsCreateSuiteShareMutationVariables
64
+ > {
65
+ const client = useSDKContext();
66
+ return useMutation({
67
+ ...buildLlmEvalsCreateSuiteShareMutation(client, options),
68
+ ...options,
69
+ });
70
+ }
71
+
72
+ export function mutationKeyLlmEvalsCreateSuiteShare(): MutationKey {
73
+ return ["@meetkai/mka1", "evals", "createSuiteShare"];
74
+ }
75
+
76
+ export function buildLlmEvalsCreateSuiteShareMutation(
77
+ client$: SDKCore,
78
+ hookOptions?: RequestOptions,
79
+ ): {
80
+ mutationKey: MutationKey;
81
+ mutationFn: (
82
+ variables: LlmEvalsCreateSuiteShareMutationVariables,
83
+ ) => Promise<LlmEvalsCreateSuiteShareMutationData>;
84
+ } {
85
+ return {
86
+ mutationKey: mutationKeyLlmEvalsCreateSuiteShare(),
87
+ mutationFn: function llmEvalsCreateSuiteShareMutationFn({
88
+ request,
89
+ options,
90
+ }): Promise<LlmEvalsCreateSuiteShareMutationData> {
91
+ const mergedOptions = {
92
+ ...hookOptions,
93
+ ...options,
94
+ fetchOptions: {
95
+ ...hookOptions?.fetchOptions,
96
+ ...options?.fetchOptions,
97
+ signal: combineSignals(
98
+ hookOptions?.fetchOptions?.signal,
99
+ options?.fetchOptions?.signal,
100
+ ),
101
+ },
102
+ };
103
+ return unwrapAsync(llmEvalsCreateSuiteShare(
104
+ client$,
105
+ request,
106
+ mergedOptions,
107
+ ));
108
+ },
109
+ };
110
+ }
@@ -0,0 +1,110 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ MutationKey,
7
+ useMutation,
8
+ UseMutationResult,
9
+ } from "@tanstack/react-query";
10
+ import { SDKCore } from "../core.js";
11
+ import { llmEvalsDeleteSuiteShare } from "../funcs/llmEvalsDeleteSuiteShare.js";
12
+ import { combineSignals } from "../lib/primitives.js";
13
+ import { RequestOptions } from "../lib/sdks.js";
14
+ import * as components from "../models/components/index.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKError } from "../models/errors/sdkerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { unwrapAsync } from "../types/fp.js";
27
+ import { useSDKContext } from "./_context.js";
28
+ import { MutationHookOptions } from "./_types.js";
29
+
30
+ export type LlmEvalsDeleteSuiteShareMutationVariables = {
31
+ request: operations.DeleteEvalSuiteShareRequest;
32
+ options?: RequestOptions;
33
+ };
34
+
35
+ export type LlmEvalsDeleteSuiteShareMutationData =
36
+ components.EvalSuiteShareDeletedObject;
37
+
38
+ export type LlmEvalsDeleteSuiteShareMutationError =
39
+ | SDKError
40
+ | ResponseValidationError
41
+ | ConnectionError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | InvalidRequestError
45
+ | UnexpectedClientError
46
+ | SDKValidationError;
47
+
48
+ /**
49
+ * Unshare an eval suite from an org
50
+ *
51
+ * @remarks
52
+ * Revokes an org's read-only access to the suite. Org admins only, never a delegated (on-behalf-of) context (403).
53
+ */
54
+ export function useLlmEvalsDeleteSuiteShareMutation(
55
+ options?: MutationHookOptions<
56
+ LlmEvalsDeleteSuiteShareMutationData,
57
+ LlmEvalsDeleteSuiteShareMutationError,
58
+ LlmEvalsDeleteSuiteShareMutationVariables
59
+ >,
60
+ ): UseMutationResult<
61
+ LlmEvalsDeleteSuiteShareMutationData,
62
+ LlmEvalsDeleteSuiteShareMutationError,
63
+ LlmEvalsDeleteSuiteShareMutationVariables
64
+ > {
65
+ const client = useSDKContext();
66
+ return useMutation({
67
+ ...buildLlmEvalsDeleteSuiteShareMutation(client, options),
68
+ ...options,
69
+ });
70
+ }
71
+
72
+ export function mutationKeyLlmEvalsDeleteSuiteShare(): MutationKey {
73
+ return ["@meetkai/mka1", "evals", "deleteSuiteShare"];
74
+ }
75
+
76
+ export function buildLlmEvalsDeleteSuiteShareMutation(
77
+ client$: SDKCore,
78
+ hookOptions?: RequestOptions,
79
+ ): {
80
+ mutationKey: MutationKey;
81
+ mutationFn: (
82
+ variables: LlmEvalsDeleteSuiteShareMutationVariables,
83
+ ) => Promise<LlmEvalsDeleteSuiteShareMutationData>;
84
+ } {
85
+ return {
86
+ mutationKey: mutationKeyLlmEvalsDeleteSuiteShare(),
87
+ mutationFn: function llmEvalsDeleteSuiteShareMutationFn({
88
+ request,
89
+ options,
90
+ }): Promise<LlmEvalsDeleteSuiteShareMutationData> {
91
+ const mergedOptions = {
92
+ ...hookOptions,
93
+ ...options,
94
+ fetchOptions: {
95
+ ...hookOptions?.fetchOptions,
96
+ ...options?.fetchOptions,
97
+ signal: combineSignals(
98
+ hookOptions?.fetchOptions?.signal,
99
+ options?.fetchOptions?.signal,
100
+ ),
101
+ },
102
+ };
103
+ return unwrapAsync(llmEvalsDeleteSuiteShare(
104
+ client$,
105
+ request,
106
+ mergedOptions,
107
+ ));
108
+ },
109
+ };
110
+ }