@meetkai/mka1 0.51.4 → 0.51.5
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 +227 -239
- package/bin/mcp-server.js +67 -717
- package/bin/mcp-server.js.map +22 -37
- 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/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/servingDeploymentsUpdate.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsUpdateScaling.js +2 -4
- 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/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 +1 -7
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/components/deploymentcreate.d.ts +5 -26
- package/dist/commonjs/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/deploymentcreate.js +3 -16
- package/dist/commonjs/models/components/deploymentcreate.js.map +1 -1
- package/dist/commonjs/models/components/deploymentupdate.d.ts +0 -7
- package/dist/commonjs/models/components/deploymentupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/deploymentupdate.js +0 -9
- package/dist/commonjs/models/components/deploymentupdate.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -6
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -6
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/replica.d.ts +0 -9
- package/dist/commonjs/models/components/replica.d.ts.map +1 -1
- package/dist/commonjs/models/components/replica.js +0 -8
- package/dist/commonjs/models/components/replica.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -3
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -3
- package/dist/commonjs/models/operations/index.js.map +1 -1
- 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 +0 -3
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +0 -3
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/serving.d.ts +0 -3
- package/dist/commonjs/sdk/serving.d.ts.map +1 -1
- package/dist/commonjs/sdk/serving.js +0 -4
- package/dist/commonjs/sdk/serving.js.map +1 -1
- 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/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/servingDeploymentsUpdate.js +1 -1
- package/dist/esm/funcs/servingDeploymentsUpdate.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsUpdateScaling.js +2 -4
- 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/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 +1 -7
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/components/deploymentcreate.d.ts +5 -26
- package/dist/esm/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/esm/models/components/deploymentcreate.js +3 -16
- package/dist/esm/models/components/deploymentcreate.js.map +1 -1
- package/dist/esm/models/components/deploymentupdate.d.ts +0 -7
- package/dist/esm/models/components/deploymentupdate.d.ts.map +1 -1
- package/dist/esm/models/components/deploymentupdate.js +0 -9
- package/dist/esm/models/components/deploymentupdate.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -6
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -6
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/replica.d.ts +0 -9
- package/dist/esm/models/components/replica.d.ts.map +1 -1
- package/dist/esm/models/components/replica.js +0 -8
- package/dist/esm/models/components/replica.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -3
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -3
- package/dist/esm/models/operations/index.js.map +1 -1
- 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 +0 -3
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +0 -3
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/serving.d.ts +0 -3
- package/dist/esm/sdk/serving.d.ts.map +1 -1
- package/dist/esm/sdk/serving.js +0 -4
- package/dist/esm/sdk/serving.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/servingDeploymentsCreate.ts +2 -3
- package/src/funcs/servingDeploymentsDelete.ts +2 -3
- package/src/funcs/servingDeploymentsGet.ts +2 -3
- package/src/funcs/servingDeploymentsList.ts +2 -3
- package/src/funcs/servingDeploymentsListReplicas.ts +0 -1
- package/src/funcs/servingDeploymentsListRevisions.ts +2 -3
- package/src/funcs/servingDeploymentsUpdate.ts +2 -3
- package/src/funcs/servingDeploymentsUpdateScaling.ts +1 -4
- package/src/funcs/servingModelsDelete.ts +1 -1
- package/src/funcs/servingSecretsDelete.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -7
- package/src/models/components/deploymentcreate.ts +12 -49
- package/src/models/components/deploymentupdate.ts +0 -19
- package/src/models/components/index.ts +0 -6
- package/src/models/components/replica.ts +0 -17
- package/src/models/operations/index.ts +0 -3
- package/src/models/operations/updatescaling.ts +6 -6
- package/src/react-query/index.ts +0 -3
- package/src/sdk/serving.ts +0 -6
- package/dist/commonjs/funcs/servingTenantsGet.d.ts +0 -19
- package/dist/commonjs/funcs/servingTenantsGet.d.ts.map +0 -1
- package/dist/commonjs/funcs/servingTenantsGet.js +0 -136
- package/dist/commonjs/funcs/servingTenantsGet.js.map +0 -1
- package/dist/commonjs/funcs/servingTenantsList.d.ts +0 -19
- package/dist/commonjs/funcs/servingTenantsList.d.ts.map +0 -1
- package/dist/commonjs/funcs/servingTenantsList.js +0 -135
- package/dist/commonjs/funcs/servingTenantsList.js.map +0 -1
- package/dist/commonjs/funcs/servingTenantsSet.d.ts +0 -19
- package/dist/commonjs/funcs/servingTenantsSet.d.ts.map +0 -1
- package/dist/commonjs/funcs/servingTenantsSet.js +0 -137
- package/dist/commonjs/funcs/servingTenantsSet.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.js +0 -64
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsList.js +0 -64
- package/dist/commonjs/mcp-server/tools/servingTenantsList.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.js +0 -64
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.js.map +0 -1
- package/dist/commonjs/models/components/deploymentapiformat.d.ts +0 -22
- package/dist/commonjs/models/components/deploymentapiformat.d.ts.map +0 -1
- package/dist/commonjs/models/components/deploymentapiformat.js +0 -56
- package/dist/commonjs/models/components/deploymentapiformat.js.map +0 -1
- package/dist/commonjs/models/components/deploymentscalingcreate.d.ts +0 -31
- package/dist/commonjs/models/components/deploymentscalingcreate.d.ts.map +0 -1
- package/dist/commonjs/models/components/deploymentscalingcreate.js +0 -83
- package/dist/commonjs/models/components/deploymentscalingcreate.js.map +0 -1
- package/dist/commonjs/models/components/deploymentscalingupdate.d.ts +0 -28
- package/dist/commonjs/models/components/deploymentscalingupdate.d.ts.map +0 -1
- package/dist/commonjs/models/components/deploymentscalingupdate.js +0 -83
- package/dist/commonjs/models/components/deploymentscalingupdate.js.map +0 -1
- package/dist/commonjs/models/components/pageservingtenant.d.ts +0 -22
- package/dist/commonjs/models/components/pageservingtenant.d.ts.map +0 -1
- package/dist/commonjs/models/components/pageservingtenant.js +0 -72
- package/dist/commonjs/models/components/pageservingtenant.js.map +0 -1
- package/dist/commonjs/models/components/servingtenant.d.ts +0 -28
- package/dist/commonjs/models/components/servingtenant.d.ts.map +0 -1
- package/dist/commonjs/models/components/servingtenant.js +0 -81
- package/dist/commonjs/models/components/servingtenant.js.map +0 -1
- package/dist/commonjs/models/components/servingtenantset.d.ts +0 -20
- package/dist/commonjs/models/components/servingtenantset.d.ts.map +0 -1
- package/dist/commonjs/models/components/servingtenantset.js +0 -58
- package/dist/commonjs/models/components/servingtenantset.js.map +0 -1
- package/dist/commonjs/models/operations/getservingtenant.d.ts +0 -22
- package/dist/commonjs/models/operations/getservingtenant.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getservingtenant.js +0 -71
- package/dist/commonjs/models/operations/getservingtenant.js.map +0 -1
- package/dist/commonjs/models/operations/listservingtenants.d.ts +0 -24
- package/dist/commonjs/models/operations/listservingtenants.d.ts.map +0 -1
- package/dist/commonjs/models/operations/listservingtenants.js +0 -71
- package/dist/commonjs/models/operations/listservingtenants.js.map +0 -1
- package/dist/commonjs/models/operations/setservingtenant.d.ts +0 -25
- package/dist/commonjs/models/operations/setservingtenant.d.ts.map +0 -1
- package/dist/commonjs/models/operations/setservingtenant.js +0 -76
- package/dist/commonjs/models/operations/setservingtenant.js.map +0 -1
- package/dist/commonjs/react-query/servingTenantsGet.core.d.ts +0 -15
- package/dist/commonjs/react-query/servingTenantsGet.core.d.ts.map +0 -1
- package/dist/commonjs/react-query/servingTenantsGet.core.js +0 -36
- package/dist/commonjs/react-query/servingTenantsGet.core.js.map +0 -1
- package/dist/commonjs/react-query/servingTenantsGet.d.ts +0 -39
- package/dist/commonjs/react-query/servingTenantsGet.d.ts.map +0 -1
- package/dist/commonjs/react-query/servingTenantsGet.js +0 -60
- package/dist/commonjs/react-query/servingTenantsGet.js.map +0 -1
- package/dist/commonjs/react-query/servingTenantsList.core.d.ts +0 -17
- package/dist/commonjs/react-query/servingTenantsList.core.d.ts.map +0 -1
- package/dist/commonjs/react-query/servingTenantsList.core.js +0 -38
- package/dist/commonjs/react-query/servingTenantsList.core.js.map +0 -1
- package/dist/commonjs/react-query/servingTenantsList.d.ts +0 -41
- package/dist/commonjs/react-query/servingTenantsList.d.ts.map +0 -1
- package/dist/commonjs/react-query/servingTenantsList.js +0 -60
- package/dist/commonjs/react-query/servingTenantsList.js.map +0 -1
- package/dist/commonjs/react-query/servingTenantsSet.d.ts +0 -30
- package/dist/commonjs/react-query/servingTenantsSet.d.ts.map +0 -1
- package/dist/commonjs/react-query/servingTenantsSet.js +0 -47
- package/dist/commonjs/react-query/servingTenantsSet.js.map +0 -1
- package/dist/commonjs/sdk/tenants.d.ts +0 -27
- package/dist/commonjs/sdk/tenants.d.ts.map +0 -1
- package/dist/commonjs/sdk/tenants.js +0 -42
- package/dist/commonjs/sdk/tenants.js.map +0 -1
- package/dist/esm/funcs/servingTenantsGet.d.ts +0 -19
- package/dist/esm/funcs/servingTenantsGet.d.ts.map +0 -1
- package/dist/esm/funcs/servingTenantsGet.js +0 -100
- package/dist/esm/funcs/servingTenantsGet.js.map +0 -1
- package/dist/esm/funcs/servingTenantsList.d.ts +0 -19
- package/dist/esm/funcs/servingTenantsList.d.ts.map +0 -1
- package/dist/esm/funcs/servingTenantsList.js +0 -99
- package/dist/esm/funcs/servingTenantsList.js.map +0 -1
- package/dist/esm/funcs/servingTenantsSet.d.ts +0 -19
- package/dist/esm/funcs/servingTenantsSet.d.ts.map +0 -1
- package/dist/esm/funcs/servingTenantsSet.js +0 -101
- package/dist/esm/funcs/servingTenantsSet.js.map +0 -1
- package/dist/esm/mcp-server/tools/servingTenantsGet.d.ts +0 -8
- package/dist/esm/mcp-server/tools/servingTenantsGet.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/servingTenantsGet.js +0 -28
- package/dist/esm/mcp-server/tools/servingTenantsGet.js.map +0 -1
- package/dist/esm/mcp-server/tools/servingTenantsList.d.ts +0 -8
- package/dist/esm/mcp-server/tools/servingTenantsList.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/servingTenantsList.js +0 -28
- package/dist/esm/mcp-server/tools/servingTenantsList.js.map +0 -1
- package/dist/esm/mcp-server/tools/servingTenantsSet.d.ts +0 -8
- package/dist/esm/mcp-server/tools/servingTenantsSet.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/servingTenantsSet.js +0 -28
- package/dist/esm/mcp-server/tools/servingTenantsSet.js.map +0 -1
- package/dist/esm/models/components/deploymentapiformat.d.ts +0 -22
- package/dist/esm/models/components/deploymentapiformat.d.ts.map +0 -1
- package/dist/esm/models/components/deploymentapiformat.js +0 -20
- package/dist/esm/models/components/deploymentapiformat.js.map +0 -1
- package/dist/esm/models/components/deploymentscalingcreate.d.ts +0 -31
- package/dist/esm/models/components/deploymentscalingcreate.d.ts.map +0 -1
- package/dist/esm/models/components/deploymentscalingcreate.js +0 -45
- package/dist/esm/models/components/deploymentscalingcreate.js.map +0 -1
- package/dist/esm/models/components/deploymentscalingupdate.d.ts +0 -28
- package/dist/esm/models/components/deploymentscalingupdate.d.ts.map +0 -1
- package/dist/esm/models/components/deploymentscalingupdate.js +0 -45
- package/dist/esm/models/components/deploymentscalingupdate.js.map +0 -1
- package/dist/esm/models/components/pageservingtenant.d.ts +0 -22
- package/dist/esm/models/components/pageservingtenant.d.ts.map +0 -1
- package/dist/esm/models/components/pageservingtenant.js +0 -34
- package/dist/esm/models/components/pageservingtenant.js.map +0 -1
- package/dist/esm/models/components/servingtenant.d.ts +0 -28
- package/dist/esm/models/components/servingtenant.d.ts.map +0 -1
- package/dist/esm/models/components/servingtenant.js +0 -43
- package/dist/esm/models/components/servingtenant.js.map +0 -1
- package/dist/esm/models/components/servingtenantset.d.ts +0 -20
- package/dist/esm/models/components/servingtenantset.d.ts.map +0 -1
- package/dist/esm/models/components/servingtenantset.js +0 -20
- package/dist/esm/models/components/servingtenantset.js.map +0 -1
- package/dist/esm/models/operations/getservingtenant.d.ts +0 -22
- package/dist/esm/models/operations/getservingtenant.d.ts.map +0 -1
- package/dist/esm/models/operations/getservingtenant.js +0 -33
- package/dist/esm/models/operations/getservingtenant.js.map +0 -1
- package/dist/esm/models/operations/listservingtenants.d.ts +0 -24
- package/dist/esm/models/operations/listservingtenants.d.ts.map +0 -1
- package/dist/esm/models/operations/listservingtenants.js +0 -33
- package/dist/esm/models/operations/listservingtenants.js.map +0 -1
- package/dist/esm/models/operations/setservingtenant.d.ts +0 -25
- package/dist/esm/models/operations/setservingtenant.d.ts.map +0 -1
- package/dist/esm/models/operations/setservingtenant.js +0 -38
- package/dist/esm/models/operations/setservingtenant.js.map +0 -1
- package/dist/esm/react-query/servingTenantsGet.core.d.ts +0 -15
- package/dist/esm/react-query/servingTenantsGet.core.d.ts.map +0 -1
- package/dist/esm/react-query/servingTenantsGet.core.js +0 -31
- package/dist/esm/react-query/servingTenantsGet.core.js.map +0 -1
- package/dist/esm/react-query/servingTenantsGet.d.ts +0 -39
- package/dist/esm/react-query/servingTenantsGet.d.ts.map +0 -1
- package/dist/esm/react-query/servingTenantsGet.js +0 -50
- package/dist/esm/react-query/servingTenantsGet.js.map +0 -1
- package/dist/esm/react-query/servingTenantsList.core.d.ts +0 -17
- package/dist/esm/react-query/servingTenantsList.core.d.ts.map +0 -1
- package/dist/esm/react-query/servingTenantsList.core.js +0 -33
- package/dist/esm/react-query/servingTenantsList.core.js.map +0 -1
- package/dist/esm/react-query/servingTenantsList.d.ts +0 -41
- package/dist/esm/react-query/servingTenantsList.d.ts.map +0 -1
- package/dist/esm/react-query/servingTenantsList.js +0 -50
- package/dist/esm/react-query/servingTenantsList.js.map +0 -1
- package/dist/esm/react-query/servingTenantsSet.d.ts +0 -30
- package/dist/esm/react-query/servingTenantsSet.d.ts.map +0 -1
- package/dist/esm/react-query/servingTenantsSet.js +0 -42
- package/dist/esm/react-query/servingTenantsSet.js.map +0 -1
- package/dist/esm/sdk/tenants.d.ts +0 -27
- package/dist/esm/sdk/tenants.d.ts.map +0 -1
- package/dist/esm/sdk/tenants.js +0 -38
- package/dist/esm/sdk/tenants.js.map +0 -1
- package/src/funcs/servingTenantsGet.ts +0 -196
- package/src/funcs/servingTenantsList.ts +0 -196
- package/src/funcs/servingTenantsSet.ts +0 -197
- package/src/mcp-server/tools/servingTenantsGet.ts +0 -37
- package/src/mcp-server/tools/servingTenantsList.ts +0 -37
- package/src/mcp-server/tools/servingTenantsSet.ts +0 -37
- package/src/models/components/deploymentapiformat.ts +0 -31
- package/src/models/components/deploymentscalingcreate.ts +0 -90
- package/src/models/components/deploymentscalingupdate.ts +0 -87
- package/src/models/components/pageservingtenant.ts +0 -74
- package/src/models/components/servingtenant.ts +0 -85
- package/src/models/components/servingtenantset.ts +0 -54
- package/src/models/operations/getservingtenant.ts +0 -69
- package/src/models/operations/listservingtenants.ts +0 -71
- package/src/models/operations/setservingtenant.ts +0 -76
- package/src/react-query/servingTenantsGet.core.ts +0 -76
- package/src/react-query/servingTenantsGet.ts +0 -141
- package/src/react-query/servingTenantsList.core.ts +0 -81
- package/src/react-query/servingTenantsList.ts +0 -148
- package/src/react-query/servingTenantsSet.ts +0 -112
- package/src/sdk/tenants.ts +0 -64
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.5",
|
|
52880
52880
|
genVersion: "2.918.4",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.51.5 2.918.4 1.1.0 @meetkai/mka1"
|
|
52882
52882
|
};
|
|
52883
52883
|
});
|
|
52884
52884
|
|
|
@@ -63485,59 +63485,6 @@ 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
|
-
|
|
63541
63488
|
// src/models/components/deploystrategy.ts
|
|
63542
63489
|
var DeployStrategy, DeployStrategy$inboundSchema, DeployStrategy$outboundSchema;
|
|
63543
63490
|
var init_deploystrategy = __esm(() => {
|
|
@@ -63556,56 +63503,43 @@ var init_deploymentcreate = __esm(() => {
|
|
|
63556
63503
|
init_esm();
|
|
63557
63504
|
init_primitives();
|
|
63558
63505
|
init_acceleratorspec();
|
|
63559
|
-
init_deploymentapiformat();
|
|
63560
|
-
init_deploymentscalingcreate();
|
|
63561
63506
|
init_deploystrategy();
|
|
63562
63507
|
init_engine();
|
|
63508
|
+
init_scaling();
|
|
63563
63509
|
DeploymentCreate$inboundSchema = objectType({
|
|
63564
63510
|
accelerator: AcceleratorSpec$inboundSchema,
|
|
63565
|
-
api_format: DeploymentAPIFormat$inboundSchema.optional(),
|
|
63566
63511
|
endpoint_auth: booleanType().default(true),
|
|
63567
63512
|
engine: Engine$inboundSchema.optional(),
|
|
63568
63513
|
engine_args: arrayType(stringType()).optional(),
|
|
63569
63514
|
image: nullableType(stringType()).optional(),
|
|
63570
|
-
max_usd_hr: numberType(),
|
|
63571
63515
|
model: stringType(),
|
|
63572
63516
|
name: stringType(),
|
|
63573
|
-
|
|
63574
|
-
runtime: stringType().optional(),
|
|
63575
|
-
scaling: DeploymentScalingCreate$inboundSchema.optional(),
|
|
63517
|
+
scaling: Scaling$inboundSchema.optional(),
|
|
63576
63518
|
secrets: arrayType(stringType()).optional(),
|
|
63577
63519
|
strategy: DeployStrategy$inboundSchema.optional(),
|
|
63578
63520
|
volume: nullableType(stringType()).optional()
|
|
63579
63521
|
}).transform((v2) => {
|
|
63580
63522
|
return remap(v2, {
|
|
63581
|
-
api_format: "apiFormat",
|
|
63582
63523
|
endpoint_auth: "endpointAuth",
|
|
63583
|
-
engine_args: "engineArgs"
|
|
63584
|
-
max_usd_hr: "maxUsdHr"
|
|
63524
|
+
engine_args: "engineArgs"
|
|
63585
63525
|
});
|
|
63586
63526
|
});
|
|
63587
63527
|
DeploymentCreate$outboundSchema = objectType({
|
|
63588
63528
|
accelerator: AcceleratorSpec$outboundSchema,
|
|
63589
|
-
apiFormat: DeploymentAPIFormat$outboundSchema.optional(),
|
|
63590
63529
|
endpointAuth: booleanType().default(true),
|
|
63591
63530
|
engine: Engine$outboundSchema.optional(),
|
|
63592
63531
|
engineArgs: arrayType(stringType()).optional(),
|
|
63593
63532
|
image: nullableType(stringType()).optional(),
|
|
63594
|
-
maxUsdHr: numberType(),
|
|
63595
63533
|
model: stringType(),
|
|
63596
63534
|
name: stringType(),
|
|
63597
|
-
|
|
63598
|
-
runtime: stringType().optional(),
|
|
63599
|
-
scaling: DeploymentScalingCreate$outboundSchema.optional(),
|
|
63535
|
+
scaling: Scaling$outboundSchema.optional(),
|
|
63600
63536
|
secrets: arrayType(stringType()).optional(),
|
|
63601
63537
|
strategy: DeployStrategy$outboundSchema.optional(),
|
|
63602
63538
|
volume: nullableType(stringType()).optional()
|
|
63603
63539
|
}).transform((v2) => {
|
|
63604
63540
|
return remap(v2, {
|
|
63605
|
-
apiFormat: "api_format",
|
|
63606
63541
|
endpointAuth: "endpoint_auth",
|
|
63607
|
-
engineArgs: "engine_args"
|
|
63608
|
-
maxUsdHr: "max_usd_hr"
|
|
63542
|
+
engineArgs: "engine_args"
|
|
63609
63543
|
});
|
|
63610
63544
|
});
|
|
63611
63545
|
});
|
|
@@ -63625,77 +63559,31 @@ var init_deploymentrollbackrequest = __esm(() => {
|
|
|
63625
63559
|
});
|
|
63626
63560
|
});
|
|
63627
63561
|
|
|
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
|
-
|
|
63665
63562
|
// src/models/components/deploymentupdate.ts
|
|
63666
63563
|
var DeploymentUpdate$inboundSchema, DeploymentUpdate$outboundSchema;
|
|
63667
63564
|
var init_deploymentupdate = __esm(() => {
|
|
63668
63565
|
init_esm();
|
|
63669
63566
|
init_primitives();
|
|
63670
|
-
init_deploymentapiformat();
|
|
63671
63567
|
init_deploystrategy();
|
|
63672
63568
|
DeploymentUpdate$inboundSchema = objectType({
|
|
63673
|
-
api_format: nullableType(DeploymentAPIFormat$inboundSchema).optional(),
|
|
63674
63569
|
engine_args: nullableType(arrayType(stringType())).optional(),
|
|
63675
63570
|
image: nullableType(stringType()).optional(),
|
|
63676
63571
|
model: nullableType(stringType()).optional(),
|
|
63677
|
-
port: nullableType(numberType().int()).optional(),
|
|
63678
|
-
runtime: nullableType(stringType()).optional(),
|
|
63679
63572
|
secrets: nullableType(arrayType(stringType())).optional(),
|
|
63680
63573
|
strategy: DeployStrategy$inboundSchema.optional()
|
|
63681
63574
|
}).transform((v2) => {
|
|
63682
63575
|
return remap(v2, {
|
|
63683
|
-
api_format: "apiFormat",
|
|
63684
63576
|
engine_args: "engineArgs"
|
|
63685
63577
|
});
|
|
63686
63578
|
});
|
|
63687
63579
|
DeploymentUpdate$outboundSchema = objectType({
|
|
63688
|
-
apiFormat: nullableType(DeploymentAPIFormat$outboundSchema).optional(),
|
|
63689
63580
|
engineArgs: nullableType(arrayType(stringType())).optional(),
|
|
63690
63581
|
image: nullableType(stringType()).optional(),
|
|
63691
63582
|
model: nullableType(stringType()).optional(),
|
|
63692
|
-
port: nullableType(numberType().int()).optional(),
|
|
63693
|
-
runtime: nullableType(stringType()).optional(),
|
|
63694
63583
|
secrets: nullableType(arrayType(stringType())).optional(),
|
|
63695
63584
|
strategy: DeployStrategy$outboundSchema.optional()
|
|
63696
63585
|
}).transform((v2) => {
|
|
63697
63586
|
return remap(v2, {
|
|
63698
|
-
apiFormat: "api_format",
|
|
63699
63587
|
engineArgs: "engine_args"
|
|
63700
63588
|
});
|
|
63701
63589
|
});
|
|
@@ -69885,14 +69773,10 @@ var init_replica = __esm(() => {
|
|
|
69885
69773
|
accelerator: AcceleratorSpec$inboundSchema,
|
|
69886
69774
|
id: stringType(),
|
|
69887
69775
|
node: nullableType(stringType()).optional(),
|
|
69888
|
-
price_usd_hr: numberType().optional(),
|
|
69889
|
-
provider: stringType().optional(),
|
|
69890
|
-
region: stringType().optional(),
|
|
69891
69776
|
started_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
69892
69777
|
status: stringType()
|
|
69893
69778
|
}).transform((v2) => {
|
|
69894
69779
|
return remap(v2, {
|
|
69895
|
-
price_usd_hr: "priceUsdHr",
|
|
69896
69780
|
started_at: "startedAt"
|
|
69897
69781
|
});
|
|
69898
69782
|
});
|
|
@@ -69900,14 +69784,10 @@ var init_replica = __esm(() => {
|
|
|
69900
69784
|
accelerator: AcceleratorSpec$outboundSchema,
|
|
69901
69785
|
id: stringType(),
|
|
69902
69786
|
node: nullableType(stringType()).optional(),
|
|
69903
|
-
priceUsdHr: numberType().optional(),
|
|
69904
|
-
provider: stringType().optional(),
|
|
69905
|
-
region: stringType().optional(),
|
|
69906
69787
|
startedAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
69907
69788
|
status: stringType()
|
|
69908
69789
|
}).transform((v2) => {
|
|
69909
69790
|
return remap(v2, {
|
|
69910
|
-
priceUsdHr: "price_usd_hr",
|
|
69911
69791
|
startedAt: "started_at"
|
|
69912
69792
|
});
|
|
69913
69793
|
});
|
|
@@ -70054,67 +69934,6 @@ var init_pagesecret = __esm(() => {
|
|
|
70054
69934
|
});
|
|
70055
69935
|
});
|
|
70056
69936
|
|
|
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
|
-
|
|
70118
69937
|
// src/models/components/volume.ts
|
|
70119
69938
|
var Volume$inboundSchema, Volume$outboundSchema;
|
|
70120
69939
|
var init_volume = __esm(() => {
|
|
@@ -74192,18 +74011,6 @@ var init_security2 = __esm(() => {
|
|
|
74192
74011
|
});
|
|
74193
74012
|
});
|
|
74194
74013
|
|
|
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
|
-
|
|
74207
74014
|
// src/models/components/servingvalidationerror.ts
|
|
74208
74015
|
var Context$inboundSchema, Context$outboundSchema, ServingValidationErrorLoc$inboundSchema, ServingValidationErrorLoc$outboundSchema, ServingValidationError$inboundSchema, ServingValidationError$outboundSchema;
|
|
74209
74016
|
var init_servingvalidationerror = __esm(() => {
|
|
@@ -76740,12 +76547,9 @@ var init_components = __esm(() => {
|
|
|
76740
76547
|
init_deletepromptresponse();
|
|
76741
76548
|
init_deleteresponseobject();
|
|
76742
76549
|
init_deployment();
|
|
76743
|
-
init_deploymentapiformat();
|
|
76744
76550
|
init_deploymentcreate();
|
|
76745
76551
|
init_deploymentendpoint();
|
|
76746
76552
|
init_deploymentrollbackrequest();
|
|
76747
|
-
init_deploymentscalingcreate();
|
|
76748
|
-
init_deploymentscalingupdate();
|
|
76749
76553
|
init_deploymentupdate();
|
|
76750
76554
|
init_deploystrategy();
|
|
76751
76555
|
init_doubleclickaction();
|
|
@@ -76950,7 +76754,6 @@ var init_components = __esm(() => {
|
|
|
76950
76754
|
init_pagereplica();
|
|
76951
76755
|
init_pagerevision();
|
|
76952
76756
|
init_pagesecret();
|
|
76953
|
-
init_pageservingtenant();
|
|
76954
76757
|
init_pagevolume();
|
|
76955
76758
|
init_pendingsafetycheck();
|
|
76956
76759
|
init_preconfiguredskill();
|
|
@@ -77078,8 +76881,6 @@ var init_components = __esm(() => {
|
|
|
77078
76881
|
init_secret();
|
|
77079
76882
|
init_secretcreate();
|
|
77080
76883
|
init_security2();
|
|
77081
|
-
init_servingtenant();
|
|
77082
|
-
init_servingtenantset();
|
|
77083
76884
|
init_servingvalidationerror();
|
|
77084
76885
|
init_sessionkind();
|
|
77085
76886
|
init_sessionrecord();
|
|
@@ -90689,31 +90490,6 @@ var init_getservingmodel = __esm(() => {
|
|
|
90689
90490
|
});
|
|
90690
90491
|
});
|
|
90691
90492
|
|
|
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
|
-
|
|
90717
90493
|
// src/models/operations/getsession.ts
|
|
90718
90494
|
var GetSessionRequest$inboundSchema, GetSessionRequest$outboundSchema;
|
|
90719
90495
|
var init_getsession = __esm(() => {
|
|
@@ -94003,31 +93779,6 @@ var init_listservingmodels = __esm(() => {
|
|
|
94003
93779
|
});
|
|
94004
93780
|
});
|
|
94005
93781
|
|
|
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
|
-
|
|
94031
93782
|
// src/models/operations/listsessions.ts
|
|
94032
93783
|
var ListSessionsRequest$inboundSchema, ListSessionsRequest$outboundSchema;
|
|
94033
93784
|
var init_listsessions = __esm(() => {
|
|
@@ -96103,36 +95854,6 @@ var init_setorgprice = __esm(() => {
|
|
|
96103
95854
|
});
|
|
96104
95855
|
});
|
|
96105
95856
|
|
|
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
|
-
|
|
96136
95857
|
// src/models/operations/setupwhatsappappwebhook.ts
|
|
96137
95858
|
var SetupWhatsAppAppWebhookRequest$inboundSchema, SetupWhatsAppAppWebhookRequest$outboundSchema, SetupWhatsAppAppWebhookResponse$inboundSchema, SetupWhatsAppAppWebhookResponse$outboundSchema;
|
|
96138
95859
|
var init_setupwhatsappappwebhook = __esm(() => {
|
|
@@ -97613,23 +97334,23 @@ var init_updatescaling = __esm(() => {
|
|
|
97613
97334
|
UpdateScalingRequest$inboundSchema = objectType({
|
|
97614
97335
|
deployment_id: stringType(),
|
|
97615
97336
|
"X-On-Behalf-Of": stringType().optional(),
|
|
97616
|
-
|
|
97337
|
+
Scaling: Scaling$inboundSchema
|
|
97617
97338
|
}).transform((v2) => {
|
|
97618
97339
|
return remap(v2, {
|
|
97619
97340
|
deployment_id: "deploymentId",
|
|
97620
97341
|
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
97621
|
-
|
|
97342
|
+
Scaling: "scaling"
|
|
97622
97343
|
});
|
|
97623
97344
|
});
|
|
97624
97345
|
UpdateScalingRequest$outboundSchema = objectType({
|
|
97625
97346
|
deploymentId: stringType(),
|
|
97626
97347
|
xOnBehalfOf: stringType().optional(),
|
|
97627
|
-
|
|
97348
|
+
scaling: Scaling$outboundSchema
|
|
97628
97349
|
}).transform((v2) => {
|
|
97629
97350
|
return remap(v2, {
|
|
97630
97351
|
deploymentId: "deployment_id",
|
|
97631
97352
|
xOnBehalfOf: "X-On-Behalf-Of",
|
|
97632
|
-
|
|
97353
|
+
scaling: "Scaling"
|
|
97633
97354
|
});
|
|
97634
97355
|
});
|
|
97635
97356
|
});
|
|
@@ -98287,7 +98008,6 @@ var init_operations = __esm(() => {
|
|
|
98287
98008
|
init_getsandboxusage();
|
|
98288
98009
|
init_getserviceaccount2();
|
|
98289
98010
|
init_getservingmodel();
|
|
98290
|
-
init_getservingtenant();
|
|
98291
98011
|
init_getsession();
|
|
98292
98012
|
init_getsessionurl();
|
|
98293
98013
|
init_getskill();
|
|
@@ -98359,7 +98079,6 @@ var init_operations = __esm(() => {
|
|
|
98359
98079
|
init_listserviceaccountapikeys2();
|
|
98360
98080
|
init_listserviceaccounts2();
|
|
98361
98081
|
init_listservingmodels();
|
|
98362
|
-
init_listservingtenants();
|
|
98363
98082
|
init_listsessions();
|
|
98364
98083
|
init_listskills();
|
|
98365
98084
|
init_listskillversions();
|
|
@@ -98403,7 +98122,6 @@ var init_operations = __esm(() => {
|
|
|
98403
98122
|
init_setcurrency();
|
|
98404
98123
|
init_setorgbudget();
|
|
98405
98124
|
init_setorgprice();
|
|
98406
|
-
init_setservingtenant();
|
|
98407
98125
|
init_setupwhatsappappwebhook();
|
|
98408
98126
|
init_startexportfeedback();
|
|
98409
98127
|
init_streamagentrunevents();
|
|
@@ -132229,7 +131947,7 @@ async function $do287(client, request, options) {
|
|
|
132229
131947
|
const responseFields = {
|
|
132230
131948
|
HttpMeta: { Response: response, Request: req }
|
|
132231
131949
|
};
|
|
132232
|
-
const [result] = await match(json(201, Deployment$inboundSchema), jsonErr(
|
|
131950
|
+
const [result] = await match(json(201, Deployment$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132233
131951
|
if (!result.ok) {
|
|
132234
131952
|
return [result, { status: "complete", request: req, response }];
|
|
132235
131953
|
}
|
|
@@ -132349,7 +132067,7 @@ async function $do288(client, request, options) {
|
|
|
132349
132067
|
const responseFields = {
|
|
132350
132068
|
HttpMeta: { Response: response, Request: req }
|
|
132351
132069
|
};
|
|
132352
|
-
const [result] = await match(nil(204, voidType()), jsonErr([
|
|
132070
|
+
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 });
|
|
132353
132071
|
if (!result.ok) {
|
|
132354
132072
|
return [result, { status: "complete", request: req, response }];
|
|
132355
132073
|
}
|
|
@@ -132587,7 +132305,7 @@ async function $do290(client, request, options) {
|
|
|
132587
132305
|
const responseFields = {
|
|
132588
132306
|
HttpMeta: { Response: response, Request: req }
|
|
132589
132307
|
};
|
|
132590
|
-
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([
|
|
132308
|
+
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 });
|
|
132591
132309
|
if (!result.ok) {
|
|
132592
132310
|
return [result, { status: "complete", request: req, response }];
|
|
132593
132311
|
}
|
|
@@ -132951,7 +132669,7 @@ async function $do293(client, request, options) {
|
|
|
132951
132669
|
const responseFields = {
|
|
132952
132670
|
HttpMeta: { Response: response, Request: req }
|
|
132953
132671
|
};
|
|
132954
|
-
const [result] = await match(json(200, PageDeployment$inboundSchema), jsonErr(
|
|
132672
|
+
const [result] = await match(json(200, PageDeployment$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132955
132673
|
if (!result.ok) {
|
|
132956
132674
|
return [result, { status: "complete", request: req, response }];
|
|
132957
132675
|
}
|
|
@@ -133071,7 +132789,7 @@ async function $do294(client, request, options) {
|
|
|
133071
132789
|
const responseFields = {
|
|
133072
132790
|
HttpMeta: { Response: response, Request: req }
|
|
133073
132791
|
};
|
|
133074
|
-
const [result] = await match(json(200, PageReplica$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
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 });
|
|
133075
132793
|
if (!result.ok) {
|
|
133076
132794
|
return [result, { status: "complete", request: req, response }];
|
|
133077
132795
|
}
|
|
@@ -133191,7 +132909,7 @@ async function $do295(client, request, options) {
|
|
|
133191
132909
|
const responseFields = {
|
|
133192
132910
|
HttpMeta: { Response: response, Request: req }
|
|
133193
132911
|
};
|
|
133194
|
-
const [result] = await match(json(200, PageRevision$inboundSchema), jsonErr([
|
|
132912
|
+
const [result] = await match(json(200, PageRevision$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133195
132913
|
if (!result.ok) {
|
|
133196
132914
|
return [result, { status: "complete", request: req, response }];
|
|
133197
132915
|
}
|
|
@@ -133555,7 +133273,7 @@ async function $do298(client, request, options) {
|
|
|
133555
133273
|
const responseFields = {
|
|
133556
133274
|
HttpMeta: { Response: response, Request: req }
|
|
133557
133275
|
};
|
|
133558
|
-
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([
|
|
133276
|
+
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 });
|
|
133559
133277
|
if (!result.ok) {
|
|
133560
133278
|
return [result, { status: "complete", request: req, response }];
|
|
133561
133279
|
}
|
|
@@ -133614,9 +133332,7 @@ async function $do299(client, request, options) {
|
|
|
133614
133332
|
return [parsed, { status: "invalid" }];
|
|
133615
133333
|
}
|
|
133616
133334
|
const payload = parsed.value;
|
|
133617
|
-
const body = encodeJSON("body", payload.
|
|
133618
|
-
explode: true
|
|
133619
|
-
});
|
|
133335
|
+
const body = encodeJSON("body", payload.Scaling, { explode: true });
|
|
133620
133336
|
const pathParams = {
|
|
133621
133337
|
deployment_id: encodeSimple("deployment_id", payload.deployment_id, {
|
|
133622
133338
|
explode: false,
|
|
@@ -133678,7 +133394,7 @@ async function $do299(client, request, options) {
|
|
|
133678
133394
|
const responseFields = {
|
|
133679
133395
|
HttpMeta: { Response: response, Request: req }
|
|
133680
133396
|
};
|
|
133681
|
-
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
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 });
|
|
133682
133398
|
if (!result.ok) {
|
|
133683
133399
|
return [result, { status: "complete", request: req, response }];
|
|
133684
133400
|
}
|
|
@@ -135115,7 +134831,7 @@ async function $do311(client, request, options) {
|
|
|
135115
134831
|
const responseFields = {
|
|
135116
134832
|
HttpMeta: { Response: response, Request: req }
|
|
135117
134833
|
};
|
|
135118
|
-
const [result] = await match(nil(204, voidType()), jsonErr([403, 404
|
|
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 });
|
|
135119
134835
|
if (!result.ok) {
|
|
135120
134836
|
return [result, { status: "complete", request: req, response }];
|
|
135121
134837
|
}
|
|
@@ -135703,7 +135419,7 @@ async function $do316(client, request, options) {
|
|
|
135703
135419
|
const responseFields = {
|
|
135704
135420
|
HttpMeta: { Response: response, Request: req }
|
|
135705
135421
|
};
|
|
135706
|
-
const [result] = await match(nil(204, voidType()), jsonErr([403, 404
|
|
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 });
|
|
135707
135423
|
if (!result.ok) {
|
|
135708
135424
|
return [result, { status: "complete", request: req, response }];
|
|
135709
135425
|
}
|
|
@@ -135870,371 +135586,11 @@ List your secrets by name (values are never returned).`,
|
|
|
135870
135586
|
};
|
|
135871
135587
|
});
|
|
135872
135588
|
|
|
135873
|
-
// src/funcs/servingTenantsGet.ts
|
|
135874
|
-
function servingTenantsGet(client, request, options) {
|
|
135875
|
-
return new APIPromise($do318(client, request, options));
|
|
135876
|
-
}
|
|
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
135589
|
// src/funcs/servingVolumesCreate.ts
|
|
136234
135590
|
function servingVolumesCreate(client, request, options) {
|
|
136235
|
-
return new APIPromise($
|
|
135591
|
+
return new APIPromise($do318(client, request, options));
|
|
136236
135592
|
}
|
|
136237
|
-
async function $
|
|
135593
|
+
async function $do318(client, request, options) {
|
|
136238
135594
|
const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136239
135595
|
if (!parsed.ok) {
|
|
136240
135596
|
return [parsed, { status: "invalid" }];
|
|
@@ -136317,12 +135673,12 @@ var init_servingVolumesCreate = __esm(() => {
|
|
|
136317
135673
|
});
|
|
136318
135674
|
|
|
136319
135675
|
// src/mcp-server/tools/servingVolumesCreate.ts
|
|
136320
|
-
var
|
|
135676
|
+
var args311, tool$servingVolumesCreate;
|
|
136321
135677
|
var init_servingVolumesCreate2 = __esm(() => {
|
|
136322
135678
|
init_servingVolumesCreate();
|
|
136323
135679
|
init_operations();
|
|
136324
135680
|
init_tools();
|
|
136325
|
-
|
|
135681
|
+
args311 = {
|
|
136326
135682
|
request: CreateVolumeRequest$inboundSchema
|
|
136327
135683
|
};
|
|
136328
135684
|
tool$servingVolumesCreate = {
|
|
@@ -136330,9 +135686,9 @@ var init_servingVolumesCreate2 = __esm(() => {
|
|
|
136330
135686
|
description: `Create a volume
|
|
136331
135687
|
|
|
136332
135688
|
Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
136333
|
-
args:
|
|
136334
|
-
tool: async (client,
|
|
136335
|
-
const [result, apiCall] = await servingVolumesCreate(client,
|
|
135689
|
+
args: args311,
|
|
135690
|
+
tool: async (client, args312, ctx) => {
|
|
135691
|
+
const [result, apiCall] = await servingVolumesCreate(client, args312.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136336
135692
|
if (!result.ok) {
|
|
136337
135693
|
return {
|
|
136338
135694
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136347,9 +135703,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
|
136347
135703
|
|
|
136348
135704
|
// src/funcs/servingVolumesDelete.ts
|
|
136349
135705
|
function servingVolumesDelete(client, request, options) {
|
|
136350
|
-
return new APIPromise($
|
|
135706
|
+
return new APIPromise($do319(client, request, options));
|
|
136351
135707
|
}
|
|
136352
|
-
async function $
|
|
135708
|
+
async function $do319(client, request, options) {
|
|
136353
135709
|
const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136354
135710
|
if (!parsed.ok) {
|
|
136355
135711
|
return [parsed, { status: "invalid" }];
|
|
@@ -136437,12 +135793,12 @@ var init_servingVolumesDelete = __esm(() => {
|
|
|
136437
135793
|
});
|
|
136438
135794
|
|
|
136439
135795
|
// src/mcp-server/tools/servingVolumesDelete.ts
|
|
136440
|
-
var
|
|
135796
|
+
var args312, tool$servingVolumesDelete;
|
|
136441
135797
|
var init_servingVolumesDelete2 = __esm(() => {
|
|
136442
135798
|
init_servingVolumesDelete();
|
|
136443
135799
|
init_operations();
|
|
136444
135800
|
init_tools();
|
|
136445
|
-
|
|
135801
|
+
args312 = {
|
|
136446
135802
|
request: DeleteVolumeRequest$inboundSchema
|
|
136447
135803
|
};
|
|
136448
135804
|
tool$servingVolumesDelete = {
|
|
@@ -136450,9 +135806,9 @@ var init_servingVolumesDelete2 = __esm(() => {
|
|
|
136450
135806
|
description: `Delete a volume
|
|
136451
135807
|
|
|
136452
135808
|
Delete a volume and its contents.`,
|
|
136453
|
-
args:
|
|
136454
|
-
tool: async (client,
|
|
136455
|
-
const [result, apiCall] = await servingVolumesDelete(client,
|
|
135809
|
+
args: args312,
|
|
135810
|
+
tool: async (client, args313, ctx) => {
|
|
135811
|
+
const [result, apiCall] = await servingVolumesDelete(client, args313.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136456
135812
|
if (!result.ok) {
|
|
136457
135813
|
return {
|
|
136458
135814
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136466,9 +135822,9 @@ Delete a volume and its contents.`,
|
|
|
136466
135822
|
|
|
136467
135823
|
// src/funcs/servingVolumesGet.ts
|
|
136468
135824
|
function servingVolumesGet(client, request, options) {
|
|
136469
|
-
return new APIPromise($
|
|
135825
|
+
return new APIPromise($do320(client, request, options));
|
|
136470
135826
|
}
|
|
136471
|
-
async function $
|
|
135827
|
+
async function $do320(client, request, options) {
|
|
136472
135828
|
const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136473
135829
|
if (!parsed.ok) {
|
|
136474
135830
|
return [parsed, { status: "invalid" }];
|
|
@@ -136556,12 +135912,12 @@ var init_servingVolumesGet = __esm(() => {
|
|
|
136556
135912
|
});
|
|
136557
135913
|
|
|
136558
135914
|
// src/mcp-server/tools/servingVolumesGet.ts
|
|
136559
|
-
var
|
|
135915
|
+
var args313, tool$servingVolumesGet;
|
|
136560
135916
|
var init_servingVolumesGet2 = __esm(() => {
|
|
136561
135917
|
init_servingVolumesGet();
|
|
136562
135918
|
init_operations();
|
|
136563
135919
|
init_tools();
|
|
136564
|
-
|
|
135920
|
+
args313 = {
|
|
136565
135921
|
request: GetVolumeRequest$inboundSchema
|
|
136566
135922
|
};
|
|
136567
135923
|
tool$servingVolumesGet = {
|
|
@@ -136569,9 +135925,9 @@ var init_servingVolumesGet2 = __esm(() => {
|
|
|
136569
135925
|
description: `Get a volume
|
|
136570
135926
|
|
|
136571
135927
|
Retrieve a volume.`,
|
|
136572
|
-
args:
|
|
136573
|
-
tool: async (client,
|
|
136574
|
-
const [result, apiCall] = await servingVolumesGet(client,
|
|
135928
|
+
args: args313,
|
|
135929
|
+
tool: async (client, args314, ctx) => {
|
|
135930
|
+
const [result, apiCall] = await servingVolumesGet(client, args314.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136575
135931
|
if (!result.ok) {
|
|
136576
135932
|
return {
|
|
136577
135933
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136586,9 +135942,9 @@ Retrieve a volume.`,
|
|
|
136586
135942
|
|
|
136587
135943
|
// src/funcs/servingVolumesList.ts
|
|
136588
135944
|
function servingVolumesList(client, request, options) {
|
|
136589
|
-
return new APIPromise($
|
|
135945
|
+
return new APIPromise($do321(client, request, options));
|
|
136590
135946
|
}
|
|
136591
|
-
async function $
|
|
135947
|
+
async function $do321(client, request, options) {
|
|
136592
135948
|
const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136593
135949
|
if (!parsed.ok) {
|
|
136594
135950
|
return [parsed, { status: "invalid" }];
|
|
@@ -136675,12 +136031,12 @@ var init_servingVolumesList = __esm(() => {
|
|
|
136675
136031
|
});
|
|
136676
136032
|
|
|
136677
136033
|
// src/mcp-server/tools/servingVolumesList.ts
|
|
136678
|
-
var
|
|
136034
|
+
var args314, tool$servingVolumesList;
|
|
136679
136035
|
var init_servingVolumesList2 = __esm(() => {
|
|
136680
136036
|
init_servingVolumesList();
|
|
136681
136037
|
init_operations();
|
|
136682
136038
|
init_tools();
|
|
136683
|
-
|
|
136039
|
+
args314 = {
|
|
136684
136040
|
request: ListVolumesRequest$inboundSchema
|
|
136685
136041
|
};
|
|
136686
136042
|
tool$servingVolumesList = {
|
|
@@ -136688,9 +136044,9 @@ var init_servingVolumesList2 = __esm(() => {
|
|
|
136688
136044
|
description: `List volumes
|
|
136689
136045
|
|
|
136690
136046
|
List your volumes.`,
|
|
136691
|
-
args:
|
|
136692
|
-
tool: async (client,
|
|
136693
|
-
const [result, apiCall] = await servingVolumesList(client,
|
|
136047
|
+
args: args314,
|
|
136048
|
+
tool: async (client, args315, ctx) => {
|
|
136049
|
+
const [result, apiCall] = await servingVolumesList(client, args315.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136694
136050
|
if (!result.ok) {
|
|
136695
136051
|
return {
|
|
136696
136052
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136705,9 +136061,9 @@ List your volumes.`,
|
|
|
136705
136061
|
|
|
136706
136062
|
// src/funcs/usageCosts.ts
|
|
136707
136063
|
function usageCosts(client, request, options) {
|
|
136708
|
-
return new APIPromise($
|
|
136064
|
+
return new APIPromise($do322(client, request, options));
|
|
136709
136065
|
}
|
|
136710
|
-
async function $
|
|
136066
|
+
async function $do322(client, request, options) {
|
|
136711
136067
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136712
136068
|
if (!parsed.ok) {
|
|
136713
136069
|
return [parsed, { status: "invalid" }];
|
|
@@ -136790,12 +136146,12 @@ var init_usageCosts = __esm(() => {
|
|
|
136790
136146
|
});
|
|
136791
136147
|
|
|
136792
136148
|
// src/mcp-server/tools/usageCosts.ts
|
|
136793
|
-
var
|
|
136149
|
+
var args315, tool$usageCosts;
|
|
136794
136150
|
var init_usageCosts2 = __esm(() => {
|
|
136795
136151
|
init_usageCosts();
|
|
136796
136152
|
init_operations();
|
|
136797
136153
|
init_tools();
|
|
136798
|
-
|
|
136154
|
+
args315 = {
|
|
136799
136155
|
request: GetCostsRequest$inboundSchema
|
|
136800
136156
|
};
|
|
136801
136157
|
tool$usageCosts = {
|
|
@@ -136803,9 +136159,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
136803
136159
|
description: `Aggregate cost by dimension
|
|
136804
136160
|
|
|
136805
136161
|
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.`,
|
|
136806
|
-
args:
|
|
136807
|
-
tool: async (client,
|
|
136808
|
-
const [result, apiCall] = await usageCosts(client,
|
|
136162
|
+
args: args315,
|
|
136163
|
+
tool: async (client, args316, ctx) => {
|
|
136164
|
+
const [result, apiCall] = await usageCosts(client, args316.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136809
136165
|
if (!result.ok) {
|
|
136810
136166
|
return {
|
|
136811
136167
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136820,9 +136176,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
136820
136176
|
|
|
136821
136177
|
// src/funcs/usageSandbox.ts
|
|
136822
136178
|
function usageSandbox(client, request, options) {
|
|
136823
|
-
return new APIPromise($
|
|
136179
|
+
return new APIPromise($do323(client, request, options));
|
|
136824
136180
|
}
|
|
136825
|
-
async function $
|
|
136181
|
+
async function $do323(client, request, options) {
|
|
136826
136182
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136827
136183
|
if (!parsed.ok) {
|
|
136828
136184
|
return [parsed, { status: "invalid" }];
|
|
@@ -136913,12 +136269,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
136913
136269
|
});
|
|
136914
136270
|
|
|
136915
136271
|
// src/mcp-server/tools/usageSandbox.ts
|
|
136916
|
-
var
|
|
136272
|
+
var args316, tool$usageSandbox;
|
|
136917
136273
|
var init_usageSandbox2 = __esm(() => {
|
|
136918
136274
|
init_usageSandbox();
|
|
136919
136275
|
init_operations();
|
|
136920
136276
|
init_tools();
|
|
136921
|
-
|
|
136277
|
+
args316 = {
|
|
136922
136278
|
request: GetSandboxUsageRequest$inboundSchema
|
|
136923
136279
|
};
|
|
136924
136280
|
tool$usageSandbox = {
|
|
@@ -136926,9 +136282,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
136926
136282
|
description: `Get Sandbox Usage
|
|
136927
136283
|
|
|
136928
136284
|
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\`).`,
|
|
136929
|
-
args:
|
|
136930
|
-
tool: async (client,
|
|
136931
|
-
const [result, apiCall] = await usageSandbox(client,
|
|
136285
|
+
args: args316,
|
|
136286
|
+
tool: async (client, args317, ctx) => {
|
|
136287
|
+
const [result, apiCall] = await usageSandbox(client, args317.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136932
136288
|
if (!result.ok) {
|
|
136933
136289
|
return {
|
|
136934
136290
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136945,7 +136301,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
136945
136301
|
function createMCPServer(deps) {
|
|
136946
136302
|
const server = new McpServer({
|
|
136947
136303
|
name: "SDK",
|
|
136948
|
-
version: "0.51.
|
|
136304
|
+
version: "0.51.5"
|
|
136949
136305
|
});
|
|
136950
136306
|
const client = new SDKCore({
|
|
136951
136307
|
bearerAuth: deps.bearerAuth,
|
|
@@ -137278,9 +136634,6 @@ function createMCPServer(deps) {
|
|
|
137278
136634
|
tool(tool$servingSecretsList);
|
|
137279
136635
|
tool(tool$servingSecretsCreate);
|
|
137280
136636
|
tool(tool$servingSecretsDelete);
|
|
137281
|
-
tool(tool$servingTenantsList);
|
|
137282
|
-
tool(tool$servingTenantsGet);
|
|
137283
|
-
tool(tool$servingTenantsSet);
|
|
137284
136637
|
tool(tool$servingVolumesList);
|
|
137285
136638
|
tool(tool$servingVolumesCreate);
|
|
137286
136639
|
tool(tool$servingVolumesDelete);
|
|
@@ -137609,9 +136962,6 @@ var init_server2 = __esm(() => {
|
|
|
137609
136962
|
init_servingSecretsCreate2();
|
|
137610
136963
|
init_servingSecretsDelete2();
|
|
137611
136964
|
init_servingSecretsList2();
|
|
137612
|
-
init_servingTenantsGet2();
|
|
137613
|
-
init_servingTenantsList2();
|
|
137614
|
-
init_servingTenantsSet2();
|
|
137615
136965
|
init_servingVolumesCreate2();
|
|
137616
136966
|
init_servingVolumesDelete2();
|
|
137617
136967
|
init_servingVolumesGet2();
|
|
@@ -138795,7 +138145,7 @@ var routes = rn({
|
|
|
138795
138145
|
var app = Ve(routes, {
|
|
138796
138146
|
name: "mcp",
|
|
138797
138147
|
versionInfo: {
|
|
138798
|
-
currentVersion: "0.51.
|
|
138148
|
+
currentVersion: "0.51.5"
|
|
138799
138149
|
}
|
|
138800
138150
|
});
|
|
138801
138151
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -138803,5 +138153,5 @@ export {
|
|
|
138803
138153
|
app
|
|
138804
138154
|
};
|
|
138805
138155
|
|
|
138806
|
-
//# debugId=
|
|
138156
|
+
//# debugId=0D7CEABD4CBCA55164756E2164756E21
|
|
138807
138157
|
//# sourceMappingURL=mcp-server.js.map
|