@meetkai/mka1 0.51.25 → 0.51.27

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 (544) hide show
  1. package/README.md +259 -228
  2. package/bin/mcp-server.js +2168 -736
  3. package/bin/mcp-server.js.map +46 -15
  4. package/dist/commonjs/funcs/llmEvalsListRuns.d.ts +1 -1
  5. package/dist/commonjs/funcs/llmEvalsListRuns.js +2 -1
  6. package/dist/commonjs/funcs/llmEvalsListRuns.js.map +1 -1
  7. package/dist/commonjs/funcs/llmEvalsListScheduleRuns.d.ts +1 -1
  8. package/dist/commonjs/funcs/llmEvalsListScheduleRuns.js +2 -1
  9. package/dist/commonjs/funcs/llmEvalsListScheduleRuns.js.map +1 -1
  10. package/dist/commonjs/funcs/reposCollaboratorsAdd.d.ts +21 -0
  11. package/dist/commonjs/funcs/reposCollaboratorsAdd.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/reposCollaboratorsAdd.js +149 -0
  13. package/dist/commonjs/funcs/reposCollaboratorsAdd.js.map +1 -0
  14. package/dist/commonjs/funcs/reposCollaboratorsList.d.ts +19 -0
  15. package/dist/commonjs/funcs/reposCollaboratorsList.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/reposCollaboratorsList.js +140 -0
  17. package/dist/commonjs/funcs/reposCollaboratorsList.js.map +1 -0
  18. package/dist/commonjs/funcs/reposCollaboratorsRemove.d.ts +19 -0
  19. package/dist/commonjs/funcs/reposCollaboratorsRemove.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/reposCollaboratorsRemove.js +145 -0
  21. package/dist/commonjs/funcs/reposCollaboratorsRemove.js.map +1 -0
  22. package/dist/commonjs/funcs/reposCreate.d.ts +21 -0
  23. package/dist/commonjs/funcs/reposCreate.d.ts.map +1 -0
  24. package/dist/commonjs/funcs/reposCreate.js +133 -0
  25. package/dist/commonjs/funcs/reposCreate.js.map +1 -0
  26. package/dist/commonjs/funcs/reposDelete.d.ts +19 -0
  27. package/dist/commonjs/funcs/reposDelete.d.ts.map +1 -0
  28. package/dist/commonjs/funcs/reposDelete.js +141 -0
  29. package/dist/commonjs/funcs/reposDelete.js.map +1 -0
  30. package/dist/commonjs/funcs/reposGet.d.ts +19 -0
  31. package/dist/commonjs/funcs/reposGet.d.ts.map +1 -0
  32. package/dist/commonjs/funcs/reposGet.js +140 -0
  33. package/dist/commonjs/funcs/reposGet.js.map +1 -0
  34. package/dist/commonjs/funcs/reposList.d.ts +19 -0
  35. package/dist/commonjs/funcs/reposList.d.ts.map +1 -0
  36. package/dist/commonjs/funcs/reposList.js +130 -0
  37. package/dist/commonjs/funcs/reposList.js.map +1 -0
  38. package/dist/commonjs/funcs/reposUpdate.d.ts +22 -0
  39. package/dist/commonjs/funcs/reposUpdate.d.ts.map +1 -0
  40. package/dist/commonjs/funcs/reposUpdate.js +144 -0
  41. package/dist/commonjs/funcs/reposUpdate.js.map +1 -0
  42. package/dist/commonjs/lib/config.d.ts +2 -2
  43. package/dist/commonjs/lib/config.js +2 -2
  44. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  45. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  46. package/dist/commonjs/mcp-server/server.js +17 -1
  47. package/dist/commonjs/mcp-server/server.js.map +1 -1
  48. package/dist/commonjs/mcp-server/tools/llmEvalsListRuns.js +1 -1
  49. package/dist/commonjs/mcp-server/tools/llmEvalsListRuns.js.map +1 -1
  50. package/dist/commonjs/mcp-server/tools/llmEvalsListScheduleRuns.js +1 -1
  51. package/dist/commonjs/mcp-server/tools/llmEvalsListScheduleRuns.js.map +1 -1
  52. package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.d.ts +8 -0
  53. package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.d.ts.map +1 -0
  54. package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.js +67 -0
  55. package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.js.map +1 -0
  56. package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.d.ts +8 -0
  57. package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.d.ts.map +1 -0
  58. package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.js +66 -0
  59. package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.js.map +1 -0
  60. package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.d.ts +8 -0
  61. package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.d.ts.map +1 -0
  62. package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.js +65 -0
  63. package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.js.map +1 -0
  64. package/dist/commonjs/mcp-server/tools/reposCreate.d.ts +8 -0
  65. package/dist/commonjs/mcp-server/tools/reposCreate.d.ts.map +1 -0
  66. package/dist/commonjs/mcp-server/tools/reposCreate.js +67 -0
  67. package/dist/commonjs/mcp-server/tools/reposCreate.js.map +1 -0
  68. package/dist/commonjs/mcp-server/tools/reposDelete.d.ts +8 -0
  69. package/dist/commonjs/mcp-server/tools/reposDelete.d.ts.map +1 -0
  70. package/dist/commonjs/mcp-server/tools/reposDelete.js +65 -0
  71. package/dist/commonjs/mcp-server/tools/reposDelete.js.map +1 -0
  72. package/dist/commonjs/mcp-server/tools/reposGet.d.ts +8 -0
  73. package/dist/commonjs/mcp-server/tools/reposGet.d.ts.map +1 -0
  74. package/dist/commonjs/mcp-server/tools/reposGet.js +64 -0
  75. package/dist/commonjs/mcp-server/tools/reposGet.js.map +1 -0
  76. package/dist/commonjs/mcp-server/tools/reposList.d.ts +8 -0
  77. package/dist/commonjs/mcp-server/tools/reposList.d.ts.map +1 -0
  78. package/dist/commonjs/mcp-server/tools/reposList.js +66 -0
  79. package/dist/commonjs/mcp-server/tools/reposList.js.map +1 -0
  80. package/dist/commonjs/mcp-server/tools/reposUpdate.d.ts +8 -0
  81. package/dist/commonjs/mcp-server/tools/reposUpdate.d.ts.map +1 -0
  82. package/dist/commonjs/mcp-server/tools/reposUpdate.js +68 -0
  83. package/dist/commonjs/mcp-server/tools/reposUpdate.js.map +1 -0
  84. package/dist/commonjs/models/components/collaboratorrequest.d.ts +45 -0
  85. package/dist/commonjs/models/components/collaboratorrequest.d.ts.map +1 -0
  86. package/dist/commonjs/models/components/collaboratorrequest.js +72 -0
  87. package/dist/commonjs/models/components/collaboratorrequest.js.map +1 -0
  88. package/dist/commonjs/models/components/createreporequest.d.ts +46 -0
  89. package/dist/commonjs/models/components/createreporequest.d.ts.map +1 -0
  90. package/dist/commonjs/models/components/createreporequest.js +73 -0
  91. package/dist/commonjs/models/components/createreporequest.js.map +1 -0
  92. package/dist/commonjs/models/components/index.d.ts +6 -0
  93. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  94. package/dist/commonjs/models/components/index.js +6 -0
  95. package/dist/commonjs/models/components/index.js.map +1 -1
  96. package/dist/commonjs/models/components/member.d.ts +51 -0
  97. package/dist/commonjs/models/components/member.d.ts.map +1 -0
  98. package/dist/commonjs/models/components/member.js +77 -0
  99. package/dist/commonjs/models/components/member.js.map +1 -0
  100. package/dist/commonjs/models/components/patchreporequest.d.ts +34 -0
  101. package/dist/commonjs/models/components/patchreporequest.d.ts.map +1 -0
  102. package/dist/commonjs/models/components/patchreporequest.js +63 -0
  103. package/dist/commonjs/models/components/patchreporequest.js.map +1 -0
  104. package/dist/commonjs/models/components/repo.d.ts +43 -0
  105. package/dist/commonjs/models/components/repo.d.ts.map +1 -0
  106. package/dist/commonjs/models/components/repo.js +79 -0
  107. package/dist/commonjs/models/components/repo.js.map +1 -0
  108. package/dist/commonjs/models/components/visibility.d.ts +24 -0
  109. package/dist/commonjs/models/components/visibility.d.ts.map +1 -0
  110. package/dist/commonjs/models/components/visibility.js +56 -0
  111. package/dist/commonjs/models/components/visibility.js.map +1 -0
  112. package/dist/commonjs/models/errors/index.d.ts +1 -0
  113. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  114. package/dist/commonjs/models/errors/index.js +1 -0
  115. package/dist/commonjs/models/errors/index.js.map +1 -1
  116. package/dist/commonjs/models/errors/repoerror.d.ts +41 -0
  117. package/dist/commonjs/models/errors/repoerror.d.ts.map +1 -0
  118. package/dist/commonjs/models/errors/repoerror.js +92 -0
  119. package/dist/commonjs/models/errors/repoerror.js.map +1 -0
  120. package/dist/commonjs/models/operations/createrepo.d.ts +23 -0
  121. package/dist/commonjs/models/operations/createrepo.d.ts.map +1 -0
  122. package/dist/commonjs/models/operations/createrepo.js +72 -0
  123. package/dist/commonjs/models/operations/createrepo.js.map +1 -0
  124. package/dist/commonjs/models/operations/deletecollaborator.d.ts +35 -0
  125. package/dist/commonjs/models/operations/deletecollaborator.d.ts.map +1 -0
  126. package/dist/commonjs/models/operations/deletecollaborator.js +73 -0
  127. package/dist/commonjs/models/operations/deletecollaborator.js.map +1 -0
  128. package/dist/commonjs/models/operations/deleterepo.d.ts +30 -0
  129. package/dist/commonjs/models/operations/deleterepo.d.ts.map +1 -0
  130. package/dist/commonjs/models/operations/deleterepo.js +71 -0
  131. package/dist/commonjs/models/operations/deleterepo.js.map +1 -0
  132. package/dist/commonjs/models/operations/getrepo.d.ts +30 -0
  133. package/dist/commonjs/models/operations/getrepo.d.ts.map +1 -0
  134. package/dist/commonjs/models/operations/getrepo.js +71 -0
  135. package/dist/commonjs/models/operations/getrepo.js.map +1 -0
  136. package/dist/commonjs/models/operations/index.d.ts +8 -0
  137. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  138. package/dist/commonjs/models/operations/index.js +8 -0
  139. package/dist/commonjs/models/operations/index.js.map +1 -1
  140. package/dist/commonjs/models/operations/listcollaborators.d.ts +47 -0
  141. package/dist/commonjs/models/operations/listcollaborators.d.ts.map +1 -0
  142. package/dist/commonjs/models/operations/listcollaborators.js +88 -0
  143. package/dist/commonjs/models/operations/listcollaborators.js.map +1 -0
  144. package/dist/commonjs/models/operations/listevalruns.d.ts +2 -0
  145. package/dist/commonjs/models/operations/listevalruns.d.ts.map +1 -1
  146. package/dist/commonjs/models/operations/listevalruns.js +4 -0
  147. package/dist/commonjs/models/operations/listevalruns.js.map +1 -1
  148. package/dist/commonjs/models/operations/listevalscheduleruns.d.ts +2 -0
  149. package/dist/commonjs/models/operations/listevalscheduleruns.d.ts.map +1 -1
  150. package/dist/commonjs/models/operations/listevalscheduleruns.js +4 -0
  151. package/dist/commonjs/models/operations/listevalscheduleruns.js.map +1 -1
  152. package/dist/commonjs/models/operations/listrepos.d.ts +37 -0
  153. package/dist/commonjs/models/operations/listrepos.d.ts.map +1 -0
  154. package/dist/commonjs/models/operations/listrepos.js +84 -0
  155. package/dist/commonjs/models/operations/listrepos.js.map +1 -0
  156. package/dist/commonjs/models/operations/patchrepo.d.ts +33 -0
  157. package/dist/commonjs/models/operations/patchrepo.d.ts.map +1 -0
  158. package/dist/commonjs/models/operations/patchrepo.js +76 -0
  159. package/dist/commonjs/models/operations/patchrepo.js.map +1 -0
  160. package/dist/commonjs/models/operations/putcollaborator.d.ts +38 -0
  161. package/dist/commonjs/models/operations/putcollaborator.d.ts.map +1 -0
  162. package/dist/commonjs/models/operations/putcollaborator.js +78 -0
  163. package/dist/commonjs/models/operations/putcollaborator.js.map +1 -0
  164. package/dist/commonjs/react-query/index.d.ts +8 -0
  165. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  166. package/dist/commonjs/react-query/index.js +8 -0
  167. package/dist/commonjs/react-query/index.js.map +1 -1
  168. package/dist/commonjs/react-query/llmEvalsListRuns.core.d.ts +1 -0
  169. package/dist/commonjs/react-query/llmEvalsListRuns.core.d.ts.map +1 -1
  170. package/dist/commonjs/react-query/llmEvalsListRuns.core.js +1 -0
  171. package/dist/commonjs/react-query/llmEvalsListRuns.core.js.map +1 -1
  172. package/dist/commonjs/react-query/llmEvalsListRuns.d.ts +4 -2
  173. package/dist/commonjs/react-query/llmEvalsListRuns.d.ts.map +1 -1
  174. package/dist/commonjs/react-query/llmEvalsListRuns.js +2 -2
  175. package/dist/commonjs/react-query/llmEvalsListRuns.js.map +1 -1
  176. package/dist/commonjs/react-query/llmEvalsListScheduleRuns.core.d.ts +1 -0
  177. package/dist/commonjs/react-query/llmEvalsListScheduleRuns.core.d.ts.map +1 -1
  178. package/dist/commonjs/react-query/llmEvalsListScheduleRuns.core.js +1 -0
  179. package/dist/commonjs/react-query/llmEvalsListScheduleRuns.core.js.map +1 -1
  180. package/dist/commonjs/react-query/llmEvalsListScheduleRuns.d.ts +4 -2
  181. package/dist/commonjs/react-query/llmEvalsListScheduleRuns.d.ts.map +1 -1
  182. package/dist/commonjs/react-query/llmEvalsListScheduleRuns.js +2 -2
  183. package/dist/commonjs/react-query/llmEvalsListScheduleRuns.js.map +1 -1
  184. package/dist/commonjs/react-query/reposCollaboratorsAdd.d.ts +32 -0
  185. package/dist/commonjs/react-query/reposCollaboratorsAdd.d.ts.map +1 -0
  186. package/dist/commonjs/react-query/reposCollaboratorsAdd.js +49 -0
  187. package/dist/commonjs/react-query/reposCollaboratorsAdd.js.map +1 -0
  188. package/dist/commonjs/react-query/reposCollaboratorsList.core.d.ts +14 -0
  189. package/dist/commonjs/react-query/reposCollaboratorsList.core.d.ts.map +1 -0
  190. package/dist/commonjs/react-query/reposCollaboratorsList.core.js +36 -0
  191. package/dist/commonjs/react-query/reposCollaboratorsList.core.js.map +1 -0
  192. package/dist/commonjs/react-query/reposCollaboratorsList.d.ts +43 -0
  193. package/dist/commonjs/react-query/reposCollaboratorsList.d.ts.map +1 -0
  194. package/dist/commonjs/react-query/reposCollaboratorsList.js +62 -0
  195. package/dist/commonjs/react-query/reposCollaboratorsList.js.map +1 -0
  196. package/dist/commonjs/react-query/reposCollaboratorsRemove.d.ts +30 -0
  197. package/dist/commonjs/react-query/reposCollaboratorsRemove.d.ts.map +1 -0
  198. package/dist/commonjs/react-query/reposCollaboratorsRemove.js +48 -0
  199. package/dist/commonjs/react-query/reposCollaboratorsRemove.js.map +1 -0
  200. package/dist/commonjs/react-query/reposCreate.d.ts +32 -0
  201. package/dist/commonjs/react-query/reposCreate.d.ts.map +1 -0
  202. package/dist/commonjs/react-query/reposCreate.js +49 -0
  203. package/dist/commonjs/react-query/reposCreate.js.map +1 -0
  204. package/dist/commonjs/react-query/reposDelete.d.ts +30 -0
  205. package/dist/commonjs/react-query/reposDelete.d.ts.map +1 -0
  206. package/dist/commonjs/react-query/reposDelete.js +48 -0
  207. package/dist/commonjs/react-query/reposDelete.js.map +1 -0
  208. package/dist/commonjs/react-query/reposGet.core.d.ts +15 -0
  209. package/dist/commonjs/react-query/reposGet.core.d.ts.map +1 -0
  210. package/dist/commonjs/react-query/reposGet.core.js +36 -0
  211. package/dist/commonjs/react-query/reposGet.core.js.map +1 -0
  212. package/dist/commonjs/react-query/reposGet.d.ts +41 -0
  213. package/dist/commonjs/react-query/reposGet.d.ts.map +1 -0
  214. package/dist/commonjs/react-query/reposGet.js +60 -0
  215. package/dist/commonjs/react-query/reposGet.js.map +1 -0
  216. package/dist/commonjs/react-query/reposList.core.d.ts +14 -0
  217. package/dist/commonjs/react-query/reposList.core.d.ts.map +1 -0
  218. package/dist/commonjs/react-query/reposList.core.js +34 -0
  219. package/dist/commonjs/react-query/reposList.core.js.map +1 -0
  220. package/dist/commonjs/react-query/reposList.d.ts +37 -0
  221. package/dist/commonjs/react-query/reposList.d.ts.map +1 -0
  222. package/dist/commonjs/react-query/reposList.js +62 -0
  223. package/dist/commonjs/react-query/reposList.js.map +1 -0
  224. package/dist/commonjs/react-query/reposUpdate.d.ts +33 -0
  225. package/dist/commonjs/react-query/reposUpdate.d.ts.map +1 -0
  226. package/dist/commonjs/react-query/reposUpdate.js +50 -0
  227. package/dist/commonjs/react-query/reposUpdate.js.map +1 -0
  228. package/dist/commonjs/sdk/collaborators.d.ts +31 -0
  229. package/dist/commonjs/sdk/collaborators.d.ts.map +1 -0
  230. package/dist/commonjs/sdk/collaborators.js +46 -0
  231. package/dist/commonjs/sdk/collaborators.js.map +1 -0
  232. package/dist/commonjs/sdk/evals.d.ts +2 -2
  233. package/dist/commonjs/sdk/evals.js +2 -2
  234. package/dist/commonjs/sdk/repos.d.ts +51 -0
  235. package/dist/commonjs/sdk/repos.d.ts.map +1 -0
  236. package/dist/commonjs/sdk/repos.js +73 -0
  237. package/dist/commonjs/sdk/repos.js.map +1 -0
  238. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  239. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  240. package/dist/commonjs/sdk/sdk.js +4 -0
  241. package/dist/commonjs/sdk/sdk.js.map +1 -1
  242. package/dist/esm/funcs/llmEvalsListRuns.d.ts +1 -1
  243. package/dist/esm/funcs/llmEvalsListRuns.js +2 -1
  244. package/dist/esm/funcs/llmEvalsListRuns.js.map +1 -1
  245. package/dist/esm/funcs/llmEvalsListScheduleRuns.d.ts +1 -1
  246. package/dist/esm/funcs/llmEvalsListScheduleRuns.js +2 -1
  247. package/dist/esm/funcs/llmEvalsListScheduleRuns.js.map +1 -1
  248. package/dist/esm/funcs/reposCollaboratorsAdd.d.ts +21 -0
  249. package/dist/esm/funcs/reposCollaboratorsAdd.d.ts.map +1 -0
  250. package/dist/esm/funcs/reposCollaboratorsAdd.js +113 -0
  251. package/dist/esm/funcs/reposCollaboratorsAdd.js.map +1 -0
  252. package/dist/esm/funcs/reposCollaboratorsList.d.ts +19 -0
  253. package/dist/esm/funcs/reposCollaboratorsList.d.ts.map +1 -0
  254. package/dist/esm/funcs/reposCollaboratorsList.js +104 -0
  255. package/dist/esm/funcs/reposCollaboratorsList.js.map +1 -0
  256. package/dist/esm/funcs/reposCollaboratorsRemove.d.ts +19 -0
  257. package/dist/esm/funcs/reposCollaboratorsRemove.d.ts.map +1 -0
  258. package/dist/esm/funcs/reposCollaboratorsRemove.js +109 -0
  259. package/dist/esm/funcs/reposCollaboratorsRemove.js.map +1 -0
  260. package/dist/esm/funcs/reposCreate.d.ts +21 -0
  261. package/dist/esm/funcs/reposCreate.d.ts.map +1 -0
  262. package/dist/esm/funcs/reposCreate.js +97 -0
  263. package/dist/esm/funcs/reposCreate.js.map +1 -0
  264. package/dist/esm/funcs/reposDelete.d.ts +19 -0
  265. package/dist/esm/funcs/reposDelete.d.ts.map +1 -0
  266. package/dist/esm/funcs/reposDelete.js +105 -0
  267. package/dist/esm/funcs/reposDelete.js.map +1 -0
  268. package/dist/esm/funcs/reposGet.d.ts +19 -0
  269. package/dist/esm/funcs/reposGet.d.ts.map +1 -0
  270. package/dist/esm/funcs/reposGet.js +104 -0
  271. package/dist/esm/funcs/reposGet.js.map +1 -0
  272. package/dist/esm/funcs/reposList.d.ts +19 -0
  273. package/dist/esm/funcs/reposList.d.ts.map +1 -0
  274. package/dist/esm/funcs/reposList.js +94 -0
  275. package/dist/esm/funcs/reposList.js.map +1 -0
  276. package/dist/esm/funcs/reposUpdate.d.ts +22 -0
  277. package/dist/esm/funcs/reposUpdate.d.ts.map +1 -0
  278. package/dist/esm/funcs/reposUpdate.js +108 -0
  279. package/dist/esm/funcs/reposUpdate.js.map +1 -0
  280. package/dist/esm/lib/config.d.ts +2 -2
  281. package/dist/esm/lib/config.js +2 -2
  282. package/dist/esm/mcp-server/mcp-server.js +1 -1
  283. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  284. package/dist/esm/mcp-server/server.js +17 -1
  285. package/dist/esm/mcp-server/server.js.map +1 -1
  286. package/dist/esm/mcp-server/tools/llmEvalsListRuns.js +1 -1
  287. package/dist/esm/mcp-server/tools/llmEvalsListRuns.js.map +1 -1
  288. package/dist/esm/mcp-server/tools/llmEvalsListScheduleRuns.js +1 -1
  289. package/dist/esm/mcp-server/tools/llmEvalsListScheduleRuns.js.map +1 -1
  290. package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.d.ts +8 -0
  291. package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.d.ts.map +1 -0
  292. package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.js +31 -0
  293. package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.js.map +1 -0
  294. package/dist/esm/mcp-server/tools/reposCollaboratorsList.d.ts +8 -0
  295. package/dist/esm/mcp-server/tools/reposCollaboratorsList.d.ts.map +1 -0
  296. package/dist/esm/mcp-server/tools/reposCollaboratorsList.js +30 -0
  297. package/dist/esm/mcp-server/tools/reposCollaboratorsList.js.map +1 -0
  298. package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.d.ts +8 -0
  299. package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.d.ts.map +1 -0
  300. package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.js +29 -0
  301. package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.js.map +1 -0
  302. package/dist/esm/mcp-server/tools/reposCreate.d.ts +8 -0
  303. package/dist/esm/mcp-server/tools/reposCreate.d.ts.map +1 -0
  304. package/dist/esm/mcp-server/tools/reposCreate.js +31 -0
  305. package/dist/esm/mcp-server/tools/reposCreate.js.map +1 -0
  306. package/dist/esm/mcp-server/tools/reposDelete.d.ts +8 -0
  307. package/dist/esm/mcp-server/tools/reposDelete.d.ts.map +1 -0
  308. package/dist/esm/mcp-server/tools/reposDelete.js +29 -0
  309. package/dist/esm/mcp-server/tools/reposDelete.js.map +1 -0
  310. package/dist/esm/mcp-server/tools/reposGet.d.ts +8 -0
  311. package/dist/esm/mcp-server/tools/reposGet.d.ts.map +1 -0
  312. package/dist/esm/mcp-server/tools/reposGet.js +28 -0
  313. package/dist/esm/mcp-server/tools/reposGet.js.map +1 -0
  314. package/dist/esm/mcp-server/tools/reposList.d.ts +8 -0
  315. package/dist/esm/mcp-server/tools/reposList.d.ts.map +1 -0
  316. package/dist/esm/mcp-server/tools/reposList.js +30 -0
  317. package/dist/esm/mcp-server/tools/reposList.js.map +1 -0
  318. package/dist/esm/mcp-server/tools/reposUpdate.d.ts +8 -0
  319. package/dist/esm/mcp-server/tools/reposUpdate.d.ts.map +1 -0
  320. package/dist/esm/mcp-server/tools/reposUpdate.js +32 -0
  321. package/dist/esm/mcp-server/tools/reposUpdate.js.map +1 -0
  322. package/dist/esm/models/components/collaboratorrequest.d.ts +45 -0
  323. package/dist/esm/models/components/collaboratorrequest.d.ts.map +1 -0
  324. package/dist/esm/models/components/collaboratorrequest.js +34 -0
  325. package/dist/esm/models/components/collaboratorrequest.js.map +1 -0
  326. package/dist/esm/models/components/createreporequest.d.ts +46 -0
  327. package/dist/esm/models/components/createreporequest.d.ts.map +1 -0
  328. package/dist/esm/models/components/createreporequest.js +35 -0
  329. package/dist/esm/models/components/createreporequest.js.map +1 -0
  330. package/dist/esm/models/components/index.d.ts +6 -0
  331. package/dist/esm/models/components/index.d.ts.map +1 -1
  332. package/dist/esm/models/components/index.js +6 -0
  333. package/dist/esm/models/components/index.js.map +1 -1
  334. package/dist/esm/models/components/member.d.ts +51 -0
  335. package/dist/esm/models/components/member.d.ts.map +1 -0
  336. package/dist/esm/models/components/member.js +39 -0
  337. package/dist/esm/models/components/member.js.map +1 -0
  338. package/dist/esm/models/components/patchreporequest.d.ts +34 -0
  339. package/dist/esm/models/components/patchreporequest.d.ts.map +1 -0
  340. package/dist/esm/models/components/patchreporequest.js +25 -0
  341. package/dist/esm/models/components/patchreporequest.js.map +1 -0
  342. package/dist/esm/models/components/repo.d.ts +43 -0
  343. package/dist/esm/models/components/repo.d.ts.map +1 -0
  344. package/dist/esm/models/components/repo.js +41 -0
  345. package/dist/esm/models/components/repo.js.map +1 -0
  346. package/dist/esm/models/components/visibility.d.ts +24 -0
  347. package/dist/esm/models/components/visibility.d.ts.map +1 -0
  348. package/dist/esm/models/components/visibility.js +20 -0
  349. package/dist/esm/models/components/visibility.js.map +1 -0
  350. package/dist/esm/models/errors/index.d.ts +1 -0
  351. package/dist/esm/models/errors/index.d.ts.map +1 -1
  352. package/dist/esm/models/errors/index.js +1 -0
  353. package/dist/esm/models/errors/index.js.map +1 -1
  354. package/dist/esm/models/errors/repoerror.d.ts +41 -0
  355. package/dist/esm/models/errors/repoerror.d.ts.map +1 -0
  356. package/dist/esm/models/errors/repoerror.js +55 -0
  357. package/dist/esm/models/errors/repoerror.js.map +1 -0
  358. package/dist/esm/models/operations/createrepo.d.ts +23 -0
  359. package/dist/esm/models/operations/createrepo.d.ts.map +1 -0
  360. package/dist/esm/models/operations/createrepo.js +34 -0
  361. package/dist/esm/models/operations/createrepo.js.map +1 -0
  362. package/dist/esm/models/operations/deletecollaborator.d.ts +35 -0
  363. package/dist/esm/models/operations/deletecollaborator.d.ts.map +1 -0
  364. package/dist/esm/models/operations/deletecollaborator.js +35 -0
  365. package/dist/esm/models/operations/deletecollaborator.js.map +1 -0
  366. package/dist/esm/models/operations/deleterepo.d.ts +30 -0
  367. package/dist/esm/models/operations/deleterepo.d.ts.map +1 -0
  368. package/dist/esm/models/operations/deleterepo.js +33 -0
  369. package/dist/esm/models/operations/deleterepo.js.map +1 -0
  370. package/dist/esm/models/operations/getrepo.d.ts +30 -0
  371. package/dist/esm/models/operations/getrepo.d.ts.map +1 -0
  372. package/dist/esm/models/operations/getrepo.js +33 -0
  373. package/dist/esm/models/operations/getrepo.js.map +1 -0
  374. package/dist/esm/models/operations/index.d.ts +8 -0
  375. package/dist/esm/models/operations/index.d.ts.map +1 -1
  376. package/dist/esm/models/operations/index.js +8 -0
  377. package/dist/esm/models/operations/index.js.map +1 -1
  378. package/dist/esm/models/operations/listcollaborators.d.ts +47 -0
  379. package/dist/esm/models/operations/listcollaborators.d.ts.map +1 -0
  380. package/dist/esm/models/operations/listcollaborators.js +48 -0
  381. package/dist/esm/models/operations/listcollaborators.js.map +1 -0
  382. package/dist/esm/models/operations/listevalruns.d.ts +2 -0
  383. package/dist/esm/models/operations/listevalruns.d.ts.map +1 -1
  384. package/dist/esm/models/operations/listevalruns.js +4 -0
  385. package/dist/esm/models/operations/listevalruns.js.map +1 -1
  386. package/dist/esm/models/operations/listevalscheduleruns.d.ts +2 -0
  387. package/dist/esm/models/operations/listevalscheduleruns.d.ts.map +1 -1
  388. package/dist/esm/models/operations/listevalscheduleruns.js +4 -0
  389. package/dist/esm/models/operations/listevalscheduleruns.js.map +1 -1
  390. package/dist/esm/models/operations/listrepos.d.ts +37 -0
  391. package/dist/esm/models/operations/listrepos.d.ts.map +1 -0
  392. package/dist/esm/models/operations/listrepos.js +44 -0
  393. package/dist/esm/models/operations/listrepos.js.map +1 -0
  394. package/dist/esm/models/operations/patchrepo.d.ts +33 -0
  395. package/dist/esm/models/operations/patchrepo.d.ts.map +1 -0
  396. package/dist/esm/models/operations/patchrepo.js +38 -0
  397. package/dist/esm/models/operations/patchrepo.js.map +1 -0
  398. package/dist/esm/models/operations/putcollaborator.d.ts +38 -0
  399. package/dist/esm/models/operations/putcollaborator.d.ts.map +1 -0
  400. package/dist/esm/models/operations/putcollaborator.js +40 -0
  401. package/dist/esm/models/operations/putcollaborator.js.map +1 -0
  402. package/dist/esm/react-query/index.d.ts +8 -0
  403. package/dist/esm/react-query/index.d.ts.map +1 -1
  404. package/dist/esm/react-query/index.js +8 -0
  405. package/dist/esm/react-query/index.js.map +1 -1
  406. package/dist/esm/react-query/llmEvalsListRuns.core.d.ts +1 -0
  407. package/dist/esm/react-query/llmEvalsListRuns.core.d.ts.map +1 -1
  408. package/dist/esm/react-query/llmEvalsListRuns.core.js +1 -0
  409. package/dist/esm/react-query/llmEvalsListRuns.core.js.map +1 -1
  410. package/dist/esm/react-query/llmEvalsListRuns.d.ts +4 -2
  411. package/dist/esm/react-query/llmEvalsListRuns.d.ts.map +1 -1
  412. package/dist/esm/react-query/llmEvalsListRuns.js +2 -2
  413. package/dist/esm/react-query/llmEvalsListRuns.js.map +1 -1
  414. package/dist/esm/react-query/llmEvalsListScheduleRuns.core.d.ts +1 -0
  415. package/dist/esm/react-query/llmEvalsListScheduleRuns.core.d.ts.map +1 -1
  416. package/dist/esm/react-query/llmEvalsListScheduleRuns.core.js +1 -0
  417. package/dist/esm/react-query/llmEvalsListScheduleRuns.core.js.map +1 -1
  418. package/dist/esm/react-query/llmEvalsListScheduleRuns.d.ts +4 -2
  419. package/dist/esm/react-query/llmEvalsListScheduleRuns.d.ts.map +1 -1
  420. package/dist/esm/react-query/llmEvalsListScheduleRuns.js +2 -2
  421. package/dist/esm/react-query/llmEvalsListScheduleRuns.js.map +1 -1
  422. package/dist/esm/react-query/reposCollaboratorsAdd.d.ts +32 -0
  423. package/dist/esm/react-query/reposCollaboratorsAdd.d.ts.map +1 -0
  424. package/dist/esm/react-query/reposCollaboratorsAdd.js +44 -0
  425. package/dist/esm/react-query/reposCollaboratorsAdd.js.map +1 -0
  426. package/dist/esm/react-query/reposCollaboratorsList.core.d.ts +14 -0
  427. package/dist/esm/react-query/reposCollaboratorsList.core.d.ts.map +1 -0
  428. package/dist/esm/react-query/reposCollaboratorsList.core.js +31 -0
  429. package/dist/esm/react-query/reposCollaboratorsList.core.js.map +1 -0
  430. package/dist/esm/react-query/reposCollaboratorsList.d.ts +43 -0
  431. package/dist/esm/react-query/reposCollaboratorsList.d.ts.map +1 -0
  432. package/dist/esm/react-query/reposCollaboratorsList.js +52 -0
  433. package/dist/esm/react-query/reposCollaboratorsList.js.map +1 -0
  434. package/dist/esm/react-query/reposCollaboratorsRemove.d.ts +30 -0
  435. package/dist/esm/react-query/reposCollaboratorsRemove.d.ts.map +1 -0
  436. package/dist/esm/react-query/reposCollaboratorsRemove.js +43 -0
  437. package/dist/esm/react-query/reposCollaboratorsRemove.js.map +1 -0
  438. package/dist/esm/react-query/reposCreate.d.ts +32 -0
  439. package/dist/esm/react-query/reposCreate.d.ts.map +1 -0
  440. package/dist/esm/react-query/reposCreate.js +44 -0
  441. package/dist/esm/react-query/reposCreate.js.map +1 -0
  442. package/dist/esm/react-query/reposDelete.d.ts +30 -0
  443. package/dist/esm/react-query/reposDelete.d.ts.map +1 -0
  444. package/dist/esm/react-query/reposDelete.js +43 -0
  445. package/dist/esm/react-query/reposDelete.js.map +1 -0
  446. package/dist/esm/react-query/reposGet.core.d.ts +15 -0
  447. package/dist/esm/react-query/reposGet.core.d.ts.map +1 -0
  448. package/dist/esm/react-query/reposGet.core.js +31 -0
  449. package/dist/esm/react-query/reposGet.core.js.map +1 -0
  450. package/dist/esm/react-query/reposGet.d.ts +41 -0
  451. package/dist/esm/react-query/reposGet.d.ts.map +1 -0
  452. package/dist/esm/react-query/reposGet.js +50 -0
  453. package/dist/esm/react-query/reposGet.js.map +1 -0
  454. package/dist/esm/react-query/reposList.core.d.ts +14 -0
  455. package/dist/esm/react-query/reposList.core.d.ts.map +1 -0
  456. package/dist/esm/react-query/reposList.core.js +29 -0
  457. package/dist/esm/react-query/reposList.core.js.map +1 -0
  458. package/dist/esm/react-query/reposList.d.ts +37 -0
  459. package/dist/esm/react-query/reposList.d.ts.map +1 -0
  460. package/dist/esm/react-query/reposList.js +52 -0
  461. package/dist/esm/react-query/reposList.js.map +1 -0
  462. package/dist/esm/react-query/reposUpdate.d.ts +33 -0
  463. package/dist/esm/react-query/reposUpdate.d.ts.map +1 -0
  464. package/dist/esm/react-query/reposUpdate.js +45 -0
  465. package/dist/esm/react-query/reposUpdate.js.map +1 -0
  466. package/dist/esm/sdk/collaborators.d.ts +31 -0
  467. package/dist/esm/sdk/collaborators.d.ts.map +1 -0
  468. package/dist/esm/sdk/collaborators.js +42 -0
  469. package/dist/esm/sdk/collaborators.js.map +1 -0
  470. package/dist/esm/sdk/evals.d.ts +2 -2
  471. package/dist/esm/sdk/evals.js +2 -2
  472. package/dist/esm/sdk/repos.d.ts +51 -0
  473. package/dist/esm/sdk/repos.d.ts.map +1 -0
  474. package/dist/esm/sdk/repos.js +69 -0
  475. package/dist/esm/sdk/repos.js.map +1 -0
  476. package/dist/esm/sdk/sdk.d.ts +3 -0
  477. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  478. package/dist/esm/sdk/sdk.js +4 -0
  479. package/dist/esm/sdk/sdk.js.map +1 -1
  480. package/jsr.json +1 -1
  481. package/package.json +1 -1
  482. package/src/funcs/llmEvalsListRuns.ts +2 -1
  483. package/src/funcs/llmEvalsListScheduleRuns.ts +2 -1
  484. package/src/funcs/reposCollaboratorsAdd.ts +208 -0
  485. package/src/funcs/reposCollaboratorsList.ts +198 -0
  486. package/src/funcs/reposCollaboratorsRemove.ts +204 -0
  487. package/src/funcs/reposCreate.ts +190 -0
  488. package/src/funcs/reposDelete.ts +198 -0
  489. package/src/funcs/reposGet.ts +196 -0
  490. package/src/funcs/reposList.ts +187 -0
  491. package/src/funcs/reposUpdate.ts +201 -0
  492. package/src/lib/config.ts +2 -2
  493. package/src/mcp-server/mcp-server.ts +1 -1
  494. package/src/mcp-server/server.ts +17 -1
  495. package/src/mcp-server/tools/llmEvalsListRuns.ts +1 -1
  496. package/src/mcp-server/tools/llmEvalsListScheduleRuns.ts +1 -1
  497. package/src/mcp-server/tools/reposCollaboratorsAdd.ts +40 -0
  498. package/src/mcp-server/tools/reposCollaboratorsList.ts +39 -0
  499. package/src/mcp-server/tools/reposCollaboratorsRemove.ts +37 -0
  500. package/src/mcp-server/tools/reposCreate.ts +40 -0
  501. package/src/mcp-server/tools/reposDelete.ts +37 -0
  502. package/src/mcp-server/tools/reposGet.ts +37 -0
  503. package/src/mcp-server/tools/reposList.ts +39 -0
  504. package/src/mcp-server/tools/reposUpdate.ts +41 -0
  505. package/src/models/components/collaboratorrequest.ts +87 -0
  506. package/src/models/components/createreporequest.ts +92 -0
  507. package/src/models/components/index.ts +6 -0
  508. package/src/models/components/member.ts +84 -0
  509. package/src/models/components/patchreporequest.ts +76 -0
  510. package/src/models/components/repo.ts +92 -0
  511. package/src/models/components/visibility.ts +31 -0
  512. package/src/models/errors/index.ts +1 -0
  513. package/src/models/errors/repoerror.ts +97 -0
  514. package/src/models/operations/createrepo.ts +70 -0
  515. package/src/models/operations/deletecollaborator.ts +84 -0
  516. package/src/models/operations/deleterepo.ts +77 -0
  517. package/src/models/operations/getrepo.ts +73 -0
  518. package/src/models/operations/index.ts +8 -0
  519. package/src/models/operations/listcollaborators.ts +126 -0
  520. package/src/models/operations/listevalruns.ts +6 -0
  521. package/src/models/operations/listevalscheduleruns.ts +6 -0
  522. package/src/models/operations/listrepos.ts +110 -0
  523. package/src/models/operations/patchrepo.ts +84 -0
  524. package/src/models/operations/putcollaborator.ts +91 -0
  525. package/src/react-query/index.ts +8 -0
  526. package/src/react-query/llmEvalsListRuns.core.ts +2 -0
  527. package/src/react-query/llmEvalsListRuns.ts +4 -2
  528. package/src/react-query/llmEvalsListScheduleRuns.core.ts +2 -0
  529. package/src/react-query/llmEvalsListScheduleRuns.ts +4 -2
  530. package/src/react-query/reposCollaboratorsAdd.ts +113 -0
  531. package/src/react-query/reposCollaboratorsList.core.ts +77 -0
  532. package/src/react-query/reposCollaboratorsList.ts +150 -0
  533. package/src/react-query/reposCollaboratorsRemove.ts +111 -0
  534. package/src/react-query/reposCreate.ts +113 -0
  535. package/src/react-query/reposDelete.ts +111 -0
  536. package/src/react-query/reposGet.core.ts +73 -0
  537. package/src/react-query/reposGet.ts +136 -0
  538. package/src/react-query/reposList.core.ts +68 -0
  539. package/src/react-query/reposList.ts +130 -0
  540. package/src/react-query/reposUpdate.ts +114 -0
  541. package/src/sdk/collaborators.ts +68 -0
  542. package/src/sdk/evals.ts +2 -2
  543. package/src/sdk/repos.ts +113 -0
  544. package/src/sdk/sdk.ts +6 -0
package/bin/mcp-server.js CHANGED
@@ -52876,9 +52876,9 @@ var init_config = __esm(() => {
52876
52876
  SDK_METADATA = {
52877
52877
  language: "typescript",
52878
52878
  openapiDocVersion: "1.1.0",
52879
- sdkVersion: "0.51.25",
52879
+ sdkVersion: "0.51.27",
52880
52880
  genVersion: "2.924.0",
52881
- userAgent: "speakeasy-sdk/typescript 0.51.25 2.924.0 1.1.0 @meetkai/mka1"
52881
+ userAgent: "speakeasy-sdk/typescript 0.51.27 2.924.0 1.1.0 @meetkai/mka1"
52882
52882
  };
52883
52883
  });
52884
52884
 
@@ -57914,6 +57914,24 @@ var init_coderesult = __esm(() => {
57914
57914
  });
57915
57915
  });
57916
57916
 
57917
+ // src/models/components/collaboratorrequest.ts
57918
+ var CollaboratorRequestRole, CollaboratorRequestRole$inboundSchema, CollaboratorRequestRole$outboundSchema, CollaboratorRequest$inboundSchema, CollaboratorRequest$outboundSchema;
57919
+ var init_collaboratorrequest = __esm(() => {
57920
+ init_esm();
57921
+ CollaboratorRequestRole = {
57922
+ Reader: "reader",
57923
+ Writer: "writer"
57924
+ };
57925
+ CollaboratorRequestRole$inboundSchema = nativeEnumType(CollaboratorRequestRole);
57926
+ CollaboratorRequestRole$outboundSchema = CollaboratorRequestRole$inboundSchema;
57927
+ CollaboratorRequest$inboundSchema = objectType({
57928
+ role: CollaboratorRequestRole$inboundSchema
57929
+ });
57930
+ CollaboratorRequest$outboundSchema = objectType({
57931
+ role: CollaboratorRequestRole$outboundSchema
57932
+ });
57933
+ });
57934
+
57917
57935
  // src/models/components/commandrequest.ts
57918
57936
  var CommandRequest$inboundSchema, CommandRequest$outboundSchema;
57919
57937
  var init_commandrequest = __esm(() => {
@@ -62498,6 +62516,28 @@ var init_createpromptresponse = __esm(() => {
62498
62516
  });
62499
62517
  });
62500
62518
 
62519
+ // src/models/components/createreporequest.ts
62520
+ var CreateRepoRequestVisibility, CreateRepoRequestVisibility$inboundSchema, CreateRepoRequestVisibility$outboundSchema, CreateRepoRequest$inboundSchema, CreateRepoRequest$outboundSchema;
62521
+ var init_createreporequest = __esm(() => {
62522
+ init_esm();
62523
+ CreateRepoRequestVisibility = {
62524
+ Private: "private",
62525
+ Team: "team"
62526
+ };
62527
+ CreateRepoRequestVisibility$inboundSchema = nativeEnumType(CreateRepoRequestVisibility);
62528
+ CreateRepoRequestVisibility$outboundSchema = CreateRepoRequestVisibility$inboundSchema;
62529
+ CreateRepoRequest$inboundSchema = objectType({
62530
+ description: stringType().optional(),
62531
+ name: stringType(),
62532
+ visibility: CreateRepoRequestVisibility$inboundSchema.default("private")
62533
+ });
62534
+ CreateRepoRequest$outboundSchema = objectType({
62535
+ description: stringType().optional(),
62536
+ name: stringType(),
62537
+ visibility: CreateRepoRequestVisibility$outboundSchema.default("private")
62538
+ });
62539
+ });
62540
+
62501
62541
  // src/models/components/memorymountaccess.ts
62502
62542
  var MemoryMountAccess, MemoryMountAccess$inboundSchema, MemoryMountAccess$outboundSchema;
62503
62543
  var init_memorymountaccess = __esm(() => {
@@ -67721,6 +67761,27 @@ var init_mcptoolcallwithid = __esm(() => {
67721
67761
  });
67722
67762
  });
67723
67763
 
67764
+ // src/models/components/member.ts
67765
+ var MemberRole, MemberRole$inboundSchema, MemberRole$outboundSchema, Member$inboundSchema, Member$outboundSchema;
67766
+ var init_member = __esm(() => {
67767
+ init_esm();
67768
+ MemberRole = {
67769
+ Reader: "reader",
67770
+ Writer: "writer",
67771
+ Owner: "owner"
67772
+ };
67773
+ MemberRole$inboundSchema = nativeEnumType(MemberRole);
67774
+ MemberRole$outboundSchema = MemberRole$inboundSchema;
67775
+ Member$inboundSchema = objectType({
67776
+ role: MemberRole$inboundSchema,
67777
+ user: stringType()
67778
+ });
67779
+ Member$outboundSchema = objectType({
67780
+ role: MemberRole$outboundSchema,
67781
+ user: stringType()
67782
+ });
67783
+ });
67784
+
67724
67785
  // src/models/components/memoryentry.ts
67725
67786
  var MemoryEntry$inboundSchema, MemoryEntry$outboundSchema;
67726
67787
  var init_memoryentry = __esm(() => {
@@ -69491,6 +69552,35 @@ var init_pageservingtenant = __esm(() => {
69491
69552
  });
69492
69553
  });
69493
69554
 
69555
+ // src/models/components/visibility.ts
69556
+ var Visibility, Visibility$inboundSchema, Visibility$outboundSchema;
69557
+ var init_visibility = __esm(() => {
69558
+ init_esm();
69559
+ Visibility = {
69560
+ Private: "private",
69561
+ Team: "team"
69562
+ };
69563
+ Visibility$inboundSchema = nativeEnumType(Visibility);
69564
+ Visibility$outboundSchema = Visibility$inboundSchema;
69565
+ });
69566
+
69567
+ // src/models/components/patchreporequest.ts
69568
+ var PatchRepoRequest$inboundSchema, PatchRepoRequest$outboundSchema;
69569
+ var init_patchreporequest = __esm(() => {
69570
+ init_esm();
69571
+ init_visibility();
69572
+ PatchRepoRequest$inboundSchema = objectType({
69573
+ description: stringType().optional(),
69574
+ name: stringType().optional(),
69575
+ visibility: Visibility$inboundSchema.optional()
69576
+ });
69577
+ PatchRepoRequest$outboundSchema = objectType({
69578
+ description: stringType().optional(),
69579
+ name: stringType().optional(),
69580
+ visibility: Visibility$outboundSchema.optional()
69581
+ });
69582
+ });
69583
+
69494
69584
  // src/models/components/preconfiguredskill.ts
69495
69585
  var PreconfiguredSkill$inboundSchema, PreconfiguredSkill$outboundSchema;
69496
69586
  var init_preconfiguredskill = __esm(() => {
@@ -69705,6 +69795,38 @@ var init_registrymanagementlistresponse = __esm(() => {
69705
69795
  });
69706
69796
  });
69707
69797
 
69798
+ // src/models/components/repo.ts
69799
+ var Repo$inboundSchema, Repo$outboundSchema;
69800
+ var init_repo = __esm(() => {
69801
+ init_esm();
69802
+ init_primitives();
69803
+ init_visibility();
69804
+ Repo$inboundSchema = objectType({
69805
+ created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
69806
+ description: stringType(),
69807
+ id: stringType(),
69808
+ name: stringType(),
69809
+ org: stringType(),
69810
+ visibility: Visibility$inboundSchema
69811
+ }).transform((v2) => {
69812
+ return remap(v2, {
69813
+ created_at: "createdAt"
69814
+ });
69815
+ });
69816
+ Repo$outboundSchema = objectType({
69817
+ createdAt: dateType().transform((v2) => v2.toISOString()),
69818
+ description: stringType(),
69819
+ id: stringType(),
69820
+ name: stringType(),
69821
+ org: stringType(),
69822
+ visibility: Visibility$outboundSchema
69823
+ }).transform((v2) => {
69824
+ return remap(v2, {
69825
+ createdAt: "created_at"
69826
+ });
69827
+ });
69828
+ });
69829
+
69708
69830
  // src/models/components/responsestatus.ts
69709
69831
  var ResponseStatus, ResponseStatus$inboundSchema, ResponseStatus$outboundSchema;
69710
69832
  var init_responsestatus = __esm(() => {
@@ -76131,6 +76253,7 @@ var init_components = __esm(() => {
76131
76253
  init_coderequest();
76132
76254
  init_coderesult();
76133
76255
  init_coderuntime();
76256
+ init_collaboratorrequest();
76134
76257
  init_commandrequest();
76135
76258
  init_commandresult();
76136
76259
  init_compactedresponse();
@@ -76174,6 +76297,7 @@ var init_components = __esm(() => {
76174
76297
  init_creatememorystorerequest();
76175
76298
  init_createpromptrequest();
76176
76299
  init_createpromptresponse();
76300
+ init_createreporequest();
76177
76301
  init_createsessionrequest();
76178
76302
  init_createsessionresponse();
76179
76303
  init_createtelegramagentconnectorrequest();
@@ -76355,6 +76479,7 @@ var init_components = __esm(() => {
76355
76479
  init_mcptoolchoice();
76356
76480
  init_mcptooldefinition();
76357
76481
  init_mcptoolfilter();
76482
+ init_member();
76358
76483
  init_memoryentry();
76359
76484
  init_memoryentrydeleted();
76360
76485
  init_memoryentrylist();
@@ -76391,6 +76516,7 @@ var init_components = __esm(() => {
76391
76516
  init_pagerun();
76392
76517
  init_pagesecret();
76393
76518
  init_pageservingtenant();
76519
+ init_patchreporequest();
76394
76520
  init_pendingsafetycheck();
76395
76521
  init_preconfiguredskill();
76396
76522
  init_preconfiguredskilllist();
@@ -76412,6 +76538,7 @@ var init_components = __esm(() => {
76412
76538
  init_registrymodelorigin();
76413
76539
  init_registrysource();
76414
76540
  init_reinforcementhyperparameters();
76541
+ init_repo();
76415
76542
  init_requestcounts();
76416
76543
  init_resourcerole();
76417
76544
  init_responsecancelledevent();
@@ -76605,6 +76732,7 @@ var init_components = __esm(() => {
76605
76732
  init_vectorstorelist();
76606
76733
  init_vectorstoresearchresults();
76607
76734
  init_vectorstoresgroupby();
76735
+ init_visibility();
76608
76736
  init_waitaction();
76609
76737
  init_wakeagentrunrequest();
76610
76738
  init_websearchaction();
@@ -81063,6 +81191,51 @@ var init_removeteammember = __esm(() => {
81063
81191
  }));
81064
81192
  });
81065
81193
 
81194
+ // src/models/errors/repoerror.ts
81195
+ var RepoError, RepoError$inboundSchema, RepoError$outboundSchema;
81196
+ var init_repoerror = __esm(() => {
81197
+ init_esm();
81198
+ init_primitives();
81199
+ init_sdkerror();
81200
+ RepoError = class RepoError extends SDKError {
81201
+ correlationId;
81202
+ error;
81203
+ data$;
81204
+ constructor(err, httpMeta) {
81205
+ const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
81206
+ super(message, httpMeta);
81207
+ this.data$ = err;
81208
+ this.correlationId = err.correlationId;
81209
+ this.error = err.error;
81210
+ this.name = "RepoError";
81211
+ }
81212
+ };
81213
+ RepoError$inboundSchema = objectType({
81214
+ correlation_id: stringType(),
81215
+ error: stringType(),
81216
+ request$: instanceOfType(Request),
81217
+ response$: instanceOfType(Response),
81218
+ body$: stringType()
81219
+ }).transform((v2) => {
81220
+ const remapped = remap(v2, {
81221
+ correlation_id: "correlationId"
81222
+ });
81223
+ return new RepoError(remapped, {
81224
+ request: v2.request$,
81225
+ response: v2.response$,
81226
+ body: v2.body$
81227
+ });
81228
+ });
81229
+ RepoError$outboundSchema = instanceOfType(RepoError).transform((v2) => v2.data$).pipe(objectType({
81230
+ correlationId: stringType(),
81231
+ error: stringType()
81232
+ }).transform((v2) => {
81233
+ return remap(v2, {
81234
+ correlationId: "correlation_id"
81235
+ });
81236
+ }));
81237
+ });
81238
+
81066
81239
  // src/models/errors/revokeclusterinvite.ts
81067
81240
  var RevokeClusterInviteAuthClusterResponse429ResponseBody, RevokeClusterInviteAuthClusterResponse409ResponseBody, RevokeClusterInviteAuthClusterResponse404ResponseBody, RevokeClusterInviteAuthClusterResponseResponseBody, RevokeClusterInviteAuthClusterResponseBody, RevokeClusterInviteResponseBody, RevokeClusterInviteAuthClusterResponse429ResponseBody$inboundSchema, RevokeClusterInviteAuthClusterResponse429ResponseBody$outboundSchema, RevokeClusterInviteAuthClusterResponse409ResponseBody$inboundSchema, RevokeClusterInviteAuthClusterResponse409ResponseBody$outboundSchema, RevokeClusterInviteAuthClusterResponse404ResponseBody$inboundSchema, RevokeClusterInviteAuthClusterResponse404ResponseBody$outboundSchema, RevokeClusterInviteAuthClusterResponseResponseBody$inboundSchema, RevokeClusterInviteAuthClusterResponseResponseBody$outboundSchema, RevokeClusterInviteAuthClusterResponseBody$inboundSchema, RevokeClusterInviteAuthClusterResponseBody$outboundSchema, RevokeClusterInviteResponseBody$inboundSchema, RevokeClusterInviteResponseBody$outboundSchema;
81068
81241
  var init_revokeclusterinvite = __esm(() => {
@@ -82360,6 +82533,7 @@ var init_errors4 = __esm(() => {
82360
82533
  init_regenerateserviceaccountapikey();
82361
82534
  init_reissueownerkey();
82362
82535
  init_removeteammember();
82536
+ init_repoerror();
82363
82537
  init_responsevalidationerror();
82364
82538
  init_revokeclusterinvite();
82365
82539
  init_sdkerror();
@@ -82547,7 +82721,7 @@ var init_addmodelcatalogorgaccess = __esm(() => {
82547
82721
  });
82548
82722
 
82549
82723
  // src/models/operations/addteammember.ts
82550
- var AddTeamMemberRequestBody$inboundSchema, AddTeamMemberRequestBody$outboundSchema, AddTeamMemberRequest$inboundSchema, AddTeamMemberRequest$outboundSchema, Member$inboundSchema, Member$outboundSchema, AddTeamMemberResponseBody$inboundSchema2, AddTeamMemberResponseBody$outboundSchema2;
82724
+ var AddTeamMemberRequestBody$inboundSchema, AddTeamMemberRequestBody$outboundSchema, AddTeamMemberRequest$inboundSchema, AddTeamMemberRequest$outboundSchema, Member$inboundSchema2, Member$outboundSchema2, AddTeamMemberResponseBody$inboundSchema2, AddTeamMemberResponseBody$outboundSchema2;
82551
82725
  var init_addteammember2 = __esm(() => {
82552
82726
  init_esm();
82553
82727
  init_primitives();
@@ -82579,23 +82753,23 @@ var init_addteammember2 = __esm(() => {
82579
82753
  requestBody: "RequestBody"
82580
82754
  });
82581
82755
  });
82582
- Member$inboundSchema = objectType({
82756
+ Member$inboundSchema2 = objectType({
82583
82757
  id: stringType(),
82584
82758
  teamId: stringType(),
82585
82759
  userId: stringType(),
82586
82760
  createdAt: stringType()
82587
82761
  });
82588
- Member$outboundSchema = objectType({
82762
+ Member$outboundSchema2 = objectType({
82589
82763
  id: stringType(),
82590
82764
  teamId: stringType(),
82591
82765
  userId: stringType(),
82592
82766
  createdAt: stringType()
82593
82767
  });
82594
82768
  AddTeamMemberResponseBody$inboundSchema2 = objectType({
82595
- member: lazyType(() => Member$inboundSchema)
82769
+ member: lazyType(() => Member$inboundSchema2)
82596
82770
  });
82597
82771
  AddTeamMemberResponseBody$outboundSchema2 = objectType({
82598
- member: lazyType(() => Member$outboundSchema)
82772
+ member: lazyType(() => Member$outboundSchema2)
82599
82773
  });
82600
82774
  });
82601
82775
 
@@ -85032,6 +85206,32 @@ var init_createpromptversion = __esm(() => {
85032
85206
  });
85033
85207
  });
85034
85208
 
85209
+ // src/models/operations/createrepo.ts
85210
+ var CreateRepoRequest$inboundSchema2, CreateRepoRequest$outboundSchema2;
85211
+ var init_createrepo = __esm(() => {
85212
+ init_esm();
85213
+ init_primitives();
85214
+ init_components();
85215
+ CreateRepoRequest$inboundSchema2 = objectType({
85216
+ "X-On-Behalf-Of": stringType().optional(),
85217
+ CreateRepoRequest: CreateRepoRequest$inboundSchema
85218
+ }).transform((v2) => {
85219
+ return remap(v2, {
85220
+ "X-On-Behalf-Of": "xOnBehalfOf",
85221
+ CreateRepoRequest: "createRepoRequest"
85222
+ });
85223
+ });
85224
+ CreateRepoRequest$outboundSchema2 = objectType({
85225
+ xOnBehalfOf: stringType().optional(),
85226
+ createRepoRequest: CreateRepoRequest$outboundSchema
85227
+ }).transform((v2) => {
85228
+ return remap(v2, {
85229
+ xOnBehalfOf: "X-On-Behalf-Of",
85230
+ createRepoRequest: "CreateRepoRequest"
85231
+ });
85232
+ });
85233
+ });
85234
+
85035
85235
  // src/lib/event-streams.ts
85036
85236
  function findBoundary(buf, len, from) {
85037
85237
  for (let i = from;i < len; i++) {
@@ -85967,6 +86167,33 @@ var init_deleteclusterorg2 = __esm(() => {
85967
86167
  });
85968
86168
  });
85969
86169
 
86170
+ // src/models/operations/deletecollaborator.ts
86171
+ var DeleteCollaboratorRequest$inboundSchema, DeleteCollaboratorRequest$outboundSchema;
86172
+ var init_deletecollaborator = __esm(() => {
86173
+ init_esm();
86174
+ init_primitives();
86175
+ DeleteCollaboratorRequest$inboundSchema = objectType({
86176
+ org: stringType(),
86177
+ name: stringType(),
86178
+ user: stringType(),
86179
+ "X-On-Behalf-Of": stringType().optional()
86180
+ }).transform((v2) => {
86181
+ return remap(v2, {
86182
+ "X-On-Behalf-Of": "xOnBehalfOf"
86183
+ });
86184
+ });
86185
+ DeleteCollaboratorRequest$outboundSchema = objectType({
86186
+ org: stringType(),
86187
+ name: stringType(),
86188
+ user: stringType(),
86189
+ xOnBehalfOf: stringType().optional()
86190
+ }).transform((v2) => {
86191
+ return remap(v2, {
86192
+ xOnBehalfOf: "X-On-Behalf-Of"
86193
+ });
86194
+ });
86195
+ });
86196
+
85970
86197
  // src/models/operations/deleteevalrun.ts
85971
86198
  var DeleteEvalRunRequest$inboundSchema, DeleteEvalRunRequest$outboundSchema;
85972
86199
  var init_deleteevalrun = __esm(() => {
@@ -86339,6 +86566,31 @@ var init_deleteprompt = __esm(() => {
86339
86566
  });
86340
86567
  });
86341
86568
 
86569
+ // src/models/operations/deleterepo.ts
86570
+ var DeleteRepoRequest$inboundSchema, DeleteRepoRequest$outboundSchema;
86571
+ var init_deleterepo = __esm(() => {
86572
+ init_esm();
86573
+ init_primitives();
86574
+ DeleteRepoRequest$inboundSchema = objectType({
86575
+ org: stringType(),
86576
+ name: stringType(),
86577
+ "X-On-Behalf-Of": stringType().optional()
86578
+ }).transform((v2) => {
86579
+ return remap(v2, {
86580
+ "X-On-Behalf-Of": "xOnBehalfOf"
86581
+ });
86582
+ });
86583
+ DeleteRepoRequest$outboundSchema = objectType({
86584
+ org: stringType(),
86585
+ name: stringType(),
86586
+ xOnBehalfOf: stringType().optional()
86587
+ }).transform((v2) => {
86588
+ return remap(v2, {
86589
+ xOnBehalfOf: "X-On-Behalf-Of"
86590
+ });
86591
+ });
86592
+ });
86593
+
86342
86594
  // src/models/operations/deleteresponse.ts
86343
86595
  var DeleteResponseRequest$inboundSchema, DeleteResponseRequest$outboundSchema;
86344
86596
  var init_deleteresponse = __esm(() => {
@@ -89519,6 +89771,31 @@ var init_getpromptversion = __esm(() => {
89519
89771
  });
89520
89772
  });
89521
89773
 
89774
+ // src/models/operations/getrepo.ts
89775
+ var GetRepoRequest$inboundSchema, GetRepoRequest$outboundSchema;
89776
+ var init_getrepo = __esm(() => {
89777
+ init_esm();
89778
+ init_primitives();
89779
+ GetRepoRequest$inboundSchema = objectType({
89780
+ org: stringType(),
89781
+ name: stringType(),
89782
+ "X-On-Behalf-Of": stringType().optional()
89783
+ }).transform((v2) => {
89784
+ return remap(v2, {
89785
+ "X-On-Behalf-Of": "xOnBehalfOf"
89786
+ });
89787
+ });
89788
+ GetRepoRequest$outboundSchema = objectType({
89789
+ org: stringType(),
89790
+ name: stringType(),
89791
+ xOnBehalfOf: stringType().optional()
89792
+ }).transform((v2) => {
89793
+ return remap(v2, {
89794
+ xOnBehalfOf: "X-On-Behalf-Of"
89795
+ });
89796
+ });
89797
+ });
89798
+
89522
89799
  // src/models/operations/getresponse.ts
89523
89800
  var Include2, Include$inboundSchema2, Include$outboundSchema2, GetResponseRequest$inboundSchema, GetResponseRequest$outboundSchema, GetResponseResponseBody$inboundSchema, GetResponseResponseBody$outboundSchema, GetResponseResponse$inboundSchema, GetResponseResponse$outboundSchema;
89524
89801
  var init_getresponse = __esm(() => {
@@ -91083,6 +91360,38 @@ var init_listclusterprices = __esm(() => {
91083
91360
  });
91084
91361
  });
91085
91362
 
91363
+ // src/models/operations/listcollaborators.ts
91364
+ var ListCollaboratorsRequest$inboundSchema, ListCollaboratorsRequest$outboundSchema, ListCollaboratorsResponseBody$inboundSchema, ListCollaboratorsResponseBody$outboundSchema;
91365
+ var init_listcollaborators = __esm(() => {
91366
+ init_esm();
91367
+ init_primitives();
91368
+ init_components();
91369
+ ListCollaboratorsRequest$inboundSchema = objectType({
91370
+ org: stringType(),
91371
+ name: stringType(),
91372
+ "X-On-Behalf-Of": stringType().optional()
91373
+ }).transform((v2) => {
91374
+ return remap(v2, {
91375
+ "X-On-Behalf-Of": "xOnBehalfOf"
91376
+ });
91377
+ });
91378
+ ListCollaboratorsRequest$outboundSchema = objectType({
91379
+ org: stringType(),
91380
+ name: stringType(),
91381
+ xOnBehalfOf: stringType().optional()
91382
+ }).transform((v2) => {
91383
+ return remap(v2, {
91384
+ xOnBehalfOf: "X-On-Behalf-Of"
91385
+ });
91386
+ });
91387
+ ListCollaboratorsResponseBody$inboundSchema = objectType({
91388
+ collaborators: arrayType(Member$inboundSchema)
91389
+ });
91390
+ ListCollaboratorsResponseBody$outboundSchema = objectType({
91391
+ collaborators: arrayType(Member$outboundSchema)
91392
+ });
91393
+ });
91394
+
91086
91395
  // src/models/operations/listcompletionfeedback.ts
91087
91396
  var ListCompletionFeedbackQueryParamOrder, QueryParamRating, ListCompletionFeedbackQueryParamOrder$inboundSchema, ListCompletionFeedbackQueryParamOrder$outboundSchema, QueryParamRating$inboundSchema, QueryParamRating$outboundSchema, ListCompletionFeedbackRequest$inboundSchema, ListCompletionFeedbackRequest$outboundSchema;
91088
91397
  var init_listcompletionfeedback = __esm(() => {
@@ -91198,11 +91507,13 @@ var init_listevalruns = __esm(() => {
91198
91507
  after: stringType().optional(),
91199
91508
  limit: numberType().int().default(20),
91200
91509
  suite_id: stringType().optional(),
91510
+ suite_version: numberType().int().optional(),
91201
91511
  status: Status$inboundSchema2.optional(),
91202
91512
  "X-On-Behalf-Of": stringType().optional()
91203
91513
  }).transform((v2) => {
91204
91514
  return remap(v2, {
91205
91515
  suite_id: "suiteId",
91516
+ suite_version: "suiteVersion",
91206
91517
  "X-On-Behalf-Of": "xOnBehalfOf"
91207
91518
  });
91208
91519
  });
@@ -91210,11 +91521,13 @@ var init_listevalruns = __esm(() => {
91210
91521
  after: stringType().optional(),
91211
91522
  limit: numberType().int().default(20),
91212
91523
  suiteId: stringType().optional(),
91524
+ suiteVersion: numberType().int().optional(),
91213
91525
  status: Status$outboundSchema2.optional(),
91214
91526
  xOnBehalfOf: stringType().optional()
91215
91527
  }).transform((v2) => {
91216
91528
  return remap(v2, {
91217
91529
  suiteId: "suite_id",
91530
+ suiteVersion: "suite_version",
91218
91531
  xOnBehalfOf: "X-On-Behalf-Of"
91219
91532
  });
91220
91533
  });
@@ -91534,12 +91847,14 @@ var init_listevalscheduleruns = __esm(() => {
91534
91847
  after: stringType().optional(),
91535
91848
  limit: numberType().int().default(20),
91536
91849
  suite_id: stringType().optional(),
91850
+ suite_version: numberType().int().optional(),
91537
91851
  status: ListEvalScheduleRunsQueryParamStatus$inboundSchema.optional(),
91538
91852
  "X-On-Behalf-Of": stringType().optional()
91539
91853
  }).transform((v2) => {
91540
91854
  return remap(v2, {
91541
91855
  schedule_id: "scheduleId",
91542
91856
  suite_id: "suiteId",
91857
+ suite_version: "suiteVersion",
91543
91858
  "X-On-Behalf-Of": "xOnBehalfOf"
91544
91859
  });
91545
91860
  });
@@ -91548,12 +91863,14 @@ var init_listevalscheduleruns = __esm(() => {
91548
91863
  after: stringType().optional(),
91549
91864
  limit: numberType().int().default(20),
91550
91865
  suiteId: stringType().optional(),
91866
+ suiteVersion: numberType().int().optional(),
91551
91867
  status: ListEvalScheduleRunsQueryParamStatus$outboundSchema.optional(),
91552
91868
  xOnBehalfOf: stringType().optional()
91553
91869
  }).transform((v2) => {
91554
91870
  return remap(v2, {
91555
91871
  scheduleId: "schedule_id",
91556
91872
  suiteId: "suite_id",
91873
+ suiteVersion: "suite_version",
91557
91874
  xOnBehalfOf: "X-On-Behalf-Of"
91558
91875
  });
91559
91876
  });
@@ -92823,6 +93140,34 @@ var init_listpromptversions = __esm(() => {
92823
93140
  });
92824
93141
  });
92825
93142
 
93143
+ // src/models/operations/listrepos.ts
93144
+ var ListReposRequest$inboundSchema, ListReposRequest$outboundSchema, ListReposResponseBody$inboundSchema, ListReposResponseBody$outboundSchema;
93145
+ var init_listrepos = __esm(() => {
93146
+ init_esm();
93147
+ init_primitives();
93148
+ init_components();
93149
+ ListReposRequest$inboundSchema = objectType({
93150
+ "X-On-Behalf-Of": stringType().optional()
93151
+ }).transform((v2) => {
93152
+ return remap(v2, {
93153
+ "X-On-Behalf-Of": "xOnBehalfOf"
93154
+ });
93155
+ });
93156
+ ListReposRequest$outboundSchema = objectType({
93157
+ xOnBehalfOf: stringType().optional()
93158
+ }).transform((v2) => {
93159
+ return remap(v2, {
93160
+ xOnBehalfOf: "X-On-Behalf-Of"
93161
+ });
93162
+ });
93163
+ ListReposResponseBody$inboundSchema = objectType({
93164
+ repos: arrayType(Repo$inboundSchema)
93165
+ });
93166
+ ListReposResponseBody$outboundSchema = objectType({
93167
+ repos: arrayType(Repo$outboundSchema)
93168
+ });
93169
+ });
93170
+
92826
93171
  // src/models/operations/listresponsefeedback.ts
92827
93172
  var ListResponseFeedbackQueryParamOrder, ListResponseFeedbackQueryParamRating, ListResponseFeedbackQueryParamOrder$inboundSchema, ListResponseFeedbackQueryParamOrder$outboundSchema, ListResponseFeedbackQueryParamRating$inboundSchema, ListResponseFeedbackQueryParamRating$outboundSchema, ListResponseFeedbackRequest$inboundSchema, ListResponseFeedbackRequest$outboundSchema;
92828
93173
  var init_listresponsefeedback = __esm(() => {
@@ -93657,6 +94002,36 @@ var init_modifyvectorstore = __esm(() => {
93657
94002
  });
93658
94003
  });
93659
94004
 
94005
+ // src/models/operations/patchrepo.ts
94006
+ var PatchRepoRequest$inboundSchema2, PatchRepoRequest$outboundSchema2;
94007
+ var init_patchrepo = __esm(() => {
94008
+ init_esm();
94009
+ init_primitives();
94010
+ init_components();
94011
+ PatchRepoRequest$inboundSchema2 = objectType({
94012
+ org: stringType(),
94013
+ name: stringType(),
94014
+ "X-On-Behalf-Of": stringType().optional(),
94015
+ PatchRepoRequest: PatchRepoRequest$inboundSchema
94016
+ }).transform((v2) => {
94017
+ return remap(v2, {
94018
+ "X-On-Behalf-Of": "xOnBehalfOf",
94019
+ PatchRepoRequest: "patchRepoRequest"
94020
+ });
94021
+ });
94022
+ PatchRepoRequest$outboundSchema2 = objectType({
94023
+ org: stringType(),
94024
+ name: stringType(),
94025
+ xOnBehalfOf: stringType().optional(),
94026
+ patchRepoRequest: PatchRepoRequest$outboundSchema
94027
+ }).transform((v2) => {
94028
+ return remap(v2, {
94029
+ xOnBehalfOf: "X-On-Behalf-Of",
94030
+ patchRepoRequest: "PatchRepoRequest"
94031
+ });
94032
+ });
94033
+ });
94034
+
93660
94035
  // src/models/operations/pauseagentschedule.ts
93661
94036
  var PauseAgentScheduleRequest$inboundSchema, PauseAgentScheduleRequest$outboundSchema;
93662
94037
  var init_pauseagentschedule = __esm(() => {
@@ -93740,6 +94115,38 @@ var init_proxybrowserportrequest = __esm(() => {
93740
94115
  });
93741
94116
  });
93742
94117
 
94118
+ // src/models/operations/putcollaborator.ts
94119
+ var PutCollaboratorRequest$inboundSchema, PutCollaboratorRequest$outboundSchema;
94120
+ var init_putcollaborator = __esm(() => {
94121
+ init_esm();
94122
+ init_primitives();
94123
+ init_components();
94124
+ PutCollaboratorRequest$inboundSchema = objectType({
94125
+ org: stringType(),
94126
+ name: stringType(),
94127
+ user: stringType(),
94128
+ "X-On-Behalf-Of": stringType().optional(),
94129
+ CollaboratorRequest: CollaboratorRequest$inboundSchema
94130
+ }).transform((v2) => {
94131
+ return remap(v2, {
94132
+ "X-On-Behalf-Of": "xOnBehalfOf",
94133
+ CollaboratorRequest: "collaboratorRequest"
94134
+ });
94135
+ });
94136
+ PutCollaboratorRequest$outboundSchema = objectType({
94137
+ org: stringType(),
94138
+ name: stringType(),
94139
+ user: stringType(),
94140
+ xOnBehalfOf: stringType().optional(),
94141
+ collaboratorRequest: CollaboratorRequest$outboundSchema
94142
+ }).transform((v2) => {
94143
+ return remap(v2, {
94144
+ xOnBehalfOf: "X-On-Behalf-Of",
94145
+ collaboratorRequest: "CollaboratorRequest"
94146
+ });
94147
+ });
94148
+ });
94149
+
93743
94150
  // src/models/operations/putorgautomodel.ts
93744
94151
  var PutOrgAutoModelRequest$inboundSchema2, PutOrgAutoModelRequest$outboundSchema2;
93745
94152
  var init_putorgautomodel = __esm(() => {
@@ -97096,6 +97503,7 @@ var init_operations = __esm(() => {
97096
97503
  init_creatememorystore();
97097
97504
  init_createprompt();
97098
97505
  init_createpromptversion();
97506
+ init_createrepo();
97099
97507
  init_createresponse();
97100
97508
  init_createresponsefeedback();
97101
97509
  init_createscopedapikey2();
@@ -97116,6 +97524,7 @@ var init_operations = __esm(() => {
97116
97524
  init_deleteagentschedule();
97117
97525
  init_deleteapikeybudget();
97118
97526
  init_deleteclusterorg2();
97527
+ init_deletecollaborator();
97119
97528
  init_deleteevalrun();
97120
97529
  init_deleteevalschedule();
97121
97530
  init_deleteevalsuite();
@@ -97130,6 +97539,7 @@ var init_operations = __esm(() => {
97130
97539
  init_deleteorgautomodel();
97131
97540
  init_deleteorgbudget();
97132
97541
  init_deleteprompt();
97542
+ init_deleterepo();
97133
97543
  init_deleteresponse();
97134
97544
  init_deletesecret();
97135
97545
  init_deleteserviceaccount2();
@@ -97190,6 +97600,7 @@ var init_operations = __esm(() => {
97190
97600
  init_getorgratelimit2();
97191
97601
  init_getprompt();
97192
97602
  init_getpromptversion();
97603
+ init_getrepo();
97193
97604
  init_getresponse();
97194
97605
  init_getresponsefeedback();
97195
97606
  init_getresponsesusage();
@@ -97231,6 +97642,7 @@ var init_operations = __esm(() => {
97231
97642
  init_listclusterinvites2();
97232
97643
  init_listclusterorgs2();
97233
97644
  init_listclusterprices();
97645
+ init_listcollaborators();
97234
97646
  init_listcompletionfeedback();
97235
97647
  init_listeffectiveprices();
97236
97648
  init_listembeddingmodels();
@@ -97258,6 +97670,7 @@ var init_operations = __esm(() => {
97258
97670
  init_listpreconfiguredskills();
97259
97671
  init_listprompts();
97260
97672
  init_listpromptversions();
97673
+ init_listrepos();
97261
97674
  init_listresponsefeedback();
97262
97675
  init_listresponses();
97263
97676
  init_listscopedapikeys2();
@@ -97281,9 +97694,11 @@ var init_operations = __esm(() => {
97281
97694
  init_llmgrant();
97282
97695
  init_llmrevoke();
97283
97696
  init_modifyvectorstore();
97697
+ init_patchrepo();
97284
97698
  init_pauseagentschedule();
97285
97699
  init_pausefinetuningjob();
97286
97700
  init_proxybrowserportrequest();
97701
+ init_putcollaborator();
97287
97702
  init_putorgautomodel();
97288
97703
  init_regeneratescopedapikey2();
97289
97704
  init_regenerateserviceaccountapikey2();
@@ -111371,7 +111786,8 @@ async function $do120(client, request, options) {
111371
111786
  after: payload.after,
111372
111787
  limit: payload.limit,
111373
111788
  status: payload.status,
111374
- suite_id: payload.suite_id
111789
+ suite_id: payload.suite_id,
111790
+ suite_version: payload.suite_version
111375
111791
  });
111376
111792
  const headers = new Headers(compactMap({
111377
111793
  Accept: "application/json",
@@ -111455,7 +111871,7 @@ var init_llmEvalsListRuns2 = __esm(() => {
111455
111871
  name: "llm-evals-list-runs",
111456
111872
  description: `List eval runs
111457
111873
 
111458
- Returns eval runs visible to the authenticated team context.`,
111874
+ Returns eval runs visible to the authenticated team context. suite_version is a per-suite ordinal and must be paired with suite_id; supplying it alone returns 400.`,
111459
111875
  args: args118,
111460
111876
  tool: async (client, args119, ctx) => {
111461
111877
  const [result, apiCall] = await llmEvalsListRuns(client, args119.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -111617,7 +112033,8 @@ async function $do122(client, request, options) {
111617
112033
  after: payload.after,
111618
112034
  limit: payload.limit,
111619
112035
  status: payload.status,
111620
- suite_id: payload.suite_id
112036
+ suite_id: payload.suite_id,
112037
+ suite_version: payload.suite_version
111621
112038
  });
111622
112039
  const headers = new Headers(compactMap({
111623
112040
  Accept: "application/json",
@@ -111701,7 +112118,7 @@ var init_llmEvalsListScheduleRuns2 = __esm(() => {
111701
112118
  name: "llm-evals-list-schedule-runs",
111702
112119
  description: `List runs created by an eval schedule
111703
112120
 
111704
- Returns eval runs that were created by the given schedule.`,
112121
+ Returns eval runs that were created by the given schedule. suite_version may be used without suite_id here, since the schedule already pins the suite; supplying a suite_id that is not the schedule's returns 400.`,
111705
112122
  args: args120,
111706
112123
  tool: async (client, args121, ctx) => {
111707
112124
  const [result, apiCall] = await llmEvalsListScheduleRuns(client, args121.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -130059,20 +130476,34 @@ Revoke a role from a user for a resource, or remove public access by using "*" a
130059
130476
  };
130060
130477
  });
130061
130478
 
130062
- // src/funcs/sandboxCreate.ts
130063
- function sandboxCreate(client, request, options) {
130479
+ // src/funcs/reposCollaboratorsAdd.ts
130480
+ function reposCollaboratorsAdd(client, request, options) {
130064
130481
  return new APIPromise($do279(client, request, options));
130065
130482
  }
130066
130483
  async function $do279(client, request, options) {
130067
- const parsed = safeParse4(request, (value) => CreateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
130484
+ const parsed = safeParse4(request, (value) => PutCollaboratorRequest$outboundSchema.parse(value), "Input validation failed");
130068
130485
  if (!parsed.ok) {
130069
130486
  return [parsed, { status: "invalid" }];
130070
130487
  }
130071
130488
  const payload = parsed.value;
130072
- const body = encodeJSON("body", payload.CreateSessionRequest, {
130489
+ const body = encodeJSON("body", payload.CollaboratorRequest, {
130073
130490
  explode: true
130074
130491
  });
130075
- const path = pathToFunc("/api/v1/sandbox/sessions")();
130492
+ const pathParams = {
130493
+ name: encodeSimple("name", payload.name, {
130494
+ explode: false,
130495
+ charEncoding: "percent"
130496
+ }),
130497
+ org: encodeSimple("org", payload.org, {
130498
+ explode: false,
130499
+ charEncoding: "percent"
130500
+ }),
130501
+ user: encodeSimple("user", payload.user, {
130502
+ explode: false,
130503
+ charEncoding: "percent"
130504
+ })
130505
+ };
130506
+ const path = pathToFunc("/api/v1/repos/{org}/{name}/collaborators/{user}")(pathParams);
130076
130507
  const headers = new Headers(compactMap({
130077
130508
  "Content-Type": "application/json",
130078
130509
  Accept: "application/json",
@@ -130084,7 +130515,7 @@ async function $do279(client, request, options) {
130084
130515
  const context = {
130085
130516
  options: client._options,
130086
130517
  baseURL: options?.serverURL ?? client._baseURL ?? "",
130087
- operationID: "createSession",
130518
+ operationID: "putCollaborator",
130088
130519
  oAuth2Scopes: null,
130089
130520
  resolvedSecurity: requestSecurity,
130090
130521
  securitySource: client._options.bearerAuth,
@@ -130102,7 +130533,7 @@ async function $do279(client, request, options) {
130102
130533
  };
130103
130534
  const requestRes = client._createRequest(context, {
130104
130535
  security: requestSecurity,
130105
- method: "POST",
130536
+ method: "PUT",
130106
130537
  baseURL: options?.serverURL,
130107
130538
  path,
130108
130539
  headers,
@@ -130127,13 +130558,13 @@ async function $do279(client, request, options) {
130127
130558
  const responseFields = {
130128
130559
  HttpMeta: { Response: response, Request: req }
130129
130560
  };
130130
- const [result] = await match(json([200, 202], CreateSessionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail([501, "5XX"]))(response, req, { extraFields: responseFields });
130561
+ const [result] = await match(json(200, Member$inboundSchema), jsonErr([400, 401, 403, 404], RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
130131
130562
  if (!result.ok) {
130132
130563
  return [result, { status: "complete", request: req, response }];
130133
130564
  }
130134
130565
  return [result, { status: "complete", request: req, response }];
130135
130566
  }
130136
- var init_sandboxCreate = __esm(() => {
130567
+ var init_reposCollaboratorsAdd = __esm(() => {
130137
130568
  init_encodings();
130138
130569
  init_http();
130139
130570
  init_matchers();
@@ -130147,23 +130578,26 @@ var init_sandboxCreate = __esm(() => {
130147
130578
  init_async();
130148
130579
  });
130149
130580
 
130150
- // src/mcp-server/tools/sandboxCreate.ts
130151
- var args271, tool$sandboxCreate;
130152
- var init_sandboxCreate2 = __esm(() => {
130153
- init_sandboxCreate();
130581
+ // src/mcp-server/tools/reposCollaboratorsAdd.ts
130582
+ var args271, tool$reposCollaboratorsAdd;
130583
+ var init_reposCollaboratorsAdd2 = __esm(() => {
130584
+ init_reposCollaboratorsAdd();
130154
130585
  init_operations();
130155
130586
  init_tools();
130156
130587
  args271 = {
130157
- request: CreateSessionRequest$inboundSchema2
130588
+ request: PutCollaboratorRequest$inboundSchema
130158
130589
  };
130159
- tool$sandboxCreate = {
130160
- name: "sandbox-create",
130161
- description: `Create Session
130590
+ tool$reposCollaboratorsAdd = {
130591
+ name: "repos-collaborators-add",
130592
+ description: `Add or re-role a collaborator
130162
130593
 
130163
- Create a sandbox session and return its public session metadata, session token, and provider. Set \`session_kind\` to \`browser\` to start a browser-backed session instead of a standard command/code sandbox. Set \`queue_if_full\` to \`true\` to queue the request instead of failing when runner capacity is temporarily unavailable. It does not queue requests for session kinds the deployment does not support. Browser sessions require a Firecracker-backed deployment; standard-only deployments reject them immediately with \`browser_sessions_not_enabled\`.`,
130594
+ Adds a collaborator or changes their role (owner or org admin only): DB
130595
+ upsert (authoritative) then a best-effort fga grant. Owner is not a
130596
+ grantable role — it is fixed to the creator at create time.
130597
+ `,
130164
130598
  args: args271,
130165
130599
  tool: async (client, args272, ctx) => {
130166
- const [result, apiCall] = await sandboxCreate(client, args272.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
130600
+ const [result, apiCall] = await reposCollaboratorsAdd(client, args272.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
130167
130601
  if (!result.ok) {
130168
130602
  return {
130169
130603
  content: [{ type: "text", text: result.error.message }],
@@ -130176,32 +130610,30 @@ Create a sandbox session and return its public session metadata, session token,
130176
130610
  };
130177
130611
  });
130178
130612
 
130179
- // src/funcs/sandboxDownloadArchive.ts
130180
- function sandboxDownloadArchive(client, request, options) {
130613
+ // src/funcs/reposCollaboratorsList.ts
130614
+ function reposCollaboratorsList(client, request, options) {
130181
130615
  return new APIPromise($do280(client, request, options));
130182
130616
  }
130183
130617
  async function $do280(client, request, options) {
130184
- const parsed = safeParse4(request, (value) => DownloadWorkspaceArchiveRequest$outboundSchema.parse(value), "Input validation failed");
130618
+ const parsed = safeParse4(request, (value) => ListCollaboratorsRequest$outboundSchema.parse(value), "Input validation failed");
130185
130619
  if (!parsed.ok) {
130186
130620
  return [parsed, { status: "invalid" }];
130187
130621
  }
130188
130622
  const payload = parsed.value;
130189
- const body = encodeJSON("body", payload.WorkspaceArchiveRequest, {
130190
- explode: true
130191
- });
130623
+ const body = null;
130192
130624
  const pathParams = {
130193
- session_id: encodeSimple("session_id", payload.session_id, {
130625
+ name: encodeSimple("name", payload.name, {
130626
+ explode: false,
130627
+ charEncoding: "percent"
130628
+ }),
130629
+ org: encodeSimple("org", payload.org, {
130194
130630
  explode: false,
130195
130631
  charEncoding: "percent"
130196
130632
  })
130197
130633
  };
130198
- const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/archive")(pathParams);
130199
- const query = encodeFormQuery({
130200
- session_token: payload.session_token
130201
- });
130634
+ const path = pathToFunc("/api/v1/repos/{org}/{name}/collaborators")(pathParams);
130202
130635
  const headers = new Headers(compactMap({
130203
- "Content-Type": "application/json",
130204
- Accept: "application/zip",
130636
+ Accept: "application/json",
130205
130637
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
130206
130638
  }));
130207
130639
  const secConfig = await extractSecurity(client._options.bearerAuth);
@@ -130210,7 +130642,7 @@ async function $do280(client, request, options) {
130210
130642
  const context = {
130211
130643
  options: client._options,
130212
130644
  baseURL: options?.serverURL ?? client._baseURL ?? "",
130213
- operationID: "downloadWorkspaceArchive",
130645
+ operationID: "listCollaborators",
130214
130646
  oAuth2Scopes: null,
130215
130647
  resolvedSecurity: requestSecurity,
130216
130648
  securitySource: client._options.bearerAuth,
@@ -130228,11 +130660,10 @@ async function $do280(client, request, options) {
130228
130660
  };
130229
130661
  const requestRes = client._createRequest(context, {
130230
130662
  security: requestSecurity,
130231
- method: "POST",
130663
+ method: "GET",
130232
130664
  baseURL: options?.serverURL,
130233
130665
  path,
130234
130666
  headers,
130235
- query,
130236
130667
  body,
130237
130668
  userAgent: client._options.userAgent,
130238
130669
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -130254,16 +130685,13 @@ async function $do280(client, request, options) {
130254
130685
  const responseFields = {
130255
130686
  HttpMeta: { Response: response, Request: req }
130256
130687
  };
130257
- const [result] = await match(stream(200, instanceOfType(ReadableStream), {
130258
- ctype: "application/zip"
130259
- }), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
130688
+ const [result] = await match(json(200, ListCollaboratorsResponseBody$inboundSchema), jsonErr([401, 403, 404], RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
130260
130689
  if (!result.ok) {
130261
130690
  return [result, { status: "complete", request: req, response }];
130262
130691
  }
130263
130692
  return [result, { status: "complete", request: req, response }];
130264
130693
  }
130265
- var init_sandboxDownloadArchive = __esm(() => {
130266
- init_esm();
130694
+ var init_reposCollaboratorsList = __esm(() => {
130267
130695
  init_encodings();
130268
130696
  init_http();
130269
130697
  init_matchers();
@@ -130276,23 +130704,25 @@ var init_sandboxDownloadArchive = __esm(() => {
130276
130704
  init_async();
130277
130705
  });
130278
130706
 
130279
- // src/mcp-server/tools/sandboxDownloadArchive.ts
130280
- var args272, tool$sandboxDownloadArchive;
130281
- var init_sandboxDownloadArchive2 = __esm(() => {
130282
- init_sandboxDownloadArchive();
130707
+ // src/mcp-server/tools/reposCollaboratorsList.ts
130708
+ var args272, tool$reposCollaboratorsList;
130709
+ var init_reposCollaboratorsList2 = __esm(() => {
130710
+ init_reposCollaboratorsList();
130283
130711
  init_operations();
130284
130712
  init_tools();
130285
130713
  args272 = {
130286
- request: DownloadWorkspaceArchiveRequest$inboundSchema
130714
+ request: ListCollaboratorsRequest$inboundSchema
130287
130715
  };
130288
- tool$sandboxDownloadArchive = {
130289
- name: "sandbox-download-archive",
130290
- description: `Download Workspace Archive
130716
+ tool$reposCollaboratorsList = {
130717
+ name: "repos-collaborators-list",
130718
+ description: `List a repository's collaborators
130291
130719
 
130292
- Download a zip archive containing the selected workspace paths.`,
130720
+ Lists the repository's explicit collaborators (\`repo_members\`). Any
130721
+ caller with reader access may see them.
130722
+ `,
130293
130723
  args: args272,
130294
130724
  tool: async (client, args273, ctx) => {
130295
- const [result, apiCall] = await sandboxDownloadArchive(client, args273.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
130725
+ const [result, apiCall] = await reposCollaboratorsList(client, args273.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
130296
130726
  if (!result.ok) {
130297
130727
  return {
130298
130728
  content: [{ type: "text", text: result.error.message }],
@@ -130305,33 +130735,34 @@ Download a zip archive containing the selected workspace paths.`,
130305
130735
  };
130306
130736
  });
130307
130737
 
130308
- // src/funcs/sandboxDownloadFile.ts
130309
- function sandboxDownloadFile(client, request, options) {
130738
+ // src/funcs/reposCollaboratorsRemove.ts
130739
+ function reposCollaboratorsRemove(client, request, options) {
130310
130740
  return new APIPromise($do281(client, request, options));
130311
130741
  }
130312
130742
  async function $do281(client, request, options) {
130313
- const parsed = safeParse4(request, (value) => DownloadWorkspaceFileRequest$outboundSchema.parse(value), "Input validation failed");
130743
+ const parsed = safeParse4(request, (value) => DeleteCollaboratorRequest$outboundSchema.parse(value), "Input validation failed");
130314
130744
  if (!parsed.ok) {
130315
130745
  return [parsed, { status: "invalid" }];
130316
130746
  }
130317
130747
  const payload = parsed.value;
130318
130748
  const body = null;
130319
130749
  const pathParams = {
130320
- file_path: encodeSimple("file_path", payload.file_path, {
130750
+ name: encodeSimple("name", payload.name, {
130321
130751
  explode: false,
130322
130752
  charEncoding: "percent"
130323
130753
  }),
130324
- session_id: encodeSimple("session_id", payload.session_id, {
130754
+ org: encodeSimple("org", payload.org, {
130755
+ explode: false,
130756
+ charEncoding: "percent"
130757
+ }),
130758
+ user: encodeSimple("user", payload.user, {
130325
130759
  explode: false,
130326
130760
  charEncoding: "percent"
130327
130761
  })
130328
130762
  };
130329
- const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/files/{file_path}")(pathParams);
130330
- const query = encodeFormQuery({
130331
- session_token: payload.session_token
130332
- });
130763
+ const path = pathToFunc("/api/v1/repos/{org}/{name}/collaborators/{user}")(pathParams);
130333
130764
  const headers = new Headers(compactMap({
130334
- Accept: "application/octet-stream",
130765
+ Accept: "application/json",
130335
130766
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
130336
130767
  }));
130337
130768
  const secConfig = await extractSecurity(client._options.bearerAuth);
@@ -130340,7 +130771,7 @@ async function $do281(client, request, options) {
130340
130771
  const context = {
130341
130772
  options: client._options,
130342
130773
  baseURL: options?.serverURL ?? client._baseURL ?? "",
130343
- operationID: "downloadWorkspaceFile",
130774
+ operationID: "deleteCollaborator",
130344
130775
  oAuth2Scopes: null,
130345
130776
  resolvedSecurity: requestSecurity,
130346
130777
  securitySource: client._options.bearerAuth,
@@ -130358,11 +130789,10 @@ async function $do281(client, request, options) {
130358
130789
  };
130359
130790
  const requestRes = client._createRequest(context, {
130360
130791
  security: requestSecurity,
130361
- method: "GET",
130792
+ method: "DELETE",
130362
130793
  baseURL: options?.serverURL,
130363
130794
  path,
130364
130795
  headers,
130365
- query,
130366
130796
  body,
130367
130797
  userAgent: client._options.userAgent,
130368
130798
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -130384,13 +130814,13 @@ async function $do281(client, request, options) {
130384
130814
  const responseFields = {
130385
130815
  HttpMeta: { Response: response, Request: req }
130386
130816
  };
130387
- const [result] = await match(stream(200, instanceOfType(ReadableStream)), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
130817
+ const [result] = await match(nil(204, voidType()), jsonErr([401, 403, 404], RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
130388
130818
  if (!result.ok) {
130389
130819
  return [result, { status: "complete", request: req, response }];
130390
130820
  }
130391
130821
  return [result, { status: "complete", request: req, response }];
130392
130822
  }
130393
- var init_sandboxDownloadFile = __esm(() => {
130823
+ var init_reposCollaboratorsRemove = __esm(() => {
130394
130824
  init_esm();
130395
130825
  init_encodings();
130396
130826
  init_http();
@@ -130404,54 +130834,50 @@ var init_sandboxDownloadFile = __esm(() => {
130404
130834
  init_async();
130405
130835
  });
130406
130836
 
130407
- // src/mcp-server/tools/sandboxDownloadFile.ts
130408
- var args273, tool$sandboxDownloadFile;
130409
- var init_sandboxDownloadFile2 = __esm(() => {
130410
- init_sandboxDownloadFile();
130837
+ // src/mcp-server/tools/reposCollaboratorsRemove.ts
130838
+ var args273, tool$reposCollaboratorsRemove;
130839
+ var init_reposCollaboratorsRemove2 = __esm(() => {
130840
+ init_reposCollaboratorsRemove();
130411
130841
  init_operations();
130412
130842
  init_tools();
130413
130843
  args273 = {
130414
- request: DownloadWorkspaceFileRequest$inboundSchema
130844
+ request: DeleteCollaboratorRequest$inboundSchema
130415
130845
  };
130416
- tool$sandboxDownloadFile = {
130417
- name: "sandbox-download-file",
130418
- description: `Download Workspace File
130846
+ tool$reposCollaboratorsRemove = {
130847
+ name: "repos-collaborators-remove",
130848
+ description: `Remove a collaborator
130419
130849
 
130420
- Download raw bytes from a file in the session workspace.`,
130850
+ Removes a collaborator (owner or org admin only): DB delete
130851
+ (authoritative) then a best-effort fga revoke of the removed role.
130852
+ `,
130421
130853
  args: args273,
130422
130854
  tool: async (client, args274, ctx) => {
130423
- const [result, apiCall] = await sandboxDownloadFile(client, args274.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
130855
+ const [result, apiCall] = await reposCollaboratorsRemove(client, args274.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
130424
130856
  if (!result.ok) {
130425
130857
  return {
130426
130858
  content: [{ type: "text", text: result.error.message }],
130427
130859
  isError: true
130428
130860
  };
130429
130861
  }
130430
- const value = result.value;
130431
- return formatResult(value, apiCall);
130862
+ return formatResult(undefined, apiCall);
130432
130863
  }
130433
130864
  };
130434
130865
  });
130435
130866
 
130436
- // src/funcs/sandboxGet.ts
130437
- function sandboxGet(client, request, options) {
130867
+ // src/funcs/reposCreate.ts
130868
+ function reposCreate(client, request, options) {
130438
130869
  return new APIPromise($do282(client, request, options));
130439
130870
  }
130440
130871
  async function $do282(client, request, options) {
130441
- const parsed = safeParse4(request, (value) => GetSessionRequest$outboundSchema.parse(value), "Input validation failed");
130872
+ const parsed = safeParse4(request, (value) => CreateRepoRequest$outboundSchema2.parse(value), "Input validation failed");
130442
130873
  if (!parsed.ok) {
130443
130874
  return [parsed, { status: "invalid" }];
130444
130875
  }
130445
130876
  const payload = parsed.value;
130446
- const body = null;
130447
- const pathParams = {
130448
- session_id: encodeSimple("session_id", payload.session_id, {
130449
- explode: false,
130450
- charEncoding: "percent"
130451
- })
130452
- };
130453
- const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}")(pathParams);
130877
+ const body = encodeJSON("body", payload.CreateRepoRequest, { explode: true });
130878
+ const path = pathToFunc("/api/v1/repos")();
130454
130879
  const headers = new Headers(compactMap({
130880
+ "Content-Type": "application/json",
130455
130881
  Accept: "application/json",
130456
130882
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
130457
130883
  }));
@@ -130461,7 +130887,7 @@ async function $do282(client, request, options) {
130461
130887
  const context = {
130462
130888
  options: client._options,
130463
130889
  baseURL: options?.serverURL ?? client._baseURL ?? "",
130464
- operationID: "getSession",
130890
+ operationID: "createRepo",
130465
130891
  oAuth2Scopes: null,
130466
130892
  resolvedSecurity: requestSecurity,
130467
130893
  securitySource: client._options.bearerAuth,
@@ -130479,7 +130905,7 @@ async function $do282(client, request, options) {
130479
130905
  };
130480
130906
  const requestRes = client._createRequest(context, {
130481
130907
  security: requestSecurity,
130482
- method: "GET",
130908
+ method: "POST",
130483
130909
  baseURL: options?.serverURL,
130484
130910
  path,
130485
130911
  headers,
@@ -130504,13 +130930,13 @@ async function $do282(client, request, options) {
130504
130930
  const responseFields = {
130505
130931
  HttpMeta: { Response: response, Request: req }
130506
130932
  };
130507
- const [result] = await match(json(200, SessionRecord$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
130933
+ const [result] = await match(json(201, Repo$inboundSchema), jsonErr([400, 401, 409], RepoError$inboundSchema), jsonErr([500, 502, 503], RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
130508
130934
  if (!result.ok) {
130509
130935
  return [result, { status: "complete", request: req, response }];
130510
130936
  }
130511
130937
  return [result, { status: "complete", request: req, response }];
130512
130938
  }
130513
- var init_sandboxGet = __esm(() => {
130939
+ var init_reposCreate = __esm(() => {
130514
130940
  init_encodings();
130515
130941
  init_http();
130516
130942
  init_matchers();
@@ -130524,23 +130950,26 @@ var init_sandboxGet = __esm(() => {
130524
130950
  init_async();
130525
130951
  });
130526
130952
 
130527
- // src/mcp-server/tools/sandboxGet.ts
130528
- var args274, tool$sandboxGet;
130529
- var init_sandboxGet2 = __esm(() => {
130530
- init_sandboxGet();
130953
+ // src/mcp-server/tools/reposCreate.ts
130954
+ var args274, tool$reposCreate;
130955
+ var init_reposCreate2 = __esm(() => {
130956
+ init_reposCreate();
130531
130957
  init_operations();
130532
130958
  init_tools();
130533
130959
  args274 = {
130534
- request: GetSessionRequest$inboundSchema
130960
+ request: CreateRepoRequest$inboundSchema2
130535
130961
  };
130536
- tool$sandboxGet = {
130537
- name: "sandbox-get",
130538
- description: `Get Session
130962
+ tool$reposCreate = {
130963
+ name: "repos-create",
130964
+ description: `Create a repository
130539
130965
 
130540
- Return the current state, configuration, and resource allocation for a sandbox session.`,
130966
+ Provisions a repository: DB insert (authoritative) Gitea create
130967
+ (rolled back on failure) → best-effort fga owner tuple. The caller
130968
+ becomes the owner.
130969
+ `,
130541
130970
  args: args274,
130542
130971
  tool: async (client, args275, ctx) => {
130543
- const [result, apiCall] = await sandboxGet(client, args275.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
130972
+ const [result, apiCall] = await reposCreate(client, args275.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
130544
130973
  if (!result.ok) {
130545
130974
  return {
130546
130975
  content: [{ type: "text", text: result.error.message }],
@@ -130553,27 +130982,28 @@ Return the current state, configuration, and resource allocation for a sandbox s
130553
130982
  };
130554
130983
  });
130555
130984
 
130556
- // src/funcs/sandboxGetBrowserUrl.ts
130557
- function sandboxGetBrowserUrl(client, request, options) {
130985
+ // src/funcs/reposDelete.ts
130986
+ function reposDelete(client, request, options) {
130558
130987
  return new APIPromise($do283(client, request, options));
130559
130988
  }
130560
130989
  async function $do283(client, request, options) {
130561
- const parsed = safeParse4(request, (value) => GetBrowserSessionUrlRequest$outboundSchema.parse(value), "Input validation failed");
130990
+ const parsed = safeParse4(request, (value) => DeleteRepoRequest$outboundSchema.parse(value), "Input validation failed");
130562
130991
  if (!parsed.ok) {
130563
130992
  return [parsed, { status: "invalid" }];
130564
130993
  }
130565
130994
  const payload = parsed.value;
130566
130995
  const body = null;
130567
130996
  const pathParams = {
130568
- session_id: encodeSimple("session_id", payload.session_id, {
130997
+ name: encodeSimple("name", payload.name, {
130998
+ explode: false,
130999
+ charEncoding: "percent"
131000
+ }),
131001
+ org: encodeSimple("org", payload.org, {
130569
131002
  explode: false,
130570
131003
  charEncoding: "percent"
130571
131004
  })
130572
131005
  };
130573
- const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/browser-url")(pathParams);
130574
- const query = encodeFormQuery({
130575
- session_token: payload.session_token
130576
- });
131006
+ const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
130577
131007
  const headers = new Headers(compactMap({
130578
131008
  Accept: "application/json",
130579
131009
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
@@ -130584,7 +131014,7 @@ async function $do283(client, request, options) {
130584
131014
  const context = {
130585
131015
  options: client._options,
130586
131016
  baseURL: options?.serverURL ?? client._baseURL ?? "",
130587
- operationID: "getBrowserSessionUrl",
131017
+ operationID: "deleteRepo",
130588
131018
  oAuth2Scopes: null,
130589
131019
  resolvedSecurity: requestSecurity,
130590
131020
  securitySource: client._options.bearerAuth,
@@ -130602,11 +131032,10 @@ async function $do283(client, request, options) {
130602
131032
  };
130603
131033
  const requestRes = client._createRequest(context, {
130604
131034
  security: requestSecurity,
130605
- method: "GET",
131035
+ method: "DELETE",
130606
131036
  baseURL: options?.serverURL,
130607
131037
  path,
130608
131038
  headers,
130609
- query,
130610
131039
  body,
130611
131040
  userAgent: client._options.userAgent,
130612
131041
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -130628,13 +131057,14 @@ async function $do283(client, request, options) {
130628
131057
  const responseFields = {
130629
131058
  HttpMeta: { Response: response, Request: req }
130630
131059
  };
130631
- const [result] = await match(json(200, SessionUrlResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail([501, "5XX"]))(response, req, { extraFields: responseFields });
131060
+ const [result] = await match(nil(204, voidType()), jsonErr([401, 403, 404], RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
130632
131061
  if (!result.ok) {
130633
131062
  return [result, { status: "complete", request: req, response }];
130634
131063
  }
130635
131064
  return [result, { status: "complete", request: req, response }];
130636
131065
  }
130637
- var init_sandboxGetBrowserUrl = __esm(() => {
131066
+ var init_reposDelete = __esm(() => {
131067
+ init_esm();
130638
131068
  init_encodings();
130639
131069
  init_http();
130640
131070
  init_matchers();
@@ -130642,156 +131072,63 @@ var init_sandboxGetBrowserUrl = __esm(() => {
130642
131072
  init_schemas4();
130643
131073
  init_security();
130644
131074
  init_url();
130645
- init_components();
130646
131075
  init_errors4();
130647
131076
  init_operations();
130648
131077
  init_async();
130649
131078
  });
130650
131079
 
130651
- // src/mcp-server/tools/sandboxGetBrowserUrl.ts
130652
- var args275, tool$sandboxGetBrowserUrl;
130653
- var init_sandboxGetBrowserUrl2 = __esm(() => {
130654
- init_sandboxGetBrowserUrl();
131080
+ // src/mcp-server/tools/reposDelete.ts
131081
+ var args275, tool$reposDelete;
131082
+ var init_reposDelete2 = __esm(() => {
131083
+ init_reposDelete();
130655
131084
  init_operations();
130656
131085
  init_tools();
130657
131086
  args275 = {
130658
- request: GetBrowserSessionUrlRequest$inboundSchema
131087
+ request: DeleteRepoRequest$inboundSchema
130659
131088
  };
130660
- tool$sandboxGetBrowserUrl = {
130661
- name: "sandbox-get-browser-url",
130662
- description: `Get Browser Session URL
131089
+ tool$reposDelete = {
131090
+ name: "repos-delete",
131091
+ description: `Delete a repository
130663
131092
 
130664
- Return the public gateway URL for a browser session's Chrome DevTools Protocol endpoint. Playwright can use this HTTP endpoint directly. For clients that require a WebSocket endpoint, request \`json/version\` and use its rewritten \`webSocketDebuggerUrl\`. Insert subpaths before the query string; for example, use \`/ports/9222/json/version?session_token=...\`. Send the same MKA1 API-key authorization header on the HTTP and WebSocket requests. Standard sessions do not expose a public URL; use the command, code, and workspace operations instead.`,
131093
+ Removes a repository; owner or org admin only. The DB delete is
131094
+ authoritative; the Gitea and fga teardowns are best-effort cleanup.
131095
+ `,
130665
131096
  args: args275,
130666
131097
  tool: async (client, args276, ctx) => {
130667
- const [result, apiCall] = await sandboxGetBrowserUrl(client, args276.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131098
+ const [result, apiCall] = await reposDelete(client, args276.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
130668
131099
  if (!result.ok) {
130669
131100
  return {
130670
131101
  content: [{ type: "text", text: result.error.message }],
130671
131102
  isError: true
130672
131103
  };
130673
131104
  }
130674
- const value = result.value;
130675
- return formatResult(value, apiCall);
130676
- }
130677
- };
130678
- });
130679
-
130680
- // src/funcs/sandboxGetPricing.ts
130681
- function sandboxGetPricing(client, options) {
130682
- return new APIPromise($do284(client, options));
130683
- }
130684
- async function $do284(client, options) {
130685
- const path = pathToFunc("/api/v1/sandbox/pricing")();
130686
- const headers = new Headers(compactMap({
130687
- Accept: "application/json"
130688
- }));
130689
- const secConfig = await extractSecurity(client._options.bearerAuth);
130690
- const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
130691
- const requestSecurity = resolveGlobalSecurity(securityInput);
130692
- const context = {
130693
- options: client._options,
130694
- baseURL: options?.serverURL ?? client._baseURL ?? "",
130695
- operationID: "getSandboxPricing",
130696
- oAuth2Scopes: null,
130697
- resolvedSecurity: requestSecurity,
130698
- securitySource: client._options.bearerAuth,
130699
- retryConfig: options?.retries || client._options.retryConfig || {
130700
- strategy: "backoff",
130701
- backoff: {
130702
- initialInterval: 500,
130703
- maxInterval: 5000,
130704
- exponent: 1.5,
130705
- maxElapsedTime: 15000
130706
- },
130707
- retryConnectionErrors: true
130708
- },
130709
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
130710
- };
130711
- const requestRes = client._createRequest(context, {
130712
- security: requestSecurity,
130713
- method: "GET",
130714
- baseURL: options?.serverURL,
130715
- path,
130716
- headers,
130717
- userAgent: client._options.userAgent,
130718
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
130719
- }, options);
130720
- if (!requestRes.ok) {
130721
- return [requestRes, { status: "invalid" }];
130722
- }
130723
- const req = requestRes.value;
130724
- const doResult = await client._do(req, {
130725
- context,
130726
- isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
130727
- retryConfig: context.retryConfig,
130728
- retryCodes: context.retryCodes
130729
- });
130730
- if (!doResult.ok) {
130731
- return [doResult, { status: "request-error", request: req }];
130732
- }
130733
- const response = doResult.value;
130734
- const [result] = await match(json(200, SandboxPricingCard$inboundSchema), fail("4XX"), fail("5XX"))(response, req);
130735
- if (!result.ok) {
130736
- return [result, { status: "complete", request: req, response }];
130737
- }
130738
- return [result, { status: "complete", request: req, response }];
130739
- }
130740
- var init_sandboxGetPricing = __esm(() => {
130741
- init_http();
130742
- init_matchers();
130743
- init_primitives();
130744
- init_security();
130745
- init_url();
130746
- init_components();
130747
- init_async();
130748
- });
130749
-
130750
- // src/mcp-server/tools/sandboxGetPricing.ts
130751
- var tool$sandboxGetPricing;
130752
- var init_sandboxGetPricing2 = __esm(() => {
130753
- init_sandboxGetPricing();
130754
- init_tools();
130755
- tool$sandboxGetPricing = {
130756
- name: "sandbox-get-pricing",
130757
- description: `Get Sandbox Pricing
130758
-
130759
- Current sandbox pricing rate card, keyed by SKU (\`standard\`, \`browser\`, \`eval-python\`). Metered sandbox usage is billed \`hours × (per_hour + reserved_memory_GiB × per_gib_hour)\`; SKUs without a configured rate accrue no spend. Cluster admins only.`,
130760
- tool: async (client, ctx) => {
130761
- const [result, apiCall] = await sandboxGetPricing(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
130762
- if (!result.ok) {
130763
- return {
130764
- content: [{ type: "text", text: result.error.message }],
130765
- isError: true
130766
- };
130767
- }
130768
- const value = result.value;
130769
- return formatResult(value, apiCall);
131105
+ return formatResult(undefined, apiCall);
130770
131106
  }
130771
131107
  };
130772
131108
  });
130773
131109
 
130774
- // src/funcs/sandboxGetWorkspace.ts
130775
- function sandboxGetWorkspace(client, request, options) {
130776
- return new APIPromise($do285(client, request, options));
131110
+ // src/funcs/reposGet.ts
131111
+ function reposGet(client, request, options) {
131112
+ return new APIPromise($do284(client, request, options));
130777
131113
  }
130778
- async function $do285(client, request, options) {
130779
- const parsed = safeParse4(request, (value) => GetWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
131114
+ async function $do284(client, request, options) {
131115
+ const parsed = safeParse4(request, (value) => GetRepoRequest$outboundSchema.parse(value), "Input validation failed");
130780
131116
  if (!parsed.ok) {
130781
131117
  return [parsed, { status: "invalid" }];
130782
131118
  }
130783
131119
  const payload = parsed.value;
130784
131120
  const body = null;
130785
131121
  const pathParams = {
130786
- session_id: encodeSimple("session_id", payload.session_id, {
131122
+ name: encodeSimple("name", payload.name, {
131123
+ explode: false,
131124
+ charEncoding: "percent"
131125
+ }),
131126
+ org: encodeSimple("org", payload.org, {
130787
131127
  explode: false,
130788
131128
  charEncoding: "percent"
130789
131129
  })
130790
131130
  };
130791
- const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace")(pathParams);
130792
- const query = encodeFormQuery({
130793
- session_token: payload.session_token
130794
- });
131131
+ const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
130795
131132
  const headers = new Headers(compactMap({
130796
131133
  Accept: "application/json",
130797
131134
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
@@ -130802,7 +131139,7 @@ async function $do285(client, request, options) {
130802
131139
  const context = {
130803
131140
  options: client._options,
130804
131141
  baseURL: options?.serverURL ?? client._baseURL ?? "",
130805
- operationID: "getWorkspace",
131142
+ operationID: "getRepo",
130806
131143
  oAuth2Scopes: null,
130807
131144
  resolvedSecurity: requestSecurity,
130808
131145
  securitySource: client._options.bearerAuth,
@@ -130824,7 +131161,6 @@ async function $do285(client, request, options) {
130824
131161
  baseURL: options?.serverURL,
130825
131162
  path,
130826
131163
  headers,
130827
- query,
130828
131164
  body,
130829
131165
  userAgent: client._options.userAgent,
130830
131166
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -130846,13 +131182,13 @@ async function $do285(client, request, options) {
130846
131182
  const responseFields = {
130847
131183
  HttpMeta: { Response: response, Request: req }
130848
131184
  };
130849
- const [result] = await match(json(200, WorkspaceManifest$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
131185
+ const [result] = await match(json(200, Repo$inboundSchema), jsonErr([401, 403, 404], RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
130850
131186
  if (!result.ok) {
130851
131187
  return [result, { status: "complete", request: req, response }];
130852
131188
  }
130853
131189
  return [result, { status: "complete", request: req, response }];
130854
131190
  }
130855
- var init_sandboxGetWorkspace = __esm(() => {
131191
+ var init_reposGet = __esm(() => {
130856
131192
  init_encodings();
130857
131193
  init_http();
130858
131194
  init_matchers();
@@ -130866,23 +131202,23 @@ var init_sandboxGetWorkspace = __esm(() => {
130866
131202
  init_async();
130867
131203
  });
130868
131204
 
130869
- // src/mcp-server/tools/sandboxGetWorkspace.ts
130870
- var args276, tool$sandboxGetWorkspace;
130871
- var init_sandboxGetWorkspace2 = __esm(() => {
130872
- init_sandboxGetWorkspace();
131205
+ // src/mcp-server/tools/reposGet.ts
131206
+ var args276, tool$reposGet;
131207
+ var init_reposGet2 = __esm(() => {
131208
+ init_reposGet();
130873
131209
  init_operations();
130874
131210
  init_tools();
130875
131211
  args276 = {
130876
- request: GetWorkspaceRequest$inboundSchema
131212
+ request: GetRepoRequest$inboundSchema
130877
131213
  };
130878
- tool$sandboxGetWorkspace = {
130879
- name: "sandbox-get-workspace",
130880
- description: `Get Workspace Manifest
131214
+ tool$reposGet = {
131215
+ name: "repos-get",
131216
+ description: `Get a repository
130881
131217
 
130882
- List files currently stored in the session workspace, including paths, sizes, and etags.`,
131218
+ Reads a single repository after a reader-level access check.`,
130883
131219
  args: args276,
130884
131220
  tool: async (client, args277, ctx) => {
130885
- const [result, apiCall] = await sandboxGetWorkspace(client, args277.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131221
+ const [result, apiCall] = await reposGet(client, args277.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
130886
131222
  if (!result.ok) {
130887
131223
  return {
130888
131224
  content: [{ type: "text", text: result.error.message }],
@@ -130895,18 +131231,18 @@ List files currently stored in the session workspace, including paths, sizes, an
130895
131231
  };
130896
131232
  });
130897
131233
 
130898
- // src/funcs/sandboxList.ts
130899
- function sandboxList(client, request, options) {
130900
- return new APIPromise($do286(client, request, options));
131234
+ // src/funcs/reposList.ts
131235
+ function reposList(client, request, options) {
131236
+ return new APIPromise($do285(client, request, options));
130901
131237
  }
130902
- async function $do286(client, request, options) {
130903
- const parsed = safeParse4(request, (value) => ListSessionsRequest$outboundSchema.parse(value), "Input validation failed");
131238
+ async function $do285(client, request, options) {
131239
+ const parsed = safeParse4(request, (value) => ListReposRequest$outboundSchema.parse(value), "Input validation failed");
130904
131240
  if (!parsed.ok) {
130905
131241
  return [parsed, { status: "invalid" }];
130906
131242
  }
130907
131243
  const payload = parsed.value;
130908
131244
  const body = null;
130909
- const path = pathToFunc("/api/v1/sandbox/sessions")();
131245
+ const path = pathToFunc("/api/v1/repos")();
130910
131246
  const headers = new Headers(compactMap({
130911
131247
  Accept: "application/json",
130912
131248
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
@@ -130917,7 +131253,7 @@ async function $do286(client, request, options) {
130917
131253
  const context = {
130918
131254
  options: client._options,
130919
131255
  baseURL: options?.serverURL ?? client._baseURL ?? "",
130920
- operationID: "listSessions",
131256
+ operationID: "listRepos",
130921
131257
  oAuth2Scopes: null,
130922
131258
  resolvedSecurity: requestSecurity,
130923
131259
  securitySource: client._options.bearerAuth,
@@ -130960,14 +131296,13 @@ async function $do286(client, request, options) {
130960
131296
  const responseFields = {
130961
131297
  HttpMeta: { Response: response, Request: req }
130962
131298
  };
130963
- const [result] = await match(json(200, arrayType(SessionRecord$inboundSchema)), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
131299
+ const [result] = await match(json(200, ListReposResponseBody$inboundSchema), jsonErr(401, RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
130964
131300
  if (!result.ok) {
130965
131301
  return [result, { status: "complete", request: req, response }];
130966
131302
  }
130967
131303
  return [result, { status: "complete", request: req, response }];
130968
131304
  }
130969
- var init_sandboxList = __esm(() => {
130970
- init_esm();
131305
+ var init_reposList = __esm(() => {
130971
131306
  init_encodings();
130972
131307
  init_http();
130973
131308
  init_matchers();
@@ -130975,29 +131310,30 @@ var init_sandboxList = __esm(() => {
130975
131310
  init_schemas4();
130976
131311
  init_security();
130977
131312
  init_url();
130978
- init_components();
130979
131313
  init_errors4();
130980
131314
  init_operations();
130981
131315
  init_async();
130982
131316
  });
130983
131317
 
130984
- // src/mcp-server/tools/sandboxList.ts
130985
- var args277, tool$sandboxList;
130986
- var init_sandboxList2 = __esm(() => {
130987
- init_sandboxList();
131318
+ // src/mcp-server/tools/reposList.ts
131319
+ var args277, tool$reposList;
131320
+ var init_reposList2 = __esm(() => {
131321
+ init_reposList();
130988
131322
  init_operations();
130989
131323
  init_tools();
130990
131324
  args277 = {
130991
- request: ListSessionsRequest$inboundSchema
131325
+ request: ListReposRequest$inboundSchema
130992
131326
  };
130993
- tool$sandboxList = {
130994
- name: "sandbox-list",
130995
- description: `List Sessions
131327
+ tool$reposList = {
131328
+ name: "repos-list",
131329
+ description: `List the caller's repositories
130996
131330
 
130997
- List sandbox sessions visible to the authenticated caller.`,
131331
+ Returns the repositories visible to the caller within their (org, team),
131332
+ widened to the whole (org, team) for an org admin. Pure DB read.
131333
+ `,
130998
131334
  args: args277,
130999
131335
  tool: async (client, args278, ctx) => {
131000
- const [result, apiCall] = await sandboxList(client, args278.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131336
+ const [result, apiCall] = await reposList(client, args278.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131001
131337
  if (!result.ok) {
131002
131338
  return {
131003
131339
  content: [{ type: "text", text: result.error.message }],
@@ -131010,36 +131346,30 @@ List sandbox sessions visible to the authenticated caller.`,
131010
131346
  };
131011
131347
  });
131012
131348
 
131013
- // src/funcs/sandboxProxyBrowserPortRequest.ts
131014
- function sandboxProxyBrowserPortRequest(client, request, options) {
131015
- return new APIPromise($do287(client, request, options));
131349
+ // src/funcs/reposUpdate.ts
131350
+ function reposUpdate(client, request, options) {
131351
+ return new APIPromise($do286(client, request, options));
131016
131352
  }
131017
- async function $do287(client, request, options) {
131018
- const parsed = safeParse4(request, (value) => ProxyBrowserPortRequestRequest$outboundSchema.parse(value), "Input validation failed");
131353
+ async function $do286(client, request, options) {
131354
+ const parsed = safeParse4(request, (value) => PatchRepoRequest$outboundSchema2.parse(value), "Input validation failed");
131019
131355
  if (!parsed.ok) {
131020
131356
  return [parsed, { status: "invalid" }];
131021
131357
  }
131022
131358
  const payload = parsed.value;
131023
- const body = null;
131359
+ const body = encodeJSON("body", payload.PatchRepoRequest, { explode: true });
131024
131360
  const pathParams = {
131025
- port: encodeSimple("port", payload.port, {
131026
- explode: false,
131027
- charEncoding: "percent"
131028
- }),
131029
- session_id: encodeSimple("session_id", payload.session_id, {
131361
+ name: encodeSimple("name", payload.name, {
131030
131362
  explode: false,
131031
131363
  charEncoding: "percent"
131032
131364
  }),
131033
- subpath: encodeSimple("subpath", payload.subpath, {
131365
+ org: encodeSimple("org", payload.org, {
131034
131366
  explode: false,
131035
131367
  charEncoding: "percent"
131036
131368
  })
131037
131369
  };
131038
- const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/ports/{port}/{subpath}")(pathParams);
131039
- const query = encodeFormQuery({
131040
- session_token: payload.session_token
131041
- });
131370
+ const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
131042
131371
  const headers = new Headers(compactMap({
131372
+ "Content-Type": "application/json",
131043
131373
  Accept: "application/json",
131044
131374
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
131045
131375
  }));
@@ -131049,7 +131379,7 @@ async function $do287(client, request, options) {
131049
131379
  const context = {
131050
131380
  options: client._options,
131051
131381
  baseURL: options?.serverURL ?? client._baseURL ?? "",
131052
- operationID: "proxyBrowserPortRequest",
131382
+ operationID: "patchRepo",
131053
131383
  oAuth2Scopes: null,
131054
131384
  resolvedSecurity: requestSecurity,
131055
131385
  securitySource: client._options.bearerAuth,
@@ -131067,11 +131397,10 @@ async function $do287(client, request, options) {
131067
131397
  };
131068
131398
  const requestRes = client._createRequest(context, {
131069
131399
  security: requestSecurity,
131070
- method: "GET",
131400
+ method: "PATCH",
131071
131401
  baseURL: options?.serverURL,
131072
131402
  path,
131073
131403
  headers,
131074
- query,
131075
131404
  body,
131076
131405
  userAgent: client._options.userAgent,
131077
131406
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -131093,14 +131422,13 @@ async function $do287(client, request, options) {
131093
131422
  const responseFields = {
131094
131423
  HttpMeta: { Response: response, Request: req }
131095
131424
  };
131096
- const [result] = await match(json(200, anyType()), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
131425
+ const [result] = await match(json(200, Repo$inboundSchema), jsonErr([400, 401, 403, 404, 409], RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
131097
131426
  if (!result.ok) {
131098
131427
  return [result, { status: "complete", request: req, response }];
131099
131428
  }
131100
131429
  return [result, { status: "complete", request: req, response }];
131101
131430
  }
131102
- var init_sandboxProxyBrowserPortRequest = __esm(() => {
131103
- init_esm();
131431
+ var init_reposUpdate = __esm(() => {
131104
131432
  init_encodings();
131105
131433
  init_http();
131106
131434
  init_matchers();
@@ -131108,28 +131436,33 @@ var init_sandboxProxyBrowserPortRequest = __esm(() => {
131108
131436
  init_schemas4();
131109
131437
  init_security();
131110
131438
  init_url();
131439
+ init_components();
131111
131440
  init_errors4();
131112
131441
  init_operations();
131113
131442
  init_async();
131114
131443
  });
131115
131444
 
131116
- // src/mcp-server/tools/sandboxProxyBrowserPortRequest.ts
131117
- var args278, tool$sandboxProxyBrowserPortRequest;
131118
- var init_sandboxProxyBrowserPortRequest2 = __esm(() => {
131119
- init_sandboxProxyBrowserPortRequest();
131445
+ // src/mcp-server/tools/reposUpdate.ts
131446
+ var args278, tool$reposUpdate;
131447
+ var init_reposUpdate2 = __esm(() => {
131448
+ init_reposUpdate();
131120
131449
  init_operations();
131121
131450
  init_tools();
131122
131451
  args278 = {
131123
- request: ProxyBrowserPortRequestRequest$inboundSchema
131452
+ request: PatchRepoRequest$inboundSchema2
131124
131453
  };
131125
- tool$sandboxProxyBrowserPortRequest = {
131126
- name: "sandbox-proxy-browser-port-request",
131127
- description: `Proxy Browser Port Request
131454
+ tool$reposUpdate = {
131455
+ name: "repos-update",
131456
+ description: `Update a repository's labels
131128
131457
 
131129
- Proxy an HTTP request to an exposed browser-session port through the gateway. Use the URL returned by \`GET /sessions/{session_id}/browser-url\` as the base. Insert CDP subpaths such as \`json/version\` or \`json/list\` before its query string, preserving the \`session_token\` parameter. This low-level proxy is intended for browser sessions on port \`9222\` and still requires the normal MKA1 API-key authorization header.`,
131458
+ Applies a label-only update (name/visibility/description); owner or org
131459
+ admin only. The repository id is stable, so a rename is a one-row DB
131460
+ update — no Gitea/fga writes. Omitted fields are left unchanged;
131461
+ \`visibility\` cannot be set to empty.
131462
+ `,
131130
131463
  args: args278,
131131
131464
  tool: async (client, args279, ctx) => {
131132
- const [result, apiCall] = await sandboxProxyBrowserPortRequest(client, args279.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131465
+ const [result, apiCall] = await reposUpdate(client, args279.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131133
131466
  if (!result.ok) {
131134
131467
  return {
131135
131468
  content: [{ type: "text", text: result.error.message }],
@@ -131142,24 +131475,20 @@ Proxy an HTTP request to an exposed browser-session port through the gateway. Us
131142
131475
  };
131143
131476
  });
131144
131477
 
131145
- // src/funcs/sandboxRunCode.ts
131146
- function sandboxRunCode(client, request, options) {
131147
- return new APIPromise($do288(client, request, options));
131478
+ // src/funcs/sandboxCreate.ts
131479
+ function sandboxCreate(client, request, options) {
131480
+ return new APIPromise($do287(client, request, options));
131148
131481
  }
131149
- async function $do288(client, request, options) {
131150
- const parsed = safeParse4(request, (value) => RunCodeRequest$outboundSchema.parse(value), "Input validation failed");
131482
+ async function $do287(client, request, options) {
131483
+ const parsed = safeParse4(request, (value) => CreateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
131151
131484
  if (!parsed.ok) {
131152
131485
  return [parsed, { status: "invalid" }];
131153
131486
  }
131154
131487
  const payload = parsed.value;
131155
- const body = encodeJSON("body", payload.CodeRequest, { explode: true });
131156
- const pathParams = {
131157
- session_id: encodeSimple("session_id", payload.session_id, {
131158
- explode: false,
131159
- charEncoding: "percent"
131160
- })
131161
- };
131162
- const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/code")(pathParams);
131488
+ const body = encodeJSON("body", payload.CreateSessionRequest, {
131489
+ explode: true
131490
+ });
131491
+ const path = pathToFunc("/api/v1/sandbox/sessions")();
131163
131492
  const headers = new Headers(compactMap({
131164
131493
  "Content-Type": "application/json",
131165
131494
  Accept: "application/json",
@@ -131171,7 +131500,7 @@ async function $do288(client, request, options) {
131171
131500
  const context = {
131172
131501
  options: client._options,
131173
131502
  baseURL: options?.serverURL ?? client._baseURL ?? "",
131174
- operationID: "runCode",
131503
+ operationID: "createSession",
131175
131504
  oAuth2Scopes: null,
131176
131505
  resolvedSecurity: requestSecurity,
131177
131506
  securitySource: client._options.bearerAuth,
@@ -131214,13 +131543,13 @@ async function $do288(client, request, options) {
131214
131543
  const responseFields = {
131215
131544
  HttpMeta: { Response: response, Request: req }
131216
131545
  };
131217
- const [result] = await match(json(200, CodeResult$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
131546
+ const [result] = await match(json([200, 202], CreateSessionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail([501, "5XX"]))(response, req, { extraFields: responseFields });
131218
131547
  if (!result.ok) {
131219
131548
  return [result, { status: "complete", request: req, response }];
131220
131549
  }
131221
131550
  return [result, { status: "complete", request: req, response }];
131222
131551
  }
131223
- var init_sandboxRunCode = __esm(() => {
131552
+ var init_sandboxCreate = __esm(() => {
131224
131553
  init_encodings();
131225
131554
  init_http();
131226
131555
  init_matchers();
@@ -131234,23 +131563,23 @@ var init_sandboxRunCode = __esm(() => {
131234
131563
  init_async();
131235
131564
  });
131236
131565
 
131237
- // src/mcp-server/tools/sandboxRunCode.ts
131238
- var args279, tool$sandboxRunCode;
131239
- var init_sandboxRunCode2 = __esm(() => {
131240
- init_sandboxRunCode();
131566
+ // src/mcp-server/tools/sandboxCreate.ts
131567
+ var args279, tool$sandboxCreate;
131568
+ var init_sandboxCreate2 = __esm(() => {
131569
+ init_sandboxCreate();
131241
131570
  init_operations();
131242
131571
  init_tools();
131243
131572
  args279 = {
131244
- request: RunCodeRequest$inboundSchema
131573
+ request: CreateSessionRequest$inboundSchema2
131245
131574
  };
131246
- tool$sandboxRunCode = {
131247
- name: "sandbox-run-code",
131248
- description: `Run Code
131575
+ tool$sandboxCreate = {
131576
+ name: "sandbox-create",
131577
+ description: `Create Session
131249
131578
 
131250
- Execute source code in the session workspace using a supported runtime and return the execution result.`,
131579
+ Create a sandbox session and return its public session metadata, session token, and provider. Set \`session_kind\` to \`browser\` to start a browser-backed session instead of a standard command/code sandbox. Set \`queue_if_full\` to \`true\` to queue the request instead of failing when runner capacity is temporarily unavailable. It does not queue requests for session kinds the deployment does not support. Browser sessions require a Firecracker-backed deployment; standard-only deployments reject them immediately with \`browser_sessions_not_enabled\`.`,
131251
131580
  args: args279,
131252
131581
  tool: async (client, args280, ctx) => {
131253
- const [result, apiCall] = await sandboxRunCode(client, args280.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131582
+ const [result, apiCall] = await sandboxCreate(client, args280.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131254
131583
  if (!result.ok) {
131255
131584
  return {
131256
131585
  content: [{ type: "text", text: result.error.message }],
@@ -131263,27 +131592,32 @@ Execute source code in the session workspace using a supported runtime and retur
131263
131592
  };
131264
131593
  });
131265
131594
 
131266
- // src/funcs/sandboxRunCommand.ts
131267
- function sandboxRunCommand(client, request, options) {
131268
- return new APIPromise($do289(client, request, options));
131595
+ // src/funcs/sandboxDownloadArchive.ts
131596
+ function sandboxDownloadArchive(client, request, options) {
131597
+ return new APIPromise($do288(client, request, options));
131269
131598
  }
131270
- async function $do289(client, request, options) {
131271
- const parsed = safeParse4(request, (value) => RunCommandRequest$outboundSchema.parse(value), "Input validation failed");
131599
+ async function $do288(client, request, options) {
131600
+ const parsed = safeParse4(request, (value) => DownloadWorkspaceArchiveRequest$outboundSchema.parse(value), "Input validation failed");
131272
131601
  if (!parsed.ok) {
131273
131602
  return [parsed, { status: "invalid" }];
131274
131603
  }
131275
131604
  const payload = parsed.value;
131276
- const body = encodeJSON("body", payload.CommandRequest, { explode: true });
131605
+ const body = encodeJSON("body", payload.WorkspaceArchiveRequest, {
131606
+ explode: true
131607
+ });
131277
131608
  const pathParams = {
131278
131609
  session_id: encodeSimple("session_id", payload.session_id, {
131279
131610
  explode: false,
131280
131611
  charEncoding: "percent"
131281
131612
  })
131282
131613
  };
131283
- const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/commands")(pathParams);
131614
+ const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/archive")(pathParams);
131615
+ const query = encodeFormQuery({
131616
+ session_token: payload.session_token
131617
+ });
131284
131618
  const headers = new Headers(compactMap({
131285
131619
  "Content-Type": "application/json",
131286
- Accept: "application/json",
131620
+ Accept: "application/zip",
131287
131621
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
131288
131622
  }));
131289
131623
  const secConfig = await extractSecurity(client._options.bearerAuth);
@@ -131292,7 +131626,7 @@ async function $do289(client, request, options) {
131292
131626
  const context = {
131293
131627
  options: client._options,
131294
131628
  baseURL: options?.serverURL ?? client._baseURL ?? "",
131295
- operationID: "runCommand",
131629
+ operationID: "downloadWorkspaceArchive",
131296
131630
  oAuth2Scopes: null,
131297
131631
  resolvedSecurity: requestSecurity,
131298
131632
  securitySource: client._options.bearerAuth,
@@ -131314,6 +131648,7 @@ async function $do289(client, request, options) {
131314
131648
  baseURL: options?.serverURL,
131315
131649
  path,
131316
131650
  headers,
131651
+ query,
131317
131652
  body,
131318
131653
  userAgent: client._options.userAgent,
131319
131654
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -131335,13 +131670,16 @@ async function $do289(client, request, options) {
131335
131670
  const responseFields = {
131336
131671
  HttpMeta: { Response: response, Request: req }
131337
131672
  };
131338
- const [result] = await match(json(200, CommandResult$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
131673
+ const [result] = await match(stream(200, instanceOfType(ReadableStream), {
131674
+ ctype: "application/zip"
131675
+ }), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
131339
131676
  if (!result.ok) {
131340
131677
  return [result, { status: "complete", request: req, response }];
131341
131678
  }
131342
131679
  return [result, { status: "complete", request: req, response }];
131343
131680
  }
131344
- var init_sandboxRunCommand = __esm(() => {
131681
+ var init_sandboxDownloadArchive = __esm(() => {
131682
+ init_esm();
131345
131683
  init_encodings();
131346
131684
  init_http();
131347
131685
  init_matchers();
@@ -131349,29 +131687,28 @@ var init_sandboxRunCommand = __esm(() => {
131349
131687
  init_schemas4();
131350
131688
  init_security();
131351
131689
  init_url();
131352
- init_components();
131353
131690
  init_errors4();
131354
131691
  init_operations();
131355
131692
  init_async();
131356
131693
  });
131357
131694
 
131358
- // src/mcp-server/tools/sandboxRunCommand.ts
131359
- var args280, tool$sandboxRunCommand;
131360
- var init_sandboxRunCommand2 = __esm(() => {
131361
- init_sandboxRunCommand();
131695
+ // src/mcp-server/tools/sandboxDownloadArchive.ts
131696
+ var args280, tool$sandboxDownloadArchive;
131697
+ var init_sandboxDownloadArchive2 = __esm(() => {
131698
+ init_sandboxDownloadArchive();
131362
131699
  init_operations();
131363
131700
  init_tools();
131364
131701
  args280 = {
131365
- request: RunCommandRequest$inboundSchema
131702
+ request: DownloadWorkspaceArchiveRequest$inboundSchema
131366
131703
  };
131367
- tool$sandboxRunCommand = {
131368
- name: "sandbox-run-command",
131369
- description: `Run Command
131704
+ tool$sandboxDownloadArchive = {
131705
+ name: "sandbox-download-archive",
131706
+ description: `Download Workspace Archive
131370
131707
 
131371
- Run a command in the session workspace and return stdout, stderr, exit code, and changed files.`,
131708
+ Download a zip archive containing the selected workspace paths.`,
131372
131709
  args: args280,
131373
131710
  tool: async (client, args281, ctx) => {
131374
- const [result, apiCall] = await sandboxRunCommand(client, args281.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131711
+ const [result, apiCall] = await sandboxDownloadArchive(client, args281.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131375
131712
  if (!result.ok) {
131376
131713
  return {
131377
131714
  content: [{ type: "text", text: result.error.message }],
@@ -131384,21 +131721,34 @@ Run a command in the session workspace and return stdout, stderr, exit code, and
131384
131721
  };
131385
131722
  });
131386
131723
 
131387
- // src/funcs/sandboxSetPricing.ts
131388
- function sandboxSetPricing(client, request, options) {
131389
- return new APIPromise($do290(client, request, options));
131724
+ // src/funcs/sandboxDownloadFile.ts
131725
+ function sandboxDownloadFile(client, request, options) {
131726
+ return new APIPromise($do289(client, request, options));
131390
131727
  }
131391
- async function $do290(client, request, options) {
131392
- const parsed = safeParse4(request, (value) => SandboxPricingUpdate$outboundSchema.parse(value), "Input validation failed");
131728
+ async function $do289(client, request, options) {
131729
+ const parsed = safeParse4(request, (value) => DownloadWorkspaceFileRequest$outboundSchema.parse(value), "Input validation failed");
131393
131730
  if (!parsed.ok) {
131394
131731
  return [parsed, { status: "invalid" }];
131395
131732
  }
131396
131733
  const payload = parsed.value;
131397
- const body = encodeJSON("body", payload, { explode: true });
131398
- const path = pathToFunc("/api/v1/sandbox/pricing")();
131734
+ const body = null;
131735
+ const pathParams = {
131736
+ file_path: encodeSimple("file_path", payload.file_path, {
131737
+ explode: false,
131738
+ charEncoding: "percent"
131739
+ }),
131740
+ session_id: encodeSimple("session_id", payload.session_id, {
131741
+ explode: false,
131742
+ charEncoding: "percent"
131743
+ })
131744
+ };
131745
+ const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/files/{file_path}")(pathParams);
131746
+ const query = encodeFormQuery({
131747
+ session_token: payload.session_token
131748
+ });
131399
131749
  const headers = new Headers(compactMap({
131400
- "Content-Type": "application/json",
131401
- Accept: "application/json"
131750
+ Accept: "application/octet-stream",
131751
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
131402
131752
  }));
131403
131753
  const secConfig = await extractSecurity(client._options.bearerAuth);
131404
131754
  const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
@@ -131406,7 +131756,7 @@ async function $do290(client, request, options) {
131406
131756
  const context = {
131407
131757
  options: client._options,
131408
131758
  baseURL: options?.serverURL ?? client._baseURL ?? "",
131409
- operationID: "setSandboxPricing",
131759
+ operationID: "downloadWorkspaceFile",
131410
131760
  oAuth2Scopes: null,
131411
131761
  resolvedSecurity: requestSecurity,
131412
131762
  securitySource: client._options.bearerAuth,
@@ -131424,10 +131774,11 @@ async function $do290(client, request, options) {
131424
131774
  };
131425
131775
  const requestRes = client._createRequest(context, {
131426
131776
  security: requestSecurity,
131427
- method: "PUT",
131777
+ method: "GET",
131428
131778
  baseURL: options?.serverURL,
131429
131779
  path,
131430
131780
  headers,
131781
+ query,
131431
131782
  body,
131432
131783
  userAgent: client._options.userAgent,
131433
131784
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -131449,13 +131800,14 @@ async function $do290(client, request, options) {
131449
131800
  const responseFields = {
131450
131801
  HttpMeta: { Response: response, Request: req }
131451
131802
  };
131452
- const [result] = await match(json(200, SandboxPricingCard$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
131803
+ const [result] = await match(stream(200, instanceOfType(ReadableStream)), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
131453
131804
  if (!result.ok) {
131454
131805
  return [result, { status: "complete", request: req, response }];
131455
131806
  }
131456
131807
  return [result, { status: "complete", request: req, response }];
131457
131808
  }
131458
- var init_sandboxSetPricing = __esm(() => {
131809
+ var init_sandboxDownloadFile = __esm(() => {
131810
+ init_esm();
131459
131811
  init_encodings();
131460
131812
  init_http();
131461
131813
  init_matchers();
@@ -131463,28 +131815,28 @@ var init_sandboxSetPricing = __esm(() => {
131463
131815
  init_schemas4();
131464
131816
  init_security();
131465
131817
  init_url();
131466
- init_components();
131467
131818
  init_errors4();
131819
+ init_operations();
131468
131820
  init_async();
131469
131821
  });
131470
131822
 
131471
- // src/mcp-server/tools/sandboxSetPricing.ts
131472
- var args281, tool$sandboxSetPricing;
131473
- var init_sandboxSetPricing2 = __esm(() => {
131474
- init_sandboxSetPricing();
131475
- init_components();
131823
+ // src/mcp-server/tools/sandboxDownloadFile.ts
131824
+ var args281, tool$sandboxDownloadFile;
131825
+ var init_sandboxDownloadFile2 = __esm(() => {
131826
+ init_sandboxDownloadFile();
131827
+ init_operations();
131476
131828
  init_tools();
131477
131829
  args281 = {
131478
- request: SandboxPricingUpdate$inboundSchema
131830
+ request: DownloadWorkspaceFileRequest$inboundSchema
131479
131831
  };
131480
- tool$sandboxSetPricing = {
131481
- name: "sandbox-set-pricing",
131482
- description: `Set Sandbox Pricing
131832
+ tool$sandboxDownloadFile = {
131833
+ name: "sandbox-download-file",
131834
+ description: `Download Workspace File
131483
131835
 
131484
- Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.`,
131836
+ Download raw bytes from a file in the session workspace.`,
131485
131837
  args: args281,
131486
131838
  tool: async (client, args282, ctx) => {
131487
- const [result, apiCall] = await sandboxSetPricing(client, args282.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131839
+ const [result, apiCall] = await sandboxDownloadFile(client, args282.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131488
131840
  if (!result.ok) {
131489
131841
  return {
131490
131842
  content: [{ type: "text", text: result.error.message }],
@@ -131497,28 +131849,25 @@ Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from
131497
131849
  };
131498
131850
  });
131499
131851
 
131500
- // src/funcs/sandboxTerminate.ts
131501
- function sandboxTerminate(client, request, options) {
131502
- return new APIPromise($do291(client, request, options));
131852
+ // src/funcs/sandboxGet.ts
131853
+ function sandboxGet(client, request, options) {
131854
+ return new APIPromise($do290(client, request, options));
131503
131855
  }
131504
- async function $do291(client, request, options) {
131505
- const parsed = safeParse4(request, (value) => TerminateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
131856
+ async function $do290(client, request, options) {
131857
+ const parsed = safeParse4(request, (value) => GetSessionRequest$outboundSchema.parse(value), "Input validation failed");
131506
131858
  if (!parsed.ok) {
131507
131859
  return [parsed, { status: "invalid" }];
131508
131860
  }
131509
131861
  const payload = parsed.value;
131510
- const body = encodeJSON("body", payload.TerminateSessionRequest, {
131511
- explode: true
131512
- });
131862
+ const body = null;
131513
131863
  const pathParams = {
131514
131864
  session_id: encodeSimple("session_id", payload.session_id, {
131515
131865
  explode: false,
131516
131866
  charEncoding: "percent"
131517
131867
  })
131518
131868
  };
131519
- const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/terminate")(pathParams);
131869
+ const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}")(pathParams);
131520
131870
  const headers = new Headers(compactMap({
131521
- "Content-Type": "application/json",
131522
131871
  Accept: "application/json",
131523
131872
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
131524
131873
  }));
@@ -131528,7 +131877,7 @@ async function $do291(client, request, options) {
131528
131877
  const context = {
131529
131878
  options: client._options,
131530
131879
  baseURL: options?.serverURL ?? client._baseURL ?? "",
131531
- operationID: "terminateSession",
131880
+ operationID: "getSession",
131532
131881
  oAuth2Scopes: null,
131533
131882
  resolvedSecurity: requestSecurity,
131534
131883
  securitySource: client._options.bearerAuth,
@@ -131546,7 +131895,7 @@ async function $do291(client, request, options) {
131546
131895
  };
131547
131896
  const requestRes = client._createRequest(context, {
131548
131897
  security: requestSecurity,
131549
- method: "POST",
131898
+ method: "GET",
131550
131899
  baseURL: options?.serverURL,
131551
131900
  path,
131552
131901
  headers,
@@ -131571,13 +131920,13 @@ async function $do291(client, request, options) {
131571
131920
  const responseFields = {
131572
131921
  HttpMeta: { Response: response, Request: req }
131573
131922
  };
131574
- const [result] = await match(json(200, TerminateSessionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
131923
+ const [result] = await match(json(200, SessionRecord$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
131575
131924
  if (!result.ok) {
131576
131925
  return [result, { status: "complete", request: req, response }];
131577
131926
  }
131578
131927
  return [result, { status: "complete", request: req, response }];
131579
131928
  }
131580
- var init_sandboxTerminate = __esm(() => {
131929
+ var init_sandboxGet = __esm(() => {
131581
131930
  init_encodings();
131582
131931
  init_http();
131583
131932
  init_matchers();
@@ -131591,23 +131940,23 @@ var init_sandboxTerminate = __esm(() => {
131591
131940
  init_async();
131592
131941
  });
131593
131942
 
131594
- // src/mcp-server/tools/sandboxTerminate.ts
131595
- var args282, tool$sandboxTerminate;
131596
- var init_sandboxTerminate2 = __esm(() => {
131597
- init_sandboxTerminate();
131943
+ // src/mcp-server/tools/sandboxGet.ts
131944
+ var args282, tool$sandboxGet;
131945
+ var init_sandboxGet2 = __esm(() => {
131946
+ init_sandboxGet();
131598
131947
  init_operations();
131599
131948
  init_tools();
131600
131949
  args282 = {
131601
- request: TerminateSessionRequest$inboundSchema2
131950
+ request: GetSessionRequest$inboundSchema
131602
131951
  };
131603
- tool$sandboxTerminate = {
131604
- name: "sandbox-terminate",
131605
- description: `Terminate Session
131952
+ tool$sandboxGet = {
131953
+ name: "sandbox-get",
131954
+ description: `Get Session
131606
131955
 
131607
- Stop a sandbox session and release the backing sandbox resources.`,
131956
+ Return the current state, configuration, and resource allocation for a sandbox session.`,
131608
131957
  args: args282,
131609
131958
  tool: async (client, args283, ctx) => {
131610
- const [result, apiCall] = await sandboxTerminate(client, args283.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131959
+ const [result, apiCall] = await sandboxGet(client, args283.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131611
131960
  if (!result.ok) {
131612
131961
  return {
131613
131962
  content: [{ type: "text", text: result.error.message }],
@@ -131620,29 +131969,28 @@ Stop a sandbox session and release the backing sandbox resources.`,
131620
131969
  };
131621
131970
  });
131622
131971
 
131623
- // src/funcs/sandboxUploadArchive.ts
131624
- function sandboxUploadArchive(client, request, options) {
131625
- return new APIPromise($do292(client, request, options));
131972
+ // src/funcs/sandboxGetBrowserUrl.ts
131973
+ function sandboxGetBrowserUrl(client, request, options) {
131974
+ return new APIPromise($do291(client, request, options));
131626
131975
  }
131627
- async function $do292(client, request, options) {
131628
- const parsed = safeParse4(request, (value) => UploadWorkspaceArchiveRequest$outboundSchema.parse(value), "Input validation failed");
131976
+ async function $do291(client, request, options) {
131977
+ const parsed = safeParse4(request, (value) => GetBrowserSessionUrlRequest$outboundSchema.parse(value), "Input validation failed");
131629
131978
  if (!parsed.ok) {
131630
131979
  return [parsed, { status: "invalid" }];
131631
131980
  }
131632
131981
  const payload = parsed.value;
131633
- const body = payload.RequestBody instanceof Uint8Array ? new Uint8Array(payload.RequestBody).buffer : payload.RequestBody;
131982
+ const body = null;
131634
131983
  const pathParams = {
131635
131984
  session_id: encodeSimple("session_id", payload.session_id, {
131636
131985
  explode: false,
131637
131986
  charEncoding: "percent"
131638
131987
  })
131639
131988
  };
131640
- const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/archive")(pathParams);
131989
+ const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/browser-url")(pathParams);
131641
131990
  const query = encodeFormQuery({
131642
131991
  session_token: payload.session_token
131643
131992
  });
131644
131993
  const headers = new Headers(compactMap({
131645
- "Content-Type": "application/zip",
131646
131994
  Accept: "application/json",
131647
131995
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
131648
131996
  }));
@@ -131652,7 +132000,7 @@ async function $do292(client, request, options) {
131652
132000
  const context = {
131653
132001
  options: client._options,
131654
132002
  baseURL: options?.serverURL ?? client._baseURL ?? "",
131655
- operationID: "uploadWorkspaceArchive",
132003
+ operationID: "getBrowserSessionUrl",
131656
132004
  oAuth2Scopes: null,
131657
132005
  resolvedSecurity: requestSecurity,
131658
132006
  securitySource: client._options.bearerAuth,
@@ -131670,7 +132018,7 @@ async function $do292(client, request, options) {
131670
132018
  };
131671
132019
  const requestRes = client._createRequest(context, {
131672
132020
  security: requestSecurity,
131673
- method: "PUT",
132021
+ method: "GET",
131674
132022
  baseURL: options?.serverURL,
131675
132023
  path,
131676
132024
  headers,
@@ -131696,14 +132044,13 @@ async function $do292(client, request, options) {
131696
132044
  const responseFields = {
131697
132045
  HttpMeta: { Response: response, Request: req }
131698
132046
  };
131699
- const [result] = await match(json(200, recordType(stringType())), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
132047
+ const [result] = await match(json(200, SessionUrlResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail([501, "5XX"]))(response, req, { extraFields: responseFields });
131700
132048
  if (!result.ok) {
131701
132049
  return [result, { status: "complete", request: req, response }];
131702
132050
  }
131703
132051
  return [result, { status: "complete", request: req, response }];
131704
132052
  }
131705
- var init_sandboxUploadArchive = __esm(() => {
131706
- init_esm();
132053
+ var init_sandboxGetBrowserUrl = __esm(() => {
131707
132054
  init_encodings();
131708
132055
  init_http();
131709
132056
  init_matchers();
@@ -131711,28 +132058,29 @@ var init_sandboxUploadArchive = __esm(() => {
131711
132058
  init_schemas4();
131712
132059
  init_security();
131713
132060
  init_url();
132061
+ init_components();
131714
132062
  init_errors4();
131715
132063
  init_operations();
131716
132064
  init_async();
131717
132065
  });
131718
132066
 
131719
- // src/mcp-server/tools/sandboxUploadArchive.ts
131720
- var args283, tool$sandboxUploadArchive;
131721
- var init_sandboxUploadArchive2 = __esm(() => {
131722
- init_sandboxUploadArchive();
132067
+ // src/mcp-server/tools/sandboxGetBrowserUrl.ts
132068
+ var args283, tool$sandboxGetBrowserUrl;
132069
+ var init_sandboxGetBrowserUrl2 = __esm(() => {
132070
+ init_sandboxGetBrowserUrl();
131723
132071
  init_operations();
131724
132072
  init_tools();
131725
132073
  args283 = {
131726
- request: UploadWorkspaceArchiveRequest$inboundSchema
132074
+ request: GetBrowserSessionUrlRequest$inboundSchema
131727
132075
  };
131728
- tool$sandboxUploadArchive = {
131729
- name: "sandbox-upload-archive",
131730
- description: `Upload Workspace Archive
132076
+ tool$sandboxGetBrowserUrl = {
132077
+ name: "sandbox-get-browser-url",
132078
+ description: `Get Browser Session URL
131731
132079
 
131732
- Upload a zip archive and extract its files into the session workspace.`,
132080
+ Return the public gateway URL for a browser session's Chrome DevTools Protocol endpoint. Playwright can use this HTTP endpoint directly. For clients that require a WebSocket endpoint, request \`json/version\` and use its rewritten \`webSocketDebuggerUrl\`. Insert subpaths before the query string; for example, use \`/ports/9222/json/version?session_token=...\`. Send the same MKA1 API-key authorization header on the HTTP and WebSocket requests. Standard sessions do not expose a public URL; use the command, code, and workspace operations instead.`,
131733
132081
  args: args283,
131734
132082
  tool: async (client, args284, ctx) => {
131735
- const [result, apiCall] = await sandboxUploadArchive(client, args284.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132083
+ const [result, apiCall] = await sandboxGetBrowserUrl(client, args284.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131736
132084
  if (!result.ok) {
131737
132085
  return {
131738
132086
  content: [{ type: "text", text: result.error.message }],
@@ -131745,35 +132093,14 @@ Upload a zip archive and extract its files into the session workspace.`,
131745
132093
  };
131746
132094
  });
131747
132095
 
131748
- // src/funcs/sandboxUploadFile.ts
131749
- function sandboxUploadFile(client, request, options) {
131750
- return new APIPromise($do293(client, request, options));
132096
+ // src/funcs/sandboxGetPricing.ts
132097
+ function sandboxGetPricing(client, options) {
132098
+ return new APIPromise($do292(client, options));
131751
132099
  }
131752
- async function $do293(client, request, options) {
131753
- const parsed = safeParse4(request, (value) => UploadWorkspaceFileRequest$outboundSchema.parse(value), "Input validation failed");
131754
- if (!parsed.ok) {
131755
- return [parsed, { status: "invalid" }];
131756
- }
131757
- const payload = parsed.value;
131758
- const body = payload.RequestBody instanceof Uint8Array ? new Uint8Array(payload.RequestBody).buffer : payload.RequestBody;
131759
- const pathParams = {
131760
- file_path: encodeSimple("file_path", payload.file_path, {
131761
- explode: false,
131762
- charEncoding: "percent"
131763
- }),
131764
- session_id: encodeSimple("session_id", payload.session_id, {
131765
- explode: false,
131766
- charEncoding: "percent"
131767
- })
131768
- };
131769
- const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/files/{file_path}")(pathParams);
131770
- const query = encodeFormQuery({
131771
- session_token: payload.session_token
131772
- });
132100
+ async function $do292(client, options) {
132101
+ const path = pathToFunc("/api/v1/sandbox/pricing")();
131773
132102
  const headers = new Headers(compactMap({
131774
- "Content-Type": "application/octet-stream",
131775
- Accept: "application/json",
131776
- "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
132103
+ Accept: "application/json"
131777
132104
  }));
131778
132105
  const secConfig = await extractSecurity(client._options.bearerAuth);
131779
132106
  const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
@@ -131781,7 +132108,7 @@ async function $do293(client, request, options) {
131781
132108
  const context = {
131782
132109
  options: client._options,
131783
132110
  baseURL: options?.serverURL ?? client._baseURL ?? "",
131784
- operationID: "uploadWorkspaceFile",
132111
+ operationID: "getSandboxPricing",
131785
132112
  oAuth2Scopes: null,
131786
132113
  resolvedSecurity: requestSecurity,
131787
132114
  securitySource: client._options.bearerAuth,
@@ -131799,12 +132126,10 @@ async function $do293(client, request, options) {
131799
132126
  };
131800
132127
  const requestRes = client._createRequest(context, {
131801
132128
  security: requestSecurity,
131802
- method: "PUT",
132129
+ method: "GET",
131803
132130
  baseURL: options?.serverURL,
131804
132131
  path,
131805
132132
  headers,
131806
- query,
131807
- body,
131808
132133
  userAgent: client._options.userAgent,
131809
132134
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
131810
132135
  }, options);
@@ -131822,46 +132147,34 @@ async function $do293(client, request, options) {
131822
132147
  return [doResult, { status: "request-error", request: req }];
131823
132148
  }
131824
132149
  const response = doResult.value;
131825
- const responseFields = {
131826
- HttpMeta: { Response: response, Request: req }
131827
- };
131828
- const [result] = await match(json(200, recordType(stringType())), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
132150
+ const [result] = await match(json(200, SandboxPricingCard$inboundSchema), fail("4XX"), fail("5XX"))(response, req);
131829
132151
  if (!result.ok) {
131830
132152
  return [result, { status: "complete", request: req, response }];
131831
132153
  }
131832
132154
  return [result, { status: "complete", request: req, response }];
131833
132155
  }
131834
- var init_sandboxUploadFile = __esm(() => {
131835
- init_esm();
131836
- init_encodings();
132156
+ var init_sandboxGetPricing = __esm(() => {
131837
132157
  init_http();
131838
132158
  init_matchers();
131839
132159
  init_primitives();
131840
- init_schemas4();
131841
132160
  init_security();
131842
132161
  init_url();
131843
- init_errors4();
131844
- init_operations();
132162
+ init_components();
131845
132163
  init_async();
131846
132164
  });
131847
132165
 
131848
- // src/mcp-server/tools/sandboxUploadFile.ts
131849
- var args284, tool$sandboxUploadFile;
131850
- var init_sandboxUploadFile2 = __esm(() => {
131851
- init_sandboxUploadFile();
131852
- init_operations();
132166
+ // src/mcp-server/tools/sandboxGetPricing.ts
132167
+ var tool$sandboxGetPricing;
132168
+ var init_sandboxGetPricing2 = __esm(() => {
132169
+ init_sandboxGetPricing();
131853
132170
  init_tools();
131854
- args284 = {
131855
- request: UploadWorkspaceFileRequest$inboundSchema
131856
- };
131857
- tool$sandboxUploadFile = {
131858
- name: "sandbox-upload-file",
131859
- description: `Upload Workspace File
132171
+ tool$sandboxGetPricing = {
132172
+ name: "sandbox-get-pricing",
132173
+ description: `Get Sandbox Pricing
131860
132174
 
131861
- Upload raw bytes into the session workspace at the given path.`,
131862
- args: args284,
131863
- tool: async (client, args285, ctx) => {
131864
- const [result, apiCall] = await sandboxUploadFile(client, args285.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132175
+ Current sandbox pricing rate card, keyed by SKU (\`standard\`, \`browser\`, \`eval-python\`). Metered sandbox usage is billed \`hours × (per_hour + reserved_memory_GiB × per_gib_hour)\`; SKUs without a configured rate accrue no spend. Cluster admins only.`,
132176
+ tool: async (client, ctx) => {
132177
+ const [result, apiCall] = await sandboxGetPricing(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
131865
132178
  if (!result.ok) {
131866
132179
  return {
131867
132180
  content: [{ type: "text", text: result.error.message }],
@@ -131874,24 +132187,27 @@ Upload raw bytes into the session workspace at the given path.`,
131874
132187
  };
131875
132188
  });
131876
132189
 
131877
- // src/funcs/servingAcceleratorsGet.ts
131878
- function servingAcceleratorsGet(client, request, options) {
131879
- return new APIPromise($do294(client, request, options));
132190
+ // src/funcs/sandboxGetWorkspace.ts
132191
+ function sandboxGetWorkspace(client, request, options) {
132192
+ return new APIPromise($do293(client, request, options));
131880
132193
  }
131881
- async function $do294(client, request, options) {
131882
- const parsed = safeParse4(request, (value) => GetAcceleratorRequest$outboundSchema.parse(value), "Input validation failed");
132194
+ async function $do293(client, request, options) {
132195
+ const parsed = safeParse4(request, (value) => GetWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
131883
132196
  if (!parsed.ok) {
131884
132197
  return [parsed, { status: "invalid" }];
131885
132198
  }
131886
132199
  const payload = parsed.value;
131887
132200
  const body = null;
131888
132201
  const pathParams = {
131889
- name: encodeSimple("name", payload.name, {
132202
+ session_id: encodeSimple("session_id", payload.session_id, {
131890
132203
  explode: false,
131891
132204
  charEncoding: "percent"
131892
132205
  })
131893
132206
  };
131894
- const path = pathToFunc("/api/v1/serving/accelerators/{name}")(pathParams);
132207
+ const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace")(pathParams);
132208
+ const query = encodeFormQuery({
132209
+ session_token: payload.session_token
132210
+ });
131895
132211
  const headers = new Headers(compactMap({
131896
132212
  Accept: "application/json",
131897
132213
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
@@ -131902,7 +132218,7 @@ async function $do294(client, request, options) {
131902
132218
  const context = {
131903
132219
  options: client._options,
131904
132220
  baseURL: options?.serverURL ?? client._baseURL ?? "",
131905
- operationID: "getAccelerator",
132221
+ operationID: "getWorkspace",
131906
132222
  oAuth2Scopes: null,
131907
132223
  resolvedSecurity: requestSecurity,
131908
132224
  securitySource: client._options.bearerAuth,
@@ -131924,6 +132240,7 @@ async function $do294(client, request, options) {
131924
132240
  baseURL: options?.serverURL,
131925
132241
  path,
131926
132242
  headers,
132243
+ query,
131927
132244
  body,
131928
132245
  userAgent: client._options.userAgent,
131929
132246
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -131945,13 +132262,13 @@ async function $do294(client, request, options) {
131945
132262
  const responseFields = {
131946
132263
  HttpMeta: { Response: response, Request: req }
131947
132264
  };
131948
- const [result] = await match(json(200, AcceleratorType$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
132265
+ const [result] = await match(json(200, WorkspaceManifest$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
131949
132266
  if (!result.ok) {
131950
132267
  return [result, { status: "complete", request: req, response }];
131951
132268
  }
131952
132269
  return [result, { status: "complete", request: req, response }];
131953
132270
  }
131954
- var init_servingAcceleratorsGet = __esm(() => {
132271
+ var init_sandboxGetWorkspace = __esm(() => {
131955
132272
  init_encodings();
131956
132273
  init_http();
131957
132274
  init_matchers();
@@ -131965,23 +132282,23 @@ var init_servingAcceleratorsGet = __esm(() => {
131965
132282
  init_async();
131966
132283
  });
131967
132284
 
131968
- // src/mcp-server/tools/servingAcceleratorsGet.ts
131969
- var args285, tool$servingAcceleratorsGet;
131970
- var init_servingAcceleratorsGet2 = __esm(() => {
131971
- init_servingAcceleratorsGet();
132285
+ // src/mcp-server/tools/sandboxGetWorkspace.ts
132286
+ var args284, tool$sandboxGetWorkspace;
132287
+ var init_sandboxGetWorkspace2 = __esm(() => {
132288
+ init_sandboxGetWorkspace();
131972
132289
  init_operations();
131973
132290
  init_tools();
131974
- args285 = {
131975
- request: GetAcceleratorRequest$inboundSchema
132291
+ args284 = {
132292
+ request: GetWorkspaceRequest$inboundSchema
131976
132293
  };
131977
- tool$servingAcceleratorsGet = {
131978
- name: "serving-accelerators-get",
131979
- description: `Get an accelerator type
132294
+ tool$sandboxGetWorkspace = {
132295
+ name: "sandbox-get-workspace",
132296
+ description: `Get Workspace Manifest
131980
132297
 
131981
- Retrieve one accelerator type from the curated catalog, including its workload affinity, placements, and live market fields when available.`,
131982
- args: args285,
131983
- tool: async (client, args286, ctx) => {
131984
- const [result, apiCall] = await servingAcceleratorsGet(client, args286.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132298
+ List files currently stored in the session workspace, including paths, sizes, and etags.`,
132299
+ args: args284,
132300
+ tool: async (client, args285, ctx) => {
132301
+ const [result, apiCall] = await sandboxGetWorkspace(client, args285.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
131985
132302
  if (!result.ok) {
131986
132303
  return {
131987
132304
  content: [{ type: "text", text: result.error.message }],
@@ -131994,18 +132311,18 @@ Retrieve one accelerator type from the curated catalog, including its workload a
131994
132311
  };
131995
132312
  });
131996
132313
 
131997
- // src/funcs/servingAcceleratorsList.ts
131998
- function servingAcceleratorsList(client, request, options) {
131999
- return new APIPromise($do295(client, request, options));
132314
+ // src/funcs/sandboxList.ts
132315
+ function sandboxList(client, request, options) {
132316
+ return new APIPromise($do294(client, request, options));
132000
132317
  }
132001
- async function $do295(client, request, options) {
132002
- const parsed = safeParse4(request, (value) => ListAcceleratorsRequest$outboundSchema.parse(value), "Input validation failed");
132318
+ async function $do294(client, request, options) {
132319
+ const parsed = safeParse4(request, (value) => ListSessionsRequest$outboundSchema.parse(value), "Input validation failed");
132003
132320
  if (!parsed.ok) {
132004
132321
  return [parsed, { status: "invalid" }];
132005
132322
  }
132006
132323
  const payload = parsed.value;
132007
132324
  const body = null;
132008
- const path = pathToFunc("/api/v1/serving/accelerators")();
132325
+ const path = pathToFunc("/api/v1/sandbox/sessions")();
132009
132326
  const headers = new Headers(compactMap({
132010
132327
  Accept: "application/json",
132011
132328
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
@@ -132016,7 +132333,7 @@ async function $do295(client, request, options) {
132016
132333
  const context = {
132017
132334
  options: client._options,
132018
132335
  baseURL: options?.serverURL ?? client._baseURL ?? "",
132019
- operationID: "listAccelerators",
132336
+ operationID: "listSessions",
132020
132337
  oAuth2Scopes: null,
132021
132338
  resolvedSecurity: requestSecurity,
132022
132339
  securitySource: client._options.bearerAuth,
@@ -132059,13 +132376,14 @@ async function $do295(client, request, options) {
132059
132376
  const responseFields = {
132060
132377
  HttpMeta: { Response: response, Request: req }
132061
132378
  };
132062
- const [result] = await match(json(200, PageAcceleratorType$inboundSchema), jsonErr(403, ServingError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
132379
+ const [result] = await match(json(200, arrayType(SessionRecord$inboundSchema)), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
132063
132380
  if (!result.ok) {
132064
132381
  return [result, { status: "complete", request: req, response }];
132065
132382
  }
132066
132383
  return [result, { status: "complete", request: req, response }];
132067
132384
  }
132068
- var init_servingAcceleratorsList = __esm(() => {
132385
+ var init_sandboxList = __esm(() => {
132386
+ init_esm();
132069
132387
  init_encodings();
132070
132388
  init_http();
132071
132389
  init_matchers();
@@ -132079,23 +132397,23 @@ var init_servingAcceleratorsList = __esm(() => {
132079
132397
  init_async();
132080
132398
  });
132081
132399
 
132082
- // src/mcp-server/tools/servingAcceleratorsList.ts
132083
- var args286, tool$servingAcceleratorsList;
132084
- var init_servingAcceleratorsList2 = __esm(() => {
132085
- init_servingAcceleratorsList();
132400
+ // src/mcp-server/tools/sandboxList.ts
132401
+ var args285, tool$sandboxList;
132402
+ var init_sandboxList2 = __esm(() => {
132403
+ init_sandboxList();
132086
132404
  init_operations();
132087
132405
  init_tools();
132088
- args286 = {
132089
- request: ListAcceleratorsRequest$inboundSchema
132406
+ args285 = {
132407
+ request: ListSessionsRequest$inboundSchema
132090
132408
  };
132091
- tool$servingAcceleratorsList = {
132092
- name: "serving-accelerators-list",
132093
- description: `List available accelerator types
132409
+ tool$sandboxList = {
132410
+ name: "sandbox-list",
132411
+ description: `List Sessions
132094
132412
 
132095
- List the accelerator types available to your organization (GPU, NPU, TPU).`,
132096
- args: args286,
132097
- tool: async (client, args287, ctx) => {
132098
- const [result, apiCall] = await servingAcceleratorsList(client, args287.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132413
+ List sandbox sessions visible to the authenticated caller.`,
132414
+ args: args285,
132415
+ tool: async (client, args286, ctx) => {
132416
+ const [result, apiCall] = await sandboxList(client, args286.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132099
132417
  if (!result.ok) {
132100
132418
  return {
132101
132419
  content: [{ type: "text", text: result.error.message }],
@@ -132108,20 +132426,36 @@ List the accelerator types available to your organization (GPU, NPU, TPU).`,
132108
132426
  };
132109
132427
  });
132110
132428
 
132111
- // src/funcs/servingSecretsCreate.ts
132112
- function servingSecretsCreate(client, request, options) {
132113
- return new APIPromise($do296(client, request, options));
132429
+ // src/funcs/sandboxProxyBrowserPortRequest.ts
132430
+ function sandboxProxyBrowserPortRequest(client, request, options) {
132431
+ return new APIPromise($do295(client, request, options));
132114
132432
  }
132115
- async function $do296(client, request, options) {
132116
- const parsed = safeParse4(request, (value) => CreateSecretRequest$outboundSchema.parse(value), "Input validation failed");
132433
+ async function $do295(client, request, options) {
132434
+ const parsed = safeParse4(request, (value) => ProxyBrowserPortRequestRequest$outboundSchema.parse(value), "Input validation failed");
132117
132435
  if (!parsed.ok) {
132118
132436
  return [parsed, { status: "invalid" }];
132119
132437
  }
132120
132438
  const payload = parsed.value;
132121
- const body = encodeJSON("body", payload.SecretCreate, { explode: true });
132122
- const path = pathToFunc("/api/v1/serving/secrets")();
132439
+ const body = null;
132440
+ const pathParams = {
132441
+ port: encodeSimple("port", payload.port, {
132442
+ explode: false,
132443
+ charEncoding: "percent"
132444
+ }),
132445
+ session_id: encodeSimple("session_id", payload.session_id, {
132446
+ explode: false,
132447
+ charEncoding: "percent"
132448
+ }),
132449
+ subpath: encodeSimple("subpath", payload.subpath, {
132450
+ explode: false,
132451
+ charEncoding: "percent"
132452
+ })
132453
+ };
132454
+ const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/ports/{port}/{subpath}")(pathParams);
132455
+ const query = encodeFormQuery({
132456
+ session_token: payload.session_token
132457
+ });
132123
132458
  const headers = new Headers(compactMap({
132124
- "Content-Type": "application/json",
132125
132459
  Accept: "application/json",
132126
132460
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
132127
132461
  }));
@@ -132131,7 +132465,7 @@ async function $do296(client, request, options) {
132131
132465
  const context = {
132132
132466
  options: client._options,
132133
132467
  baseURL: options?.serverURL ?? client._baseURL ?? "",
132134
- operationID: "createSecret",
132468
+ operationID: "proxyBrowserPortRequest",
132135
132469
  oAuth2Scopes: null,
132136
132470
  resolvedSecurity: requestSecurity,
132137
132471
  securitySource: client._options.bearerAuth,
@@ -132149,10 +132483,11 @@ async function $do296(client, request, options) {
132149
132483
  };
132150
132484
  const requestRes = client._createRequest(context, {
132151
132485
  security: requestSecurity,
132152
- method: "POST",
132486
+ method: "GET",
132153
132487
  baseURL: options?.serverURL,
132154
132488
  path,
132155
132489
  headers,
132490
+ query,
132156
132491
  body,
132157
132492
  userAgent: client._options.userAgent,
132158
132493
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -132174,13 +132509,14 @@ async function $do296(client, request, options) {
132174
132509
  const responseFields = {
132175
132510
  HttpMeta: { Response: response, Request: req }
132176
132511
  };
132177
- const [result] = await match(json(201, Secret$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
132512
+ const [result] = await match(json(200, anyType()), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
132178
132513
  if (!result.ok) {
132179
132514
  return [result, { status: "complete", request: req, response }];
132180
132515
  }
132181
132516
  return [result, { status: "complete", request: req, response }];
132182
132517
  }
132183
- var init_servingSecretsCreate = __esm(() => {
132518
+ var init_sandboxProxyBrowserPortRequest = __esm(() => {
132519
+ init_esm();
132184
132520
  init_encodings();
132185
132521
  init_http();
132186
132522
  init_matchers();
@@ -132188,29 +132524,28 @@ var init_servingSecretsCreate = __esm(() => {
132188
132524
  init_schemas4();
132189
132525
  init_security();
132190
132526
  init_url();
132191
- init_components();
132192
132527
  init_errors4();
132193
132528
  init_operations();
132194
132529
  init_async();
132195
132530
  });
132196
132531
 
132197
- // src/mcp-server/tools/servingSecretsCreate.ts
132198
- var args287, tool$servingSecretsCreate;
132199
- var init_servingSecretsCreate2 = __esm(() => {
132200
- init_servingSecretsCreate();
132532
+ // src/mcp-server/tools/sandboxProxyBrowserPortRequest.ts
132533
+ var args286, tool$sandboxProxyBrowserPortRequest;
132534
+ var init_sandboxProxyBrowserPortRequest2 = __esm(() => {
132535
+ init_sandboxProxyBrowserPortRequest();
132201
132536
  init_operations();
132202
132537
  init_tools();
132203
- args287 = {
132204
- request: CreateSecretRequest$inboundSchema
132538
+ args286 = {
132539
+ request: ProxyBrowserPortRequestRequest$inboundSchema
132205
132540
  };
132206
- tool$servingSecretsCreate = {
132207
- name: "serving-secrets-create",
132208
- description: `Create a secret
132541
+ tool$sandboxProxyBrowserPortRequest = {
132542
+ name: "sandbox-proxy-browser-port-request",
132543
+ description: `Proxy Browser Port Request
132209
132544
 
132210
- Create a secret whose values are injected into your workloads as env vars.`,
132211
- args: args287,
132212
- tool: async (client, args288, ctx) => {
132213
- const [result, apiCall] = await servingSecretsCreate(client, args288.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132545
+ Proxy an HTTP request to an exposed browser-session port through the gateway. Use the URL returned by \`GET /sessions/{session_id}/browser-url\` as the base. Insert CDP subpaths such as \`json/version\` or \`json/list\` before its query string, preserving the \`session_token\` parameter. This low-level proxy is intended for browser sessions on port \`9222\` and still requires the normal MKA1 API-key authorization header.`,
132546
+ args: args286,
132547
+ tool: async (client, args287, ctx) => {
132548
+ const [result, apiCall] = await sandboxProxyBrowserPortRequest(client, args287.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132214
132549
  if (!result.ok) {
132215
132550
  return {
132216
132551
  content: [{ type: "text", text: result.error.message }],
@@ -132223,25 +132558,26 @@ Create a secret whose values are injected into your workloads as env vars.`,
132223
132558
  };
132224
132559
  });
132225
132560
 
132226
- // src/funcs/servingSecretsDelete.ts
132227
- function servingSecretsDelete(client, request, options) {
132228
- return new APIPromise($do297(client, request, options));
132561
+ // src/funcs/sandboxRunCode.ts
132562
+ function sandboxRunCode(client, request, options) {
132563
+ return new APIPromise($do296(client, request, options));
132229
132564
  }
132230
- async function $do297(client, request, options) {
132231
- const parsed = safeParse4(request, (value) => DeleteSecretRequest$outboundSchema.parse(value), "Input validation failed");
132565
+ async function $do296(client, request, options) {
132566
+ const parsed = safeParse4(request, (value) => RunCodeRequest$outboundSchema.parse(value), "Input validation failed");
132232
132567
  if (!parsed.ok) {
132233
132568
  return [parsed, { status: "invalid" }];
132234
132569
  }
132235
132570
  const payload = parsed.value;
132236
- const body = null;
132571
+ const body = encodeJSON("body", payload.CodeRequest, { explode: true });
132237
132572
  const pathParams = {
132238
- secret_id: encodeSimple("secret_id", payload.secret_id, {
132573
+ session_id: encodeSimple("session_id", payload.session_id, {
132239
132574
  explode: false,
132240
132575
  charEncoding: "percent"
132241
132576
  })
132242
132577
  };
132243
- const path = pathToFunc("/api/v1/serving/secrets/{secret_id}")(pathParams);
132578
+ const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/code")(pathParams);
132244
132579
  const headers = new Headers(compactMap({
132580
+ "Content-Type": "application/json",
132245
132581
  Accept: "application/json",
132246
132582
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
132247
132583
  }));
@@ -132251,7 +132587,7 @@ async function $do297(client, request, options) {
132251
132587
  const context = {
132252
132588
  options: client._options,
132253
132589
  baseURL: options?.serverURL ?? client._baseURL ?? "",
132254
- operationID: "deleteSecret",
132590
+ operationID: "runCode",
132255
132591
  oAuth2Scopes: null,
132256
132592
  resolvedSecurity: requestSecurity,
132257
132593
  securitySource: client._options.bearerAuth,
@@ -132269,7 +132605,7 @@ async function $do297(client, request, options) {
132269
132605
  };
132270
132606
  const requestRes = client._createRequest(context, {
132271
132607
  security: requestSecurity,
132272
- method: "DELETE",
132608
+ method: "POST",
132273
132609
  baseURL: options?.serverURL,
132274
132610
  path,
132275
132611
  headers,
@@ -132294,14 +132630,13 @@ async function $do297(client, request, options) {
132294
132630
  const responseFields = {
132295
132631
  HttpMeta: { Response: response, Request: req }
132296
132632
  };
132297
- const [result] = await match(nil(204, voidType()), jsonErr([403, 404, 409], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
132633
+ const [result] = await match(json(200, CodeResult$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
132298
132634
  if (!result.ok) {
132299
132635
  return [result, { status: "complete", request: req, response }];
132300
132636
  }
132301
132637
  return [result, { status: "complete", request: req, response }];
132302
132638
  }
132303
- var init_servingSecretsDelete = __esm(() => {
132304
- init_esm();
132639
+ var init_sandboxRunCode = __esm(() => {
132305
132640
  init_encodings();
132306
132641
  init_http();
132307
132642
  init_matchers();
@@ -132309,58 +132644,61 @@ var init_servingSecretsDelete = __esm(() => {
132309
132644
  init_schemas4();
132310
132645
  init_security();
132311
132646
  init_url();
132647
+ init_components();
132312
132648
  init_errors4();
132313
132649
  init_operations();
132314
132650
  init_async();
132315
132651
  });
132316
132652
 
132317
- // src/mcp-server/tools/servingSecretsDelete.ts
132318
- var args288, tool$servingSecretsDelete;
132319
- var init_servingSecretsDelete2 = __esm(() => {
132320
- init_servingSecretsDelete();
132653
+ // src/mcp-server/tools/sandboxRunCode.ts
132654
+ var args287, tool$sandboxRunCode;
132655
+ var init_sandboxRunCode2 = __esm(() => {
132656
+ init_sandboxRunCode();
132321
132657
  init_operations();
132322
132658
  init_tools();
132323
- args288 = {
132324
- request: DeleteSecretRequest$inboundSchema
132659
+ args287 = {
132660
+ request: RunCodeRequest$inboundSchema
132325
132661
  };
132326
- tool$servingSecretsDelete = {
132327
- name: "serving-secrets-delete",
132328
- description: `Delete a secret
132662
+ tool$sandboxRunCode = {
132663
+ name: "sandbox-run-code",
132664
+ description: `Run Code
132329
132665
 
132330
- Delete a secret.`,
132331
- args: args288,
132332
- tool: async (client, args289, ctx) => {
132333
- const [result, apiCall] = await servingSecretsDelete(client, args289.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132666
+ Execute source code in the session workspace using a supported runtime and return the execution result.`,
132667
+ args: args287,
132668
+ tool: async (client, args288, ctx) => {
132669
+ const [result, apiCall] = await sandboxRunCode(client, args288.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132334
132670
  if (!result.ok) {
132335
132671
  return {
132336
132672
  content: [{ type: "text", text: result.error.message }],
132337
132673
  isError: true
132338
132674
  };
132339
132675
  }
132340
- return formatResult(undefined, apiCall);
132676
+ const value = result.value;
132677
+ return formatResult(value, apiCall);
132341
132678
  }
132342
132679
  };
132343
132680
  });
132344
132681
 
132345
- // src/funcs/servingSecretsGet.ts
132346
- function servingSecretsGet(client, request, options) {
132347
- return new APIPromise($do298(client, request, options));
132682
+ // src/funcs/sandboxRunCommand.ts
132683
+ function sandboxRunCommand(client, request, options) {
132684
+ return new APIPromise($do297(client, request, options));
132348
132685
  }
132349
- async function $do298(client, request, options) {
132350
- const parsed = safeParse4(request, (value) => GetSecretRequest$outboundSchema.parse(value), "Input validation failed");
132686
+ async function $do297(client, request, options) {
132687
+ const parsed = safeParse4(request, (value) => RunCommandRequest$outboundSchema.parse(value), "Input validation failed");
132351
132688
  if (!parsed.ok) {
132352
132689
  return [parsed, { status: "invalid" }];
132353
132690
  }
132354
132691
  const payload = parsed.value;
132355
- const body = null;
132692
+ const body = encodeJSON("body", payload.CommandRequest, { explode: true });
132356
132693
  const pathParams = {
132357
- secret_id: encodeSimple("secret_id", payload.secret_id, {
132694
+ session_id: encodeSimple("session_id", payload.session_id, {
132358
132695
  explode: false,
132359
132696
  charEncoding: "percent"
132360
132697
  })
132361
132698
  };
132362
- const path = pathToFunc("/api/v1/serving/secrets/{secret_id}")(pathParams);
132699
+ const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/commands")(pathParams);
132363
132700
  const headers = new Headers(compactMap({
132701
+ "Content-Type": "application/json",
132364
132702
  Accept: "application/json",
132365
132703
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
132366
132704
  }));
@@ -132370,7 +132708,7 @@ async function $do298(client, request, options) {
132370
132708
  const context = {
132371
132709
  options: client._options,
132372
132710
  baseURL: options?.serverURL ?? client._baseURL ?? "",
132373
- operationID: "getSecret",
132711
+ operationID: "runCommand",
132374
132712
  oAuth2Scopes: null,
132375
132713
  resolvedSecurity: requestSecurity,
132376
132714
  securitySource: client._options.bearerAuth,
@@ -132388,7 +132726,7 @@ async function $do298(client, request, options) {
132388
132726
  };
132389
132727
  const requestRes = client._createRequest(context, {
132390
132728
  security: requestSecurity,
132391
- method: "GET",
132729
+ method: "POST",
132392
132730
  baseURL: options?.serverURL,
132393
132731
  path,
132394
132732
  headers,
@@ -132413,13 +132751,13 @@ async function $do298(client, request, options) {
132413
132751
  const responseFields = {
132414
132752
  HttpMeta: { Response: response, Request: req }
132415
132753
  };
132416
- const [result] = await match(json(200, Secret$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
132754
+ const [result] = await match(json(200, CommandResult$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
132417
132755
  if (!result.ok) {
132418
132756
  return [result, { status: "complete", request: req, response }];
132419
132757
  }
132420
132758
  return [result, { status: "complete", request: req, response }];
132421
132759
  }
132422
- var init_servingSecretsGet = __esm(() => {
132760
+ var init_sandboxRunCommand = __esm(() => {
132423
132761
  init_encodings();
132424
132762
  init_http();
132425
132763
  init_matchers();
@@ -132433,23 +132771,23 @@ var init_servingSecretsGet = __esm(() => {
132433
132771
  init_async();
132434
132772
  });
132435
132773
 
132436
- // src/mcp-server/tools/servingSecretsGet.ts
132437
- var args289, tool$servingSecretsGet;
132438
- var init_servingSecretsGet2 = __esm(() => {
132439
- init_servingSecretsGet();
132774
+ // src/mcp-server/tools/sandboxRunCommand.ts
132775
+ var args288, tool$sandboxRunCommand;
132776
+ var init_sandboxRunCommand2 = __esm(() => {
132777
+ init_sandboxRunCommand();
132440
132778
  init_operations();
132441
132779
  init_tools();
132442
- args289 = {
132443
- request: GetSecretRequest$inboundSchema
132780
+ args288 = {
132781
+ request: RunCommandRequest$inboundSchema
132444
132782
  };
132445
- tool$servingSecretsGet = {
132446
- name: "serving-secrets-get",
132447
- description: `Get a secret
132783
+ tool$sandboxRunCommand = {
132784
+ name: "sandbox-run-command",
132785
+ description: `Run Command
132448
132786
 
132449
- Retrieve secret metadata: key names and allowed use. Values are never returned.`,
132450
- args: args289,
132451
- tool: async (client, args290, ctx) => {
132452
- const [result, apiCall] = await servingSecretsGet(client, args290.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132787
+ Run a command in the session workspace and return stdout, stderr, exit code, and changed files.`,
132788
+ args: args288,
132789
+ tool: async (client, args289, ctx) => {
132790
+ const [result, apiCall] = await sandboxRunCommand(client, args289.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132453
132791
  if (!result.ok) {
132454
132792
  return {
132455
132793
  content: [{ type: "text", text: result.error.message }],
@@ -132462,25 +132800,21 @@ Retrieve secret metadata: key names and allowed use. Values are never returned.`
132462
132800
  };
132463
132801
  });
132464
132802
 
132465
- // src/funcs/servingSecretsList.ts
132466
- function servingSecretsList(client, request, options) {
132467
- return new APIPromise($do299(client, request, options));
132803
+ // src/funcs/sandboxSetPricing.ts
132804
+ function sandboxSetPricing(client, request, options) {
132805
+ return new APIPromise($do298(client, request, options));
132468
132806
  }
132469
- async function $do299(client, request, options) {
132470
- const parsed = safeParse4(request, (value) => ListSecretsRequest$outboundSchema.parse(value), "Input validation failed");
132807
+ async function $do298(client, request, options) {
132808
+ const parsed = safeParse4(request, (value) => SandboxPricingUpdate$outboundSchema.parse(value), "Input validation failed");
132471
132809
  if (!parsed.ok) {
132472
132810
  return [parsed, { status: "invalid" }];
132473
132811
  }
132474
132812
  const payload = parsed.value;
132475
- const body = null;
132476
- const path = pathToFunc("/api/v1/serving/secrets")();
132477
- const query = encodeFormQuery({
132478
- cursor: payload.cursor,
132479
- limit: payload.limit
132480
- });
132813
+ const body = encodeJSON("body", payload, { explode: true });
132814
+ const path = pathToFunc("/api/v1/sandbox/pricing")();
132481
132815
  const headers = new Headers(compactMap({
132482
- Accept: "application/json",
132483
- "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
132816
+ "Content-Type": "application/json",
132817
+ Accept: "application/json"
132484
132818
  }));
132485
132819
  const secConfig = await extractSecurity(client._options.bearerAuth);
132486
132820
  const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
@@ -132488,7 +132822,7 @@ async function $do299(client, request, options) {
132488
132822
  const context = {
132489
132823
  options: client._options,
132490
132824
  baseURL: options?.serverURL ?? client._baseURL ?? "",
132491
- operationID: "listSecrets",
132825
+ operationID: "setSandboxPricing",
132492
132826
  oAuth2Scopes: null,
132493
132827
  resolvedSecurity: requestSecurity,
132494
132828
  securitySource: client._options.bearerAuth,
@@ -132506,11 +132840,10 @@ async function $do299(client, request, options) {
132506
132840
  };
132507
132841
  const requestRes = client._createRequest(context, {
132508
132842
  security: requestSecurity,
132509
- method: "GET",
132843
+ method: "PUT",
132510
132844
  baseURL: options?.serverURL,
132511
132845
  path,
132512
132846
  headers,
132513
- query,
132514
132847
  body,
132515
132848
  userAgent: client._options.userAgent,
132516
132849
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -132532,13 +132865,13 @@ async function $do299(client, request, options) {
132532
132865
  const responseFields = {
132533
132866
  HttpMeta: { Response: response, Request: req }
132534
132867
  };
132535
- const [result] = await match(json(200, PageSecret$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
132868
+ const [result] = await match(json(200, SandboxPricingCard$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
132536
132869
  if (!result.ok) {
132537
132870
  return [result, { status: "complete", request: req, response }];
132538
132871
  }
132539
132872
  return [result, { status: "complete", request: req, response }];
132540
132873
  }
132541
- var init_servingSecretsList = __esm(() => {
132874
+ var init_sandboxSetPricing = __esm(() => {
132542
132875
  init_encodings();
132543
132876
  init_http();
132544
132877
  init_matchers();
@@ -132548,27 +132881,26 @@ var init_servingSecretsList = __esm(() => {
132548
132881
  init_url();
132549
132882
  init_components();
132550
132883
  init_errors4();
132551
- init_operations();
132552
132884
  init_async();
132553
132885
  });
132554
132886
 
132555
- // src/mcp-server/tools/servingSecretsList.ts
132556
- var args290, tool$servingSecretsList;
132557
- var init_servingSecretsList2 = __esm(() => {
132558
- init_servingSecretsList();
132559
- init_operations();
132887
+ // src/mcp-server/tools/sandboxSetPricing.ts
132888
+ var args289, tool$sandboxSetPricing;
132889
+ var init_sandboxSetPricing2 = __esm(() => {
132890
+ init_sandboxSetPricing();
132891
+ init_components();
132560
132892
  init_tools();
132561
- args290 = {
132562
- request: ListSecretsRequest$inboundSchema
132893
+ args289 = {
132894
+ request: SandboxPricingUpdate$inboundSchema
132563
132895
  };
132564
- tool$servingSecretsList = {
132565
- name: "serving-secrets-list",
132566
- description: `List secrets (names only)
132896
+ tool$sandboxSetPricing = {
132897
+ name: "sandbox-set-pricing",
132898
+ description: `Set Sandbox Pricing
132567
132899
 
132568
- List your secrets by name (values are never returned).`,
132569
- args: args290,
132570
- tool: async (client, args291, ctx) => {
132571
- const [result, apiCall] = await servingSecretsList(client, args291.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132900
+ Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.`,
132901
+ args: args289,
132902
+ tool: async (client, args290, ctx) => {
132903
+ const [result, apiCall] = await sandboxSetPricing(client, args290.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132572
132904
  if (!result.ok) {
132573
132905
  return {
132574
132906
  content: [{ type: "text", text: result.error.message }],
@@ -132581,23 +132913,28 @@ List your secrets by name (values are never returned).`,
132581
132913
  };
132582
132914
  });
132583
132915
 
132584
- // src/funcs/servingSpendGet.ts
132585
- function servingSpendGet(client, request, options) {
132586
- return new APIPromise($do300(client, request, options));
132916
+ // src/funcs/sandboxTerminate.ts
132917
+ function sandboxTerminate(client, request, options) {
132918
+ return new APIPromise($do299(client, request, options));
132587
132919
  }
132588
- async function $do300(client, request, options) {
132589
- const parsed = safeParse4(request, (value) => GetServingUsageRequest$outboundSchema.parse(value), "Input validation failed");
132920
+ async function $do299(client, request, options) {
132921
+ const parsed = safeParse4(request, (value) => TerminateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
132590
132922
  if (!parsed.ok) {
132591
132923
  return [parsed, { status: "invalid" }];
132592
132924
  }
132593
132925
  const payload = parsed.value;
132594
- const body = null;
132595
- const path = pathToFunc("/api/v1/serving/usage")();
132596
- const query = encodeFormQuery({
132597
- end: payload.end,
132598
- start: payload.start
132926
+ const body = encodeJSON("body", payload.TerminateSessionRequest, {
132927
+ explode: true
132599
132928
  });
132929
+ const pathParams = {
132930
+ session_id: encodeSimple("session_id", payload.session_id, {
132931
+ explode: false,
132932
+ charEncoding: "percent"
132933
+ })
132934
+ };
132935
+ const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/terminate")(pathParams);
132600
132936
  const headers = new Headers(compactMap({
132937
+ "Content-Type": "application/json",
132601
132938
  Accept: "application/json",
132602
132939
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
132603
132940
  }));
@@ -132607,7 +132944,7 @@ async function $do300(client, request, options) {
132607
132944
  const context = {
132608
132945
  options: client._options,
132609
132946
  baseURL: options?.serverURL ?? client._baseURL ?? "",
132610
- operationID: "getServingUsage",
132947
+ operationID: "terminateSession",
132611
132948
  oAuth2Scopes: null,
132612
132949
  resolvedSecurity: requestSecurity,
132613
132950
  securitySource: client._options.bearerAuth,
@@ -132625,11 +132962,10 @@ async function $do300(client, request, options) {
132625
132962
  };
132626
132963
  const requestRes = client._createRequest(context, {
132627
132964
  security: requestSecurity,
132628
- method: "GET",
132965
+ method: "POST",
132629
132966
  baseURL: options?.serverURL,
132630
132967
  path,
132631
132968
  headers,
132632
- query,
132633
132969
  body,
132634
132970
  userAgent: client._options.userAgent,
132635
132971
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -132651,13 +132987,13 @@ async function $do300(client, request, options) {
132651
132987
  const responseFields = {
132652
132988
  HttpMeta: { Response: response, Request: req }
132653
132989
  };
132654
- const [result] = await match(json(200, SpendSummary$inboundSchema), jsonErr([401, 403], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
132990
+ const [result] = await match(json(200, TerminateSessionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
132655
132991
  if (!result.ok) {
132656
132992
  return [result, { status: "complete", request: req, response }];
132657
132993
  }
132658
132994
  return [result, { status: "complete", request: req, response }];
132659
132995
  }
132660
- var init_servingSpendGet = __esm(() => {
132996
+ var init_sandboxTerminate = __esm(() => {
132661
132997
  init_encodings();
132662
132998
  init_http();
132663
132999
  init_matchers();
@@ -132671,23 +133007,23 @@ var init_servingSpendGet = __esm(() => {
132671
133007
  init_async();
132672
133008
  });
132673
133009
 
132674
- // src/mcp-server/tools/servingSpendGet.ts
132675
- var args291, tool$servingSpendGet;
132676
- var init_servingSpendGet2 = __esm(() => {
132677
- init_servingSpendGet();
133010
+ // src/mcp-server/tools/sandboxTerminate.ts
133011
+ var args290, tool$sandboxTerminate;
133012
+ var init_sandboxTerminate2 = __esm(() => {
133013
+ init_sandboxTerminate();
132678
133014
  init_operations();
132679
133015
  init_tools();
132680
- args291 = {
132681
- request: GetServingUsageRequest$inboundSchema
133016
+ args290 = {
133017
+ request: TerminateSessionRequest$inboundSchema2
132682
133018
  };
132683
- tool$servingSpendGet = {
132684
- name: "serving-spend-get",
132685
- description: `Cost and spend summary
133019
+ tool$sandboxTerminate = {
133020
+ name: "sandbox-terminate",
133021
+ description: `Terminate Session
132686
133022
 
132687
- Aggregate spend for your organization, computed from retained compute ledgers as price × runtime overlap with the requested window. Spend is derived on read and is never stored.`,
132688
- args: args291,
132689
- tool: async (client, args292, ctx) => {
132690
- const [result, apiCall] = await servingSpendGet(client, args292.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
133023
+ Stop a sandbox session and release the backing sandbox resources.`,
133024
+ args: args290,
133025
+ tool: async (client, args291, ctx) => {
133026
+ const [result, apiCall] = await sandboxTerminate(client, args291.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132691
133027
  if (!result.ok) {
132692
133028
  return {
132693
133029
  content: [{ type: "text", text: result.error.message }],
@@ -132700,25 +133036,29 @@ Aggregate spend for your organization, computed from retained compute ledgers as
132700
133036
  };
132701
133037
  });
132702
133038
 
132703
- // src/funcs/servingTenantsGet.ts
132704
- function servingTenantsGet(client, request, options) {
132705
- return new APIPromise($do301(client, request, options));
133039
+ // src/funcs/sandboxUploadArchive.ts
133040
+ function sandboxUploadArchive(client, request, options) {
133041
+ return new APIPromise($do300(client, request, options));
132706
133042
  }
132707
- async function $do301(client, request, options) {
132708
- const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
133043
+ async function $do300(client, request, options) {
133044
+ const parsed = safeParse4(request, (value) => UploadWorkspaceArchiveRequest$outboundSchema.parse(value), "Input validation failed");
132709
133045
  if (!parsed.ok) {
132710
133046
  return [parsed, { status: "invalid" }];
132711
133047
  }
132712
133048
  const payload = parsed.value;
132713
- const body = null;
133049
+ const body = payload.RequestBody instanceof Uint8Array ? new Uint8Array(payload.RequestBody).buffer : payload.RequestBody;
132714
133050
  const pathParams = {
132715
- org_id: encodeSimple("org_id", payload.org_id, {
133051
+ session_id: encodeSimple("session_id", payload.session_id, {
132716
133052
  explode: false,
132717
133053
  charEncoding: "percent"
132718
133054
  })
132719
133055
  };
132720
- const path = pathToFunc("/api/v1/serving/tenants/{org_id}")(pathParams);
133056
+ const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/archive")(pathParams);
133057
+ const query = encodeFormQuery({
133058
+ session_token: payload.session_token
133059
+ });
132721
133060
  const headers = new Headers(compactMap({
133061
+ "Content-Type": "application/zip",
132722
133062
  Accept: "application/json",
132723
133063
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
132724
133064
  }));
@@ -132728,7 +133068,7 @@ async function $do301(client, request, options) {
132728
133068
  const context = {
132729
133069
  options: client._options,
132730
133070
  baseURL: options?.serverURL ?? client._baseURL ?? "",
132731
- operationID: "getServingTenant",
133071
+ operationID: "uploadWorkspaceArchive",
132732
133072
  oAuth2Scopes: null,
132733
133073
  resolvedSecurity: requestSecurity,
132734
133074
  securitySource: client._options.bearerAuth,
@@ -132746,10 +133086,11 @@ async function $do301(client, request, options) {
132746
133086
  };
132747
133087
  const requestRes = client._createRequest(context, {
132748
133088
  security: requestSecurity,
132749
- method: "GET",
133089
+ method: "PUT",
132750
133090
  baseURL: options?.serverURL,
132751
133091
  path,
132752
133092
  headers,
133093
+ query,
132753
133094
  body,
132754
133095
  userAgent: client._options.userAgent,
132755
133096
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -132771,13 +133112,14 @@ async function $do301(client, request, options) {
132771
133112
  const responseFields = {
132772
133113
  HttpMeta: { Response: response, Request: req }
132773
133114
  };
132774
- const [result] = await match(json(200, ServingTenant$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
133115
+ const [result] = await match(json(200, recordType(stringType())), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
132775
133116
  if (!result.ok) {
132776
133117
  return [result, { status: "complete", request: req, response }];
132777
133118
  }
132778
133119
  return [result, { status: "complete", request: req, response }];
132779
133120
  }
132780
- var init_servingTenantsGet = __esm(() => {
133121
+ var init_sandboxUploadArchive = __esm(() => {
133122
+ init_esm();
132781
133123
  init_encodings();
132782
133124
  init_http();
132783
133125
  init_matchers();
@@ -132785,29 +133127,28 @@ var init_servingTenantsGet = __esm(() => {
132785
133127
  init_schemas4();
132786
133128
  init_security();
132787
133129
  init_url();
132788
- init_components();
132789
133130
  init_errors4();
132790
133131
  init_operations();
132791
133132
  init_async();
132792
133133
  });
132793
133134
 
132794
- // src/mcp-server/tools/servingTenantsGet.ts
132795
- var args292, tool$servingTenantsGet;
132796
- var init_servingTenantsGet2 = __esm(() => {
132797
- init_servingTenantsGet();
133135
+ // src/mcp-server/tools/sandboxUploadArchive.ts
133136
+ var args291, tool$sandboxUploadArchive;
133137
+ var init_sandboxUploadArchive2 = __esm(() => {
133138
+ init_sandboxUploadArchive();
132798
133139
  init_operations();
132799
133140
  init_tools();
132800
- args292 = {
132801
- request: GetServingTenantRequest$inboundSchema
133141
+ args291 = {
133142
+ request: UploadWorkspaceArchiveRequest$inboundSchema
132802
133143
  };
132803
- tool$servingTenantsGet = {
132804
- name: "serving-tenants-get",
132805
- description: `Get a serving tenant
133144
+ tool$sandboxUploadArchive = {
133145
+ name: "sandbox-upload-archive",
133146
+ description: `Upload Workspace Archive
132806
133147
 
132807
- Get one organization's serving enablement record. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at \`GET /api/v1/admin/tenants/{org_id}\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
132808
- args: args292,
132809
- tool: async (client, args293, ctx) => {
132810
- const [result, apiCall] = await servingTenantsGet(client, args293.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
133148
+ Upload a zip archive and extract its files into the session workspace.`,
133149
+ args: args291,
133150
+ tool: async (client, args292, ctx) => {
133151
+ const [result, apiCall] = await sandboxUploadArchive(client, args292.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132811
133152
  if (!result.ok) {
132812
133153
  return {
132813
133154
  content: [{ type: "text", text: result.error.message }],
@@ -132820,23 +133161,33 @@ Get one organization's serving enablement record. Cluster administrators only. D
132820
133161
  };
132821
133162
  });
132822
133163
 
132823
- // src/funcs/servingTenantsList.ts
132824
- function servingTenantsList(client, request, options) {
132825
- return new APIPromise($do302(client, request, options));
133164
+ // src/funcs/sandboxUploadFile.ts
133165
+ function sandboxUploadFile(client, request, options) {
133166
+ return new APIPromise($do301(client, request, options));
132826
133167
  }
132827
- async function $do302(client, request, options) {
132828
- const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
133168
+ async function $do301(client, request, options) {
133169
+ const parsed = safeParse4(request, (value) => UploadWorkspaceFileRequest$outboundSchema.parse(value), "Input validation failed");
132829
133170
  if (!parsed.ok) {
132830
133171
  return [parsed, { status: "invalid" }];
132831
133172
  }
132832
133173
  const payload = parsed.value;
132833
- const body = null;
132834
- const path = pathToFunc("/api/v1/serving/tenants")();
133174
+ const body = payload.RequestBody instanceof Uint8Array ? new Uint8Array(payload.RequestBody).buffer : payload.RequestBody;
133175
+ const pathParams = {
133176
+ file_path: encodeSimple("file_path", payload.file_path, {
133177
+ explode: false,
133178
+ charEncoding: "percent"
133179
+ }),
133180
+ session_id: encodeSimple("session_id", payload.session_id, {
133181
+ explode: false,
133182
+ charEncoding: "percent"
133183
+ })
133184
+ };
133185
+ const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/files/{file_path}")(pathParams);
132835
133186
  const query = encodeFormQuery({
132836
- cursor: payload.cursor,
132837
- limit: payload.limit
133187
+ session_token: payload.session_token
132838
133188
  });
132839
133189
  const headers = new Headers(compactMap({
133190
+ "Content-Type": "application/octet-stream",
132840
133191
  Accept: "application/json",
132841
133192
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
132842
133193
  }));
@@ -132846,7 +133197,7 @@ async function $do302(client, request, options) {
132846
133197
  const context = {
132847
133198
  options: client._options,
132848
133199
  baseURL: options?.serverURL ?? client._baseURL ?? "",
132849
- operationID: "listServingTenants",
133200
+ operationID: "uploadWorkspaceFile",
132850
133201
  oAuth2Scopes: null,
132851
133202
  resolvedSecurity: requestSecurity,
132852
133203
  securitySource: client._options.bearerAuth,
@@ -132864,7 +133215,1072 @@ async function $do302(client, request, options) {
132864
133215
  };
132865
133216
  const requestRes = client._createRequest(context, {
132866
133217
  security: requestSecurity,
132867
- method: "GET",
133218
+ method: "PUT",
133219
+ baseURL: options?.serverURL,
133220
+ path,
133221
+ headers,
133222
+ query,
133223
+ body,
133224
+ userAgent: client._options.userAgent,
133225
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
133226
+ }, options);
133227
+ if (!requestRes.ok) {
133228
+ return [requestRes, { status: "invalid" }];
133229
+ }
133230
+ const req = requestRes.value;
133231
+ const doResult = await client._do(req, {
133232
+ context,
133233
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
133234
+ retryConfig: context.retryConfig,
133235
+ retryCodes: context.retryCodes
133236
+ });
133237
+ if (!doResult.ok) {
133238
+ return [doResult, { status: "request-error", request: req }];
133239
+ }
133240
+ const response = doResult.value;
133241
+ const responseFields = {
133242
+ HttpMeta: { Response: response, Request: req }
133243
+ };
133244
+ const [result] = await match(json(200, recordType(stringType())), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
133245
+ if (!result.ok) {
133246
+ return [result, { status: "complete", request: req, response }];
133247
+ }
133248
+ return [result, { status: "complete", request: req, response }];
133249
+ }
133250
+ var init_sandboxUploadFile = __esm(() => {
133251
+ init_esm();
133252
+ init_encodings();
133253
+ init_http();
133254
+ init_matchers();
133255
+ init_primitives();
133256
+ init_schemas4();
133257
+ init_security();
133258
+ init_url();
133259
+ init_errors4();
133260
+ init_operations();
133261
+ init_async();
133262
+ });
133263
+
133264
+ // src/mcp-server/tools/sandboxUploadFile.ts
133265
+ var args292, tool$sandboxUploadFile;
133266
+ var init_sandboxUploadFile2 = __esm(() => {
133267
+ init_sandboxUploadFile();
133268
+ init_operations();
133269
+ init_tools();
133270
+ args292 = {
133271
+ request: UploadWorkspaceFileRequest$inboundSchema
133272
+ };
133273
+ tool$sandboxUploadFile = {
133274
+ name: "sandbox-upload-file",
133275
+ description: `Upload Workspace File
133276
+
133277
+ Upload raw bytes into the session workspace at the given path.`,
133278
+ args: args292,
133279
+ tool: async (client, args293, ctx) => {
133280
+ const [result, apiCall] = await sandboxUploadFile(client, args293.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
133281
+ if (!result.ok) {
133282
+ return {
133283
+ content: [{ type: "text", text: result.error.message }],
133284
+ isError: true
133285
+ };
133286
+ }
133287
+ const value = result.value;
133288
+ return formatResult(value, apiCall);
133289
+ }
133290
+ };
133291
+ });
133292
+
133293
+ // src/funcs/servingAcceleratorsGet.ts
133294
+ function servingAcceleratorsGet(client, request, options) {
133295
+ return new APIPromise($do302(client, request, options));
133296
+ }
133297
+ async function $do302(client, request, options) {
133298
+ const parsed = safeParse4(request, (value) => GetAcceleratorRequest$outboundSchema.parse(value), "Input validation failed");
133299
+ if (!parsed.ok) {
133300
+ return [parsed, { status: "invalid" }];
133301
+ }
133302
+ const payload = parsed.value;
133303
+ const body = null;
133304
+ const pathParams = {
133305
+ name: encodeSimple("name", payload.name, {
133306
+ explode: false,
133307
+ charEncoding: "percent"
133308
+ })
133309
+ };
133310
+ const path = pathToFunc("/api/v1/serving/accelerators/{name}")(pathParams);
133311
+ const headers = new Headers(compactMap({
133312
+ Accept: "application/json",
133313
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
133314
+ }));
133315
+ const secConfig = await extractSecurity(client._options.bearerAuth);
133316
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
133317
+ const requestSecurity = resolveGlobalSecurity(securityInput);
133318
+ const context = {
133319
+ options: client._options,
133320
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
133321
+ operationID: "getAccelerator",
133322
+ oAuth2Scopes: null,
133323
+ resolvedSecurity: requestSecurity,
133324
+ securitySource: client._options.bearerAuth,
133325
+ retryConfig: options?.retries || client._options.retryConfig || {
133326
+ strategy: "backoff",
133327
+ backoff: {
133328
+ initialInterval: 500,
133329
+ maxInterval: 5000,
133330
+ exponent: 1.5,
133331
+ maxElapsedTime: 15000
133332
+ },
133333
+ retryConnectionErrors: true
133334
+ },
133335
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
133336
+ };
133337
+ const requestRes = client._createRequest(context, {
133338
+ security: requestSecurity,
133339
+ method: "GET",
133340
+ baseURL: options?.serverURL,
133341
+ path,
133342
+ headers,
133343
+ body,
133344
+ userAgent: client._options.userAgent,
133345
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
133346
+ }, options);
133347
+ if (!requestRes.ok) {
133348
+ return [requestRes, { status: "invalid" }];
133349
+ }
133350
+ const req = requestRes.value;
133351
+ const doResult = await client._do(req, {
133352
+ context,
133353
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
133354
+ retryConfig: context.retryConfig,
133355
+ retryCodes: context.retryCodes
133356
+ });
133357
+ if (!doResult.ok) {
133358
+ return [doResult, { status: "request-error", request: req }];
133359
+ }
133360
+ const response = doResult.value;
133361
+ const responseFields = {
133362
+ HttpMeta: { Response: response, Request: req }
133363
+ };
133364
+ const [result] = await match(json(200, AcceleratorType$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
133365
+ if (!result.ok) {
133366
+ return [result, { status: "complete", request: req, response }];
133367
+ }
133368
+ return [result, { status: "complete", request: req, response }];
133369
+ }
133370
+ var init_servingAcceleratorsGet = __esm(() => {
133371
+ init_encodings();
133372
+ init_http();
133373
+ init_matchers();
133374
+ init_primitives();
133375
+ init_schemas4();
133376
+ init_security();
133377
+ init_url();
133378
+ init_components();
133379
+ init_errors4();
133380
+ init_operations();
133381
+ init_async();
133382
+ });
133383
+
133384
+ // src/mcp-server/tools/servingAcceleratorsGet.ts
133385
+ var args293, tool$servingAcceleratorsGet;
133386
+ var init_servingAcceleratorsGet2 = __esm(() => {
133387
+ init_servingAcceleratorsGet();
133388
+ init_operations();
133389
+ init_tools();
133390
+ args293 = {
133391
+ request: GetAcceleratorRequest$inboundSchema
133392
+ };
133393
+ tool$servingAcceleratorsGet = {
133394
+ name: "serving-accelerators-get",
133395
+ description: `Get an accelerator type
133396
+
133397
+ Retrieve one accelerator type from the curated catalog, including its workload affinity, placements, and live market fields when available.`,
133398
+ args: args293,
133399
+ tool: async (client, args294, ctx) => {
133400
+ const [result, apiCall] = await servingAcceleratorsGet(client, args294.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
133401
+ if (!result.ok) {
133402
+ return {
133403
+ content: [{ type: "text", text: result.error.message }],
133404
+ isError: true
133405
+ };
133406
+ }
133407
+ const value = result.value;
133408
+ return formatResult(value, apiCall);
133409
+ }
133410
+ };
133411
+ });
133412
+
133413
+ // src/funcs/servingAcceleratorsList.ts
133414
+ function servingAcceleratorsList(client, request, options) {
133415
+ return new APIPromise($do303(client, request, options));
133416
+ }
133417
+ async function $do303(client, request, options) {
133418
+ const parsed = safeParse4(request, (value) => ListAcceleratorsRequest$outboundSchema.parse(value), "Input validation failed");
133419
+ if (!parsed.ok) {
133420
+ return [parsed, { status: "invalid" }];
133421
+ }
133422
+ const payload = parsed.value;
133423
+ const body = null;
133424
+ const path = pathToFunc("/api/v1/serving/accelerators")();
133425
+ const headers = new Headers(compactMap({
133426
+ Accept: "application/json",
133427
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
133428
+ }));
133429
+ const secConfig = await extractSecurity(client._options.bearerAuth);
133430
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
133431
+ const requestSecurity = resolveGlobalSecurity(securityInput);
133432
+ const context = {
133433
+ options: client._options,
133434
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
133435
+ operationID: "listAccelerators",
133436
+ oAuth2Scopes: null,
133437
+ resolvedSecurity: requestSecurity,
133438
+ securitySource: client._options.bearerAuth,
133439
+ retryConfig: options?.retries || client._options.retryConfig || {
133440
+ strategy: "backoff",
133441
+ backoff: {
133442
+ initialInterval: 500,
133443
+ maxInterval: 5000,
133444
+ exponent: 1.5,
133445
+ maxElapsedTime: 15000
133446
+ },
133447
+ retryConnectionErrors: true
133448
+ },
133449
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
133450
+ };
133451
+ const requestRes = client._createRequest(context, {
133452
+ security: requestSecurity,
133453
+ method: "GET",
133454
+ baseURL: options?.serverURL,
133455
+ path,
133456
+ headers,
133457
+ body,
133458
+ userAgent: client._options.userAgent,
133459
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
133460
+ }, options);
133461
+ if (!requestRes.ok) {
133462
+ return [requestRes, { status: "invalid" }];
133463
+ }
133464
+ const req = requestRes.value;
133465
+ const doResult = await client._do(req, {
133466
+ context,
133467
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
133468
+ retryConfig: context.retryConfig,
133469
+ retryCodes: context.retryCodes
133470
+ });
133471
+ if (!doResult.ok) {
133472
+ return [doResult, { status: "request-error", request: req }];
133473
+ }
133474
+ const response = doResult.value;
133475
+ const responseFields = {
133476
+ HttpMeta: { Response: response, Request: req }
133477
+ };
133478
+ const [result] = await match(json(200, PageAcceleratorType$inboundSchema), jsonErr(403, ServingError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
133479
+ if (!result.ok) {
133480
+ return [result, { status: "complete", request: req, response }];
133481
+ }
133482
+ return [result, { status: "complete", request: req, response }];
133483
+ }
133484
+ var init_servingAcceleratorsList = __esm(() => {
133485
+ init_encodings();
133486
+ init_http();
133487
+ init_matchers();
133488
+ init_primitives();
133489
+ init_schemas4();
133490
+ init_security();
133491
+ init_url();
133492
+ init_components();
133493
+ init_errors4();
133494
+ init_operations();
133495
+ init_async();
133496
+ });
133497
+
133498
+ // src/mcp-server/tools/servingAcceleratorsList.ts
133499
+ var args294, tool$servingAcceleratorsList;
133500
+ var init_servingAcceleratorsList2 = __esm(() => {
133501
+ init_servingAcceleratorsList();
133502
+ init_operations();
133503
+ init_tools();
133504
+ args294 = {
133505
+ request: ListAcceleratorsRequest$inboundSchema
133506
+ };
133507
+ tool$servingAcceleratorsList = {
133508
+ name: "serving-accelerators-list",
133509
+ description: `List available accelerator types
133510
+
133511
+ List the accelerator types available to your organization (GPU, NPU, TPU).`,
133512
+ args: args294,
133513
+ tool: async (client, args295, ctx) => {
133514
+ const [result, apiCall] = await servingAcceleratorsList(client, args295.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
133515
+ if (!result.ok) {
133516
+ return {
133517
+ content: [{ type: "text", text: result.error.message }],
133518
+ isError: true
133519
+ };
133520
+ }
133521
+ const value = result.value;
133522
+ return formatResult(value, apiCall);
133523
+ }
133524
+ };
133525
+ });
133526
+
133527
+ // src/funcs/servingSecretsCreate.ts
133528
+ function servingSecretsCreate(client, request, options) {
133529
+ return new APIPromise($do304(client, request, options));
133530
+ }
133531
+ async function $do304(client, request, options) {
133532
+ const parsed = safeParse4(request, (value) => CreateSecretRequest$outboundSchema.parse(value), "Input validation failed");
133533
+ if (!parsed.ok) {
133534
+ return [parsed, { status: "invalid" }];
133535
+ }
133536
+ const payload = parsed.value;
133537
+ const body = encodeJSON("body", payload.SecretCreate, { explode: true });
133538
+ const path = pathToFunc("/api/v1/serving/secrets")();
133539
+ const headers = new Headers(compactMap({
133540
+ "Content-Type": "application/json",
133541
+ Accept: "application/json",
133542
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
133543
+ }));
133544
+ const secConfig = await extractSecurity(client._options.bearerAuth);
133545
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
133546
+ const requestSecurity = resolveGlobalSecurity(securityInput);
133547
+ const context = {
133548
+ options: client._options,
133549
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
133550
+ operationID: "createSecret",
133551
+ oAuth2Scopes: null,
133552
+ resolvedSecurity: requestSecurity,
133553
+ securitySource: client._options.bearerAuth,
133554
+ retryConfig: options?.retries || client._options.retryConfig || {
133555
+ strategy: "backoff",
133556
+ backoff: {
133557
+ initialInterval: 500,
133558
+ maxInterval: 5000,
133559
+ exponent: 1.5,
133560
+ maxElapsedTime: 15000
133561
+ },
133562
+ retryConnectionErrors: true
133563
+ },
133564
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
133565
+ };
133566
+ const requestRes = client._createRequest(context, {
133567
+ security: requestSecurity,
133568
+ method: "POST",
133569
+ baseURL: options?.serverURL,
133570
+ path,
133571
+ headers,
133572
+ body,
133573
+ userAgent: client._options.userAgent,
133574
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
133575
+ }, options);
133576
+ if (!requestRes.ok) {
133577
+ return [requestRes, { status: "invalid" }];
133578
+ }
133579
+ const req = requestRes.value;
133580
+ const doResult = await client._do(req, {
133581
+ context,
133582
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
133583
+ retryConfig: context.retryConfig,
133584
+ retryCodes: context.retryCodes
133585
+ });
133586
+ if (!doResult.ok) {
133587
+ return [doResult, { status: "request-error", request: req }];
133588
+ }
133589
+ const response = doResult.value;
133590
+ const responseFields = {
133591
+ HttpMeta: { Response: response, Request: req }
133592
+ };
133593
+ const [result] = await match(json(201, Secret$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
133594
+ if (!result.ok) {
133595
+ return [result, { status: "complete", request: req, response }];
133596
+ }
133597
+ return [result, { status: "complete", request: req, response }];
133598
+ }
133599
+ var init_servingSecretsCreate = __esm(() => {
133600
+ init_encodings();
133601
+ init_http();
133602
+ init_matchers();
133603
+ init_primitives();
133604
+ init_schemas4();
133605
+ init_security();
133606
+ init_url();
133607
+ init_components();
133608
+ init_errors4();
133609
+ init_operations();
133610
+ init_async();
133611
+ });
133612
+
133613
+ // src/mcp-server/tools/servingSecretsCreate.ts
133614
+ var args295, tool$servingSecretsCreate;
133615
+ var init_servingSecretsCreate2 = __esm(() => {
133616
+ init_servingSecretsCreate();
133617
+ init_operations();
133618
+ init_tools();
133619
+ args295 = {
133620
+ request: CreateSecretRequest$inboundSchema
133621
+ };
133622
+ tool$servingSecretsCreate = {
133623
+ name: "serving-secrets-create",
133624
+ description: `Create a secret
133625
+
133626
+ Create a secret whose values are injected into your workloads as env vars.`,
133627
+ args: args295,
133628
+ tool: async (client, args296, ctx) => {
133629
+ const [result, apiCall] = await servingSecretsCreate(client, args296.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
133630
+ if (!result.ok) {
133631
+ return {
133632
+ content: [{ type: "text", text: result.error.message }],
133633
+ isError: true
133634
+ };
133635
+ }
133636
+ const value = result.value;
133637
+ return formatResult(value, apiCall);
133638
+ }
133639
+ };
133640
+ });
133641
+
133642
+ // src/funcs/servingSecretsDelete.ts
133643
+ function servingSecretsDelete(client, request, options) {
133644
+ return new APIPromise($do305(client, request, options));
133645
+ }
133646
+ async function $do305(client, request, options) {
133647
+ const parsed = safeParse4(request, (value) => DeleteSecretRequest$outboundSchema.parse(value), "Input validation failed");
133648
+ if (!parsed.ok) {
133649
+ return [parsed, { status: "invalid" }];
133650
+ }
133651
+ const payload = parsed.value;
133652
+ const body = null;
133653
+ const pathParams = {
133654
+ secret_id: encodeSimple("secret_id", payload.secret_id, {
133655
+ explode: false,
133656
+ charEncoding: "percent"
133657
+ })
133658
+ };
133659
+ const path = pathToFunc("/api/v1/serving/secrets/{secret_id}")(pathParams);
133660
+ const headers = new Headers(compactMap({
133661
+ Accept: "application/json",
133662
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
133663
+ }));
133664
+ const secConfig = await extractSecurity(client._options.bearerAuth);
133665
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
133666
+ const requestSecurity = resolveGlobalSecurity(securityInput);
133667
+ const context = {
133668
+ options: client._options,
133669
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
133670
+ operationID: "deleteSecret",
133671
+ oAuth2Scopes: null,
133672
+ resolvedSecurity: requestSecurity,
133673
+ securitySource: client._options.bearerAuth,
133674
+ retryConfig: options?.retries || client._options.retryConfig || {
133675
+ strategy: "backoff",
133676
+ backoff: {
133677
+ initialInterval: 500,
133678
+ maxInterval: 5000,
133679
+ exponent: 1.5,
133680
+ maxElapsedTime: 15000
133681
+ },
133682
+ retryConnectionErrors: true
133683
+ },
133684
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
133685
+ };
133686
+ const requestRes = client._createRequest(context, {
133687
+ security: requestSecurity,
133688
+ method: "DELETE",
133689
+ baseURL: options?.serverURL,
133690
+ path,
133691
+ headers,
133692
+ body,
133693
+ userAgent: client._options.userAgent,
133694
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
133695
+ }, options);
133696
+ if (!requestRes.ok) {
133697
+ return [requestRes, { status: "invalid" }];
133698
+ }
133699
+ const req = requestRes.value;
133700
+ const doResult = await client._do(req, {
133701
+ context,
133702
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
133703
+ retryConfig: context.retryConfig,
133704
+ retryCodes: context.retryCodes
133705
+ });
133706
+ if (!doResult.ok) {
133707
+ return [doResult, { status: "request-error", request: req }];
133708
+ }
133709
+ const response = doResult.value;
133710
+ const responseFields = {
133711
+ HttpMeta: { Response: response, Request: req }
133712
+ };
133713
+ const [result] = await match(nil(204, voidType()), jsonErr([403, 404, 409], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
133714
+ if (!result.ok) {
133715
+ return [result, { status: "complete", request: req, response }];
133716
+ }
133717
+ return [result, { status: "complete", request: req, response }];
133718
+ }
133719
+ var init_servingSecretsDelete = __esm(() => {
133720
+ init_esm();
133721
+ init_encodings();
133722
+ init_http();
133723
+ init_matchers();
133724
+ init_primitives();
133725
+ init_schemas4();
133726
+ init_security();
133727
+ init_url();
133728
+ init_errors4();
133729
+ init_operations();
133730
+ init_async();
133731
+ });
133732
+
133733
+ // src/mcp-server/tools/servingSecretsDelete.ts
133734
+ var args296, tool$servingSecretsDelete;
133735
+ var init_servingSecretsDelete2 = __esm(() => {
133736
+ init_servingSecretsDelete();
133737
+ init_operations();
133738
+ init_tools();
133739
+ args296 = {
133740
+ request: DeleteSecretRequest$inboundSchema
133741
+ };
133742
+ tool$servingSecretsDelete = {
133743
+ name: "serving-secrets-delete",
133744
+ description: `Delete a secret
133745
+
133746
+ Delete a secret.`,
133747
+ args: args296,
133748
+ tool: async (client, args297, ctx) => {
133749
+ const [result, apiCall] = await servingSecretsDelete(client, args297.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
133750
+ if (!result.ok) {
133751
+ return {
133752
+ content: [{ type: "text", text: result.error.message }],
133753
+ isError: true
133754
+ };
133755
+ }
133756
+ return formatResult(undefined, apiCall);
133757
+ }
133758
+ };
133759
+ });
133760
+
133761
+ // src/funcs/servingSecretsGet.ts
133762
+ function servingSecretsGet(client, request, options) {
133763
+ return new APIPromise($do306(client, request, options));
133764
+ }
133765
+ async function $do306(client, request, options) {
133766
+ const parsed = safeParse4(request, (value) => GetSecretRequest$outboundSchema.parse(value), "Input validation failed");
133767
+ if (!parsed.ok) {
133768
+ return [parsed, { status: "invalid" }];
133769
+ }
133770
+ const payload = parsed.value;
133771
+ const body = null;
133772
+ const pathParams = {
133773
+ secret_id: encodeSimple("secret_id", payload.secret_id, {
133774
+ explode: false,
133775
+ charEncoding: "percent"
133776
+ })
133777
+ };
133778
+ const path = pathToFunc("/api/v1/serving/secrets/{secret_id}")(pathParams);
133779
+ const headers = new Headers(compactMap({
133780
+ Accept: "application/json",
133781
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
133782
+ }));
133783
+ const secConfig = await extractSecurity(client._options.bearerAuth);
133784
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
133785
+ const requestSecurity = resolveGlobalSecurity(securityInput);
133786
+ const context = {
133787
+ options: client._options,
133788
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
133789
+ operationID: "getSecret",
133790
+ oAuth2Scopes: null,
133791
+ resolvedSecurity: requestSecurity,
133792
+ securitySource: client._options.bearerAuth,
133793
+ retryConfig: options?.retries || client._options.retryConfig || {
133794
+ strategy: "backoff",
133795
+ backoff: {
133796
+ initialInterval: 500,
133797
+ maxInterval: 5000,
133798
+ exponent: 1.5,
133799
+ maxElapsedTime: 15000
133800
+ },
133801
+ retryConnectionErrors: true
133802
+ },
133803
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
133804
+ };
133805
+ const requestRes = client._createRequest(context, {
133806
+ security: requestSecurity,
133807
+ method: "GET",
133808
+ baseURL: options?.serverURL,
133809
+ path,
133810
+ headers,
133811
+ body,
133812
+ userAgent: client._options.userAgent,
133813
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
133814
+ }, options);
133815
+ if (!requestRes.ok) {
133816
+ return [requestRes, { status: "invalid" }];
133817
+ }
133818
+ const req = requestRes.value;
133819
+ const doResult = await client._do(req, {
133820
+ context,
133821
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
133822
+ retryConfig: context.retryConfig,
133823
+ retryCodes: context.retryCodes
133824
+ });
133825
+ if (!doResult.ok) {
133826
+ return [doResult, { status: "request-error", request: req }];
133827
+ }
133828
+ const response = doResult.value;
133829
+ const responseFields = {
133830
+ HttpMeta: { Response: response, Request: req }
133831
+ };
133832
+ const [result] = await match(json(200, Secret$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
133833
+ if (!result.ok) {
133834
+ return [result, { status: "complete", request: req, response }];
133835
+ }
133836
+ return [result, { status: "complete", request: req, response }];
133837
+ }
133838
+ var init_servingSecretsGet = __esm(() => {
133839
+ init_encodings();
133840
+ init_http();
133841
+ init_matchers();
133842
+ init_primitives();
133843
+ init_schemas4();
133844
+ init_security();
133845
+ init_url();
133846
+ init_components();
133847
+ init_errors4();
133848
+ init_operations();
133849
+ init_async();
133850
+ });
133851
+
133852
+ // src/mcp-server/tools/servingSecretsGet.ts
133853
+ var args297, tool$servingSecretsGet;
133854
+ var init_servingSecretsGet2 = __esm(() => {
133855
+ init_servingSecretsGet();
133856
+ init_operations();
133857
+ init_tools();
133858
+ args297 = {
133859
+ request: GetSecretRequest$inboundSchema
133860
+ };
133861
+ tool$servingSecretsGet = {
133862
+ name: "serving-secrets-get",
133863
+ description: `Get a secret
133864
+
133865
+ Retrieve secret metadata: key names and allowed use. Values are never returned.`,
133866
+ args: args297,
133867
+ tool: async (client, args298, ctx) => {
133868
+ const [result, apiCall] = await servingSecretsGet(client, args298.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
133869
+ if (!result.ok) {
133870
+ return {
133871
+ content: [{ type: "text", text: result.error.message }],
133872
+ isError: true
133873
+ };
133874
+ }
133875
+ const value = result.value;
133876
+ return formatResult(value, apiCall);
133877
+ }
133878
+ };
133879
+ });
133880
+
133881
+ // src/funcs/servingSecretsList.ts
133882
+ function servingSecretsList(client, request, options) {
133883
+ return new APIPromise($do307(client, request, options));
133884
+ }
133885
+ async function $do307(client, request, options) {
133886
+ const parsed = safeParse4(request, (value) => ListSecretsRequest$outboundSchema.parse(value), "Input validation failed");
133887
+ if (!parsed.ok) {
133888
+ return [parsed, { status: "invalid" }];
133889
+ }
133890
+ const payload = parsed.value;
133891
+ const body = null;
133892
+ const path = pathToFunc("/api/v1/serving/secrets")();
133893
+ const query = encodeFormQuery({
133894
+ cursor: payload.cursor,
133895
+ limit: payload.limit
133896
+ });
133897
+ const headers = new Headers(compactMap({
133898
+ Accept: "application/json",
133899
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
133900
+ }));
133901
+ const secConfig = await extractSecurity(client._options.bearerAuth);
133902
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
133903
+ const requestSecurity = resolveGlobalSecurity(securityInput);
133904
+ const context = {
133905
+ options: client._options,
133906
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
133907
+ operationID: "listSecrets",
133908
+ oAuth2Scopes: null,
133909
+ resolvedSecurity: requestSecurity,
133910
+ securitySource: client._options.bearerAuth,
133911
+ retryConfig: options?.retries || client._options.retryConfig || {
133912
+ strategy: "backoff",
133913
+ backoff: {
133914
+ initialInterval: 500,
133915
+ maxInterval: 5000,
133916
+ exponent: 1.5,
133917
+ maxElapsedTime: 15000
133918
+ },
133919
+ retryConnectionErrors: true
133920
+ },
133921
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
133922
+ };
133923
+ const requestRes = client._createRequest(context, {
133924
+ security: requestSecurity,
133925
+ method: "GET",
133926
+ baseURL: options?.serverURL,
133927
+ path,
133928
+ headers,
133929
+ query,
133930
+ body,
133931
+ userAgent: client._options.userAgent,
133932
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
133933
+ }, options);
133934
+ if (!requestRes.ok) {
133935
+ return [requestRes, { status: "invalid" }];
133936
+ }
133937
+ const req = requestRes.value;
133938
+ const doResult = await client._do(req, {
133939
+ context,
133940
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
133941
+ retryConfig: context.retryConfig,
133942
+ retryCodes: context.retryCodes
133943
+ });
133944
+ if (!doResult.ok) {
133945
+ return [doResult, { status: "request-error", request: req }];
133946
+ }
133947
+ const response = doResult.value;
133948
+ const responseFields = {
133949
+ HttpMeta: { Response: response, Request: req }
133950
+ };
133951
+ const [result] = await match(json(200, PageSecret$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
133952
+ if (!result.ok) {
133953
+ return [result, { status: "complete", request: req, response }];
133954
+ }
133955
+ return [result, { status: "complete", request: req, response }];
133956
+ }
133957
+ var init_servingSecretsList = __esm(() => {
133958
+ init_encodings();
133959
+ init_http();
133960
+ init_matchers();
133961
+ init_primitives();
133962
+ init_schemas4();
133963
+ init_security();
133964
+ init_url();
133965
+ init_components();
133966
+ init_errors4();
133967
+ init_operations();
133968
+ init_async();
133969
+ });
133970
+
133971
+ // src/mcp-server/tools/servingSecretsList.ts
133972
+ var args298, tool$servingSecretsList;
133973
+ var init_servingSecretsList2 = __esm(() => {
133974
+ init_servingSecretsList();
133975
+ init_operations();
133976
+ init_tools();
133977
+ args298 = {
133978
+ request: ListSecretsRequest$inboundSchema
133979
+ };
133980
+ tool$servingSecretsList = {
133981
+ name: "serving-secrets-list",
133982
+ description: `List secrets (names only)
133983
+
133984
+ List your secrets by name (values are never returned).`,
133985
+ args: args298,
133986
+ tool: async (client, args299, ctx) => {
133987
+ const [result, apiCall] = await servingSecretsList(client, args299.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
133988
+ if (!result.ok) {
133989
+ return {
133990
+ content: [{ type: "text", text: result.error.message }],
133991
+ isError: true
133992
+ };
133993
+ }
133994
+ const value = result.value;
133995
+ return formatResult(value, apiCall);
133996
+ }
133997
+ };
133998
+ });
133999
+
134000
+ // src/funcs/servingSpendGet.ts
134001
+ function servingSpendGet(client, request, options) {
134002
+ return new APIPromise($do308(client, request, options));
134003
+ }
134004
+ async function $do308(client, request, options) {
134005
+ const parsed = safeParse4(request, (value) => GetServingUsageRequest$outboundSchema.parse(value), "Input validation failed");
134006
+ if (!parsed.ok) {
134007
+ return [parsed, { status: "invalid" }];
134008
+ }
134009
+ const payload = parsed.value;
134010
+ const body = null;
134011
+ const path = pathToFunc("/api/v1/serving/usage")();
134012
+ const query = encodeFormQuery({
134013
+ end: payload.end,
134014
+ start: payload.start
134015
+ });
134016
+ const headers = new Headers(compactMap({
134017
+ Accept: "application/json",
134018
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
134019
+ }));
134020
+ const secConfig = await extractSecurity(client._options.bearerAuth);
134021
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
134022
+ const requestSecurity = resolveGlobalSecurity(securityInput);
134023
+ const context = {
134024
+ options: client._options,
134025
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
134026
+ operationID: "getServingUsage",
134027
+ oAuth2Scopes: null,
134028
+ resolvedSecurity: requestSecurity,
134029
+ securitySource: client._options.bearerAuth,
134030
+ retryConfig: options?.retries || client._options.retryConfig || {
134031
+ strategy: "backoff",
134032
+ backoff: {
134033
+ initialInterval: 500,
134034
+ maxInterval: 5000,
134035
+ exponent: 1.5,
134036
+ maxElapsedTime: 15000
134037
+ },
134038
+ retryConnectionErrors: true
134039
+ },
134040
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
134041
+ };
134042
+ const requestRes = client._createRequest(context, {
134043
+ security: requestSecurity,
134044
+ method: "GET",
134045
+ baseURL: options?.serverURL,
134046
+ path,
134047
+ headers,
134048
+ query,
134049
+ body,
134050
+ userAgent: client._options.userAgent,
134051
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
134052
+ }, options);
134053
+ if (!requestRes.ok) {
134054
+ return [requestRes, { status: "invalid" }];
134055
+ }
134056
+ const req = requestRes.value;
134057
+ const doResult = await client._do(req, {
134058
+ context,
134059
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
134060
+ retryConfig: context.retryConfig,
134061
+ retryCodes: context.retryCodes
134062
+ });
134063
+ if (!doResult.ok) {
134064
+ return [doResult, { status: "request-error", request: req }];
134065
+ }
134066
+ const response = doResult.value;
134067
+ const responseFields = {
134068
+ HttpMeta: { Response: response, Request: req }
134069
+ };
134070
+ const [result] = await match(json(200, SpendSummary$inboundSchema), jsonErr([401, 403], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
134071
+ if (!result.ok) {
134072
+ return [result, { status: "complete", request: req, response }];
134073
+ }
134074
+ return [result, { status: "complete", request: req, response }];
134075
+ }
134076
+ var init_servingSpendGet = __esm(() => {
134077
+ init_encodings();
134078
+ init_http();
134079
+ init_matchers();
134080
+ init_primitives();
134081
+ init_schemas4();
134082
+ init_security();
134083
+ init_url();
134084
+ init_components();
134085
+ init_errors4();
134086
+ init_operations();
134087
+ init_async();
134088
+ });
134089
+
134090
+ // src/mcp-server/tools/servingSpendGet.ts
134091
+ var args299, tool$servingSpendGet;
134092
+ var init_servingSpendGet2 = __esm(() => {
134093
+ init_servingSpendGet();
134094
+ init_operations();
134095
+ init_tools();
134096
+ args299 = {
134097
+ request: GetServingUsageRequest$inboundSchema
134098
+ };
134099
+ tool$servingSpendGet = {
134100
+ name: "serving-spend-get",
134101
+ description: `Cost and spend summary
134102
+
134103
+ Aggregate spend for your organization, computed from retained compute ledgers as price × runtime overlap with the requested window. Spend is derived on read and is never stored.`,
134104
+ args: args299,
134105
+ tool: async (client, args300, ctx) => {
134106
+ const [result, apiCall] = await servingSpendGet(client, args300.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
134107
+ if (!result.ok) {
134108
+ return {
134109
+ content: [{ type: "text", text: result.error.message }],
134110
+ isError: true
134111
+ };
134112
+ }
134113
+ const value = result.value;
134114
+ return formatResult(value, apiCall);
134115
+ }
134116
+ };
134117
+ });
134118
+
134119
+ // src/funcs/servingTenantsGet.ts
134120
+ function servingTenantsGet(client, request, options) {
134121
+ return new APIPromise($do309(client, request, options));
134122
+ }
134123
+ async function $do309(client, request, options) {
134124
+ const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
134125
+ if (!parsed.ok) {
134126
+ return [parsed, { status: "invalid" }];
134127
+ }
134128
+ const payload = parsed.value;
134129
+ const body = null;
134130
+ const pathParams = {
134131
+ org_id: encodeSimple("org_id", payload.org_id, {
134132
+ explode: false,
134133
+ charEncoding: "percent"
134134
+ })
134135
+ };
134136
+ const path = pathToFunc("/api/v1/serving/tenants/{org_id}")(pathParams);
134137
+ const headers = new Headers(compactMap({
134138
+ Accept: "application/json",
134139
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
134140
+ }));
134141
+ const secConfig = await extractSecurity(client._options.bearerAuth);
134142
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
134143
+ const requestSecurity = resolveGlobalSecurity(securityInput);
134144
+ const context = {
134145
+ options: client._options,
134146
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
134147
+ operationID: "getServingTenant",
134148
+ oAuth2Scopes: null,
134149
+ resolvedSecurity: requestSecurity,
134150
+ securitySource: client._options.bearerAuth,
134151
+ retryConfig: options?.retries || client._options.retryConfig || {
134152
+ strategy: "backoff",
134153
+ backoff: {
134154
+ initialInterval: 500,
134155
+ maxInterval: 5000,
134156
+ exponent: 1.5,
134157
+ maxElapsedTime: 15000
134158
+ },
134159
+ retryConnectionErrors: true
134160
+ },
134161
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
134162
+ };
134163
+ const requestRes = client._createRequest(context, {
134164
+ security: requestSecurity,
134165
+ method: "GET",
134166
+ baseURL: options?.serverURL,
134167
+ path,
134168
+ headers,
134169
+ body,
134170
+ userAgent: client._options.userAgent,
134171
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
134172
+ }, options);
134173
+ if (!requestRes.ok) {
134174
+ return [requestRes, { status: "invalid" }];
134175
+ }
134176
+ const req = requestRes.value;
134177
+ const doResult = await client._do(req, {
134178
+ context,
134179
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
134180
+ retryConfig: context.retryConfig,
134181
+ retryCodes: context.retryCodes
134182
+ });
134183
+ if (!doResult.ok) {
134184
+ return [doResult, { status: "request-error", request: req }];
134185
+ }
134186
+ const response = doResult.value;
134187
+ const responseFields = {
134188
+ HttpMeta: { Response: response, Request: req }
134189
+ };
134190
+ const [result] = await match(json(200, ServingTenant$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
134191
+ if (!result.ok) {
134192
+ return [result, { status: "complete", request: req, response }];
134193
+ }
134194
+ return [result, { status: "complete", request: req, response }];
134195
+ }
134196
+ var init_servingTenantsGet = __esm(() => {
134197
+ init_encodings();
134198
+ init_http();
134199
+ init_matchers();
134200
+ init_primitives();
134201
+ init_schemas4();
134202
+ init_security();
134203
+ init_url();
134204
+ init_components();
134205
+ init_errors4();
134206
+ init_operations();
134207
+ init_async();
134208
+ });
134209
+
134210
+ // src/mcp-server/tools/servingTenantsGet.ts
134211
+ var args300, tool$servingTenantsGet;
134212
+ var init_servingTenantsGet2 = __esm(() => {
134213
+ init_servingTenantsGet();
134214
+ init_operations();
134215
+ init_tools();
134216
+ args300 = {
134217
+ request: GetServingTenantRequest$inboundSchema
134218
+ };
134219
+ tool$servingTenantsGet = {
134220
+ name: "serving-tenants-get",
134221
+ description: `Get a serving tenant
134222
+
134223
+ Get one organization's serving enablement record. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at \`GET /api/v1/admin/tenants/{org_id}\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
134224
+ args: args300,
134225
+ tool: async (client, args301, ctx) => {
134226
+ const [result, apiCall] = await servingTenantsGet(client, args301.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
134227
+ if (!result.ok) {
134228
+ return {
134229
+ content: [{ type: "text", text: result.error.message }],
134230
+ isError: true
134231
+ };
134232
+ }
134233
+ const value = result.value;
134234
+ return formatResult(value, apiCall);
134235
+ }
134236
+ };
134237
+ });
134238
+
134239
+ // src/funcs/servingTenantsList.ts
134240
+ function servingTenantsList(client, request, options) {
134241
+ return new APIPromise($do310(client, request, options));
134242
+ }
134243
+ async function $do310(client, request, options) {
134244
+ const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
134245
+ if (!parsed.ok) {
134246
+ return [parsed, { status: "invalid" }];
134247
+ }
134248
+ const payload = parsed.value;
134249
+ const body = null;
134250
+ const path = pathToFunc("/api/v1/serving/tenants")();
134251
+ const query = encodeFormQuery({
134252
+ cursor: payload.cursor,
134253
+ limit: payload.limit
134254
+ });
134255
+ const headers = new Headers(compactMap({
134256
+ Accept: "application/json",
134257
+ "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
134258
+ }));
134259
+ const secConfig = await extractSecurity(client._options.bearerAuth);
134260
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
134261
+ const requestSecurity = resolveGlobalSecurity(securityInput);
134262
+ const context = {
134263
+ options: client._options,
134264
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
134265
+ operationID: "listServingTenants",
134266
+ oAuth2Scopes: null,
134267
+ resolvedSecurity: requestSecurity,
134268
+ securitySource: client._options.bearerAuth,
134269
+ retryConfig: options?.retries || client._options.retryConfig || {
134270
+ strategy: "backoff",
134271
+ backoff: {
134272
+ initialInterval: 500,
134273
+ maxInterval: 5000,
134274
+ exponent: 1.5,
134275
+ maxElapsedTime: 15000
134276
+ },
134277
+ retryConnectionErrors: true
134278
+ },
134279
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
134280
+ };
134281
+ const requestRes = client._createRequest(context, {
134282
+ security: requestSecurity,
134283
+ method: "GET",
132868
134284
  baseURL: options?.serverURL,
132869
134285
  path,
132870
134286
  headers,
@@ -132911,12 +134327,12 @@ var init_servingTenantsList = __esm(() => {
132911
134327
  });
132912
134328
 
132913
134329
  // src/mcp-server/tools/servingTenantsList.ts
132914
- var args293, tool$servingTenantsList;
134330
+ var args301, tool$servingTenantsList;
132915
134331
  var init_servingTenantsList2 = __esm(() => {
132916
134332
  init_servingTenantsList();
132917
134333
  init_operations();
132918
134334
  init_tools();
132919
- args293 = {
134335
+ args301 = {
132920
134336
  request: ListServingTenantsRequest$inboundSchema
132921
134337
  };
132922
134338
  tool$servingTenantsList = {
@@ -132924,9 +134340,9 @@ var init_servingTenantsList2 = __esm(() => {
132924
134340
  description: `List serving tenants
132925
134341
 
132926
134342
  List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned. Deprecated: this operation has moved to the operator admin plane at \`GET /api/v1/admin/tenants\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
132927
- args: args293,
132928
- tool: async (client, args294, ctx) => {
132929
- const [result, apiCall] = await servingTenantsList(client, args294.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
134343
+ args: args301,
134344
+ tool: async (client, args302, ctx) => {
134345
+ const [result, apiCall] = await servingTenantsList(client, args302.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
132930
134346
  if (!result.ok) {
132931
134347
  return {
132932
134348
  content: [{ type: "text", text: result.error.message }],
@@ -132941,9 +134357,9 @@ List organization-wide serving enablement records. Cluster administrators only;
132941
134357
 
132942
134358
  // src/funcs/servingTenantsSet.ts
132943
134359
  function servingTenantsSet(client, request, options) {
132944
- return new APIPromise($do303(client, request, options));
134360
+ return new APIPromise($do311(client, request, options));
132945
134361
  }
132946
- async function $do303(client, request, options) {
134362
+ async function $do311(client, request, options) {
132947
134363
  const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
132948
134364
  if (!parsed.ok) {
132949
134365
  return [parsed, { status: "invalid" }];
@@ -133032,12 +134448,12 @@ var init_servingTenantsSet = __esm(() => {
133032
134448
  });
133033
134449
 
133034
134450
  // src/mcp-server/tools/servingTenantsSet.ts
133035
- var args294, tool$servingTenantsSet;
134451
+ var args302, tool$servingTenantsSet;
133036
134452
  var init_servingTenantsSet2 = __esm(() => {
133037
134453
  init_servingTenantsSet();
133038
134454
  init_operations();
133039
134455
  init_tools();
133040
- args294 = {
134456
+ args302 = {
133041
134457
  request: SetServingTenantRequest$inboundSchema
133042
134458
  };
133043
134459
  tool$servingTenantsSet = {
@@ -133045,9 +134461,9 @@ var init_servingTenantsSet2 = __esm(() => {
133045
134461
  description: `Set serving tenant enablement
133046
134462
 
133047
134463
  Enable or disable serving for an organization and all of its teams. Disabling blocks product API access but does not stop existing workloads or callbacks. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at \`PUT /api/v1/admin/tenants/{org_id}\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
133048
- args: args294,
133049
- tool: async (client, args295, ctx) => {
133050
- const [result, apiCall] = await servingTenantsSet(client, args295.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
134464
+ args: args302,
134465
+ tool: async (client, args303, ctx) => {
134466
+ const [result, apiCall] = await servingTenantsSet(client, args303.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
133051
134467
  if (!result.ok) {
133052
134468
  return {
133053
134469
  content: [{ type: "text", text: result.error.message }],
@@ -133062,9 +134478,9 @@ Enable or disable serving for an organization and all of its teams. Disabling bl
133062
134478
 
133063
134479
  // src/funcs/usageCosts.ts
133064
134480
  function usageCosts(client, request, options) {
133065
- return new APIPromise($do304(client, request, options));
134481
+ return new APIPromise($do312(client, request, options));
133066
134482
  }
133067
- async function $do304(client, request, options) {
134483
+ async function $do312(client, request, options) {
133068
134484
  const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
133069
134485
  if (!parsed.ok) {
133070
134486
  return [parsed, { status: "invalid" }];
@@ -133147,12 +134563,12 @@ var init_usageCosts = __esm(() => {
133147
134563
  });
133148
134564
 
133149
134565
  // src/mcp-server/tools/usageCosts.ts
133150
- var args295, tool$usageCosts;
134566
+ var args303, tool$usageCosts;
133151
134567
  var init_usageCosts2 = __esm(() => {
133152
134568
  init_usageCosts();
133153
134569
  init_operations();
133154
134570
  init_tools();
133155
- args295 = {
134571
+ args303 = {
133156
134572
  request: GetCostsRequest$inboundSchema
133157
134573
  };
133158
134574
  tool$usageCosts = {
@@ -133160,9 +134576,9 @@ var init_usageCosts2 = __esm(() => {
133160
134576
  description: `Aggregate cost by dimension
133161
134577
 
133162
134578
  Sums stored per-entry cost over [start_time, end_time), grouped by any of service, task_type, model, api_key_id, team_id, user_id, external_user_id, org_id. Point-in-time correct for chargeback/showback.`,
133163
- args: args295,
133164
- tool: async (client, args296, ctx) => {
133165
- const [result, apiCall] = await usageCosts(client, args296.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
134579
+ args: args303,
134580
+ tool: async (client, args304, ctx) => {
134581
+ const [result, apiCall] = await usageCosts(client, args304.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
133166
134582
  if (!result.ok) {
133167
134583
  return {
133168
134584
  content: [{ type: "text", text: result.error.message }],
@@ -133177,9 +134593,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
133177
134593
 
133178
134594
  // src/funcs/usageSandbox.ts
133179
134595
  function usageSandbox(client, request, options) {
133180
- return new APIPromise($do305(client, request, options));
134596
+ return new APIPromise($do313(client, request, options));
133181
134597
  }
133182
- async function $do305(client, request, options) {
134598
+ async function $do313(client, request, options) {
133183
134599
  const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
133184
134600
  if (!parsed.ok) {
133185
134601
  return [parsed, { status: "invalid" }];
@@ -133270,12 +134686,12 @@ var init_usageSandbox = __esm(() => {
133270
134686
  });
133271
134687
 
133272
134688
  // src/mcp-server/tools/usageSandbox.ts
133273
- var args296, tool$usageSandbox;
134689
+ var args304, tool$usageSandbox;
133274
134690
  var init_usageSandbox2 = __esm(() => {
133275
134691
  init_usageSandbox();
133276
134692
  init_operations();
133277
134693
  init_tools();
133278
- args296 = {
134694
+ args304 = {
133279
134695
  request: GetSandboxUsageRequest$inboundSchema
133280
134696
  };
133281
134697
  tool$usageSandbox = {
@@ -133283,9 +134699,9 @@ var init_usageSandbox2 = __esm(() => {
133283
134699
  description: `Get Sandbox Usage
133284
134700
 
133285
134701
  Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
133286
- args: args296,
133287
- tool: async (client, args297, ctx) => {
133288
- const [result, apiCall] = await usageSandbox(client, args297.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
134702
+ args: args304,
134703
+ tool: async (client, args305, ctx) => {
134704
+ const [result, apiCall] = await usageSandbox(client, args305.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
133289
134705
  if (!result.ok) {
133290
134706
  return {
133291
134707
  content: [{ type: "text", text: result.error.message }],
@@ -133302,7 +134718,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
133302
134718
  function createMCPServer(deps) {
133303
134719
  const server = new McpServer({
133304
134720
  name: "SDK",
133305
- version: "0.51.25"
134721
+ version: "0.51.27"
133306
134722
  });
133307
134723
  const client = new SDKCore({
133308
134724
  bearerAuth: deps.bearerAuth,
@@ -133382,6 +134798,11 @@ function createMCPServer(deps) {
133382
134798
  tool(tool$fineTuneJobsGetServingRunEvents);
133383
134799
  tool(tool$fineTuneJobsGetServingRunLogs);
133384
134800
  tool(tool$deploymentsDeleteServingRun);
134801
+ tool(tool$reposList);
134802
+ tool(tool$reposCreate);
134803
+ tool(tool$reposDelete);
134804
+ tool(tool$reposGet);
134805
+ tool(tool$reposUpdate);
133385
134806
  tool(tool$permissionsLlmGrant);
133386
134807
  tool(tool$permissionsLlmRevoke);
133387
134808
  tool(tool$permissionsLlmCheck);
@@ -133621,6 +135042,9 @@ function createMCPServer(deps) {
133621
135042
  tool(tool$servingTenantsGet);
133622
135043
  tool(tool$servingTenantsSet);
133623
135044
  tool(tool$servingSpendGet);
135045
+ tool(tool$reposCollaboratorsList);
135046
+ tool(tool$reposCollaboratorsRemove);
135047
+ tool(tool$reposCollaboratorsAdd);
133624
135048
  return server;
133625
135049
  }
133626
135050
  var init_server2 = __esm(() => {
@@ -133906,6 +135330,14 @@ var init_server2 = __esm(() => {
133906
135330
  init_permissionsLlmCheck2();
133907
135331
  init_permissionsLlmGrant2();
133908
135332
  init_permissionsLlmRevoke2();
135333
+ init_reposCollaboratorsAdd2();
135334
+ init_reposCollaboratorsList2();
135335
+ init_reposCollaboratorsRemove2();
135336
+ init_reposCreate2();
135337
+ init_reposDelete2();
135338
+ init_reposGet2();
135339
+ init_reposList2();
135340
+ init_reposUpdate2();
133909
135341
  init_sandboxCreate2();
133910
135342
  init_sandboxDownloadArchive2();
133911
135343
  init_sandboxDownloadFile2();
@@ -135110,7 +136542,7 @@ var routes = rn({
135110
136542
  var app = Ve(routes, {
135111
136543
  name: "mcp",
135112
136544
  versionInfo: {
135113
- currentVersion: "0.51.25"
136545
+ currentVersion: "0.51.27"
135114
136546
  }
135115
136547
  });
135116
136548
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -135118,5 +136550,5 @@ export {
135118
136550
  app
135119
136551
  };
135120
136552
 
135121
- //# debugId=0DEECFF8B363B01064756E2164756E21
136553
+ //# debugId=ADCB701EBF67369864756E2164756E21
135122
136554
  //# sourceMappingURL=mcp-server.js.map