@meetkai/mka1 0.51.5 → 0.51.6
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 +239 -227
- package/bin/mcp-server.js +719 -69
- package/bin/mcp-server.js.map +39 -24
- package/dist/commonjs/funcs/servingDeploymentsCreate.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsCreate.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsDelete.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsDelete.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsDeregister.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsDeregister.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsGet.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsGet.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsList.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsList.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsListReplicas.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsListReplicas.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsListRevisions.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsListRevisions.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsRegister.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsRegister.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsUpdate.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsUpdateScaling.js +4 -2
- package/dist/commonjs/funcs/servingDeploymentsUpdateScaling.js.map +1 -1
- package/dist/commonjs/funcs/servingModelsDelete.js +1 -1
- package/dist/commonjs/funcs/servingModelsDelete.js.map +1 -1
- package/dist/commonjs/funcs/servingSecretsDelete.js +1 -1
- package/dist/commonjs/funcs/servingSecretsDelete.js.map +1 -1
- package/dist/commonjs/funcs/servingTenantsGet.d.ts +19 -0
- package/dist/commonjs/funcs/servingTenantsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingTenantsGet.js +136 -0
- package/dist/commonjs/funcs/servingTenantsGet.js.map +1 -0
- package/dist/commonjs/funcs/servingTenantsList.d.ts +19 -0
- package/dist/commonjs/funcs/servingTenantsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingTenantsList.js +135 -0
- package/dist/commonjs/funcs/servingTenantsList.js.map +1 -0
- package/dist/commonjs/funcs/servingTenantsSet.d.ts +19 -0
- package/dist/commonjs/funcs/servingTenantsSet.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingTenantsSet.js +137 -0
- package/dist/commonjs/funcs/servingTenantsSet.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 +7 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsList.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsList.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.js.map +1 -0
- package/dist/commonjs/models/components/deploymentapiformat.d.ts +22 -0
- package/dist/commonjs/models/components/deploymentapiformat.d.ts.map +1 -0
- package/dist/commonjs/models/components/deploymentapiformat.js +56 -0
- package/dist/commonjs/models/components/deploymentapiformat.js.map +1 -0
- package/dist/commonjs/models/components/deploymentcreate.d.ts +26 -5
- package/dist/commonjs/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/deploymentcreate.js +16 -3
- package/dist/commonjs/models/components/deploymentcreate.js.map +1 -1
- package/dist/commonjs/models/components/deploymentscalingcreate.d.ts +31 -0
- package/dist/commonjs/models/components/deploymentscalingcreate.d.ts.map +1 -0
- package/dist/commonjs/models/components/deploymentscalingcreate.js +83 -0
- package/dist/commonjs/models/components/deploymentscalingcreate.js.map +1 -0
- package/dist/commonjs/models/components/deploymentscalingupdate.d.ts +28 -0
- package/dist/commonjs/models/components/deploymentscalingupdate.d.ts.map +1 -0
- package/dist/commonjs/models/components/deploymentscalingupdate.js +83 -0
- package/dist/commonjs/models/components/deploymentscalingupdate.js.map +1 -0
- package/dist/commonjs/models/components/deploymentupdate.d.ts +7 -0
- package/dist/commonjs/models/components/deploymentupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/deploymentupdate.js +9 -0
- package/dist/commonjs/models/components/deploymentupdate.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +6 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +6 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/pageservingtenant.d.ts +22 -0
- package/dist/commonjs/models/components/pageservingtenant.d.ts.map +1 -0
- package/dist/commonjs/models/components/pageservingtenant.js +72 -0
- package/dist/commonjs/models/components/pageservingtenant.js.map +1 -0
- package/dist/commonjs/models/components/replica.d.ts +9 -0
- package/dist/commonjs/models/components/replica.d.ts.map +1 -1
- package/dist/commonjs/models/components/replica.js +8 -0
- package/dist/commonjs/models/components/replica.js.map +1 -1
- package/dist/commonjs/models/components/servingtenant.d.ts +28 -0
- package/dist/commonjs/models/components/servingtenant.d.ts.map +1 -0
- package/dist/commonjs/models/components/servingtenant.js +81 -0
- package/dist/commonjs/models/components/servingtenant.js.map +1 -0
- package/dist/commonjs/models/components/servingtenantset.d.ts +20 -0
- package/dist/commonjs/models/components/servingtenantset.d.ts.map +1 -0
- package/dist/commonjs/models/components/servingtenantset.js +58 -0
- package/dist/commonjs/models/components/servingtenantset.js.map +1 -0
- package/dist/commonjs/models/operations/getservingtenant.d.ts +22 -0
- package/dist/commonjs/models/operations/getservingtenant.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getservingtenant.js +71 -0
- package/dist/commonjs/models/operations/getservingtenant.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listservingtenants.d.ts +24 -0
- package/dist/commonjs/models/operations/listservingtenants.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listservingtenants.js +71 -0
- package/dist/commonjs/models/operations/listservingtenants.js.map +1 -0
- package/dist/commonjs/models/operations/setservingtenant.d.ts +25 -0
- package/dist/commonjs/models/operations/setservingtenant.d.ts.map +1 -0
- package/dist/commonjs/models/operations/setservingtenant.js +76 -0
- package/dist/commonjs/models/operations/setservingtenant.js.map +1 -0
- package/dist/commonjs/models/operations/updatescaling.d.ts +2 -2
- package/dist/commonjs/models/operations/updatescaling.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatescaling.js +4 -4
- package/dist/commonjs/models/operations/updatescaling.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +3 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +3 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/servingTenantsGet.core.d.ts +15 -0
- package/dist/commonjs/react-query/servingTenantsGet.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsGet.core.js +36 -0
- package/dist/commonjs/react-query/servingTenantsGet.core.js.map +1 -0
- package/dist/commonjs/react-query/servingTenantsGet.d.ts +39 -0
- package/dist/commonjs/react-query/servingTenantsGet.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsGet.js +60 -0
- package/dist/commonjs/react-query/servingTenantsGet.js.map +1 -0
- package/dist/commonjs/react-query/servingTenantsList.core.d.ts +17 -0
- package/dist/commonjs/react-query/servingTenantsList.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsList.core.js +38 -0
- package/dist/commonjs/react-query/servingTenantsList.core.js.map +1 -0
- package/dist/commonjs/react-query/servingTenantsList.d.ts +41 -0
- package/dist/commonjs/react-query/servingTenantsList.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsList.js +60 -0
- package/dist/commonjs/react-query/servingTenantsList.js.map +1 -0
- package/dist/commonjs/react-query/servingTenantsSet.d.ts +30 -0
- package/dist/commonjs/react-query/servingTenantsSet.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsSet.js +47 -0
- package/dist/commonjs/react-query/servingTenantsSet.js.map +1 -0
- package/dist/commonjs/sdk/serving.d.ts +3 -0
- package/dist/commonjs/sdk/serving.d.ts.map +1 -1
- package/dist/commonjs/sdk/serving.js +4 -0
- package/dist/commonjs/sdk/serving.js.map +1 -1
- package/dist/commonjs/sdk/tenants.d.ts +27 -0
- package/dist/commonjs/sdk/tenants.d.ts.map +1 -0
- package/dist/commonjs/sdk/tenants.js +42 -0
- package/dist/commonjs/sdk/tenants.js.map +1 -0
- package/dist/esm/funcs/servingDeploymentsCreate.js +1 -1
- package/dist/esm/funcs/servingDeploymentsCreate.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsDelete.js +1 -1
- package/dist/esm/funcs/servingDeploymentsDelete.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsDeregister.js +1 -1
- package/dist/esm/funcs/servingDeploymentsDeregister.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsGet.js +1 -1
- package/dist/esm/funcs/servingDeploymentsGet.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsList.js +1 -1
- package/dist/esm/funcs/servingDeploymentsList.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsListReplicas.js +1 -1
- package/dist/esm/funcs/servingDeploymentsListReplicas.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsListRevisions.js +1 -1
- package/dist/esm/funcs/servingDeploymentsListRevisions.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsRegister.js +1 -1
- package/dist/esm/funcs/servingDeploymentsRegister.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsUpdate.js +1 -1
- package/dist/esm/funcs/servingDeploymentsUpdate.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsUpdateScaling.js +4 -2
- package/dist/esm/funcs/servingDeploymentsUpdateScaling.js.map +1 -1
- package/dist/esm/funcs/servingModelsDelete.js +1 -1
- package/dist/esm/funcs/servingModelsDelete.js.map +1 -1
- package/dist/esm/funcs/servingSecretsDelete.js +1 -1
- package/dist/esm/funcs/servingSecretsDelete.js.map +1 -1
- package/dist/esm/funcs/servingTenantsGet.d.ts +19 -0
- package/dist/esm/funcs/servingTenantsGet.d.ts.map +1 -0
- package/dist/esm/funcs/servingTenantsGet.js +100 -0
- package/dist/esm/funcs/servingTenantsGet.js.map +1 -0
- package/dist/esm/funcs/servingTenantsList.d.ts +19 -0
- package/dist/esm/funcs/servingTenantsList.d.ts.map +1 -0
- package/dist/esm/funcs/servingTenantsList.js +99 -0
- package/dist/esm/funcs/servingTenantsList.js.map +1 -0
- package/dist/esm/funcs/servingTenantsSet.d.ts +19 -0
- package/dist/esm/funcs/servingTenantsSet.d.ts.map +1 -0
- package/dist/esm/funcs/servingTenantsSet.js +101 -0
- package/dist/esm/funcs/servingTenantsSet.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 +7 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/servingTenantsGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingTenantsGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsGet.js +28 -0
- package/dist/esm/mcp-server/tools/servingTenantsGet.js.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingTenantsList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsList.js +28 -0
- package/dist/esm/mcp-server/tools/servingTenantsList.js.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsSet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingTenantsSet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsSet.js +28 -0
- package/dist/esm/mcp-server/tools/servingTenantsSet.js.map +1 -0
- package/dist/esm/models/components/deploymentapiformat.d.ts +22 -0
- package/dist/esm/models/components/deploymentapiformat.d.ts.map +1 -0
- package/dist/esm/models/components/deploymentapiformat.js +20 -0
- package/dist/esm/models/components/deploymentapiformat.js.map +1 -0
- package/dist/esm/models/components/deploymentcreate.d.ts +26 -5
- package/dist/esm/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/esm/models/components/deploymentcreate.js +16 -3
- package/dist/esm/models/components/deploymentcreate.js.map +1 -1
- package/dist/esm/models/components/deploymentscalingcreate.d.ts +31 -0
- package/dist/esm/models/components/deploymentscalingcreate.d.ts.map +1 -0
- package/dist/esm/models/components/deploymentscalingcreate.js +45 -0
- package/dist/esm/models/components/deploymentscalingcreate.js.map +1 -0
- package/dist/esm/models/components/deploymentscalingupdate.d.ts +28 -0
- package/dist/esm/models/components/deploymentscalingupdate.d.ts.map +1 -0
- package/dist/esm/models/components/deploymentscalingupdate.js +45 -0
- package/dist/esm/models/components/deploymentscalingupdate.js.map +1 -0
- package/dist/esm/models/components/deploymentupdate.d.ts +7 -0
- package/dist/esm/models/components/deploymentupdate.d.ts.map +1 -1
- package/dist/esm/models/components/deploymentupdate.js +9 -0
- package/dist/esm/models/components/deploymentupdate.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +6 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +6 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/pageservingtenant.d.ts +22 -0
- package/dist/esm/models/components/pageservingtenant.d.ts.map +1 -0
- package/dist/esm/models/components/pageservingtenant.js +34 -0
- package/dist/esm/models/components/pageservingtenant.js.map +1 -0
- package/dist/esm/models/components/replica.d.ts +9 -0
- package/dist/esm/models/components/replica.d.ts.map +1 -1
- package/dist/esm/models/components/replica.js +8 -0
- package/dist/esm/models/components/replica.js.map +1 -1
- package/dist/esm/models/components/servingtenant.d.ts +28 -0
- package/dist/esm/models/components/servingtenant.d.ts.map +1 -0
- package/dist/esm/models/components/servingtenant.js +43 -0
- package/dist/esm/models/components/servingtenant.js.map +1 -0
- package/dist/esm/models/components/servingtenantset.d.ts +20 -0
- package/dist/esm/models/components/servingtenantset.d.ts.map +1 -0
- package/dist/esm/models/components/servingtenantset.js +20 -0
- package/dist/esm/models/components/servingtenantset.js.map +1 -0
- package/dist/esm/models/operations/getservingtenant.d.ts +22 -0
- package/dist/esm/models/operations/getservingtenant.d.ts.map +1 -0
- package/dist/esm/models/operations/getservingtenant.js +33 -0
- package/dist/esm/models/operations/getservingtenant.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listservingtenants.d.ts +24 -0
- package/dist/esm/models/operations/listservingtenants.d.ts.map +1 -0
- package/dist/esm/models/operations/listservingtenants.js +33 -0
- package/dist/esm/models/operations/listservingtenants.js.map +1 -0
- package/dist/esm/models/operations/setservingtenant.d.ts +25 -0
- package/dist/esm/models/operations/setservingtenant.d.ts.map +1 -0
- package/dist/esm/models/operations/setservingtenant.js +38 -0
- package/dist/esm/models/operations/setservingtenant.js.map +1 -0
- package/dist/esm/models/operations/updatescaling.d.ts +2 -2
- package/dist/esm/models/operations/updatescaling.d.ts.map +1 -1
- package/dist/esm/models/operations/updatescaling.js +4 -4
- package/dist/esm/models/operations/updatescaling.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +3 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +3 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/servingTenantsGet.core.d.ts +15 -0
- package/dist/esm/react-query/servingTenantsGet.core.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsGet.core.js +31 -0
- package/dist/esm/react-query/servingTenantsGet.core.js.map +1 -0
- package/dist/esm/react-query/servingTenantsGet.d.ts +39 -0
- package/dist/esm/react-query/servingTenantsGet.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsGet.js +50 -0
- package/dist/esm/react-query/servingTenantsGet.js.map +1 -0
- package/dist/esm/react-query/servingTenantsList.core.d.ts +17 -0
- package/dist/esm/react-query/servingTenantsList.core.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsList.core.js +33 -0
- package/dist/esm/react-query/servingTenantsList.core.js.map +1 -0
- package/dist/esm/react-query/servingTenantsList.d.ts +41 -0
- package/dist/esm/react-query/servingTenantsList.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsList.js +50 -0
- package/dist/esm/react-query/servingTenantsList.js.map +1 -0
- package/dist/esm/react-query/servingTenantsSet.d.ts +30 -0
- package/dist/esm/react-query/servingTenantsSet.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsSet.js +42 -0
- package/dist/esm/react-query/servingTenantsSet.js.map +1 -0
- package/dist/esm/sdk/serving.d.ts +3 -0
- package/dist/esm/sdk/serving.d.ts.map +1 -1
- package/dist/esm/sdk/serving.js +4 -0
- package/dist/esm/sdk/serving.js.map +1 -1
- package/dist/esm/sdk/tenants.d.ts +27 -0
- package/dist/esm/sdk/tenants.d.ts.map +1 -0
- package/dist/esm/sdk/tenants.js +38 -0
- package/dist/esm/sdk/tenants.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/servingDeploymentsCreate.ts +3 -2
- package/src/funcs/servingDeploymentsDelete.ts +3 -2
- package/src/funcs/servingDeploymentsDeregister.ts +2 -1
- package/src/funcs/servingDeploymentsGet.ts +3 -2
- package/src/funcs/servingDeploymentsList.ts +3 -2
- package/src/funcs/servingDeploymentsListReplicas.ts +1 -0
- package/src/funcs/servingDeploymentsListRevisions.ts +3 -2
- package/src/funcs/servingDeploymentsRegister.ts +1 -0
- package/src/funcs/servingDeploymentsUpdate.ts +3 -2
- package/src/funcs/servingDeploymentsUpdateScaling.ts +4 -1
- package/src/funcs/servingModelsDelete.ts +1 -1
- package/src/funcs/servingSecretsDelete.ts +1 -1
- package/src/funcs/servingTenantsGet.ts +196 -0
- package/src/funcs/servingTenantsList.ts +196 -0
- package/src/funcs/servingTenantsSet.ts +197 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/servingTenantsGet.ts +37 -0
- package/src/mcp-server/tools/servingTenantsList.ts +37 -0
- package/src/mcp-server/tools/servingTenantsSet.ts +37 -0
- package/src/models/components/deploymentapiformat.ts +31 -0
- package/src/models/components/deploymentcreate.ts +49 -12
- package/src/models/components/deploymentscalingcreate.ts +90 -0
- package/src/models/components/deploymentscalingupdate.ts +87 -0
- package/src/models/components/deploymentupdate.ts +19 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/pageservingtenant.ts +74 -0
- package/src/models/components/replica.ts +17 -0
- package/src/models/components/servingtenant.ts +85 -0
- package/src/models/components/servingtenantset.ts +54 -0
- package/src/models/operations/getservingtenant.ts +69 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/listservingtenants.ts +71 -0
- package/src/models/operations/setservingtenant.ts +76 -0
- package/src/models/operations/updatescaling.ts +6 -6
- package/src/react-query/index.ts +3 -0
- package/src/react-query/servingTenantsGet.core.ts +76 -0
- package/src/react-query/servingTenantsGet.ts +141 -0
- package/src/react-query/servingTenantsList.core.ts +81 -0
- package/src/react-query/servingTenantsList.ts +148 -0
- package/src/react-query/servingTenantsSet.ts +112 -0
- package/src/sdk/serving.ts +6 -0
- package/src/sdk/tenants.ts +64 -0
package/bin/mcp-server.js
CHANGED
|
@@ -52876,9 +52876,9 @@ var init_config = __esm(() => {
|
|
|
52876
52876
|
SDK_METADATA = {
|
|
52877
52877
|
language: "typescript",
|
|
52878
52878
|
openapiDocVersion: "1.1.0",
|
|
52879
|
-
sdkVersion: "0.51.
|
|
52879
|
+
sdkVersion: "0.51.6",
|
|
52880
52880
|
genVersion: "2.918.4",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.51.6 2.918.4 1.1.0 @meetkai/mka1"
|
|
52882
52882
|
};
|
|
52883
52883
|
});
|
|
52884
52884
|
|
|
@@ -63485,6 +63485,59 @@ var init_deployment = __esm(() => {
|
|
|
63485
63485
|
});
|
|
63486
63486
|
});
|
|
63487
63487
|
|
|
63488
|
+
// src/models/components/deploymentapiformat.ts
|
|
63489
|
+
var DeploymentAPIFormat, DeploymentAPIFormat$inboundSchema, DeploymentAPIFormat$outboundSchema;
|
|
63490
|
+
var init_deploymentapiformat = __esm(() => {
|
|
63491
|
+
init_esm();
|
|
63492
|
+
DeploymentAPIFormat = {
|
|
63493
|
+
Responses: "responses",
|
|
63494
|
+
Completions: "completions",
|
|
63495
|
+
Embeddings: "embeddings",
|
|
63496
|
+
Images: "images",
|
|
63497
|
+
Transcriptions: "transcriptions",
|
|
63498
|
+
Tts: "tts"
|
|
63499
|
+
};
|
|
63500
|
+
DeploymentAPIFormat$inboundSchema = nativeEnumType(DeploymentAPIFormat);
|
|
63501
|
+
DeploymentAPIFormat$outboundSchema = DeploymentAPIFormat$inboundSchema;
|
|
63502
|
+
});
|
|
63503
|
+
|
|
63504
|
+
// src/models/components/deploymentscalingcreate.ts
|
|
63505
|
+
var DeploymentScalingCreate$inboundSchema, DeploymentScalingCreate$outboundSchema;
|
|
63506
|
+
var init_deploymentscalingcreate = __esm(() => {
|
|
63507
|
+
init_esm();
|
|
63508
|
+
init_primitives();
|
|
63509
|
+
DeploymentScalingCreate$inboundSchema = objectType({
|
|
63510
|
+
buffer_containers: numberType().int().default(0),
|
|
63511
|
+
max_concurrent_inputs: numberType().int().default(100),
|
|
63512
|
+
max_containers: numberType().int().default(1),
|
|
63513
|
+
min_containers: numberType().int().default(1),
|
|
63514
|
+
scaledown_window_s: numberType().int().default(300)
|
|
63515
|
+
}).transform((v2) => {
|
|
63516
|
+
return remap(v2, {
|
|
63517
|
+
buffer_containers: "bufferContainers",
|
|
63518
|
+
max_concurrent_inputs: "maxConcurrentInputs",
|
|
63519
|
+
max_containers: "maxContainers",
|
|
63520
|
+
min_containers: "minContainers",
|
|
63521
|
+
scaledown_window_s: "scaledownWindowS"
|
|
63522
|
+
});
|
|
63523
|
+
});
|
|
63524
|
+
DeploymentScalingCreate$outboundSchema = objectType({
|
|
63525
|
+
bufferContainers: numberType().int().default(0),
|
|
63526
|
+
maxConcurrentInputs: numberType().int().default(100),
|
|
63527
|
+
maxContainers: numberType().int().default(1),
|
|
63528
|
+
minContainers: numberType().int().default(1),
|
|
63529
|
+
scaledownWindowS: numberType().int().default(300)
|
|
63530
|
+
}).transform((v2) => {
|
|
63531
|
+
return remap(v2, {
|
|
63532
|
+
bufferContainers: "buffer_containers",
|
|
63533
|
+
maxConcurrentInputs: "max_concurrent_inputs",
|
|
63534
|
+
maxContainers: "max_containers",
|
|
63535
|
+
minContainers: "min_containers",
|
|
63536
|
+
scaledownWindowS: "scaledown_window_s"
|
|
63537
|
+
});
|
|
63538
|
+
});
|
|
63539
|
+
});
|
|
63540
|
+
|
|
63488
63541
|
// src/models/components/deploystrategy.ts
|
|
63489
63542
|
var DeployStrategy, DeployStrategy$inboundSchema, DeployStrategy$outboundSchema;
|
|
63490
63543
|
var init_deploystrategy = __esm(() => {
|
|
@@ -63503,43 +63556,56 @@ var init_deploymentcreate = __esm(() => {
|
|
|
63503
63556
|
init_esm();
|
|
63504
63557
|
init_primitives();
|
|
63505
63558
|
init_acceleratorspec();
|
|
63559
|
+
init_deploymentapiformat();
|
|
63560
|
+
init_deploymentscalingcreate();
|
|
63506
63561
|
init_deploystrategy();
|
|
63507
63562
|
init_engine();
|
|
63508
|
-
init_scaling();
|
|
63509
63563
|
DeploymentCreate$inboundSchema = objectType({
|
|
63510
63564
|
accelerator: AcceleratorSpec$inboundSchema,
|
|
63565
|
+
api_format: DeploymentAPIFormat$inboundSchema.optional(),
|
|
63511
63566
|
endpoint_auth: booleanType().default(true),
|
|
63512
63567
|
engine: Engine$inboundSchema.optional(),
|
|
63513
63568
|
engine_args: arrayType(stringType()).optional(),
|
|
63514
63569
|
image: nullableType(stringType()).optional(),
|
|
63570
|
+
max_usd_hr: numberType(),
|
|
63515
63571
|
model: stringType(),
|
|
63516
63572
|
name: stringType(),
|
|
63517
|
-
|
|
63573
|
+
port: numberType().int().optional(),
|
|
63574
|
+
runtime: stringType().optional(),
|
|
63575
|
+
scaling: DeploymentScalingCreate$inboundSchema.optional(),
|
|
63518
63576
|
secrets: arrayType(stringType()).optional(),
|
|
63519
63577
|
strategy: DeployStrategy$inboundSchema.optional(),
|
|
63520
63578
|
volume: nullableType(stringType()).optional()
|
|
63521
63579
|
}).transform((v2) => {
|
|
63522
63580
|
return remap(v2, {
|
|
63581
|
+
api_format: "apiFormat",
|
|
63523
63582
|
endpoint_auth: "endpointAuth",
|
|
63524
|
-
engine_args: "engineArgs"
|
|
63583
|
+
engine_args: "engineArgs",
|
|
63584
|
+
max_usd_hr: "maxUsdHr"
|
|
63525
63585
|
});
|
|
63526
63586
|
});
|
|
63527
63587
|
DeploymentCreate$outboundSchema = objectType({
|
|
63528
63588
|
accelerator: AcceleratorSpec$outboundSchema,
|
|
63589
|
+
apiFormat: DeploymentAPIFormat$outboundSchema.optional(),
|
|
63529
63590
|
endpointAuth: booleanType().default(true),
|
|
63530
63591
|
engine: Engine$outboundSchema.optional(),
|
|
63531
63592
|
engineArgs: arrayType(stringType()).optional(),
|
|
63532
63593
|
image: nullableType(stringType()).optional(),
|
|
63594
|
+
maxUsdHr: numberType(),
|
|
63533
63595
|
model: stringType(),
|
|
63534
63596
|
name: stringType(),
|
|
63535
|
-
|
|
63597
|
+
port: numberType().int().optional(),
|
|
63598
|
+
runtime: stringType().optional(),
|
|
63599
|
+
scaling: DeploymentScalingCreate$outboundSchema.optional(),
|
|
63536
63600
|
secrets: arrayType(stringType()).optional(),
|
|
63537
63601
|
strategy: DeployStrategy$outboundSchema.optional(),
|
|
63538
63602
|
volume: nullableType(stringType()).optional()
|
|
63539
63603
|
}).transform((v2) => {
|
|
63540
63604
|
return remap(v2, {
|
|
63605
|
+
apiFormat: "api_format",
|
|
63541
63606
|
endpointAuth: "endpoint_auth",
|
|
63542
|
-
engineArgs: "engine_args"
|
|
63607
|
+
engineArgs: "engine_args",
|
|
63608
|
+
maxUsdHr: "max_usd_hr"
|
|
63543
63609
|
});
|
|
63544
63610
|
});
|
|
63545
63611
|
});
|
|
@@ -63559,31 +63625,77 @@ var init_deploymentrollbackrequest = __esm(() => {
|
|
|
63559
63625
|
});
|
|
63560
63626
|
});
|
|
63561
63627
|
|
|
63628
|
+
// src/models/components/deploymentscalingupdate.ts
|
|
63629
|
+
var DeploymentScalingUpdate$inboundSchema, DeploymentScalingUpdate$outboundSchema;
|
|
63630
|
+
var init_deploymentscalingupdate = __esm(() => {
|
|
63631
|
+
init_esm();
|
|
63632
|
+
init_primitives();
|
|
63633
|
+
DeploymentScalingUpdate$inboundSchema = objectType({
|
|
63634
|
+
buffer_containers: numberType().int().optional(),
|
|
63635
|
+
max_concurrent_inputs: numberType().int().optional(),
|
|
63636
|
+
max_containers: numberType().int().optional(),
|
|
63637
|
+
min_containers: numberType().int().optional(),
|
|
63638
|
+
scaledown_window_s: numberType().int().optional()
|
|
63639
|
+
}).transform((v2) => {
|
|
63640
|
+
return remap(v2, {
|
|
63641
|
+
buffer_containers: "bufferContainers",
|
|
63642
|
+
max_concurrent_inputs: "maxConcurrentInputs",
|
|
63643
|
+
max_containers: "maxContainers",
|
|
63644
|
+
min_containers: "minContainers",
|
|
63645
|
+
scaledown_window_s: "scaledownWindowS"
|
|
63646
|
+
});
|
|
63647
|
+
});
|
|
63648
|
+
DeploymentScalingUpdate$outboundSchema = objectType({
|
|
63649
|
+
bufferContainers: numberType().int().optional(),
|
|
63650
|
+
maxConcurrentInputs: numberType().int().optional(),
|
|
63651
|
+
maxContainers: numberType().int().optional(),
|
|
63652
|
+
minContainers: numberType().int().optional(),
|
|
63653
|
+
scaledownWindowS: numberType().int().optional()
|
|
63654
|
+
}).transform((v2) => {
|
|
63655
|
+
return remap(v2, {
|
|
63656
|
+
bufferContainers: "buffer_containers",
|
|
63657
|
+
maxConcurrentInputs: "max_concurrent_inputs",
|
|
63658
|
+
maxContainers: "max_containers",
|
|
63659
|
+
minContainers: "min_containers",
|
|
63660
|
+
scaledownWindowS: "scaledown_window_s"
|
|
63661
|
+
});
|
|
63662
|
+
});
|
|
63663
|
+
});
|
|
63664
|
+
|
|
63562
63665
|
// src/models/components/deploymentupdate.ts
|
|
63563
63666
|
var DeploymentUpdate$inboundSchema, DeploymentUpdate$outboundSchema;
|
|
63564
63667
|
var init_deploymentupdate = __esm(() => {
|
|
63565
63668
|
init_esm();
|
|
63566
63669
|
init_primitives();
|
|
63670
|
+
init_deploymentapiformat();
|
|
63567
63671
|
init_deploystrategy();
|
|
63568
63672
|
DeploymentUpdate$inboundSchema = objectType({
|
|
63673
|
+
api_format: nullableType(DeploymentAPIFormat$inboundSchema).optional(),
|
|
63569
63674
|
engine_args: nullableType(arrayType(stringType())).optional(),
|
|
63570
63675
|
image: nullableType(stringType()).optional(),
|
|
63571
63676
|
model: nullableType(stringType()).optional(),
|
|
63677
|
+
port: nullableType(numberType().int()).optional(),
|
|
63678
|
+
runtime: nullableType(stringType()).optional(),
|
|
63572
63679
|
secrets: nullableType(arrayType(stringType())).optional(),
|
|
63573
63680
|
strategy: DeployStrategy$inboundSchema.optional()
|
|
63574
63681
|
}).transform((v2) => {
|
|
63575
63682
|
return remap(v2, {
|
|
63683
|
+
api_format: "apiFormat",
|
|
63576
63684
|
engine_args: "engineArgs"
|
|
63577
63685
|
});
|
|
63578
63686
|
});
|
|
63579
63687
|
DeploymentUpdate$outboundSchema = objectType({
|
|
63688
|
+
apiFormat: nullableType(DeploymentAPIFormat$outboundSchema).optional(),
|
|
63580
63689
|
engineArgs: nullableType(arrayType(stringType())).optional(),
|
|
63581
63690
|
image: nullableType(stringType()).optional(),
|
|
63582
63691
|
model: nullableType(stringType()).optional(),
|
|
63692
|
+
port: nullableType(numberType().int()).optional(),
|
|
63693
|
+
runtime: nullableType(stringType()).optional(),
|
|
63583
63694
|
secrets: nullableType(arrayType(stringType())).optional(),
|
|
63584
63695
|
strategy: DeployStrategy$outboundSchema.optional()
|
|
63585
63696
|
}).transform((v2) => {
|
|
63586
63697
|
return remap(v2, {
|
|
63698
|
+
apiFormat: "api_format",
|
|
63587
63699
|
engineArgs: "engine_args"
|
|
63588
63700
|
});
|
|
63589
63701
|
});
|
|
@@ -69773,10 +69885,14 @@ var init_replica = __esm(() => {
|
|
|
69773
69885
|
accelerator: AcceleratorSpec$inboundSchema,
|
|
69774
69886
|
id: stringType(),
|
|
69775
69887
|
node: nullableType(stringType()).optional(),
|
|
69888
|
+
price_usd_hr: numberType().optional(),
|
|
69889
|
+
provider: stringType().optional(),
|
|
69890
|
+
region: stringType().optional(),
|
|
69776
69891
|
started_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
69777
69892
|
status: stringType()
|
|
69778
69893
|
}).transform((v2) => {
|
|
69779
69894
|
return remap(v2, {
|
|
69895
|
+
price_usd_hr: "priceUsdHr",
|
|
69780
69896
|
started_at: "startedAt"
|
|
69781
69897
|
});
|
|
69782
69898
|
});
|
|
@@ -69784,10 +69900,14 @@ var init_replica = __esm(() => {
|
|
|
69784
69900
|
accelerator: AcceleratorSpec$outboundSchema,
|
|
69785
69901
|
id: stringType(),
|
|
69786
69902
|
node: nullableType(stringType()).optional(),
|
|
69903
|
+
priceUsdHr: numberType().optional(),
|
|
69904
|
+
provider: stringType().optional(),
|
|
69905
|
+
region: stringType().optional(),
|
|
69787
69906
|
startedAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
69788
69907
|
status: stringType()
|
|
69789
69908
|
}).transform((v2) => {
|
|
69790
69909
|
return remap(v2, {
|
|
69910
|
+
priceUsdHr: "price_usd_hr",
|
|
69791
69911
|
startedAt: "started_at"
|
|
69792
69912
|
});
|
|
69793
69913
|
});
|
|
@@ -69934,6 +70054,67 @@ var init_pagesecret = __esm(() => {
|
|
|
69934
70054
|
});
|
|
69935
70055
|
});
|
|
69936
70056
|
|
|
70057
|
+
// src/models/components/servingtenant.ts
|
|
70058
|
+
var ServingTenant$inboundSchema, ServingTenant$outboundSchema;
|
|
70059
|
+
var init_servingtenant = __esm(() => {
|
|
70060
|
+
init_esm();
|
|
70061
|
+
init_primitives();
|
|
70062
|
+
ServingTenant$inboundSchema = objectType({
|
|
70063
|
+
disabled_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
70064
|
+
enabled: booleanType(),
|
|
70065
|
+
enabled_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
70066
|
+
enabled_by: nullableType(stringType()),
|
|
70067
|
+
org_id: stringType()
|
|
70068
|
+
}).transform((v2) => {
|
|
70069
|
+
return remap(v2, {
|
|
70070
|
+
disabled_at: "disabledAt",
|
|
70071
|
+
enabled_at: "enabledAt",
|
|
70072
|
+
enabled_by: "enabledBy",
|
|
70073
|
+
org_id: "orgId"
|
|
70074
|
+
});
|
|
70075
|
+
});
|
|
70076
|
+
ServingTenant$outboundSchema = objectType({
|
|
70077
|
+
disabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
70078
|
+
enabled: booleanType(),
|
|
70079
|
+
enabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
70080
|
+
enabledBy: nullableType(stringType()),
|
|
70081
|
+
orgId: stringType()
|
|
70082
|
+
}).transform((v2) => {
|
|
70083
|
+
return remap(v2, {
|
|
70084
|
+
disabledAt: "disabled_at",
|
|
70085
|
+
enabledAt: "enabled_at",
|
|
70086
|
+
enabledBy: "enabled_by",
|
|
70087
|
+
orgId: "org_id"
|
|
70088
|
+
});
|
|
70089
|
+
});
|
|
70090
|
+
});
|
|
70091
|
+
|
|
70092
|
+
// src/models/components/pageservingtenant.ts
|
|
70093
|
+
var PageServingTenant$inboundSchema, PageServingTenant$outboundSchema;
|
|
70094
|
+
var init_pageservingtenant = __esm(() => {
|
|
70095
|
+
init_esm();
|
|
70096
|
+
init_primitives();
|
|
70097
|
+
init_servingtenant();
|
|
70098
|
+
PageServingTenant$inboundSchema = objectType({
|
|
70099
|
+
data: arrayType(ServingTenant$inboundSchema),
|
|
70100
|
+
next_cursor: nullableType(stringType()).optional(),
|
|
70101
|
+
total: numberType().int()
|
|
70102
|
+
}).transform((v2) => {
|
|
70103
|
+
return remap(v2, {
|
|
70104
|
+
next_cursor: "nextCursor"
|
|
70105
|
+
});
|
|
70106
|
+
});
|
|
70107
|
+
PageServingTenant$outboundSchema = objectType({
|
|
70108
|
+
data: arrayType(ServingTenant$outboundSchema),
|
|
70109
|
+
nextCursor: nullableType(stringType()).optional(),
|
|
70110
|
+
total: numberType().int()
|
|
70111
|
+
}).transform((v2) => {
|
|
70112
|
+
return remap(v2, {
|
|
70113
|
+
nextCursor: "next_cursor"
|
|
70114
|
+
});
|
|
70115
|
+
});
|
|
70116
|
+
});
|
|
70117
|
+
|
|
69937
70118
|
// src/models/components/volume.ts
|
|
69938
70119
|
var Volume$inboundSchema, Volume$outboundSchema;
|
|
69939
70120
|
var init_volume = __esm(() => {
|
|
@@ -74011,6 +74192,18 @@ var init_security2 = __esm(() => {
|
|
|
74011
74192
|
});
|
|
74012
74193
|
});
|
|
74013
74194
|
|
|
74195
|
+
// src/models/components/servingtenantset.ts
|
|
74196
|
+
var ServingTenantSet$inboundSchema, ServingTenantSet$outboundSchema;
|
|
74197
|
+
var init_servingtenantset = __esm(() => {
|
|
74198
|
+
init_esm();
|
|
74199
|
+
ServingTenantSet$inboundSchema = objectType({
|
|
74200
|
+
enabled: booleanType()
|
|
74201
|
+
});
|
|
74202
|
+
ServingTenantSet$outboundSchema = objectType({
|
|
74203
|
+
enabled: booleanType()
|
|
74204
|
+
});
|
|
74205
|
+
});
|
|
74206
|
+
|
|
74014
74207
|
// src/models/components/servingvalidationerror.ts
|
|
74015
74208
|
var Context$inboundSchema, Context$outboundSchema, ServingValidationErrorLoc$inboundSchema, ServingValidationErrorLoc$outboundSchema, ServingValidationError$inboundSchema, ServingValidationError$outboundSchema;
|
|
74016
74209
|
var init_servingvalidationerror = __esm(() => {
|
|
@@ -76547,9 +76740,12 @@ var init_components = __esm(() => {
|
|
|
76547
76740
|
init_deletepromptresponse();
|
|
76548
76741
|
init_deleteresponseobject();
|
|
76549
76742
|
init_deployment();
|
|
76743
|
+
init_deploymentapiformat();
|
|
76550
76744
|
init_deploymentcreate();
|
|
76551
76745
|
init_deploymentendpoint();
|
|
76552
76746
|
init_deploymentrollbackrequest();
|
|
76747
|
+
init_deploymentscalingcreate();
|
|
76748
|
+
init_deploymentscalingupdate();
|
|
76553
76749
|
init_deploymentupdate();
|
|
76554
76750
|
init_deploystrategy();
|
|
76555
76751
|
init_doubleclickaction();
|
|
@@ -76754,6 +76950,7 @@ var init_components = __esm(() => {
|
|
|
76754
76950
|
init_pagereplica();
|
|
76755
76951
|
init_pagerevision();
|
|
76756
76952
|
init_pagesecret();
|
|
76953
|
+
init_pageservingtenant();
|
|
76757
76954
|
init_pagevolume();
|
|
76758
76955
|
init_pendingsafetycheck();
|
|
76759
76956
|
init_preconfiguredskill();
|
|
@@ -76881,6 +77078,8 @@ var init_components = __esm(() => {
|
|
|
76881
77078
|
init_secret();
|
|
76882
77079
|
init_secretcreate();
|
|
76883
77080
|
init_security2();
|
|
77081
|
+
init_servingtenant();
|
|
77082
|
+
init_servingtenantset();
|
|
76884
77083
|
init_servingvalidationerror();
|
|
76885
77084
|
init_sessionkind();
|
|
76886
77085
|
init_sessionrecord();
|
|
@@ -90490,6 +90689,31 @@ var init_getservingmodel = __esm(() => {
|
|
|
90490
90689
|
});
|
|
90491
90690
|
});
|
|
90492
90691
|
|
|
90692
|
+
// src/models/operations/getservingtenant.ts
|
|
90693
|
+
var GetServingTenantRequest$inboundSchema, GetServingTenantRequest$outboundSchema;
|
|
90694
|
+
var init_getservingtenant = __esm(() => {
|
|
90695
|
+
init_esm();
|
|
90696
|
+
init_primitives();
|
|
90697
|
+
GetServingTenantRequest$inboundSchema = objectType({
|
|
90698
|
+
org_id: stringType(),
|
|
90699
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
90700
|
+
}).transform((v2) => {
|
|
90701
|
+
return remap(v2, {
|
|
90702
|
+
org_id: "orgId",
|
|
90703
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
90704
|
+
});
|
|
90705
|
+
});
|
|
90706
|
+
GetServingTenantRequest$outboundSchema = objectType({
|
|
90707
|
+
orgId: stringType(),
|
|
90708
|
+
xOnBehalfOf: stringType().optional()
|
|
90709
|
+
}).transform((v2) => {
|
|
90710
|
+
return remap(v2, {
|
|
90711
|
+
orgId: "org_id",
|
|
90712
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
90713
|
+
});
|
|
90714
|
+
});
|
|
90715
|
+
});
|
|
90716
|
+
|
|
90493
90717
|
// src/models/operations/getsession.ts
|
|
90494
90718
|
var GetSessionRequest$inboundSchema, GetSessionRequest$outboundSchema;
|
|
90495
90719
|
var init_getsession = __esm(() => {
|
|
@@ -93779,6 +94003,31 @@ var init_listservingmodels = __esm(() => {
|
|
|
93779
94003
|
});
|
|
93780
94004
|
});
|
|
93781
94005
|
|
|
94006
|
+
// src/models/operations/listservingtenants.ts
|
|
94007
|
+
var ListServingTenantsRequest$inboundSchema, ListServingTenantsRequest$outboundSchema;
|
|
94008
|
+
var init_listservingtenants = __esm(() => {
|
|
94009
|
+
init_esm();
|
|
94010
|
+
init_primitives();
|
|
94011
|
+
ListServingTenantsRequest$inboundSchema = objectType({
|
|
94012
|
+
cursor: nullableType(stringType()).optional(),
|
|
94013
|
+
limit: numberType().int().default(50),
|
|
94014
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
94015
|
+
}).transform((v2) => {
|
|
94016
|
+
return remap(v2, {
|
|
94017
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
94018
|
+
});
|
|
94019
|
+
});
|
|
94020
|
+
ListServingTenantsRequest$outboundSchema = objectType({
|
|
94021
|
+
cursor: nullableType(stringType()).optional(),
|
|
94022
|
+
limit: numberType().int().default(50),
|
|
94023
|
+
xOnBehalfOf: stringType().optional()
|
|
94024
|
+
}).transform((v2) => {
|
|
94025
|
+
return remap(v2, {
|
|
94026
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
94027
|
+
});
|
|
94028
|
+
});
|
|
94029
|
+
});
|
|
94030
|
+
|
|
93782
94031
|
// src/models/operations/listsessions.ts
|
|
93783
94032
|
var ListSessionsRequest$inboundSchema, ListSessionsRequest$outboundSchema;
|
|
93784
94033
|
var init_listsessions = __esm(() => {
|
|
@@ -95854,6 +96103,36 @@ var init_setorgprice = __esm(() => {
|
|
|
95854
96103
|
});
|
|
95855
96104
|
});
|
|
95856
96105
|
|
|
96106
|
+
// src/models/operations/setservingtenant.ts
|
|
96107
|
+
var SetServingTenantRequest$inboundSchema, SetServingTenantRequest$outboundSchema;
|
|
96108
|
+
var init_setservingtenant = __esm(() => {
|
|
96109
|
+
init_esm();
|
|
96110
|
+
init_primitives();
|
|
96111
|
+
init_components();
|
|
96112
|
+
SetServingTenantRequest$inboundSchema = objectType({
|
|
96113
|
+
org_id: stringType(),
|
|
96114
|
+
"X-On-Behalf-Of": stringType().optional(),
|
|
96115
|
+
ServingTenantSet: ServingTenantSet$inboundSchema
|
|
96116
|
+
}).transform((v2) => {
|
|
96117
|
+
return remap(v2, {
|
|
96118
|
+
org_id: "orgId",
|
|
96119
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
96120
|
+
ServingTenantSet: "servingTenantSet"
|
|
96121
|
+
});
|
|
96122
|
+
});
|
|
96123
|
+
SetServingTenantRequest$outboundSchema = objectType({
|
|
96124
|
+
orgId: stringType(),
|
|
96125
|
+
xOnBehalfOf: stringType().optional(),
|
|
96126
|
+
servingTenantSet: ServingTenantSet$outboundSchema
|
|
96127
|
+
}).transform((v2) => {
|
|
96128
|
+
return remap(v2, {
|
|
96129
|
+
orgId: "org_id",
|
|
96130
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
96131
|
+
servingTenantSet: "ServingTenantSet"
|
|
96132
|
+
});
|
|
96133
|
+
});
|
|
96134
|
+
});
|
|
96135
|
+
|
|
95857
96136
|
// src/models/operations/setupwhatsappappwebhook.ts
|
|
95858
96137
|
var SetupWhatsAppAppWebhookRequest$inboundSchema, SetupWhatsAppAppWebhookRequest$outboundSchema, SetupWhatsAppAppWebhookResponse$inboundSchema, SetupWhatsAppAppWebhookResponse$outboundSchema;
|
|
95859
96138
|
var init_setupwhatsappappwebhook = __esm(() => {
|
|
@@ -97334,23 +97613,23 @@ var init_updatescaling = __esm(() => {
|
|
|
97334
97613
|
UpdateScalingRequest$inboundSchema = objectType({
|
|
97335
97614
|
deployment_id: stringType(),
|
|
97336
97615
|
"X-On-Behalf-Of": stringType().optional(),
|
|
97337
|
-
|
|
97616
|
+
DeploymentScalingUpdate: DeploymentScalingUpdate$inboundSchema
|
|
97338
97617
|
}).transform((v2) => {
|
|
97339
97618
|
return remap(v2, {
|
|
97340
97619
|
deployment_id: "deploymentId",
|
|
97341
97620
|
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
97342
|
-
|
|
97621
|
+
DeploymentScalingUpdate: "deploymentScalingUpdate"
|
|
97343
97622
|
});
|
|
97344
97623
|
});
|
|
97345
97624
|
UpdateScalingRequest$outboundSchema = objectType({
|
|
97346
97625
|
deploymentId: stringType(),
|
|
97347
97626
|
xOnBehalfOf: stringType().optional(),
|
|
97348
|
-
|
|
97627
|
+
deploymentScalingUpdate: DeploymentScalingUpdate$outboundSchema
|
|
97349
97628
|
}).transform((v2) => {
|
|
97350
97629
|
return remap(v2, {
|
|
97351
97630
|
deploymentId: "deployment_id",
|
|
97352
97631
|
xOnBehalfOf: "X-On-Behalf-Of",
|
|
97353
|
-
|
|
97632
|
+
deploymentScalingUpdate: "DeploymentScalingUpdate"
|
|
97354
97633
|
});
|
|
97355
97634
|
});
|
|
97356
97635
|
});
|
|
@@ -98008,6 +98287,7 @@ var init_operations = __esm(() => {
|
|
|
98008
98287
|
init_getsandboxusage();
|
|
98009
98288
|
init_getserviceaccount2();
|
|
98010
98289
|
init_getservingmodel();
|
|
98290
|
+
init_getservingtenant();
|
|
98011
98291
|
init_getsession();
|
|
98012
98292
|
init_getsessionurl();
|
|
98013
98293
|
init_getskill();
|
|
@@ -98079,6 +98359,7 @@ var init_operations = __esm(() => {
|
|
|
98079
98359
|
init_listserviceaccountapikeys2();
|
|
98080
98360
|
init_listserviceaccounts2();
|
|
98081
98361
|
init_listservingmodels();
|
|
98362
|
+
init_listservingtenants();
|
|
98082
98363
|
init_listsessions();
|
|
98083
98364
|
init_listskills();
|
|
98084
98365
|
init_listskillversions();
|
|
@@ -98122,6 +98403,7 @@ var init_operations = __esm(() => {
|
|
|
98122
98403
|
init_setcurrency();
|
|
98123
98404
|
init_setorgbudget();
|
|
98124
98405
|
init_setorgprice();
|
|
98406
|
+
init_setservingtenant();
|
|
98125
98407
|
init_setupwhatsappappwebhook();
|
|
98126
98408
|
init_startexportfeedback();
|
|
98127
98409
|
init_streamagentrunevents();
|
|
@@ -131947,7 +132229,7 @@ async function $do287(client, request, options) {
|
|
|
131947
132229
|
const responseFields = {
|
|
131948
132230
|
HttpMeta: { Response: response, Request: req }
|
|
131949
132231
|
};
|
|
131950
|
-
const [result] = await match(json(201, Deployment$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
132232
|
+
const [result] = await match(json(201, Deployment$inboundSchema), jsonErr([401, 403, 404, 409], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
131951
132233
|
if (!result.ok) {
|
|
131952
132234
|
return [result, { status: "complete", request: req, response }];
|
|
131953
132235
|
}
|
|
@@ -132067,7 +132349,7 @@ async function $do288(client, request, options) {
|
|
|
132067
132349
|
const responseFields = {
|
|
132068
132350
|
HttpMeta: { Response: response, Request: req }
|
|
132069
132351
|
};
|
|
132070
|
-
const [result] = await match(nil(204, voidType()), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
132352
|
+
const [result] = await match(nil(204, voidType()), jsonErr([401, 403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132071
132353
|
if (!result.ok) {
|
|
132072
132354
|
return [result, { status: "complete", request: req, response }];
|
|
132073
132355
|
}
|
|
@@ -132186,7 +132468,7 @@ async function $do289(client, request, options) {
|
|
|
132186
132468
|
const responseFields = {
|
|
132187
132469
|
HttpMeta: { Response: response, Request: req }
|
|
132188
132470
|
};
|
|
132189
|
-
const [result] = await match(nil(204, voidType()), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132471
|
+
const [result] = await match(nil(204, voidType()), jsonErr([403, 404, 409], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132190
132472
|
if (!result.ok) {
|
|
132191
132473
|
return [result, { status: "complete", request: req, response }];
|
|
132192
132474
|
}
|
|
@@ -132305,7 +132587,7 @@ async function $do290(client, request, options) {
|
|
|
132305
132587
|
const responseFields = {
|
|
132306
132588
|
HttpMeta: { Response: response, Request: req }
|
|
132307
132589
|
};
|
|
132308
|
-
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
132590
|
+
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([401, 403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132309
132591
|
if (!result.ok) {
|
|
132310
132592
|
return [result, { status: "complete", request: req, response }];
|
|
132311
132593
|
}
|
|
@@ -132669,7 +132951,7 @@ async function $do293(client, request, options) {
|
|
|
132669
132951
|
const responseFields = {
|
|
132670
132952
|
HttpMeta: { Response: response, Request: req }
|
|
132671
132953
|
};
|
|
132672
|
-
const [result] = await match(json(200, PageDeployment$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
132954
|
+
const [result] = await match(json(200, PageDeployment$inboundSchema), jsonErr([401, 403], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132673
132955
|
if (!result.ok) {
|
|
132674
132956
|
return [result, { status: "complete", request: req, response }];
|
|
132675
132957
|
}
|
|
@@ -132789,7 +133071,7 @@ async function $do294(client, request, options) {
|
|
|
132789
133071
|
const responseFields = {
|
|
132790
133072
|
HttpMeta: { Response: response, Request: req }
|
|
132791
133073
|
};
|
|
132792
|
-
const [result] = await match(json(200, PageReplica$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133074
|
+
const [result] = await match(json(200, PageReplica$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132793
133075
|
if (!result.ok) {
|
|
132794
133076
|
return [result, { status: "complete", request: req, response }];
|
|
132795
133077
|
}
|
|
@@ -132909,7 +133191,7 @@ async function $do295(client, request, options) {
|
|
|
132909
133191
|
const responseFields = {
|
|
132910
133192
|
HttpMeta: { Response: response, Request: req }
|
|
132911
133193
|
};
|
|
132912
|
-
const [result] = await match(json(200, PageRevision$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
133194
|
+
const [result] = await match(json(200, PageRevision$inboundSchema), jsonErr([401, 403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132913
133195
|
if (!result.ok) {
|
|
132914
133196
|
return [result, { status: "complete", request: req, response }];
|
|
132915
133197
|
}
|
|
@@ -133029,7 +133311,7 @@ async function $do296(client, request, options) {
|
|
|
133029
133311
|
const responseFields = {
|
|
133030
133312
|
HttpMeta: { Response: response, Request: req }
|
|
133031
133313
|
};
|
|
133032
|
-
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([403, 404, 409], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133314
|
+
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([403, 404, 409], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133033
133315
|
if (!result.ok) {
|
|
133034
133316
|
return [result, { status: "complete", request: req, response }];
|
|
133035
133317
|
}
|
|
@@ -133273,7 +133555,7 @@ async function $do298(client, request, options) {
|
|
|
133273
133555
|
const responseFields = {
|
|
133274
133556
|
HttpMeta: { Response: response, Request: req }
|
|
133275
133557
|
};
|
|
133276
|
-
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
133558
|
+
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([401, 403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133277
133559
|
if (!result.ok) {
|
|
133278
133560
|
return [result, { status: "complete", request: req, response }];
|
|
133279
133561
|
}
|
|
@@ -133332,7 +133614,9 @@ async function $do299(client, request, options) {
|
|
|
133332
133614
|
return [parsed, { status: "invalid" }];
|
|
133333
133615
|
}
|
|
133334
133616
|
const payload = parsed.value;
|
|
133335
|
-
const body = encodeJSON("body", payload.
|
|
133617
|
+
const body = encodeJSON("body", payload.DeploymentScalingUpdate, {
|
|
133618
|
+
explode: true
|
|
133619
|
+
});
|
|
133336
133620
|
const pathParams = {
|
|
133337
133621
|
deployment_id: encodeSimple("deployment_id", payload.deployment_id, {
|
|
133338
133622
|
explode: false,
|
|
@@ -133394,7 +133678,7 @@ async function $do299(client, request, options) {
|
|
|
133394
133678
|
const responseFields = {
|
|
133395
133679
|
HttpMeta: { Response: response, Request: req }
|
|
133396
133680
|
};
|
|
133397
|
-
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133681
|
+
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133398
133682
|
if (!result.ok) {
|
|
133399
133683
|
return [result, { status: "complete", request: req, response }];
|
|
133400
133684
|
}
|
|
@@ -134831,7 +135115,7 @@ async function $do311(client, request, options) {
|
|
|
134831
135115
|
const responseFields = {
|
|
134832
135116
|
HttpMeta: { Response: response, Request: req }
|
|
134833
135117
|
};
|
|
134834
|
-
const [result] = await match(nil(204, voidType()), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135118
|
+
const [result] = await match(nil(204, voidType()), jsonErr([403, 404, 409], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134835
135119
|
if (!result.ok) {
|
|
134836
135120
|
return [result, { status: "complete", request: req, response }];
|
|
134837
135121
|
}
|
|
@@ -135419,7 +135703,7 @@ async function $do316(client, request, options) {
|
|
|
135419
135703
|
const responseFields = {
|
|
135420
135704
|
HttpMeta: { Response: response, Request: req }
|
|
135421
135705
|
};
|
|
135422
|
-
const [result] = await match(nil(204, voidType()), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135706
|
+
const [result] = await match(nil(204, voidType()), jsonErr([403, 404, 409], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135423
135707
|
if (!result.ok) {
|
|
135424
135708
|
return [result, { status: "complete", request: req, response }];
|
|
135425
135709
|
}
|
|
@@ -135586,11 +135870,371 @@ List your secrets by name (values are never returned).`,
|
|
|
135586
135870
|
};
|
|
135587
135871
|
});
|
|
135588
135872
|
|
|
135589
|
-
// src/funcs/
|
|
135590
|
-
function
|
|
135873
|
+
// src/funcs/servingTenantsGet.ts
|
|
135874
|
+
function servingTenantsGet(client, request, options) {
|
|
135591
135875
|
return new APIPromise($do318(client, request, options));
|
|
135592
135876
|
}
|
|
135593
135877
|
async function $do318(client, request, options) {
|
|
135878
|
+
const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135879
|
+
if (!parsed.ok) {
|
|
135880
|
+
return [parsed, { status: "invalid" }];
|
|
135881
|
+
}
|
|
135882
|
+
const payload = parsed.value;
|
|
135883
|
+
const body = null;
|
|
135884
|
+
const pathParams = {
|
|
135885
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
135886
|
+
explode: false,
|
|
135887
|
+
charEncoding: "percent"
|
|
135888
|
+
})
|
|
135889
|
+
};
|
|
135890
|
+
const path = pathToFunc("/api/v1/serving/tenants/{org_id}")(pathParams);
|
|
135891
|
+
const headers = new Headers(compactMap({
|
|
135892
|
+
Accept: "application/json",
|
|
135893
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135894
|
+
}));
|
|
135895
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135896
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
135897
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135898
|
+
const context = {
|
|
135899
|
+
options: client._options,
|
|
135900
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135901
|
+
operationID: "getServingTenant",
|
|
135902
|
+
oAuth2Scopes: null,
|
|
135903
|
+
resolvedSecurity: requestSecurity,
|
|
135904
|
+
securitySource: client._options.bearerAuth,
|
|
135905
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
135906
|
+
strategy: "backoff",
|
|
135907
|
+
backoff: {
|
|
135908
|
+
initialInterval: 500,
|
|
135909
|
+
maxInterval: 5000,
|
|
135910
|
+
exponent: 1.5,
|
|
135911
|
+
maxElapsedTime: 15000
|
|
135912
|
+
},
|
|
135913
|
+
retryConnectionErrors: true
|
|
135914
|
+
},
|
|
135915
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
135916
|
+
};
|
|
135917
|
+
const requestRes = client._createRequest(context, {
|
|
135918
|
+
security: requestSecurity,
|
|
135919
|
+
method: "GET",
|
|
135920
|
+
baseURL: options?.serverURL,
|
|
135921
|
+
path,
|
|
135922
|
+
headers,
|
|
135923
|
+
body,
|
|
135924
|
+
userAgent: client._options.userAgent,
|
|
135925
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135926
|
+
}, options);
|
|
135927
|
+
if (!requestRes.ok) {
|
|
135928
|
+
return [requestRes, { status: "invalid" }];
|
|
135929
|
+
}
|
|
135930
|
+
const req = requestRes.value;
|
|
135931
|
+
const doResult = await client._do(req, {
|
|
135932
|
+
context,
|
|
135933
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
135934
|
+
retryConfig: context.retryConfig,
|
|
135935
|
+
retryCodes: context.retryCodes
|
|
135936
|
+
});
|
|
135937
|
+
if (!doResult.ok) {
|
|
135938
|
+
return [doResult, { status: "request-error", request: req }];
|
|
135939
|
+
}
|
|
135940
|
+
const response = doResult.value;
|
|
135941
|
+
const responseFields = {
|
|
135942
|
+
HttpMeta: { Response: response, Request: req }
|
|
135943
|
+
};
|
|
135944
|
+
const [result] = await match(json(200, ServingTenant$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135945
|
+
if (!result.ok) {
|
|
135946
|
+
return [result, { status: "complete", request: req, response }];
|
|
135947
|
+
}
|
|
135948
|
+
return [result, { status: "complete", request: req, response }];
|
|
135949
|
+
}
|
|
135950
|
+
var init_servingTenantsGet = __esm(() => {
|
|
135951
|
+
init_encodings();
|
|
135952
|
+
init_http();
|
|
135953
|
+
init_matchers();
|
|
135954
|
+
init_primitives();
|
|
135955
|
+
init_schemas4();
|
|
135956
|
+
init_security();
|
|
135957
|
+
init_url();
|
|
135958
|
+
init_components();
|
|
135959
|
+
init_errors4();
|
|
135960
|
+
init_operations();
|
|
135961
|
+
init_async();
|
|
135962
|
+
});
|
|
135963
|
+
|
|
135964
|
+
// src/mcp-server/tools/servingTenantsGet.ts
|
|
135965
|
+
var args311, tool$servingTenantsGet;
|
|
135966
|
+
var init_servingTenantsGet2 = __esm(() => {
|
|
135967
|
+
init_servingTenantsGet();
|
|
135968
|
+
init_operations();
|
|
135969
|
+
init_tools();
|
|
135970
|
+
args311 = {
|
|
135971
|
+
request: GetServingTenantRequest$inboundSchema
|
|
135972
|
+
};
|
|
135973
|
+
tool$servingTenantsGet = {
|
|
135974
|
+
name: "serving-tenants-get",
|
|
135975
|
+
description: `Get a serving tenant
|
|
135976
|
+
|
|
135977
|
+
Get one organization's serving enablement record. Cluster administrators only.`,
|
|
135978
|
+
args: args311,
|
|
135979
|
+
tool: async (client, args312, ctx) => {
|
|
135980
|
+
const [result, apiCall] = await servingTenantsGet(client, args312.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135981
|
+
if (!result.ok) {
|
|
135982
|
+
return {
|
|
135983
|
+
content: [{ type: "text", text: result.error.message }],
|
|
135984
|
+
isError: true
|
|
135985
|
+
};
|
|
135986
|
+
}
|
|
135987
|
+
const value = result.value;
|
|
135988
|
+
return formatResult(value, apiCall);
|
|
135989
|
+
}
|
|
135990
|
+
};
|
|
135991
|
+
});
|
|
135992
|
+
|
|
135993
|
+
// src/funcs/servingTenantsList.ts
|
|
135994
|
+
function servingTenantsList(client, request, options) {
|
|
135995
|
+
return new APIPromise($do319(client, request, options));
|
|
135996
|
+
}
|
|
135997
|
+
async function $do319(client, request, options) {
|
|
135998
|
+
const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135999
|
+
if (!parsed.ok) {
|
|
136000
|
+
return [parsed, { status: "invalid" }];
|
|
136001
|
+
}
|
|
136002
|
+
const payload = parsed.value;
|
|
136003
|
+
const body = null;
|
|
136004
|
+
const path = pathToFunc("/api/v1/serving/tenants")();
|
|
136005
|
+
const query = encodeFormQuery({
|
|
136006
|
+
cursor: payload.cursor,
|
|
136007
|
+
limit: payload.limit
|
|
136008
|
+
});
|
|
136009
|
+
const headers = new Headers(compactMap({
|
|
136010
|
+
Accept: "application/json",
|
|
136011
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
136012
|
+
}));
|
|
136013
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
136014
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
136015
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
136016
|
+
const context = {
|
|
136017
|
+
options: client._options,
|
|
136018
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136019
|
+
operationID: "listServingTenants",
|
|
136020
|
+
oAuth2Scopes: null,
|
|
136021
|
+
resolvedSecurity: requestSecurity,
|
|
136022
|
+
securitySource: client._options.bearerAuth,
|
|
136023
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
136024
|
+
strategy: "backoff",
|
|
136025
|
+
backoff: {
|
|
136026
|
+
initialInterval: 500,
|
|
136027
|
+
maxInterval: 5000,
|
|
136028
|
+
exponent: 1.5,
|
|
136029
|
+
maxElapsedTime: 15000
|
|
136030
|
+
},
|
|
136031
|
+
retryConnectionErrors: true
|
|
136032
|
+
},
|
|
136033
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
136034
|
+
};
|
|
136035
|
+
const requestRes = client._createRequest(context, {
|
|
136036
|
+
security: requestSecurity,
|
|
136037
|
+
method: "GET",
|
|
136038
|
+
baseURL: options?.serverURL,
|
|
136039
|
+
path,
|
|
136040
|
+
headers,
|
|
136041
|
+
query,
|
|
136042
|
+
body,
|
|
136043
|
+
userAgent: client._options.userAgent,
|
|
136044
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
136045
|
+
}, options);
|
|
136046
|
+
if (!requestRes.ok) {
|
|
136047
|
+
return [requestRes, { status: "invalid" }];
|
|
136048
|
+
}
|
|
136049
|
+
const req = requestRes.value;
|
|
136050
|
+
const doResult = await client._do(req, {
|
|
136051
|
+
context,
|
|
136052
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
136053
|
+
retryConfig: context.retryConfig,
|
|
136054
|
+
retryCodes: context.retryCodes
|
|
136055
|
+
});
|
|
136056
|
+
if (!doResult.ok) {
|
|
136057
|
+
return [doResult, { status: "request-error", request: req }];
|
|
136058
|
+
}
|
|
136059
|
+
const response = doResult.value;
|
|
136060
|
+
const responseFields = {
|
|
136061
|
+
HttpMeta: { Response: response, Request: req }
|
|
136062
|
+
};
|
|
136063
|
+
const [result] = await match(json(200, PageServingTenant$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
136064
|
+
if (!result.ok) {
|
|
136065
|
+
return [result, { status: "complete", request: req, response }];
|
|
136066
|
+
}
|
|
136067
|
+
return [result, { status: "complete", request: req, response }];
|
|
136068
|
+
}
|
|
136069
|
+
var init_servingTenantsList = __esm(() => {
|
|
136070
|
+
init_encodings();
|
|
136071
|
+
init_http();
|
|
136072
|
+
init_matchers();
|
|
136073
|
+
init_primitives();
|
|
136074
|
+
init_schemas4();
|
|
136075
|
+
init_security();
|
|
136076
|
+
init_url();
|
|
136077
|
+
init_components();
|
|
136078
|
+
init_errors4();
|
|
136079
|
+
init_operations();
|
|
136080
|
+
init_async();
|
|
136081
|
+
});
|
|
136082
|
+
|
|
136083
|
+
// src/mcp-server/tools/servingTenantsList.ts
|
|
136084
|
+
var args312, tool$servingTenantsList;
|
|
136085
|
+
var init_servingTenantsList2 = __esm(() => {
|
|
136086
|
+
init_servingTenantsList();
|
|
136087
|
+
init_operations();
|
|
136088
|
+
init_tools();
|
|
136089
|
+
args312 = {
|
|
136090
|
+
request: ListServingTenantsRequest$inboundSchema
|
|
136091
|
+
};
|
|
136092
|
+
tool$servingTenantsList = {
|
|
136093
|
+
name: "serving-tenants-list",
|
|
136094
|
+
description: `List serving tenants
|
|
136095
|
+
|
|
136096
|
+
List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
|
|
136097
|
+
args: args312,
|
|
136098
|
+
tool: async (client, args313, ctx) => {
|
|
136099
|
+
const [result, apiCall] = await servingTenantsList(client, args313.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136100
|
+
if (!result.ok) {
|
|
136101
|
+
return {
|
|
136102
|
+
content: [{ type: "text", text: result.error.message }],
|
|
136103
|
+
isError: true
|
|
136104
|
+
};
|
|
136105
|
+
}
|
|
136106
|
+
const value = result.value;
|
|
136107
|
+
return formatResult(value, apiCall);
|
|
136108
|
+
}
|
|
136109
|
+
};
|
|
136110
|
+
});
|
|
136111
|
+
|
|
136112
|
+
// src/funcs/servingTenantsSet.ts
|
|
136113
|
+
function servingTenantsSet(client, request, options) {
|
|
136114
|
+
return new APIPromise($do320(client, request, options));
|
|
136115
|
+
}
|
|
136116
|
+
async function $do320(client, request, options) {
|
|
136117
|
+
const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136118
|
+
if (!parsed.ok) {
|
|
136119
|
+
return [parsed, { status: "invalid" }];
|
|
136120
|
+
}
|
|
136121
|
+
const payload = parsed.value;
|
|
136122
|
+
const body = encodeJSON("body", payload.ServingTenantSet, { explode: true });
|
|
136123
|
+
const pathParams = {
|
|
136124
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
136125
|
+
explode: false,
|
|
136126
|
+
charEncoding: "percent"
|
|
136127
|
+
})
|
|
136128
|
+
};
|
|
136129
|
+
const path = pathToFunc("/api/v1/serving/tenants/{org_id}")(pathParams);
|
|
136130
|
+
const headers = new Headers(compactMap({
|
|
136131
|
+
"Content-Type": "application/json",
|
|
136132
|
+
Accept: "application/json",
|
|
136133
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
136134
|
+
}));
|
|
136135
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
136136
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
136137
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
136138
|
+
const context = {
|
|
136139
|
+
options: client._options,
|
|
136140
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136141
|
+
operationID: "setServingTenant",
|
|
136142
|
+
oAuth2Scopes: null,
|
|
136143
|
+
resolvedSecurity: requestSecurity,
|
|
136144
|
+
securitySource: client._options.bearerAuth,
|
|
136145
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
136146
|
+
strategy: "backoff",
|
|
136147
|
+
backoff: {
|
|
136148
|
+
initialInterval: 500,
|
|
136149
|
+
maxInterval: 5000,
|
|
136150
|
+
exponent: 1.5,
|
|
136151
|
+
maxElapsedTime: 15000
|
|
136152
|
+
},
|
|
136153
|
+
retryConnectionErrors: true
|
|
136154
|
+
},
|
|
136155
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
136156
|
+
};
|
|
136157
|
+
const requestRes = client._createRequest(context, {
|
|
136158
|
+
security: requestSecurity,
|
|
136159
|
+
method: "PUT",
|
|
136160
|
+
baseURL: options?.serverURL,
|
|
136161
|
+
path,
|
|
136162
|
+
headers,
|
|
136163
|
+
body,
|
|
136164
|
+
userAgent: client._options.userAgent,
|
|
136165
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
136166
|
+
}, options);
|
|
136167
|
+
if (!requestRes.ok) {
|
|
136168
|
+
return [requestRes, { status: "invalid" }];
|
|
136169
|
+
}
|
|
136170
|
+
const req = requestRes.value;
|
|
136171
|
+
const doResult = await client._do(req, {
|
|
136172
|
+
context,
|
|
136173
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
136174
|
+
retryConfig: context.retryConfig,
|
|
136175
|
+
retryCodes: context.retryCodes
|
|
136176
|
+
});
|
|
136177
|
+
if (!doResult.ok) {
|
|
136178
|
+
return [doResult, { status: "request-error", request: req }];
|
|
136179
|
+
}
|
|
136180
|
+
const response = doResult.value;
|
|
136181
|
+
const responseFields = {
|
|
136182
|
+
HttpMeta: { Response: response, Request: req }
|
|
136183
|
+
};
|
|
136184
|
+
const [result] = await match(json(200, ServingTenant$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
136185
|
+
if (!result.ok) {
|
|
136186
|
+
return [result, { status: "complete", request: req, response }];
|
|
136187
|
+
}
|
|
136188
|
+
return [result, { status: "complete", request: req, response }];
|
|
136189
|
+
}
|
|
136190
|
+
var init_servingTenantsSet = __esm(() => {
|
|
136191
|
+
init_encodings();
|
|
136192
|
+
init_http();
|
|
136193
|
+
init_matchers();
|
|
136194
|
+
init_primitives();
|
|
136195
|
+
init_schemas4();
|
|
136196
|
+
init_security();
|
|
136197
|
+
init_url();
|
|
136198
|
+
init_components();
|
|
136199
|
+
init_errors4();
|
|
136200
|
+
init_operations();
|
|
136201
|
+
init_async();
|
|
136202
|
+
});
|
|
136203
|
+
|
|
136204
|
+
// src/mcp-server/tools/servingTenantsSet.ts
|
|
136205
|
+
var args313, tool$servingTenantsSet;
|
|
136206
|
+
var init_servingTenantsSet2 = __esm(() => {
|
|
136207
|
+
init_servingTenantsSet();
|
|
136208
|
+
init_operations();
|
|
136209
|
+
init_tools();
|
|
136210
|
+
args313 = {
|
|
136211
|
+
request: SetServingTenantRequest$inboundSchema
|
|
136212
|
+
};
|
|
136213
|
+
tool$servingTenantsSet = {
|
|
136214
|
+
name: "serving-tenants-set",
|
|
136215
|
+
description: `Set serving tenant enablement
|
|
136216
|
+
|
|
136217
|
+
Enable or disable serving for an organization and all of its teams. Disabling blocks product API access but does not stop existing workloads or callbacks. Cluster administrators only.`,
|
|
136218
|
+
args: args313,
|
|
136219
|
+
tool: async (client, args314, ctx) => {
|
|
136220
|
+
const [result, apiCall] = await servingTenantsSet(client, args314.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136221
|
+
if (!result.ok) {
|
|
136222
|
+
return {
|
|
136223
|
+
content: [{ type: "text", text: result.error.message }],
|
|
136224
|
+
isError: true
|
|
136225
|
+
};
|
|
136226
|
+
}
|
|
136227
|
+
const value = result.value;
|
|
136228
|
+
return formatResult(value, apiCall);
|
|
136229
|
+
}
|
|
136230
|
+
};
|
|
136231
|
+
});
|
|
136232
|
+
|
|
136233
|
+
// src/funcs/servingVolumesCreate.ts
|
|
136234
|
+
function servingVolumesCreate(client, request, options) {
|
|
136235
|
+
return new APIPromise($do321(client, request, options));
|
|
136236
|
+
}
|
|
136237
|
+
async function $do321(client, request, options) {
|
|
135594
136238
|
const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135595
136239
|
if (!parsed.ok) {
|
|
135596
136240
|
return [parsed, { status: "invalid" }];
|
|
@@ -135673,12 +136317,12 @@ var init_servingVolumesCreate = __esm(() => {
|
|
|
135673
136317
|
});
|
|
135674
136318
|
|
|
135675
136319
|
// src/mcp-server/tools/servingVolumesCreate.ts
|
|
135676
|
-
var
|
|
136320
|
+
var args314, tool$servingVolumesCreate;
|
|
135677
136321
|
var init_servingVolumesCreate2 = __esm(() => {
|
|
135678
136322
|
init_servingVolumesCreate();
|
|
135679
136323
|
init_operations();
|
|
135680
136324
|
init_tools();
|
|
135681
|
-
|
|
136325
|
+
args314 = {
|
|
135682
136326
|
request: CreateVolumeRequest$inboundSchema
|
|
135683
136327
|
};
|
|
135684
136328
|
tool$servingVolumesCreate = {
|
|
@@ -135686,9 +136330,9 @@ var init_servingVolumesCreate2 = __esm(() => {
|
|
|
135686
136330
|
description: `Create a volume
|
|
135687
136331
|
|
|
135688
136332
|
Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
135689
|
-
args:
|
|
135690
|
-
tool: async (client,
|
|
135691
|
-
const [result, apiCall] = await servingVolumesCreate(client,
|
|
136333
|
+
args: args314,
|
|
136334
|
+
tool: async (client, args315, ctx) => {
|
|
136335
|
+
const [result, apiCall] = await servingVolumesCreate(client, args315.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135692
136336
|
if (!result.ok) {
|
|
135693
136337
|
return {
|
|
135694
136338
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135703,9 +136347,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
|
135703
136347
|
|
|
135704
136348
|
// src/funcs/servingVolumesDelete.ts
|
|
135705
136349
|
function servingVolumesDelete(client, request, options) {
|
|
135706
|
-
return new APIPromise($
|
|
136350
|
+
return new APIPromise($do322(client, request, options));
|
|
135707
136351
|
}
|
|
135708
|
-
async function $
|
|
136352
|
+
async function $do322(client, request, options) {
|
|
135709
136353
|
const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135710
136354
|
if (!parsed.ok) {
|
|
135711
136355
|
return [parsed, { status: "invalid" }];
|
|
@@ -135793,12 +136437,12 @@ var init_servingVolumesDelete = __esm(() => {
|
|
|
135793
136437
|
});
|
|
135794
136438
|
|
|
135795
136439
|
// src/mcp-server/tools/servingVolumesDelete.ts
|
|
135796
|
-
var
|
|
136440
|
+
var args315, tool$servingVolumesDelete;
|
|
135797
136441
|
var init_servingVolumesDelete2 = __esm(() => {
|
|
135798
136442
|
init_servingVolumesDelete();
|
|
135799
136443
|
init_operations();
|
|
135800
136444
|
init_tools();
|
|
135801
|
-
|
|
136445
|
+
args315 = {
|
|
135802
136446
|
request: DeleteVolumeRequest$inboundSchema
|
|
135803
136447
|
};
|
|
135804
136448
|
tool$servingVolumesDelete = {
|
|
@@ -135806,9 +136450,9 @@ var init_servingVolumesDelete2 = __esm(() => {
|
|
|
135806
136450
|
description: `Delete a volume
|
|
135807
136451
|
|
|
135808
136452
|
Delete a volume and its contents.`,
|
|
135809
|
-
args:
|
|
135810
|
-
tool: async (client,
|
|
135811
|
-
const [result, apiCall] = await servingVolumesDelete(client,
|
|
136453
|
+
args: args315,
|
|
136454
|
+
tool: async (client, args316, ctx) => {
|
|
136455
|
+
const [result, apiCall] = await servingVolumesDelete(client, args316.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135812
136456
|
if (!result.ok) {
|
|
135813
136457
|
return {
|
|
135814
136458
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135822,9 +136466,9 @@ Delete a volume and its contents.`,
|
|
|
135822
136466
|
|
|
135823
136467
|
// src/funcs/servingVolumesGet.ts
|
|
135824
136468
|
function servingVolumesGet(client, request, options) {
|
|
135825
|
-
return new APIPromise($
|
|
136469
|
+
return new APIPromise($do323(client, request, options));
|
|
135826
136470
|
}
|
|
135827
|
-
async function $
|
|
136471
|
+
async function $do323(client, request, options) {
|
|
135828
136472
|
const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135829
136473
|
if (!parsed.ok) {
|
|
135830
136474
|
return [parsed, { status: "invalid" }];
|
|
@@ -135912,12 +136556,12 @@ var init_servingVolumesGet = __esm(() => {
|
|
|
135912
136556
|
});
|
|
135913
136557
|
|
|
135914
136558
|
// src/mcp-server/tools/servingVolumesGet.ts
|
|
135915
|
-
var
|
|
136559
|
+
var args316, tool$servingVolumesGet;
|
|
135916
136560
|
var init_servingVolumesGet2 = __esm(() => {
|
|
135917
136561
|
init_servingVolumesGet();
|
|
135918
136562
|
init_operations();
|
|
135919
136563
|
init_tools();
|
|
135920
|
-
|
|
136564
|
+
args316 = {
|
|
135921
136565
|
request: GetVolumeRequest$inboundSchema
|
|
135922
136566
|
};
|
|
135923
136567
|
tool$servingVolumesGet = {
|
|
@@ -135925,9 +136569,9 @@ var init_servingVolumesGet2 = __esm(() => {
|
|
|
135925
136569
|
description: `Get a volume
|
|
135926
136570
|
|
|
135927
136571
|
Retrieve a volume.`,
|
|
135928
|
-
args:
|
|
135929
|
-
tool: async (client,
|
|
135930
|
-
const [result, apiCall] = await servingVolumesGet(client,
|
|
136572
|
+
args: args316,
|
|
136573
|
+
tool: async (client, args317, ctx) => {
|
|
136574
|
+
const [result, apiCall] = await servingVolumesGet(client, args317.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135931
136575
|
if (!result.ok) {
|
|
135932
136576
|
return {
|
|
135933
136577
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135942,9 +136586,9 @@ Retrieve a volume.`,
|
|
|
135942
136586
|
|
|
135943
136587
|
// src/funcs/servingVolumesList.ts
|
|
135944
136588
|
function servingVolumesList(client, request, options) {
|
|
135945
|
-
return new APIPromise($
|
|
136589
|
+
return new APIPromise($do324(client, request, options));
|
|
135946
136590
|
}
|
|
135947
|
-
async function $
|
|
136591
|
+
async function $do324(client, request, options) {
|
|
135948
136592
|
const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135949
136593
|
if (!parsed.ok) {
|
|
135950
136594
|
return [parsed, { status: "invalid" }];
|
|
@@ -136031,12 +136675,12 @@ var init_servingVolumesList = __esm(() => {
|
|
|
136031
136675
|
});
|
|
136032
136676
|
|
|
136033
136677
|
// src/mcp-server/tools/servingVolumesList.ts
|
|
136034
|
-
var
|
|
136678
|
+
var args317, tool$servingVolumesList;
|
|
136035
136679
|
var init_servingVolumesList2 = __esm(() => {
|
|
136036
136680
|
init_servingVolumesList();
|
|
136037
136681
|
init_operations();
|
|
136038
136682
|
init_tools();
|
|
136039
|
-
|
|
136683
|
+
args317 = {
|
|
136040
136684
|
request: ListVolumesRequest$inboundSchema
|
|
136041
136685
|
};
|
|
136042
136686
|
tool$servingVolumesList = {
|
|
@@ -136044,9 +136688,9 @@ var init_servingVolumesList2 = __esm(() => {
|
|
|
136044
136688
|
description: `List volumes
|
|
136045
136689
|
|
|
136046
136690
|
List your volumes.`,
|
|
136047
|
-
args:
|
|
136048
|
-
tool: async (client,
|
|
136049
|
-
const [result, apiCall] = await servingVolumesList(client,
|
|
136691
|
+
args: args317,
|
|
136692
|
+
tool: async (client, args318, ctx) => {
|
|
136693
|
+
const [result, apiCall] = await servingVolumesList(client, args318.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136050
136694
|
if (!result.ok) {
|
|
136051
136695
|
return {
|
|
136052
136696
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136061,9 +136705,9 @@ List your volumes.`,
|
|
|
136061
136705
|
|
|
136062
136706
|
// src/funcs/usageCosts.ts
|
|
136063
136707
|
function usageCosts(client, request, options) {
|
|
136064
|
-
return new APIPromise($
|
|
136708
|
+
return new APIPromise($do325(client, request, options));
|
|
136065
136709
|
}
|
|
136066
|
-
async function $
|
|
136710
|
+
async function $do325(client, request, options) {
|
|
136067
136711
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136068
136712
|
if (!parsed.ok) {
|
|
136069
136713
|
return [parsed, { status: "invalid" }];
|
|
@@ -136146,12 +136790,12 @@ var init_usageCosts = __esm(() => {
|
|
|
136146
136790
|
});
|
|
136147
136791
|
|
|
136148
136792
|
// src/mcp-server/tools/usageCosts.ts
|
|
136149
|
-
var
|
|
136793
|
+
var args318, tool$usageCosts;
|
|
136150
136794
|
var init_usageCosts2 = __esm(() => {
|
|
136151
136795
|
init_usageCosts();
|
|
136152
136796
|
init_operations();
|
|
136153
136797
|
init_tools();
|
|
136154
|
-
|
|
136798
|
+
args318 = {
|
|
136155
136799
|
request: GetCostsRequest$inboundSchema
|
|
136156
136800
|
};
|
|
136157
136801
|
tool$usageCosts = {
|
|
@@ -136159,9 +136803,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
136159
136803
|
description: `Aggregate cost by dimension
|
|
136160
136804
|
|
|
136161
136805
|
Sums stored per-entry cost over [start_time, end_time), grouped by any of service, task_type, model, api_key_id, team_id, user_id, external_user_id, org_id. Point-in-time correct for chargeback/showback.`,
|
|
136162
|
-
args:
|
|
136163
|
-
tool: async (client,
|
|
136164
|
-
const [result, apiCall] = await usageCosts(client,
|
|
136806
|
+
args: args318,
|
|
136807
|
+
tool: async (client, args319, ctx) => {
|
|
136808
|
+
const [result, apiCall] = await usageCosts(client, args319.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136165
136809
|
if (!result.ok) {
|
|
136166
136810
|
return {
|
|
136167
136811
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136176,9 +136820,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
136176
136820
|
|
|
136177
136821
|
// src/funcs/usageSandbox.ts
|
|
136178
136822
|
function usageSandbox(client, request, options) {
|
|
136179
|
-
return new APIPromise($
|
|
136823
|
+
return new APIPromise($do326(client, request, options));
|
|
136180
136824
|
}
|
|
136181
|
-
async function $
|
|
136825
|
+
async function $do326(client, request, options) {
|
|
136182
136826
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136183
136827
|
if (!parsed.ok) {
|
|
136184
136828
|
return [parsed, { status: "invalid" }];
|
|
@@ -136269,12 +136913,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
136269
136913
|
});
|
|
136270
136914
|
|
|
136271
136915
|
// src/mcp-server/tools/usageSandbox.ts
|
|
136272
|
-
var
|
|
136916
|
+
var args319, tool$usageSandbox;
|
|
136273
136917
|
var init_usageSandbox2 = __esm(() => {
|
|
136274
136918
|
init_usageSandbox();
|
|
136275
136919
|
init_operations();
|
|
136276
136920
|
init_tools();
|
|
136277
|
-
|
|
136921
|
+
args319 = {
|
|
136278
136922
|
request: GetSandboxUsageRequest$inboundSchema
|
|
136279
136923
|
};
|
|
136280
136924
|
tool$usageSandbox = {
|
|
@@ -136282,9 +136926,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
136282
136926
|
description: `Get Sandbox Usage
|
|
136283
136927
|
|
|
136284
136928
|
Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
|
|
136285
|
-
args:
|
|
136286
|
-
tool: async (client,
|
|
136287
|
-
const [result, apiCall] = await usageSandbox(client,
|
|
136929
|
+
args: args319,
|
|
136930
|
+
tool: async (client, args320, ctx) => {
|
|
136931
|
+
const [result, apiCall] = await usageSandbox(client, args320.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136288
136932
|
if (!result.ok) {
|
|
136289
136933
|
return {
|
|
136290
136934
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136301,7 +136945,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
136301
136945
|
function createMCPServer(deps) {
|
|
136302
136946
|
const server = new McpServer({
|
|
136303
136947
|
name: "SDK",
|
|
136304
|
-
version: "0.51.
|
|
136948
|
+
version: "0.51.6"
|
|
136305
136949
|
});
|
|
136306
136950
|
const client = new SDKCore({
|
|
136307
136951
|
bearerAuth: deps.bearerAuth,
|
|
@@ -136634,6 +137278,9 @@ function createMCPServer(deps) {
|
|
|
136634
137278
|
tool(tool$servingSecretsList);
|
|
136635
137279
|
tool(tool$servingSecretsCreate);
|
|
136636
137280
|
tool(tool$servingSecretsDelete);
|
|
137281
|
+
tool(tool$servingTenantsList);
|
|
137282
|
+
tool(tool$servingTenantsGet);
|
|
137283
|
+
tool(tool$servingTenantsSet);
|
|
136637
137284
|
tool(tool$servingVolumesList);
|
|
136638
137285
|
tool(tool$servingVolumesCreate);
|
|
136639
137286
|
tool(tool$servingVolumesDelete);
|
|
@@ -136962,6 +137609,9 @@ var init_server2 = __esm(() => {
|
|
|
136962
137609
|
init_servingSecretsCreate2();
|
|
136963
137610
|
init_servingSecretsDelete2();
|
|
136964
137611
|
init_servingSecretsList2();
|
|
137612
|
+
init_servingTenantsGet2();
|
|
137613
|
+
init_servingTenantsList2();
|
|
137614
|
+
init_servingTenantsSet2();
|
|
136965
137615
|
init_servingVolumesCreate2();
|
|
136966
137616
|
init_servingVolumesDelete2();
|
|
136967
137617
|
init_servingVolumesGet2();
|
|
@@ -138145,7 +138795,7 @@ var routes = rn({
|
|
|
138145
138795
|
var app = Ve(routes, {
|
|
138146
138796
|
name: "mcp",
|
|
138147
138797
|
versionInfo: {
|
|
138148
|
-
currentVersion: "0.51.
|
|
138798
|
+
currentVersion: "0.51.6"
|
|
138149
138799
|
}
|
|
138150
138800
|
});
|
|
138151
138801
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -138153,5 +138803,5 @@ export {
|
|
|
138153
138803
|
app
|
|
138154
138804
|
};
|
|
138155
138805
|
|
|
138156
|
-
//# debugId=
|
|
138806
|
+
//# debugId=AE2B5460970AAD1A64756E2164756E21
|
|
138157
138807
|
//# sourceMappingURL=mcp-server.js.map
|