@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,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$llmModelsGetClusterRegistryModel = void 0;
|
|
40
|
+
const llmModelsGetClusterRegistryModel_js_1 = require("../../funcs/llmModelsGetClusterRegistryModel.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.GetClusterRegistryModelRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$llmModelsGetClusterRegistryModel = {
|
|
47
|
+
name: "llm-models-get-cluster-registry-model",
|
|
48
|
+
description: `Get a cluster-owned model
|
|
49
|
+
|
|
50
|
+
Returns a single operator-owned, API-added model. Cluster admin only.`,
|
|
51
|
+
args,
|
|
52
|
+
tool: async (client, args, ctx) => {
|
|
53
|
+
const [result, apiCall] = await (0, llmModelsGetClusterRegistryModel_js_1.llmModelsGetClusterRegistryModel)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54
|
+
if (!result.ok) {
|
|
55
|
+
return {
|
|
56
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57
|
+
isError: true,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const value = result.value;
|
|
61
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=llmModelsGetClusterRegistryModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llmModelsGetClusterRegistryModel.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsGetClusterRegistryModel.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,yGAAmG;AACnG,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,4CAA4C;CACjE,CAAC;AAEW,QAAA,qCAAqC,GAE9C;IACF,IAAI,EAAE,uCAAuC;IAC7C,WAAW,EAAE;;sEAEuD;IACpE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,sEAAgC,EAC9D,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llmModelsListClusterRegistryModels.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsListClusterRegistryModels.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,eAAO,MAAM,uCAAuC,EAAE,cAsBrD,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.tool$llmModelsListClusterRegistryModels = void 0;
|
|
7
|
+
const llmModelsListClusterRegistryModels_js_1 = require("../../funcs/llmModelsListClusterRegistryModels.js");
|
|
8
|
+
const tools_js_1 = require("../tools.js");
|
|
9
|
+
exports.tool$llmModelsListClusterRegistryModels = {
|
|
10
|
+
name: "llm-models-list-cluster-registry-models",
|
|
11
|
+
description: `List cluster-owned models
|
|
12
|
+
|
|
13
|
+
Lists operator-owned, API-added models (the grantable, database-sourced ones). Cluster admin only.`,
|
|
14
|
+
tool: async (client, ctx) => {
|
|
15
|
+
const [result, apiCall] = await (0, llmModelsListClusterRegistryModels_js_1.llmModelsListClusterRegistryModels)(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
16
|
+
if (!result.ok) {
|
|
17
|
+
return {
|
|
18
|
+
content: [{ type: "text", text: result.error.message }],
|
|
19
|
+
isError: true,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
const value = result.value;
|
|
23
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=llmModelsListClusterRegistryModels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llmModelsListClusterRegistryModels.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsListClusterRegistryModels.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,6GAAuG;AACvG,0CAA2D;AAE9C,QAAA,uCAAuC,GAAmB;IACrE,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EAAE;;mGAEoF;IACjG,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE;QAC1B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,0EAAkC,EAChE,MAAM,EACN,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.ListEffectivePricesRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$llmModelsListEffectivePrices: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=llmModelsListEffectivePrices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llmModelsListEffectivePrices.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsListEffectivePrices.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBzE,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$llmModelsListEffectivePrices = void 0;
|
|
40
|
+
const llmModelsListEffectivePrices_js_1 = require("../../funcs/llmModelsListEffectivePrices.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.ListEffectivePricesRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$llmModelsListEffectivePrices = {
|
|
47
|
+
name: "llm-models-list-effective-prices",
|
|
48
|
+
description: `List effective prices for the caller's models
|
|
49
|
+
|
|
50
|
+
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.`,
|
|
51
|
+
args,
|
|
52
|
+
tool: async (client, args, ctx) => {
|
|
53
|
+
const [result, apiCall] = await (0, llmModelsListEffectivePrices_js_1.llmModelsListEffectivePrices)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54
|
+
if (!result.ok) {
|
|
55
|
+
return {
|
|
56
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57
|
+
isError: true,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const value = result.value;
|
|
61
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=llmModelsListEffectivePrices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llmModelsListEffectivePrices.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsListEffectivePrices.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iGAA2F;AAC3F,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,wCAAwC;CAC7D,CAAC;AAEW,QAAA,iCAAiC,GAAgC;IAC5E,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE;;8PAE+O;IAC5P,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,8DAA4B,EAC1D,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.RemoveClusterRegistryModelRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$llmModelsRemoveClusterRegistryModel: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=llmModelsRemoveClusterRegistryModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llmModelsRemoveClusterRegistryModel.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsRemoveClusterRegistryModel.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,wCAAwC,EAAE,cAAc,CACnE,OAAO,IAAI,CAyBZ,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$llmModelsRemoveClusterRegistryModel = void 0;
|
|
40
|
+
const llmModelsRemoveClusterRegistryModel_js_1 = require("../../funcs/llmModelsRemoveClusterRegistryModel.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.RemoveClusterRegistryModelRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$llmModelsRemoveClusterRegistryModel = {
|
|
47
|
+
name: "llm-models-remove-cluster-registry-model",
|
|
48
|
+
description: `Remove a cluster-owned model
|
|
49
|
+
|
|
50
|
+
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.`,
|
|
51
|
+
args,
|
|
52
|
+
tool: async (client, args, ctx) => {
|
|
53
|
+
const [result, apiCall] = await (0, llmModelsRemoveClusterRegistryModel_js_1.llmModelsRemoveClusterRegistryModel)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54
|
+
if (!result.ok) {
|
|
55
|
+
return {
|
|
56
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57
|
+
isError: true,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const value = result.value;
|
|
61
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=llmModelsRemoveClusterRegistryModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llmModelsRemoveClusterRegistryModel.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsRemoveClusterRegistryModel.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+GAAyG;AACzG,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,+CAA+C;CACpE,CAAC;AAEW,QAAA,wCAAwC,GAEjD;IACF,IAAI,EAAE,0CAA0C;IAChD,WAAW,EAAE;;0IAE2H;IACxI,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,4EAAmC,EACjE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.UpdateClusterRegistryModelRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$llmModelsUpdateClusterRegistryModel: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=llmModelsUpdateClusterRegistryModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llmModelsUpdateClusterRegistryModel.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsUpdateClusterRegistryModel.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,wCAAwC,EAAE,cAAc,CACnE,OAAO,IAAI,CAyBZ,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$llmModelsUpdateClusterRegistryModel = void 0;
|
|
40
|
+
const llmModelsUpdateClusterRegistryModel_js_1 = require("../../funcs/llmModelsUpdateClusterRegistryModel.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.UpdateClusterRegistryModelRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$llmModelsUpdateClusterRegistryModel = {
|
|
47
|
+
name: "llm-models-update-cluster-registry-model",
|
|
48
|
+
description: `Update a cluster-owned model
|
|
49
|
+
|
|
50
|
+
Partially updates an operator-owned, API-added model. Only provided fields change. Cluster admin only.`,
|
|
51
|
+
args,
|
|
52
|
+
tool: async (client, args, ctx) => {
|
|
53
|
+
const [result, apiCall] = await (0, llmModelsUpdateClusterRegistryModel_js_1.llmModelsUpdateClusterRegistryModel)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54
|
+
if (!result.ok) {
|
|
55
|
+
return {
|
|
56
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57
|
+
isError: true,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const value = result.value;
|
|
61
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=llmModelsUpdateClusterRegistryModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llmModelsUpdateClusterRegistryModel.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/llmModelsUpdateClusterRegistryModel.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+GAAyG;AACzG,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,+CAA+C;CACpE,CAAC;AAEW,QAAA,wCAAwC,GAEjD;IACF,IAAI,EAAE,0CAA0C;IAChD,WAAW,EAAE;;uGAEwF;IACrG,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,4EAAmC,EACjE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export type EffectivePriceRowRates = {
|
|
6
|
+
inputTokens?: number | undefined;
|
|
7
|
+
outputTokens?: number | undefined;
|
|
8
|
+
cachedTokens?: number | undefined;
|
|
9
|
+
reasoningTokens?: number | undefined;
|
|
10
|
+
characters?: number | undefined;
|
|
11
|
+
seconds?: number | undefined;
|
|
12
|
+
image?: number | undefined;
|
|
13
|
+
imageTiers?: {
|
|
14
|
+
[k: string]: number;
|
|
15
|
+
} | undefined;
|
|
16
|
+
searches?: number | undefined;
|
|
17
|
+
};
|
|
18
|
+
export declare const EffectivePriceRowSource: {
|
|
19
|
+
readonly OrgOverride: "org_override";
|
|
20
|
+
readonly ClusterDefault: "cluster_default";
|
|
21
|
+
readonly Unpriced: "unpriced";
|
|
22
|
+
};
|
|
23
|
+
export type EffectivePriceRowSource = ClosedEnum<typeof EffectivePriceRowSource>;
|
|
24
|
+
export type EffectivePriceRow = {
|
|
25
|
+
model: string;
|
|
26
|
+
rates: EffectivePriceRowRates | null;
|
|
27
|
+
source: EffectivePriceRowSource;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const EffectivePriceRowRates$inboundSchema: z.ZodType<EffectivePriceRowRates, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type EffectivePriceRowRates$Outbound = {
|
|
33
|
+
input_tokens?: number | undefined;
|
|
34
|
+
output_tokens?: number | undefined;
|
|
35
|
+
cached_tokens?: number | undefined;
|
|
36
|
+
reasoning_tokens?: number | undefined;
|
|
37
|
+
characters?: number | undefined;
|
|
38
|
+
seconds?: number | undefined;
|
|
39
|
+
image?: number | undefined;
|
|
40
|
+
image_tiers?: {
|
|
41
|
+
[k: string]: number;
|
|
42
|
+
} | undefined;
|
|
43
|
+
searches?: number | undefined;
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const EffectivePriceRowRates$outboundSchema: z.ZodType<EffectivePriceRowRates$Outbound, z.ZodTypeDef, EffectivePriceRowRates>;
|
|
47
|
+
export declare function effectivePriceRowRatesToJSON(effectivePriceRowRates: EffectivePriceRowRates): string;
|
|
48
|
+
export declare function effectivePriceRowRatesFromJSON(jsonString: string): SafeParseResult<EffectivePriceRowRates, SDKValidationError>;
|
|
49
|
+
/** @internal */
|
|
50
|
+
export declare const EffectivePriceRowSource$inboundSchema: z.ZodNativeEnum<typeof EffectivePriceRowSource>;
|
|
51
|
+
/** @internal */
|
|
52
|
+
export declare const EffectivePriceRowSource$outboundSchema: z.ZodNativeEnum<typeof EffectivePriceRowSource>;
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const EffectivePriceRow$inboundSchema: z.ZodType<EffectivePriceRow, z.ZodTypeDef, unknown>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type EffectivePriceRow$Outbound = {
|
|
57
|
+
model: string;
|
|
58
|
+
rates: EffectivePriceRowRates$Outbound | null;
|
|
59
|
+
source: string;
|
|
60
|
+
};
|
|
61
|
+
/** @internal */
|
|
62
|
+
export declare const EffectivePriceRow$outboundSchema: z.ZodType<EffectivePriceRow$Outbound, z.ZodTypeDef, EffectivePriceRow>;
|
|
63
|
+
export declare function effectivePriceRowToJSON(effectivePriceRow: EffectivePriceRow): string;
|
|
64
|
+
export declare function effectivePriceRowFromJSON(jsonString: string): SafeParseResult<EffectivePriceRow, SDKValidationError>;
|
|
65
|
+
//# sourceMappingURL=effectivepricerow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effectivepricerow.d.ts","sourceRoot":"","sources":["../../../../src/models/components/effectivepricerow.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,U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
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.EffectivePriceRow$outboundSchema = exports.EffectivePriceRow$inboundSchema = exports.EffectivePriceRowSource$outboundSchema = exports.EffectivePriceRowSource$inboundSchema = exports.EffectivePriceRowRates$outboundSchema = exports.EffectivePriceRowRates$inboundSchema = exports.EffectivePriceRowSource = void 0;
|
|
40
|
+
exports.effectivePriceRowRatesToJSON = effectivePriceRowRatesToJSON;
|
|
41
|
+
exports.effectivePriceRowRatesFromJSON = effectivePriceRowRatesFromJSON;
|
|
42
|
+
exports.effectivePriceRowToJSON = effectivePriceRowToJSON;
|
|
43
|
+
exports.effectivePriceRowFromJSON = effectivePriceRowFromJSON;
|
|
44
|
+
const z = __importStar(require("zod/v3"));
|
|
45
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
exports.EffectivePriceRowSource = {
|
|
48
|
+
OrgOverride: "org_override",
|
|
49
|
+
ClusterDefault: "cluster_default",
|
|
50
|
+
Unpriced: "unpriced",
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
exports.EffectivePriceRowRates$inboundSchema = z.object({
|
|
54
|
+
input_tokens: z.number().optional(),
|
|
55
|
+
output_tokens: z.number().optional(),
|
|
56
|
+
cached_tokens: z.number().optional(),
|
|
57
|
+
reasoning_tokens: z.number().optional(),
|
|
58
|
+
characters: z.number().optional(),
|
|
59
|
+
seconds: z.number().optional(),
|
|
60
|
+
image: z.number().optional(),
|
|
61
|
+
image_tiers: z.record(z.number()).optional(),
|
|
62
|
+
searches: z.number().optional(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return (0, primitives_js_1.remap)(v, {
|
|
65
|
+
"input_tokens": "inputTokens",
|
|
66
|
+
"output_tokens": "outputTokens",
|
|
67
|
+
"cached_tokens": "cachedTokens",
|
|
68
|
+
"reasoning_tokens": "reasoningTokens",
|
|
69
|
+
"image_tiers": "imageTiers",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
/** @internal */
|
|
73
|
+
exports.EffectivePriceRowRates$outboundSchema = z.object({
|
|
74
|
+
inputTokens: z.number().optional(),
|
|
75
|
+
outputTokens: z.number().optional(),
|
|
76
|
+
cachedTokens: z.number().optional(),
|
|
77
|
+
reasoningTokens: z.number().optional(),
|
|
78
|
+
characters: z.number().optional(),
|
|
79
|
+
seconds: z.number().optional(),
|
|
80
|
+
image: z.number().optional(),
|
|
81
|
+
imageTiers: z.record(z.number()).optional(),
|
|
82
|
+
searches: z.number().optional(),
|
|
83
|
+
}).transform((v) => {
|
|
84
|
+
return (0, primitives_js_1.remap)(v, {
|
|
85
|
+
inputTokens: "input_tokens",
|
|
86
|
+
outputTokens: "output_tokens",
|
|
87
|
+
cachedTokens: "cached_tokens",
|
|
88
|
+
reasoningTokens: "reasoning_tokens",
|
|
89
|
+
imageTiers: "image_tiers",
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
function effectivePriceRowRatesToJSON(effectivePriceRowRates) {
|
|
93
|
+
return JSON.stringify(exports.EffectivePriceRowRates$outboundSchema.parse(effectivePriceRowRates));
|
|
94
|
+
}
|
|
95
|
+
function effectivePriceRowRatesFromJSON(jsonString) {
|
|
96
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EffectivePriceRowRates$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EffectivePriceRowRates' from JSON`);
|
|
97
|
+
}
|
|
98
|
+
/** @internal */
|
|
99
|
+
exports.EffectivePriceRowSource$inboundSchema = z.nativeEnum(exports.EffectivePriceRowSource);
|
|
100
|
+
/** @internal */
|
|
101
|
+
exports.EffectivePriceRowSource$outboundSchema = exports.EffectivePriceRowSource$inboundSchema;
|
|
102
|
+
/** @internal */
|
|
103
|
+
exports.EffectivePriceRow$inboundSchema = z.object({
|
|
104
|
+
model: z.string(),
|
|
105
|
+
rates: z.nullable(z.lazy(() => exports.EffectivePriceRowRates$inboundSchema)),
|
|
106
|
+
source: exports.EffectivePriceRowSource$inboundSchema,
|
|
107
|
+
});
|
|
108
|
+
/** @internal */
|
|
109
|
+
exports.EffectivePriceRow$outboundSchema = z.object({
|
|
110
|
+
model: z.string(),
|
|
111
|
+
rates: z.nullable(z.lazy(() => exports.EffectivePriceRowRates$outboundSchema)),
|
|
112
|
+
source: exports.EffectivePriceRowSource$outboundSchema,
|
|
113
|
+
});
|
|
114
|
+
function effectivePriceRowToJSON(effectivePriceRow) {
|
|
115
|
+
return JSON.stringify(exports.EffectivePriceRow$outboundSchema.parse(effectivePriceRow));
|
|
116
|
+
}
|
|
117
|
+
function effectivePriceRowFromJSON(jsonString) {
|
|
118
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EffectivePriceRow$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EffectivePriceRow' from JSON`);
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=effectivepricerow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effectivepricerow.js","sourceRoot":"","sources":["../../../../src/models/components/effectivepricerow.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGH,oEAMC;AACD,wEAQC;AAuCD,0DAMC;AACD,8DAQC;AArKD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAiBpC,QAAA,uBAAuB,GAAG;IACrC,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAAiB;IACjC,QAAQ,EAAE,UAAU;CACZ,CAAC;AAWX,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAA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AoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AACD,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { EffectivePriceRow, EffectivePriceRow$Outbound } from "./effectivepricerow.js";
|
|
5
|
+
export type EffectivePricesResponse = {
|
|
6
|
+
object: "list";
|
|
7
|
+
currency: string | null;
|
|
8
|
+
data: Array<EffectivePriceRow>;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const EffectivePricesResponse$inboundSchema: z.ZodType<EffectivePricesResponse, z.ZodTypeDef, unknown>;
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type EffectivePricesResponse$Outbound = {
|
|
14
|
+
object: "list";
|
|
15
|
+
currency: string | null;
|
|
16
|
+
data: Array<EffectivePriceRow$Outbound>;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const EffectivePricesResponse$outboundSchema: z.ZodType<EffectivePricesResponse$Outbound, z.ZodTypeDef, EffectivePricesResponse>;
|
|
20
|
+
export declare function effectivePricesResponseToJSON(effectivePricesResponse: EffectivePricesResponse): string;
|
|
21
|
+
export declare function effectivePricesResponseFromJSON(jsonString: string): SafeParseResult<EffectivePricesResponse, SDKValidationError>;
|
|
22
|
+
//# sourceMappingURL=effectivepricesresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effectivepricesresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/effectivepricesresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAKvB,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AACD,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|