@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,63 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type ListEffectivePricesRequest = {
12
+ /**
13
+ * Optional external end-user identifier forwarded by the API gateway.
14
+ */
15
+ xOnBehalfOf?: string | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export const ListEffectivePricesRequest$inboundSchema: z.ZodType<
20
+ ListEffectivePricesRequest,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ "X-On-Behalf-Of": z.string().optional(),
25
+ }).transform((v) => {
26
+ return remap$(v, {
27
+ "X-On-Behalf-Of": "xOnBehalfOf",
28
+ });
29
+ });
30
+ /** @internal */
31
+ export type ListEffectivePricesRequest$Outbound = {
32
+ "X-On-Behalf-Of"?: string | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const ListEffectivePricesRequest$outboundSchema: z.ZodType<
37
+ ListEffectivePricesRequest$Outbound,
38
+ z.ZodTypeDef,
39
+ ListEffectivePricesRequest
40
+ > = z.object({
41
+ xOnBehalfOf: z.string().optional(),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ xOnBehalfOf: "X-On-Behalf-Of",
45
+ });
46
+ });
47
+
48
+ export function listEffectivePricesRequestToJSON(
49
+ listEffectivePricesRequest: ListEffectivePricesRequest,
50
+ ): string {
51
+ return JSON.stringify(
52
+ ListEffectivePricesRequest$outboundSchema.parse(listEffectivePricesRequest),
53
+ );
54
+ }
55
+ export function listEffectivePricesRequestFromJSON(
56
+ jsonString: string,
57
+ ): SafeParseResult<ListEffectivePricesRequest, SDKValidationError> {
58
+ return safeParse(
59
+ jsonString,
60
+ (x) => ListEffectivePricesRequest$inboundSchema.parse(JSON.parse(x)),
61
+ `Failed to parse 'ListEffectivePricesRequest' from JSON`,
62
+ );
63
+ }
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type RemoveClusterRegistryModelRequest = {
11
+ id: string;
12
+ };
13
+
14
+ /** @internal */
15
+ export const RemoveClusterRegistryModelRequest$inboundSchema: z.ZodType<
16
+ RemoveClusterRegistryModelRequest,
17
+ z.ZodTypeDef,
18
+ unknown
19
+ > = z.object({
20
+ id: z.string(),
21
+ });
22
+ /** @internal */
23
+ export type RemoveClusterRegistryModelRequest$Outbound = {
24
+ id: string;
25
+ };
26
+
27
+ /** @internal */
28
+ export const RemoveClusterRegistryModelRequest$outboundSchema: z.ZodType<
29
+ RemoveClusterRegistryModelRequest$Outbound,
30
+ z.ZodTypeDef,
31
+ RemoveClusterRegistryModelRequest
32
+ > = z.object({
33
+ id: z.string(),
34
+ });
35
+
36
+ export function removeClusterRegistryModelRequestToJSON(
37
+ removeClusterRegistryModelRequest: RemoveClusterRegistryModelRequest,
38
+ ): string {
39
+ return JSON.stringify(
40
+ RemoveClusterRegistryModelRequest$outboundSchema.parse(
41
+ removeClusterRegistryModelRequest,
42
+ ),
43
+ );
44
+ }
45
+ export function removeClusterRegistryModelRequestFromJSON(
46
+ jsonString: string,
47
+ ): SafeParseResult<RemoveClusterRegistryModelRequest, SDKValidationError> {
48
+ return safeParse(
49
+ jsonString,
50
+ (x) => RemoveClusterRegistryModelRequest$inboundSchema.parse(JSON.parse(x)),
51
+ `Failed to parse 'RemoveClusterRegistryModelRequest' from JSON`,
52
+ );
53
+ }
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type UpdateClusterRegistryModelRequest = {
13
+ id: string;
14
+ updateRegistryModelRequest: components.UpdateRegistryModelRequest;
15
+ };
16
+
17
+ /** @internal */
18
+ export const UpdateClusterRegistryModelRequest$inboundSchema: z.ZodType<
19
+ UpdateClusterRegistryModelRequest,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ id: z.string(),
24
+ UpdateRegistryModelRequest:
25
+ components.UpdateRegistryModelRequest$inboundSchema,
26
+ }).transform((v) => {
27
+ return remap$(v, {
28
+ "UpdateRegistryModelRequest": "updateRegistryModelRequest",
29
+ });
30
+ });
31
+ /** @internal */
32
+ export type UpdateClusterRegistryModelRequest$Outbound = {
33
+ id: string;
34
+ UpdateRegistryModelRequest: components.UpdateRegistryModelRequest$Outbound;
35
+ };
36
+
37
+ /** @internal */
38
+ export const UpdateClusterRegistryModelRequest$outboundSchema: z.ZodType<
39
+ UpdateClusterRegistryModelRequest$Outbound,
40
+ z.ZodTypeDef,
41
+ UpdateClusterRegistryModelRequest
42
+ > = z.object({
43
+ id: z.string(),
44
+ updateRegistryModelRequest:
45
+ components.UpdateRegistryModelRequest$outboundSchema,
46
+ }).transform((v) => {
47
+ return remap$(v, {
48
+ updateRegistryModelRequest: "UpdateRegistryModelRequest",
49
+ });
50
+ });
51
+
52
+ export function updateClusterRegistryModelRequestToJSON(
53
+ updateClusterRegistryModelRequest: UpdateClusterRegistryModelRequest,
54
+ ): string {
55
+ return JSON.stringify(
56
+ UpdateClusterRegistryModelRequest$outboundSchema.parse(
57
+ updateClusterRegistryModelRequest,
58
+ ),
59
+ );
60
+ }
61
+ export function updateClusterRegistryModelRequestFromJSON(
62
+ jsonString: string,
63
+ ): SafeParseResult<UpdateClusterRegistryModelRequest, SDKValidationError> {
64
+ return safeParse(
65
+ jsonString,
66
+ (x) => UpdateClusterRegistryModelRequest$inboundSchema.parse(JSON.parse(x)),
67
+ `Failed to parse 'UpdateClusterRegistryModelRequest' from JSON`,
68
+ );
69
+ }
@@ -170,6 +170,7 @@ export * from "./llmMemoryStoresList.js";
170
170
  export * from "./llmMemoryStoresListEntries.js";
171
171
  export * from "./llmMemoryStoresUpdate.js";
172
172
  export * from "./llmMemoryStoresUpdateEntry.js";
173
+ export * from "./llmModelsAddClusterRegistryModel.js";
173
174
  export * from "./llmModelsAddRegistryModel.js";
174
175
  export * from "./llmModelsCheckRegistryModelHealth.js";
175
176
  export * from "./llmModelsClearClusterPrice.js";
@@ -177,20 +178,25 @@ export * from "./llmModelsClearOrgPrice.js";
177
178
  export * from "./llmModelsDeleteOrgAutoModel.js";
178
179
  export * from "./llmModelsGet.js";
179
180
  export * from "./llmModelsGetClusterCurrency.js";
181
+ export * from "./llmModelsGetClusterRegistryModel.js";
180
182
  export * from "./llmModelsGetRegistryModel.js";
181
183
  export * from "./llmModelsList.js";
182
184
  export * from "./llmModelsListClusterPrices.js";
183
185
  export * from "./llmModelsListClusterRegistry.js";
186
+ export * from "./llmModelsListClusterRegistryModels.js";
184
187
  export * from "./llmModelsListClusterRegistryOrgGrants.js";
188
+ export * from "./llmModelsListEffectivePrices.js";
185
189
  export * from "./llmModelsListOrgAutoModels.js";
186
190
  export * from "./llmModelsListOrgPrices.js";
187
191
  export * from "./llmModelsListRegistryModels.js";
188
192
  export * from "./llmModelsPutClusterRegistryOrgGrants.js";
189
193
  export * from "./llmModelsPutOrgAutoModel.js";
194
+ export * from "./llmModelsRemoveClusterRegistryModel.js";
190
195
  export * from "./llmModelsRemoveRegistryModel.js";
191
196
  export * from "./llmModelsSetClusterCurrency.js";
192
197
  export * from "./llmModelsSetClusterPrice.js";
193
198
  export * from "./llmModelsSetOrgPrice.js";
199
+ export * from "./llmModelsUpdateClusterRegistryModel.js";
194
200
  export * from "./llmModelsUpdateRegistryModel.js";
195
201
  export * from "./llmPromptsCreate.js";
196
202
  export * from "./llmPromptsCreateVersion.js";
@@ -0,0 +1,109 @@
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 { llmModelsAddClusterRegistryModel } from "../funcs/llmModelsAddClusterRegistryModel.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 { unwrapAsync } from "../types/fp.js";
26
+ import { useSDKContext } from "./_context.js";
27
+ import { MutationHookOptions } from "./_types.js";
28
+
29
+ export type LlmModelsAddClusterRegistryModelMutationVariables = {
30
+ request: components.AddRegistryModelRequest;
31
+ options?: RequestOptions;
32
+ };
33
+
34
+ export type LlmModelsAddClusterRegistryModelMutationData =
35
+ components.RegistryModelResponse;
36
+
37
+ export type LlmModelsAddClusterRegistryModelMutationError =
38
+ | SDKError
39
+ | ResponseValidationError
40
+ | ConnectionError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | InvalidRequestError
44
+ | UnexpectedClientError
45
+ | SDKValidationError;
46
+
47
+ /**
48
+ * Add a cluster-owned model
49
+ *
50
+ * @remarks
51
+ * Adds an operator-owned, database-sourced model that a cluster admin can grant to orgs (see /models/cluster_registry). Cluster admin only.
52
+ */
53
+ export function useLlmModelsAddClusterRegistryModelMutation(
54
+ options?: MutationHookOptions<
55
+ LlmModelsAddClusterRegistryModelMutationData,
56
+ LlmModelsAddClusterRegistryModelMutationError,
57
+ LlmModelsAddClusterRegistryModelMutationVariables
58
+ >,
59
+ ): UseMutationResult<
60
+ LlmModelsAddClusterRegistryModelMutationData,
61
+ LlmModelsAddClusterRegistryModelMutationError,
62
+ LlmModelsAddClusterRegistryModelMutationVariables
63
+ > {
64
+ const client = useSDKContext();
65
+ return useMutation({
66
+ ...buildLlmModelsAddClusterRegistryModelMutation(client, options),
67
+ ...options,
68
+ });
69
+ }
70
+
71
+ export function mutationKeyLlmModelsAddClusterRegistryModel(): MutationKey {
72
+ return ["@meetkai/mka1", "models", "addClusterRegistryModel"];
73
+ }
74
+
75
+ export function buildLlmModelsAddClusterRegistryModelMutation(
76
+ client$: SDKCore,
77
+ hookOptions?: RequestOptions,
78
+ ): {
79
+ mutationKey: MutationKey;
80
+ mutationFn: (
81
+ variables: LlmModelsAddClusterRegistryModelMutationVariables,
82
+ ) => Promise<LlmModelsAddClusterRegistryModelMutationData>;
83
+ } {
84
+ return {
85
+ mutationKey: mutationKeyLlmModelsAddClusterRegistryModel(),
86
+ mutationFn: function llmModelsAddClusterRegistryModelMutationFn({
87
+ request,
88
+ options,
89
+ }): Promise<LlmModelsAddClusterRegistryModelMutationData> {
90
+ const mergedOptions = {
91
+ ...hookOptions,
92
+ ...options,
93
+ fetchOptions: {
94
+ ...hookOptions?.fetchOptions,
95
+ ...options?.fetchOptions,
96
+ signal: combineSignals(
97
+ hookOptions?.fetchOptions?.signal,
98
+ options?.fetchOptions?.signal,
99
+ ),
100
+ },
101
+ };
102
+ return unwrapAsync(llmModelsAddClusterRegistryModel(
103
+ client$,
104
+ request,
105
+ mergedOptions,
106
+ ));
107
+ },
108
+ };
109
+ }
@@ -0,0 +1,72 @@
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 { llmModelsGetClusterRegistryModel } from "../funcs/llmModelsGetClusterRegistryModel.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 LlmModelsGetClusterRegistryModelQueryData =
18
+ components.RegistryModelResponse;
19
+
20
+ export function prefetchLlmModelsGetClusterRegistryModel(
21
+ queryClient: QueryClient,
22
+ client$: SDKCore,
23
+ request: operations.GetClusterRegistryModelRequest,
24
+ options?: RequestOptions,
25
+ ): Promise<void> {
26
+ return queryClient.prefetchQuery({
27
+ ...buildLlmModelsGetClusterRegistryModelQuery(
28
+ client$,
29
+ request,
30
+ options,
31
+ ),
32
+ });
33
+ }
34
+
35
+ export function buildLlmModelsGetClusterRegistryModelQuery(
36
+ client$: SDKCore,
37
+ request: operations.GetClusterRegistryModelRequest,
38
+ options?: RequestOptions,
39
+ ): {
40
+ queryKey: QueryKey;
41
+ queryFn: (
42
+ context: QueryFunctionContext,
43
+ ) => Promise<LlmModelsGetClusterRegistryModelQueryData>;
44
+ } {
45
+ return {
46
+ queryKey: queryKeyLlmModelsGetClusterRegistryModel(request.id),
47
+ queryFn: async function llmModelsGetClusterRegistryModelQueryFn(
48
+ ctx,
49
+ ): Promise<LlmModelsGetClusterRegistryModelQueryData> {
50
+ const sig = combineSignals(
51
+ ctx.signal,
52
+ options?.signal,
53
+ options?.fetchOptions?.signal,
54
+ );
55
+ const mergedOptions = {
56
+ ...options?.fetchOptions,
57
+ ...options,
58
+ signal: sig,
59
+ };
60
+
61
+ return unwrapAsync(llmModelsGetClusterRegistryModel(
62
+ client$,
63
+ request,
64
+ mergedOptions,
65
+ ));
66
+ },
67
+ };
68
+ }
69
+
70
+ export function queryKeyLlmModelsGetClusterRegistryModel(id: string): QueryKey {
71
+ return ["@meetkai/mka1", "models", "getClusterRegistryModel", id];
72
+ }
@@ -0,0 +1,144 @@
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
+ buildLlmModelsGetClusterRegistryModelQuery,
32
+ LlmModelsGetClusterRegistryModelQueryData,
33
+ prefetchLlmModelsGetClusterRegistryModel,
34
+ queryKeyLlmModelsGetClusterRegistryModel,
35
+ } from "./llmModelsGetClusterRegistryModel.core.js";
36
+ export {
37
+ buildLlmModelsGetClusterRegistryModelQuery,
38
+ type LlmModelsGetClusterRegistryModelQueryData,
39
+ prefetchLlmModelsGetClusterRegistryModel,
40
+ queryKeyLlmModelsGetClusterRegistryModel,
41
+ };
42
+
43
+ export type LlmModelsGetClusterRegistryModelQueryError =
44
+ | SDKError
45
+ | ResponseValidationError
46
+ | ConnectionError
47
+ | RequestAbortedError
48
+ | RequestTimeoutError
49
+ | InvalidRequestError
50
+ | UnexpectedClientError
51
+ | SDKValidationError;
52
+
53
+ /**
54
+ * Get a cluster-owned model
55
+ *
56
+ * @remarks
57
+ * Returns a single operator-owned, API-added model. Cluster admin only.
58
+ */
59
+ export function useLlmModelsGetClusterRegistryModel(
60
+ request: operations.GetClusterRegistryModelRequest,
61
+ options?: QueryHookOptions<
62
+ LlmModelsGetClusterRegistryModelQueryData,
63
+ LlmModelsGetClusterRegistryModelQueryError
64
+ >,
65
+ ): UseQueryResult<
66
+ LlmModelsGetClusterRegistryModelQueryData,
67
+ LlmModelsGetClusterRegistryModelQueryError
68
+ > {
69
+ const client = useSDKContext();
70
+ return useQuery({
71
+ ...buildLlmModelsGetClusterRegistryModelQuery(
72
+ client,
73
+ request,
74
+ options,
75
+ ),
76
+ ...options,
77
+ });
78
+ }
79
+
80
+ /**
81
+ * Get a cluster-owned model
82
+ *
83
+ * @remarks
84
+ * Returns a single operator-owned, API-added model. Cluster admin only.
85
+ */
86
+ export function useLlmModelsGetClusterRegistryModelSuspense(
87
+ request: operations.GetClusterRegistryModelRequest,
88
+ options?: SuspenseQueryHookOptions<
89
+ LlmModelsGetClusterRegistryModelQueryData,
90
+ LlmModelsGetClusterRegistryModelQueryError
91
+ >,
92
+ ): UseSuspenseQueryResult<
93
+ LlmModelsGetClusterRegistryModelQueryData,
94
+ LlmModelsGetClusterRegistryModelQueryError
95
+ > {
96
+ const client = useSDKContext();
97
+ return useSuspenseQuery({
98
+ ...buildLlmModelsGetClusterRegistryModelQuery(
99
+ client,
100
+ request,
101
+ options,
102
+ ),
103
+ ...options,
104
+ });
105
+ }
106
+
107
+ export function setLlmModelsGetClusterRegistryModelData(
108
+ client: QueryClient,
109
+ queryKeyBase: [id: string],
110
+ data: LlmModelsGetClusterRegistryModelQueryData,
111
+ ): LlmModelsGetClusterRegistryModelQueryData | undefined {
112
+ const key = queryKeyLlmModelsGetClusterRegistryModel(...queryKeyBase);
113
+
114
+ return client.setQueryData<LlmModelsGetClusterRegistryModelQueryData>(
115
+ key,
116
+ data,
117
+ );
118
+ }
119
+
120
+ export function invalidateLlmModelsGetClusterRegistryModel(
121
+ client: QueryClient,
122
+ queryKeyBase: TupleToPrefixes<[id: string]>,
123
+ filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
124
+ ): Promise<void> {
125
+ return client.invalidateQueries({
126
+ ...filters,
127
+ queryKey: [
128
+ "@meetkai/mka1",
129
+ "models",
130
+ "getClusterRegistryModel",
131
+ ...queryKeyBase,
132
+ ],
133
+ });
134
+ }
135
+
136
+ export function invalidateAllLlmModelsGetClusterRegistryModel(
137
+ client: QueryClient,
138
+ filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
139
+ ): Promise<void> {
140
+ return client.invalidateQueries({
141
+ ...filters,
142
+ queryKey: ["@meetkai/mka1", "models", "getClusterRegistryModel"],
143
+ });
144
+ }
@@ -0,0 +1,67 @@
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 { llmModelsListClusterRegistryModels } from "../funcs/llmModelsListClusterRegistryModels.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 { unwrapAsync } from "../types/fp.js";
16
+ export type LlmModelsListClusterRegistryModelsQueryData =
17
+ components.RegistryModelListResponse;
18
+
19
+ export function prefetchLlmModelsListClusterRegistryModels(
20
+ queryClient: QueryClient,
21
+ client$: SDKCore,
22
+ options?: RequestOptions,
23
+ ): Promise<void> {
24
+ return queryClient.prefetchQuery({
25
+ ...buildLlmModelsListClusterRegistryModelsQuery(
26
+ client$,
27
+ options,
28
+ ),
29
+ });
30
+ }
31
+
32
+ export function buildLlmModelsListClusterRegistryModelsQuery(
33
+ client$: SDKCore,
34
+ options?: RequestOptions,
35
+ ): {
36
+ queryKey: QueryKey;
37
+ queryFn: (
38
+ context: QueryFunctionContext,
39
+ ) => Promise<LlmModelsListClusterRegistryModelsQueryData>;
40
+ } {
41
+ return {
42
+ queryKey: queryKeyLlmModelsListClusterRegistryModels(),
43
+ queryFn: async function llmModelsListClusterRegistryModelsQueryFn(
44
+ ctx,
45
+ ): Promise<LlmModelsListClusterRegistryModelsQueryData> {
46
+ const sig = combineSignals(
47
+ ctx.signal,
48
+ options?.signal,
49
+ options?.fetchOptions?.signal,
50
+ );
51
+ const mergedOptions = {
52
+ ...options?.fetchOptions,
53
+ ...options,
54
+ signal: sig,
55
+ };
56
+
57
+ return unwrapAsync(llmModelsListClusterRegistryModels(
58
+ client$,
59
+ mergedOptions,
60
+ ));
61
+ },
62
+ };
63
+ }
64
+
65
+ export function queryKeyLlmModelsListClusterRegistryModels(): QueryKey {
66
+ return ["@meetkai/mka1", "models", "listClusterRegistryModels"];
67
+ }