@meetkai/mka1 0.48.34 → 0.48.36

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 (326) hide show
  1. package/README.md +250 -232
  2. package/bin/mcp-server.js +1978 -1147
  3. package/bin/mcp-server.js.map +29 -11
  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/createclusterinvite.d.ts +2 -0
  75. package/dist/commonjs/models/operations/createclusterinvite.d.ts.map +1 -1
  76. package/dist/commonjs/models/operations/createclusterinvite.js +2 -0
  77. package/dist/commonjs/models/operations/createclusterinvite.js.map +1 -1
  78. package/dist/commonjs/models/operations/getclusterregistrymodel.d.ts +17 -0
  79. package/dist/commonjs/models/operations/getclusterregistrymodel.d.ts.map +1 -0
  80. package/dist/commonjs/models/operations/getclusterregistrymodel.js +58 -0
  81. package/dist/commonjs/models/operations/getclusterregistrymodel.js.map +1 -0
  82. package/dist/commonjs/models/operations/index.d.ts +4 -0
  83. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  84. package/dist/commonjs/models/operations/index.js +4 -0
  85. package/dist/commonjs/models/operations/index.js.map +1 -1
  86. package/dist/commonjs/models/operations/listclusterinvites.d.ts +2 -0
  87. package/dist/commonjs/models/operations/listclusterinvites.d.ts.map +1 -1
  88. package/dist/commonjs/models/operations/listclusterinvites.js +2 -0
  89. package/dist/commonjs/models/operations/listclusterinvites.js.map +1 -1
  90. package/dist/commonjs/models/operations/listeffectiveprices.d.ts +20 -0
  91. package/dist/commonjs/models/operations/listeffectiveprices.d.ts.map +1 -0
  92. package/dist/commonjs/models/operations/listeffectiveprices.js +67 -0
  93. package/dist/commonjs/models/operations/listeffectiveprices.js.map +1 -0
  94. package/dist/commonjs/models/operations/removeclusterregistrymodel.d.ts +17 -0
  95. package/dist/commonjs/models/operations/removeclusterregistrymodel.d.ts.map +1 -0
  96. package/dist/commonjs/models/operations/removeclusterregistrymodel.js +58 -0
  97. package/dist/commonjs/models/operations/removeclusterregistrymodel.js.map +1 -0
  98. package/dist/commonjs/models/operations/updateclusterregistrymodel.d.ts +20 -0
  99. package/dist/commonjs/models/operations/updateclusterregistrymodel.d.ts.map +1 -0
  100. package/dist/commonjs/models/operations/updateclusterregistrymodel.js +70 -0
  101. package/dist/commonjs/models/operations/updateclusterregistrymodel.js.map +1 -0
  102. package/dist/commonjs/react-query/index.d.ts +6 -0
  103. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  104. package/dist/commonjs/react-query/index.js +6 -0
  105. package/dist/commonjs/react-query/index.js.map +1 -1
  106. package/dist/commonjs/react-query/llmModelsAddClusterRegistryModel.d.ts +28 -0
  107. package/dist/commonjs/react-query/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
  108. package/dist/commonjs/react-query/llmModelsAddClusterRegistryModel.js +47 -0
  109. package/dist/commonjs/react-query/llmModelsAddClusterRegistryModel.js.map +1 -0
  110. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.core.d.ts +13 -0
  111. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.core.d.ts.map +1 -0
  112. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.core.js +34 -0
  113. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.core.js.map +1 -0
  114. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.d.ts +28 -0
  115. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
  116. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.js +65 -0
  117. package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.js.map +1 -0
  118. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.core.d.ts +12 -0
  119. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.core.d.ts.map +1 -0
  120. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.core.js +34 -0
  121. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.core.js.map +1 -0
  122. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.d.ts +26 -0
  123. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.d.ts.map +1 -0
  124. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.js +53 -0
  125. package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.js.map +1 -0
  126. package/dist/commonjs/react-query/llmModelsListEffectivePrices.core.d.ts +15 -0
  127. package/dist/commonjs/react-query/llmModelsListEffectivePrices.core.d.ts.map +1 -0
  128. package/dist/commonjs/react-query/llmModelsListEffectivePrices.core.js +36 -0
  129. package/dist/commonjs/react-query/llmModelsListEffectivePrices.core.js.map +1 -0
  130. package/dist/commonjs/react-query/llmModelsListEffectivePrices.d.ts +34 -0
  131. package/dist/commonjs/react-query/llmModelsListEffectivePrices.d.ts.map +1 -0
  132. package/dist/commonjs/react-query/llmModelsListEffectivePrices.js +65 -0
  133. package/dist/commonjs/react-query/llmModelsListEffectivePrices.js.map +1 -0
  134. package/dist/commonjs/react-query/llmModelsRemoveClusterRegistryModel.d.ts +29 -0
  135. package/dist/commonjs/react-query/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
  136. package/dist/commonjs/react-query/llmModelsRemoveClusterRegistryModel.js +47 -0
  137. package/dist/commonjs/react-query/llmModelsRemoveClusterRegistryModel.js.map +1 -0
  138. package/dist/commonjs/react-query/llmModelsUpdateClusterRegistryModel.d.ts +29 -0
  139. package/dist/commonjs/react-query/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
  140. package/dist/commonjs/react-query/llmModelsUpdateClusterRegistryModel.js +47 -0
  141. package/dist/commonjs/react-query/llmModelsUpdateClusterRegistryModel.js.map +1 -0
  142. package/dist/commonjs/sdk/models.d.ts +42 -0
  143. package/dist/commonjs/sdk/models.d.ts.map +1 -1
  144. package/dist/commonjs/sdk/models.js +60 -0
  145. package/dist/commonjs/sdk/models.js.map +1 -1
  146. package/dist/esm/funcs/llmModelsAddClusterRegistryModel.d.ts +17 -0
  147. package/dist/esm/funcs/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
  148. package/dist/esm/funcs/llmModelsAddClusterRegistryModel.js +89 -0
  149. package/dist/esm/funcs/llmModelsAddClusterRegistryModel.js.map +1 -0
  150. package/dist/esm/funcs/llmModelsGetClusterRegistryModel.d.ts +18 -0
  151. package/dist/esm/funcs/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
  152. package/dist/esm/funcs/llmModelsGetClusterRegistryModel.js +95 -0
  153. package/dist/esm/funcs/llmModelsGetClusterRegistryModel.js.map +1 -0
  154. package/dist/esm/funcs/llmModelsListClusterRegistryModels.d.ts +17 -0
  155. package/dist/esm/funcs/llmModelsListClusterRegistryModels.d.ts.map +1 -0
  156. package/dist/esm/funcs/llmModelsListClusterRegistryModels.js +79 -0
  157. package/dist/esm/funcs/llmModelsListClusterRegistryModels.js.map +1 -0
  158. package/dist/esm/funcs/llmModelsListEffectivePrices.d.ts +18 -0
  159. package/dist/esm/funcs/llmModelsListEffectivePrices.d.ts.map +1 -0
  160. package/dist/esm/funcs/llmModelsListEffectivePrices.js +90 -0
  161. package/dist/esm/funcs/llmModelsListEffectivePrices.js.map +1 -0
  162. package/dist/esm/funcs/llmModelsRemoveClusterRegistryModel.d.ts +18 -0
  163. package/dist/esm/funcs/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
  164. package/dist/esm/funcs/llmModelsRemoveClusterRegistryModel.js +95 -0
  165. package/dist/esm/funcs/llmModelsRemoveClusterRegistryModel.js.map +1 -0
  166. package/dist/esm/funcs/llmModelsUpdateClusterRegistryModel.d.ts +18 -0
  167. package/dist/esm/funcs/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
  168. package/dist/esm/funcs/llmModelsUpdateClusterRegistryModel.js +98 -0
  169. package/dist/esm/funcs/llmModelsUpdateClusterRegistryModel.js.map +1 -0
  170. package/dist/esm/lib/config.d.ts +2 -2
  171. package/dist/esm/lib/config.js +2 -2
  172. package/dist/esm/mcp-server/mcp-server.js +1 -1
  173. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  174. package/dist/esm/mcp-server/server.js +13 -1
  175. package/dist/esm/mcp-server/server.js.map +1 -1
  176. package/dist/esm/mcp-server/tools/llmModelsAddClusterRegistryModel.d.ts +8 -0
  177. package/dist/esm/mcp-server/tools/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
  178. package/dist/esm/mcp-server/tools/llmModelsAddClusterRegistryModel.js +28 -0
  179. package/dist/esm/mcp-server/tools/llmModelsAddClusterRegistryModel.js.map +1 -0
  180. package/dist/esm/mcp-server/tools/llmModelsGetClusterRegistryModel.d.ts +8 -0
  181. package/dist/esm/mcp-server/tools/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
  182. package/dist/esm/mcp-server/tools/llmModelsGetClusterRegistryModel.js +28 -0
  183. package/dist/esm/mcp-server/tools/llmModelsGetClusterRegistryModel.js.map +1 -0
  184. package/dist/esm/mcp-server/tools/llmModelsListClusterRegistryModels.d.ts +3 -0
  185. package/dist/esm/mcp-server/tools/llmModelsListClusterRegistryModels.d.ts.map +1 -0
  186. package/dist/esm/mcp-server/tools/llmModelsListClusterRegistryModels.js +23 -0
  187. package/dist/esm/mcp-server/tools/llmModelsListClusterRegistryModels.js.map +1 -0
  188. package/dist/esm/mcp-server/tools/llmModelsListEffectivePrices.d.ts +8 -0
  189. package/dist/esm/mcp-server/tools/llmModelsListEffectivePrices.d.ts.map +1 -0
  190. package/dist/esm/mcp-server/tools/llmModelsListEffectivePrices.js +28 -0
  191. package/dist/esm/mcp-server/tools/llmModelsListEffectivePrices.js.map +1 -0
  192. package/dist/esm/mcp-server/tools/llmModelsRemoveClusterRegistryModel.d.ts +8 -0
  193. package/dist/esm/mcp-server/tools/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
  194. package/dist/esm/mcp-server/tools/llmModelsRemoveClusterRegistryModel.js +28 -0
  195. package/dist/esm/mcp-server/tools/llmModelsRemoveClusterRegistryModel.js.map +1 -0
  196. package/dist/esm/mcp-server/tools/llmModelsUpdateClusterRegistryModel.d.ts +8 -0
  197. package/dist/esm/mcp-server/tools/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
  198. package/dist/esm/mcp-server/tools/llmModelsUpdateClusterRegistryModel.js +28 -0
  199. package/dist/esm/mcp-server/tools/llmModelsUpdateClusterRegistryModel.js.map +1 -0
  200. package/dist/esm/models/components/effectivepricerow.d.ts +65 -0
  201. package/dist/esm/models/components/effectivepricerow.d.ts.map +1 -0
  202. package/dist/esm/models/components/effectivepricerow.js +80 -0
  203. package/dist/esm/models/components/effectivepricerow.js.map +1 -0
  204. package/dist/esm/models/components/effectivepricesresponse.d.ts +22 -0
  205. package/dist/esm/models/components/effectivepricesresponse.d.ts.map +1 -0
  206. package/dist/esm/models/components/effectivepricesresponse.js +25 -0
  207. package/dist/esm/models/components/effectivepricesresponse.js.map +1 -0
  208. package/dist/esm/models/components/index.d.ts +2 -0
  209. package/dist/esm/models/components/index.d.ts.map +1 -1
  210. package/dist/esm/models/components/index.js +2 -0
  211. package/dist/esm/models/components/index.js.map +1 -1
  212. package/dist/esm/models/components/modelpricerow.d.ts +2 -2
  213. package/dist/esm/models/components/modelpricerow.d.ts.map +1 -1
  214. package/dist/esm/models/components/modelpricerow.js +2 -2
  215. package/dist/esm/models/components/modelpricerow.js.map +1 -1
  216. package/dist/esm/models/operations/createclusterinvite.d.ts +2 -0
  217. package/dist/esm/models/operations/createclusterinvite.d.ts.map +1 -1
  218. package/dist/esm/models/operations/createclusterinvite.js +2 -0
  219. package/dist/esm/models/operations/createclusterinvite.js.map +1 -1
  220. package/dist/esm/models/operations/getclusterregistrymodel.d.ts +17 -0
  221. package/dist/esm/models/operations/getclusterregistrymodel.d.ts.map +1 -0
  222. package/dist/esm/models/operations/getclusterregistrymodel.js +20 -0
  223. package/dist/esm/models/operations/getclusterregistrymodel.js.map +1 -0
  224. package/dist/esm/models/operations/index.d.ts +4 -0
  225. package/dist/esm/models/operations/index.d.ts.map +1 -1
  226. package/dist/esm/models/operations/index.js +4 -0
  227. package/dist/esm/models/operations/index.js.map +1 -1
  228. package/dist/esm/models/operations/listclusterinvites.d.ts +2 -0
  229. package/dist/esm/models/operations/listclusterinvites.d.ts.map +1 -1
  230. package/dist/esm/models/operations/listclusterinvites.js +2 -0
  231. package/dist/esm/models/operations/listclusterinvites.js.map +1 -1
  232. package/dist/esm/models/operations/listeffectiveprices.d.ts +20 -0
  233. package/dist/esm/models/operations/listeffectiveprices.d.ts.map +1 -0
  234. package/dist/esm/models/operations/listeffectiveprices.js +29 -0
  235. package/dist/esm/models/operations/listeffectiveprices.js.map +1 -0
  236. package/dist/esm/models/operations/removeclusterregistrymodel.d.ts +17 -0
  237. package/dist/esm/models/operations/removeclusterregistrymodel.d.ts.map +1 -0
  238. package/dist/esm/models/operations/removeclusterregistrymodel.js +20 -0
  239. package/dist/esm/models/operations/removeclusterregistrymodel.js.map +1 -0
  240. package/dist/esm/models/operations/updateclusterregistrymodel.d.ts +20 -0
  241. package/dist/esm/models/operations/updateclusterregistrymodel.d.ts.map +1 -0
  242. package/dist/esm/models/operations/updateclusterregistrymodel.js +32 -0
  243. package/dist/esm/models/operations/updateclusterregistrymodel.js.map +1 -0
  244. package/dist/esm/react-query/index.d.ts +6 -0
  245. package/dist/esm/react-query/index.d.ts.map +1 -1
  246. package/dist/esm/react-query/index.js +6 -0
  247. package/dist/esm/react-query/index.js.map +1 -1
  248. package/dist/esm/react-query/llmModelsAddClusterRegistryModel.d.ts +28 -0
  249. package/dist/esm/react-query/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
  250. package/dist/esm/react-query/llmModelsAddClusterRegistryModel.js +42 -0
  251. package/dist/esm/react-query/llmModelsAddClusterRegistryModel.js.map +1 -0
  252. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.core.d.ts +13 -0
  253. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.core.d.ts.map +1 -0
  254. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.core.js +29 -0
  255. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.core.js.map +1 -0
  256. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.d.ts +28 -0
  257. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
  258. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.js +55 -0
  259. package/dist/esm/react-query/llmModelsGetClusterRegistryModel.js.map +1 -0
  260. package/dist/esm/react-query/llmModelsListClusterRegistryModels.core.d.ts +12 -0
  261. package/dist/esm/react-query/llmModelsListClusterRegistryModels.core.d.ts.map +1 -0
  262. package/dist/esm/react-query/llmModelsListClusterRegistryModels.core.js +29 -0
  263. package/dist/esm/react-query/llmModelsListClusterRegistryModels.core.js.map +1 -0
  264. package/dist/esm/react-query/llmModelsListClusterRegistryModels.d.ts +26 -0
  265. package/dist/esm/react-query/llmModelsListClusterRegistryModels.d.ts.map +1 -0
  266. package/dist/esm/react-query/llmModelsListClusterRegistryModels.js +44 -0
  267. package/dist/esm/react-query/llmModelsListClusterRegistryModels.js.map +1 -0
  268. package/dist/esm/react-query/llmModelsListEffectivePrices.core.d.ts +15 -0
  269. package/dist/esm/react-query/llmModelsListEffectivePrices.core.d.ts.map +1 -0
  270. package/dist/esm/react-query/llmModelsListEffectivePrices.core.js +31 -0
  271. package/dist/esm/react-query/llmModelsListEffectivePrices.core.js.map +1 -0
  272. package/dist/esm/react-query/llmModelsListEffectivePrices.d.ts +34 -0
  273. package/dist/esm/react-query/llmModelsListEffectivePrices.d.ts.map +1 -0
  274. package/dist/esm/react-query/llmModelsListEffectivePrices.js +55 -0
  275. package/dist/esm/react-query/llmModelsListEffectivePrices.js.map +1 -0
  276. package/dist/esm/react-query/llmModelsRemoveClusterRegistryModel.d.ts +29 -0
  277. package/dist/esm/react-query/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
  278. package/dist/esm/react-query/llmModelsRemoveClusterRegistryModel.js +42 -0
  279. package/dist/esm/react-query/llmModelsRemoveClusterRegistryModel.js.map +1 -0
  280. package/dist/esm/react-query/llmModelsUpdateClusterRegistryModel.d.ts +29 -0
  281. package/dist/esm/react-query/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
  282. package/dist/esm/react-query/llmModelsUpdateClusterRegistryModel.js +42 -0
  283. package/dist/esm/react-query/llmModelsUpdateClusterRegistryModel.js.map +1 -0
  284. package/dist/esm/sdk/models.d.ts +42 -0
  285. package/dist/esm/sdk/models.d.ts.map +1 -1
  286. package/dist/esm/sdk/models.js +60 -0
  287. package/dist/esm/sdk/models.js.map +1 -1
  288. package/jsr.json +1 -1
  289. package/package.json +1 -1
  290. package/src/funcs/llmModelsAddClusterRegistryModel.ts +172 -0
  291. package/src/funcs/llmModelsGetClusterRegistryModel.ts +181 -0
  292. package/src/funcs/llmModelsListClusterRegistryModels.ts +154 -0
  293. package/src/funcs/llmModelsListEffectivePrices.ts +178 -0
  294. package/src/funcs/llmModelsRemoveClusterRegistryModel.ts +181 -0
  295. package/src/funcs/llmModelsUpdateClusterRegistryModel.ts +184 -0
  296. package/src/lib/config.ts +2 -2
  297. package/src/mcp-server/mcp-server.ts +1 -1
  298. package/src/mcp-server/server.ts +13 -1
  299. package/src/mcp-server/tools/llmModelsAddClusterRegistryModel.ts +39 -0
  300. package/src/mcp-server/tools/llmModelsGetClusterRegistryModel.ts +39 -0
  301. package/src/mcp-server/tools/llmModelsListClusterRegistryModels.ts +30 -0
  302. package/src/mcp-server/tools/llmModelsListEffectivePrices.ts +37 -0
  303. package/src/mcp-server/tools/llmModelsRemoveClusterRegistryModel.ts +39 -0
  304. package/src/mcp-server/tools/llmModelsUpdateClusterRegistryModel.ts +39 -0
  305. package/src/models/components/effectivepricerow.ts +170 -0
  306. package/src/models/components/effectivepricesresponse.ts +65 -0
  307. package/src/models/components/index.ts +2 -0
  308. package/src/models/components/modelpricerow.ts +4 -4
  309. package/src/models/operations/createclusterinvite.ts +4 -0
  310. package/src/models/operations/getclusterregistrymodel.ts +53 -0
  311. package/src/models/operations/index.ts +4 -0
  312. package/src/models/operations/listclusterinvites.ts +4 -0
  313. package/src/models/operations/listeffectiveprices.ts +63 -0
  314. package/src/models/operations/removeclusterregistrymodel.ts +53 -0
  315. package/src/models/operations/updateclusterregistrymodel.ts +69 -0
  316. package/src/react-query/index.ts +6 -0
  317. package/src/react-query/llmModelsAddClusterRegistryModel.ts +109 -0
  318. package/src/react-query/llmModelsGetClusterRegistryModel.core.ts +72 -0
  319. package/src/react-query/llmModelsGetClusterRegistryModel.ts +144 -0
  320. package/src/react-query/llmModelsListClusterRegistryModels.core.ts +67 -0
  321. package/src/react-query/llmModelsListClusterRegistryModels.ts +118 -0
  322. package/src/react-query/llmModelsListEffectivePrices.core.ts +76 -0
  323. package/src/react-query/llmModelsListEffectivePrices.ts +143 -0
  324. package/src/react-query/llmModelsRemoveClusterRegistryModel.ts +110 -0
  325. package/src/react-query/llmModelsUpdateClusterRegistryModel.ts +110 -0
  326. package/src/sdk/models.ts +106 -0
@@ -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
+ }
@@ -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
+ }