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