@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.
- package/README.md +250 -232
- package/bin/mcp-server.js +1978 -1147
- package/bin/mcp-server.js.map +29 -11
- package/dist/commonjs/funcs/llmModelsAddClusterRegistryModel.d.ts +17 -0
- package/dist/commonjs/funcs/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
- package/dist/commonjs/funcs/llmModelsAddClusterRegistryModel.js +125 -0
- package/dist/commonjs/funcs/llmModelsAddClusterRegistryModel.js.map +1 -0
- package/dist/commonjs/funcs/llmModelsGetClusterRegistryModel.d.ts +18 -0
- package/dist/commonjs/funcs/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
- package/dist/commonjs/funcs/llmModelsGetClusterRegistryModel.js +131 -0
- package/dist/commonjs/funcs/llmModelsGetClusterRegistryModel.js.map +1 -0
- package/dist/commonjs/funcs/llmModelsListClusterRegistryModels.d.ts +17 -0
- package/dist/commonjs/funcs/llmModelsListClusterRegistryModels.d.ts.map +1 -0
- package/dist/commonjs/funcs/llmModelsListClusterRegistryModels.js +115 -0
- package/dist/commonjs/funcs/llmModelsListClusterRegistryModels.js.map +1 -0
- package/dist/commonjs/funcs/llmModelsListEffectivePrices.d.ts +18 -0
- package/dist/commonjs/funcs/llmModelsListEffectivePrices.d.ts.map +1 -0
- package/dist/commonjs/funcs/llmModelsListEffectivePrices.js +126 -0
- package/dist/commonjs/funcs/llmModelsListEffectivePrices.js.map +1 -0
- package/dist/commonjs/funcs/llmModelsRemoveClusterRegistryModel.d.ts +18 -0
- package/dist/commonjs/funcs/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
- package/dist/commonjs/funcs/llmModelsRemoveClusterRegistryModel.js +131 -0
- package/dist/commonjs/funcs/llmModelsRemoveClusterRegistryModel.js.map +1 -0
- package/dist/commonjs/funcs/llmModelsUpdateClusterRegistryModel.d.ts +18 -0
- package/dist/commonjs/funcs/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
- package/dist/commonjs/funcs/llmModelsUpdateClusterRegistryModel.js +134 -0
- package/dist/commonjs/funcs/llmModelsUpdateClusterRegistryModel.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +13 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmModelsAddClusterRegistryModel.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsAddClusterRegistryModel.js +64 -0
- package/dist/commonjs/mcp-server/tools/llmModelsAddClusterRegistryModel.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsGetClusterRegistryModel.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsGetClusterRegistryModel.js +64 -0
- package/dist/commonjs/mcp-server/tools/llmModelsGetClusterRegistryModel.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsListClusterRegistryModels.d.ts +3 -0
- package/dist/commonjs/mcp-server/tools/llmModelsListClusterRegistryModels.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsListClusterRegistryModels.js +26 -0
- package/dist/commonjs/mcp-server/tools/llmModelsListClusterRegistryModels.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsListEffectivePrices.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/llmModelsListEffectivePrices.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsListEffectivePrices.js +64 -0
- package/dist/commonjs/mcp-server/tools/llmModelsListEffectivePrices.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsRemoveClusterRegistryModel.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsRemoveClusterRegistryModel.js +64 -0
- package/dist/commonjs/mcp-server/tools/llmModelsRemoveClusterRegistryModel.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsUpdateClusterRegistryModel.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsUpdateClusterRegistryModel.js +64 -0
- package/dist/commonjs/mcp-server/tools/llmModelsUpdateClusterRegistryModel.js.map +1 -0
- package/dist/commonjs/models/components/effectivepricerow.d.ts +65 -0
- package/dist/commonjs/models/components/effectivepricerow.d.ts.map +1 -0
- package/dist/commonjs/models/components/effectivepricerow.js +120 -0
- package/dist/commonjs/models/components/effectivepricerow.js.map +1 -0
- package/dist/commonjs/models/components/effectivepricesresponse.d.ts +22 -0
- package/dist/commonjs/models/components/effectivepricesresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/effectivepricesresponse.js +63 -0
- package/dist/commonjs/models/components/effectivepricesresponse.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/modelpricerow.d.ts +2 -2
- package/dist/commonjs/models/components/modelpricerow.d.ts.map +1 -1
- package/dist/commonjs/models/components/modelpricerow.js +2 -2
- package/dist/commonjs/models/components/modelpricerow.js.map +1 -1
- package/dist/commonjs/models/operations/createclusterinvite.d.ts +2 -0
- package/dist/commonjs/models/operations/createclusterinvite.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createclusterinvite.js +2 -0
- package/dist/commonjs/models/operations/createclusterinvite.js.map +1 -1
- package/dist/commonjs/models/operations/getclusterregistrymodel.d.ts +17 -0
- package/dist/commonjs/models/operations/getclusterregistrymodel.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getclusterregistrymodel.js +58 -0
- package/dist/commonjs/models/operations/getclusterregistrymodel.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listclusterinvites.d.ts +2 -0
- package/dist/commonjs/models/operations/listclusterinvites.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listclusterinvites.js +2 -0
- package/dist/commonjs/models/operations/listclusterinvites.js.map +1 -1
- package/dist/commonjs/models/operations/listeffectiveprices.d.ts +20 -0
- package/dist/commonjs/models/operations/listeffectiveprices.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listeffectiveprices.js +67 -0
- package/dist/commonjs/models/operations/listeffectiveprices.js.map +1 -0
- package/dist/commonjs/models/operations/removeclusterregistrymodel.d.ts +17 -0
- package/dist/commonjs/models/operations/removeclusterregistrymodel.d.ts.map +1 -0
- package/dist/commonjs/models/operations/removeclusterregistrymodel.js +58 -0
- package/dist/commonjs/models/operations/removeclusterregistrymodel.js.map +1 -0
- package/dist/commonjs/models/operations/updateclusterregistrymodel.d.ts +20 -0
- package/dist/commonjs/models/operations/updateclusterregistrymodel.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateclusterregistrymodel.js +70 -0
- package/dist/commonjs/models/operations/updateclusterregistrymodel.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +6 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +6 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/llmModelsAddClusterRegistryModel.d.ts +28 -0
- package/dist/commonjs/react-query/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmModelsAddClusterRegistryModel.js +47 -0
- package/dist/commonjs/react-query/llmModelsAddClusterRegistryModel.js.map +1 -0
- package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.core.d.ts +13 -0
- package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.core.js +34 -0
- package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.core.js.map +1 -0
- package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.d.ts +28 -0
- package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.js +65 -0
- package/dist/commonjs/react-query/llmModelsGetClusterRegistryModel.js.map +1 -0
- package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.core.d.ts +12 -0
- package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.core.js +34 -0
- package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.core.js.map +1 -0
- package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.d.ts +26 -0
- package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.js +53 -0
- package/dist/commonjs/react-query/llmModelsListClusterRegistryModels.js.map +1 -0
- package/dist/commonjs/react-query/llmModelsListEffectivePrices.core.d.ts +15 -0
- package/dist/commonjs/react-query/llmModelsListEffectivePrices.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmModelsListEffectivePrices.core.js +36 -0
- package/dist/commonjs/react-query/llmModelsListEffectivePrices.core.js.map +1 -0
- package/dist/commonjs/react-query/llmModelsListEffectivePrices.d.ts +34 -0
- package/dist/commonjs/react-query/llmModelsListEffectivePrices.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmModelsListEffectivePrices.js +65 -0
- package/dist/commonjs/react-query/llmModelsListEffectivePrices.js.map +1 -0
- package/dist/commonjs/react-query/llmModelsRemoveClusterRegistryModel.d.ts +29 -0
- package/dist/commonjs/react-query/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmModelsRemoveClusterRegistryModel.js +47 -0
- package/dist/commonjs/react-query/llmModelsRemoveClusterRegistryModel.js.map +1 -0
- package/dist/commonjs/react-query/llmModelsUpdateClusterRegistryModel.d.ts +29 -0
- package/dist/commonjs/react-query/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmModelsUpdateClusterRegistryModel.js +47 -0
- package/dist/commonjs/react-query/llmModelsUpdateClusterRegistryModel.js.map +1 -0
- package/dist/commonjs/sdk/models.d.ts +42 -0
- package/dist/commonjs/sdk/models.d.ts.map +1 -1
- package/dist/commonjs/sdk/models.js +60 -0
- package/dist/commonjs/sdk/models.js.map +1 -1
- package/dist/esm/funcs/llmModelsAddClusterRegistryModel.d.ts +17 -0
- package/dist/esm/funcs/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
- package/dist/esm/funcs/llmModelsAddClusterRegistryModel.js +89 -0
- package/dist/esm/funcs/llmModelsAddClusterRegistryModel.js.map +1 -0
- package/dist/esm/funcs/llmModelsGetClusterRegistryModel.d.ts +18 -0
- package/dist/esm/funcs/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
- package/dist/esm/funcs/llmModelsGetClusterRegistryModel.js +95 -0
- package/dist/esm/funcs/llmModelsGetClusterRegistryModel.js.map +1 -0
- package/dist/esm/funcs/llmModelsListClusterRegistryModels.d.ts +17 -0
- package/dist/esm/funcs/llmModelsListClusterRegistryModels.d.ts.map +1 -0
- package/dist/esm/funcs/llmModelsListClusterRegistryModels.js +79 -0
- package/dist/esm/funcs/llmModelsListClusterRegistryModels.js.map +1 -0
- package/dist/esm/funcs/llmModelsListEffectivePrices.d.ts +18 -0
- package/dist/esm/funcs/llmModelsListEffectivePrices.d.ts.map +1 -0
- package/dist/esm/funcs/llmModelsListEffectivePrices.js +90 -0
- package/dist/esm/funcs/llmModelsListEffectivePrices.js.map +1 -0
- package/dist/esm/funcs/llmModelsRemoveClusterRegistryModel.d.ts +18 -0
- package/dist/esm/funcs/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
- package/dist/esm/funcs/llmModelsRemoveClusterRegistryModel.js +95 -0
- package/dist/esm/funcs/llmModelsRemoveClusterRegistryModel.js.map +1 -0
- package/dist/esm/funcs/llmModelsUpdateClusterRegistryModel.d.ts +18 -0
- package/dist/esm/funcs/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
- package/dist/esm/funcs/llmModelsUpdateClusterRegistryModel.js +98 -0
- package/dist/esm/funcs/llmModelsUpdateClusterRegistryModel.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +13 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmModelsAddClusterRegistryModel.d.ts +8 -0
- package/dist/esm/mcp-server/tools/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsAddClusterRegistryModel.js +28 -0
- package/dist/esm/mcp-server/tools/llmModelsAddClusterRegistryModel.js.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsGetClusterRegistryModel.d.ts +8 -0
- package/dist/esm/mcp-server/tools/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsGetClusterRegistryModel.js +28 -0
- package/dist/esm/mcp-server/tools/llmModelsGetClusterRegistryModel.js.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsListClusterRegistryModels.d.ts +3 -0
- package/dist/esm/mcp-server/tools/llmModelsListClusterRegistryModels.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsListClusterRegistryModels.js +23 -0
- package/dist/esm/mcp-server/tools/llmModelsListClusterRegistryModels.js.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsListEffectivePrices.d.ts +8 -0
- package/dist/esm/mcp-server/tools/llmModelsListEffectivePrices.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsListEffectivePrices.js +28 -0
- package/dist/esm/mcp-server/tools/llmModelsListEffectivePrices.js.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsRemoveClusterRegistryModel.d.ts +8 -0
- package/dist/esm/mcp-server/tools/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsRemoveClusterRegistryModel.js +28 -0
- package/dist/esm/mcp-server/tools/llmModelsRemoveClusterRegistryModel.js.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsUpdateClusterRegistryModel.d.ts +8 -0
- package/dist/esm/mcp-server/tools/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsUpdateClusterRegistryModel.js +28 -0
- package/dist/esm/mcp-server/tools/llmModelsUpdateClusterRegistryModel.js.map +1 -0
- package/dist/esm/models/components/effectivepricerow.d.ts +65 -0
- package/dist/esm/models/components/effectivepricerow.d.ts.map +1 -0
- package/dist/esm/models/components/effectivepricerow.js +80 -0
- package/dist/esm/models/components/effectivepricerow.js.map +1 -0
- package/dist/esm/models/components/effectivepricesresponse.d.ts +22 -0
- package/dist/esm/models/components/effectivepricesresponse.d.ts.map +1 -0
- package/dist/esm/models/components/effectivepricesresponse.js +25 -0
- package/dist/esm/models/components/effectivepricesresponse.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/modelpricerow.d.ts +2 -2
- package/dist/esm/models/components/modelpricerow.d.ts.map +1 -1
- package/dist/esm/models/components/modelpricerow.js +2 -2
- package/dist/esm/models/components/modelpricerow.js.map +1 -1
- package/dist/esm/models/operations/createclusterinvite.d.ts +2 -0
- package/dist/esm/models/operations/createclusterinvite.d.ts.map +1 -1
- package/dist/esm/models/operations/createclusterinvite.js +2 -0
- package/dist/esm/models/operations/createclusterinvite.js.map +1 -1
- package/dist/esm/models/operations/getclusterregistrymodel.d.ts +17 -0
- package/dist/esm/models/operations/getclusterregistrymodel.d.ts.map +1 -0
- package/dist/esm/models/operations/getclusterregistrymodel.js +20 -0
- package/dist/esm/models/operations/getclusterregistrymodel.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listclusterinvites.d.ts +2 -0
- package/dist/esm/models/operations/listclusterinvites.d.ts.map +1 -1
- package/dist/esm/models/operations/listclusterinvites.js +2 -0
- package/dist/esm/models/operations/listclusterinvites.js.map +1 -1
- package/dist/esm/models/operations/listeffectiveprices.d.ts +20 -0
- package/dist/esm/models/operations/listeffectiveprices.d.ts.map +1 -0
- package/dist/esm/models/operations/listeffectiveprices.js +29 -0
- package/dist/esm/models/operations/listeffectiveprices.js.map +1 -0
- package/dist/esm/models/operations/removeclusterregistrymodel.d.ts +17 -0
- package/dist/esm/models/operations/removeclusterregistrymodel.d.ts.map +1 -0
- package/dist/esm/models/operations/removeclusterregistrymodel.js +20 -0
- package/dist/esm/models/operations/removeclusterregistrymodel.js.map +1 -0
- package/dist/esm/models/operations/updateclusterregistrymodel.d.ts +20 -0
- package/dist/esm/models/operations/updateclusterregistrymodel.d.ts.map +1 -0
- package/dist/esm/models/operations/updateclusterregistrymodel.js +32 -0
- package/dist/esm/models/operations/updateclusterregistrymodel.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +6 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +6 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/llmModelsAddClusterRegistryModel.d.ts +28 -0
- package/dist/esm/react-query/llmModelsAddClusterRegistryModel.d.ts.map +1 -0
- package/dist/esm/react-query/llmModelsAddClusterRegistryModel.js +42 -0
- package/dist/esm/react-query/llmModelsAddClusterRegistryModel.js.map +1 -0
- package/dist/esm/react-query/llmModelsGetClusterRegistryModel.core.d.ts +13 -0
- package/dist/esm/react-query/llmModelsGetClusterRegistryModel.core.d.ts.map +1 -0
- package/dist/esm/react-query/llmModelsGetClusterRegistryModel.core.js +29 -0
- package/dist/esm/react-query/llmModelsGetClusterRegistryModel.core.js.map +1 -0
- package/dist/esm/react-query/llmModelsGetClusterRegistryModel.d.ts +28 -0
- package/dist/esm/react-query/llmModelsGetClusterRegistryModel.d.ts.map +1 -0
- package/dist/esm/react-query/llmModelsGetClusterRegistryModel.js +55 -0
- package/dist/esm/react-query/llmModelsGetClusterRegistryModel.js.map +1 -0
- package/dist/esm/react-query/llmModelsListClusterRegistryModels.core.d.ts +12 -0
- package/dist/esm/react-query/llmModelsListClusterRegistryModels.core.d.ts.map +1 -0
- package/dist/esm/react-query/llmModelsListClusterRegistryModels.core.js +29 -0
- package/dist/esm/react-query/llmModelsListClusterRegistryModels.core.js.map +1 -0
- package/dist/esm/react-query/llmModelsListClusterRegistryModels.d.ts +26 -0
- package/dist/esm/react-query/llmModelsListClusterRegistryModels.d.ts.map +1 -0
- package/dist/esm/react-query/llmModelsListClusterRegistryModels.js +44 -0
- package/dist/esm/react-query/llmModelsListClusterRegistryModels.js.map +1 -0
- package/dist/esm/react-query/llmModelsListEffectivePrices.core.d.ts +15 -0
- package/dist/esm/react-query/llmModelsListEffectivePrices.core.d.ts.map +1 -0
- package/dist/esm/react-query/llmModelsListEffectivePrices.core.js +31 -0
- package/dist/esm/react-query/llmModelsListEffectivePrices.core.js.map +1 -0
- package/dist/esm/react-query/llmModelsListEffectivePrices.d.ts +34 -0
- package/dist/esm/react-query/llmModelsListEffectivePrices.d.ts.map +1 -0
- package/dist/esm/react-query/llmModelsListEffectivePrices.js +55 -0
- package/dist/esm/react-query/llmModelsListEffectivePrices.js.map +1 -0
- package/dist/esm/react-query/llmModelsRemoveClusterRegistryModel.d.ts +29 -0
- package/dist/esm/react-query/llmModelsRemoveClusterRegistryModel.d.ts.map +1 -0
- package/dist/esm/react-query/llmModelsRemoveClusterRegistryModel.js +42 -0
- package/dist/esm/react-query/llmModelsRemoveClusterRegistryModel.js.map +1 -0
- package/dist/esm/react-query/llmModelsUpdateClusterRegistryModel.d.ts +29 -0
- package/dist/esm/react-query/llmModelsUpdateClusterRegistryModel.d.ts.map +1 -0
- package/dist/esm/react-query/llmModelsUpdateClusterRegistryModel.js +42 -0
- package/dist/esm/react-query/llmModelsUpdateClusterRegistryModel.js.map +1 -0
- package/dist/esm/sdk/models.d.ts +42 -0
- package/dist/esm/sdk/models.d.ts.map +1 -1
- package/dist/esm/sdk/models.js +60 -0
- package/dist/esm/sdk/models.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/llmModelsAddClusterRegistryModel.ts +172 -0
- package/src/funcs/llmModelsGetClusterRegistryModel.ts +181 -0
- package/src/funcs/llmModelsListClusterRegistryModels.ts +154 -0
- package/src/funcs/llmModelsListEffectivePrices.ts +178 -0
- package/src/funcs/llmModelsRemoveClusterRegistryModel.ts +181 -0
- package/src/funcs/llmModelsUpdateClusterRegistryModel.ts +184 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +13 -1
- package/src/mcp-server/tools/llmModelsAddClusterRegistryModel.ts +39 -0
- package/src/mcp-server/tools/llmModelsGetClusterRegistryModel.ts +39 -0
- package/src/mcp-server/tools/llmModelsListClusterRegistryModels.ts +30 -0
- package/src/mcp-server/tools/llmModelsListEffectivePrices.ts +37 -0
- package/src/mcp-server/tools/llmModelsRemoveClusterRegistryModel.ts +39 -0
- package/src/mcp-server/tools/llmModelsUpdateClusterRegistryModel.ts +39 -0
- package/src/models/components/effectivepricerow.ts +170 -0
- package/src/models/components/effectivepricesresponse.ts +65 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/modelpricerow.ts +4 -4
- package/src/models/operations/createclusterinvite.ts +4 -0
- package/src/models/operations/getclusterregistrymodel.ts +53 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listclusterinvites.ts +4 -0
- package/src/models/operations/listeffectiveprices.ts +63 -0
- package/src/models/operations/removeclusterregistrymodel.ts +53 -0
- package/src/models/operations/updateclusterregistrymodel.ts +69 -0
- package/src/react-query/index.ts +6 -0
- package/src/react-query/llmModelsAddClusterRegistryModel.ts +109 -0
- package/src/react-query/llmModelsGetClusterRegistryModel.core.ts +72 -0
- package/src/react-query/llmModelsGetClusterRegistryModel.ts +144 -0
- package/src/react-query/llmModelsListClusterRegistryModels.core.ts +67 -0
- package/src/react-query/llmModelsListClusterRegistryModels.ts +118 -0
- package/src/react-query/llmModelsListEffectivePrices.core.ts +76 -0
- package/src/react-query/llmModelsListEffectivePrices.ts +143 -0
- package/src/react-query/llmModelsRemoveClusterRegistryModel.ts +110 -0
- package/src/react-query/llmModelsUpdateClusterRegistryModel.ts +110 -0
- 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
|
+
}
|