@meetkai/mka1 0.48.34 → 0.48.35

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 (308) hide show
  1. package/README.md +250 -232
  2. package/bin/mcp-server.js +1970 -1143
  3. package/bin/mcp-server.js.map +27 -9
  4. package/dist/commonjs/funcs/llmModelsAddClusterRegistryModel.d.ts +17 -0
  5. package/dist/commonjs/funcs/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/llmModelsAddClusterRegistryModel.js +125 -0
  7. package/dist/commonjs/funcs/llmModelsAddClusterRegistryModel.js.map +1 -0
  8. package/dist/commonjs/funcs/llmModelsGetClusterRegistryModel.d.ts +18 -0
  9. package/dist/commonjs/funcs/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/llmModelsGetClusterRegistryModel.js +131 -0
  11. package/dist/commonjs/funcs/llmModelsGetClusterRegistryModel.js.map +1 -0
  12. package/dist/commonjs/funcs/llmModelsListClusterRegistryModels.d.ts +17 -0
  13. package/dist/commonjs/funcs/llmModelsListClusterRegistryModels.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/llmModelsListClusterRegistryModels.js +115 -0
  15. package/dist/commonjs/funcs/llmModelsListClusterRegistryModels.js.map +1 -0
  16. package/dist/commonjs/funcs/llmModelsListEffectivePrices.d.ts +18 -0
  17. package/dist/commonjs/funcs/llmModelsListEffectivePrices.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/llmModelsListEffectivePrices.js +126 -0
  19. package/dist/commonjs/funcs/llmModelsListEffectivePrices.js.map +1 -0
  20. package/dist/commonjs/funcs/llmModelsRemoveClusterRegistryModel.d.ts +18 -0
  21. package/dist/commonjs/funcs/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
  22. package/dist/commonjs/funcs/llmModelsRemoveClusterRegistryModel.js +131 -0
  23. package/dist/commonjs/funcs/llmModelsRemoveClusterRegistryModel.js.map +1 -0
  24. package/dist/commonjs/funcs/llmModelsUpdateClusterRegistryModel.d.ts +18 -0
  25. package/dist/commonjs/funcs/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
  26. package/dist/commonjs/funcs/llmModelsUpdateClusterRegistryModel.js +134 -0
  27. package/dist/commonjs/funcs/llmModelsUpdateClusterRegistryModel.js.map +1 -0
  28. package/dist/commonjs/lib/config.d.ts +2 -2
  29. package/dist/commonjs/lib/config.js +2 -2
  30. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  31. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  32. package/dist/commonjs/mcp-server/server.js +13 -1
  33. package/dist/commonjs/mcp-server/server.js.map +1 -1
  34. package/dist/commonjs/mcp-server/tools/llmModelsAddClusterRegistryModel.d.ts +8 -0
  35. package/dist/commonjs/mcp-server/tools/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/llmModelsAddClusterRegistryModel.js +64 -0
  37. package/dist/commonjs/mcp-server/tools/llmModelsAddClusterRegistryModel.js.map +1 -0
  38. package/dist/commonjs/mcp-server/tools/llmModelsGetClusterRegistryModel.d.ts +8 -0
  39. package/dist/commonjs/mcp-server/tools/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
  40. package/dist/commonjs/mcp-server/tools/llmModelsGetClusterRegistryModel.js +64 -0
  41. package/dist/commonjs/mcp-server/tools/llmModelsGetClusterRegistryModel.js.map +1 -0
  42. package/dist/commonjs/mcp-server/tools/llmModelsListClusterRegistryModels.d.ts +3 -0
  43. package/dist/commonjs/mcp-server/tools/llmModelsListClusterRegistryModels.d.ts.map +1 -0
  44. package/dist/commonjs/mcp-server/tools/llmModelsListClusterRegistryModels.js +26 -0
  45. package/dist/commonjs/mcp-server/tools/llmModelsListClusterRegistryModels.js.map +1 -0
  46. package/dist/commonjs/mcp-server/tools/llmModelsListEffectivePrices.d.ts +8 -0
  47. package/dist/commonjs/mcp-server/tools/llmModelsListEffectivePrices.d.ts.map +1 -0
  48. package/dist/commonjs/mcp-server/tools/llmModelsListEffectivePrices.js +64 -0
  49. package/dist/commonjs/mcp-server/tools/llmModelsListEffectivePrices.js.map +1 -0
  50. package/dist/commonjs/mcp-server/tools/llmModelsRemoveClusterRegistryModel.d.ts +8 -0
  51. package/dist/commonjs/mcp-server/tools/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
  52. package/dist/commonjs/mcp-server/tools/llmModelsRemoveClusterRegistryModel.js +64 -0
  53. package/dist/commonjs/mcp-server/tools/llmModelsRemoveClusterRegistryModel.js.map +1 -0
  54. package/dist/commonjs/mcp-server/tools/llmModelsUpdateClusterRegistryModel.d.ts +8 -0
  55. package/dist/commonjs/mcp-server/tools/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
  56. package/dist/commonjs/mcp-server/tools/llmModelsUpdateClusterRegistryModel.js +64 -0
  57. package/dist/commonjs/mcp-server/tools/llmModelsUpdateClusterRegistryModel.js.map +1 -0
  58. package/dist/commonjs/models/components/effectivepricerow.d.ts +65 -0
  59. package/dist/commonjs/models/components/effectivepricerow.d.ts.map +1 -0
  60. package/dist/commonjs/models/components/effectivepricerow.js +120 -0
  61. package/dist/commonjs/models/components/effectivepricerow.js.map +1 -0
  62. package/dist/commonjs/models/components/effectivepricesresponse.d.ts +22 -0
  63. package/dist/commonjs/models/components/effectivepricesresponse.d.ts.map +1 -0
  64. package/dist/commonjs/models/components/effectivepricesresponse.js +63 -0
  65. package/dist/commonjs/models/components/effectivepricesresponse.js.map +1 -0
  66. package/dist/commonjs/models/components/index.d.ts +2 -0
  67. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  68. package/dist/commonjs/models/components/index.js +2 -0
  69. package/dist/commonjs/models/components/index.js.map +1 -1
  70. package/dist/commonjs/models/components/modelpricerow.d.ts +2 -2
  71. package/dist/commonjs/models/components/modelpricerow.d.ts.map +1 -1
  72. package/dist/commonjs/models/components/modelpricerow.js +2 -2
  73. package/dist/commonjs/models/components/modelpricerow.js.map +1 -1
  74. package/dist/commonjs/models/operations/getclusterregistrymodel.d.ts +17 -0
  75. package/dist/commonjs/models/operations/getclusterregistrymodel.d.ts.map +1 -0
  76. package/dist/commonjs/models/operations/getclusterregistrymodel.js +58 -0
  77. package/dist/commonjs/models/operations/getclusterregistrymodel.js.map +1 -0
  78. package/dist/commonjs/models/operations/index.d.ts +4 -0
  79. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  80. package/dist/commonjs/models/operations/index.js +4 -0
  81. package/dist/commonjs/models/operations/index.js.map +1 -1
  82. package/dist/commonjs/models/operations/listeffectiveprices.d.ts +20 -0
  83. package/dist/commonjs/models/operations/listeffectiveprices.d.ts.map +1 -0
  84. package/dist/commonjs/models/operations/listeffectiveprices.js +67 -0
  85. package/dist/commonjs/models/operations/listeffectiveprices.js.map +1 -0
  86. package/dist/commonjs/models/operations/removeclusterregistrymodel.d.ts +17 -0
  87. package/dist/commonjs/models/operations/removeclusterregistrymodel.d.ts.map +1 -0
  88. package/dist/commonjs/models/operations/removeclusterregistrymodel.js +58 -0
  89. package/dist/commonjs/models/operations/removeclusterregistrymodel.js.map +1 -0
  90. package/dist/commonjs/models/operations/updateclusterregistrymodel.d.ts +20 -0
  91. package/dist/commonjs/models/operations/updateclusterregistrymodel.d.ts.map +1 -0
  92. package/dist/commonjs/models/operations/updateclusterregistrymodel.js +70 -0
  93. package/dist/commonjs/models/operations/updateclusterregistrymodel.js.map +1 -0
  94. package/dist/commonjs/react-query/index.d.ts +6 -0
  95. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  96. package/dist/commonjs/react-query/index.js +6 -0
  97. package/dist/commonjs/react-query/index.js.map +1 -1
  98. package/dist/commonjs/react-query/llmModelsAddClusterRegistryModel.d.ts +28 -0
  99. package/dist/commonjs/react-query/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
  100. package/dist/commonjs/react-query/llmModelsAddClusterRegistryModel.js +47 -0
  101. package/dist/commonjs/react-query/llmModelsAddClusterRegistryModel.js.map +1 -0
  102. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.core.d.ts +13 -0
  103. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.core.d.ts.map +1 -0
  104. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.core.js +34 -0
  105. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.core.js.map +1 -0
  106. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.d.ts +28 -0
  107. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
  108. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.js +65 -0
  109. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.js.map +1 -0
  110. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.core.d.ts +12 -0
  111. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.core.d.ts.map +1 -0
  112. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.core.js +34 -0
  113. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.core.js.map +1 -0
  114. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.d.ts +26 -0
  115. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.d.ts.map +1 -0
  116. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.js +53 -0
  117. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.js.map +1 -0
  118. package/dist/commonjs/react-query/llmModelsListEffectivePrices.core.d.ts +15 -0
  119. package/dist/commonjs/react-query/llmModelsListEffectivePrices.core.d.ts.map +1 -0
  120. package/dist/commonjs/react-query/llmModelsListEffectivePrices.core.js +36 -0
  121. package/dist/commonjs/react-query/llmModelsListEffectivePrices.core.js.map +1 -0
  122. package/dist/commonjs/react-query/llmModelsListEffectivePrices.d.ts +34 -0
  123. package/dist/commonjs/react-query/llmModelsListEffectivePrices.d.ts.map +1 -0
  124. package/dist/commonjs/react-query/llmModelsListEffectivePrices.js +65 -0
  125. package/dist/commonjs/react-query/llmModelsListEffectivePrices.js.map +1 -0
  126. package/dist/commonjs/react-query/llmModelsRemoveClusterRegistryModel.d.ts +29 -0
  127. package/dist/commonjs/react-query/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
  128. package/dist/commonjs/react-query/llmModelsRemoveClusterRegistryModel.js +47 -0
  129. package/dist/commonjs/react-query/llmModelsRemoveClusterRegistryModel.js.map +1 -0
  130. package/dist/commonjs/react-query/llmModelsUpdateClusterRegistryModel.d.ts +29 -0
  131. package/dist/commonjs/react-query/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
  132. package/dist/commonjs/react-query/llmModelsUpdateClusterRegistryModel.js +47 -0
  133. package/dist/commonjs/react-query/llmModelsUpdateClusterRegistryModel.js.map +1 -0
  134. package/dist/commonjs/sdk/models.d.ts +42 -0
  135. package/dist/commonjs/sdk/models.d.ts.map +1 -1
  136. package/dist/commonjs/sdk/models.js +60 -0
  137. package/dist/commonjs/sdk/models.js.map +1 -1
  138. package/dist/esm/funcs/llmModelsAddClusterRegistryModel.d.ts +17 -0
  139. package/dist/esm/funcs/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
  140. package/dist/esm/funcs/llmModelsAddClusterRegistryModel.js +89 -0
  141. package/dist/esm/funcs/llmModelsAddClusterRegistryModel.js.map +1 -0
  142. package/dist/esm/funcs/llmModelsGetClusterRegistryModel.d.ts +18 -0
  143. package/dist/esm/funcs/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
  144. package/dist/esm/funcs/llmModelsGetClusterRegistryModel.js +95 -0
  145. package/dist/esm/funcs/llmModelsGetClusterRegistryModel.js.map +1 -0
  146. package/dist/esm/funcs/llmModelsListClusterRegistryModels.d.ts +17 -0
  147. package/dist/esm/funcs/llmModelsListClusterRegistryModels.d.ts.map +1 -0
  148. package/dist/esm/funcs/llmModelsListClusterRegistryModels.js +79 -0
  149. package/dist/esm/funcs/llmModelsListClusterRegistryModels.js.map +1 -0
  150. package/dist/esm/funcs/llmModelsListEffectivePrices.d.ts +18 -0
  151. package/dist/esm/funcs/llmModelsListEffectivePrices.d.ts.map +1 -0
  152. package/dist/esm/funcs/llmModelsListEffectivePrices.js +90 -0
  153. package/dist/esm/funcs/llmModelsListEffectivePrices.js.map +1 -0
  154. package/dist/esm/funcs/llmModelsRemoveClusterRegistryModel.d.ts +18 -0
  155. package/dist/esm/funcs/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
  156. package/dist/esm/funcs/llmModelsRemoveClusterRegistryModel.js +95 -0
  157. package/dist/esm/funcs/llmModelsRemoveClusterRegistryModel.js.map +1 -0
  158. package/dist/esm/funcs/llmModelsUpdateClusterRegistryModel.d.ts +18 -0
  159. package/dist/esm/funcs/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
  160. package/dist/esm/funcs/llmModelsUpdateClusterRegistryModel.js +98 -0
  161. package/dist/esm/funcs/llmModelsUpdateClusterRegistryModel.js.map +1 -0
  162. package/dist/esm/lib/config.d.ts +2 -2
  163. package/dist/esm/lib/config.js +2 -2
  164. package/dist/esm/mcp-server/mcp-server.js +1 -1
  165. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  166. package/dist/esm/mcp-server/server.js +13 -1
  167. package/dist/esm/mcp-server/server.js.map +1 -1
  168. package/dist/esm/mcp-server/tools/llmModelsAddClusterRegistryModel.d.ts +8 -0
  169. package/dist/esm/mcp-server/tools/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
  170. package/dist/esm/mcp-server/tools/llmModelsAddClusterRegistryModel.js +28 -0
  171. package/dist/esm/mcp-server/tools/llmModelsAddClusterRegistryModel.js.map +1 -0
  172. package/dist/esm/mcp-server/tools/llmModelsGetClusterRegistryModel.d.ts +8 -0
  173. package/dist/esm/mcp-server/tools/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
  174. package/dist/esm/mcp-server/tools/llmModelsGetClusterRegistryModel.js +28 -0
  175. package/dist/esm/mcp-server/tools/llmModelsGetClusterRegistryModel.js.map +1 -0
  176. package/dist/esm/mcp-server/tools/llmModelsListClusterRegistryModels.d.ts +3 -0
  177. package/dist/esm/mcp-server/tools/llmModelsListClusterRegistryModels.d.ts.map +1 -0
  178. package/dist/esm/mcp-server/tools/llmModelsListClusterRegistryModels.js +23 -0
  179. package/dist/esm/mcp-server/tools/llmModelsListClusterRegistryModels.js.map +1 -0
  180. package/dist/esm/mcp-server/tools/llmModelsListEffectivePrices.d.ts +8 -0
  181. package/dist/esm/mcp-server/tools/llmModelsListEffectivePrices.d.ts.map +1 -0
  182. package/dist/esm/mcp-server/tools/llmModelsListEffectivePrices.js +28 -0
  183. package/dist/esm/mcp-server/tools/llmModelsListEffectivePrices.js.map +1 -0
  184. package/dist/esm/mcp-server/tools/llmModelsRemoveClusterRegistryModel.d.ts +8 -0
  185. package/dist/esm/mcp-server/tools/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
  186. package/dist/esm/mcp-server/tools/llmModelsRemoveClusterRegistryModel.js +28 -0
  187. package/dist/esm/mcp-server/tools/llmModelsRemoveClusterRegistryModel.js.map +1 -0
  188. package/dist/esm/mcp-server/tools/llmModelsUpdateClusterRegistryModel.d.ts +8 -0
  189. package/dist/esm/mcp-server/tools/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
  190. package/dist/esm/mcp-server/tools/llmModelsUpdateClusterRegistryModel.js +28 -0
  191. package/dist/esm/mcp-server/tools/llmModelsUpdateClusterRegistryModel.js.map +1 -0
  192. package/dist/esm/models/components/effectivepricerow.d.ts +65 -0
  193. package/dist/esm/models/components/effectivepricerow.d.ts.map +1 -0
  194. package/dist/esm/models/components/effectivepricerow.js +80 -0
  195. package/dist/esm/models/components/effectivepricerow.js.map +1 -0
  196. package/dist/esm/models/components/effectivepricesresponse.d.ts +22 -0
  197. package/dist/esm/models/components/effectivepricesresponse.d.ts.map +1 -0
  198. package/dist/esm/models/components/effectivepricesresponse.js +25 -0
  199. package/dist/esm/models/components/effectivepricesresponse.js.map +1 -0
  200. package/dist/esm/models/components/index.d.ts +2 -0
  201. package/dist/esm/models/components/index.d.ts.map +1 -1
  202. package/dist/esm/models/components/index.js +2 -0
  203. package/dist/esm/models/components/index.js.map +1 -1
  204. package/dist/esm/models/components/modelpricerow.d.ts +2 -2
  205. package/dist/esm/models/components/modelpricerow.d.ts.map +1 -1
  206. package/dist/esm/models/components/modelpricerow.js +2 -2
  207. package/dist/esm/models/components/modelpricerow.js.map +1 -1
  208. package/dist/esm/models/operations/getclusterregistrymodel.d.ts +17 -0
  209. package/dist/esm/models/operations/getclusterregistrymodel.d.ts.map +1 -0
  210. package/dist/esm/models/operations/getclusterregistrymodel.js +20 -0
  211. package/dist/esm/models/operations/getclusterregistrymodel.js.map +1 -0
  212. package/dist/esm/models/operations/index.d.ts +4 -0
  213. package/dist/esm/models/operations/index.d.ts.map +1 -1
  214. package/dist/esm/models/operations/index.js +4 -0
  215. package/dist/esm/models/operations/index.js.map +1 -1
  216. package/dist/esm/models/operations/listeffectiveprices.d.ts +20 -0
  217. package/dist/esm/models/operations/listeffectiveprices.d.ts.map +1 -0
  218. package/dist/esm/models/operations/listeffectiveprices.js +29 -0
  219. package/dist/esm/models/operations/listeffectiveprices.js.map +1 -0
  220. package/dist/esm/models/operations/removeclusterregistrymodel.d.ts +17 -0
  221. package/dist/esm/models/operations/removeclusterregistrymodel.d.ts.map +1 -0
  222. package/dist/esm/models/operations/removeclusterregistrymodel.js +20 -0
  223. package/dist/esm/models/operations/removeclusterregistrymodel.js.map +1 -0
  224. package/dist/esm/models/operations/updateclusterregistrymodel.d.ts +20 -0
  225. package/dist/esm/models/operations/updateclusterregistrymodel.d.ts.map +1 -0
  226. package/dist/esm/models/operations/updateclusterregistrymodel.js +32 -0
  227. package/dist/esm/models/operations/updateclusterregistrymodel.js.map +1 -0
  228. package/dist/esm/react-query/index.d.ts +6 -0
  229. package/dist/esm/react-query/index.d.ts.map +1 -1
  230. package/dist/esm/react-query/index.js +6 -0
  231. package/dist/esm/react-query/index.js.map +1 -1
  232. package/dist/esm/react-query/llmModelsAddClusterRegistryModel.d.ts +28 -0
  233. package/dist/esm/react-query/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
  234. package/dist/esm/react-query/llmModelsAddClusterRegistryModel.js +42 -0
  235. package/dist/esm/react-query/llmModelsAddClusterRegistryModel.js.map +1 -0
  236. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.core.d.ts +13 -0
  237. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.core.d.ts.map +1 -0
  238. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.core.js +29 -0
  239. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.core.js.map +1 -0
  240. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.d.ts +28 -0
  241. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
  242. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.js +55 -0
  243. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.js.map +1 -0
  244. package/dist/esm/react-query/llmModelsListClusterRegistryModels.core.d.ts +12 -0
  245. package/dist/esm/react-query/llmModelsListClusterRegistryModels.core.d.ts.map +1 -0
  246. package/dist/esm/react-query/llmModelsListClusterRegistryModels.core.js +29 -0
  247. package/dist/esm/react-query/llmModelsListClusterRegistryModels.core.js.map +1 -0
  248. package/dist/esm/react-query/llmModelsListClusterRegistryModels.d.ts +26 -0
  249. package/dist/esm/react-query/llmModelsListClusterRegistryModels.d.ts.map +1 -0
  250. package/dist/esm/react-query/llmModelsListClusterRegistryModels.js +44 -0
  251. package/dist/esm/react-query/llmModelsListClusterRegistryModels.js.map +1 -0
  252. package/dist/esm/react-query/llmModelsListEffectivePrices.core.d.ts +15 -0
  253. package/dist/esm/react-query/llmModelsListEffectivePrices.core.d.ts.map +1 -0
  254. package/dist/esm/react-query/llmModelsListEffectivePrices.core.js +31 -0
  255. package/dist/esm/react-query/llmModelsListEffectivePrices.core.js.map +1 -0
  256. package/dist/esm/react-query/llmModelsListEffectivePrices.d.ts +34 -0
  257. package/dist/esm/react-query/llmModelsListEffectivePrices.d.ts.map +1 -0
  258. package/dist/esm/react-query/llmModelsListEffectivePrices.js +55 -0
  259. package/dist/esm/react-query/llmModelsListEffectivePrices.js.map +1 -0
  260. package/dist/esm/react-query/llmModelsRemoveClusterRegistryModel.d.ts +29 -0
  261. package/dist/esm/react-query/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
  262. package/dist/esm/react-query/llmModelsRemoveClusterRegistryModel.js +42 -0
  263. package/dist/esm/react-query/llmModelsRemoveClusterRegistryModel.js.map +1 -0
  264. package/dist/esm/react-query/llmModelsUpdateClusterRegistryModel.d.ts +29 -0
  265. package/dist/esm/react-query/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
  266. package/dist/esm/react-query/llmModelsUpdateClusterRegistryModel.js +42 -0
  267. package/dist/esm/react-query/llmModelsUpdateClusterRegistryModel.js.map +1 -0
  268. package/dist/esm/sdk/models.d.ts +42 -0
  269. package/dist/esm/sdk/models.d.ts.map +1 -1
  270. package/dist/esm/sdk/models.js +60 -0
  271. package/dist/esm/sdk/models.js.map +1 -1
  272. package/jsr.json +1 -1
  273. package/package.json +1 -1
  274. package/src/funcs/llmModelsAddClusterRegistryModel.ts +172 -0
  275. package/src/funcs/llmModelsGetClusterRegistryModel.ts +181 -0
  276. package/src/funcs/llmModelsListClusterRegistryModels.ts +154 -0
  277. package/src/funcs/llmModelsListEffectivePrices.ts +178 -0
  278. package/src/funcs/llmModelsRemoveClusterRegistryModel.ts +181 -0
  279. package/src/funcs/llmModelsUpdateClusterRegistryModel.ts +184 -0
  280. package/src/lib/config.ts +2 -2
  281. package/src/mcp-server/mcp-server.ts +1 -1
  282. package/src/mcp-server/server.ts +13 -1
  283. package/src/mcp-server/tools/llmModelsAddClusterRegistryModel.ts +39 -0
  284. package/src/mcp-server/tools/llmModelsGetClusterRegistryModel.ts +39 -0
  285. package/src/mcp-server/tools/llmModelsListClusterRegistryModels.ts +30 -0
  286. package/src/mcp-server/tools/llmModelsListEffectivePrices.ts +37 -0
  287. package/src/mcp-server/tools/llmModelsRemoveClusterRegistryModel.ts +39 -0
  288. package/src/mcp-server/tools/llmModelsUpdateClusterRegistryModel.ts +39 -0
  289. package/src/models/components/effectivepricerow.ts +170 -0
  290. package/src/models/components/effectivepricesresponse.ts +65 -0
  291. package/src/models/components/index.ts +2 -0
  292. package/src/models/components/modelpricerow.ts +4 -4
  293. package/src/models/operations/getclusterregistrymodel.ts +53 -0
  294. package/src/models/operations/index.ts +4 -0
  295. package/src/models/operations/listeffectiveprices.ts +63 -0
  296. package/src/models/operations/removeclusterregistrymodel.ts +53 -0
  297. package/src/models/operations/updateclusterregistrymodel.ts +69 -0
  298. package/src/react-query/index.ts +6 -0
  299. package/src/react-query/llmModelsAddClusterRegistryModel.ts +109 -0
  300. package/src/react-query/llmModelsGetClusterRegistryModel.core.ts +72 -0
  301. package/src/react-query/llmModelsGetClusterRegistryModel.ts +144 -0
  302. package/src/react-query/llmModelsListClusterRegistryModels.core.ts +67 -0
  303. package/src/react-query/llmModelsListClusterRegistryModels.ts +118 -0
  304. package/src/react-query/llmModelsListEffectivePrices.core.ts +76 -0
  305. package/src/react-query/llmModelsListEffectivePrices.ts +143 -0
  306. package/src/react-query/llmModelsRemoveClusterRegistryModel.ts +110 -0
  307. package/src/react-query/llmModelsUpdateClusterRegistryModel.ts +110 -0
  308. package/src/sdk/models.ts +106 -0
@@ -0,0 +1,118 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ InvalidateQueryFilters,
7
+ QueryClient,
8
+ useQuery,
9
+ UseQueryResult,
10
+ useSuspenseQuery,
11
+ UseSuspenseQueryResult,
12
+ } from "@tanstack/react-query";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
21
+ import { SDKError } from "../models/errors/sdkerror.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import { useSDKContext } from "./_context.js";
24
+ import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js";
25
+ import {
26
+ buildLlmModelsListClusterRegistryModelsQuery,
27
+ LlmModelsListClusterRegistryModelsQueryData,
28
+ prefetchLlmModelsListClusterRegistryModels,
29
+ queryKeyLlmModelsListClusterRegistryModels,
30
+ } from "./llmModelsListClusterRegistryModels.core.js";
31
+ export {
32
+ buildLlmModelsListClusterRegistryModelsQuery,
33
+ type LlmModelsListClusterRegistryModelsQueryData,
34
+ prefetchLlmModelsListClusterRegistryModels,
35
+ queryKeyLlmModelsListClusterRegistryModels,
36
+ };
37
+
38
+ export type LlmModelsListClusterRegistryModelsQueryError =
39
+ | SDKError
40
+ | ResponseValidationError
41
+ | ConnectionError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | InvalidRequestError
45
+ | UnexpectedClientError
46
+ | SDKValidationError;
47
+
48
+ /**
49
+ * List cluster-owned models
50
+ *
51
+ * @remarks
52
+ * Lists operator-owned, API-added models (the grantable, database-sourced ones). Cluster admin only.
53
+ */
54
+ export function useLlmModelsListClusterRegistryModels(
55
+ options?: QueryHookOptions<
56
+ LlmModelsListClusterRegistryModelsQueryData,
57
+ LlmModelsListClusterRegistryModelsQueryError
58
+ >,
59
+ ): UseQueryResult<
60
+ LlmModelsListClusterRegistryModelsQueryData,
61
+ LlmModelsListClusterRegistryModelsQueryError
62
+ > {
63
+ const client = useSDKContext();
64
+ return useQuery({
65
+ ...buildLlmModelsListClusterRegistryModelsQuery(
66
+ client,
67
+ options,
68
+ ),
69
+ ...options,
70
+ });
71
+ }
72
+
73
+ /**
74
+ * List cluster-owned models
75
+ *
76
+ * @remarks
77
+ * Lists operator-owned, API-added models (the grantable, database-sourced ones). Cluster admin only.
78
+ */
79
+ export function useLlmModelsListClusterRegistryModelsSuspense(
80
+ options?: SuspenseQueryHookOptions<
81
+ LlmModelsListClusterRegistryModelsQueryData,
82
+ LlmModelsListClusterRegistryModelsQueryError
83
+ >,
84
+ ): UseSuspenseQueryResult<
85
+ LlmModelsListClusterRegistryModelsQueryData,
86
+ LlmModelsListClusterRegistryModelsQueryError
87
+ > {
88
+ const client = useSDKContext();
89
+ return useSuspenseQuery({
90
+ ...buildLlmModelsListClusterRegistryModelsQuery(
91
+ client,
92
+ options,
93
+ ),
94
+ ...options,
95
+ });
96
+ }
97
+
98
+ export function setLlmModelsListClusterRegistryModelsData(
99
+ client: QueryClient,
100
+ data: LlmModelsListClusterRegistryModelsQueryData,
101
+ ): LlmModelsListClusterRegistryModelsQueryData | undefined {
102
+ const key = queryKeyLlmModelsListClusterRegistryModels();
103
+
104
+ return client.setQueryData<LlmModelsListClusterRegistryModelsQueryData>(
105
+ key,
106
+ data,
107
+ );
108
+ }
109
+
110
+ export function invalidateAllLlmModelsListClusterRegistryModels(
111
+ client: QueryClient,
112
+ filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
113
+ ): Promise<void> {
114
+ return client.invalidateQueries({
115
+ ...filters,
116
+ queryKey: ["@meetkai/mka1", "models", "listClusterRegistryModels"],
117
+ });
118
+ }
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ QueryClient,
7
+ QueryFunctionContext,
8
+ QueryKey,
9
+ } from "@tanstack/react-query";
10
+ import { SDKCore } from "../core.js";
11
+ import { llmModelsListEffectivePrices } from "../funcs/llmModelsListEffectivePrices.js";
12
+ import { combineSignals } from "../lib/primitives.js";
13
+ import { RequestOptions } from "../lib/sdks.js";
14
+ import * as components from "../models/components/index.js";
15
+ import * as operations from "../models/operations/index.js";
16
+ import { unwrapAsync } from "../types/fp.js";
17
+ export type LlmModelsListEffectivePricesQueryData =
18
+ components.EffectivePricesResponse;
19
+
20
+ export function prefetchLlmModelsListEffectivePrices(
21
+ queryClient: QueryClient,
22
+ client$: SDKCore,
23
+ request: operations.ListEffectivePricesRequest,
24
+ options?: RequestOptions,
25
+ ): Promise<void> {
26
+ return queryClient.prefetchQuery({
27
+ ...buildLlmModelsListEffectivePricesQuery(
28
+ client$,
29
+ request,
30
+ options,
31
+ ),
32
+ });
33
+ }
34
+
35
+ export function buildLlmModelsListEffectivePricesQuery(
36
+ client$: SDKCore,
37
+ request: operations.ListEffectivePricesRequest,
38
+ options?: RequestOptions,
39
+ ): {
40
+ queryKey: QueryKey;
41
+ queryFn: (
42
+ context: QueryFunctionContext,
43
+ ) => Promise<LlmModelsListEffectivePricesQueryData>;
44
+ } {
45
+ return {
46
+ queryKey: queryKeyLlmModelsListEffectivePrices({
47
+ xOnBehalfOf: request.xOnBehalfOf,
48
+ }),
49
+ queryFn: async function llmModelsListEffectivePricesQueryFn(
50
+ ctx,
51
+ ): Promise<LlmModelsListEffectivePricesQueryData> {
52
+ const sig = combineSignals(
53
+ ctx.signal,
54
+ options?.signal,
55
+ options?.fetchOptions?.signal,
56
+ );
57
+ const mergedOptions = {
58
+ ...options?.fetchOptions,
59
+ ...options,
60
+ signal: sig,
61
+ };
62
+
63
+ return unwrapAsync(llmModelsListEffectivePrices(
64
+ client$,
65
+ request,
66
+ mergedOptions,
67
+ ));
68
+ },
69
+ };
70
+ }
71
+
72
+ export function queryKeyLlmModelsListEffectivePrices(
73
+ parameters: { xOnBehalfOf?: string | undefined },
74
+ ): QueryKey {
75
+ return ["@meetkai/mka1", "models", "listEffectivePrices", parameters];
76
+ }
@@ -0,0 +1,143 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ InvalidateQueryFilters,
7
+ QueryClient,
8
+ useQuery,
9
+ UseQueryResult,
10
+ useSuspenseQuery,
11
+ UseSuspenseQueryResult,
12
+ } from "@tanstack/react-query";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
21
+ import { SDKError } from "../models/errors/sdkerror.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import * as operations from "../models/operations/index.js";
24
+ import { useSDKContext } from "./_context.js";
25
+ import {
26
+ QueryHookOptions,
27
+ SuspenseQueryHookOptions,
28
+ TupleToPrefixes,
29
+ } from "./_types.js";
30
+ import {
31
+ buildLlmModelsListEffectivePricesQuery,
32
+ LlmModelsListEffectivePricesQueryData,
33
+ prefetchLlmModelsListEffectivePrices,
34
+ queryKeyLlmModelsListEffectivePrices,
35
+ } from "./llmModelsListEffectivePrices.core.js";
36
+ export {
37
+ buildLlmModelsListEffectivePricesQuery,
38
+ type LlmModelsListEffectivePricesQueryData,
39
+ prefetchLlmModelsListEffectivePrices,
40
+ queryKeyLlmModelsListEffectivePrices,
41
+ };
42
+
43
+ export type LlmModelsListEffectivePricesQueryError =
44
+ | SDKError
45
+ | ResponseValidationError
46
+ | ConnectionError
47
+ | RequestAbortedError
48
+ | RequestTimeoutError
49
+ | InvalidRequestError
50
+ | UnexpectedClientError
51
+ | SDKValidationError;
52
+
53
+ /**
54
+ * List effective prices for the caller's models
55
+ *
56
+ * @remarks
57
+ * For every model the caller's organization can use, returns the price that spend is actually rated at: the org's override if one exists, else the cluster default, else unpriced ($0). Cluster admins see the full catalog priced against their own org scope.
58
+ */
59
+ export function useLlmModelsListEffectivePrices(
60
+ request: operations.ListEffectivePricesRequest,
61
+ options?: QueryHookOptions<
62
+ LlmModelsListEffectivePricesQueryData,
63
+ LlmModelsListEffectivePricesQueryError
64
+ >,
65
+ ): UseQueryResult<
66
+ LlmModelsListEffectivePricesQueryData,
67
+ LlmModelsListEffectivePricesQueryError
68
+ > {
69
+ const client = useSDKContext();
70
+ return useQuery({
71
+ ...buildLlmModelsListEffectivePricesQuery(
72
+ client,
73
+ request,
74
+ options,
75
+ ),
76
+ ...options,
77
+ });
78
+ }
79
+
80
+ /**
81
+ * List effective prices for the caller's models
82
+ *
83
+ * @remarks
84
+ * For every model the caller's organization can use, returns the price that spend is actually rated at: the org's override if one exists, else the cluster default, else unpriced ($0). Cluster admins see the full catalog priced against their own org scope.
85
+ */
86
+ export function useLlmModelsListEffectivePricesSuspense(
87
+ request: operations.ListEffectivePricesRequest,
88
+ options?: SuspenseQueryHookOptions<
89
+ LlmModelsListEffectivePricesQueryData,
90
+ LlmModelsListEffectivePricesQueryError
91
+ >,
92
+ ): UseSuspenseQueryResult<
93
+ LlmModelsListEffectivePricesQueryData,
94
+ LlmModelsListEffectivePricesQueryError
95
+ > {
96
+ const client = useSDKContext();
97
+ return useSuspenseQuery({
98
+ ...buildLlmModelsListEffectivePricesQuery(
99
+ client,
100
+ request,
101
+ options,
102
+ ),
103
+ ...options,
104
+ });
105
+ }
106
+
107
+ export function setLlmModelsListEffectivePricesData(
108
+ client: QueryClient,
109
+ queryKeyBase: [parameters: { xOnBehalfOf?: string | undefined }],
110
+ data: LlmModelsListEffectivePricesQueryData,
111
+ ): LlmModelsListEffectivePricesQueryData | undefined {
112
+ const key = queryKeyLlmModelsListEffectivePrices(...queryKeyBase);
113
+
114
+ return client.setQueryData<LlmModelsListEffectivePricesQueryData>(key, data);
115
+ }
116
+
117
+ export function invalidateLlmModelsListEffectivePrices(
118
+ client: QueryClient,
119
+ queryKeyBase: TupleToPrefixes<
120
+ [parameters: { xOnBehalfOf?: string | undefined }]
121
+ >,
122
+ filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
123
+ ): Promise<void> {
124
+ return client.invalidateQueries({
125
+ ...filters,
126
+ queryKey: [
127
+ "@meetkai/mka1",
128
+ "models",
129
+ "listEffectivePrices",
130
+ ...queryKeyBase,
131
+ ],
132
+ });
133
+ }
134
+
135
+ export function invalidateAllLlmModelsListEffectivePrices(
136
+ client: QueryClient,
137
+ filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
138
+ ): Promise<void> {
139
+ return client.invalidateQueries({
140
+ ...filters,
141
+ queryKey: ["@meetkai/mka1", "models", "listEffectivePrices"],
142
+ });
143
+ }
@@ -0,0 +1,110 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ MutationKey,
7
+ useMutation,
8
+ UseMutationResult,
9
+ } from "@tanstack/react-query";
10
+ import { SDKCore } from "../core.js";
11
+ import { llmModelsRemoveClusterRegistryModel } from "../funcs/llmModelsRemoveClusterRegistryModel.js";
12
+ import { combineSignals } from "../lib/primitives.js";
13
+ import { RequestOptions } from "../lib/sdks.js";
14
+ import * as components from "../models/components/index.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKError } from "../models/errors/sdkerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { unwrapAsync } from "../types/fp.js";
27
+ import { useSDKContext } from "./_context.js";
28
+ import { MutationHookOptions } from "./_types.js";
29
+
30
+ export type LlmModelsRemoveClusterRegistryModelMutationVariables = {
31
+ request: operations.RemoveClusterRegistryModelRequest;
32
+ options?: RequestOptions;
33
+ };
34
+
35
+ export type LlmModelsRemoveClusterRegistryModelMutationData =
36
+ components.DeleteRegistryModelResponse;
37
+
38
+ export type LlmModelsRemoveClusterRegistryModelMutationError =
39
+ | SDKError
40
+ | ResponseValidationError
41
+ | ConnectionError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | InvalidRequestError
45
+ | UnexpectedClientError
46
+ | SDKValidationError;
47
+
48
+ /**
49
+ * Remove a cluster-owned model
50
+ *
51
+ * @remarks
52
+ * Removes an operator-owned, API-added model and cleans up its cluster-default price and all per-org grants for the id. Cluster admin only.
53
+ */
54
+ export function useLlmModelsRemoveClusterRegistryModelMutation(
55
+ options?: MutationHookOptions<
56
+ LlmModelsRemoveClusterRegistryModelMutationData,
57
+ LlmModelsRemoveClusterRegistryModelMutationError,
58
+ LlmModelsRemoveClusterRegistryModelMutationVariables
59
+ >,
60
+ ): UseMutationResult<
61
+ LlmModelsRemoveClusterRegistryModelMutationData,
62
+ LlmModelsRemoveClusterRegistryModelMutationError,
63
+ LlmModelsRemoveClusterRegistryModelMutationVariables
64
+ > {
65
+ const client = useSDKContext();
66
+ return useMutation({
67
+ ...buildLlmModelsRemoveClusterRegistryModelMutation(client, options),
68
+ ...options,
69
+ });
70
+ }
71
+
72
+ export function mutationKeyLlmModelsRemoveClusterRegistryModel(): MutationKey {
73
+ return ["@meetkai/mka1", "models", "removeClusterRegistryModel"];
74
+ }
75
+
76
+ export function buildLlmModelsRemoveClusterRegistryModelMutation(
77
+ client$: SDKCore,
78
+ hookOptions?: RequestOptions,
79
+ ): {
80
+ mutationKey: MutationKey;
81
+ mutationFn: (
82
+ variables: LlmModelsRemoveClusterRegistryModelMutationVariables,
83
+ ) => Promise<LlmModelsRemoveClusterRegistryModelMutationData>;
84
+ } {
85
+ return {
86
+ mutationKey: mutationKeyLlmModelsRemoveClusterRegistryModel(),
87
+ mutationFn: function llmModelsRemoveClusterRegistryModelMutationFn({
88
+ request,
89
+ options,
90
+ }): Promise<LlmModelsRemoveClusterRegistryModelMutationData> {
91
+ const mergedOptions = {
92
+ ...hookOptions,
93
+ ...options,
94
+ fetchOptions: {
95
+ ...hookOptions?.fetchOptions,
96
+ ...options?.fetchOptions,
97
+ signal: combineSignals(
98
+ hookOptions?.fetchOptions?.signal,
99
+ options?.fetchOptions?.signal,
100
+ ),
101
+ },
102
+ };
103
+ return unwrapAsync(llmModelsRemoveClusterRegistryModel(
104
+ client$,
105
+ request,
106
+ mergedOptions,
107
+ ));
108
+ },
109
+ };
110
+ }
@@ -0,0 +1,110 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ MutationKey,
7
+ useMutation,
8
+ UseMutationResult,
9
+ } from "@tanstack/react-query";
10
+ import { SDKCore } from "../core.js";
11
+ import { llmModelsUpdateClusterRegistryModel } from "../funcs/llmModelsUpdateClusterRegistryModel.js";
12
+ import { combineSignals } from "../lib/primitives.js";
13
+ import { RequestOptions } from "../lib/sdks.js";
14
+ import * as components from "../models/components/index.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKError } from "../models/errors/sdkerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { unwrapAsync } from "../types/fp.js";
27
+ import { useSDKContext } from "./_context.js";
28
+ import { MutationHookOptions } from "./_types.js";
29
+
30
+ export type LlmModelsUpdateClusterRegistryModelMutationVariables = {
31
+ request: operations.UpdateClusterRegistryModelRequest;
32
+ options?: RequestOptions;
33
+ };
34
+
35
+ export type LlmModelsUpdateClusterRegistryModelMutationData =
36
+ components.RegistryModelResponse;
37
+
38
+ export type LlmModelsUpdateClusterRegistryModelMutationError =
39
+ | SDKError
40
+ | ResponseValidationError
41
+ | ConnectionError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | InvalidRequestError
45
+ | UnexpectedClientError
46
+ | SDKValidationError;
47
+
48
+ /**
49
+ * Update a cluster-owned model
50
+ *
51
+ * @remarks
52
+ * Partially updates an operator-owned, API-added model. Only provided fields change. Cluster admin only.
53
+ */
54
+ export function useLlmModelsUpdateClusterRegistryModelMutation(
55
+ options?: MutationHookOptions<
56
+ LlmModelsUpdateClusterRegistryModelMutationData,
57
+ LlmModelsUpdateClusterRegistryModelMutationError,
58
+ LlmModelsUpdateClusterRegistryModelMutationVariables
59
+ >,
60
+ ): UseMutationResult<
61
+ LlmModelsUpdateClusterRegistryModelMutationData,
62
+ LlmModelsUpdateClusterRegistryModelMutationError,
63
+ LlmModelsUpdateClusterRegistryModelMutationVariables
64
+ > {
65
+ const client = useSDKContext();
66
+ return useMutation({
67
+ ...buildLlmModelsUpdateClusterRegistryModelMutation(client, options),
68
+ ...options,
69
+ });
70
+ }
71
+
72
+ export function mutationKeyLlmModelsUpdateClusterRegistryModel(): MutationKey {
73
+ return ["@meetkai/mka1", "models", "updateClusterRegistryModel"];
74
+ }
75
+
76
+ export function buildLlmModelsUpdateClusterRegistryModelMutation(
77
+ client$: SDKCore,
78
+ hookOptions?: RequestOptions,
79
+ ): {
80
+ mutationKey: MutationKey;
81
+ mutationFn: (
82
+ variables: LlmModelsUpdateClusterRegistryModelMutationVariables,
83
+ ) => Promise<LlmModelsUpdateClusterRegistryModelMutationData>;
84
+ } {
85
+ return {
86
+ mutationKey: mutationKeyLlmModelsUpdateClusterRegistryModel(),
87
+ mutationFn: function llmModelsUpdateClusterRegistryModelMutationFn({
88
+ request,
89
+ options,
90
+ }): Promise<LlmModelsUpdateClusterRegistryModelMutationData> {
91
+ const mergedOptions = {
92
+ ...hookOptions,
93
+ ...options,
94
+ fetchOptions: {
95
+ ...hookOptions?.fetchOptions,
96
+ ...options?.fetchOptions,
97
+ signal: combineSignals(
98
+ hookOptions?.fetchOptions?.signal,
99
+ options?.fetchOptions?.signal,
100
+ ),
101
+ },
102
+ };
103
+ return unwrapAsync(llmModelsUpdateClusterRegistryModel(
104
+ client$,
105
+ request,
106
+ mergedOptions,
107
+ ));
108
+ },
109
+ };
110
+ }
package/src/sdk/models.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { llmModelsAddClusterRegistryModel } from "../funcs/llmModelsAddClusterRegistryModel.js";
5
6
  import { llmModelsAddRegistryModel } from "../funcs/llmModelsAddRegistryModel.js";
6
7
  import { llmModelsCheckRegistryModelHealth } from "../funcs/llmModelsCheckRegistryModelHealth.js";
7
8
  import { llmModelsClearClusterPrice } from "../funcs/llmModelsClearClusterPrice.js";
@@ -9,20 +10,25 @@ import { llmModelsClearOrgPrice } from "../funcs/llmModelsClearOrgPrice.js";
9
10
  import { llmModelsDeleteOrgAutoModel } from "../funcs/llmModelsDeleteOrgAutoModel.js";
10
11
  import { llmModelsGet } from "../funcs/llmModelsGet.js";
11
12
  import { llmModelsGetClusterCurrency } from "../funcs/llmModelsGetClusterCurrency.js";
13
+ import { llmModelsGetClusterRegistryModel } from "../funcs/llmModelsGetClusterRegistryModel.js";
12
14
  import { llmModelsGetRegistryModel } from "../funcs/llmModelsGetRegistryModel.js";
13
15
  import { llmModelsList } from "../funcs/llmModelsList.js";
14
16
  import { llmModelsListClusterPrices } from "../funcs/llmModelsListClusterPrices.js";
15
17
  import { llmModelsListClusterRegistry } from "../funcs/llmModelsListClusterRegistry.js";
18
+ import { llmModelsListClusterRegistryModels } from "../funcs/llmModelsListClusterRegistryModels.js";
16
19
  import { llmModelsListClusterRegistryOrgGrants } from "../funcs/llmModelsListClusterRegistryOrgGrants.js";
20
+ import { llmModelsListEffectivePrices } from "../funcs/llmModelsListEffectivePrices.js";
17
21
  import { llmModelsListOrgAutoModels } from "../funcs/llmModelsListOrgAutoModels.js";
18
22
  import { llmModelsListOrgPrices } from "../funcs/llmModelsListOrgPrices.js";
19
23
  import { llmModelsListRegistryModels } from "../funcs/llmModelsListRegistryModels.js";
20
24
  import { llmModelsPutClusterRegistryOrgGrants } from "../funcs/llmModelsPutClusterRegistryOrgGrants.js";
21
25
  import { llmModelsPutOrgAutoModel } from "../funcs/llmModelsPutOrgAutoModel.js";
26
+ import { llmModelsRemoveClusterRegistryModel } from "../funcs/llmModelsRemoveClusterRegistryModel.js";
22
27
  import { llmModelsRemoveRegistryModel } from "../funcs/llmModelsRemoveRegistryModel.js";
23
28
  import { llmModelsSetClusterCurrency } from "../funcs/llmModelsSetClusterCurrency.js";
24
29
  import { llmModelsSetClusterPrice } from "../funcs/llmModelsSetClusterPrice.js";
25
30
  import { llmModelsSetOrgPrice } from "../funcs/llmModelsSetOrgPrice.js";
31
+ import { llmModelsUpdateClusterRegistryModel } from "../funcs/llmModelsUpdateClusterRegistryModel.js";
26
32
  import { llmModelsUpdateRegistryModel } from "../funcs/llmModelsUpdateRegistryModel.js";
27
33
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
28
34
  import * as components from "../models/components/index.js";
@@ -164,6 +170,89 @@ export class Models extends ClientSDK {
164
170
  ));
165
171
  }
166
172
 
173
+ /**
174
+ * Add a cluster-owned model
175
+ *
176
+ * @remarks
177
+ * Adds an operator-owned, database-sourced model that a cluster admin can grant to orgs (see /models/cluster_registry). Cluster admin only.
178
+ */
179
+ async addClusterRegistryModel(
180
+ request: components.AddRegistryModelRequest,
181
+ options?: RequestOptions,
182
+ ): Promise<components.RegistryModelResponse> {
183
+ return unwrapAsync(llmModelsAddClusterRegistryModel(
184
+ this,
185
+ request,
186
+ options,
187
+ ));
188
+ }
189
+
190
+ /**
191
+ * List cluster-owned models
192
+ *
193
+ * @remarks
194
+ * Lists operator-owned, API-added models (the grantable, database-sourced ones). Cluster admin only.
195
+ */
196
+ async listClusterRegistryModels(
197
+ options?: RequestOptions,
198
+ ): Promise<components.RegistryModelListResponse> {
199
+ return unwrapAsync(llmModelsListClusterRegistryModels(
200
+ this,
201
+ options,
202
+ ));
203
+ }
204
+
205
+ /**
206
+ * Get a cluster-owned model
207
+ *
208
+ * @remarks
209
+ * Returns a single operator-owned, API-added model. Cluster admin only.
210
+ */
211
+ async getClusterRegistryModel(
212
+ request: operations.GetClusterRegistryModelRequest,
213
+ options?: RequestOptions,
214
+ ): Promise<components.RegistryModelResponse> {
215
+ return unwrapAsync(llmModelsGetClusterRegistryModel(
216
+ this,
217
+ request,
218
+ options,
219
+ ));
220
+ }
221
+
222
+ /**
223
+ * Update a cluster-owned model
224
+ *
225
+ * @remarks
226
+ * Partially updates an operator-owned, API-added model. Only provided fields change. Cluster admin only.
227
+ */
228
+ async updateClusterRegistryModel(
229
+ request: operations.UpdateClusterRegistryModelRequest,
230
+ options?: RequestOptions,
231
+ ): Promise<components.RegistryModelResponse> {
232
+ return unwrapAsync(llmModelsUpdateClusterRegistryModel(
233
+ this,
234
+ request,
235
+ options,
236
+ ));
237
+ }
238
+
239
+ /**
240
+ * Remove a cluster-owned model
241
+ *
242
+ * @remarks
243
+ * Removes an operator-owned, API-added model and cleans up its cluster-default price and all per-org grants for the id. Cluster admin only.
244
+ */
245
+ async removeClusterRegistryModel(
246
+ request: operations.RemoveClusterRegistryModelRequest,
247
+ options?: RequestOptions,
248
+ ): Promise<components.DeleteRegistryModelResponse> {
249
+ return unwrapAsync(llmModelsRemoveClusterRegistryModel(
250
+ this,
251
+ request,
252
+ options,
253
+ ));
254
+ }
255
+
167
256
  /**
168
257
  * List the cluster registry catalog
169
258
  *
@@ -395,4 +484,21 @@ export class Models extends ClientSDK {
395
484
  options,
396
485
  ));
397
486
  }
487
+
488
+ /**
489
+ * List effective prices for the caller's models
490
+ *
491
+ * @remarks
492
+ * For every model the caller's organization can use, returns the price that spend is actually rated at: the org's override if one exists, else the cluster default, else unpriced ($0). Cluster admins see the full catalog priced against their own org scope.
493
+ */
494
+ async listEffectivePrices(
495
+ request: operations.ListEffectivePricesRequest,
496
+ options?: RequestOptions,
497
+ ): Promise<components.EffectivePricesResponse> {
498
+ return unwrapAsync(llmModelsListEffectivePrices(
499
+ this,
500
+ request,
501
+ options,
502
+ ));
503
+ }
398
504
  }