@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,181 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.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 { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Remove a cluster-owned model
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* 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.
|
|
34
|
+
*/
|
|
35
|
+
export function llmModelsRemoveClusterRegistryModel(
|
|
36
|
+
client: SDKCore,
|
|
37
|
+
request: operations.RemoveClusterRegistryModelRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
components.DeleteRegistryModelResponse,
|
|
42
|
+
| SDKError
|
|
43
|
+
| ResponseValidationError
|
|
44
|
+
| ConnectionError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| UnexpectedClientError
|
|
49
|
+
| SDKValidationError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client: SDKCore,
|
|
61
|
+
request: operations.RemoveClusterRegistryModelRequest,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
components.DeleteRegistryModelResponse,
|
|
67
|
+
| SDKError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) =>
|
|
82
|
+
operations.RemoveClusterRegistryModelRequest$outboundSchema.parse(value),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed.ok) {
|
|
86
|
+
return [parsed, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload = parsed.value;
|
|
89
|
+
const body = null;
|
|
90
|
+
|
|
91
|
+
const pathParams = {
|
|
92
|
+
id: encodeSimple("id", payload.id, {
|
|
93
|
+
explode: false,
|
|
94
|
+
charEncoding: "percent",
|
|
95
|
+
}),
|
|
96
|
+
};
|
|
97
|
+
const path = pathToFunc("/api/v1/llm/models/registry/cluster/{id}")(
|
|
98
|
+
pathParams,
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
const headers = new Headers(compactMap({
|
|
102
|
+
Accept: "application/json",
|
|
103
|
+
}));
|
|
104
|
+
|
|
105
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
|
+
|
|
109
|
+
const context = {
|
|
110
|
+
options: client._options,
|
|
111
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
|
+
operationID: "removeClusterRegistryModel",
|
|
113
|
+
oAuth2Scopes: null,
|
|
114
|
+
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
116
|
+
|
|
117
|
+
securitySource: client._options.bearerAuth,
|
|
118
|
+
retryConfig: options?.retries
|
|
119
|
+
|| client._options.retryConfig
|
|
120
|
+
|| {
|
|
121
|
+
strategy: "backoff",
|
|
122
|
+
backoff: {
|
|
123
|
+
initialInterval: 500,
|
|
124
|
+
maxInterval: 5000,
|
|
125
|
+
exponent: 1.5,
|
|
126
|
+
maxElapsedTime: 15000,
|
|
127
|
+
},
|
|
128
|
+
retryConnectionErrors: true,
|
|
129
|
+
}
|
|
130
|
+
|| { strategy: "none" },
|
|
131
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
const requestRes = client._createRequest(context, {
|
|
135
|
+
security: requestSecurity,
|
|
136
|
+
method: "DELETE",
|
|
137
|
+
baseURL: options?.serverURL,
|
|
138
|
+
path: path,
|
|
139
|
+
headers: headers,
|
|
140
|
+
body: body,
|
|
141
|
+
userAgent: client._options.userAgent,
|
|
142
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
143
|
+
}, options);
|
|
144
|
+
if (!requestRes.ok) {
|
|
145
|
+
return [requestRes, { status: "invalid" }];
|
|
146
|
+
}
|
|
147
|
+
const req = requestRes.value;
|
|
148
|
+
|
|
149
|
+
const doResult = await client._do(req, {
|
|
150
|
+
context,
|
|
151
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
152
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
153
|
+
retryConfig: context.retryConfig,
|
|
154
|
+
retryCodes: context.retryCodes,
|
|
155
|
+
});
|
|
156
|
+
if (!doResult.ok) {
|
|
157
|
+
return [doResult, { status: "request-error", request: req }];
|
|
158
|
+
}
|
|
159
|
+
const response = doResult.value;
|
|
160
|
+
|
|
161
|
+
const [result] = await M.match<
|
|
162
|
+
components.DeleteRegistryModelResponse,
|
|
163
|
+
| SDKError
|
|
164
|
+
| ResponseValidationError
|
|
165
|
+
| ConnectionError
|
|
166
|
+
| RequestAbortedError
|
|
167
|
+
| RequestTimeoutError
|
|
168
|
+
| InvalidRequestError
|
|
169
|
+
| UnexpectedClientError
|
|
170
|
+
| SDKValidationError
|
|
171
|
+
>(
|
|
172
|
+
M.json(200, components.DeleteRegistryModelResponse$inboundSchema),
|
|
173
|
+
M.fail("4XX"),
|
|
174
|
+
M.fail("5XX"),
|
|
175
|
+
)(response, req);
|
|
176
|
+
if (!result.ok) {
|
|
177
|
+
return [result, { status: "complete", request: req, response }];
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
return [result, { status: "complete", request: req, response }];
|
|
181
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.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 { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Update a cluster-owned model
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Partially updates an operator-owned, API-added model. Only provided fields change. Cluster admin only.
|
|
34
|
+
*/
|
|
35
|
+
export function llmModelsUpdateClusterRegistryModel(
|
|
36
|
+
client: SDKCore,
|
|
37
|
+
request: operations.UpdateClusterRegistryModelRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
components.RegistryModelResponse,
|
|
42
|
+
| SDKError
|
|
43
|
+
| ResponseValidationError
|
|
44
|
+
| ConnectionError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| UnexpectedClientError
|
|
49
|
+
| SDKValidationError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client: SDKCore,
|
|
61
|
+
request: operations.UpdateClusterRegistryModelRequest,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
components.RegistryModelResponse,
|
|
67
|
+
| SDKError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) =>
|
|
82
|
+
operations.UpdateClusterRegistryModelRequest$outboundSchema.parse(value),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed.ok) {
|
|
86
|
+
return [parsed, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload = parsed.value;
|
|
89
|
+
const body = encodeJSON("body", payload.UpdateRegistryModelRequest, {
|
|
90
|
+
explode: true,
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
const pathParams = {
|
|
94
|
+
id: encodeSimple("id", payload.id, {
|
|
95
|
+
explode: false,
|
|
96
|
+
charEncoding: "percent",
|
|
97
|
+
}),
|
|
98
|
+
};
|
|
99
|
+
const path = pathToFunc("/api/v1/llm/models/registry/cluster/{id}")(
|
|
100
|
+
pathParams,
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
const headers = new Headers(compactMap({
|
|
104
|
+
"Content-Type": "application/json",
|
|
105
|
+
Accept: "application/json",
|
|
106
|
+
}));
|
|
107
|
+
|
|
108
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
109
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
110
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
111
|
+
|
|
112
|
+
const context = {
|
|
113
|
+
options: client._options,
|
|
114
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
115
|
+
operationID: "updateClusterRegistryModel",
|
|
116
|
+
oAuth2Scopes: null,
|
|
117
|
+
|
|
118
|
+
resolvedSecurity: requestSecurity,
|
|
119
|
+
|
|
120
|
+
securitySource: client._options.bearerAuth,
|
|
121
|
+
retryConfig: options?.retries
|
|
122
|
+
|| client._options.retryConfig
|
|
123
|
+
|| {
|
|
124
|
+
strategy: "backoff",
|
|
125
|
+
backoff: {
|
|
126
|
+
initialInterval: 500,
|
|
127
|
+
maxInterval: 5000,
|
|
128
|
+
exponent: 1.5,
|
|
129
|
+
maxElapsedTime: 15000,
|
|
130
|
+
},
|
|
131
|
+
retryConnectionErrors: true,
|
|
132
|
+
}
|
|
133
|
+
|| { strategy: "none" },
|
|
134
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
const requestRes = client._createRequest(context, {
|
|
138
|
+
security: requestSecurity,
|
|
139
|
+
method: "PATCH",
|
|
140
|
+
baseURL: options?.serverURL,
|
|
141
|
+
path: path,
|
|
142
|
+
headers: headers,
|
|
143
|
+
body: body,
|
|
144
|
+
userAgent: client._options.userAgent,
|
|
145
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
146
|
+
}, options);
|
|
147
|
+
if (!requestRes.ok) {
|
|
148
|
+
return [requestRes, { status: "invalid" }];
|
|
149
|
+
}
|
|
150
|
+
const req = requestRes.value;
|
|
151
|
+
|
|
152
|
+
const doResult = await client._do(req, {
|
|
153
|
+
context,
|
|
154
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
155
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
156
|
+
retryConfig: context.retryConfig,
|
|
157
|
+
retryCodes: context.retryCodes,
|
|
158
|
+
});
|
|
159
|
+
if (!doResult.ok) {
|
|
160
|
+
return [doResult, { status: "request-error", request: req }];
|
|
161
|
+
}
|
|
162
|
+
const response = doResult.value;
|
|
163
|
+
|
|
164
|
+
const [result] = await M.match<
|
|
165
|
+
components.RegistryModelResponse,
|
|
166
|
+
| SDKError
|
|
167
|
+
| ResponseValidationError
|
|
168
|
+
| ConnectionError
|
|
169
|
+
| RequestAbortedError
|
|
170
|
+
| RequestTimeoutError
|
|
171
|
+
| InvalidRequestError
|
|
172
|
+
| UnexpectedClientError
|
|
173
|
+
| SDKValidationError
|
|
174
|
+
>(
|
|
175
|
+
M.json(200, components.RegistryModelResponse$inboundSchema),
|
|
176
|
+
M.fail("4XX"),
|
|
177
|
+
M.fail("5XX"),
|
|
178
|
+
)(response, req);
|
|
179
|
+
if (!result.ok) {
|
|
180
|
+
return [result, { status: "complete", request: req, response }];
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return [result, { status: "complete", request: req, response }];
|
|
184
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.48.
|
|
68
|
+
sdkVersion: "0.48.36",
|
|
69
69
|
genVersion: "2.916.2",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.48.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.48.36 2.916.2 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -178,6 +178,7 @@ import { tool$llmMemoryStoresList } from "./tools/llmMemoryStoresList.js";
|
|
|
178
178
|
import { tool$llmMemoryStoresListEntries } from "./tools/llmMemoryStoresListEntries.js";
|
|
179
179
|
import { tool$llmMemoryStoresUpdate } from "./tools/llmMemoryStoresUpdate.js";
|
|
180
180
|
import { tool$llmMemoryStoresUpdateEntry } from "./tools/llmMemoryStoresUpdateEntry.js";
|
|
181
|
+
import { tool$llmModelsAddClusterRegistryModel } from "./tools/llmModelsAddClusterRegistryModel.js";
|
|
181
182
|
import { tool$llmModelsAddRegistryModel } from "./tools/llmModelsAddRegistryModel.js";
|
|
182
183
|
import { tool$llmModelsCheckRegistryModelHealth } from "./tools/llmModelsCheckRegistryModelHealth.js";
|
|
183
184
|
import { tool$llmModelsClearClusterPrice } from "./tools/llmModelsClearClusterPrice.js";
|
|
@@ -185,20 +186,25 @@ import { tool$llmModelsClearOrgPrice } from "./tools/llmModelsClearOrgPrice.js";
|
|
|
185
186
|
import { tool$llmModelsDeleteOrgAutoModel } from "./tools/llmModelsDeleteOrgAutoModel.js";
|
|
186
187
|
import { tool$llmModelsGet } from "./tools/llmModelsGet.js";
|
|
187
188
|
import { tool$llmModelsGetClusterCurrency } from "./tools/llmModelsGetClusterCurrency.js";
|
|
189
|
+
import { tool$llmModelsGetClusterRegistryModel } from "./tools/llmModelsGetClusterRegistryModel.js";
|
|
188
190
|
import { tool$llmModelsGetRegistryModel } from "./tools/llmModelsGetRegistryModel.js";
|
|
189
191
|
import { tool$llmModelsList } from "./tools/llmModelsList.js";
|
|
190
192
|
import { tool$llmModelsListClusterPrices } from "./tools/llmModelsListClusterPrices.js";
|
|
191
193
|
import { tool$llmModelsListClusterRegistry } from "./tools/llmModelsListClusterRegistry.js";
|
|
194
|
+
import { tool$llmModelsListClusterRegistryModels } from "./tools/llmModelsListClusterRegistryModels.js";
|
|
192
195
|
import { tool$llmModelsListClusterRegistryOrgGrants } from "./tools/llmModelsListClusterRegistryOrgGrants.js";
|
|
196
|
+
import { tool$llmModelsListEffectivePrices } from "./tools/llmModelsListEffectivePrices.js";
|
|
193
197
|
import { tool$llmModelsListOrgAutoModels } from "./tools/llmModelsListOrgAutoModels.js";
|
|
194
198
|
import { tool$llmModelsListOrgPrices } from "./tools/llmModelsListOrgPrices.js";
|
|
195
199
|
import { tool$llmModelsListRegistryModels } from "./tools/llmModelsListRegistryModels.js";
|
|
196
200
|
import { tool$llmModelsPutClusterRegistryOrgGrants } from "./tools/llmModelsPutClusterRegistryOrgGrants.js";
|
|
197
201
|
import { tool$llmModelsPutOrgAutoModel } from "./tools/llmModelsPutOrgAutoModel.js";
|
|
202
|
+
import { tool$llmModelsRemoveClusterRegistryModel } from "./tools/llmModelsRemoveClusterRegistryModel.js";
|
|
198
203
|
import { tool$llmModelsRemoveRegistryModel } from "./tools/llmModelsRemoveRegistryModel.js";
|
|
199
204
|
import { tool$llmModelsSetClusterCurrency } from "./tools/llmModelsSetClusterCurrency.js";
|
|
200
205
|
import { tool$llmModelsSetClusterPrice } from "./tools/llmModelsSetClusterPrice.js";
|
|
201
206
|
import { tool$llmModelsSetOrgPrice } from "./tools/llmModelsSetOrgPrice.js";
|
|
207
|
+
import { tool$llmModelsUpdateClusterRegistryModel } from "./tools/llmModelsUpdateClusterRegistryModel.js";
|
|
202
208
|
import { tool$llmModelsUpdateRegistryModel } from "./tools/llmModelsUpdateRegistryModel.js";
|
|
203
209
|
import { tool$llmPromptsCreate } from "./tools/llmPromptsCreate.js";
|
|
204
210
|
import { tool$llmPromptsCreateVersion } from "./tools/llmPromptsCreateVersion.js";
|
|
@@ -349,7 +355,7 @@ export function createMCPServer(deps: {
|
|
|
349
355
|
}) {
|
|
350
356
|
const server = new McpServer({
|
|
351
357
|
name: "SDK",
|
|
352
|
-
version: "0.48.
|
|
358
|
+
version: "0.48.36",
|
|
353
359
|
});
|
|
354
360
|
|
|
355
361
|
const client = new SDKCore({
|
|
@@ -526,6 +532,11 @@ export function createMCPServer(deps: {
|
|
|
526
532
|
tool(tool$llmModelsRemoveRegistryModel);
|
|
527
533
|
tool(tool$llmModelsGetRegistryModel);
|
|
528
534
|
tool(tool$llmModelsCheckRegistryModelHealth);
|
|
535
|
+
tool(tool$llmModelsAddClusterRegistryModel);
|
|
536
|
+
tool(tool$llmModelsListClusterRegistryModels);
|
|
537
|
+
tool(tool$llmModelsGetClusterRegistryModel);
|
|
538
|
+
tool(tool$llmModelsUpdateClusterRegistryModel);
|
|
539
|
+
tool(tool$llmModelsRemoveClusterRegistryModel);
|
|
529
540
|
tool(tool$llmModelsListClusterRegistry);
|
|
530
541
|
tool(tool$llmModelsListClusterRegistryOrgGrants);
|
|
531
542
|
tool(tool$llmModelsPutClusterRegistryOrgGrants);
|
|
@@ -540,6 +551,7 @@ export function createMCPServer(deps: {
|
|
|
540
551
|
tool(tool$llmModelsListOrgPrices);
|
|
541
552
|
tool(tool$llmModelsSetOrgPrice);
|
|
542
553
|
tool(tool$llmModelsClearOrgPrice);
|
|
554
|
+
tool(tool$llmModelsListEffectivePrices);
|
|
543
555
|
tool(tool$llmPromptsCreate);
|
|
544
556
|
tool(tool$llmPromptsList);
|
|
545
557
|
tool(tool$llmPromptsGet);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { llmModelsAddClusterRegistryModel } from "../../funcs/llmModelsAddClusterRegistryModel.js";
|
|
6
|
+
import * as components from "../../models/components/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: components.AddRegistryModelRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$llmModelsAddClusterRegistryModel: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "llm-models-add-cluster-registry-model",
|
|
17
|
+
description: `Add a cluster-owned model
|
|
18
|
+
|
|
19
|
+
Adds an operator-owned, database-sourced model that a cluster admin can grant to orgs (see /models/cluster_registry). Cluster admin only.`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] = await llmModelsAddClusterRegistryModel(
|
|
23
|
+
client,
|
|
24
|
+
args.request,
|
|
25
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
26
|
+
).$inspect();
|
|
27
|
+
|
|
28
|
+
if (!result.ok) {
|
|
29
|
+
return {
|
|
30
|
+
content: [{ type: "text", text: result.error.message }],
|
|
31
|
+
isError: true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const value = result.value;
|
|
36
|
+
|
|
37
|
+
return formatResult(value, apiCall);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { llmModelsGetClusterRegistryModel } from "../../funcs/llmModelsGetClusterRegistryModel.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetClusterRegistryModelRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$llmModelsGetClusterRegistryModel: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "llm-models-get-cluster-registry-model",
|
|
17
|
+
description: `Get a cluster-owned model
|
|
18
|
+
|
|
19
|
+
Returns a single operator-owned, API-added model. Cluster admin only.`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] = await llmModelsGetClusterRegistryModel(
|
|
23
|
+
client,
|
|
24
|
+
args.request,
|
|
25
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
26
|
+
).$inspect();
|
|
27
|
+
|
|
28
|
+
if (!result.ok) {
|
|
29
|
+
return {
|
|
30
|
+
content: [{ type: "text", text: result.error.message }],
|
|
31
|
+
isError: true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const value = result.value;
|
|
36
|
+
|
|
37
|
+
return formatResult(value, apiCall);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { llmModelsListClusterRegistryModels } from "../../funcs/llmModelsListClusterRegistryModels.js";
|
|
6
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
7
|
+
|
|
8
|
+
export const tool$llmModelsListClusterRegistryModels: ToolDefinition = {
|
|
9
|
+
name: "llm-models-list-cluster-registry-models",
|
|
10
|
+
description: `List cluster-owned models
|
|
11
|
+
|
|
12
|
+
Lists operator-owned, API-added models (the grantable, database-sourced ones). Cluster admin only.`,
|
|
13
|
+
tool: async (client, ctx) => {
|
|
14
|
+
const [result, apiCall] = await llmModelsListClusterRegistryModels(
|
|
15
|
+
client,
|
|
16
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
17
|
+
).$inspect();
|
|
18
|
+
|
|
19
|
+
if (!result.ok) {
|
|
20
|
+
return {
|
|
21
|
+
content: [{ type: "text", text: result.error.message }],
|
|
22
|
+
isError: true,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const value = result.value;
|
|
27
|
+
|
|
28
|
+
return formatResult(value, apiCall);
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { llmModelsListEffectivePrices } from "../../funcs/llmModelsListEffectivePrices.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListEffectivePricesRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$llmModelsListEffectivePrices: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "llm-models-list-effective-prices",
|
|
15
|
+
description: `List effective prices for the caller's models
|
|
16
|
+
|
|
17
|
+
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.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await llmModelsListEffectivePrices(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { llmModelsRemoveClusterRegistryModel } from "../../funcs/llmModelsRemoveClusterRegistryModel.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.RemoveClusterRegistryModelRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$llmModelsRemoveClusterRegistryModel: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "llm-models-remove-cluster-registry-model",
|
|
17
|
+
description: `Remove a cluster-owned model
|
|
18
|
+
|
|
19
|
+
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.`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] = await llmModelsRemoveClusterRegistryModel(
|
|
23
|
+
client,
|
|
24
|
+
args.request,
|
|
25
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
26
|
+
).$inspect();
|
|
27
|
+
|
|
28
|
+
if (!result.ok) {
|
|
29
|
+
return {
|
|
30
|
+
content: [{ type: "text", text: result.error.message }],
|
|
31
|
+
isError: true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const value = result.value;
|
|
36
|
+
|
|
37
|
+
return formatResult(value, apiCall);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { llmModelsUpdateClusterRegistryModel } from "../../funcs/llmModelsUpdateClusterRegistryModel.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.UpdateClusterRegistryModelRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$llmModelsUpdateClusterRegistryModel: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "llm-models-update-cluster-registry-model",
|
|
17
|
+
description: `Update a cluster-owned model
|
|
18
|
+
|
|
19
|
+
Partially updates an operator-owned, API-added model. Only provided fields change. Cluster admin only.`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] = await llmModelsUpdateClusterRegistryModel(
|
|
23
|
+
client,
|
|
24
|
+
args.request,
|
|
25
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
26
|
+
).$inspect();
|
|
27
|
+
|
|
28
|
+
if (!result.ok) {
|
|
29
|
+
return {
|
|
30
|
+
content: [{ type: "text", text: result.error.message }],
|
|
31
|
+
isError: true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const value = result.value;
|
|
36
|
+
|
|
37
|
+
return formatResult(value, apiCall);
|
|
38
|
+
},
|
|
39
|
+
};
|