@meetkai/mka1 0.54.90 → 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 (320) hide show
  1. package/README.md +318 -318
  2. package/bin/mcp-server.js +2291 -1716
  3. package/bin/mcp-server.js.map +31 -17
  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/batchobject.d.ts +5 -0
  43. package/dist/commonjs/models/components/batchobject.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/batchobject.js +4 -0
  45. package/dist/commonjs/models/components/batchobject.js.map +1 -1
  46. package/dist/commonjs/models/components/createbatchrequest.d.ts +5 -0
  47. package/dist/commonjs/models/components/createbatchrequest.d.ts.map +1 -1
  48. package/dist/commonjs/models/components/createbatchrequest.js +4 -0
  49. package/dist/commonjs/models/components/createbatchrequest.js.map +1 -1
  50. package/dist/commonjs/models/components/createevalsuitesharerequest.d.ts +20 -0
  51. package/dist/commonjs/models/components/createevalsuitesharerequest.d.ts.map +1 -0
  52. package/dist/commonjs/models/components/createevalsuitesharerequest.js +67 -0
  53. package/dist/commonjs/models/components/createevalsuitesharerequest.js.map +1 -0
  54. package/dist/commonjs/models/components/evalsuiteaccess.d.ts +18 -0
  55. package/dist/commonjs/models/components/evalsuiteaccess.d.ts.map +1 -0
  56. package/dist/commonjs/models/components/evalsuiteaccess.js +52 -0
  57. package/dist/commonjs/models/components/evalsuiteaccess.js.map +1 -0
  58. package/dist/commonjs/models/components/evalsuiteobject.d.ts +6 -0
  59. package/dist/commonjs/models/components/evalsuiteobject.d.ts.map +1 -1
  60. package/dist/commonjs/models/components/evalsuiteobject.js +3 -0
  61. package/dist/commonjs/models/components/evalsuiteobject.js.map +1 -1
  62. package/dist/commonjs/models/components/evalsuitesharedeletedobject.d.ts +24 -0
  63. package/dist/commonjs/models/components/evalsuitesharedeletedobject.d.ts.map +1 -0
  64. package/dist/commonjs/models/components/evalsuitesharedeletedobject.js +62 -0
  65. package/dist/commonjs/models/components/evalsuitesharedeletedobject.js.map +1 -0
  66. package/dist/commonjs/models/components/evalsuitesharelist.d.ts +23 -0
  67. package/dist/commonjs/models/components/evalsuitesharelist.d.ts.map +1 -0
  68. package/dist/commonjs/models/components/evalsuitesharelist.js +61 -0
  69. package/dist/commonjs/models/components/evalsuitesharelist.js.map +1 -0
  70. package/dist/commonjs/models/components/evalsuiteshareobject.d.ts +33 -0
  71. package/dist/commonjs/models/components/evalsuiteshareobject.d.ts.map +1 -0
  72. package/dist/commonjs/models/components/evalsuiteshareobject.js +83 -0
  73. package/dist/commonjs/models/components/evalsuiteshareobject.js.map +1 -0
  74. package/dist/commonjs/models/components/index.d.ts +5 -0
  75. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  76. package/dist/commonjs/models/components/index.js +5 -0
  77. package/dist/commonjs/models/components/index.js.map +1 -1
  78. package/dist/commonjs/models/operations/createevalsuiteshare.d.ts +25 -0
  79. package/dist/commonjs/models/operations/createevalsuiteshare.d.ts.map +1 -0
  80. package/dist/commonjs/models/operations/createevalsuiteshare.js +76 -0
  81. package/dist/commonjs/models/operations/createevalsuiteshare.js.map +1 -0
  82. package/dist/commonjs/models/operations/deleteevalsuiteshare.d.ts +24 -0
  83. package/dist/commonjs/models/operations/deleteevalsuiteshare.d.ts.map +1 -0
  84. package/dist/commonjs/models/operations/deleteevalsuiteshare.js +75 -0
  85. package/dist/commonjs/models/operations/deleteevalsuiteshare.js.map +1 -0
  86. package/dist/commonjs/models/operations/index.d.ts +3 -0
  87. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  88. package/dist/commonjs/models/operations/index.js +3 -0
  89. package/dist/commonjs/models/operations/index.js.map +1 -1
  90. package/dist/commonjs/models/operations/listevalruns.d.ts +2 -0
  91. package/dist/commonjs/models/operations/listevalruns.d.ts.map +1 -1
  92. package/dist/commonjs/models/operations/listevalruns.js +4 -0
  93. package/dist/commonjs/models/operations/listevalruns.js.map +1 -1
  94. package/dist/commonjs/models/operations/listevalsuites.d.ts +2 -0
  95. package/dist/commonjs/models/operations/listevalsuites.d.ts.map +1 -1
  96. package/dist/commonjs/models/operations/listevalsuites.js +4 -0
  97. package/dist/commonjs/models/operations/listevalsuites.js.map +1 -1
  98. package/dist/commonjs/models/operations/listevalsuiteshares.d.ts +22 -0
  99. package/dist/commonjs/models/operations/listevalsuiteshares.d.ts.map +1 -0
  100. package/dist/commonjs/models/operations/listevalsuiteshares.js +71 -0
  101. package/dist/commonjs/models/operations/listevalsuiteshares.js.map +1 -0
  102. package/dist/commonjs/react-query/index.d.ts +3 -0
  103. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  104. package/dist/commonjs/react-query/index.js +3 -0
  105. package/dist/commonjs/react-query/index.js.map +1 -1
  106. package/dist/commonjs/react-query/llmEvalsCreateSuiteShare.d.ts +29 -0
  107. package/dist/commonjs/react-query/llmEvalsCreateSuiteShare.d.ts.map +1 -0
  108. package/dist/commonjs/react-query/llmEvalsCreateSuiteShare.js +47 -0
  109. package/dist/commonjs/react-query/llmEvalsCreateSuiteShare.js.map +1 -0
  110. package/dist/commonjs/react-query/llmEvalsDeleteSuiteShare.d.ts +29 -0
  111. package/dist/commonjs/react-query/llmEvalsDeleteSuiteShare.d.ts.map +1 -0
  112. package/dist/commonjs/react-query/llmEvalsDeleteSuiteShare.js +47 -0
  113. package/dist/commonjs/react-query/llmEvalsDeleteSuiteShare.js.map +1 -0
  114. package/dist/commonjs/react-query/llmEvalsGetArtifacts.d.ts +2 -2
  115. package/dist/commonjs/react-query/llmEvalsGetArtifacts.js +2 -2
  116. package/dist/commonjs/react-query/llmEvalsListRuns.core.d.ts +1 -0
  117. package/dist/commonjs/react-query/llmEvalsListRuns.core.d.ts.map +1 -1
  118. package/dist/commonjs/react-query/llmEvalsListRuns.core.js +1 -0
  119. package/dist/commonjs/react-query/llmEvalsListRuns.core.js.map +1 -1
  120. package/dist/commonjs/react-query/llmEvalsListRuns.d.ts +2 -0
  121. package/dist/commonjs/react-query/llmEvalsListRuns.d.ts.map +1 -1
  122. package/dist/commonjs/react-query/llmEvalsListRuns.js.map +1 -1
  123. package/dist/commonjs/react-query/llmEvalsListSuiteShares.core.d.ts +15 -0
  124. package/dist/commonjs/react-query/llmEvalsListSuiteShares.core.d.ts.map +1 -0
  125. package/dist/commonjs/react-query/llmEvalsListSuiteShares.core.js +36 -0
  126. package/dist/commonjs/react-query/llmEvalsListSuiteShares.core.js.map +1 -0
  127. package/dist/commonjs/react-query/llmEvalsListSuiteShares.d.ts +38 -0
  128. package/dist/commonjs/react-query/llmEvalsListSuiteShares.d.ts.map +1 -0
  129. package/dist/commonjs/react-query/llmEvalsListSuiteShares.js +60 -0
  130. package/dist/commonjs/react-query/llmEvalsListSuiteShares.js.map +1 -0
  131. package/dist/commonjs/react-query/llmEvalsListSuites.core.d.ts +1 -0
  132. package/dist/commonjs/react-query/llmEvalsListSuites.core.d.ts.map +1 -1
  133. package/dist/commonjs/react-query/llmEvalsListSuites.core.js +1 -0
  134. package/dist/commonjs/react-query/llmEvalsListSuites.core.js.map +1 -1
  135. package/dist/commonjs/react-query/llmEvalsListSuites.d.ts +2 -0
  136. package/dist/commonjs/react-query/llmEvalsListSuites.d.ts.map +1 -1
  137. package/dist/commonjs/react-query/llmEvalsListSuites.js.map +1 -1
  138. package/dist/commonjs/sdk/evals.d.ts +22 -1
  139. package/dist/commonjs/sdk/evals.d.ts.map +1 -1
  140. package/dist/commonjs/sdk/evals.js +31 -1
  141. package/dist/commonjs/sdk/evals.js.map +1 -1
  142. package/dist/esm/funcs/llmEvalsCreateSuiteShare.d.ts +20 -0
  143. package/dist/esm/funcs/llmEvalsCreateSuiteShare.d.ts.map +1 -0
  144. package/dist/esm/funcs/llmEvalsCreateSuiteShare.js +101 -0
  145. package/dist/esm/funcs/llmEvalsCreateSuiteShare.js.map +1 -0
  146. package/dist/esm/funcs/llmEvalsDeleteSuiteShare.d.ts +20 -0
  147. package/dist/esm/funcs/llmEvalsDeleteSuiteShare.d.ts.map +1 -0
  148. package/dist/esm/funcs/llmEvalsDeleteSuiteShare.js +102 -0
  149. package/dist/esm/funcs/llmEvalsDeleteSuiteShare.js.map +1 -0
  150. package/dist/esm/funcs/llmEvalsGetArtifacts.d.ts +1 -1
  151. package/dist/esm/funcs/llmEvalsGetArtifacts.js +1 -1
  152. package/dist/esm/funcs/llmEvalsListRuns.js +1 -0
  153. package/dist/esm/funcs/llmEvalsListRuns.js.map +1 -1
  154. package/dist/esm/funcs/llmEvalsListSuiteShares.d.ts +20 -0
  155. package/dist/esm/funcs/llmEvalsListSuiteShares.d.ts.map +1 -0
  156. package/dist/esm/funcs/llmEvalsListSuiteShares.js +98 -0
  157. package/dist/esm/funcs/llmEvalsListSuiteShares.js.map +1 -0
  158. package/dist/esm/funcs/llmEvalsListSuites.js +1 -0
  159. package/dist/esm/funcs/llmEvalsListSuites.js.map +1 -1
  160. package/dist/esm/lib/config.d.ts +2 -2
  161. package/dist/esm/lib/config.js +2 -2
  162. package/dist/esm/mcp-server/mcp-server.js +1 -1
  163. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  164. package/dist/esm/mcp-server/server.js +7 -1
  165. package/dist/esm/mcp-server/server.js.map +1 -1
  166. package/dist/esm/mcp-server/tools/llmEvalsCreateSuiteShare.d.ts +8 -0
  167. package/dist/esm/mcp-server/tools/llmEvalsCreateSuiteShare.d.ts.map +1 -0
  168. package/dist/esm/mcp-server/tools/llmEvalsCreateSuiteShare.js +28 -0
  169. package/dist/esm/mcp-server/tools/llmEvalsCreateSuiteShare.js.map +1 -0
  170. package/dist/esm/mcp-server/tools/llmEvalsDeleteSuiteShare.d.ts +8 -0
  171. package/dist/esm/mcp-server/tools/llmEvalsDeleteSuiteShare.d.ts.map +1 -0
  172. package/dist/esm/mcp-server/tools/llmEvalsDeleteSuiteShare.js +28 -0
  173. package/dist/esm/mcp-server/tools/llmEvalsDeleteSuiteShare.js.map +1 -0
  174. package/dist/esm/mcp-server/tools/llmEvalsGetArtifacts.js +1 -1
  175. package/dist/esm/mcp-server/tools/llmEvalsGetArtifacts.js.map +1 -1
  176. package/dist/esm/mcp-server/tools/llmEvalsListSuiteShares.d.ts +8 -0
  177. package/dist/esm/mcp-server/tools/llmEvalsListSuiteShares.d.ts.map +1 -0
  178. package/dist/esm/mcp-server/tools/llmEvalsListSuiteShares.js +28 -0
  179. package/dist/esm/mcp-server/tools/llmEvalsListSuiteShares.js.map +1 -0
  180. package/dist/esm/models/components/batchobject.d.ts +5 -0
  181. package/dist/esm/models/components/batchobject.d.ts.map +1 -1
  182. package/dist/esm/models/components/batchobject.js +4 -0
  183. package/dist/esm/models/components/batchobject.js.map +1 -1
  184. package/dist/esm/models/components/createbatchrequest.d.ts +5 -0
  185. package/dist/esm/models/components/createbatchrequest.d.ts.map +1 -1
  186. package/dist/esm/models/components/createbatchrequest.js +4 -0
  187. package/dist/esm/models/components/createbatchrequest.js.map +1 -1
  188. package/dist/esm/models/components/createevalsuitesharerequest.d.ts +20 -0
  189. package/dist/esm/models/components/createevalsuitesharerequest.d.ts.map +1 -0
  190. package/dist/esm/models/components/createevalsuitesharerequest.js +29 -0
  191. package/dist/esm/models/components/createevalsuitesharerequest.js.map +1 -0
  192. package/dist/esm/models/components/evalsuiteaccess.d.ts +18 -0
  193. package/dist/esm/models/components/evalsuiteaccess.d.ts.map +1 -0
  194. package/dist/esm/models/components/evalsuiteaccess.js +16 -0
  195. package/dist/esm/models/components/evalsuiteaccess.js.map +1 -0
  196. package/dist/esm/models/components/evalsuiteobject.d.ts +6 -0
  197. package/dist/esm/models/components/evalsuiteobject.d.ts.map +1 -1
  198. package/dist/esm/models/components/evalsuiteobject.js +3 -0
  199. package/dist/esm/models/components/evalsuiteobject.js.map +1 -1
  200. package/dist/esm/models/components/evalsuitesharedeletedobject.d.ts +24 -0
  201. package/dist/esm/models/components/evalsuitesharedeletedobject.d.ts.map +1 -0
  202. package/dist/esm/models/components/evalsuitesharedeletedobject.js +24 -0
  203. package/dist/esm/models/components/evalsuitesharedeletedobject.js.map +1 -0
  204. package/dist/esm/models/components/evalsuitesharelist.d.ts +23 -0
  205. package/dist/esm/models/components/evalsuitesharelist.d.ts.map +1 -0
  206. package/dist/esm/models/components/evalsuitesharelist.js +23 -0
  207. package/dist/esm/models/components/evalsuitesharelist.js.map +1 -0
  208. package/dist/esm/models/components/evalsuiteshareobject.d.ts +33 -0
  209. package/dist/esm/models/components/evalsuiteshareobject.d.ts.map +1 -0
  210. package/dist/esm/models/components/evalsuiteshareobject.js +45 -0
  211. package/dist/esm/models/components/evalsuiteshareobject.js.map +1 -0
  212. package/dist/esm/models/components/index.d.ts +5 -0
  213. package/dist/esm/models/components/index.d.ts.map +1 -1
  214. package/dist/esm/models/components/index.js +5 -0
  215. package/dist/esm/models/components/index.js.map +1 -1
  216. package/dist/esm/models/operations/createevalsuiteshare.d.ts +25 -0
  217. package/dist/esm/models/operations/createevalsuiteshare.d.ts.map +1 -0
  218. package/dist/esm/models/operations/createevalsuiteshare.js +38 -0
  219. package/dist/esm/models/operations/createevalsuiteshare.js.map +1 -0
  220. package/dist/esm/models/operations/deleteevalsuiteshare.d.ts +24 -0
  221. package/dist/esm/models/operations/deleteevalsuiteshare.d.ts.map +1 -0
  222. package/dist/esm/models/operations/deleteevalsuiteshare.js +37 -0
  223. package/dist/esm/models/operations/deleteevalsuiteshare.js.map +1 -0
  224. package/dist/esm/models/operations/index.d.ts +3 -0
  225. package/dist/esm/models/operations/index.d.ts.map +1 -1
  226. package/dist/esm/models/operations/index.js +3 -0
  227. package/dist/esm/models/operations/index.js.map +1 -1
  228. package/dist/esm/models/operations/listevalruns.d.ts +2 -0
  229. package/dist/esm/models/operations/listevalruns.d.ts.map +1 -1
  230. package/dist/esm/models/operations/listevalruns.js +4 -0
  231. package/dist/esm/models/operations/listevalruns.js.map +1 -1
  232. package/dist/esm/models/operations/listevalsuites.d.ts +2 -0
  233. package/dist/esm/models/operations/listevalsuites.d.ts.map +1 -1
  234. package/dist/esm/models/operations/listevalsuites.js +4 -0
  235. package/dist/esm/models/operations/listevalsuites.js.map +1 -1
  236. package/dist/esm/models/operations/listevalsuiteshares.d.ts +22 -0
  237. package/dist/esm/models/operations/listevalsuiteshares.d.ts.map +1 -0
  238. package/dist/esm/models/operations/listevalsuiteshares.js +33 -0
  239. package/dist/esm/models/operations/listevalsuiteshares.js.map +1 -0
  240. package/dist/esm/react-query/index.d.ts +3 -0
  241. package/dist/esm/react-query/index.d.ts.map +1 -1
  242. package/dist/esm/react-query/index.js +3 -0
  243. package/dist/esm/react-query/index.js.map +1 -1
  244. package/dist/esm/react-query/llmEvalsCreateSuiteShare.d.ts +29 -0
  245. package/dist/esm/react-query/llmEvalsCreateSuiteShare.d.ts.map +1 -0
  246. package/dist/esm/react-query/llmEvalsCreateSuiteShare.js +42 -0
  247. package/dist/esm/react-query/llmEvalsCreateSuiteShare.js.map +1 -0
  248. package/dist/esm/react-query/llmEvalsDeleteSuiteShare.d.ts +29 -0
  249. package/dist/esm/react-query/llmEvalsDeleteSuiteShare.d.ts.map +1 -0
  250. package/dist/esm/react-query/llmEvalsDeleteSuiteShare.js +42 -0
  251. package/dist/esm/react-query/llmEvalsDeleteSuiteShare.js.map +1 -0
  252. package/dist/esm/react-query/llmEvalsGetArtifacts.d.ts +2 -2
  253. package/dist/esm/react-query/llmEvalsGetArtifacts.js +2 -2
  254. package/dist/esm/react-query/llmEvalsListRuns.core.d.ts +1 -0
  255. package/dist/esm/react-query/llmEvalsListRuns.core.d.ts.map +1 -1
  256. package/dist/esm/react-query/llmEvalsListRuns.core.js +1 -0
  257. package/dist/esm/react-query/llmEvalsListRuns.core.js.map +1 -1
  258. package/dist/esm/react-query/llmEvalsListRuns.d.ts +2 -0
  259. package/dist/esm/react-query/llmEvalsListRuns.d.ts.map +1 -1
  260. package/dist/esm/react-query/llmEvalsListRuns.js.map +1 -1
  261. package/dist/esm/react-query/llmEvalsListSuiteShares.core.d.ts +15 -0
  262. package/dist/esm/react-query/llmEvalsListSuiteShares.core.d.ts.map +1 -0
  263. package/dist/esm/react-query/llmEvalsListSuiteShares.core.js +31 -0
  264. package/dist/esm/react-query/llmEvalsListSuiteShares.core.js.map +1 -0
  265. package/dist/esm/react-query/llmEvalsListSuiteShares.d.ts +38 -0
  266. package/dist/esm/react-query/llmEvalsListSuiteShares.d.ts.map +1 -0
  267. package/dist/esm/react-query/llmEvalsListSuiteShares.js +50 -0
  268. package/dist/esm/react-query/llmEvalsListSuiteShares.js.map +1 -0
  269. package/dist/esm/react-query/llmEvalsListSuites.core.d.ts +1 -0
  270. package/dist/esm/react-query/llmEvalsListSuites.core.d.ts.map +1 -1
  271. package/dist/esm/react-query/llmEvalsListSuites.core.js +1 -0
  272. package/dist/esm/react-query/llmEvalsListSuites.core.js.map +1 -1
  273. package/dist/esm/react-query/llmEvalsListSuites.d.ts +2 -0
  274. package/dist/esm/react-query/llmEvalsListSuites.d.ts.map +1 -1
  275. package/dist/esm/react-query/llmEvalsListSuites.js.map +1 -1
  276. package/dist/esm/sdk/evals.d.ts +22 -1
  277. package/dist/esm/sdk/evals.d.ts.map +1 -1
  278. package/dist/esm/sdk/evals.js +31 -1
  279. package/dist/esm/sdk/evals.js.map +1 -1
  280. package/jsr.json +1 -1
  281. package/package.json +1 -1
  282. package/src/funcs/llmEvalsCreateSuiteShare.ts +191 -0
  283. package/src/funcs/llmEvalsDeleteSuiteShare.ts +192 -0
  284. package/src/funcs/llmEvalsGetArtifacts.ts +1 -1
  285. package/src/funcs/llmEvalsListRuns.ts +1 -0
  286. package/src/funcs/llmEvalsListSuiteShares.ts +188 -0
  287. package/src/funcs/llmEvalsListSuites.ts +1 -0
  288. package/src/lib/config.ts +2 -2
  289. package/src/mcp-server/mcp-server.ts +1 -1
  290. package/src/mcp-server/server.ts +7 -1
  291. package/src/mcp-server/tools/llmEvalsCreateSuiteShare.ts +37 -0
  292. package/src/mcp-server/tools/llmEvalsDeleteSuiteShare.ts +37 -0
  293. package/src/mcp-server/tools/llmEvalsGetArtifacts.ts +1 -1
  294. package/src/mcp-server/tools/llmEvalsListSuiteShares.ts +37 -0
  295. package/src/models/components/batchobject.ts +9 -0
  296. package/src/models/components/createbatchrequest.ts +9 -0
  297. package/src/models/components/createevalsuitesharerequest.ts +65 -0
  298. package/src/models/components/evalsuiteaccess.ts +27 -0
  299. package/src/models/components/evalsuiteobject.ts +12 -0
  300. package/src/models/components/evalsuitesharedeletedobject.ts +64 -0
  301. package/src/models/components/evalsuitesharelist.ts +64 -0
  302. package/src/models/components/evalsuiteshareobject.ts +92 -0
  303. package/src/models/components/index.ts +5 -0
  304. package/src/models/operations/createevalsuiteshare.ts +80 -0
  305. package/src/models/operations/deleteevalsuiteshare.ts +77 -0
  306. package/src/models/operations/index.ts +3 -0
  307. package/src/models/operations/listevalruns.ts +6 -0
  308. package/src/models/operations/listevalsuites.ts +6 -0
  309. package/src/models/operations/listevalsuiteshares.ts +69 -0
  310. package/src/react-query/index.ts +3 -0
  311. package/src/react-query/llmEvalsCreateSuiteShare.ts +110 -0
  312. package/src/react-query/llmEvalsDeleteSuiteShare.ts +110 -0
  313. package/src/react-query/llmEvalsGetArtifacts.ts +2 -2
  314. package/src/react-query/llmEvalsListRuns.core.ts +2 -0
  315. package/src/react-query/llmEvalsListRuns.ts +2 -0
  316. package/src/react-query/llmEvalsListSuiteShares.core.ts +76 -0
  317. package/src/react-query/llmEvalsListSuiteShares.ts +141 -0
  318. package/src/react-query/llmEvalsListSuites.core.ts +2 -0
  319. package/src/react-query/llmEvalsListSuites.ts +2 -0
  320. package/src/sdk/evals.ts +55 -1
@@ -0,0 +1,188 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SDKCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.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 { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * List eval suite shares
31
+ *
32
+ * @remarks
33
+ * Lists the orgs this eval suite is shared with. Any member of the owning scope who can see the suite can list its shares (no admin role needed); a recipient org gets 404, as for any suite it does not own; a delegated (on-behalf-of) context is refused with 403, as on the share and unshare routes.
34
+ *
35
+ * If set, this operation will use {@link Security.bearerAuth} from the global security.
36
+ */
37
+ export function llmEvalsListSuiteShares(
38
+ client: SDKCore,
39
+ request: operations.ListEvalSuiteSharesRequest,
40
+ options?: RequestOptions,
41
+ ): APIPromise<
42
+ Result<
43
+ components.EvalSuiteShareList,
44
+ | SDKError
45
+ | ResponseValidationError
46
+ | ConnectionError
47
+ | RequestAbortedError
48
+ | RequestTimeoutError
49
+ | InvalidRequestError
50
+ | UnexpectedClientError
51
+ | SDKValidationError
52
+ >
53
+ > {
54
+ return new APIPromise($do(
55
+ client,
56
+ request,
57
+ options,
58
+ ));
59
+ }
60
+
61
+ async function $do(
62
+ client: SDKCore,
63
+ request: operations.ListEvalSuiteSharesRequest,
64
+ options?: RequestOptions,
65
+ ): Promise<
66
+ [
67
+ Result<
68
+ components.EvalSuiteShareList,
69
+ | SDKError
70
+ | ResponseValidationError
71
+ | ConnectionError
72
+ | RequestAbortedError
73
+ | RequestTimeoutError
74
+ | InvalidRequestError
75
+ | UnexpectedClientError
76
+ | SDKValidationError
77
+ >,
78
+ APICall,
79
+ ]
80
+ > {
81
+ const parsed = safeParse(
82
+ request,
83
+ (value) =>
84
+ operations.ListEvalSuiteSharesRequest$outboundSchema.parse(value),
85
+ "Input validation failed",
86
+ );
87
+ if (!parsed.ok) {
88
+ return [parsed, { status: "invalid" }];
89
+ }
90
+ const payload = parsed.value;
91
+ const body = null;
92
+
93
+ const pathParams = {
94
+ suite_id: encodeSimple("suite_id", payload.suite_id, {
95
+ explode: false,
96
+ charEncoding: "percent",
97
+ }),
98
+ };
99
+ const path = pathToFunc("/api/v1/llm/evals/suites/{suite_id}/shares")(
100
+ pathParams,
101
+ );
102
+
103
+ const headers = new Headers(compactMap({
104
+ Accept: "application/json",
105
+ "X-On-Behalf-Of": encodeSimple(
106
+ "X-On-Behalf-Of",
107
+ payload["X-On-Behalf-Of"],
108
+ { explode: false, charEncoding: "none" },
109
+ ),
110
+ }));
111
+
112
+ const secConfig = await extractSecurity(client._options.bearerAuth);
113
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
114
+ const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
115
+
116
+ const context = {
117
+ options: client._options,
118
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
119
+ operationID: "listEvalSuiteShares",
120
+ oAuth2Scopes: null,
121
+
122
+ resolvedSecurity: requestSecurity,
123
+
124
+ securitySource: client._options.bearerAuth,
125
+ retryConfig: options?.retries
126
+ || client._options.retryConfig
127
+ || {
128
+ strategy: "backoff",
129
+ backoff: {
130
+ initialInterval: 500,
131
+ maxInterval: 5000,
132
+ exponent: 1.5,
133
+ maxElapsedTime: 15000,
134
+ },
135
+ retryConnectionErrors: true,
136
+ }
137
+ || { strategy: "none" },
138
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
139
+ };
140
+
141
+ const requestRes = client._createRequest(context, {
142
+ security: requestSecurity,
143
+ method: "GET",
144
+ baseURL: options?.serverURL,
145
+ path: path,
146
+ headers: headers,
147
+ body: body,
148
+ userAgent: client._options.userAgent,
149
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
150
+ }, options);
151
+ if (!requestRes.ok) {
152
+ return [requestRes, { status: "invalid" }];
153
+ }
154
+ const req = requestRes.value;
155
+
156
+ const doResult = await client._do(req, {
157
+ context,
158
+ isErrorStatusCode: (statusCode: number) =>
159
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
160
+ retryConfig: context.retryConfig,
161
+ retryCodes: context.retryCodes,
162
+ });
163
+ if (!doResult.ok) {
164
+ return [doResult, { status: "request-error", request: req }];
165
+ }
166
+ const response = doResult.value;
167
+
168
+ const [result] = await M.match<
169
+ components.EvalSuiteShareList,
170
+ | SDKError
171
+ | ResponseValidationError
172
+ | ConnectionError
173
+ | RequestAbortedError
174
+ | RequestTimeoutError
175
+ | InvalidRequestError
176
+ | UnexpectedClientError
177
+ | SDKValidationError
178
+ >(
179
+ M.json(200, components.EvalSuiteShareList$inboundSchema),
180
+ M.fail("4XX"),
181
+ M.fail("5XX"),
182
+ )(response, req);
183
+ if (!result.ok) {
184
+ return [result, { status: "complete", request: req, response }];
185
+ }
186
+
187
+ return [result, { status: "complete", request: req, response }];
188
+ }
@@ -94,6 +94,7 @@ async function $do(
94
94
  const query = encodeFormQuery({
95
95
  "after": payload.after,
96
96
  "limit": payload.limit,
97
+ "owned_only": payload.owned_only,
97
98
  });
98
99
 
99
100
  const headers = new Headers(compactMap({
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.1.0",
68
- sdkVersion: "0.54.90",
68
+ sdkVersion: "0.54.92",
69
69
  genVersion: "2.948.4",
70
- userAgent: "speakeasy-sdk/typescript 0.54.90 2.948.4 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.54.92 2.948.4 1.1.0 @meetkai/mka1",
71
71
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.54.90",
22
+ currentVersion: "0.54.92",
23
23
  },
24
24
  });
25
25
 
@@ -226,10 +226,12 @@ import { tool$llmEvalsCancelRun } from "./tools/llmEvalsCancelRun.js";
226
226
  import { tool$llmEvalsCreateRun } from "./tools/llmEvalsCreateRun.js";
227
227
  import { tool$llmEvalsCreateSchedule } from "./tools/llmEvalsCreateSchedule.js";
228
228
  import { tool$llmEvalsCreateSuite } from "./tools/llmEvalsCreateSuite.js";
229
+ import { tool$llmEvalsCreateSuiteShare } from "./tools/llmEvalsCreateSuiteShare.js";
229
230
  import { tool$llmEvalsCreateSuiteVersion } from "./tools/llmEvalsCreateSuiteVersion.js";
230
231
  import { tool$llmEvalsDeleteRun } from "./tools/llmEvalsDeleteRun.js";
231
232
  import { tool$llmEvalsDeleteSchedule } from "./tools/llmEvalsDeleteSchedule.js";
232
233
  import { tool$llmEvalsDeleteSuite } from "./tools/llmEvalsDeleteSuite.js";
234
+ import { tool$llmEvalsDeleteSuiteShare } from "./tools/llmEvalsDeleteSuiteShare.js";
233
235
  import { tool$llmEvalsGetArtifacts } from "./tools/llmEvalsGetArtifacts.js";
234
236
  import { tool$llmEvalsGetRun } from "./tools/llmEvalsGetRun.js";
235
237
  import { tool$llmEvalsGetRunOverview } from "./tools/llmEvalsGetRunOverview.js";
@@ -247,6 +249,7 @@ import { tool$llmEvalsListScheduleRuns } from "./tools/llmEvalsListScheduleRuns.
247
249
  import { tool$llmEvalsListSchedules } from "./tools/llmEvalsListSchedules.js";
248
250
  import { tool$llmEvalsListSuiteLeaderboardRuns } from "./tools/llmEvalsListSuiteLeaderboardRuns.js";
249
251
  import { tool$llmEvalsListSuites } from "./tools/llmEvalsListSuites.js";
252
+ import { tool$llmEvalsListSuiteShares } from "./tools/llmEvalsListSuiteShares.js";
250
253
  import { tool$llmEvalsListSuiteVersions } from "./tools/llmEvalsListSuiteVersions.js";
251
254
  import { tool$llmEvalsMeasureSuiteTokens } from "./tools/llmEvalsMeasureSuiteTokens.js";
252
255
  import { tool$llmEvalsRerunFailedSamples } from "./tools/llmEvalsRerunFailedSamples.js";
@@ -485,7 +488,7 @@ export function createMCPServer(deps: {
485
488
  }) {
486
489
  const server = new McpServer({
487
490
  name: "SDK",
488
- version: "0.54.90",
491
+ version: "0.54.92",
489
492
  });
490
493
 
491
494
  const client = new SDKCore({
@@ -693,6 +696,9 @@ export function createMCPServer(deps: {
693
696
  tool(tool$llmEvalsCreateSuiteVersion);
694
697
  tool(tool$llmEvalsListSuiteVersions);
695
698
  tool(tool$llmEvalsGetSuiteVersion);
699
+ tool(tool$llmEvalsListSuiteShares);
700
+ tool(tool$llmEvalsCreateSuiteShare);
701
+ tool(tool$llmEvalsDeleteSuiteShare);
696
702
  tool(tool$llmEvalsListSuiteLeaderboardRuns);
697
703
  tool(tool$llmEvalsGetSuiteLeaderboard);
698
704
  tool(tool$llmEvalsMeasureSuiteTokens);
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { llmEvalsCreateSuiteShare } from "../../funcs/llmEvalsCreateSuiteShare.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.CreateEvalSuiteShareRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$llmEvalsCreateSuiteShare: ToolDefinition<typeof args> = {
14
+ name: "llm-evals-create-suite-share",
15
+ description: `Share an eval suite with an org
16
+
17
+ 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.`,
18
+ args,
19
+ tool: async (client, args, ctx) => {
20
+ const [result, apiCall] = await llmEvalsCreateSuiteShare(
21
+ client,
22
+ args.request,
23
+ { fetchOptions: { signal: ctx.signal } },
24
+ ).$inspect();
25
+
26
+ if (!result.ok) {
27
+ return {
28
+ content: [{ type: "text", text: result.error.message }],
29
+ isError: true,
30
+ };
31
+ }
32
+
33
+ const value = result.value;
34
+
35
+ return formatResult(value, apiCall);
36
+ },
37
+ };
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { llmEvalsDeleteSuiteShare } from "../../funcs/llmEvalsDeleteSuiteShare.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.DeleteEvalSuiteShareRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$llmEvalsDeleteSuiteShare: ToolDefinition<typeof args> = {
14
+ name: "llm-evals-delete-suite-share",
15
+ description: `Unshare an eval suite from an org
16
+
17
+ Revokes an org's read-only access to the suite. Org admins only, never a delegated (on-behalf-of) context (403).`,
18
+ args,
19
+ tool: async (client, args, ctx) => {
20
+ const [result, apiCall] = await llmEvalsDeleteSuiteShare(
21
+ client,
22
+ args.request,
23
+ { fetchOptions: { signal: ctx.signal } },
24
+ ).$inspect();
25
+
26
+ if (!result.ok) {
27
+ return {
28
+ content: [{ type: "text", text: result.error.message }],
29
+ isError: true,
30
+ };
31
+ }
32
+
33
+ const value = result.value;
34
+
35
+ return formatResult(value, apiCall);
36
+ },
37
+ };
@@ -14,7 +14,7 @@ export const tool$llmEvalsGetArtifacts: ToolDefinition<typeof args> = {
14
14
  name: "llm-evals-get-artifacts",
15
15
  description: `Get eval run artifacts
16
16
 
17
- Returns generated result and sample artifact file IDs for a completed eval run.`,
17
+ Returns generated result and sample artifact file IDs for a completed eval run. Only files the caller can download are listed: artifact files stay owner-scoped, so on a run reached through a suite share the lists are empty.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await llmEvalsGetArtifacts(
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { llmEvalsListSuiteShares } from "../../funcs/llmEvalsListSuiteShares.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.ListEvalSuiteSharesRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$llmEvalsListSuiteShares: ToolDefinition<typeof args> = {
14
+ name: "llm-evals-list-suite-shares",
15
+ description: `List eval suite shares
16
+
17
+ Lists the orgs this eval suite is shared with. Any member of the owning scope who can see the suite can list its shares (no admin role needed); a recipient org gets 404, as for any suite it does not own; a delegated (on-behalf-of) context is refused with 403, as on the share and unshare routes.`,
18
+ args,
19
+ tool: async (client, args, ctx) => {
20
+ const [result, apiCall] = await llmEvalsListSuiteShares(
21
+ client,
22
+ args.request,
23
+ { fetchOptions: { signal: ctx.signal } },
24
+ ).$inspect();
25
+
26
+ if (!result.ok) {
27
+ return {
28
+ content: [{ type: "text", text: result.error.message }],
29
+ isError: true,
30
+ };
31
+ }
32
+
33
+ const value = result.value;
34
+
35
+ return formatResult(value, apiCall);
36
+ },
37
+ };
@@ -54,6 +54,10 @@ export type BatchObject = {
54
54
  cancelledAt?: number | null | undefined;
55
55
  requestCounts: RequestCounts;
56
56
  metadata?: { [k: string]: string } | null | undefined;
57
+ /**
58
+ * How many of this batch's lines may be in flight at once. Each line is admitted against its model's rate limits first.
59
+ */
60
+ maxConcurrency: number;
57
61
  };
58
62
 
59
63
  /** @internal */
@@ -91,6 +95,7 @@ export const BatchObject$inboundSchema: z.ZodType<
91
95
  cancelled_at: z.nullable(z.number().int()).optional(),
92
96
  request_counts: RequestCounts$inboundSchema,
93
97
  metadata: z.nullable(z.record(z.string())).optional(),
98
+ max_concurrency: z.number().int(),
94
99
  }).transform((v) => {
95
100
  return remap$(v, {
96
101
  "input_file_id": "inputFileId",
@@ -107,6 +112,7 @@ export const BatchObject$inboundSchema: z.ZodType<
107
112
  "cancelling_at": "cancellingAt",
108
113
  "cancelled_at": "cancelledAt",
109
114
  "request_counts": "requestCounts",
115
+ "max_concurrency": "maxConcurrency",
110
116
  });
111
117
  });
112
118
  /** @internal */
@@ -131,6 +137,7 @@ export type BatchObject$Outbound = {
131
137
  cancelled_at?: number | null | undefined;
132
138
  request_counts: RequestCounts$Outbound;
133
139
  metadata?: { [k: string]: string } | null | undefined;
140
+ max_concurrency: number;
134
141
  };
135
142
 
136
143
  /** @internal */
@@ -159,6 +166,7 @@ export const BatchObject$outboundSchema: z.ZodType<
159
166
  cancelledAt: z.nullable(z.number().int()).optional(),
160
167
  requestCounts: RequestCounts$outboundSchema,
161
168
  metadata: z.nullable(z.record(z.string())).optional(),
169
+ maxConcurrency: z.number().int(),
162
170
  }).transform((v) => {
163
171
  return remap$(v, {
164
172
  inputFileId: "input_file_id",
@@ -175,6 +183,7 @@ export const BatchObject$outboundSchema: z.ZodType<
175
183
  cancellingAt: "cancelling_at",
176
184
  cancelledAt: "cancelled_at",
177
185
  requestCounts: "request_counts",
186
+ maxConcurrency: "max_concurrency",
178
187
  });
179
188
  });
180
189
 
@@ -18,6 +18,10 @@ export type CreateBatchRequest = {
18
18
  endpoint: BatchEndpoint;
19
19
  completionWindow: "24h";
20
20
  metadata?: { [k: string]: string } | null | undefined;
21
+ /**
22
+ * How many lines may be in flight at once, up to the gateway's ceiling (BATCH_MAX_LINE_CONCURRENCY). Defaults to the gateway's BATCH_DEFAULT_LINE_CONCURRENCY. A model's rate limits are respected before this: a line waits for its model's window rather than exceeding it.
23
+ */
24
+ maxConcurrency?: number | undefined;
21
25
  };
22
26
 
23
27
  /** @internal */
@@ -30,10 +34,12 @@ export const CreateBatchRequest$inboundSchema: z.ZodType<
30
34
  endpoint: BatchEndpoint$inboundSchema,
31
35
  completion_window: z.literal("24h"),
32
36
  metadata: z.nullable(z.record(z.string())).optional(),
37
+ max_concurrency: z.number().int().optional(),
33
38
  }).transform((v) => {
34
39
  return remap$(v, {
35
40
  "input_file_id": "inputFileId",
36
41
  "completion_window": "completionWindow",
42
+ "max_concurrency": "maxConcurrency",
37
43
  });
38
44
  });
39
45
  /** @internal */
@@ -42,6 +48,7 @@ export type CreateBatchRequest$Outbound = {
42
48
  endpoint: string;
43
49
  completion_window: "24h";
44
50
  metadata?: { [k: string]: string } | null | undefined;
51
+ max_concurrency?: number | undefined;
45
52
  };
46
53
 
47
54
  /** @internal */
@@ -54,10 +61,12 @@ export const CreateBatchRequest$outboundSchema: z.ZodType<
54
61
  endpoint: BatchEndpoint$outboundSchema,
55
62
  completionWindow: z.literal("24h"),
56
63
  metadata: z.nullable(z.record(z.string())).optional(),
64
+ maxConcurrency: z.number().int().optional(),
57
65
  }).transform((v) => {
58
66
  return remap$(v, {
59
67
  inputFileId: "input_file_id",
60
68
  completionWindow: "completion_window",
69
+ maxConcurrency: "max_concurrency",
61
70
  });
62
71
  });
63
72
 
@@ -0,0 +1,65 @@
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 CreateEvalSuiteShareRequest = {
12
+ /**
13
+ * The org that receives read-only access to this suite and all of its runs. Must not be the owning org.
14
+ */
15
+ orgId: string;
16
+ };
17
+
18
+ /** @internal */
19
+ export const CreateEvalSuiteShareRequest$inboundSchema: z.ZodType<
20
+ CreateEvalSuiteShareRequest,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ org_id: z.string(),
25
+ }).transform((v) => {
26
+ return remap$(v, {
27
+ "org_id": "orgId",
28
+ });
29
+ });
30
+ /** @internal */
31
+ export type CreateEvalSuiteShareRequest$Outbound = {
32
+ org_id: string;
33
+ };
34
+
35
+ /** @internal */
36
+ export const CreateEvalSuiteShareRequest$outboundSchema: z.ZodType<
37
+ CreateEvalSuiteShareRequest$Outbound,
38
+ z.ZodTypeDef,
39
+ CreateEvalSuiteShareRequest
40
+ > = z.object({
41
+ orgId: z.string(),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ orgId: "org_id",
45
+ });
46
+ });
47
+
48
+ export function createEvalSuiteShareRequestToJSON(
49
+ createEvalSuiteShareRequest: CreateEvalSuiteShareRequest,
50
+ ): string {
51
+ return JSON.stringify(
52
+ CreateEvalSuiteShareRequest$outboundSchema.parse(
53
+ createEvalSuiteShareRequest,
54
+ ),
55
+ );
56
+ }
57
+ export function createEvalSuiteShareRequestFromJSON(
58
+ jsonString: string,
59
+ ): SafeParseResult<CreateEvalSuiteShareRequest, SDKValidationError> {
60
+ return safeParse(
61
+ jsonString,
62
+ (x) => CreateEvalSuiteShareRequest$inboundSchema.parse(JSON.parse(x)),
63
+ `Failed to parse 'CreateEvalSuiteShareRequest' from JSON`,
64
+ );
65
+ }
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * `owner` when the suite belongs to the caller's org and team; `shared` when it is visible only through a read-only share to the caller's org.
10
+ */
11
+ export const EvalSuiteAccess = {
12
+ Owner: "owner",
13
+ Shared: "shared",
14
+ } as const;
15
+ /**
16
+ * `owner` when the suite belongs to the caller's org and team; `shared` when it is visible only through a read-only share to the caller's org.
17
+ */
18
+ export type EvalSuiteAccess = ClosedEnum<typeof EvalSuiteAccess>;
19
+
20
+ /** @internal */
21
+ export const EvalSuiteAccess$inboundSchema: z.ZodNativeEnum<
22
+ typeof EvalSuiteAccess
23
+ > = z.nativeEnum(EvalSuiteAccess);
24
+ /** @internal */
25
+ export const EvalSuiteAccess$outboundSchema: z.ZodNativeEnum<
26
+ typeof EvalSuiteAccess
27
+ > = EvalSuiteAccess$inboundSchema;
@@ -7,6 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ EvalSuiteAccess,
12
+ EvalSuiteAccess$inboundSchema,
13
+ EvalSuiteAccess$outboundSchema,
14
+ } from "./evalsuiteaccess.js";
10
15
 
11
16
  export type EvalSuiteObject = {
12
17
  id: string;
@@ -21,6 +26,10 @@ export type EvalSuiteObject = {
21
26
  * The team that owns this suite.
22
27
  */
23
28
  teamId: string;
29
+ /**
30
+ * `owner` when the suite belongs to the caller's org and team; `shared` when it is visible only through a read-only share to the caller's org.
31
+ */
32
+ access: EvalSuiteAccess;
24
33
  activeVersion: number;
25
34
  latestVersion: number;
26
35
  metadata: { [k: string]: string };
@@ -40,6 +49,7 @@ export const EvalSuiteObject$inboundSchema: z.ZodType<
40
49
  description: z.nullable(z.string()),
41
50
  org_id: z.string(),
42
51
  team_id: z.string(),
52
+ access: EvalSuiteAccess$inboundSchema,
43
53
  active_version: z.number().int(),
44
54
  latest_version: z.number().int(),
45
55
  metadata: z.record(z.string()),
@@ -63,6 +73,7 @@ export type EvalSuiteObject$Outbound = {
63
73
  description: string | null;
64
74
  org_id: string;
65
75
  team_id: string;
76
+ access: string;
66
77
  active_version: number;
67
78
  latest_version: number;
68
79
  metadata: { [k: string]: string };
@@ -82,6 +93,7 @@ export const EvalSuiteObject$outboundSchema: z.ZodType<
82
93
  description: z.nullable(z.string()),
83
94
  orgId: z.string(),
84
95
  teamId: z.string(),
96
+ access: EvalSuiteAccess$outboundSchema,
85
97
  activeVersion: z.number().int(),
86
98
  latestVersion: z.number().int(),
87
99
  metadata: z.record(z.string()),
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type EvalSuiteShareDeletedObject = {
11
+ /**
12
+ * The id of the revoked share, as `GET /suites/{suite_id}/shares` listed it.
13
+ */
14
+ id: string;
15
+ object: "eval.suite.share.deleted";
16
+ deleted: boolean;
17
+ };
18
+
19
+ /** @internal */
20
+ export const EvalSuiteShareDeletedObject$inboundSchema: z.ZodType<
21
+ EvalSuiteShareDeletedObject,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ id: z.string(),
26
+ object: z.literal("eval.suite.share.deleted"),
27
+ deleted: z.boolean(),
28
+ });
29
+ /** @internal */
30
+ export type EvalSuiteShareDeletedObject$Outbound = {
31
+ id: string;
32
+ object: "eval.suite.share.deleted";
33
+ deleted: boolean;
34
+ };
35
+
36
+ /** @internal */
37
+ export const EvalSuiteShareDeletedObject$outboundSchema: z.ZodType<
38
+ EvalSuiteShareDeletedObject$Outbound,
39
+ z.ZodTypeDef,
40
+ EvalSuiteShareDeletedObject
41
+ > = z.object({
42
+ id: z.string(),
43
+ object: z.literal("eval.suite.share.deleted"),
44
+ deleted: z.boolean(),
45
+ });
46
+
47
+ export function evalSuiteShareDeletedObjectToJSON(
48
+ evalSuiteShareDeletedObject: EvalSuiteShareDeletedObject,
49
+ ): string {
50
+ return JSON.stringify(
51
+ EvalSuiteShareDeletedObject$outboundSchema.parse(
52
+ evalSuiteShareDeletedObject,
53
+ ),
54
+ );
55
+ }
56
+ export function evalSuiteShareDeletedObjectFromJSON(
57
+ jsonString: string,
58
+ ): SafeParseResult<EvalSuiteShareDeletedObject, SDKValidationError> {
59
+ return safeParse(
60
+ jsonString,
61
+ (x) => EvalSuiteShareDeletedObject$inboundSchema.parse(JSON.parse(x)),
62
+ `Failed to parse 'EvalSuiteShareDeletedObject' from JSON`,
63
+ );
64
+ }