@meetkai/mka1 0.51.5 → 0.51.7
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 +248 -230
- package/bin/mcp-server.js +1437 -435
- package/bin/mcp-server.js.map +53 -31
- 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/servingDeploymentsRollback.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsRollback.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/servingImagesRegister.d.ts +19 -0
- package/dist/commonjs/funcs/servingImagesRegister.d.ts.map +1 -0
- package/dist/commonjs/funcs/{servingImagesBuild.js → servingImagesRegister.js} +9 -9
- package/dist/commonjs/funcs/servingImagesRegister.js.map +1 -0
- 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/servingTenantsDeleteOrganization.d.ts +19 -0
- package/dist/commonjs/funcs/servingTenantsDeleteOrganization.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingTenantsDeleteOrganization.js +139 -0
- package/dist/commonjs/funcs/servingTenantsDeleteOrganization.js.map +1 -0
- package/dist/commonjs/funcs/{servingImagesBuild.d.ts → servingTenantsGet.d.ts} +4 -4
- 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/servingTenantsGetOrganizationDeletion.d.ts +19 -0
- package/dist/commonjs/funcs/servingTenantsGetOrganizationDeletion.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingTenantsGetOrganizationDeletion.js +136 -0
- package/dist/commonjs/funcs/servingTenantsGetOrganizationDeletion.js.map +1 -0
- package/dist/commonjs/funcs/servingTenantsList.d.ts +19 -0
- package/dist/{esm/funcs/servingImagesBuild.d.ts.map → commonjs/funcs/servingTenantsList.d.ts.map} +1 -1
- 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 +13 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/servingImagesRegister.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingImagesRegister.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingImagesRegister.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingImagesRegister.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsDeleteOrganization.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsDeleteOrganization.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsDeleteOrganization.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsDeleteOrganization.js.map +1 -0
- 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/{servingImagesBuild.js → servingTenantsGet.js} +9 -9
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsGetOrganizationDeletion.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsGetOrganizationDeletion.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsGetOrganizationDeletion.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsGetOrganizationDeletion.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/{servingImagesBuild.d.ts.map → servingTenantsList.d.ts.map} +1 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsList.js +64 -0
- package/dist/commonjs/mcp-server/tools/{servingImagesBuild.js.map → servingTenantsList.js.map} +1 -1
- 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 +31 -5
- package/dist/commonjs/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/deploymentcreate.js +20 -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 +12 -0
- package/dist/commonjs/models/components/deploymentupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/deploymentupdate.js +13 -0
- package/dist/commonjs/models/components/deploymentupdate.js.map +1 -1
- package/dist/commonjs/models/components/image.d.ts +12 -6
- package/dist/commonjs/models/components/image.d.ts.map +1 -1
- package/dist/commonjs/models/components/image.js +7 -4
- package/dist/commonjs/models/components/image.js.map +1 -1
- package/dist/commonjs/models/components/imageregister.d.ts +30 -0
- package/dist/commonjs/models/components/imageregister.d.ts.map +1 -0
- package/dist/commonjs/models/components/{imagebuild.js → imageregister.js} +14 -13
- package/dist/commonjs/models/components/imageregister.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +9 -2
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +9 -2
- 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/{imagespec.js → pageservingtenant.js} +19 -30
- 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/servingorgdeletionrequest.d.ts +27 -0
- package/dist/commonjs/models/components/servingorgdeletionrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/servingorgdeletionrequest.js +73 -0
- package/dist/commonjs/models/components/servingorgdeletionrequest.js.map +1 -0
- package/dist/commonjs/models/components/servingorgteardown.d.ts +40 -0
- package/dist/commonjs/models/components/servingorgteardown.d.ts.map +1 -0
- package/dist/commonjs/models/components/servingorgteardown.js +91 -0
- package/dist/commonjs/models/components/servingorgteardown.js.map +1 -0
- 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/deleteservingorganization.d.ts +25 -0
- package/dist/commonjs/models/operations/deleteservingorganization.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deleteservingorganization.js +76 -0
- package/dist/commonjs/models/operations/deleteservingorganization.js.map +1 -0
- package/dist/commonjs/models/operations/getservingorganizationdeletion.d.ts +22 -0
- package/dist/commonjs/models/operations/getservingorganizationdeletion.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getservingorganizationdeletion.js +71 -0
- package/dist/commonjs/models/operations/getservingorganizationdeletion.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 +6 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +6 -1
- 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/registerimage.d.ts +23 -0
- package/dist/commonjs/models/operations/registerimage.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{buildimage.js → registerimage.js} +14 -14
- package/dist/commonjs/models/operations/registerimage.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 +6 -1
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +6 -1
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/servingImagesRegister.d.ts +30 -0
- package/dist/commonjs/react-query/servingImagesRegister.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingImagesRegister.js +47 -0
- package/dist/commonjs/react-query/servingImagesRegister.js.map +1 -0
- package/dist/commonjs/react-query/servingTenantsDeleteOrganization.d.ts +30 -0
- package/dist/commonjs/react-query/servingTenantsDeleteOrganization.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsDeleteOrganization.js +47 -0
- package/dist/commonjs/react-query/servingTenantsDeleteOrganization.js.map +1 -0
- 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/servingTenantsGetOrganizationDeletion.core.d.ts +15 -0
- package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.core.js +42 -0
- package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.core.js.map +1 -0
- package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.d.ts +39 -0
- package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.js +65 -0
- package/dist/commonjs/react-query/servingTenantsGetOrganizationDeletion.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/sdkimages.d.ts +3 -3
- package/dist/commonjs/sdk/sdkimages.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdkimages.js +5 -5
- package/dist/commonjs/sdk/sdkimages.js.map +1 -1
- 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 +41 -0
- package/dist/commonjs/sdk/tenants.d.ts.map +1 -0
- package/dist/commonjs/sdk/tenants.js +62 -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/servingDeploymentsRollback.js +1 -1
- package/dist/esm/funcs/servingDeploymentsRollback.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/servingImagesRegister.d.ts +19 -0
- package/dist/esm/funcs/servingImagesRegister.d.ts.map +1 -0
- package/dist/esm/funcs/{servingImagesBuild.js → servingImagesRegister.js} +8 -8
- package/dist/esm/funcs/servingImagesRegister.js.map +1 -0
- 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/servingTenantsDeleteOrganization.d.ts +19 -0
- package/dist/esm/funcs/servingTenantsDeleteOrganization.d.ts.map +1 -0
- package/dist/esm/funcs/servingTenantsDeleteOrganization.js +103 -0
- package/dist/esm/funcs/servingTenantsDeleteOrganization.js.map +1 -0
- package/dist/esm/funcs/{servingImagesBuild.d.ts → servingTenantsGet.d.ts} +4 -4
- 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/servingTenantsGetOrganizationDeletion.d.ts +19 -0
- package/dist/esm/funcs/servingTenantsGetOrganizationDeletion.d.ts.map +1 -0
- package/dist/esm/funcs/servingTenantsGetOrganizationDeletion.js +100 -0
- package/dist/esm/funcs/servingTenantsGetOrganizationDeletion.js.map +1 -0
- package/dist/esm/funcs/servingTenantsList.d.ts +19 -0
- package/dist/{commonjs/funcs/servingImagesBuild.d.ts.map → esm/funcs/servingTenantsList.d.ts.map} +1 -1
- 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 +13 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/servingImagesRegister.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingImagesRegister.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingImagesRegister.js +28 -0
- package/dist/esm/mcp-server/tools/servingImagesRegister.js.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsDeleteOrganization.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingTenantsDeleteOrganization.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsDeleteOrganization.js +28 -0
- package/dist/esm/mcp-server/tools/servingTenantsDeleteOrganization.js.map +1 -0
- 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/servingTenantsGetOrganizationDeletion.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingTenantsGetOrganizationDeletion.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsGetOrganizationDeletion.js +28 -0
- package/dist/esm/mcp-server/tools/servingTenantsGetOrganizationDeletion.js.map +1 -0
- package/dist/esm/mcp-server/tools/servingTenantsList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/{servingImagesBuild.d.ts.map → servingTenantsList.d.ts.map} +1 -1
- package/dist/esm/mcp-server/tools/{servingImagesBuild.js → servingTenantsList.js} +8 -8
- package/dist/esm/mcp-server/tools/{servingImagesBuild.js.map → servingTenantsList.js.map} +1 -1
- 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 +31 -5
- package/dist/esm/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/esm/models/components/deploymentcreate.js +20 -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 +12 -0
- package/dist/esm/models/components/deploymentupdate.d.ts.map +1 -1
- package/dist/esm/models/components/deploymentupdate.js +13 -0
- package/dist/esm/models/components/deploymentupdate.js.map +1 -1
- package/dist/esm/models/components/image.d.ts +12 -6
- package/dist/esm/models/components/image.d.ts.map +1 -1
- package/dist/esm/models/components/image.js +7 -4
- package/dist/esm/models/components/image.js.map +1 -1
- package/dist/esm/models/components/imageregister.d.ts +30 -0
- package/dist/esm/models/components/imageregister.d.ts.map +1 -0
- package/dist/esm/models/components/imageregister.js +24 -0
- package/dist/esm/models/components/imageregister.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +9 -2
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +9 -2
- 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/servingorgdeletionrequest.d.ts +27 -0
- package/dist/esm/models/components/servingorgdeletionrequest.d.ts.map +1 -0
- package/dist/esm/models/components/servingorgdeletionrequest.js +35 -0
- package/dist/esm/models/components/servingorgdeletionrequest.js.map +1 -0
- package/dist/esm/models/components/servingorgteardown.d.ts +40 -0
- package/dist/esm/models/components/servingorgteardown.d.ts.map +1 -0
- package/dist/esm/models/components/servingorgteardown.js +53 -0
- package/dist/esm/models/components/servingorgteardown.js.map +1 -0
- 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/deleteservingorganization.d.ts +25 -0
- package/dist/esm/models/operations/deleteservingorganization.d.ts.map +1 -0
- package/dist/esm/models/operations/deleteservingorganization.js +38 -0
- package/dist/esm/models/operations/deleteservingorganization.js.map +1 -0
- package/dist/esm/models/operations/getservingorganizationdeletion.d.ts +22 -0
- package/dist/esm/models/operations/getservingorganizationdeletion.d.ts.map +1 -0
- package/dist/esm/models/operations/getservingorganizationdeletion.js +33 -0
- package/dist/esm/models/operations/getservingorganizationdeletion.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 +6 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +6 -1
- 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/registerimage.d.ts +23 -0
- package/dist/esm/models/operations/registerimage.d.ts.map +1 -0
- package/dist/esm/models/operations/registerimage.js +34 -0
- package/dist/esm/models/operations/registerimage.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 +6 -1
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +6 -1
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/servingImagesRegister.d.ts +30 -0
- package/dist/esm/react-query/servingImagesRegister.d.ts.map +1 -0
- package/dist/esm/react-query/servingImagesRegister.js +42 -0
- package/dist/esm/react-query/servingImagesRegister.js.map +1 -0
- package/dist/esm/react-query/servingTenantsDeleteOrganization.d.ts +30 -0
- package/dist/esm/react-query/servingTenantsDeleteOrganization.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsDeleteOrganization.js +42 -0
- package/dist/esm/react-query/servingTenantsDeleteOrganization.js.map +1 -0
- 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/servingTenantsGetOrganizationDeletion.core.d.ts +15 -0
- package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.core.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.core.js +37 -0
- package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.core.js.map +1 -0
- package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.d.ts +39 -0
- package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.d.ts.map +1 -0
- package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.js +55 -0
- package/dist/esm/react-query/servingTenantsGetOrganizationDeletion.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/sdkimages.d.ts +3 -3
- package/dist/esm/sdk/sdkimages.d.ts.map +1 -1
- package/dist/esm/sdk/sdkimages.js +5 -5
- package/dist/esm/sdk/sdkimages.js.map +1 -1
- 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 +41 -0
- package/dist/esm/sdk/tenants.d.ts.map +1 -0
- package/dist/esm/sdk/tenants.js +58 -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/servingDeploymentsRollback.ts +1 -0
- package/src/funcs/servingDeploymentsUpdate.ts +3 -2
- package/src/funcs/servingDeploymentsUpdateScaling.ts +4 -1
- package/src/funcs/{servingImagesBuild.ts → servingImagesRegister.ts} +10 -10
- package/src/funcs/servingModelsDelete.ts +1 -1
- package/src/funcs/servingSecretsDelete.ts +1 -1
- package/src/funcs/servingTenantsDeleteOrganization.ts +203 -0
- package/src/funcs/servingTenantsGet.ts +196 -0
- package/src/funcs/servingTenantsGetOrganizationDeletion.ts +197 -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 +13 -3
- package/src/mcp-server/tools/servingImagesRegister.ts +37 -0
- package/src/mcp-server/tools/servingTenantsDeleteOrganization.ts +39 -0
- package/src/mcp-server/tools/{servingImagesBuild.ts → servingTenantsGet.ts} +7 -7
- package/src/mcp-server/tools/servingTenantsGetOrganizationDeletion.ts +39 -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 +58 -12
- package/src/models/components/deploymentscalingcreate.ts +90 -0
- package/src/models/components/deploymentscalingupdate.ts +87 -0
- package/src/models/components/deploymentupdate.ts +28 -0
- package/src/models/components/image.ts +18 -13
- package/src/models/components/imageregister.ts +64 -0
- package/src/models/components/index.ts +9 -2
- package/src/models/components/pageservingtenant.ts +74 -0
- package/src/models/components/replica.ts +17 -0
- package/src/models/components/servingorgdeletionrequest.ts +76 -0
- package/src/models/components/servingorgteardown.ts +109 -0
- package/src/models/components/servingtenant.ts +85 -0
- package/src/models/components/servingtenantset.ts +54 -0
- package/src/models/operations/deleteservingorganization.ts +79 -0
- package/src/models/operations/getservingorganizationdeletion.ts +72 -0
- package/src/models/operations/getservingtenant.ts +69 -0
- package/src/models/operations/index.ts +6 -1
- package/src/models/operations/listservingtenants.ts +71 -0
- package/src/models/operations/{buildimage.ts → registerimage.ts} +20 -20
- package/src/models/operations/setservingtenant.ts +76 -0
- package/src/models/operations/updatescaling.ts +6 -6
- package/src/react-query/index.ts +6 -1
- package/src/react-query/servingImagesRegister.ts +112 -0
- package/src/react-query/servingTenantsDeleteOrganization.ts +113 -0
- package/src/react-query/servingTenantsGet.core.ts +76 -0
- package/src/react-query/servingTenantsGet.ts +141 -0
- package/src/react-query/servingTenantsGetOrganizationDeletion.core.ts +83 -0
- package/src/react-query/servingTenantsGetOrganizationDeletion.ts +151 -0
- package/src/react-query/servingTenantsList.core.ts +81 -0
- package/src/react-query/servingTenantsList.ts +148 -0
- package/src/react-query/{servingImagesBuild.ts → servingTenantsSet.ts} +24 -24
- package/src/sdk/sdkimages.ts +6 -6
- package/src/sdk/serving.ts +6 -0
- package/src/sdk/tenants.ts +100 -0
- package/dist/commonjs/funcs/servingImagesBuild.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingImagesBuild.d.ts +0 -8
- package/dist/commonjs/models/components/imagebuild.d.ts +0 -26
- package/dist/commonjs/models/components/imagebuild.d.ts.map +0 -1
- package/dist/commonjs/models/components/imagebuild.js.map +0 -1
- package/dist/commonjs/models/components/imagespec.d.ts +0 -40
- package/dist/commonjs/models/components/imagespec.d.ts.map +0 -1
- package/dist/commonjs/models/components/imagespec.js.map +0 -1
- package/dist/commonjs/models/operations/buildimage.d.ts +0 -23
- package/dist/commonjs/models/operations/buildimage.d.ts.map +0 -1
- package/dist/commonjs/models/operations/buildimage.js.map +0 -1
- package/dist/commonjs/react-query/servingImagesBuild.d.ts +0 -30
- package/dist/commonjs/react-query/servingImagesBuild.d.ts.map +0 -1
- package/dist/commonjs/react-query/servingImagesBuild.js +0 -47
- package/dist/commonjs/react-query/servingImagesBuild.js.map +0 -1
- package/dist/esm/funcs/servingImagesBuild.js.map +0 -1
- package/dist/esm/mcp-server/tools/servingImagesBuild.d.ts +0 -8
- package/dist/esm/models/components/imagebuild.d.ts +0 -26
- package/dist/esm/models/components/imagebuild.d.ts.map +0 -1
- package/dist/esm/models/components/imagebuild.js +0 -23
- package/dist/esm/models/components/imagebuild.js.map +0 -1
- package/dist/esm/models/components/imagespec.d.ts +0 -40
- package/dist/esm/models/components/imagespec.d.ts.map +0 -1
- package/dist/esm/models/components/imagespec.js +0 -45
- package/dist/esm/models/components/imagespec.js.map +0 -1
- package/dist/esm/models/operations/buildimage.d.ts +0 -23
- package/dist/esm/models/operations/buildimage.d.ts.map +0 -1
- package/dist/esm/models/operations/buildimage.js +0 -34
- package/dist/esm/models/operations/buildimage.js.map +0 -1
- package/dist/esm/react-query/servingImagesBuild.d.ts +0 -30
- package/dist/esm/react-query/servingImagesBuild.d.ts.map +0 -1
- package/dist/esm/react-query/servingImagesBuild.js +0 -42
- package/dist/esm/react-query/servingImagesBuild.js.map +0 -1
- package/src/models/components/imagebuild.ts +0 -63
- package/src/models/components/imagespec.ts +0 -91
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.7",
|
|
52880
52880
|
genVersion: "2.918.4",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.51.7 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,60 @@ 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
|
+
image_id: nullableType(stringType()).optional(),
|
|
63571
|
+
max_usd_hr: numberType(),
|
|
63515
63572
|
model: stringType(),
|
|
63516
63573
|
name: stringType(),
|
|
63517
|
-
|
|
63574
|
+
port: numberType().int().optional(),
|
|
63575
|
+
runtime: stringType().optional(),
|
|
63576
|
+
scaling: DeploymentScalingCreate$inboundSchema.optional(),
|
|
63518
63577
|
secrets: arrayType(stringType()).optional(),
|
|
63519
63578
|
strategy: DeployStrategy$inboundSchema.optional(),
|
|
63520
63579
|
volume: nullableType(stringType()).optional()
|
|
63521
63580
|
}).transform((v2) => {
|
|
63522
63581
|
return remap(v2, {
|
|
63582
|
+
api_format: "apiFormat",
|
|
63523
63583
|
endpoint_auth: "endpointAuth",
|
|
63524
|
-
engine_args: "engineArgs"
|
|
63584
|
+
engine_args: "engineArgs",
|
|
63585
|
+
image_id: "imageId",
|
|
63586
|
+
max_usd_hr: "maxUsdHr"
|
|
63525
63587
|
});
|
|
63526
63588
|
});
|
|
63527
63589
|
DeploymentCreate$outboundSchema = objectType({
|
|
63528
63590
|
accelerator: AcceleratorSpec$outboundSchema,
|
|
63591
|
+
apiFormat: DeploymentAPIFormat$outboundSchema.optional(),
|
|
63529
63592
|
endpointAuth: booleanType().default(true),
|
|
63530
63593
|
engine: Engine$outboundSchema.optional(),
|
|
63531
63594
|
engineArgs: arrayType(stringType()).optional(),
|
|
63532
63595
|
image: nullableType(stringType()).optional(),
|
|
63596
|
+
imageId: nullableType(stringType()).optional(),
|
|
63597
|
+
maxUsdHr: numberType(),
|
|
63533
63598
|
model: stringType(),
|
|
63534
63599
|
name: stringType(),
|
|
63535
|
-
|
|
63600
|
+
port: numberType().int().optional(),
|
|
63601
|
+
runtime: stringType().optional(),
|
|
63602
|
+
scaling: DeploymentScalingCreate$outboundSchema.optional(),
|
|
63536
63603
|
secrets: arrayType(stringType()).optional(),
|
|
63537
63604
|
strategy: DeployStrategy$outboundSchema.optional(),
|
|
63538
63605
|
volume: nullableType(stringType()).optional()
|
|
63539
63606
|
}).transform((v2) => {
|
|
63540
63607
|
return remap(v2, {
|
|
63608
|
+
apiFormat: "api_format",
|
|
63541
63609
|
endpointAuth: "endpoint_auth",
|
|
63542
|
-
engineArgs: "engine_args"
|
|
63610
|
+
engineArgs: "engine_args",
|
|
63611
|
+
imageId: "image_id",
|
|
63612
|
+
maxUsdHr: "max_usd_hr"
|
|
63543
63613
|
});
|
|
63544
63614
|
});
|
|
63545
63615
|
});
|
|
@@ -63559,32 +63629,82 @@ var init_deploymentrollbackrequest = __esm(() => {
|
|
|
63559
63629
|
});
|
|
63560
63630
|
});
|
|
63561
63631
|
|
|
63632
|
+
// src/models/components/deploymentscalingupdate.ts
|
|
63633
|
+
var DeploymentScalingUpdate$inboundSchema, DeploymentScalingUpdate$outboundSchema;
|
|
63634
|
+
var init_deploymentscalingupdate = __esm(() => {
|
|
63635
|
+
init_esm();
|
|
63636
|
+
init_primitives();
|
|
63637
|
+
DeploymentScalingUpdate$inboundSchema = objectType({
|
|
63638
|
+
buffer_containers: numberType().int().optional(),
|
|
63639
|
+
max_concurrent_inputs: numberType().int().optional(),
|
|
63640
|
+
max_containers: numberType().int().optional(),
|
|
63641
|
+
min_containers: numberType().int().optional(),
|
|
63642
|
+
scaledown_window_s: numberType().int().optional()
|
|
63643
|
+
}).transform((v2) => {
|
|
63644
|
+
return remap(v2, {
|
|
63645
|
+
buffer_containers: "bufferContainers",
|
|
63646
|
+
max_concurrent_inputs: "maxConcurrentInputs",
|
|
63647
|
+
max_containers: "maxContainers",
|
|
63648
|
+
min_containers: "minContainers",
|
|
63649
|
+
scaledown_window_s: "scaledownWindowS"
|
|
63650
|
+
});
|
|
63651
|
+
});
|
|
63652
|
+
DeploymentScalingUpdate$outboundSchema = objectType({
|
|
63653
|
+
bufferContainers: numberType().int().optional(),
|
|
63654
|
+
maxConcurrentInputs: numberType().int().optional(),
|
|
63655
|
+
maxContainers: numberType().int().optional(),
|
|
63656
|
+
minContainers: numberType().int().optional(),
|
|
63657
|
+
scaledownWindowS: numberType().int().optional()
|
|
63658
|
+
}).transform((v2) => {
|
|
63659
|
+
return remap(v2, {
|
|
63660
|
+
bufferContainers: "buffer_containers",
|
|
63661
|
+
maxConcurrentInputs: "max_concurrent_inputs",
|
|
63662
|
+
maxContainers: "max_containers",
|
|
63663
|
+
minContainers: "min_containers",
|
|
63664
|
+
scaledownWindowS: "scaledown_window_s"
|
|
63665
|
+
});
|
|
63666
|
+
});
|
|
63667
|
+
});
|
|
63668
|
+
|
|
63562
63669
|
// src/models/components/deploymentupdate.ts
|
|
63563
63670
|
var DeploymentUpdate$inboundSchema, DeploymentUpdate$outboundSchema;
|
|
63564
63671
|
var init_deploymentupdate = __esm(() => {
|
|
63565
63672
|
init_esm();
|
|
63566
63673
|
init_primitives();
|
|
63674
|
+
init_deploymentapiformat();
|
|
63567
63675
|
init_deploystrategy();
|
|
63568
63676
|
DeploymentUpdate$inboundSchema = objectType({
|
|
63677
|
+
api_format: nullableType(DeploymentAPIFormat$inboundSchema).optional(),
|
|
63569
63678
|
engine_args: nullableType(arrayType(stringType())).optional(),
|
|
63570
63679
|
image: nullableType(stringType()).optional(),
|
|
63680
|
+
image_id: nullableType(stringType()).optional(),
|
|
63571
63681
|
model: nullableType(stringType()).optional(),
|
|
63682
|
+
port: nullableType(numberType().int()).optional(),
|
|
63683
|
+
runtime: nullableType(stringType()).optional(),
|
|
63572
63684
|
secrets: nullableType(arrayType(stringType())).optional(),
|
|
63573
63685
|
strategy: DeployStrategy$inboundSchema.optional()
|
|
63574
63686
|
}).transform((v2) => {
|
|
63575
63687
|
return remap(v2, {
|
|
63576
|
-
|
|
63688
|
+
api_format: "apiFormat",
|
|
63689
|
+
engine_args: "engineArgs",
|
|
63690
|
+
image_id: "imageId"
|
|
63577
63691
|
});
|
|
63578
63692
|
});
|
|
63579
63693
|
DeploymentUpdate$outboundSchema = objectType({
|
|
63694
|
+
apiFormat: nullableType(DeploymentAPIFormat$outboundSchema).optional(),
|
|
63580
63695
|
engineArgs: nullableType(arrayType(stringType())).optional(),
|
|
63581
63696
|
image: nullableType(stringType()).optional(),
|
|
63697
|
+
imageId: nullableType(stringType()).optional(),
|
|
63582
63698
|
model: nullableType(stringType()).optional(),
|
|
63699
|
+
port: nullableType(numberType().int()).optional(),
|
|
63700
|
+
runtime: nullableType(stringType()).optional(),
|
|
63583
63701
|
secrets: nullableType(arrayType(stringType())).optional(),
|
|
63584
63702
|
strategy: DeployStrategy$outboundSchema.optional()
|
|
63585
63703
|
}).transform((v2) => {
|
|
63586
63704
|
return remap(v2, {
|
|
63587
|
-
|
|
63705
|
+
apiFormat: "api_format",
|
|
63706
|
+
engineArgs: "engine_args",
|
|
63707
|
+
imageId: "image_id"
|
|
63588
63708
|
});
|
|
63589
63709
|
});
|
|
63590
63710
|
});
|
|
@@ -65777,51 +65897,13 @@ var init_hostedtooldefinition = __esm(() => {
|
|
|
65777
65897
|
});
|
|
65778
65898
|
});
|
|
65779
65899
|
|
|
65780
|
-
// src/models/components/imagespec.ts
|
|
65781
|
-
var ImageSpec$inboundSchema, ImageSpec$outboundSchema;
|
|
65782
|
-
var init_imagespec = __esm(() => {
|
|
65783
|
-
init_esm();
|
|
65784
|
-
init_primitives();
|
|
65785
|
-
ImageSpec$inboundSchema = objectType({
|
|
65786
|
-
apt_packages: arrayType(stringType()).optional(),
|
|
65787
|
-
base_image: stringType().default("nvidia/cuda:12.9.0-devel-ubuntu22.04"),
|
|
65788
|
-
commands: arrayType(stringType()).optional(),
|
|
65789
|
-
env: recordType(stringType()).optional(),
|
|
65790
|
-
pip_packages: arrayType(stringType()).optional(),
|
|
65791
|
-
python_version: stringType().default("3.12")
|
|
65792
|
-
}).transform((v2) => {
|
|
65793
|
-
return remap(v2, {
|
|
65794
|
-
apt_packages: "aptPackages",
|
|
65795
|
-
base_image: "baseImage",
|
|
65796
|
-
pip_packages: "pipPackages",
|
|
65797
|
-
python_version: "pythonVersion"
|
|
65798
|
-
});
|
|
65799
|
-
});
|
|
65800
|
-
ImageSpec$outboundSchema = objectType({
|
|
65801
|
-
aptPackages: arrayType(stringType()).optional(),
|
|
65802
|
-
baseImage: stringType().default("nvidia/cuda:12.9.0-devel-ubuntu22.04"),
|
|
65803
|
-
commands: arrayType(stringType()).optional(),
|
|
65804
|
-
env: recordType(stringType()).optional(),
|
|
65805
|
-
pipPackages: arrayType(stringType()).optional(),
|
|
65806
|
-
pythonVersion: stringType().default("3.12")
|
|
65807
|
-
}).transform((v2) => {
|
|
65808
|
-
return remap(v2, {
|
|
65809
|
-
aptPackages: "apt_packages",
|
|
65810
|
-
baseImage: "base_image",
|
|
65811
|
-
pipPackages: "pip_packages",
|
|
65812
|
-
pythonVersion: "python_version"
|
|
65813
|
-
});
|
|
65814
|
-
});
|
|
65815
|
-
});
|
|
65816
|
-
|
|
65817
65900
|
// src/models/components/image.ts
|
|
65818
65901
|
var ImageStatus, ImageStatus$inboundSchema, ImageStatus$outboundSchema, Image$inboundSchema, Image$outboundSchema;
|
|
65819
65902
|
var init_image = __esm(() => {
|
|
65820
65903
|
init_esm();
|
|
65821
65904
|
init_primitives();
|
|
65822
|
-
init_imagespec();
|
|
65823
65905
|
ImageStatus = {
|
|
65824
|
-
|
|
65906
|
+
Pending: "pending",
|
|
65825
65907
|
Ready: "ready",
|
|
65826
65908
|
Failed: "failed"
|
|
65827
65909
|
};
|
|
@@ -65829,9 +65911,11 @@ var init_image = __esm(() => {
|
|
|
65829
65911
|
ImageStatus$outboundSchema = ImageStatus$inboundSchema;
|
|
65830
65912
|
Image$inboundSchema = objectType({
|
|
65831
65913
|
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
65914
|
+
digest: stringType(),
|
|
65915
|
+
error: nullableType(stringType()),
|
|
65832
65916
|
id: stringType(),
|
|
65833
65917
|
name: stringType(),
|
|
65834
|
-
|
|
65918
|
+
source: stringType(),
|
|
65835
65919
|
status: ImageStatus$inboundSchema
|
|
65836
65920
|
}).transform((v2) => {
|
|
65837
65921
|
return remap(v2, {
|
|
@@ -65840,9 +65924,11 @@ var init_image = __esm(() => {
|
|
|
65840
65924
|
});
|
|
65841
65925
|
Image$outboundSchema = objectType({
|
|
65842
65926
|
createdAt: dateType().transform((v2) => v2.toISOString()),
|
|
65927
|
+
digest: stringType(),
|
|
65928
|
+
error: nullableType(stringType()),
|
|
65843
65929
|
id: stringType(),
|
|
65844
65930
|
name: stringType(),
|
|
65845
|
-
|
|
65931
|
+
source: stringType(),
|
|
65846
65932
|
status: ImageStatus$outboundSchema
|
|
65847
65933
|
}).transform((v2) => {
|
|
65848
65934
|
return remap(v2, {
|
|
@@ -65851,21 +65937,6 @@ var init_image = __esm(() => {
|
|
|
65851
65937
|
});
|
|
65852
65938
|
});
|
|
65853
65939
|
|
|
65854
|
-
// src/models/components/imagebuild.ts
|
|
65855
|
-
var ImageBuild$inboundSchema, ImageBuild$outboundSchema;
|
|
65856
|
-
var init_imagebuild = __esm(() => {
|
|
65857
|
-
init_esm();
|
|
65858
|
-
init_imagespec();
|
|
65859
|
-
ImageBuild$inboundSchema = objectType({
|
|
65860
|
-
name: stringType(),
|
|
65861
|
-
spec: ImageSpec$inboundSchema
|
|
65862
|
-
});
|
|
65863
|
-
ImageBuild$outboundSchema = objectType({
|
|
65864
|
-
name: stringType(),
|
|
65865
|
-
spec: ImageSpec$outboundSchema
|
|
65866
|
-
});
|
|
65867
|
-
});
|
|
65868
|
-
|
|
65869
65940
|
// src/models/components/imagegenerationcallwithid.ts
|
|
65870
65941
|
var ImageGenerationCallWithId$inboundSchema, ImageGenerationCallWithId$outboundSchema;
|
|
65871
65942
|
var init_imagegenerationcallwithid = __esm(() => {
|
|
@@ -66148,6 +66219,22 @@ var init_imagegenerationtooldefinition = __esm(() => {
|
|
|
66148
66219
|
});
|
|
66149
66220
|
});
|
|
66150
66221
|
|
|
66222
|
+
// src/models/components/imageregister.ts
|
|
66223
|
+
var ImageRegister$inboundSchema, ImageRegister$outboundSchema;
|
|
66224
|
+
var init_imageregister = __esm(() => {
|
|
66225
|
+
init_esm();
|
|
66226
|
+
ImageRegister$inboundSchema = objectType({
|
|
66227
|
+
digest: nullableType(stringType()).optional(),
|
|
66228
|
+
name: stringType(),
|
|
66229
|
+
source: stringType()
|
|
66230
|
+
});
|
|
66231
|
+
ImageRegister$outboundSchema = objectType({
|
|
66232
|
+
digest: nullableType(stringType()).optional(),
|
|
66233
|
+
name: stringType(),
|
|
66234
|
+
source: stringType()
|
|
66235
|
+
});
|
|
66236
|
+
});
|
|
66237
|
+
|
|
66151
66238
|
// src/models/components/importhistoricalevalresultsrequest.ts
|
|
66152
66239
|
var ImportHistoricalEvalResultsRequestSource$inboundSchema, ImportHistoricalEvalResultsRequestSource$outboundSchema, ImportHistoricalEvalResultsRequest$inboundSchema, ImportHistoricalEvalResultsRequest$outboundSchema;
|
|
66153
66240
|
var init_importhistoricalevalresultsrequest = __esm(() => {
|
|
@@ -69773,10 +69860,14 @@ var init_replica = __esm(() => {
|
|
|
69773
69860
|
accelerator: AcceleratorSpec$inboundSchema,
|
|
69774
69861
|
id: stringType(),
|
|
69775
69862
|
node: nullableType(stringType()).optional(),
|
|
69863
|
+
price_usd_hr: numberType().optional(),
|
|
69864
|
+
provider: stringType().optional(),
|
|
69865
|
+
region: stringType().optional(),
|
|
69776
69866
|
started_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
69777
69867
|
status: stringType()
|
|
69778
69868
|
}).transform((v2) => {
|
|
69779
69869
|
return remap(v2, {
|
|
69870
|
+
price_usd_hr: "priceUsdHr",
|
|
69780
69871
|
started_at: "startedAt"
|
|
69781
69872
|
});
|
|
69782
69873
|
});
|
|
@@ -69784,10 +69875,14 @@ var init_replica = __esm(() => {
|
|
|
69784
69875
|
accelerator: AcceleratorSpec$outboundSchema,
|
|
69785
69876
|
id: stringType(),
|
|
69786
69877
|
node: nullableType(stringType()).optional(),
|
|
69878
|
+
priceUsdHr: numberType().optional(),
|
|
69879
|
+
provider: stringType().optional(),
|
|
69880
|
+
region: stringType().optional(),
|
|
69787
69881
|
startedAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
69788
69882
|
status: stringType()
|
|
69789
69883
|
}).transform((v2) => {
|
|
69790
69884
|
return remap(v2, {
|
|
69885
|
+
priceUsdHr: "price_usd_hr",
|
|
69791
69886
|
startedAt: "started_at"
|
|
69792
69887
|
});
|
|
69793
69888
|
});
|
|
@@ -69934,6 +70029,67 @@ var init_pagesecret = __esm(() => {
|
|
|
69934
70029
|
});
|
|
69935
70030
|
});
|
|
69936
70031
|
|
|
70032
|
+
// src/models/components/servingtenant.ts
|
|
70033
|
+
var ServingTenant$inboundSchema, ServingTenant$outboundSchema;
|
|
70034
|
+
var init_servingtenant = __esm(() => {
|
|
70035
|
+
init_esm();
|
|
70036
|
+
init_primitives();
|
|
70037
|
+
ServingTenant$inboundSchema = objectType({
|
|
70038
|
+
disabled_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
70039
|
+
enabled: booleanType(),
|
|
70040
|
+
enabled_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
70041
|
+
enabled_by: nullableType(stringType()),
|
|
70042
|
+
org_id: stringType()
|
|
70043
|
+
}).transform((v2) => {
|
|
70044
|
+
return remap(v2, {
|
|
70045
|
+
disabled_at: "disabledAt",
|
|
70046
|
+
enabled_at: "enabledAt",
|
|
70047
|
+
enabled_by: "enabledBy",
|
|
70048
|
+
org_id: "orgId"
|
|
70049
|
+
});
|
|
70050
|
+
});
|
|
70051
|
+
ServingTenant$outboundSchema = objectType({
|
|
70052
|
+
disabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
70053
|
+
enabled: booleanType(),
|
|
70054
|
+
enabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
70055
|
+
enabledBy: nullableType(stringType()),
|
|
70056
|
+
orgId: stringType()
|
|
70057
|
+
}).transform((v2) => {
|
|
70058
|
+
return remap(v2, {
|
|
70059
|
+
disabledAt: "disabled_at",
|
|
70060
|
+
enabledAt: "enabled_at",
|
|
70061
|
+
enabledBy: "enabled_by",
|
|
70062
|
+
orgId: "org_id"
|
|
70063
|
+
});
|
|
70064
|
+
});
|
|
70065
|
+
});
|
|
70066
|
+
|
|
70067
|
+
// src/models/components/pageservingtenant.ts
|
|
70068
|
+
var PageServingTenant$inboundSchema, PageServingTenant$outboundSchema;
|
|
70069
|
+
var init_pageservingtenant = __esm(() => {
|
|
70070
|
+
init_esm();
|
|
70071
|
+
init_primitives();
|
|
70072
|
+
init_servingtenant();
|
|
70073
|
+
PageServingTenant$inboundSchema = objectType({
|
|
70074
|
+
data: arrayType(ServingTenant$inboundSchema),
|
|
70075
|
+
next_cursor: nullableType(stringType()).optional(),
|
|
70076
|
+
total: numberType().int()
|
|
70077
|
+
}).transform((v2) => {
|
|
70078
|
+
return remap(v2, {
|
|
70079
|
+
next_cursor: "nextCursor"
|
|
70080
|
+
});
|
|
70081
|
+
});
|
|
70082
|
+
PageServingTenant$outboundSchema = objectType({
|
|
70083
|
+
data: arrayType(ServingTenant$outboundSchema),
|
|
70084
|
+
nextCursor: nullableType(stringType()).optional(),
|
|
70085
|
+
total: numberType().int()
|
|
70086
|
+
}).transform((v2) => {
|
|
70087
|
+
return remap(v2, {
|
|
70088
|
+
nextCursor: "next_cursor"
|
|
70089
|
+
});
|
|
70090
|
+
});
|
|
70091
|
+
});
|
|
70092
|
+
|
|
69937
70093
|
// src/models/components/volume.ts
|
|
69938
70094
|
var Volume$inboundSchema, Volume$outboundSchema;
|
|
69939
70095
|
var init_volume = __esm(() => {
|
|
@@ -74011,6 +74167,90 @@ var init_security2 = __esm(() => {
|
|
|
74011
74167
|
});
|
|
74012
74168
|
});
|
|
74013
74169
|
|
|
74170
|
+
// src/models/components/servingorgdeletionrequest.ts
|
|
74171
|
+
var ServingOrgDeletionRequest$inboundSchema, ServingOrgDeletionRequest$outboundSchema;
|
|
74172
|
+
var init_servingorgdeletionrequest = __esm(() => {
|
|
74173
|
+
init_esm();
|
|
74174
|
+
init_primitives();
|
|
74175
|
+
ServingOrgDeletionRequest$inboundSchema = objectType({
|
|
74176
|
+
deleted_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
74177
|
+
event_id: stringType(),
|
|
74178
|
+
reason: nullableType(stringType()).optional()
|
|
74179
|
+
}).transform((v2) => {
|
|
74180
|
+
return remap(v2, {
|
|
74181
|
+
deleted_at: "deletedAt",
|
|
74182
|
+
event_id: "eventId"
|
|
74183
|
+
});
|
|
74184
|
+
});
|
|
74185
|
+
ServingOrgDeletionRequest$outboundSchema = objectType({
|
|
74186
|
+
deletedAt: dateType().transform((v2) => v2.toISOString()),
|
|
74187
|
+
eventId: stringType(),
|
|
74188
|
+
reason: nullableType(stringType()).optional()
|
|
74189
|
+
}).transform((v2) => {
|
|
74190
|
+
return remap(v2, {
|
|
74191
|
+
deletedAt: "deleted_at",
|
|
74192
|
+
eventId: "event_id"
|
|
74193
|
+
});
|
|
74194
|
+
});
|
|
74195
|
+
});
|
|
74196
|
+
|
|
74197
|
+
// src/models/components/servingorgteardown.ts
|
|
74198
|
+
var ServingOrgTeardown$inboundSchema, ServingOrgTeardown$outboundSchema;
|
|
74199
|
+
var init_servingorgteardown = __esm(() => {
|
|
74200
|
+
init_esm();
|
|
74201
|
+
init_primitives();
|
|
74202
|
+
ServingOrgTeardown$inboundSchema = objectType({
|
|
74203
|
+
completed_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
74204
|
+
deleted_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
74205
|
+
org_id: stringType(),
|
|
74206
|
+
reason: nullableType(stringType()),
|
|
74207
|
+
source_event_id: stringType(),
|
|
74208
|
+
started_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
74209
|
+
state: stringType(),
|
|
74210
|
+
tombstoned_deployments: numberType().int()
|
|
74211
|
+
}).transform((v2) => {
|
|
74212
|
+
return remap(v2, {
|
|
74213
|
+
completed_at: "completedAt",
|
|
74214
|
+
deleted_at: "deletedAt",
|
|
74215
|
+
org_id: "orgId",
|
|
74216
|
+
source_event_id: "sourceEventId",
|
|
74217
|
+
started_at: "startedAt",
|
|
74218
|
+
tombstoned_deployments: "tombstonedDeployments"
|
|
74219
|
+
});
|
|
74220
|
+
});
|
|
74221
|
+
ServingOrgTeardown$outboundSchema = objectType({
|
|
74222
|
+
completedAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
74223
|
+
deletedAt: dateType().transform((v2) => v2.toISOString()),
|
|
74224
|
+
orgId: stringType(),
|
|
74225
|
+
reason: nullableType(stringType()),
|
|
74226
|
+
sourceEventId: stringType(),
|
|
74227
|
+
startedAt: dateType().transform((v2) => v2.toISOString()),
|
|
74228
|
+
state: stringType(),
|
|
74229
|
+
tombstonedDeployments: numberType().int()
|
|
74230
|
+
}).transform((v2) => {
|
|
74231
|
+
return remap(v2, {
|
|
74232
|
+
completedAt: "completed_at",
|
|
74233
|
+
deletedAt: "deleted_at",
|
|
74234
|
+
orgId: "org_id",
|
|
74235
|
+
sourceEventId: "source_event_id",
|
|
74236
|
+
startedAt: "started_at",
|
|
74237
|
+
tombstonedDeployments: "tombstoned_deployments"
|
|
74238
|
+
});
|
|
74239
|
+
});
|
|
74240
|
+
});
|
|
74241
|
+
|
|
74242
|
+
// src/models/components/servingtenantset.ts
|
|
74243
|
+
var ServingTenantSet$inboundSchema, ServingTenantSet$outboundSchema;
|
|
74244
|
+
var init_servingtenantset = __esm(() => {
|
|
74245
|
+
init_esm();
|
|
74246
|
+
ServingTenantSet$inboundSchema = objectType({
|
|
74247
|
+
enabled: booleanType()
|
|
74248
|
+
});
|
|
74249
|
+
ServingTenantSet$outboundSchema = objectType({
|
|
74250
|
+
enabled: booleanType()
|
|
74251
|
+
});
|
|
74252
|
+
});
|
|
74253
|
+
|
|
74014
74254
|
// src/models/components/servingvalidationerror.ts
|
|
74015
74255
|
var Context$inboundSchema, Context$outboundSchema, ServingValidationErrorLoc$inboundSchema, ServingValidationErrorLoc$outboundSchema, ServingValidationError$inboundSchema, ServingValidationError$outboundSchema;
|
|
74016
74256
|
var init_servingvalidationerror = __esm(() => {
|
|
@@ -76547,9 +76787,12 @@ var init_components = __esm(() => {
|
|
|
76547
76787
|
init_deletepromptresponse();
|
|
76548
76788
|
init_deleteresponseobject();
|
|
76549
76789
|
init_deployment();
|
|
76790
|
+
init_deploymentapiformat();
|
|
76550
76791
|
init_deploymentcreate();
|
|
76551
76792
|
init_deploymentendpoint();
|
|
76552
76793
|
init_deploymentrollbackrequest();
|
|
76794
|
+
init_deploymentscalingcreate();
|
|
76795
|
+
init_deploymentscalingupdate();
|
|
76553
76796
|
init_deploymentupdate();
|
|
76554
76797
|
init_deploystrategy();
|
|
76555
76798
|
init_doubleclickaction();
|
|
@@ -76639,13 +76882,12 @@ var init_components = __esm(() => {
|
|
|
76639
76882
|
init_hostedtoolchoice();
|
|
76640
76883
|
init_hostedtooldefinition();
|
|
76641
76884
|
init_image();
|
|
76642
|
-
init_imagebuild();
|
|
76643
76885
|
init_imagegenerationcall();
|
|
76644
76886
|
init_imagegenerationcallwithid();
|
|
76645
76887
|
init_imagegenerationrequest();
|
|
76646
76888
|
init_imagegenerationresponse();
|
|
76647
76889
|
init_imagegenerationtooldefinition();
|
|
76648
|
-
|
|
76890
|
+
init_imageregister();
|
|
76649
76891
|
init_importhistoricalevalresultsrequest();
|
|
76650
76892
|
init_incompletedetails();
|
|
76651
76893
|
init_inputaudio();
|
|
@@ -76754,6 +76996,7 @@ var init_components = __esm(() => {
|
|
|
76754
76996
|
init_pagereplica();
|
|
76755
76997
|
init_pagerevision();
|
|
76756
76998
|
init_pagesecret();
|
|
76999
|
+
init_pageservingtenant();
|
|
76757
77000
|
init_pagevolume();
|
|
76758
77001
|
init_pendingsafetycheck();
|
|
76759
77002
|
init_preconfiguredskill();
|
|
@@ -76881,6 +77124,10 @@ var init_components = __esm(() => {
|
|
|
76881
77124
|
init_secret();
|
|
76882
77125
|
init_secretcreate();
|
|
76883
77126
|
init_security2();
|
|
77127
|
+
init_servingorgdeletionrequest();
|
|
77128
|
+
init_servingorgteardown();
|
|
77129
|
+
init_servingtenant();
|
|
77130
|
+
init_servingtenantset();
|
|
76884
77131
|
init_servingvalidationerror();
|
|
76885
77132
|
init_sessionkind();
|
|
76886
77133
|
init_sessionrecord();
|
|
@@ -83012,32 +83259,6 @@ var init_batchgetresponsefeedback = __esm(() => {
|
|
|
83012
83259
|
});
|
|
83013
83260
|
});
|
|
83014
83261
|
|
|
83015
|
-
// src/models/operations/buildimage.ts
|
|
83016
|
-
var BuildImageRequest$inboundSchema, BuildImageRequest$outboundSchema;
|
|
83017
|
-
var init_buildimage = __esm(() => {
|
|
83018
|
-
init_esm();
|
|
83019
|
-
init_primitives();
|
|
83020
|
-
init_components();
|
|
83021
|
-
BuildImageRequest$inboundSchema = objectType({
|
|
83022
|
-
"X-On-Behalf-Of": stringType().optional(),
|
|
83023
|
-
ImageBuild: ImageBuild$inboundSchema
|
|
83024
|
-
}).transform((v2) => {
|
|
83025
|
-
return remap(v2, {
|
|
83026
|
-
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
83027
|
-
ImageBuild: "imageBuild"
|
|
83028
|
-
});
|
|
83029
|
-
});
|
|
83030
|
-
BuildImageRequest$outboundSchema = objectType({
|
|
83031
|
-
xOnBehalfOf: stringType().optional(),
|
|
83032
|
-
imageBuild: ImageBuild$outboundSchema
|
|
83033
|
-
}).transform((v2) => {
|
|
83034
|
-
return remap(v2, {
|
|
83035
|
-
xOnBehalfOf: "X-On-Behalf-Of",
|
|
83036
|
-
imageBuild: "ImageBuild"
|
|
83037
|
-
});
|
|
83038
|
-
});
|
|
83039
|
-
});
|
|
83040
|
-
|
|
83041
83262
|
// src/models/operations/cancelbatch.ts
|
|
83042
83263
|
var CancelBatchRequest$inboundSchema, CancelBatchRequest$outboundSchema;
|
|
83043
83264
|
var init_cancelbatch = __esm(() => {
|
|
@@ -86996,6 +87217,36 @@ var init_deleteserviceaccountapikey2 = __esm(() => {
|
|
|
86996
87217
|
});
|
|
86997
87218
|
});
|
|
86998
87219
|
|
|
87220
|
+
// src/models/operations/deleteservingorganization.ts
|
|
87221
|
+
var DeleteServingOrganizationRequest$inboundSchema, DeleteServingOrganizationRequest$outboundSchema;
|
|
87222
|
+
var init_deleteservingorganization = __esm(() => {
|
|
87223
|
+
init_esm();
|
|
87224
|
+
init_primitives();
|
|
87225
|
+
init_components();
|
|
87226
|
+
DeleteServingOrganizationRequest$inboundSchema = objectType({
|
|
87227
|
+
org_id: stringType(),
|
|
87228
|
+
"X-On-Behalf-Of": stringType().optional(),
|
|
87229
|
+
ServingOrgDeletionRequest: ServingOrgDeletionRequest$inboundSchema
|
|
87230
|
+
}).transform((v2) => {
|
|
87231
|
+
return remap(v2, {
|
|
87232
|
+
org_id: "orgId",
|
|
87233
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
87234
|
+
ServingOrgDeletionRequest: "servingOrgDeletionRequest"
|
|
87235
|
+
});
|
|
87236
|
+
});
|
|
87237
|
+
DeleteServingOrganizationRequest$outboundSchema = objectType({
|
|
87238
|
+
orgId: stringType(),
|
|
87239
|
+
xOnBehalfOf: stringType().optional(),
|
|
87240
|
+
servingOrgDeletionRequest: ServingOrgDeletionRequest$outboundSchema
|
|
87241
|
+
}).transform((v2) => {
|
|
87242
|
+
return remap(v2, {
|
|
87243
|
+
orgId: "org_id",
|
|
87244
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
87245
|
+
servingOrgDeletionRequest: "ServingOrgDeletionRequest"
|
|
87246
|
+
});
|
|
87247
|
+
});
|
|
87248
|
+
});
|
|
87249
|
+
|
|
86999
87250
|
// src/models/operations/deleteskill.ts
|
|
87000
87251
|
var DeleteSkillRequest$inboundSchema, DeleteSkillRequest$outboundSchema;
|
|
87001
87252
|
var init_deleteskill = __esm(() => {
|
|
@@ -90490,6 +90741,56 @@ var init_getservingmodel = __esm(() => {
|
|
|
90490
90741
|
});
|
|
90491
90742
|
});
|
|
90492
90743
|
|
|
90744
|
+
// src/models/operations/getservingorganizationdeletion.ts
|
|
90745
|
+
var GetServingOrganizationDeletionRequest$inboundSchema, GetServingOrganizationDeletionRequest$outboundSchema;
|
|
90746
|
+
var init_getservingorganizationdeletion = __esm(() => {
|
|
90747
|
+
init_esm();
|
|
90748
|
+
init_primitives();
|
|
90749
|
+
GetServingOrganizationDeletionRequest$inboundSchema = objectType({
|
|
90750
|
+
org_id: stringType(),
|
|
90751
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
90752
|
+
}).transform((v2) => {
|
|
90753
|
+
return remap(v2, {
|
|
90754
|
+
org_id: "orgId",
|
|
90755
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
90756
|
+
});
|
|
90757
|
+
});
|
|
90758
|
+
GetServingOrganizationDeletionRequest$outboundSchema = objectType({
|
|
90759
|
+
orgId: stringType(),
|
|
90760
|
+
xOnBehalfOf: stringType().optional()
|
|
90761
|
+
}).transform((v2) => {
|
|
90762
|
+
return remap(v2, {
|
|
90763
|
+
orgId: "org_id",
|
|
90764
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
90765
|
+
});
|
|
90766
|
+
});
|
|
90767
|
+
});
|
|
90768
|
+
|
|
90769
|
+
// src/models/operations/getservingtenant.ts
|
|
90770
|
+
var GetServingTenantRequest$inboundSchema, GetServingTenantRequest$outboundSchema;
|
|
90771
|
+
var init_getservingtenant = __esm(() => {
|
|
90772
|
+
init_esm();
|
|
90773
|
+
init_primitives();
|
|
90774
|
+
GetServingTenantRequest$inboundSchema = objectType({
|
|
90775
|
+
org_id: stringType(),
|
|
90776
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
90777
|
+
}).transform((v2) => {
|
|
90778
|
+
return remap(v2, {
|
|
90779
|
+
org_id: "orgId",
|
|
90780
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
90781
|
+
});
|
|
90782
|
+
});
|
|
90783
|
+
GetServingTenantRequest$outboundSchema = objectType({
|
|
90784
|
+
orgId: stringType(),
|
|
90785
|
+
xOnBehalfOf: stringType().optional()
|
|
90786
|
+
}).transform((v2) => {
|
|
90787
|
+
return remap(v2, {
|
|
90788
|
+
orgId: "org_id",
|
|
90789
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
90790
|
+
});
|
|
90791
|
+
});
|
|
90792
|
+
});
|
|
90793
|
+
|
|
90493
90794
|
// src/models/operations/getsession.ts
|
|
90494
90795
|
var GetSessionRequest$inboundSchema, GetSessionRequest$outboundSchema;
|
|
90495
90796
|
var init_getsession = __esm(() => {
|
|
@@ -93779,6 +94080,31 @@ var init_listservingmodels = __esm(() => {
|
|
|
93779
94080
|
});
|
|
93780
94081
|
});
|
|
93781
94082
|
|
|
94083
|
+
// src/models/operations/listservingtenants.ts
|
|
94084
|
+
var ListServingTenantsRequest$inboundSchema, ListServingTenantsRequest$outboundSchema;
|
|
94085
|
+
var init_listservingtenants = __esm(() => {
|
|
94086
|
+
init_esm();
|
|
94087
|
+
init_primitives();
|
|
94088
|
+
ListServingTenantsRequest$inboundSchema = objectType({
|
|
94089
|
+
cursor: nullableType(stringType()).optional(),
|
|
94090
|
+
limit: numberType().int().default(50),
|
|
94091
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
94092
|
+
}).transform((v2) => {
|
|
94093
|
+
return remap(v2, {
|
|
94094
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
94095
|
+
});
|
|
94096
|
+
});
|
|
94097
|
+
ListServingTenantsRequest$outboundSchema = objectType({
|
|
94098
|
+
cursor: nullableType(stringType()).optional(),
|
|
94099
|
+
limit: numberType().int().default(50),
|
|
94100
|
+
xOnBehalfOf: stringType().optional()
|
|
94101
|
+
}).transform((v2) => {
|
|
94102
|
+
return remap(v2, {
|
|
94103
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
94104
|
+
});
|
|
94105
|
+
});
|
|
94106
|
+
});
|
|
94107
|
+
|
|
93782
94108
|
// src/models/operations/listsessions.ts
|
|
93783
94109
|
var ListSessionsRequest$inboundSchema, ListSessionsRequest$outboundSchema;
|
|
93784
94110
|
var init_listsessions = __esm(() => {
|
|
@@ -94534,6 +94860,32 @@ var init_registerdeployment = __esm(() => {
|
|
|
94534
94860
|
});
|
|
94535
94861
|
});
|
|
94536
94862
|
|
|
94863
|
+
// src/models/operations/registerimage.ts
|
|
94864
|
+
var RegisterImageRequest$inboundSchema, RegisterImageRequest$outboundSchema;
|
|
94865
|
+
var init_registerimage = __esm(() => {
|
|
94866
|
+
init_esm();
|
|
94867
|
+
init_primitives();
|
|
94868
|
+
init_components();
|
|
94869
|
+
RegisterImageRequest$inboundSchema = objectType({
|
|
94870
|
+
"X-On-Behalf-Of": stringType().optional(),
|
|
94871
|
+
ImageRegister: ImageRegister$inboundSchema
|
|
94872
|
+
}).transform((v2) => {
|
|
94873
|
+
return remap(v2, {
|
|
94874
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
94875
|
+
ImageRegister: "imageRegister"
|
|
94876
|
+
});
|
|
94877
|
+
});
|
|
94878
|
+
RegisterImageRequest$outboundSchema = objectType({
|
|
94879
|
+
xOnBehalfOf: stringType().optional(),
|
|
94880
|
+
imageRegister: ImageRegister$outboundSchema
|
|
94881
|
+
}).transform((v2) => {
|
|
94882
|
+
return remap(v2, {
|
|
94883
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
94884
|
+
imageRegister: "ImageRegister"
|
|
94885
|
+
});
|
|
94886
|
+
});
|
|
94887
|
+
});
|
|
94888
|
+
|
|
94537
94889
|
// src/models/operations/registermodel.ts
|
|
94538
94890
|
var RegisterModelRequest$inboundSchema, RegisterModelRequest$outboundSchema;
|
|
94539
94891
|
var init_registermodel = __esm(() => {
|
|
@@ -95854,6 +96206,36 @@ var init_setorgprice = __esm(() => {
|
|
|
95854
96206
|
});
|
|
95855
96207
|
});
|
|
95856
96208
|
|
|
96209
|
+
// src/models/operations/setservingtenant.ts
|
|
96210
|
+
var SetServingTenantRequest$inboundSchema, SetServingTenantRequest$outboundSchema;
|
|
96211
|
+
var init_setservingtenant = __esm(() => {
|
|
96212
|
+
init_esm();
|
|
96213
|
+
init_primitives();
|
|
96214
|
+
init_components();
|
|
96215
|
+
SetServingTenantRequest$inboundSchema = objectType({
|
|
96216
|
+
org_id: stringType(),
|
|
96217
|
+
"X-On-Behalf-Of": stringType().optional(),
|
|
96218
|
+
ServingTenantSet: ServingTenantSet$inboundSchema
|
|
96219
|
+
}).transform((v2) => {
|
|
96220
|
+
return remap(v2, {
|
|
96221
|
+
org_id: "orgId",
|
|
96222
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
96223
|
+
ServingTenantSet: "servingTenantSet"
|
|
96224
|
+
});
|
|
96225
|
+
});
|
|
96226
|
+
SetServingTenantRequest$outboundSchema = objectType({
|
|
96227
|
+
orgId: stringType(),
|
|
96228
|
+
xOnBehalfOf: stringType().optional(),
|
|
96229
|
+
servingTenantSet: ServingTenantSet$outboundSchema
|
|
96230
|
+
}).transform((v2) => {
|
|
96231
|
+
return remap(v2, {
|
|
96232
|
+
orgId: "org_id",
|
|
96233
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
96234
|
+
servingTenantSet: "ServingTenantSet"
|
|
96235
|
+
});
|
|
96236
|
+
});
|
|
96237
|
+
});
|
|
96238
|
+
|
|
95857
96239
|
// src/models/operations/setupwhatsappappwebhook.ts
|
|
95858
96240
|
var SetupWhatsAppAppWebhookRequest$inboundSchema, SetupWhatsAppAppWebhookRequest$outboundSchema, SetupWhatsAppAppWebhookResponse$inboundSchema, SetupWhatsAppAppWebhookResponse$outboundSchema;
|
|
95859
96241
|
var init_setupwhatsappappwebhook = __esm(() => {
|
|
@@ -97334,23 +97716,23 @@ var init_updatescaling = __esm(() => {
|
|
|
97334
97716
|
UpdateScalingRequest$inboundSchema = objectType({
|
|
97335
97717
|
deployment_id: stringType(),
|
|
97336
97718
|
"X-On-Behalf-Of": stringType().optional(),
|
|
97337
|
-
|
|
97719
|
+
DeploymentScalingUpdate: DeploymentScalingUpdate$inboundSchema
|
|
97338
97720
|
}).transform((v2) => {
|
|
97339
97721
|
return remap(v2, {
|
|
97340
97722
|
deployment_id: "deploymentId",
|
|
97341
97723
|
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
97342
|
-
|
|
97724
|
+
DeploymentScalingUpdate: "deploymentScalingUpdate"
|
|
97343
97725
|
});
|
|
97344
97726
|
});
|
|
97345
97727
|
UpdateScalingRequest$outboundSchema = objectType({
|
|
97346
97728
|
deploymentId: stringType(),
|
|
97347
97729
|
xOnBehalfOf: stringType().optional(),
|
|
97348
|
-
|
|
97730
|
+
deploymentScalingUpdate: DeploymentScalingUpdate$outboundSchema
|
|
97349
97731
|
}).transform((v2) => {
|
|
97350
97732
|
return remap(v2, {
|
|
97351
97733
|
deploymentId: "deployment_id",
|
|
97352
97734
|
xOnBehalfOf: "X-On-Behalf-Of",
|
|
97353
|
-
|
|
97735
|
+
deploymentScalingUpdate: "DeploymentScalingUpdate"
|
|
97354
97736
|
});
|
|
97355
97737
|
});
|
|
97356
97738
|
});
|
|
@@ -97854,7 +98236,6 @@ var init_operations = __esm(() => {
|
|
|
97854
98236
|
init_addteammember2();
|
|
97855
98237
|
init_batchgetcompletionfeedback();
|
|
97856
98238
|
init_batchgetresponsefeedback();
|
|
97857
|
-
init_buildimage();
|
|
97858
98239
|
init_cancelbatch();
|
|
97859
98240
|
init_cancelevalrun();
|
|
97860
98241
|
init_cancelfinetunejob();
|
|
@@ -97940,6 +98321,7 @@ var init_operations = __esm(() => {
|
|
|
97940
98321
|
init_deletesecret();
|
|
97941
98322
|
init_deleteserviceaccount2();
|
|
97942
98323
|
init_deleteserviceaccountapikey2();
|
|
98324
|
+
init_deleteservingorganization();
|
|
97943
98325
|
init_deleteskill();
|
|
97944
98326
|
init_deleteskillversion();
|
|
97945
98327
|
init_deletespeechtotexthistory();
|
|
@@ -98008,6 +98390,8 @@ var init_operations = __esm(() => {
|
|
|
98008
98390
|
init_getsandboxusage();
|
|
98009
98391
|
init_getserviceaccount2();
|
|
98010
98392
|
init_getservingmodel();
|
|
98393
|
+
init_getservingorganizationdeletion();
|
|
98394
|
+
init_getservingtenant();
|
|
98011
98395
|
init_getsession();
|
|
98012
98396
|
init_getsessionurl();
|
|
98013
98397
|
init_getskill();
|
|
@@ -98079,6 +98463,7 @@ var init_operations = __esm(() => {
|
|
|
98079
98463
|
init_listserviceaccountapikeys2();
|
|
98080
98464
|
init_listserviceaccounts2();
|
|
98081
98465
|
init_listservingmodels();
|
|
98466
|
+
init_listservingtenants();
|
|
98082
98467
|
init_listsessions();
|
|
98083
98468
|
init_listskills();
|
|
98084
98469
|
init_listskillversions();
|
|
@@ -98102,6 +98487,7 @@ var init_operations = __esm(() => {
|
|
|
98102
98487
|
init_regeneratescopedapikey2();
|
|
98103
98488
|
init_regenerateserviceaccountapikey2();
|
|
98104
98489
|
init_registerdeployment();
|
|
98490
|
+
init_registerimage();
|
|
98105
98491
|
init_registermodel();
|
|
98106
98492
|
init_reissueownerkey2();
|
|
98107
98493
|
init_removeteammember2();
|
|
@@ -98122,6 +98508,7 @@ var init_operations = __esm(() => {
|
|
|
98122
98508
|
init_setcurrency();
|
|
98123
98509
|
init_setorgbudget();
|
|
98124
98510
|
init_setorgprice();
|
|
98511
|
+
init_setservingtenant();
|
|
98125
98512
|
init_setupwhatsappappwebhook();
|
|
98126
98513
|
init_startexportfeedback();
|
|
98127
98514
|
init_streamagentrunevents();
|
|
@@ -131947,7 +132334,7 @@ async function $do287(client, request, options) {
|
|
|
131947
132334
|
const responseFields = {
|
|
131948
132335
|
HttpMeta: { Response: response, Request: req }
|
|
131949
132336
|
};
|
|
131950
|
-
const [result] = await match(json(201, Deployment$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
132337
|
+
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
132338
|
if (!result.ok) {
|
|
131952
132339
|
return [result, { status: "complete", request: req, response }];
|
|
131953
132340
|
}
|
|
@@ -132067,7 +132454,7 @@ async function $do288(client, request, options) {
|
|
|
132067
132454
|
const responseFields = {
|
|
132068
132455
|
HttpMeta: { Response: response, Request: req }
|
|
132069
132456
|
};
|
|
132070
|
-
const [result] = await match(nil(204, voidType()), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
132457
|
+
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
132458
|
if (!result.ok) {
|
|
132072
132459
|
return [result, { status: "complete", request: req, response }];
|
|
132073
132460
|
}
|
|
@@ -132186,7 +132573,7 @@ async function $do289(client, request, options) {
|
|
|
132186
132573
|
const responseFields = {
|
|
132187
132574
|
HttpMeta: { Response: response, Request: req }
|
|
132188
132575
|
};
|
|
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 });
|
|
132576
|
+
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
132577
|
if (!result.ok) {
|
|
132191
132578
|
return [result, { status: "complete", request: req, response }];
|
|
132192
132579
|
}
|
|
@@ -132305,7 +132692,7 @@ async function $do290(client, request, options) {
|
|
|
132305
132692
|
const responseFields = {
|
|
132306
132693
|
HttpMeta: { Response: response, Request: req }
|
|
132307
132694
|
};
|
|
132308
|
-
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
132695
|
+
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
132696
|
if (!result.ok) {
|
|
132310
132697
|
return [result, { status: "complete", request: req, response }];
|
|
132311
132698
|
}
|
|
@@ -132669,7 +133056,7 @@ async function $do293(client, request, options) {
|
|
|
132669
133056
|
const responseFields = {
|
|
132670
133057
|
HttpMeta: { Response: response, Request: req }
|
|
132671
133058
|
};
|
|
132672
|
-
const [result] = await match(json(200, PageDeployment$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
133059
|
+
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
133060
|
if (!result.ok) {
|
|
132674
133061
|
return [result, { status: "complete", request: req, response }];
|
|
132675
133062
|
}
|
|
@@ -132789,7 +133176,7 @@ async function $do294(client, request, options) {
|
|
|
132789
133176
|
const responseFields = {
|
|
132790
133177
|
HttpMeta: { Response: response, Request: req }
|
|
132791
133178
|
};
|
|
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 });
|
|
133179
|
+
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
133180
|
if (!result.ok) {
|
|
132794
133181
|
return [result, { status: "complete", request: req, response }];
|
|
132795
133182
|
}
|
|
@@ -132909,7 +133296,7 @@ async function $do295(client, request, options) {
|
|
|
132909
133296
|
const responseFields = {
|
|
132910
133297
|
HttpMeta: { Response: response, Request: req }
|
|
132911
133298
|
};
|
|
132912
|
-
const [result] = await match(json(200, PageRevision$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
133299
|
+
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
133300
|
if (!result.ok) {
|
|
132914
133301
|
return [result, { status: "complete", request: req, response }];
|
|
132915
133302
|
}
|
|
@@ -133029,7 +133416,7 @@ async function $do296(client, request, options) {
|
|
|
133029
133416
|
const responseFields = {
|
|
133030
133417
|
HttpMeta: { Response: response, Request: req }
|
|
133031
133418
|
};
|
|
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 });
|
|
133419
|
+
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
133420
|
if (!result.ok) {
|
|
133034
133421
|
return [result, { status: "complete", request: req, response }];
|
|
133035
133422
|
}
|
|
@@ -133152,7 +133539,7 @@ async function $do297(client, request, options) {
|
|
|
133152
133539
|
const responseFields = {
|
|
133153
133540
|
HttpMeta: { Response: response, Request: req }
|
|
133154
133541
|
};
|
|
133155
|
-
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 });
|
|
133542
|
+
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 });
|
|
133156
133543
|
if (!result.ok) {
|
|
133157
133544
|
return [result, { status: "complete", request: req, response }];
|
|
133158
133545
|
}
|
|
@@ -133273,7 +133660,7 @@ async function $do298(client, request, options) {
|
|
|
133273
133660
|
const responseFields = {
|
|
133274
133661
|
HttpMeta: { Response: response, Request: req }
|
|
133275
133662
|
};
|
|
133276
|
-
const [result] = await match(json(200, Deployment$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema),
|
|
133663
|
+
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
133664
|
if (!result.ok) {
|
|
133278
133665
|
return [result, { status: "complete", request: req, response }];
|
|
133279
133666
|
}
|
|
@@ -133332,7 +133719,9 @@ async function $do299(client, request, options) {
|
|
|
133332
133719
|
return [parsed, { status: "invalid" }];
|
|
133333
133720
|
}
|
|
133334
133721
|
const payload = parsed.value;
|
|
133335
|
-
const body = encodeJSON("body", payload.
|
|
133722
|
+
const body = encodeJSON("body", payload.DeploymentScalingUpdate, {
|
|
133723
|
+
explode: true
|
|
133724
|
+
});
|
|
133336
133725
|
const pathParams = {
|
|
133337
133726
|
deployment_id: encodeSimple("deployment_id", payload.deployment_id, {
|
|
133338
133727
|
explode: false,
|
|
@@ -133394,7 +133783,7 @@ async function $do299(client, request, options) {
|
|
|
133394
133783
|
const responseFields = {
|
|
133395
133784
|
HttpMeta: { Response: response, Request: req }
|
|
133396
133785
|
};
|
|
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 });
|
|
133786
|
+
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
133787
|
if (!result.ok) {
|
|
133399
133788
|
return [result, { status: "complete", request: req, response }];
|
|
133400
133789
|
}
|
|
@@ -134287,20 +134676,25 @@ List the checkpoints a fine-tune job has produced.`,
|
|
|
134287
134676
|
};
|
|
134288
134677
|
});
|
|
134289
134678
|
|
|
134290
|
-
// src/funcs/
|
|
134291
|
-
function
|
|
134679
|
+
// src/funcs/servingImagesDelete.ts
|
|
134680
|
+
function servingImagesDelete(client, request, options) {
|
|
134292
134681
|
return new APIPromise($do307(client, request, options));
|
|
134293
134682
|
}
|
|
134294
134683
|
async function $do307(client, request, options) {
|
|
134295
|
-
const parsed = safeParse4(request, (value) =>
|
|
134684
|
+
const parsed = safeParse4(request, (value) => DeleteImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134296
134685
|
if (!parsed.ok) {
|
|
134297
134686
|
return [parsed, { status: "invalid" }];
|
|
134298
134687
|
}
|
|
134299
134688
|
const payload = parsed.value;
|
|
134300
|
-
const body =
|
|
134301
|
-
const
|
|
134689
|
+
const body = null;
|
|
134690
|
+
const pathParams = {
|
|
134691
|
+
image_id: encodeSimple("image_id", payload.image_id, {
|
|
134692
|
+
explode: false,
|
|
134693
|
+
charEncoding: "percent"
|
|
134694
|
+
})
|
|
134695
|
+
};
|
|
134696
|
+
const path = pathToFunc("/api/v1/serving/images/{image_id}")(pathParams);
|
|
134302
134697
|
const headers = new Headers(compactMap({
|
|
134303
|
-
"Content-Type": "application/json",
|
|
134304
134698
|
Accept: "application/json",
|
|
134305
134699
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
134306
134700
|
}));
|
|
@@ -134310,7 +134704,7 @@ async function $do307(client, request, options) {
|
|
|
134310
134704
|
const context = {
|
|
134311
134705
|
options: client._options,
|
|
134312
134706
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134313
|
-
operationID: "
|
|
134707
|
+
operationID: "deleteImage",
|
|
134314
134708
|
oAuth2Scopes: null,
|
|
134315
134709
|
resolvedSecurity: requestSecurity,
|
|
134316
134710
|
securitySource: client._options.bearerAuth,
|
|
@@ -134328,7 +134722,7 @@ async function $do307(client, request, options) {
|
|
|
134328
134722
|
};
|
|
134329
134723
|
const requestRes = client._createRequest(context, {
|
|
134330
134724
|
security: requestSecurity,
|
|
134331
|
-
method: "
|
|
134725
|
+
method: "DELETE",
|
|
134332
134726
|
baseURL: options?.serverURL,
|
|
134333
134727
|
path,
|
|
134334
134728
|
headers,
|
|
@@ -134353,13 +134747,14 @@ async function $do307(client, request, options) {
|
|
|
134353
134747
|
const responseFields = {
|
|
134354
134748
|
HttpMeta: { Response: response, Request: req }
|
|
134355
134749
|
};
|
|
134356
|
-
const [result] = await match(
|
|
134750
|
+
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 });
|
|
134357
134751
|
if (!result.ok) {
|
|
134358
134752
|
return [result, { status: "complete", request: req, response }];
|
|
134359
134753
|
}
|
|
134360
134754
|
return [result, { status: "complete", request: req, response }];
|
|
134361
134755
|
}
|
|
134362
|
-
var
|
|
134756
|
+
var init_servingImagesDelete = __esm(() => {
|
|
134757
|
+
init_esm();
|
|
134363
134758
|
init_encodings();
|
|
134364
134759
|
init_http();
|
|
134365
134760
|
init_matchers();
|
|
@@ -134367,47 +134762,45 @@ var init_servingImagesBuild = __esm(() => {
|
|
|
134367
134762
|
init_schemas4();
|
|
134368
134763
|
init_security();
|
|
134369
134764
|
init_url();
|
|
134370
|
-
init_components();
|
|
134371
134765
|
init_errors4();
|
|
134372
134766
|
init_operations();
|
|
134373
134767
|
init_async();
|
|
134374
134768
|
});
|
|
134375
134769
|
|
|
134376
|
-
// src/mcp-server/tools/
|
|
134377
|
-
var args300, tool$
|
|
134378
|
-
var
|
|
134379
|
-
|
|
134770
|
+
// src/mcp-server/tools/servingImagesDelete.ts
|
|
134771
|
+
var args300, tool$servingImagesDelete;
|
|
134772
|
+
var init_servingImagesDelete2 = __esm(() => {
|
|
134773
|
+
init_servingImagesDelete();
|
|
134380
134774
|
init_operations();
|
|
134381
134775
|
init_tools();
|
|
134382
134776
|
args300 = {
|
|
134383
|
-
request:
|
|
134777
|
+
request: DeleteImageRequest$inboundSchema
|
|
134384
134778
|
};
|
|
134385
|
-
tool$
|
|
134386
|
-
name: "serving-images-
|
|
134387
|
-
description: `
|
|
134779
|
+
tool$servingImagesDelete = {
|
|
134780
|
+
name: "serving-images-delete",
|
|
134781
|
+
description: `Delete an image
|
|
134388
134782
|
|
|
134389
|
-
|
|
134783
|
+
Delete a container image.`,
|
|
134390
134784
|
args: args300,
|
|
134391
134785
|
tool: async (client, args301, ctx) => {
|
|
134392
|
-
const [result, apiCall] = await
|
|
134786
|
+
const [result, apiCall] = await servingImagesDelete(client, args301.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134393
134787
|
if (!result.ok) {
|
|
134394
134788
|
return {
|
|
134395
134789
|
content: [{ type: "text", text: result.error.message }],
|
|
134396
134790
|
isError: true
|
|
134397
134791
|
};
|
|
134398
134792
|
}
|
|
134399
|
-
|
|
134400
|
-
return formatResult(value, apiCall);
|
|
134793
|
+
return formatResult(undefined, apiCall);
|
|
134401
134794
|
}
|
|
134402
134795
|
};
|
|
134403
134796
|
});
|
|
134404
134797
|
|
|
134405
|
-
// src/funcs/
|
|
134406
|
-
function
|
|
134798
|
+
// src/funcs/servingImagesGet.ts
|
|
134799
|
+
function servingImagesGet(client, request, options) {
|
|
134407
134800
|
return new APIPromise($do308(client, request, options));
|
|
134408
134801
|
}
|
|
134409
134802
|
async function $do308(client, request, options) {
|
|
134410
|
-
const parsed = safeParse4(request, (value) =>
|
|
134803
|
+
const parsed = safeParse4(request, (value) => GetImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134411
134804
|
if (!parsed.ok) {
|
|
134412
134805
|
return [parsed, { status: "invalid" }];
|
|
134413
134806
|
}
|
|
@@ -134430,7 +134823,7 @@ async function $do308(client, request, options) {
|
|
|
134430
134823
|
const context = {
|
|
134431
134824
|
options: client._options,
|
|
134432
134825
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134433
|
-
operationID: "
|
|
134826
|
+
operationID: "getImage",
|
|
134434
134827
|
oAuth2Scopes: null,
|
|
134435
134828
|
resolvedSecurity: requestSecurity,
|
|
134436
134829
|
securitySource: client._options.bearerAuth,
|
|
@@ -134448,7 +134841,7 @@ async function $do308(client, request, options) {
|
|
|
134448
134841
|
};
|
|
134449
134842
|
const requestRes = client._createRequest(context, {
|
|
134450
134843
|
security: requestSecurity,
|
|
134451
|
-
method: "
|
|
134844
|
+
method: "GET",
|
|
134452
134845
|
baseURL: options?.serverURL,
|
|
134453
134846
|
path,
|
|
134454
134847
|
headers,
|
|
@@ -134473,14 +134866,13 @@ async function $do308(client, request, options) {
|
|
|
134473
134866
|
const responseFields = {
|
|
134474
134867
|
HttpMeta: { Response: response, Request: req }
|
|
134475
134868
|
};
|
|
134476
|
-
const [result] = await match(
|
|
134869
|
+
const [result] = await match(json(200, Image$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134477
134870
|
if (!result.ok) {
|
|
134478
134871
|
return [result, { status: "complete", request: req, response }];
|
|
134479
134872
|
}
|
|
134480
134873
|
return [result, { status: "complete", request: req, response }];
|
|
134481
134874
|
}
|
|
134482
|
-
var
|
|
134483
|
-
init_esm();
|
|
134875
|
+
var init_servingImagesGet = __esm(() => {
|
|
134484
134876
|
init_encodings();
|
|
134485
134877
|
init_http();
|
|
134486
134878
|
init_matchers();
|
|
@@ -134488,57 +134880,57 @@ var init_servingImagesDelete = __esm(() => {
|
|
|
134488
134880
|
init_schemas4();
|
|
134489
134881
|
init_security();
|
|
134490
134882
|
init_url();
|
|
134883
|
+
init_components();
|
|
134491
134884
|
init_errors4();
|
|
134492
134885
|
init_operations();
|
|
134493
134886
|
init_async();
|
|
134494
134887
|
});
|
|
134495
134888
|
|
|
134496
|
-
// src/mcp-server/tools/
|
|
134497
|
-
var args301, tool$
|
|
134498
|
-
var
|
|
134499
|
-
|
|
134889
|
+
// src/mcp-server/tools/servingImagesGet.ts
|
|
134890
|
+
var args301, tool$servingImagesGet;
|
|
134891
|
+
var init_servingImagesGet2 = __esm(() => {
|
|
134892
|
+
init_servingImagesGet();
|
|
134500
134893
|
init_operations();
|
|
134501
134894
|
init_tools();
|
|
134502
134895
|
args301 = {
|
|
134503
|
-
request:
|
|
134896
|
+
request: GetImageRequest$inboundSchema
|
|
134504
134897
|
};
|
|
134505
|
-
tool$
|
|
134506
|
-
name: "serving-images-
|
|
134507
|
-
description: `
|
|
134898
|
+
tool$servingImagesGet = {
|
|
134899
|
+
name: "serving-images-get",
|
|
134900
|
+
description: `Get an image
|
|
134508
134901
|
|
|
134509
|
-
|
|
134902
|
+
Retrieve an image, including its build status.`,
|
|
134510
134903
|
args: args301,
|
|
134511
134904
|
tool: async (client, args302, ctx) => {
|
|
134512
|
-
const [result, apiCall] = await
|
|
134905
|
+
const [result, apiCall] = await servingImagesGet(client, args302.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134513
134906
|
if (!result.ok) {
|
|
134514
134907
|
return {
|
|
134515
134908
|
content: [{ type: "text", text: result.error.message }],
|
|
134516
134909
|
isError: true
|
|
134517
134910
|
};
|
|
134518
134911
|
}
|
|
134519
|
-
|
|
134912
|
+
const value = result.value;
|
|
134913
|
+
return formatResult(value, apiCall);
|
|
134520
134914
|
}
|
|
134521
134915
|
};
|
|
134522
134916
|
});
|
|
134523
134917
|
|
|
134524
|
-
// src/funcs/
|
|
134525
|
-
function
|
|
134918
|
+
// src/funcs/servingImagesList.ts
|
|
134919
|
+
function servingImagesList(client, request, options) {
|
|
134526
134920
|
return new APIPromise($do309(client, request, options));
|
|
134527
134921
|
}
|
|
134528
134922
|
async function $do309(client, request, options) {
|
|
134529
|
-
const parsed = safeParse4(request, (value) =>
|
|
134923
|
+
const parsed = safeParse4(request, (value) => ListImagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134530
134924
|
if (!parsed.ok) {
|
|
134531
134925
|
return [parsed, { status: "invalid" }];
|
|
134532
134926
|
}
|
|
134533
134927
|
const payload = parsed.value;
|
|
134534
134928
|
const body = null;
|
|
134535
|
-
const
|
|
134536
|
-
|
|
134537
|
-
|
|
134538
|
-
|
|
134539
|
-
|
|
134540
|
-
};
|
|
134541
|
-
const path = pathToFunc("/api/v1/serving/images/{image_id}")(pathParams);
|
|
134929
|
+
const path = pathToFunc("/api/v1/serving/images")();
|
|
134930
|
+
const query = encodeFormQuery({
|
|
134931
|
+
cursor: payload.cursor,
|
|
134932
|
+
limit: payload.limit
|
|
134933
|
+
});
|
|
134542
134934
|
const headers = new Headers(compactMap({
|
|
134543
134935
|
Accept: "application/json",
|
|
134544
134936
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -134549,7 +134941,7 @@ async function $do309(client, request, options) {
|
|
|
134549
134941
|
const context = {
|
|
134550
134942
|
options: client._options,
|
|
134551
134943
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134552
|
-
operationID: "
|
|
134944
|
+
operationID: "listImages",
|
|
134553
134945
|
oAuth2Scopes: null,
|
|
134554
134946
|
resolvedSecurity: requestSecurity,
|
|
134555
134947
|
securitySource: client._options.bearerAuth,
|
|
@@ -134571,6 +134963,7 @@ async function $do309(client, request, options) {
|
|
|
134571
134963
|
baseURL: options?.serverURL,
|
|
134572
134964
|
path,
|
|
134573
134965
|
headers,
|
|
134966
|
+
query,
|
|
134574
134967
|
body,
|
|
134575
134968
|
userAgent: client._options.userAgent,
|
|
134576
134969
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -134592,13 +134985,13 @@ async function $do309(client, request, options) {
|
|
|
134592
134985
|
const responseFields = {
|
|
134593
134986
|
HttpMeta: { Response: response, Request: req }
|
|
134594
134987
|
};
|
|
134595
|
-
const [result] = await match(json(200,
|
|
134988
|
+
const [result] = await match(json(200, PageImage$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134596
134989
|
if (!result.ok) {
|
|
134597
134990
|
return [result, { status: "complete", request: req, response }];
|
|
134598
134991
|
}
|
|
134599
134992
|
return [result, { status: "complete", request: req, response }];
|
|
134600
134993
|
}
|
|
134601
|
-
var
|
|
134994
|
+
var init_servingImagesList = __esm(() => {
|
|
134602
134995
|
init_encodings();
|
|
134603
134996
|
init_http();
|
|
134604
134997
|
init_matchers();
|
|
@@ -134612,23 +135005,23 @@ var init_servingImagesGet = __esm(() => {
|
|
|
134612
135005
|
init_async();
|
|
134613
135006
|
});
|
|
134614
135007
|
|
|
134615
|
-
// src/mcp-server/tools/
|
|
134616
|
-
var args302, tool$
|
|
134617
|
-
var
|
|
134618
|
-
|
|
135008
|
+
// src/mcp-server/tools/servingImagesList.ts
|
|
135009
|
+
var args302, tool$servingImagesList;
|
|
135010
|
+
var init_servingImagesList2 = __esm(() => {
|
|
135011
|
+
init_servingImagesList();
|
|
134619
135012
|
init_operations();
|
|
134620
135013
|
init_tools();
|
|
134621
135014
|
args302 = {
|
|
134622
|
-
request:
|
|
135015
|
+
request: ListImagesRequest$inboundSchema
|
|
134623
135016
|
};
|
|
134624
|
-
tool$
|
|
134625
|
-
name: "serving-images-
|
|
134626
|
-
description: `
|
|
135017
|
+
tool$servingImagesList = {
|
|
135018
|
+
name: "serving-images-list",
|
|
135019
|
+
description: `List images
|
|
134627
135020
|
|
|
134628
|
-
|
|
135021
|
+
List your container images.`,
|
|
134629
135022
|
args: args302,
|
|
134630
135023
|
tool: async (client, args303, ctx) => {
|
|
134631
|
-
const [result, apiCall] = await
|
|
135024
|
+
const [result, apiCall] = await servingImagesList(client, args303.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134632
135025
|
if (!result.ok) {
|
|
134633
135026
|
return {
|
|
134634
135027
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -134641,22 +135034,139 @@ Retrieve an image, including its build status.`,
|
|
|
134641
135034
|
};
|
|
134642
135035
|
});
|
|
134643
135036
|
|
|
134644
|
-
// src/funcs/
|
|
134645
|
-
function
|
|
135037
|
+
// src/funcs/servingImagesRegister.ts
|
|
135038
|
+
function servingImagesRegister(client, request, options) {
|
|
134646
135039
|
return new APIPromise($do310(client, request, options));
|
|
134647
135040
|
}
|
|
134648
135041
|
async function $do310(client, request, options) {
|
|
134649
|
-
const parsed = safeParse4(request, (value) =>
|
|
135042
|
+
const parsed = safeParse4(request, (value) => RegisterImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134650
135043
|
if (!parsed.ok) {
|
|
134651
135044
|
return [parsed, { status: "invalid" }];
|
|
134652
135045
|
}
|
|
134653
135046
|
const payload = parsed.value;
|
|
134654
|
-
const body =
|
|
135047
|
+
const body = encodeJSON("body", payload.ImageRegister, { explode: true });
|
|
134655
135048
|
const path = pathToFunc("/api/v1/serving/images")();
|
|
134656
|
-
const
|
|
134657
|
-
|
|
134658
|
-
|
|
135049
|
+
const headers = new Headers(compactMap({
|
|
135050
|
+
"Content-Type": "application/json",
|
|
135051
|
+
Accept: "application/json",
|
|
135052
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135053
|
+
}));
|
|
135054
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135055
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
135056
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135057
|
+
const context = {
|
|
135058
|
+
options: client._options,
|
|
135059
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135060
|
+
operationID: "registerImage",
|
|
135061
|
+
oAuth2Scopes: null,
|
|
135062
|
+
resolvedSecurity: requestSecurity,
|
|
135063
|
+
securitySource: client._options.bearerAuth,
|
|
135064
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
135065
|
+
strategy: "backoff",
|
|
135066
|
+
backoff: {
|
|
135067
|
+
initialInterval: 500,
|
|
135068
|
+
maxInterval: 5000,
|
|
135069
|
+
exponent: 1.5,
|
|
135070
|
+
maxElapsedTime: 15000
|
|
135071
|
+
},
|
|
135072
|
+
retryConnectionErrors: true
|
|
135073
|
+
},
|
|
135074
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
135075
|
+
};
|
|
135076
|
+
const requestRes = client._createRequest(context, {
|
|
135077
|
+
security: requestSecurity,
|
|
135078
|
+
method: "POST",
|
|
135079
|
+
baseURL: options?.serverURL,
|
|
135080
|
+
path,
|
|
135081
|
+
headers,
|
|
135082
|
+
body,
|
|
135083
|
+
userAgent: client._options.userAgent,
|
|
135084
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135085
|
+
}, options);
|
|
135086
|
+
if (!requestRes.ok) {
|
|
135087
|
+
return [requestRes, { status: "invalid" }];
|
|
135088
|
+
}
|
|
135089
|
+
const req = requestRes.value;
|
|
135090
|
+
const doResult = await client._do(req, {
|
|
135091
|
+
context,
|
|
135092
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
135093
|
+
retryConfig: context.retryConfig,
|
|
135094
|
+
retryCodes: context.retryCodes
|
|
134659
135095
|
});
|
|
135096
|
+
if (!doResult.ok) {
|
|
135097
|
+
return [doResult, { status: "request-error", request: req }];
|
|
135098
|
+
}
|
|
135099
|
+
const response = doResult.value;
|
|
135100
|
+
const responseFields = {
|
|
135101
|
+
HttpMeta: { Response: response, Request: req }
|
|
135102
|
+
};
|
|
135103
|
+
const [result] = await match(json(201, Image$inboundSchema), jsonErr([403, 409], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135104
|
+
if (!result.ok) {
|
|
135105
|
+
return [result, { status: "complete", request: req, response }];
|
|
135106
|
+
}
|
|
135107
|
+
return [result, { status: "complete", request: req, response }];
|
|
135108
|
+
}
|
|
135109
|
+
var init_servingImagesRegister = __esm(() => {
|
|
135110
|
+
init_encodings();
|
|
135111
|
+
init_http();
|
|
135112
|
+
init_matchers();
|
|
135113
|
+
init_primitives();
|
|
135114
|
+
init_schemas4();
|
|
135115
|
+
init_security();
|
|
135116
|
+
init_url();
|
|
135117
|
+
init_components();
|
|
135118
|
+
init_errors4();
|
|
135119
|
+
init_operations();
|
|
135120
|
+
init_async();
|
|
135121
|
+
});
|
|
135122
|
+
|
|
135123
|
+
// src/mcp-server/tools/servingImagesRegister.ts
|
|
135124
|
+
var args303, tool$servingImagesRegister;
|
|
135125
|
+
var init_servingImagesRegister2 = __esm(() => {
|
|
135126
|
+
init_servingImagesRegister();
|
|
135127
|
+
init_operations();
|
|
135128
|
+
init_tools();
|
|
135129
|
+
args303 = {
|
|
135130
|
+
request: RegisterImageRequest$inboundSchema
|
|
135131
|
+
};
|
|
135132
|
+
tool$servingImagesRegister = {
|
|
135133
|
+
name: "serving-images-register",
|
|
135134
|
+
description: `Register a container image
|
|
135135
|
+
|
|
135136
|
+
Register a container image by reference so it can back a BYO deployment or a recipe. (Data upload and build-with-weight-baking are future additions.)`,
|
|
135137
|
+
args: args303,
|
|
135138
|
+
tool: async (client, args304, ctx) => {
|
|
135139
|
+
const [result, apiCall] = await servingImagesRegister(client, args304.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135140
|
+
if (!result.ok) {
|
|
135141
|
+
return {
|
|
135142
|
+
content: [{ type: "text", text: result.error.message }],
|
|
135143
|
+
isError: true
|
|
135144
|
+
};
|
|
135145
|
+
}
|
|
135146
|
+
const value = result.value;
|
|
135147
|
+
return formatResult(value, apiCall);
|
|
135148
|
+
}
|
|
135149
|
+
};
|
|
135150
|
+
});
|
|
135151
|
+
|
|
135152
|
+
// src/funcs/servingModelsDelete.ts
|
|
135153
|
+
function servingModelsDelete(client, request, options) {
|
|
135154
|
+
return new APIPromise($do311(client, request, options));
|
|
135155
|
+
}
|
|
135156
|
+
async function $do311(client, request, options) {
|
|
135157
|
+
const parsed = safeParse4(request, (value) => DeleteModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135158
|
+
if (!parsed.ok) {
|
|
135159
|
+
return [parsed, { status: "invalid" }];
|
|
135160
|
+
}
|
|
135161
|
+
const payload = parsed.value;
|
|
135162
|
+
const body = null;
|
|
135163
|
+
const pathParams = {
|
|
135164
|
+
model_id: encodeSimple("model_id", payload.model_id, {
|
|
135165
|
+
explode: false,
|
|
135166
|
+
charEncoding: "percent"
|
|
135167
|
+
})
|
|
135168
|
+
};
|
|
135169
|
+
const path = pathToFunc("/api/v1/serving/models/{model_id}")(pathParams);
|
|
134660
135170
|
const headers = new Headers(compactMap({
|
|
134661
135171
|
Accept: "application/json",
|
|
134662
135172
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -134667,7 +135177,7 @@ async function $do310(client, request, options) {
|
|
|
134667
135177
|
const context = {
|
|
134668
135178
|
options: client._options,
|
|
134669
135179
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134670
|
-
operationID: "
|
|
135180
|
+
operationID: "deleteModel",
|
|
134671
135181
|
oAuth2Scopes: null,
|
|
134672
135182
|
resolvedSecurity: requestSecurity,
|
|
134673
135183
|
securitySource: client._options.bearerAuth,
|
|
@@ -134685,11 +135195,10 @@ async function $do310(client, request, options) {
|
|
|
134685
135195
|
};
|
|
134686
135196
|
const requestRes = client._createRequest(context, {
|
|
134687
135197
|
security: requestSecurity,
|
|
134688
|
-
method: "
|
|
135198
|
+
method: "DELETE",
|
|
134689
135199
|
baseURL: options?.serverURL,
|
|
134690
135200
|
path,
|
|
134691
135201
|
headers,
|
|
134692
|
-
query,
|
|
134693
135202
|
body,
|
|
134694
135203
|
userAgent: client._options.userAgent,
|
|
134695
135204
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -134711,13 +135220,14 @@ async function $do310(client, request, options) {
|
|
|
134711
135220
|
const responseFields = {
|
|
134712
135221
|
HttpMeta: { Response: response, Request: req }
|
|
134713
135222
|
};
|
|
134714
|
-
const [result] = await match(
|
|
135223
|
+
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 });
|
|
134715
135224
|
if (!result.ok) {
|
|
134716
135225
|
return [result, { status: "complete", request: req, response }];
|
|
134717
135226
|
}
|
|
134718
135227
|
return [result, { status: "complete", request: req, response }];
|
|
134719
135228
|
}
|
|
134720
|
-
var
|
|
135229
|
+
var init_servingModelsDelete = __esm(() => {
|
|
135230
|
+
init_esm();
|
|
134721
135231
|
init_encodings();
|
|
134722
135232
|
init_http();
|
|
134723
135233
|
init_matchers();
|
|
@@ -134725,47 +135235,45 @@ var init_servingImagesList = __esm(() => {
|
|
|
134725
135235
|
init_schemas4();
|
|
134726
135236
|
init_security();
|
|
134727
135237
|
init_url();
|
|
134728
|
-
init_components();
|
|
134729
135238
|
init_errors4();
|
|
134730
135239
|
init_operations();
|
|
134731
135240
|
init_async();
|
|
134732
135241
|
});
|
|
134733
135242
|
|
|
134734
|
-
// src/mcp-server/tools/
|
|
134735
|
-
var
|
|
134736
|
-
var
|
|
134737
|
-
|
|
135243
|
+
// src/mcp-server/tools/servingModelsDelete.ts
|
|
135244
|
+
var args304, tool$servingModelsDelete;
|
|
135245
|
+
var init_servingModelsDelete2 = __esm(() => {
|
|
135246
|
+
init_servingModelsDelete();
|
|
134738
135247
|
init_operations();
|
|
134739
135248
|
init_tools();
|
|
134740
|
-
|
|
134741
|
-
request:
|
|
135249
|
+
args304 = {
|
|
135250
|
+
request: DeleteModelRequest$inboundSchema
|
|
134742
135251
|
};
|
|
134743
|
-
tool$
|
|
134744
|
-
name: "serving-
|
|
134745
|
-
description: `
|
|
135252
|
+
tool$servingModelsDelete = {
|
|
135253
|
+
name: "serving-models-delete",
|
|
135254
|
+
description: `Deregister a model
|
|
134746
135255
|
|
|
134747
|
-
|
|
134748
|
-
args:
|
|
134749
|
-
tool: async (client,
|
|
134750
|
-
const [result, apiCall] = await
|
|
135256
|
+
Deregister a model from the catalog.`,
|
|
135257
|
+
args: args304,
|
|
135258
|
+
tool: async (client, args305, ctx) => {
|
|
135259
|
+
const [result, apiCall] = await servingModelsDelete(client, args305.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134751
135260
|
if (!result.ok) {
|
|
134752
135261
|
return {
|
|
134753
135262
|
content: [{ type: "text", text: result.error.message }],
|
|
134754
135263
|
isError: true
|
|
134755
135264
|
};
|
|
134756
135265
|
}
|
|
134757
|
-
|
|
134758
|
-
return formatResult(value, apiCall);
|
|
135266
|
+
return formatResult(undefined, apiCall);
|
|
134759
135267
|
}
|
|
134760
135268
|
};
|
|
134761
135269
|
});
|
|
134762
135270
|
|
|
134763
|
-
// src/funcs/
|
|
134764
|
-
function
|
|
134765
|
-
return new APIPromise($
|
|
135271
|
+
// src/funcs/servingModelsGet.ts
|
|
135272
|
+
function servingModelsGet(client, request, options) {
|
|
135273
|
+
return new APIPromise($do312(client, request, options));
|
|
134766
135274
|
}
|
|
134767
|
-
async function $
|
|
134768
|
-
const parsed = safeParse4(request, (value) =>
|
|
135275
|
+
async function $do312(client, request, options) {
|
|
135276
|
+
const parsed = safeParse4(request, (value) => GetServingModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134769
135277
|
if (!parsed.ok) {
|
|
134770
135278
|
return [parsed, { status: "invalid" }];
|
|
134771
135279
|
}
|
|
@@ -134788,7 +135296,7 @@ async function $do311(client, request, options) {
|
|
|
134788
135296
|
const context = {
|
|
134789
135297
|
options: client._options,
|
|
134790
135298
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134791
|
-
operationID: "
|
|
135299
|
+
operationID: "getServingModel",
|
|
134792
135300
|
oAuth2Scopes: null,
|
|
134793
135301
|
resolvedSecurity: requestSecurity,
|
|
134794
135302
|
securitySource: client._options.bearerAuth,
|
|
@@ -134806,7 +135314,7 @@ async function $do311(client, request, options) {
|
|
|
134806
135314
|
};
|
|
134807
135315
|
const requestRes = client._createRequest(context, {
|
|
134808
135316
|
security: requestSecurity,
|
|
134809
|
-
method: "
|
|
135317
|
+
method: "GET",
|
|
134810
135318
|
baseURL: options?.serverURL,
|
|
134811
135319
|
path,
|
|
134812
135320
|
headers,
|
|
@@ -134831,14 +135339,13 @@ async function $do311(client, request, options) {
|
|
|
134831
135339
|
const responseFields = {
|
|
134832
135340
|
HttpMeta: { Response: response, Request: req }
|
|
134833
135341
|
};
|
|
134834
|
-
const [result] = await match(
|
|
135342
|
+
const [result] = await match(json(200, Model$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134835
135343
|
if (!result.ok) {
|
|
134836
135344
|
return [result, { status: "complete", request: req, response }];
|
|
134837
135345
|
}
|
|
134838
135346
|
return [result, { status: "complete", request: req, response }];
|
|
134839
135347
|
}
|
|
134840
|
-
var
|
|
134841
|
-
init_esm();
|
|
135348
|
+
var init_servingModelsGet = __esm(() => {
|
|
134842
135349
|
init_encodings();
|
|
134843
135350
|
init_http();
|
|
134844
135351
|
init_matchers();
|
|
@@ -134846,57 +135353,408 @@ var init_servingModelsDelete = __esm(() => {
|
|
|
134846
135353
|
init_schemas4();
|
|
134847
135354
|
init_security();
|
|
134848
135355
|
init_url();
|
|
135356
|
+
init_components();
|
|
134849
135357
|
init_errors4();
|
|
134850
135358
|
init_operations();
|
|
134851
135359
|
init_async();
|
|
134852
135360
|
});
|
|
134853
135361
|
|
|
134854
|
-
// src/mcp-server/tools/
|
|
134855
|
-
var
|
|
134856
|
-
var
|
|
134857
|
-
|
|
135362
|
+
// src/mcp-server/tools/servingModelsGet.ts
|
|
135363
|
+
var args305, tool$servingModelsGet;
|
|
135364
|
+
var init_servingModelsGet2 = __esm(() => {
|
|
135365
|
+
init_servingModelsGet();
|
|
134858
135366
|
init_operations();
|
|
134859
135367
|
init_tools();
|
|
134860
|
-
|
|
134861
|
-
request:
|
|
135368
|
+
args305 = {
|
|
135369
|
+
request: GetServingModelRequest$inboundSchema
|
|
134862
135370
|
};
|
|
134863
|
-
tool$
|
|
134864
|
-
name: "serving-models-
|
|
134865
|
-
description: `
|
|
135371
|
+
tool$servingModelsGet = {
|
|
135372
|
+
name: "serving-models-get",
|
|
135373
|
+
description: `Get a model
|
|
134866
135374
|
|
|
134867
|
-
|
|
134868
|
-
args:
|
|
134869
|
-
tool: async (client,
|
|
134870
|
-
const [result, apiCall] = await
|
|
135375
|
+
Retrieve a registered model.`,
|
|
135376
|
+
args: args305,
|
|
135377
|
+
tool: async (client, args306, ctx) => {
|
|
135378
|
+
const [result, apiCall] = await servingModelsGet(client, args306.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134871
135379
|
if (!result.ok) {
|
|
134872
135380
|
return {
|
|
134873
135381
|
content: [{ type: "text", text: result.error.message }],
|
|
134874
135382
|
isError: true
|
|
134875
135383
|
};
|
|
134876
135384
|
}
|
|
134877
|
-
|
|
135385
|
+
const value = result.value;
|
|
135386
|
+
return formatResult(value, apiCall);
|
|
134878
135387
|
}
|
|
134879
135388
|
};
|
|
134880
135389
|
});
|
|
134881
135390
|
|
|
134882
|
-
// src/funcs/
|
|
134883
|
-
function
|
|
134884
|
-
return new APIPromise($
|
|
135391
|
+
// src/funcs/servingModelsList.ts
|
|
135392
|
+
function servingModelsList(client, request, options) {
|
|
135393
|
+
return new APIPromise($do313(client, request, options));
|
|
134885
135394
|
}
|
|
134886
|
-
async function $
|
|
134887
|
-
const parsed = safeParse4(request, (value) =>
|
|
135395
|
+
async function $do313(client, request, options) {
|
|
135396
|
+
const parsed = safeParse4(request, (value) => ListServingModelsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135397
|
+
if (!parsed.ok) {
|
|
135398
|
+
return [parsed, { status: "invalid" }];
|
|
135399
|
+
}
|
|
135400
|
+
const payload = parsed.value;
|
|
135401
|
+
const body = null;
|
|
135402
|
+
const path = pathToFunc("/api/v1/serving/models")();
|
|
135403
|
+
const query = encodeFormQuery({
|
|
135404
|
+
cursor: payload.cursor,
|
|
135405
|
+
limit: payload.limit
|
|
135406
|
+
});
|
|
135407
|
+
const headers = new Headers(compactMap({
|
|
135408
|
+
Accept: "application/json",
|
|
135409
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135410
|
+
}));
|
|
135411
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135412
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
135413
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135414
|
+
const context = {
|
|
135415
|
+
options: client._options,
|
|
135416
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135417
|
+
operationID: "listServingModels",
|
|
135418
|
+
oAuth2Scopes: null,
|
|
135419
|
+
resolvedSecurity: requestSecurity,
|
|
135420
|
+
securitySource: client._options.bearerAuth,
|
|
135421
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
135422
|
+
strategy: "backoff",
|
|
135423
|
+
backoff: {
|
|
135424
|
+
initialInterval: 500,
|
|
135425
|
+
maxInterval: 5000,
|
|
135426
|
+
exponent: 1.5,
|
|
135427
|
+
maxElapsedTime: 15000
|
|
135428
|
+
},
|
|
135429
|
+
retryConnectionErrors: true
|
|
135430
|
+
},
|
|
135431
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
135432
|
+
};
|
|
135433
|
+
const requestRes = client._createRequest(context, {
|
|
135434
|
+
security: requestSecurity,
|
|
135435
|
+
method: "GET",
|
|
135436
|
+
baseURL: options?.serverURL,
|
|
135437
|
+
path,
|
|
135438
|
+
headers,
|
|
135439
|
+
query,
|
|
135440
|
+
body,
|
|
135441
|
+
userAgent: client._options.userAgent,
|
|
135442
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135443
|
+
}, options);
|
|
135444
|
+
if (!requestRes.ok) {
|
|
135445
|
+
return [requestRes, { status: "invalid" }];
|
|
135446
|
+
}
|
|
135447
|
+
const req = requestRes.value;
|
|
135448
|
+
const doResult = await client._do(req, {
|
|
135449
|
+
context,
|
|
135450
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
135451
|
+
retryConfig: context.retryConfig,
|
|
135452
|
+
retryCodes: context.retryCodes
|
|
135453
|
+
});
|
|
135454
|
+
if (!doResult.ok) {
|
|
135455
|
+
return [doResult, { status: "request-error", request: req }];
|
|
135456
|
+
}
|
|
135457
|
+
const response = doResult.value;
|
|
135458
|
+
const responseFields = {
|
|
135459
|
+
HttpMeta: { Response: response, Request: req }
|
|
135460
|
+
};
|
|
135461
|
+
const [result] = await match(json(200, PageModel$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135462
|
+
if (!result.ok) {
|
|
135463
|
+
return [result, { status: "complete", request: req, response }];
|
|
135464
|
+
}
|
|
135465
|
+
return [result, { status: "complete", request: req, response }];
|
|
135466
|
+
}
|
|
135467
|
+
var init_servingModelsList = __esm(() => {
|
|
135468
|
+
init_encodings();
|
|
135469
|
+
init_http();
|
|
135470
|
+
init_matchers();
|
|
135471
|
+
init_primitives();
|
|
135472
|
+
init_schemas4();
|
|
135473
|
+
init_security();
|
|
135474
|
+
init_url();
|
|
135475
|
+
init_components();
|
|
135476
|
+
init_errors4();
|
|
135477
|
+
init_operations();
|
|
135478
|
+
init_async();
|
|
135479
|
+
});
|
|
135480
|
+
|
|
135481
|
+
// src/mcp-server/tools/servingModelsList.ts
|
|
135482
|
+
var args306, tool$servingModelsList;
|
|
135483
|
+
var init_servingModelsList2 = __esm(() => {
|
|
135484
|
+
init_servingModelsList();
|
|
135485
|
+
init_operations();
|
|
135486
|
+
init_tools();
|
|
135487
|
+
args306 = {
|
|
135488
|
+
request: ListServingModelsRequest$inboundSchema
|
|
135489
|
+
};
|
|
135490
|
+
tool$servingModelsList = {
|
|
135491
|
+
name: "serving-models-list",
|
|
135492
|
+
description: `List models
|
|
135493
|
+
|
|
135494
|
+
List your registered models.`,
|
|
135495
|
+
args: args306,
|
|
135496
|
+
tool: async (client, args307, ctx) => {
|
|
135497
|
+
const [result, apiCall] = await servingModelsList(client, args307.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135498
|
+
if (!result.ok) {
|
|
135499
|
+
return {
|
|
135500
|
+
content: [{ type: "text", text: result.error.message }],
|
|
135501
|
+
isError: true
|
|
135502
|
+
};
|
|
135503
|
+
}
|
|
135504
|
+
const value = result.value;
|
|
135505
|
+
return formatResult(value, apiCall);
|
|
135506
|
+
}
|
|
135507
|
+
};
|
|
135508
|
+
});
|
|
135509
|
+
|
|
135510
|
+
// src/funcs/servingModelsRegister.ts
|
|
135511
|
+
function servingModelsRegister(client, request, options) {
|
|
135512
|
+
return new APIPromise($do314(client, request, options));
|
|
135513
|
+
}
|
|
135514
|
+
async function $do314(client, request, options) {
|
|
135515
|
+
const parsed = safeParse4(request, (value) => RegisterModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135516
|
+
if (!parsed.ok) {
|
|
135517
|
+
return [parsed, { status: "invalid" }];
|
|
135518
|
+
}
|
|
135519
|
+
const payload = parsed.value;
|
|
135520
|
+
const body = encodeJSON("body", payload.ModelRegister, { explode: true });
|
|
135521
|
+
const path = pathToFunc("/api/v1/serving/models")();
|
|
135522
|
+
const headers = new Headers(compactMap({
|
|
135523
|
+
"Content-Type": "application/json",
|
|
135524
|
+
Accept: "application/json",
|
|
135525
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135526
|
+
}));
|
|
135527
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135528
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
135529
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135530
|
+
const context = {
|
|
135531
|
+
options: client._options,
|
|
135532
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135533
|
+
operationID: "registerModel",
|
|
135534
|
+
oAuth2Scopes: null,
|
|
135535
|
+
resolvedSecurity: requestSecurity,
|
|
135536
|
+
securitySource: client._options.bearerAuth,
|
|
135537
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
135538
|
+
strategy: "backoff",
|
|
135539
|
+
backoff: {
|
|
135540
|
+
initialInterval: 500,
|
|
135541
|
+
maxInterval: 5000,
|
|
135542
|
+
exponent: 1.5,
|
|
135543
|
+
maxElapsedTime: 15000
|
|
135544
|
+
},
|
|
135545
|
+
retryConnectionErrors: true
|
|
135546
|
+
},
|
|
135547
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
135548
|
+
};
|
|
135549
|
+
const requestRes = client._createRequest(context, {
|
|
135550
|
+
security: requestSecurity,
|
|
135551
|
+
method: "POST",
|
|
135552
|
+
baseURL: options?.serverURL,
|
|
135553
|
+
path,
|
|
135554
|
+
headers,
|
|
135555
|
+
body,
|
|
135556
|
+
userAgent: client._options.userAgent,
|
|
135557
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135558
|
+
}, options);
|
|
135559
|
+
if (!requestRes.ok) {
|
|
135560
|
+
return [requestRes, { status: "invalid" }];
|
|
135561
|
+
}
|
|
135562
|
+
const req = requestRes.value;
|
|
135563
|
+
const doResult = await client._do(req, {
|
|
135564
|
+
context,
|
|
135565
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
135566
|
+
retryConfig: context.retryConfig,
|
|
135567
|
+
retryCodes: context.retryCodes
|
|
135568
|
+
});
|
|
135569
|
+
if (!doResult.ok) {
|
|
135570
|
+
return [doResult, { status: "request-error", request: req }];
|
|
135571
|
+
}
|
|
135572
|
+
const response = doResult.value;
|
|
135573
|
+
const responseFields = {
|
|
135574
|
+
HttpMeta: { Response: response, Request: req }
|
|
135575
|
+
};
|
|
135576
|
+
const [result] = await match(json(201, Model$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135577
|
+
if (!result.ok) {
|
|
135578
|
+
return [result, { status: "complete", request: req, response }];
|
|
135579
|
+
}
|
|
135580
|
+
return [result, { status: "complete", request: req, response }];
|
|
135581
|
+
}
|
|
135582
|
+
var init_servingModelsRegister = __esm(() => {
|
|
135583
|
+
init_encodings();
|
|
135584
|
+
init_http();
|
|
135585
|
+
init_matchers();
|
|
135586
|
+
init_primitives();
|
|
135587
|
+
init_schemas4();
|
|
135588
|
+
init_security();
|
|
135589
|
+
init_url();
|
|
135590
|
+
init_components();
|
|
135591
|
+
init_errors4();
|
|
135592
|
+
init_operations();
|
|
135593
|
+
init_async();
|
|
135594
|
+
});
|
|
135595
|
+
|
|
135596
|
+
// src/mcp-server/tools/servingModelsRegister.ts
|
|
135597
|
+
var args307, tool$servingModelsRegister;
|
|
135598
|
+
var init_servingModelsRegister2 = __esm(() => {
|
|
135599
|
+
init_servingModelsRegister();
|
|
135600
|
+
init_operations();
|
|
135601
|
+
init_tools();
|
|
135602
|
+
args307 = {
|
|
135603
|
+
request: RegisterModelRequest$inboundSchema
|
|
135604
|
+
};
|
|
135605
|
+
tool$servingModelsRegister = {
|
|
135606
|
+
name: "serving-models-register",
|
|
135607
|
+
description: `Register a model
|
|
135608
|
+
|
|
135609
|
+
Register a model (from a source or volume) so it can be deployed or fine-tuned.`,
|
|
135610
|
+
args: args307,
|
|
135611
|
+
tool: async (client, args308, ctx) => {
|
|
135612
|
+
const [result, apiCall] = await servingModelsRegister(client, args308.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135613
|
+
if (!result.ok) {
|
|
135614
|
+
return {
|
|
135615
|
+
content: [{ type: "text", text: result.error.message }],
|
|
135616
|
+
isError: true
|
|
135617
|
+
};
|
|
135618
|
+
}
|
|
135619
|
+
const value = result.value;
|
|
135620
|
+
return formatResult(value, apiCall);
|
|
135621
|
+
}
|
|
135622
|
+
};
|
|
135623
|
+
});
|
|
135624
|
+
|
|
135625
|
+
// src/funcs/servingSecretsCreate.ts
|
|
135626
|
+
function servingSecretsCreate(client, request, options) {
|
|
135627
|
+
return new APIPromise($do315(client, request, options));
|
|
135628
|
+
}
|
|
135629
|
+
async function $do315(client, request, options) {
|
|
135630
|
+
const parsed = safeParse4(request, (value) => CreateSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135631
|
+
if (!parsed.ok) {
|
|
135632
|
+
return [parsed, { status: "invalid" }];
|
|
135633
|
+
}
|
|
135634
|
+
const payload = parsed.value;
|
|
135635
|
+
const body = encodeJSON("body", payload.SecretCreate, { explode: true });
|
|
135636
|
+
const path = pathToFunc("/api/v1/serving/secrets")();
|
|
135637
|
+
const headers = new Headers(compactMap({
|
|
135638
|
+
"Content-Type": "application/json",
|
|
135639
|
+
Accept: "application/json",
|
|
135640
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135641
|
+
}));
|
|
135642
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135643
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
135644
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135645
|
+
const context = {
|
|
135646
|
+
options: client._options,
|
|
135647
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135648
|
+
operationID: "createSecret",
|
|
135649
|
+
oAuth2Scopes: null,
|
|
135650
|
+
resolvedSecurity: requestSecurity,
|
|
135651
|
+
securitySource: client._options.bearerAuth,
|
|
135652
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
135653
|
+
strategy: "backoff",
|
|
135654
|
+
backoff: {
|
|
135655
|
+
initialInterval: 500,
|
|
135656
|
+
maxInterval: 5000,
|
|
135657
|
+
exponent: 1.5,
|
|
135658
|
+
maxElapsedTime: 15000
|
|
135659
|
+
},
|
|
135660
|
+
retryConnectionErrors: true
|
|
135661
|
+
},
|
|
135662
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
135663
|
+
};
|
|
135664
|
+
const requestRes = client._createRequest(context, {
|
|
135665
|
+
security: requestSecurity,
|
|
135666
|
+
method: "POST",
|
|
135667
|
+
baseURL: options?.serverURL,
|
|
135668
|
+
path,
|
|
135669
|
+
headers,
|
|
135670
|
+
body,
|
|
135671
|
+
userAgent: client._options.userAgent,
|
|
135672
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135673
|
+
}, options);
|
|
135674
|
+
if (!requestRes.ok) {
|
|
135675
|
+
return [requestRes, { status: "invalid" }];
|
|
135676
|
+
}
|
|
135677
|
+
const req = requestRes.value;
|
|
135678
|
+
const doResult = await client._do(req, {
|
|
135679
|
+
context,
|
|
135680
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
135681
|
+
retryConfig: context.retryConfig,
|
|
135682
|
+
retryCodes: context.retryCodes
|
|
135683
|
+
});
|
|
135684
|
+
if (!doResult.ok) {
|
|
135685
|
+
return [doResult, { status: "request-error", request: req }];
|
|
135686
|
+
}
|
|
135687
|
+
const response = doResult.value;
|
|
135688
|
+
const responseFields = {
|
|
135689
|
+
HttpMeta: { Response: response, Request: req }
|
|
135690
|
+
};
|
|
135691
|
+
const [result] = await match(json(201, Secret$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135692
|
+
if (!result.ok) {
|
|
135693
|
+
return [result, { status: "complete", request: req, response }];
|
|
135694
|
+
}
|
|
135695
|
+
return [result, { status: "complete", request: req, response }];
|
|
135696
|
+
}
|
|
135697
|
+
var init_servingSecretsCreate = __esm(() => {
|
|
135698
|
+
init_encodings();
|
|
135699
|
+
init_http();
|
|
135700
|
+
init_matchers();
|
|
135701
|
+
init_primitives();
|
|
135702
|
+
init_schemas4();
|
|
135703
|
+
init_security();
|
|
135704
|
+
init_url();
|
|
135705
|
+
init_components();
|
|
135706
|
+
init_errors4();
|
|
135707
|
+
init_operations();
|
|
135708
|
+
init_async();
|
|
135709
|
+
});
|
|
135710
|
+
|
|
135711
|
+
// src/mcp-server/tools/servingSecretsCreate.ts
|
|
135712
|
+
var args308, tool$servingSecretsCreate;
|
|
135713
|
+
var init_servingSecretsCreate2 = __esm(() => {
|
|
135714
|
+
init_servingSecretsCreate();
|
|
135715
|
+
init_operations();
|
|
135716
|
+
init_tools();
|
|
135717
|
+
args308 = {
|
|
135718
|
+
request: CreateSecretRequest$inboundSchema
|
|
135719
|
+
};
|
|
135720
|
+
tool$servingSecretsCreate = {
|
|
135721
|
+
name: "serving-secrets-create",
|
|
135722
|
+
description: `Create a secret
|
|
135723
|
+
|
|
135724
|
+
Create a secret whose values are injected into your workloads as env vars.`,
|
|
135725
|
+
args: args308,
|
|
135726
|
+
tool: async (client, args309, ctx) => {
|
|
135727
|
+
const [result, apiCall] = await servingSecretsCreate(client, args309.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135728
|
+
if (!result.ok) {
|
|
135729
|
+
return {
|
|
135730
|
+
content: [{ type: "text", text: result.error.message }],
|
|
135731
|
+
isError: true
|
|
135732
|
+
};
|
|
135733
|
+
}
|
|
135734
|
+
const value = result.value;
|
|
135735
|
+
return formatResult(value, apiCall);
|
|
135736
|
+
}
|
|
135737
|
+
};
|
|
135738
|
+
});
|
|
135739
|
+
|
|
135740
|
+
// src/funcs/servingSecretsDelete.ts
|
|
135741
|
+
function servingSecretsDelete(client, request, options) {
|
|
135742
|
+
return new APIPromise($do316(client, request, options));
|
|
135743
|
+
}
|
|
135744
|
+
async function $do316(client, request, options) {
|
|
135745
|
+
const parsed = safeParse4(request, (value) => DeleteSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134888
135746
|
if (!parsed.ok) {
|
|
134889
135747
|
return [parsed, { status: "invalid" }];
|
|
134890
135748
|
}
|
|
134891
135749
|
const payload = parsed.value;
|
|
134892
135750
|
const body = null;
|
|
134893
135751
|
const pathParams = {
|
|
134894
|
-
|
|
135752
|
+
secret_id: encodeSimple("secret_id", payload.secret_id, {
|
|
134895
135753
|
explode: false,
|
|
134896
135754
|
charEncoding: "percent"
|
|
134897
135755
|
})
|
|
134898
135756
|
};
|
|
134899
|
-
const path = pathToFunc("/api/v1/serving/
|
|
135757
|
+
const path = pathToFunc("/api/v1/serving/secrets/{secret_id}")(pathParams);
|
|
134900
135758
|
const headers = new Headers(compactMap({
|
|
134901
135759
|
Accept: "application/json",
|
|
134902
135760
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -134907,7 +135765,124 @@ async function $do312(client, request, options) {
|
|
|
134907
135765
|
const context = {
|
|
134908
135766
|
options: client._options,
|
|
134909
135767
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134910
|
-
operationID: "
|
|
135768
|
+
operationID: "deleteSecret",
|
|
135769
|
+
oAuth2Scopes: null,
|
|
135770
|
+
resolvedSecurity: requestSecurity,
|
|
135771
|
+
securitySource: client._options.bearerAuth,
|
|
135772
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
135773
|
+
strategy: "backoff",
|
|
135774
|
+
backoff: {
|
|
135775
|
+
initialInterval: 500,
|
|
135776
|
+
maxInterval: 5000,
|
|
135777
|
+
exponent: 1.5,
|
|
135778
|
+
maxElapsedTime: 15000
|
|
135779
|
+
},
|
|
135780
|
+
retryConnectionErrors: true
|
|
135781
|
+
},
|
|
135782
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
135783
|
+
};
|
|
135784
|
+
const requestRes = client._createRequest(context, {
|
|
135785
|
+
security: requestSecurity,
|
|
135786
|
+
method: "DELETE",
|
|
135787
|
+
baseURL: options?.serverURL,
|
|
135788
|
+
path,
|
|
135789
|
+
headers,
|
|
135790
|
+
body,
|
|
135791
|
+
userAgent: client._options.userAgent,
|
|
135792
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135793
|
+
}, options);
|
|
135794
|
+
if (!requestRes.ok) {
|
|
135795
|
+
return [requestRes, { status: "invalid" }];
|
|
135796
|
+
}
|
|
135797
|
+
const req = requestRes.value;
|
|
135798
|
+
const doResult = await client._do(req, {
|
|
135799
|
+
context,
|
|
135800
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
135801
|
+
retryConfig: context.retryConfig,
|
|
135802
|
+
retryCodes: context.retryCodes
|
|
135803
|
+
});
|
|
135804
|
+
if (!doResult.ok) {
|
|
135805
|
+
return [doResult, { status: "request-error", request: req }];
|
|
135806
|
+
}
|
|
135807
|
+
const response = doResult.value;
|
|
135808
|
+
const responseFields = {
|
|
135809
|
+
HttpMeta: { Response: response, Request: req }
|
|
135810
|
+
};
|
|
135811
|
+
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 });
|
|
135812
|
+
if (!result.ok) {
|
|
135813
|
+
return [result, { status: "complete", request: req, response }];
|
|
135814
|
+
}
|
|
135815
|
+
return [result, { status: "complete", request: req, response }];
|
|
135816
|
+
}
|
|
135817
|
+
var init_servingSecretsDelete = __esm(() => {
|
|
135818
|
+
init_esm();
|
|
135819
|
+
init_encodings();
|
|
135820
|
+
init_http();
|
|
135821
|
+
init_matchers();
|
|
135822
|
+
init_primitives();
|
|
135823
|
+
init_schemas4();
|
|
135824
|
+
init_security();
|
|
135825
|
+
init_url();
|
|
135826
|
+
init_errors4();
|
|
135827
|
+
init_operations();
|
|
135828
|
+
init_async();
|
|
135829
|
+
});
|
|
135830
|
+
|
|
135831
|
+
// src/mcp-server/tools/servingSecretsDelete.ts
|
|
135832
|
+
var args309, tool$servingSecretsDelete;
|
|
135833
|
+
var init_servingSecretsDelete2 = __esm(() => {
|
|
135834
|
+
init_servingSecretsDelete();
|
|
135835
|
+
init_operations();
|
|
135836
|
+
init_tools();
|
|
135837
|
+
args309 = {
|
|
135838
|
+
request: DeleteSecretRequest$inboundSchema
|
|
135839
|
+
};
|
|
135840
|
+
tool$servingSecretsDelete = {
|
|
135841
|
+
name: "serving-secrets-delete",
|
|
135842
|
+
description: `Delete a secret
|
|
135843
|
+
|
|
135844
|
+
Delete a secret.`,
|
|
135845
|
+
args: args309,
|
|
135846
|
+
tool: async (client, args310, ctx) => {
|
|
135847
|
+
const [result, apiCall] = await servingSecretsDelete(client, args310.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135848
|
+
if (!result.ok) {
|
|
135849
|
+
return {
|
|
135850
|
+
content: [{ type: "text", text: result.error.message }],
|
|
135851
|
+
isError: true
|
|
135852
|
+
};
|
|
135853
|
+
}
|
|
135854
|
+
return formatResult(undefined, apiCall);
|
|
135855
|
+
}
|
|
135856
|
+
};
|
|
135857
|
+
});
|
|
135858
|
+
|
|
135859
|
+
// src/funcs/servingSecretsList.ts
|
|
135860
|
+
function servingSecretsList(client, request, options) {
|
|
135861
|
+
return new APIPromise($do317(client, request, options));
|
|
135862
|
+
}
|
|
135863
|
+
async function $do317(client, request, options) {
|
|
135864
|
+
const parsed = safeParse4(request, (value) => ListSecretsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135865
|
+
if (!parsed.ok) {
|
|
135866
|
+
return [parsed, { status: "invalid" }];
|
|
135867
|
+
}
|
|
135868
|
+
const payload = parsed.value;
|
|
135869
|
+
const body = null;
|
|
135870
|
+
const path = pathToFunc("/api/v1/serving/secrets")();
|
|
135871
|
+
const query = encodeFormQuery({
|
|
135872
|
+
cursor: payload.cursor,
|
|
135873
|
+
limit: payload.limit
|
|
135874
|
+
});
|
|
135875
|
+
const headers = new Headers(compactMap({
|
|
135876
|
+
Accept: "application/json",
|
|
135877
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135878
|
+
}));
|
|
135879
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135880
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
135881
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135882
|
+
const context = {
|
|
135883
|
+
options: client._options,
|
|
135884
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135885
|
+
operationID: "listSecrets",
|
|
134911
135886
|
oAuth2Scopes: null,
|
|
134912
135887
|
resolvedSecurity: requestSecurity,
|
|
134913
135888
|
securitySource: client._options.bearerAuth,
|
|
@@ -134929,6 +135904,7 @@ async function $do312(client, request, options) {
|
|
|
134929
135904
|
baseURL: options?.serverURL,
|
|
134930
135905
|
path,
|
|
134931
135906
|
headers,
|
|
135907
|
+
query,
|
|
134932
135908
|
body,
|
|
134933
135909
|
userAgent: client._options.userAgent,
|
|
134934
135910
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -134950,13 +135926,13 @@ async function $do312(client, request, options) {
|
|
|
134950
135926
|
const responseFields = {
|
|
134951
135927
|
HttpMeta: { Response: response, Request: req }
|
|
134952
135928
|
};
|
|
134953
|
-
const [result] = await match(json(200,
|
|
135929
|
+
const [result] = await match(json(200, PageSecret$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134954
135930
|
if (!result.ok) {
|
|
134955
135931
|
return [result, { status: "complete", request: req, response }];
|
|
134956
135932
|
}
|
|
134957
135933
|
return [result, { status: "complete", request: req, response }];
|
|
134958
135934
|
}
|
|
134959
|
-
var
|
|
135935
|
+
var init_servingSecretsList = __esm(() => {
|
|
134960
135936
|
init_encodings();
|
|
134961
135937
|
init_http();
|
|
134962
135938
|
init_matchers();
|
|
@@ -134970,23 +135946,23 @@ var init_servingModelsGet = __esm(() => {
|
|
|
134970
135946
|
init_async();
|
|
134971
135947
|
});
|
|
134972
135948
|
|
|
134973
|
-
// src/mcp-server/tools/
|
|
134974
|
-
var
|
|
134975
|
-
var
|
|
134976
|
-
|
|
135949
|
+
// src/mcp-server/tools/servingSecretsList.ts
|
|
135950
|
+
var args310, tool$servingSecretsList;
|
|
135951
|
+
var init_servingSecretsList2 = __esm(() => {
|
|
135952
|
+
init_servingSecretsList();
|
|
134977
135953
|
init_operations();
|
|
134978
135954
|
init_tools();
|
|
134979
|
-
|
|
134980
|
-
request:
|
|
135955
|
+
args310 = {
|
|
135956
|
+
request: ListSecretsRequest$inboundSchema
|
|
134981
135957
|
};
|
|
134982
|
-
tool$
|
|
134983
|
-
name: "serving-
|
|
134984
|
-
description: `
|
|
135958
|
+
tool$servingSecretsList = {
|
|
135959
|
+
name: "serving-secrets-list",
|
|
135960
|
+
description: `List secrets (names only)
|
|
134985
135961
|
|
|
134986
|
-
|
|
134987
|
-
args:
|
|
134988
|
-
tool: async (client,
|
|
134989
|
-
const [result, apiCall] = await
|
|
135962
|
+
List your secrets by name (values are never returned).`,
|
|
135963
|
+
args: args310,
|
|
135964
|
+
tool: async (client, args311, ctx) => {
|
|
135965
|
+
const [result, apiCall] = await servingSecretsList(client, args311.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134990
135966
|
if (!result.ok) {
|
|
134991
135967
|
return {
|
|
134992
135968
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -134999,23 +135975,28 @@ Retrieve a registered model.`,
|
|
|
134999
135975
|
};
|
|
135000
135976
|
});
|
|
135001
135977
|
|
|
135002
|
-
// src/funcs/
|
|
135003
|
-
function
|
|
135004
|
-
return new APIPromise($
|
|
135978
|
+
// src/funcs/servingTenantsDeleteOrganization.ts
|
|
135979
|
+
function servingTenantsDeleteOrganization(client, request, options) {
|
|
135980
|
+
return new APIPromise($do318(client, request, options));
|
|
135005
135981
|
}
|
|
135006
|
-
async function $
|
|
135007
|
-
const parsed = safeParse4(request, (value) =>
|
|
135982
|
+
async function $do318(client, request, options) {
|
|
135983
|
+
const parsed = safeParse4(request, (value) => DeleteServingOrganizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135008
135984
|
if (!parsed.ok) {
|
|
135009
135985
|
return [parsed, { status: "invalid" }];
|
|
135010
135986
|
}
|
|
135011
135987
|
const payload = parsed.value;
|
|
135012
|
-
const body =
|
|
135013
|
-
|
|
135014
|
-
const query = encodeFormQuery({
|
|
135015
|
-
cursor: payload.cursor,
|
|
135016
|
-
limit: payload.limit
|
|
135988
|
+
const body = encodeJSON("body", payload.ServingOrgDeletionRequest, {
|
|
135989
|
+
explode: true
|
|
135017
135990
|
});
|
|
135991
|
+
const pathParams = {
|
|
135992
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
135993
|
+
explode: false,
|
|
135994
|
+
charEncoding: "percent"
|
|
135995
|
+
})
|
|
135996
|
+
};
|
|
135997
|
+
const path = pathToFunc("/api/v1/serving/tenants/{org_id}/deletion")(pathParams);
|
|
135018
135998
|
const headers = new Headers(compactMap({
|
|
135999
|
+
"Content-Type": "application/json",
|
|
135019
136000
|
Accept: "application/json",
|
|
135020
136001
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135021
136002
|
}));
|
|
@@ -135025,7 +136006,7 @@ async function $do313(client, request, options) {
|
|
|
135025
136006
|
const context = {
|
|
135026
136007
|
options: client._options,
|
|
135027
136008
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135028
|
-
operationID: "
|
|
136009
|
+
operationID: "deleteServingOrganization",
|
|
135029
136010
|
oAuth2Scopes: null,
|
|
135030
136011
|
resolvedSecurity: requestSecurity,
|
|
135031
136012
|
securitySource: client._options.bearerAuth,
|
|
@@ -135043,11 +136024,10 @@ async function $do313(client, request, options) {
|
|
|
135043
136024
|
};
|
|
135044
136025
|
const requestRes = client._createRequest(context, {
|
|
135045
136026
|
security: requestSecurity,
|
|
135046
|
-
method: "
|
|
136027
|
+
method: "POST",
|
|
135047
136028
|
baseURL: options?.serverURL,
|
|
135048
136029
|
path,
|
|
135049
136030
|
headers,
|
|
135050
|
-
query,
|
|
135051
136031
|
body,
|
|
135052
136032
|
userAgent: client._options.userAgent,
|
|
135053
136033
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -135069,13 +136049,13 @@ async function $do313(client, request, options) {
|
|
|
135069
136049
|
const responseFields = {
|
|
135070
136050
|
HttpMeta: { Response: response, Request: req }
|
|
135071
136051
|
};
|
|
135072
|
-
const [result] = await match(json(
|
|
136052
|
+
const [result] = await match(json(202, ServingOrgTeardown$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr(503, ServingError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135073
136053
|
if (!result.ok) {
|
|
135074
136054
|
return [result, { status: "complete", request: req, response }];
|
|
135075
136055
|
}
|
|
135076
136056
|
return [result, { status: "complete", request: req, response }];
|
|
135077
136057
|
}
|
|
135078
|
-
var
|
|
136058
|
+
var init_servingTenantsDeleteOrganization = __esm(() => {
|
|
135079
136059
|
init_encodings();
|
|
135080
136060
|
init_http();
|
|
135081
136061
|
init_matchers();
|
|
@@ -135089,23 +136069,23 @@ var init_servingModelsList = __esm(() => {
|
|
|
135089
136069
|
init_async();
|
|
135090
136070
|
});
|
|
135091
136071
|
|
|
135092
|
-
// src/mcp-server/tools/
|
|
135093
|
-
var
|
|
135094
|
-
var
|
|
135095
|
-
|
|
136072
|
+
// src/mcp-server/tools/servingTenantsDeleteOrganization.ts
|
|
136073
|
+
var args311, tool$servingTenantsDeleteOrganization;
|
|
136074
|
+
var init_servingTenantsDeleteOrganization2 = __esm(() => {
|
|
136075
|
+
init_servingTenantsDeleteOrganization();
|
|
135096
136076
|
init_operations();
|
|
135097
136077
|
init_tools();
|
|
135098
|
-
|
|
135099
|
-
request:
|
|
136078
|
+
args311 = {
|
|
136079
|
+
request: DeleteServingOrganizationRequest$inboundSchema
|
|
135100
136080
|
};
|
|
135101
|
-
tool$
|
|
135102
|
-
name: "serving-
|
|
135103
|
-
description: `
|
|
136081
|
+
tool$servingTenantsDeleteOrganization = {
|
|
136082
|
+
name: "serving-tenants-delete-organization",
|
|
136083
|
+
description: `Trigger organization deletion teardown
|
|
135104
136084
|
|
|
135105
|
-
|
|
135106
|
-
args:
|
|
135107
|
-
tool: async (client,
|
|
135108
|
-
const [result, apiCall] = await
|
|
136085
|
+
Durably records an organization.deleted.v1 event and starts (or adopts) the mandatory teardown cascade: the organization is fenced against new work and every deployment is tombstoned and wound down, while all pricing, budget, spend, and usage records are preserved. Idempotent by event id. Cluster administrators only.`,
|
|
136086
|
+
args: args311,
|
|
136087
|
+
tool: async (client, args312, ctx) => {
|
|
136088
|
+
const [result, apiCall] = await servingTenantsDeleteOrganization(client, args312.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135109
136089
|
if (!result.ok) {
|
|
135110
136090
|
return {
|
|
135111
136091
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135118,20 +136098,25 @@ List your registered models.`,
|
|
|
135118
136098
|
};
|
|
135119
136099
|
});
|
|
135120
136100
|
|
|
135121
|
-
// src/funcs/
|
|
135122
|
-
function
|
|
135123
|
-
return new APIPromise($
|
|
136101
|
+
// src/funcs/servingTenantsGet.ts
|
|
136102
|
+
function servingTenantsGet(client, request, options) {
|
|
136103
|
+
return new APIPromise($do319(client, request, options));
|
|
135124
136104
|
}
|
|
135125
|
-
async function $
|
|
135126
|
-
const parsed = safeParse4(request, (value) =>
|
|
136105
|
+
async function $do319(client, request, options) {
|
|
136106
|
+
const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135127
136107
|
if (!parsed.ok) {
|
|
135128
136108
|
return [parsed, { status: "invalid" }];
|
|
135129
136109
|
}
|
|
135130
136110
|
const payload = parsed.value;
|
|
135131
|
-
const body =
|
|
135132
|
-
const
|
|
136111
|
+
const body = null;
|
|
136112
|
+
const pathParams = {
|
|
136113
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
136114
|
+
explode: false,
|
|
136115
|
+
charEncoding: "percent"
|
|
136116
|
+
})
|
|
136117
|
+
};
|
|
136118
|
+
const path = pathToFunc("/api/v1/serving/tenants/{org_id}")(pathParams);
|
|
135133
136119
|
const headers = new Headers(compactMap({
|
|
135134
|
-
"Content-Type": "application/json",
|
|
135135
136120
|
Accept: "application/json",
|
|
135136
136121
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135137
136122
|
}));
|
|
@@ -135141,7 +136126,7 @@ async function $do314(client, request, options) {
|
|
|
135141
136126
|
const context = {
|
|
135142
136127
|
options: client._options,
|
|
135143
136128
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135144
|
-
operationID: "
|
|
136129
|
+
operationID: "getServingTenant",
|
|
135145
136130
|
oAuth2Scopes: null,
|
|
135146
136131
|
resolvedSecurity: requestSecurity,
|
|
135147
136132
|
securitySource: client._options.bearerAuth,
|
|
@@ -135159,7 +136144,7 @@ async function $do314(client, request, options) {
|
|
|
135159
136144
|
};
|
|
135160
136145
|
const requestRes = client._createRequest(context, {
|
|
135161
136146
|
security: requestSecurity,
|
|
135162
|
-
method: "
|
|
136147
|
+
method: "GET",
|
|
135163
136148
|
baseURL: options?.serverURL,
|
|
135164
136149
|
path,
|
|
135165
136150
|
headers,
|
|
@@ -135184,13 +136169,13 @@ async function $do314(client, request, options) {
|
|
|
135184
136169
|
const responseFields = {
|
|
135185
136170
|
HttpMeta: { Response: response, Request: req }
|
|
135186
136171
|
};
|
|
135187
|
-
const [result] = await match(json(
|
|
136172
|
+
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 });
|
|
135188
136173
|
if (!result.ok) {
|
|
135189
136174
|
return [result, { status: "complete", request: req, response }];
|
|
135190
136175
|
}
|
|
135191
136176
|
return [result, { status: "complete", request: req, response }];
|
|
135192
136177
|
}
|
|
135193
|
-
var
|
|
136178
|
+
var init_servingTenantsGet = __esm(() => {
|
|
135194
136179
|
init_encodings();
|
|
135195
136180
|
init_http();
|
|
135196
136181
|
init_matchers();
|
|
@@ -135204,23 +136189,23 @@ var init_servingModelsRegister = __esm(() => {
|
|
|
135204
136189
|
init_async();
|
|
135205
136190
|
});
|
|
135206
136191
|
|
|
135207
|
-
// src/mcp-server/tools/
|
|
135208
|
-
var
|
|
135209
|
-
var
|
|
135210
|
-
|
|
136192
|
+
// src/mcp-server/tools/servingTenantsGet.ts
|
|
136193
|
+
var args312, tool$servingTenantsGet;
|
|
136194
|
+
var init_servingTenantsGet2 = __esm(() => {
|
|
136195
|
+
init_servingTenantsGet();
|
|
135211
136196
|
init_operations();
|
|
135212
136197
|
init_tools();
|
|
135213
|
-
|
|
135214
|
-
request:
|
|
136198
|
+
args312 = {
|
|
136199
|
+
request: GetServingTenantRequest$inboundSchema
|
|
135215
136200
|
};
|
|
135216
|
-
tool$
|
|
135217
|
-
name: "serving-
|
|
135218
|
-
description: `
|
|
136201
|
+
tool$servingTenantsGet = {
|
|
136202
|
+
name: "serving-tenants-get",
|
|
136203
|
+
description: `Get a serving tenant
|
|
135219
136204
|
|
|
135220
|
-
|
|
135221
|
-
args:
|
|
135222
|
-
tool: async (client,
|
|
135223
|
-
const [result, apiCall] = await
|
|
136205
|
+
Get one organization's serving enablement record. Cluster administrators only.`,
|
|
136206
|
+
args: args312,
|
|
136207
|
+
tool: async (client, args313, ctx) => {
|
|
136208
|
+
const [result, apiCall] = await servingTenantsGet(client, args313.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135224
136209
|
if (!result.ok) {
|
|
135225
136210
|
return {
|
|
135226
136211
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135233,20 +136218,25 @@ Register a model (from a source or volume) so it can be deployed or fine-tuned.`
|
|
|
135233
136218
|
};
|
|
135234
136219
|
});
|
|
135235
136220
|
|
|
135236
|
-
// src/funcs/
|
|
135237
|
-
function
|
|
135238
|
-
return new APIPromise($
|
|
136221
|
+
// src/funcs/servingTenantsGetOrganizationDeletion.ts
|
|
136222
|
+
function servingTenantsGetOrganizationDeletion(client, request, options) {
|
|
136223
|
+
return new APIPromise($do320(client, request, options));
|
|
135239
136224
|
}
|
|
135240
|
-
async function $
|
|
135241
|
-
const parsed = safeParse4(request, (value) =>
|
|
136225
|
+
async function $do320(client, request, options) {
|
|
136226
|
+
const parsed = safeParse4(request, (value) => GetServingOrganizationDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135242
136227
|
if (!parsed.ok) {
|
|
135243
136228
|
return [parsed, { status: "invalid" }];
|
|
135244
136229
|
}
|
|
135245
136230
|
const payload = parsed.value;
|
|
135246
|
-
const body =
|
|
135247
|
-
const
|
|
136231
|
+
const body = null;
|
|
136232
|
+
const pathParams = {
|
|
136233
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
136234
|
+
explode: false,
|
|
136235
|
+
charEncoding: "percent"
|
|
136236
|
+
})
|
|
136237
|
+
};
|
|
136238
|
+
const path = pathToFunc("/api/v1/serving/tenants/{org_id}/deletion")(pathParams);
|
|
135248
136239
|
const headers = new Headers(compactMap({
|
|
135249
|
-
"Content-Type": "application/json",
|
|
135250
136240
|
Accept: "application/json",
|
|
135251
136241
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135252
136242
|
}));
|
|
@@ -135256,7 +136246,7 @@ async function $do315(client, request, options) {
|
|
|
135256
136246
|
const context = {
|
|
135257
136247
|
options: client._options,
|
|
135258
136248
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135259
|
-
operationID: "
|
|
136249
|
+
operationID: "getServingOrganizationDeletion",
|
|
135260
136250
|
oAuth2Scopes: null,
|
|
135261
136251
|
resolvedSecurity: requestSecurity,
|
|
135262
136252
|
securitySource: client._options.bearerAuth,
|
|
@@ -135274,7 +136264,7 @@ async function $do315(client, request, options) {
|
|
|
135274
136264
|
};
|
|
135275
136265
|
const requestRes = client._createRequest(context, {
|
|
135276
136266
|
security: requestSecurity,
|
|
135277
|
-
method: "
|
|
136267
|
+
method: "GET",
|
|
135278
136268
|
baseURL: options?.serverURL,
|
|
135279
136269
|
path,
|
|
135280
136270
|
headers,
|
|
@@ -135299,13 +136289,13 @@ async function $do315(client, request, options) {
|
|
|
135299
136289
|
const responseFields = {
|
|
135300
136290
|
HttpMeta: { Response: response, Request: req }
|
|
135301
136291
|
};
|
|
135302
|
-
const [result] = await match(json(
|
|
136292
|
+
const [result] = await match(json(200, ServingOrgTeardown$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135303
136293
|
if (!result.ok) {
|
|
135304
136294
|
return [result, { status: "complete", request: req, response }];
|
|
135305
136295
|
}
|
|
135306
136296
|
return [result, { status: "complete", request: req, response }];
|
|
135307
136297
|
}
|
|
135308
|
-
var
|
|
136298
|
+
var init_servingTenantsGetOrganizationDeletion = __esm(() => {
|
|
135309
136299
|
init_encodings();
|
|
135310
136300
|
init_http();
|
|
135311
136301
|
init_matchers();
|
|
@@ -135319,23 +136309,23 @@ var init_servingSecretsCreate = __esm(() => {
|
|
|
135319
136309
|
init_async();
|
|
135320
136310
|
});
|
|
135321
136311
|
|
|
135322
|
-
// src/mcp-server/tools/
|
|
135323
|
-
var
|
|
135324
|
-
var
|
|
135325
|
-
|
|
136312
|
+
// src/mcp-server/tools/servingTenantsGetOrganizationDeletion.ts
|
|
136313
|
+
var args313, tool$servingTenantsGetOrganizationDeletion;
|
|
136314
|
+
var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
|
|
136315
|
+
init_servingTenantsGetOrganizationDeletion();
|
|
135326
136316
|
init_operations();
|
|
135327
136317
|
init_tools();
|
|
135328
|
-
|
|
135329
|
-
request:
|
|
136318
|
+
args313 = {
|
|
136319
|
+
request: GetServingOrganizationDeletionRequest$inboundSchema
|
|
135330
136320
|
};
|
|
135331
|
-
tool$
|
|
135332
|
-
name: "serving-
|
|
135333
|
-
description: `
|
|
136321
|
+
tool$servingTenantsGetOrganizationDeletion = {
|
|
136322
|
+
name: "serving-tenants-get-organization-deletion",
|
|
136323
|
+
description: `Get organization deletion teardown state
|
|
135334
136324
|
|
|
135335
|
-
|
|
135336
|
-
args:
|
|
135337
|
-
tool: async (client,
|
|
135338
|
-
const [result, apiCall] = await
|
|
136325
|
+
Returns the durable teardown-cascade state for an organization (running or complete), so a cluster administrator can confirm offboarding progressed to completion. 404 if the organization has no teardown. Cluster administrators only.`,
|
|
136326
|
+
args: args313,
|
|
136327
|
+
tool: async (client, args314, ctx) => {
|
|
136328
|
+
const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client, args314.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135339
136329
|
if (!result.ok) {
|
|
135340
136330
|
return {
|
|
135341
136331
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135348,24 +136338,22 @@ Create a secret whose values are injected into your workloads as env vars.`,
|
|
|
135348
136338
|
};
|
|
135349
136339
|
});
|
|
135350
136340
|
|
|
135351
|
-
// src/funcs/
|
|
135352
|
-
function
|
|
135353
|
-
return new APIPromise($
|
|
136341
|
+
// src/funcs/servingTenantsList.ts
|
|
136342
|
+
function servingTenantsList(client, request, options) {
|
|
136343
|
+
return new APIPromise($do321(client, request, options));
|
|
135354
136344
|
}
|
|
135355
|
-
async function $
|
|
135356
|
-
const parsed = safeParse4(request, (value) =>
|
|
136345
|
+
async function $do321(client, request, options) {
|
|
136346
|
+
const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135357
136347
|
if (!parsed.ok) {
|
|
135358
136348
|
return [parsed, { status: "invalid" }];
|
|
135359
136349
|
}
|
|
135360
136350
|
const payload = parsed.value;
|
|
135361
136351
|
const body = null;
|
|
135362
|
-
const
|
|
135363
|
-
|
|
135364
|
-
|
|
135365
|
-
|
|
135366
|
-
|
|
135367
|
-
};
|
|
135368
|
-
const path = pathToFunc("/api/v1/serving/secrets/{secret_id}")(pathParams);
|
|
136352
|
+
const path = pathToFunc("/api/v1/serving/tenants")();
|
|
136353
|
+
const query = encodeFormQuery({
|
|
136354
|
+
cursor: payload.cursor,
|
|
136355
|
+
limit: payload.limit
|
|
136356
|
+
});
|
|
135369
136357
|
const headers = new Headers(compactMap({
|
|
135370
136358
|
Accept: "application/json",
|
|
135371
136359
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -135376,7 +136364,7 @@ async function $do316(client, request, options) {
|
|
|
135376
136364
|
const context = {
|
|
135377
136365
|
options: client._options,
|
|
135378
136366
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135379
|
-
operationID: "
|
|
136367
|
+
operationID: "listServingTenants",
|
|
135380
136368
|
oAuth2Scopes: null,
|
|
135381
136369
|
resolvedSecurity: requestSecurity,
|
|
135382
136370
|
securitySource: client._options.bearerAuth,
|
|
@@ -135394,10 +136382,11 @@ async function $do316(client, request, options) {
|
|
|
135394
136382
|
};
|
|
135395
136383
|
const requestRes = client._createRequest(context, {
|
|
135396
136384
|
security: requestSecurity,
|
|
135397
|
-
method: "
|
|
136385
|
+
method: "GET",
|
|
135398
136386
|
baseURL: options?.serverURL,
|
|
135399
136387
|
path,
|
|
135400
136388
|
headers,
|
|
136389
|
+
query,
|
|
135401
136390
|
body,
|
|
135402
136391
|
userAgent: client._options.userAgent,
|
|
135403
136392
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -135419,14 +136408,13 @@ async function $do316(client, request, options) {
|
|
|
135419
136408
|
const responseFields = {
|
|
135420
136409
|
HttpMeta: { Response: response, Request: req }
|
|
135421
136410
|
};
|
|
135422
|
-
const [result] = await match(
|
|
136411
|
+
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 });
|
|
135423
136412
|
if (!result.ok) {
|
|
135424
136413
|
return [result, { status: "complete", request: req, response }];
|
|
135425
136414
|
}
|
|
135426
136415
|
return [result, { status: "complete", request: req, response }];
|
|
135427
136416
|
}
|
|
135428
|
-
var
|
|
135429
|
-
init_esm();
|
|
136417
|
+
var init_servingTenantsList = __esm(() => {
|
|
135430
136418
|
init_encodings();
|
|
135431
136419
|
init_http();
|
|
135432
136420
|
init_matchers();
|
|
@@ -135434,56 +136422,61 @@ var init_servingSecretsDelete = __esm(() => {
|
|
|
135434
136422
|
init_schemas4();
|
|
135435
136423
|
init_security();
|
|
135436
136424
|
init_url();
|
|
136425
|
+
init_components();
|
|
135437
136426
|
init_errors4();
|
|
135438
136427
|
init_operations();
|
|
135439
136428
|
init_async();
|
|
135440
136429
|
});
|
|
135441
136430
|
|
|
135442
|
-
// src/mcp-server/tools/
|
|
135443
|
-
var
|
|
135444
|
-
var
|
|
135445
|
-
|
|
136431
|
+
// src/mcp-server/tools/servingTenantsList.ts
|
|
136432
|
+
var args314, tool$servingTenantsList;
|
|
136433
|
+
var init_servingTenantsList2 = __esm(() => {
|
|
136434
|
+
init_servingTenantsList();
|
|
135446
136435
|
init_operations();
|
|
135447
136436
|
init_tools();
|
|
135448
|
-
|
|
135449
|
-
request:
|
|
136437
|
+
args314 = {
|
|
136438
|
+
request: ListServingTenantsRequest$inboundSchema
|
|
135450
136439
|
};
|
|
135451
|
-
tool$
|
|
135452
|
-
name: "serving-
|
|
135453
|
-
description: `
|
|
136440
|
+
tool$servingTenantsList = {
|
|
136441
|
+
name: "serving-tenants-list",
|
|
136442
|
+
description: `List serving tenants
|
|
135454
136443
|
|
|
135455
|
-
|
|
135456
|
-
args:
|
|
135457
|
-
tool: async (client,
|
|
135458
|
-
const [result, apiCall] = await
|
|
136444
|
+
List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
|
|
136445
|
+
args: args314,
|
|
136446
|
+
tool: async (client, args315, ctx) => {
|
|
136447
|
+
const [result, apiCall] = await servingTenantsList(client, args315.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135459
136448
|
if (!result.ok) {
|
|
135460
136449
|
return {
|
|
135461
136450
|
content: [{ type: "text", text: result.error.message }],
|
|
135462
136451
|
isError: true
|
|
135463
136452
|
};
|
|
135464
136453
|
}
|
|
135465
|
-
|
|
136454
|
+
const value = result.value;
|
|
136455
|
+
return formatResult(value, apiCall);
|
|
135466
136456
|
}
|
|
135467
136457
|
};
|
|
135468
136458
|
});
|
|
135469
136459
|
|
|
135470
|
-
// src/funcs/
|
|
135471
|
-
function
|
|
135472
|
-
return new APIPromise($
|
|
136460
|
+
// src/funcs/servingTenantsSet.ts
|
|
136461
|
+
function servingTenantsSet(client, request, options) {
|
|
136462
|
+
return new APIPromise($do322(client, request, options));
|
|
135473
136463
|
}
|
|
135474
|
-
async function $
|
|
135475
|
-
const parsed = safeParse4(request, (value) =>
|
|
136464
|
+
async function $do322(client, request, options) {
|
|
136465
|
+
const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135476
136466
|
if (!parsed.ok) {
|
|
135477
136467
|
return [parsed, { status: "invalid" }];
|
|
135478
136468
|
}
|
|
135479
136469
|
const payload = parsed.value;
|
|
135480
|
-
const body =
|
|
135481
|
-
const
|
|
135482
|
-
|
|
135483
|
-
|
|
135484
|
-
|
|
135485
|
-
|
|
136470
|
+
const body = encodeJSON("body", payload.ServingTenantSet, { explode: true });
|
|
136471
|
+
const pathParams = {
|
|
136472
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
136473
|
+
explode: false,
|
|
136474
|
+
charEncoding: "percent"
|
|
136475
|
+
})
|
|
136476
|
+
};
|
|
136477
|
+
const path = pathToFunc("/api/v1/serving/tenants/{org_id}")(pathParams);
|
|
135486
136478
|
const headers = new Headers(compactMap({
|
|
136479
|
+
"Content-Type": "application/json",
|
|
135487
136480
|
Accept: "application/json",
|
|
135488
136481
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135489
136482
|
}));
|
|
@@ -135493,7 +136486,7 @@ async function $do317(client, request, options) {
|
|
|
135493
136486
|
const context = {
|
|
135494
136487
|
options: client._options,
|
|
135495
136488
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135496
|
-
operationID: "
|
|
136489
|
+
operationID: "setServingTenant",
|
|
135497
136490
|
oAuth2Scopes: null,
|
|
135498
136491
|
resolvedSecurity: requestSecurity,
|
|
135499
136492
|
securitySource: client._options.bearerAuth,
|
|
@@ -135511,11 +136504,10 @@ async function $do317(client, request, options) {
|
|
|
135511
136504
|
};
|
|
135512
136505
|
const requestRes = client._createRequest(context, {
|
|
135513
136506
|
security: requestSecurity,
|
|
135514
|
-
method: "
|
|
136507
|
+
method: "PUT",
|
|
135515
136508
|
baseURL: options?.serverURL,
|
|
135516
136509
|
path,
|
|
135517
136510
|
headers,
|
|
135518
|
-
query,
|
|
135519
136511
|
body,
|
|
135520
136512
|
userAgent: client._options.userAgent,
|
|
135521
136513
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -135537,13 +136529,13 @@ async function $do317(client, request, options) {
|
|
|
135537
136529
|
const responseFields = {
|
|
135538
136530
|
HttpMeta: { Response: response, Request: req }
|
|
135539
136531
|
};
|
|
135540
|
-
const [result] = await match(json(200,
|
|
136532
|
+
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 });
|
|
135541
136533
|
if (!result.ok) {
|
|
135542
136534
|
return [result, { status: "complete", request: req, response }];
|
|
135543
136535
|
}
|
|
135544
136536
|
return [result, { status: "complete", request: req, response }];
|
|
135545
136537
|
}
|
|
135546
|
-
var
|
|
136538
|
+
var init_servingTenantsSet = __esm(() => {
|
|
135547
136539
|
init_encodings();
|
|
135548
136540
|
init_http();
|
|
135549
136541
|
init_matchers();
|
|
@@ -135557,23 +136549,23 @@ var init_servingSecretsList = __esm(() => {
|
|
|
135557
136549
|
init_async();
|
|
135558
136550
|
});
|
|
135559
136551
|
|
|
135560
|
-
// src/mcp-server/tools/
|
|
135561
|
-
var
|
|
135562
|
-
var
|
|
135563
|
-
|
|
136552
|
+
// src/mcp-server/tools/servingTenantsSet.ts
|
|
136553
|
+
var args315, tool$servingTenantsSet;
|
|
136554
|
+
var init_servingTenantsSet2 = __esm(() => {
|
|
136555
|
+
init_servingTenantsSet();
|
|
135564
136556
|
init_operations();
|
|
135565
136557
|
init_tools();
|
|
135566
|
-
|
|
135567
|
-
request:
|
|
136558
|
+
args315 = {
|
|
136559
|
+
request: SetServingTenantRequest$inboundSchema
|
|
135568
136560
|
};
|
|
135569
|
-
tool$
|
|
135570
|
-
name: "serving-
|
|
135571
|
-
description: `
|
|
136561
|
+
tool$servingTenantsSet = {
|
|
136562
|
+
name: "serving-tenants-set",
|
|
136563
|
+
description: `Set serving tenant enablement
|
|
135572
136564
|
|
|
135573
|
-
|
|
135574
|
-
args:
|
|
135575
|
-
tool: async (client,
|
|
135576
|
-
const [result, apiCall] = await
|
|
136565
|
+
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.`,
|
|
136566
|
+
args: args315,
|
|
136567
|
+
tool: async (client, args316, ctx) => {
|
|
136568
|
+
const [result, apiCall] = await servingTenantsSet(client, args316.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135577
136569
|
if (!result.ok) {
|
|
135578
136570
|
return {
|
|
135579
136571
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135588,9 +136580,9 @@ List your secrets by name (values are never returned).`,
|
|
|
135588
136580
|
|
|
135589
136581
|
// src/funcs/servingVolumesCreate.ts
|
|
135590
136582
|
function servingVolumesCreate(client, request, options) {
|
|
135591
|
-
return new APIPromise($
|
|
136583
|
+
return new APIPromise($do323(client, request, options));
|
|
135592
136584
|
}
|
|
135593
|
-
async function $
|
|
136585
|
+
async function $do323(client, request, options) {
|
|
135594
136586
|
const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135595
136587
|
if (!parsed.ok) {
|
|
135596
136588
|
return [parsed, { status: "invalid" }];
|
|
@@ -135673,12 +136665,12 @@ var init_servingVolumesCreate = __esm(() => {
|
|
|
135673
136665
|
});
|
|
135674
136666
|
|
|
135675
136667
|
// src/mcp-server/tools/servingVolumesCreate.ts
|
|
135676
|
-
var
|
|
136668
|
+
var args316, tool$servingVolumesCreate;
|
|
135677
136669
|
var init_servingVolumesCreate2 = __esm(() => {
|
|
135678
136670
|
init_servingVolumesCreate();
|
|
135679
136671
|
init_operations();
|
|
135680
136672
|
init_tools();
|
|
135681
|
-
|
|
136673
|
+
args316 = {
|
|
135682
136674
|
request: CreateVolumeRequest$inboundSchema
|
|
135683
136675
|
};
|
|
135684
136676
|
tool$servingVolumesCreate = {
|
|
@@ -135686,9 +136678,9 @@ var init_servingVolumesCreate2 = __esm(() => {
|
|
|
135686
136678
|
description: `Create a volume
|
|
135687
136679
|
|
|
135688
136680
|
Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
135689
|
-
args:
|
|
135690
|
-
tool: async (client,
|
|
135691
|
-
const [result, apiCall] = await servingVolumesCreate(client,
|
|
136681
|
+
args: args316,
|
|
136682
|
+
tool: async (client, args317, ctx) => {
|
|
136683
|
+
const [result, apiCall] = await servingVolumesCreate(client, args317.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135692
136684
|
if (!result.ok) {
|
|
135693
136685
|
return {
|
|
135694
136686
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135703,9 +136695,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
|
135703
136695
|
|
|
135704
136696
|
// src/funcs/servingVolumesDelete.ts
|
|
135705
136697
|
function servingVolumesDelete(client, request, options) {
|
|
135706
|
-
return new APIPromise($
|
|
136698
|
+
return new APIPromise($do324(client, request, options));
|
|
135707
136699
|
}
|
|
135708
|
-
async function $
|
|
136700
|
+
async function $do324(client, request, options) {
|
|
135709
136701
|
const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135710
136702
|
if (!parsed.ok) {
|
|
135711
136703
|
return [parsed, { status: "invalid" }];
|
|
@@ -135793,12 +136785,12 @@ var init_servingVolumesDelete = __esm(() => {
|
|
|
135793
136785
|
});
|
|
135794
136786
|
|
|
135795
136787
|
// src/mcp-server/tools/servingVolumesDelete.ts
|
|
135796
|
-
var
|
|
136788
|
+
var args317, tool$servingVolumesDelete;
|
|
135797
136789
|
var init_servingVolumesDelete2 = __esm(() => {
|
|
135798
136790
|
init_servingVolumesDelete();
|
|
135799
136791
|
init_operations();
|
|
135800
136792
|
init_tools();
|
|
135801
|
-
|
|
136793
|
+
args317 = {
|
|
135802
136794
|
request: DeleteVolumeRequest$inboundSchema
|
|
135803
136795
|
};
|
|
135804
136796
|
tool$servingVolumesDelete = {
|
|
@@ -135806,9 +136798,9 @@ var init_servingVolumesDelete2 = __esm(() => {
|
|
|
135806
136798
|
description: `Delete a volume
|
|
135807
136799
|
|
|
135808
136800
|
Delete a volume and its contents.`,
|
|
135809
|
-
args:
|
|
135810
|
-
tool: async (client,
|
|
135811
|
-
const [result, apiCall] = await servingVolumesDelete(client,
|
|
136801
|
+
args: args317,
|
|
136802
|
+
tool: async (client, args318, ctx) => {
|
|
136803
|
+
const [result, apiCall] = await servingVolumesDelete(client, args318.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135812
136804
|
if (!result.ok) {
|
|
135813
136805
|
return {
|
|
135814
136806
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135822,9 +136814,9 @@ Delete a volume and its contents.`,
|
|
|
135822
136814
|
|
|
135823
136815
|
// src/funcs/servingVolumesGet.ts
|
|
135824
136816
|
function servingVolumesGet(client, request, options) {
|
|
135825
|
-
return new APIPromise($
|
|
136817
|
+
return new APIPromise($do325(client, request, options));
|
|
135826
136818
|
}
|
|
135827
|
-
async function $
|
|
136819
|
+
async function $do325(client, request, options) {
|
|
135828
136820
|
const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135829
136821
|
if (!parsed.ok) {
|
|
135830
136822
|
return [parsed, { status: "invalid" }];
|
|
@@ -135912,12 +136904,12 @@ var init_servingVolumesGet = __esm(() => {
|
|
|
135912
136904
|
});
|
|
135913
136905
|
|
|
135914
136906
|
// src/mcp-server/tools/servingVolumesGet.ts
|
|
135915
|
-
var
|
|
136907
|
+
var args318, tool$servingVolumesGet;
|
|
135916
136908
|
var init_servingVolumesGet2 = __esm(() => {
|
|
135917
136909
|
init_servingVolumesGet();
|
|
135918
136910
|
init_operations();
|
|
135919
136911
|
init_tools();
|
|
135920
|
-
|
|
136912
|
+
args318 = {
|
|
135921
136913
|
request: GetVolumeRequest$inboundSchema
|
|
135922
136914
|
};
|
|
135923
136915
|
tool$servingVolumesGet = {
|
|
@@ -135925,9 +136917,9 @@ var init_servingVolumesGet2 = __esm(() => {
|
|
|
135925
136917
|
description: `Get a volume
|
|
135926
136918
|
|
|
135927
136919
|
Retrieve a volume.`,
|
|
135928
|
-
args:
|
|
135929
|
-
tool: async (client,
|
|
135930
|
-
const [result, apiCall] = await servingVolumesGet(client,
|
|
136920
|
+
args: args318,
|
|
136921
|
+
tool: async (client, args319, ctx) => {
|
|
136922
|
+
const [result, apiCall] = await servingVolumesGet(client, args319.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135931
136923
|
if (!result.ok) {
|
|
135932
136924
|
return {
|
|
135933
136925
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135942,9 +136934,9 @@ Retrieve a volume.`,
|
|
|
135942
136934
|
|
|
135943
136935
|
// src/funcs/servingVolumesList.ts
|
|
135944
136936
|
function servingVolumesList(client, request, options) {
|
|
135945
|
-
return new APIPromise($
|
|
136937
|
+
return new APIPromise($do326(client, request, options));
|
|
135946
136938
|
}
|
|
135947
|
-
async function $
|
|
136939
|
+
async function $do326(client, request, options) {
|
|
135948
136940
|
const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135949
136941
|
if (!parsed.ok) {
|
|
135950
136942
|
return [parsed, { status: "invalid" }];
|
|
@@ -136031,12 +137023,12 @@ var init_servingVolumesList = __esm(() => {
|
|
|
136031
137023
|
});
|
|
136032
137024
|
|
|
136033
137025
|
// src/mcp-server/tools/servingVolumesList.ts
|
|
136034
|
-
var
|
|
137026
|
+
var args319, tool$servingVolumesList;
|
|
136035
137027
|
var init_servingVolumesList2 = __esm(() => {
|
|
136036
137028
|
init_servingVolumesList();
|
|
136037
137029
|
init_operations();
|
|
136038
137030
|
init_tools();
|
|
136039
|
-
|
|
137031
|
+
args319 = {
|
|
136040
137032
|
request: ListVolumesRequest$inboundSchema
|
|
136041
137033
|
};
|
|
136042
137034
|
tool$servingVolumesList = {
|
|
@@ -136044,9 +137036,9 @@ var init_servingVolumesList2 = __esm(() => {
|
|
|
136044
137036
|
description: `List volumes
|
|
136045
137037
|
|
|
136046
137038
|
List your volumes.`,
|
|
136047
|
-
args:
|
|
136048
|
-
tool: async (client,
|
|
136049
|
-
const [result, apiCall] = await servingVolumesList(client,
|
|
137039
|
+
args: args319,
|
|
137040
|
+
tool: async (client, args320, ctx) => {
|
|
137041
|
+
const [result, apiCall] = await servingVolumesList(client, args320.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136050
137042
|
if (!result.ok) {
|
|
136051
137043
|
return {
|
|
136052
137044
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136061,9 +137053,9 @@ List your volumes.`,
|
|
|
136061
137053
|
|
|
136062
137054
|
// src/funcs/usageCosts.ts
|
|
136063
137055
|
function usageCosts(client, request, options) {
|
|
136064
|
-
return new APIPromise($
|
|
137056
|
+
return new APIPromise($do327(client, request, options));
|
|
136065
137057
|
}
|
|
136066
|
-
async function $
|
|
137058
|
+
async function $do327(client, request, options) {
|
|
136067
137059
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136068
137060
|
if (!parsed.ok) {
|
|
136069
137061
|
return [parsed, { status: "invalid" }];
|
|
@@ -136146,12 +137138,12 @@ var init_usageCosts = __esm(() => {
|
|
|
136146
137138
|
});
|
|
136147
137139
|
|
|
136148
137140
|
// src/mcp-server/tools/usageCosts.ts
|
|
136149
|
-
var
|
|
137141
|
+
var args320, tool$usageCosts;
|
|
136150
137142
|
var init_usageCosts2 = __esm(() => {
|
|
136151
137143
|
init_usageCosts();
|
|
136152
137144
|
init_operations();
|
|
136153
137145
|
init_tools();
|
|
136154
|
-
|
|
137146
|
+
args320 = {
|
|
136155
137147
|
request: GetCostsRequest$inboundSchema
|
|
136156
137148
|
};
|
|
136157
137149
|
tool$usageCosts = {
|
|
@@ -136159,9 +137151,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
136159
137151
|
description: `Aggregate cost by dimension
|
|
136160
137152
|
|
|
136161
137153
|
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,
|
|
137154
|
+
args: args320,
|
|
137155
|
+
tool: async (client, args321, ctx) => {
|
|
137156
|
+
const [result, apiCall] = await usageCosts(client, args321.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136165
137157
|
if (!result.ok) {
|
|
136166
137158
|
return {
|
|
136167
137159
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136176,9 +137168,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
136176
137168
|
|
|
136177
137169
|
// src/funcs/usageSandbox.ts
|
|
136178
137170
|
function usageSandbox(client, request, options) {
|
|
136179
|
-
return new APIPromise($
|
|
137171
|
+
return new APIPromise($do328(client, request, options));
|
|
136180
137172
|
}
|
|
136181
|
-
async function $
|
|
137173
|
+
async function $do328(client, request, options) {
|
|
136182
137174
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136183
137175
|
if (!parsed.ok) {
|
|
136184
137176
|
return [parsed, { status: "invalid" }];
|
|
@@ -136269,12 +137261,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
136269
137261
|
});
|
|
136270
137262
|
|
|
136271
137263
|
// src/mcp-server/tools/usageSandbox.ts
|
|
136272
|
-
var
|
|
137264
|
+
var args321, tool$usageSandbox;
|
|
136273
137265
|
var init_usageSandbox2 = __esm(() => {
|
|
136274
137266
|
init_usageSandbox();
|
|
136275
137267
|
init_operations();
|
|
136276
137268
|
init_tools();
|
|
136277
|
-
|
|
137269
|
+
args321 = {
|
|
136278
137270
|
request: GetSandboxUsageRequest$inboundSchema
|
|
136279
137271
|
};
|
|
136280
137272
|
tool$usageSandbox = {
|
|
@@ -136282,9 +137274,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
136282
137274
|
description: `Get Sandbox Usage
|
|
136283
137275
|
|
|
136284
137276
|
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,
|
|
137277
|
+
args: args321,
|
|
137278
|
+
tool: async (client, args322, ctx) => {
|
|
137279
|
+
const [result, apiCall] = await usageSandbox(client, args322.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136288
137280
|
if (!result.ok) {
|
|
136289
137281
|
return {
|
|
136290
137282
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136301,7 +137293,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
136301
137293
|
function createMCPServer(deps) {
|
|
136302
137294
|
const server = new McpServer({
|
|
136303
137295
|
name: "SDK",
|
|
136304
|
-
version: "0.51.
|
|
137296
|
+
version: "0.51.7"
|
|
136305
137297
|
});
|
|
136306
137298
|
const client = new SDKCore({
|
|
136307
137299
|
bearerAuth: deps.bearerAuth,
|
|
@@ -136624,7 +137616,7 @@ function createMCPServer(deps) {
|
|
|
136624
137616
|
tool(tool$servingFinetuneJobsGetEvents);
|
|
136625
137617
|
tool(tool$servingFinetuneJobsGetLogs);
|
|
136626
137618
|
tool(tool$servingImagesList);
|
|
136627
|
-
tool(tool$
|
|
137619
|
+
tool(tool$servingImagesRegister);
|
|
136628
137620
|
tool(tool$servingImagesDelete);
|
|
136629
137621
|
tool(tool$servingImagesGet);
|
|
136630
137622
|
tool(tool$servingModelsList);
|
|
@@ -136634,6 +137626,11 @@ function createMCPServer(deps) {
|
|
|
136634
137626
|
tool(tool$servingSecretsList);
|
|
136635
137627
|
tool(tool$servingSecretsCreate);
|
|
136636
137628
|
tool(tool$servingSecretsDelete);
|
|
137629
|
+
tool(tool$servingTenantsList);
|
|
137630
|
+
tool(tool$servingTenantsGet);
|
|
137631
|
+
tool(tool$servingTenantsSet);
|
|
137632
|
+
tool(tool$servingTenantsGetOrganizationDeletion);
|
|
137633
|
+
tool(tool$servingTenantsDeleteOrganization);
|
|
136637
137634
|
tool(tool$servingVolumesList);
|
|
136638
137635
|
tool(tool$servingVolumesCreate);
|
|
136639
137636
|
tool(tool$servingVolumesDelete);
|
|
@@ -136951,10 +137948,10 @@ var init_server2 = __esm(() => {
|
|
|
136951
137948
|
init_servingFinetuneJobsGetLogs2();
|
|
136952
137949
|
init_servingFinetuneJobsList2();
|
|
136953
137950
|
init_servingFinetuneJobsListCheckpoints2();
|
|
136954
|
-
init_servingImagesBuild2();
|
|
136955
137951
|
init_servingImagesDelete2();
|
|
136956
137952
|
init_servingImagesGet2();
|
|
136957
137953
|
init_servingImagesList2();
|
|
137954
|
+
init_servingImagesRegister2();
|
|
136958
137955
|
init_servingModelsDelete2();
|
|
136959
137956
|
init_servingModelsGet2();
|
|
136960
137957
|
init_servingModelsList2();
|
|
@@ -136962,6 +137959,11 @@ var init_server2 = __esm(() => {
|
|
|
136962
137959
|
init_servingSecretsCreate2();
|
|
136963
137960
|
init_servingSecretsDelete2();
|
|
136964
137961
|
init_servingSecretsList2();
|
|
137962
|
+
init_servingTenantsDeleteOrganization2();
|
|
137963
|
+
init_servingTenantsGet2();
|
|
137964
|
+
init_servingTenantsGetOrganizationDeletion2();
|
|
137965
|
+
init_servingTenantsList2();
|
|
137966
|
+
init_servingTenantsSet2();
|
|
136965
137967
|
init_servingVolumesCreate2();
|
|
136966
137968
|
init_servingVolumesDelete2();
|
|
136967
137969
|
init_servingVolumesGet2();
|
|
@@ -138145,7 +139147,7 @@ var routes = rn({
|
|
|
138145
139147
|
var app = Ve(routes, {
|
|
138146
139148
|
name: "mcp",
|
|
138147
139149
|
versionInfo: {
|
|
138148
|
-
currentVersion: "0.51.
|
|
139150
|
+
currentVersion: "0.51.7"
|
|
138149
139151
|
}
|
|
138150
139152
|
});
|
|
138151
139153
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -138153,5 +139155,5 @@ export {
|
|
|
138153
139155
|
app
|
|
138154
139156
|
};
|
|
138155
139157
|
|
|
138156
|
-
//# debugId=
|
|
139158
|
+
//# debugId=B8E1A0B7BC511F4364756E2164756E21
|
|
138157
139159
|
//# sourceMappingURL=mcp-server.js.map
|