@meetkai/mka1 0.51.4 → 0.51.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +227 -239
- package/bin/mcp-server.js +67 -717
- package/bin/mcp-server.js.map +22 -37
- package/dist/commonjs/funcs/servingDeploymentsCreate.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsCreate.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsDelete.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsDelete.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsGet.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsGet.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsList.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsList.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsListReplicas.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsListReplicas.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsListRevisions.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsListRevisions.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsUpdate.js +1 -1
- package/dist/commonjs/funcs/servingDeploymentsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/servingDeploymentsUpdateScaling.js +2 -4
- package/dist/commonjs/funcs/servingDeploymentsUpdateScaling.js.map +1 -1
- package/dist/commonjs/funcs/servingModelsDelete.js +1 -1
- package/dist/commonjs/funcs/servingModelsDelete.js.map +1 -1
- package/dist/commonjs/funcs/servingSecretsDelete.js +1 -1
- package/dist/commonjs/funcs/servingSecretsDelete.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -7
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/components/deploymentcreate.d.ts +5 -26
- package/dist/commonjs/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/deploymentcreate.js +3 -16
- package/dist/commonjs/models/components/deploymentcreate.js.map +1 -1
- package/dist/commonjs/models/components/deploymentupdate.d.ts +0 -7
- package/dist/commonjs/models/components/deploymentupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/deploymentupdate.js +0 -9
- package/dist/commonjs/models/components/deploymentupdate.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -6
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -6
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/replica.d.ts +0 -9
- package/dist/commonjs/models/components/replica.d.ts.map +1 -1
- package/dist/commonjs/models/components/replica.js +0 -8
- package/dist/commonjs/models/components/replica.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -3
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -3
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/updatescaling.d.ts +2 -2
- package/dist/commonjs/models/operations/updatescaling.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatescaling.js +4 -4
- package/dist/commonjs/models/operations/updatescaling.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +0 -3
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +0 -3
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/serving.d.ts +0 -3
- package/dist/commonjs/sdk/serving.d.ts.map +1 -1
- package/dist/commonjs/sdk/serving.js +0 -4
- package/dist/commonjs/sdk/serving.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsCreate.js +1 -1
- package/dist/esm/funcs/servingDeploymentsCreate.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsDelete.js +1 -1
- package/dist/esm/funcs/servingDeploymentsDelete.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsGet.js +1 -1
- package/dist/esm/funcs/servingDeploymentsGet.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsList.js +1 -1
- package/dist/esm/funcs/servingDeploymentsList.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsListReplicas.js +1 -1
- package/dist/esm/funcs/servingDeploymentsListReplicas.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsListRevisions.js +1 -1
- package/dist/esm/funcs/servingDeploymentsListRevisions.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsUpdate.js +1 -1
- package/dist/esm/funcs/servingDeploymentsUpdate.js.map +1 -1
- package/dist/esm/funcs/servingDeploymentsUpdateScaling.js +2 -4
- package/dist/esm/funcs/servingDeploymentsUpdateScaling.js.map +1 -1
- package/dist/esm/funcs/servingModelsDelete.js +1 -1
- package/dist/esm/funcs/servingModelsDelete.js.map +1 -1
- package/dist/esm/funcs/servingSecretsDelete.js +1 -1
- package/dist/esm/funcs/servingSecretsDelete.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -7
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/components/deploymentcreate.d.ts +5 -26
- package/dist/esm/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/esm/models/components/deploymentcreate.js +3 -16
- package/dist/esm/models/components/deploymentcreate.js.map +1 -1
- package/dist/esm/models/components/deploymentupdate.d.ts +0 -7
- package/dist/esm/models/components/deploymentupdate.d.ts.map +1 -1
- package/dist/esm/models/components/deploymentupdate.js +0 -9
- package/dist/esm/models/components/deploymentupdate.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -6
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -6
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/replica.d.ts +0 -9
- package/dist/esm/models/components/replica.d.ts.map +1 -1
- package/dist/esm/models/components/replica.js +0 -8
- package/dist/esm/models/components/replica.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -3
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -3
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/updatescaling.d.ts +2 -2
- package/dist/esm/models/operations/updatescaling.d.ts.map +1 -1
- package/dist/esm/models/operations/updatescaling.js +4 -4
- package/dist/esm/models/operations/updatescaling.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +0 -3
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +0 -3
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/serving.d.ts +0 -3
- package/dist/esm/sdk/serving.d.ts.map +1 -1
- package/dist/esm/sdk/serving.js +0 -4
- package/dist/esm/sdk/serving.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/servingDeploymentsCreate.ts +2 -3
- package/src/funcs/servingDeploymentsDelete.ts +2 -3
- package/src/funcs/servingDeploymentsGet.ts +2 -3
- package/src/funcs/servingDeploymentsList.ts +2 -3
- package/src/funcs/servingDeploymentsListReplicas.ts +0 -1
- package/src/funcs/servingDeploymentsListRevisions.ts +2 -3
- package/src/funcs/servingDeploymentsUpdate.ts +2 -3
- package/src/funcs/servingDeploymentsUpdateScaling.ts +1 -4
- package/src/funcs/servingModelsDelete.ts +1 -1
- package/src/funcs/servingSecretsDelete.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -7
- package/src/models/components/deploymentcreate.ts +12 -49
- package/src/models/components/deploymentupdate.ts +0 -19
- package/src/models/components/index.ts +0 -6
- package/src/models/components/replica.ts +0 -17
- package/src/models/operations/index.ts +0 -3
- package/src/models/operations/updatescaling.ts +6 -6
- package/src/react-query/index.ts +0 -3
- package/src/sdk/serving.ts +0 -6
- package/dist/commonjs/funcs/servingTenantsGet.d.ts +0 -19
- package/dist/commonjs/funcs/servingTenantsGet.d.ts.map +0 -1
- package/dist/commonjs/funcs/servingTenantsGet.js +0 -136
- package/dist/commonjs/funcs/servingTenantsGet.js.map +0 -1
- package/dist/commonjs/funcs/servingTenantsList.d.ts +0 -19
- package/dist/commonjs/funcs/servingTenantsList.d.ts.map +0 -1
- package/dist/commonjs/funcs/servingTenantsList.js +0 -135
- package/dist/commonjs/funcs/servingTenantsList.js.map +0 -1
- package/dist/commonjs/funcs/servingTenantsSet.d.ts +0 -19
- package/dist/commonjs/funcs/servingTenantsSet.d.ts.map +0 -1
- package/dist/commonjs/funcs/servingTenantsSet.js +0 -137
- package/dist/commonjs/funcs/servingTenantsSet.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.js +0 -64
- package/dist/commonjs/mcp-server/tools/servingTenantsGet.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/servingTenantsList.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsList.js +0 -64
- package/dist/commonjs/mcp-server/tools/servingTenantsList.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.js +0 -64
- package/dist/commonjs/mcp-server/tools/servingTenantsSet.js.map +0 -1
- package/dist/commonjs/models/components/deploymentapiformat.d.ts +0 -22
- package/dist/commonjs/models/components/deploymentapiformat.d.ts.map +0 -1
- package/dist/commonjs/models/components/deploymentapiformat.js +0 -56
- package/dist/commonjs/models/components/deploymentapiformat.js.map +0 -1
- package/dist/commonjs/models/components/deploymentscalingcreate.d.ts +0 -31
- package/dist/commonjs/models/components/deploymentscalingcreate.d.ts.map +0 -1
- package/dist/commonjs/models/components/deploymentscalingcreate.js +0 -83
- package/dist/commonjs/models/components/deploymentscalingcreate.js.map +0 -1
- package/dist/commonjs/models/components/deploymentscalingupdate.d.ts +0 -28
- package/dist/commonjs/models/components/deploymentscalingupdate.d.ts.map +0 -1
- package/dist/commonjs/models/components/deploymentscalingupdate.js +0 -83
- package/dist/commonjs/models/components/deploymentscalingupdate.js.map +0 -1
- package/dist/commonjs/models/components/pageservingtenant.d.ts +0 -22
- package/dist/commonjs/models/components/pageservingtenant.d.ts.map +0 -1
- package/dist/commonjs/models/components/pageservingtenant.js +0 -72
- package/dist/commonjs/models/components/pageservingtenant.js.map +0 -1
- package/dist/commonjs/models/components/servingtenant.d.ts +0 -28
- package/dist/commonjs/models/components/servingtenant.d.ts.map +0 -1
- package/dist/commonjs/models/components/servingtenant.js +0 -81
- package/dist/commonjs/models/components/servingtenant.js.map +0 -1
- package/dist/commonjs/models/components/servingtenantset.d.ts +0 -20
- package/dist/commonjs/models/components/servingtenantset.d.ts.map +0 -1
- package/dist/commonjs/models/components/servingtenantset.js +0 -58
- package/dist/commonjs/models/components/servingtenantset.js.map +0 -1
- package/dist/commonjs/models/operations/getservingtenant.d.ts +0 -22
- package/dist/commonjs/models/operations/getservingtenant.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getservingtenant.js +0 -71
- package/dist/commonjs/models/operations/getservingtenant.js.map +0 -1
- package/dist/commonjs/models/operations/listservingtenants.d.ts +0 -24
- package/dist/commonjs/models/operations/listservingtenants.d.ts.map +0 -1
- package/dist/commonjs/models/operations/listservingtenants.js +0 -71
- package/dist/commonjs/models/operations/listservingtenants.js.map +0 -1
- package/dist/commonjs/models/operations/setservingtenant.d.ts +0 -25
- package/dist/commonjs/models/operations/setservingtenant.d.ts.map +0 -1
- package/dist/commonjs/models/operations/setservingtenant.js +0 -76
- package/dist/commonjs/models/operations/setservingtenant.js.map +0 -1
- package/dist/commonjs/react-query/servingTenantsGet.core.d.ts +0 -15
- package/dist/commonjs/react-query/servingTenantsGet.core.d.ts.map +0 -1
- package/dist/commonjs/react-query/servingTenantsGet.core.js +0 -36
- package/dist/commonjs/react-query/servingTenantsGet.core.js.map +0 -1
- package/dist/commonjs/react-query/servingTenantsGet.d.ts +0 -39
- package/dist/commonjs/react-query/servingTenantsGet.d.ts.map +0 -1
- package/dist/commonjs/react-query/servingTenantsGet.js +0 -60
- package/dist/commonjs/react-query/servingTenantsGet.js.map +0 -1
- package/dist/commonjs/react-query/servingTenantsList.core.d.ts +0 -17
- package/dist/commonjs/react-query/servingTenantsList.core.d.ts.map +0 -1
- package/dist/commonjs/react-query/servingTenantsList.core.js +0 -38
- package/dist/commonjs/react-query/servingTenantsList.core.js.map +0 -1
- package/dist/commonjs/react-query/servingTenantsList.d.ts +0 -41
- package/dist/commonjs/react-query/servingTenantsList.d.ts.map +0 -1
- package/dist/commonjs/react-query/servingTenantsList.js +0 -60
- package/dist/commonjs/react-query/servingTenantsList.js.map +0 -1
- package/dist/commonjs/react-query/servingTenantsSet.d.ts +0 -30
- package/dist/commonjs/react-query/servingTenantsSet.d.ts.map +0 -1
- package/dist/commonjs/react-query/servingTenantsSet.js +0 -47
- package/dist/commonjs/react-query/servingTenantsSet.js.map +0 -1
- package/dist/commonjs/sdk/tenants.d.ts +0 -27
- package/dist/commonjs/sdk/tenants.d.ts.map +0 -1
- package/dist/commonjs/sdk/tenants.js +0 -42
- package/dist/commonjs/sdk/tenants.js.map +0 -1
- package/dist/esm/funcs/servingTenantsGet.d.ts +0 -19
- package/dist/esm/funcs/servingTenantsGet.d.ts.map +0 -1
- package/dist/esm/funcs/servingTenantsGet.js +0 -100
- package/dist/esm/funcs/servingTenantsGet.js.map +0 -1
- package/dist/esm/funcs/servingTenantsList.d.ts +0 -19
- package/dist/esm/funcs/servingTenantsList.d.ts.map +0 -1
- package/dist/esm/funcs/servingTenantsList.js +0 -99
- package/dist/esm/funcs/servingTenantsList.js.map +0 -1
- package/dist/esm/funcs/servingTenantsSet.d.ts +0 -19
- package/dist/esm/funcs/servingTenantsSet.d.ts.map +0 -1
- package/dist/esm/funcs/servingTenantsSet.js +0 -101
- package/dist/esm/funcs/servingTenantsSet.js.map +0 -1
- package/dist/esm/mcp-server/tools/servingTenantsGet.d.ts +0 -8
- package/dist/esm/mcp-server/tools/servingTenantsGet.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/servingTenantsGet.js +0 -28
- package/dist/esm/mcp-server/tools/servingTenantsGet.js.map +0 -1
- package/dist/esm/mcp-server/tools/servingTenantsList.d.ts +0 -8
- package/dist/esm/mcp-server/tools/servingTenantsList.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/servingTenantsList.js +0 -28
- package/dist/esm/mcp-server/tools/servingTenantsList.js.map +0 -1
- package/dist/esm/mcp-server/tools/servingTenantsSet.d.ts +0 -8
- package/dist/esm/mcp-server/tools/servingTenantsSet.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/servingTenantsSet.js +0 -28
- package/dist/esm/mcp-server/tools/servingTenantsSet.js.map +0 -1
- package/dist/esm/models/components/deploymentapiformat.d.ts +0 -22
- package/dist/esm/models/components/deploymentapiformat.d.ts.map +0 -1
- package/dist/esm/models/components/deploymentapiformat.js +0 -20
- package/dist/esm/models/components/deploymentapiformat.js.map +0 -1
- package/dist/esm/models/components/deploymentscalingcreate.d.ts +0 -31
- package/dist/esm/models/components/deploymentscalingcreate.d.ts.map +0 -1
- package/dist/esm/models/components/deploymentscalingcreate.js +0 -45
- package/dist/esm/models/components/deploymentscalingcreate.js.map +0 -1
- package/dist/esm/models/components/deploymentscalingupdate.d.ts +0 -28
- package/dist/esm/models/components/deploymentscalingupdate.d.ts.map +0 -1
- package/dist/esm/models/components/deploymentscalingupdate.js +0 -45
- package/dist/esm/models/components/deploymentscalingupdate.js.map +0 -1
- package/dist/esm/models/components/pageservingtenant.d.ts +0 -22
- package/dist/esm/models/components/pageservingtenant.d.ts.map +0 -1
- package/dist/esm/models/components/pageservingtenant.js +0 -34
- package/dist/esm/models/components/pageservingtenant.js.map +0 -1
- package/dist/esm/models/components/servingtenant.d.ts +0 -28
- package/dist/esm/models/components/servingtenant.d.ts.map +0 -1
- package/dist/esm/models/components/servingtenant.js +0 -43
- package/dist/esm/models/components/servingtenant.js.map +0 -1
- package/dist/esm/models/components/servingtenantset.d.ts +0 -20
- package/dist/esm/models/components/servingtenantset.d.ts.map +0 -1
- package/dist/esm/models/components/servingtenantset.js +0 -20
- package/dist/esm/models/components/servingtenantset.js.map +0 -1
- package/dist/esm/models/operations/getservingtenant.d.ts +0 -22
- package/dist/esm/models/operations/getservingtenant.d.ts.map +0 -1
- package/dist/esm/models/operations/getservingtenant.js +0 -33
- package/dist/esm/models/operations/getservingtenant.js.map +0 -1
- package/dist/esm/models/operations/listservingtenants.d.ts +0 -24
- package/dist/esm/models/operations/listservingtenants.d.ts.map +0 -1
- package/dist/esm/models/operations/listservingtenants.js +0 -33
- package/dist/esm/models/operations/listservingtenants.js.map +0 -1
- package/dist/esm/models/operations/setservingtenant.d.ts +0 -25
- package/dist/esm/models/operations/setservingtenant.d.ts.map +0 -1
- package/dist/esm/models/operations/setservingtenant.js +0 -38
- package/dist/esm/models/operations/setservingtenant.js.map +0 -1
- package/dist/esm/react-query/servingTenantsGet.core.d.ts +0 -15
- package/dist/esm/react-query/servingTenantsGet.core.d.ts.map +0 -1
- package/dist/esm/react-query/servingTenantsGet.core.js +0 -31
- package/dist/esm/react-query/servingTenantsGet.core.js.map +0 -1
- package/dist/esm/react-query/servingTenantsGet.d.ts +0 -39
- package/dist/esm/react-query/servingTenantsGet.d.ts.map +0 -1
- package/dist/esm/react-query/servingTenantsGet.js +0 -50
- package/dist/esm/react-query/servingTenantsGet.js.map +0 -1
- package/dist/esm/react-query/servingTenantsList.core.d.ts +0 -17
- package/dist/esm/react-query/servingTenantsList.core.d.ts.map +0 -1
- package/dist/esm/react-query/servingTenantsList.core.js +0 -33
- package/dist/esm/react-query/servingTenantsList.core.js.map +0 -1
- package/dist/esm/react-query/servingTenantsList.d.ts +0 -41
- package/dist/esm/react-query/servingTenantsList.d.ts.map +0 -1
- package/dist/esm/react-query/servingTenantsList.js +0 -50
- package/dist/esm/react-query/servingTenantsList.js.map +0 -1
- package/dist/esm/react-query/servingTenantsSet.d.ts +0 -30
- package/dist/esm/react-query/servingTenantsSet.d.ts.map +0 -1
- package/dist/esm/react-query/servingTenantsSet.js +0 -42
- package/dist/esm/react-query/servingTenantsSet.js.map +0 -1
- package/dist/esm/sdk/tenants.d.ts +0 -27
- package/dist/esm/sdk/tenants.d.ts.map +0 -1
- package/dist/esm/sdk/tenants.js +0 -38
- package/dist/esm/sdk/tenants.js.map +0 -1
- package/src/funcs/servingTenantsGet.ts +0 -196
- package/src/funcs/servingTenantsList.ts +0 -196
- package/src/funcs/servingTenantsSet.ts +0 -197
- package/src/mcp-server/tools/servingTenantsGet.ts +0 -37
- package/src/mcp-server/tools/servingTenantsList.ts +0 -37
- package/src/mcp-server/tools/servingTenantsSet.ts +0 -37
- package/src/models/components/deploymentapiformat.ts +0 -31
- package/src/models/components/deploymentscalingcreate.ts +0 -90
- package/src/models/components/deploymentscalingupdate.ts +0 -87
- package/src/models/components/pageservingtenant.ts +0 -74
- package/src/models/components/servingtenant.ts +0 -85
- package/src/models/components/servingtenantset.ts +0 -54
- package/src/models/operations/getservingtenant.ts +0 -69
- package/src/models/operations/listservingtenants.ts +0 -71
- package/src/models/operations/setservingtenant.ts +0 -76
- package/src/react-query/servingTenantsGet.core.ts +0 -76
- package/src/react-query/servingTenantsGet.ts +0 -141
- package/src/react-query/servingTenantsList.core.ts +0 -81
- package/src/react-query/servingTenantsList.ts +0 -148
- package/src/react-query/servingTenantsSet.ts +0 -112
- package/src/sdk/tenants.ts +0 -64
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as components from "../models/components/index.js";
|
|
3
|
-
import * as operations from "../models/operations/index.js";
|
|
4
|
-
export declare class Tenants extends ClientSDK {
|
|
5
|
-
/**
|
|
6
|
-
* List serving tenants
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.
|
|
10
|
-
*/
|
|
11
|
-
list(request: operations.ListServingTenantsRequest, options?: RequestOptions): Promise<components.PageServingTenant>;
|
|
12
|
-
/**
|
|
13
|
-
* Get a serving tenant
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* Get one organization's serving enablement record. Cluster administrators only.
|
|
17
|
-
*/
|
|
18
|
-
get(request: operations.GetServingTenantRequest, options?: RequestOptions): Promise<components.ServingTenant>;
|
|
19
|
-
/**
|
|
20
|
-
* Set serving tenant enablement
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* 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.
|
|
24
|
-
*/
|
|
25
|
-
set(request: operations.SetServingTenantRequest, options?: RequestOptions): Promise<components.ServingTenant>;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=tenants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../src/sdk/tenants.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;IAQpC;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;CAOrC"}
|
package/dist/esm/sdk/tenants.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import { servingTenantsGet } from "../funcs/servingTenantsGet.js";
|
|
5
|
-
import { servingTenantsList } from "../funcs/servingTenantsList.js";
|
|
6
|
-
import { servingTenantsSet } from "../funcs/servingTenantsSet.js";
|
|
7
|
-
import { ClientSDK } from "../lib/sdks.js";
|
|
8
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
-
export class Tenants extends ClientSDK {
|
|
10
|
-
/**
|
|
11
|
-
* List serving tenants
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.
|
|
15
|
-
*/
|
|
16
|
-
async list(request, options) {
|
|
17
|
-
return unwrapAsync(servingTenantsList(this, request, options));
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Get a serving tenant
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* Get one organization's serving enablement record. Cluster administrators only.
|
|
24
|
-
*/
|
|
25
|
-
async get(request, options) {
|
|
26
|
-
return unwrapAsync(servingTenantsGet(this, request, options));
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Set serving tenant enablement
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* 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.
|
|
33
|
-
*/
|
|
34
|
-
async set(request, options) {
|
|
35
|
-
return unwrapAsync(servingTenantsSet(this, request, options));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=tenants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.js","sourceRoot":"","sources":["../../../src/sdk/tenants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA6C,EAC7C,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SDKCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../models/errors/httpclienterrors.js";
|
|
22
|
-
import * as errors from "../models/errors/index.js";
|
|
23
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
25
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
-
import * as operations from "../models/operations/index.js";
|
|
27
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
-
import { Result } from "../types/fp.js";
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Get a serving tenant
|
|
32
|
-
*
|
|
33
|
-
* @remarks
|
|
34
|
-
* Get one organization's serving enablement record. Cluster administrators only.
|
|
35
|
-
*/
|
|
36
|
-
export function servingTenantsGet(
|
|
37
|
-
client: SDKCore,
|
|
38
|
-
request: operations.GetServingTenantRequest,
|
|
39
|
-
options?: RequestOptions,
|
|
40
|
-
): APIPromise<
|
|
41
|
-
Result<
|
|
42
|
-
components.ServingTenant,
|
|
43
|
-
| errors.ServingError
|
|
44
|
-
| errors.ServingHTTPValidationError
|
|
45
|
-
| SDKError
|
|
46
|
-
| ResponseValidationError
|
|
47
|
-
| ConnectionError
|
|
48
|
-
| RequestAbortedError
|
|
49
|
-
| RequestTimeoutError
|
|
50
|
-
| InvalidRequestError
|
|
51
|
-
| UnexpectedClientError
|
|
52
|
-
| SDKValidationError
|
|
53
|
-
>
|
|
54
|
-
> {
|
|
55
|
-
return new APIPromise($do(
|
|
56
|
-
client,
|
|
57
|
-
request,
|
|
58
|
-
options,
|
|
59
|
-
));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
async function $do(
|
|
63
|
-
client: SDKCore,
|
|
64
|
-
request: operations.GetServingTenantRequest,
|
|
65
|
-
options?: RequestOptions,
|
|
66
|
-
): Promise<
|
|
67
|
-
[
|
|
68
|
-
Result<
|
|
69
|
-
components.ServingTenant,
|
|
70
|
-
| errors.ServingError
|
|
71
|
-
| errors.ServingHTTPValidationError
|
|
72
|
-
| SDKError
|
|
73
|
-
| ResponseValidationError
|
|
74
|
-
| ConnectionError
|
|
75
|
-
| RequestAbortedError
|
|
76
|
-
| RequestTimeoutError
|
|
77
|
-
| InvalidRequestError
|
|
78
|
-
| UnexpectedClientError
|
|
79
|
-
| SDKValidationError
|
|
80
|
-
>,
|
|
81
|
-
APICall,
|
|
82
|
-
]
|
|
83
|
-
> {
|
|
84
|
-
const parsed = safeParse(
|
|
85
|
-
request,
|
|
86
|
-
(value) => operations.GetServingTenantRequest$outboundSchema.parse(value),
|
|
87
|
-
"Input validation failed",
|
|
88
|
-
);
|
|
89
|
-
if (!parsed.ok) {
|
|
90
|
-
return [parsed, { status: "invalid" }];
|
|
91
|
-
}
|
|
92
|
-
const payload = parsed.value;
|
|
93
|
-
const body = null;
|
|
94
|
-
|
|
95
|
-
const pathParams = {
|
|
96
|
-
org_id: encodeSimple("org_id", payload.org_id, {
|
|
97
|
-
explode: false,
|
|
98
|
-
charEncoding: "percent",
|
|
99
|
-
}),
|
|
100
|
-
};
|
|
101
|
-
const path = pathToFunc("/api/v1/serving/tenants/{org_id}")(pathParams);
|
|
102
|
-
|
|
103
|
-
const headers = new Headers(compactMap({
|
|
104
|
-
Accept: "application/json",
|
|
105
|
-
"X-On-Behalf-Of": encodeSimple(
|
|
106
|
-
"X-On-Behalf-Of",
|
|
107
|
-
payload["X-On-Behalf-Of"],
|
|
108
|
-
{ explode: false, charEncoding: "none" },
|
|
109
|
-
),
|
|
110
|
-
}));
|
|
111
|
-
|
|
112
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
113
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
114
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
115
|
-
|
|
116
|
-
const context = {
|
|
117
|
-
options: client._options,
|
|
118
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
119
|
-
operationID: "getServingTenant",
|
|
120
|
-
oAuth2Scopes: null,
|
|
121
|
-
|
|
122
|
-
resolvedSecurity: requestSecurity,
|
|
123
|
-
|
|
124
|
-
securitySource: client._options.bearerAuth,
|
|
125
|
-
retryConfig: options?.retries
|
|
126
|
-
|| client._options.retryConfig
|
|
127
|
-
|| {
|
|
128
|
-
strategy: "backoff",
|
|
129
|
-
backoff: {
|
|
130
|
-
initialInterval: 500,
|
|
131
|
-
maxInterval: 5000,
|
|
132
|
-
exponent: 1.5,
|
|
133
|
-
maxElapsedTime: 15000,
|
|
134
|
-
},
|
|
135
|
-
retryConnectionErrors: true,
|
|
136
|
-
}
|
|
137
|
-
|| { strategy: "none" },
|
|
138
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
const requestRes = client._createRequest(context, {
|
|
142
|
-
security: requestSecurity,
|
|
143
|
-
method: "GET",
|
|
144
|
-
baseURL: options?.serverURL,
|
|
145
|
-
path: path,
|
|
146
|
-
headers: headers,
|
|
147
|
-
body: body,
|
|
148
|
-
userAgent: client._options.userAgent,
|
|
149
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
150
|
-
}, options);
|
|
151
|
-
if (!requestRes.ok) {
|
|
152
|
-
return [requestRes, { status: "invalid" }];
|
|
153
|
-
}
|
|
154
|
-
const req = requestRes.value;
|
|
155
|
-
|
|
156
|
-
const doResult = await client._do(req, {
|
|
157
|
-
context,
|
|
158
|
-
isErrorStatusCode: (statusCode: number) =>
|
|
159
|
-
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
160
|
-
retryConfig: context.retryConfig,
|
|
161
|
-
retryCodes: context.retryCodes,
|
|
162
|
-
});
|
|
163
|
-
if (!doResult.ok) {
|
|
164
|
-
return [doResult, { status: "request-error", request: req }];
|
|
165
|
-
}
|
|
166
|
-
const response = doResult.value;
|
|
167
|
-
|
|
168
|
-
const responseFields = {
|
|
169
|
-
HttpMeta: { Response: response, Request: req },
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
const [result] = await M.match<
|
|
173
|
-
components.ServingTenant,
|
|
174
|
-
| errors.ServingError
|
|
175
|
-
| errors.ServingHTTPValidationError
|
|
176
|
-
| SDKError
|
|
177
|
-
| ResponseValidationError
|
|
178
|
-
| ConnectionError
|
|
179
|
-
| RequestAbortedError
|
|
180
|
-
| RequestTimeoutError
|
|
181
|
-
| InvalidRequestError
|
|
182
|
-
| UnexpectedClientError
|
|
183
|
-
| SDKValidationError
|
|
184
|
-
>(
|
|
185
|
-
M.json(200, components.ServingTenant$inboundSchema),
|
|
186
|
-
M.jsonErr([403, 404], errors.ServingError$inboundSchema),
|
|
187
|
-
M.jsonErr(422, errors.ServingHTTPValidationError$inboundSchema),
|
|
188
|
-
M.fail([401, "4XX"]),
|
|
189
|
-
M.fail("5XX"),
|
|
190
|
-
)(response, req, { extraFields: responseFields });
|
|
191
|
-
if (!result.ok) {
|
|
192
|
-
return [result, { status: "complete", request: req, response }];
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
return [result, { status: "complete", request: req, response }];
|
|
196
|
-
}
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SDKCore } from "../core.js";
|
|
6
|
-
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../models/errors/httpclienterrors.js";
|
|
22
|
-
import * as errors from "../models/errors/index.js";
|
|
23
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
25
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
-
import * as operations from "../models/operations/index.js";
|
|
27
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
-
import { Result } from "../types/fp.js";
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* List serving tenants
|
|
32
|
-
*
|
|
33
|
-
* @remarks
|
|
34
|
-
* List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.
|
|
35
|
-
*/
|
|
36
|
-
export function servingTenantsList(
|
|
37
|
-
client: SDKCore,
|
|
38
|
-
request: operations.ListServingTenantsRequest,
|
|
39
|
-
options?: RequestOptions,
|
|
40
|
-
): APIPromise<
|
|
41
|
-
Result<
|
|
42
|
-
components.PageServingTenant,
|
|
43
|
-
| errors.ServingError
|
|
44
|
-
| errors.ServingHTTPValidationError
|
|
45
|
-
| SDKError
|
|
46
|
-
| ResponseValidationError
|
|
47
|
-
| ConnectionError
|
|
48
|
-
| RequestAbortedError
|
|
49
|
-
| RequestTimeoutError
|
|
50
|
-
| InvalidRequestError
|
|
51
|
-
| UnexpectedClientError
|
|
52
|
-
| SDKValidationError
|
|
53
|
-
>
|
|
54
|
-
> {
|
|
55
|
-
return new APIPromise($do(
|
|
56
|
-
client,
|
|
57
|
-
request,
|
|
58
|
-
options,
|
|
59
|
-
));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
async function $do(
|
|
63
|
-
client: SDKCore,
|
|
64
|
-
request: operations.ListServingTenantsRequest,
|
|
65
|
-
options?: RequestOptions,
|
|
66
|
-
): Promise<
|
|
67
|
-
[
|
|
68
|
-
Result<
|
|
69
|
-
components.PageServingTenant,
|
|
70
|
-
| errors.ServingError
|
|
71
|
-
| errors.ServingHTTPValidationError
|
|
72
|
-
| SDKError
|
|
73
|
-
| ResponseValidationError
|
|
74
|
-
| ConnectionError
|
|
75
|
-
| RequestAbortedError
|
|
76
|
-
| RequestTimeoutError
|
|
77
|
-
| InvalidRequestError
|
|
78
|
-
| UnexpectedClientError
|
|
79
|
-
| SDKValidationError
|
|
80
|
-
>,
|
|
81
|
-
APICall,
|
|
82
|
-
]
|
|
83
|
-
> {
|
|
84
|
-
const parsed = safeParse(
|
|
85
|
-
request,
|
|
86
|
-
(value) => operations.ListServingTenantsRequest$outboundSchema.parse(value),
|
|
87
|
-
"Input validation failed",
|
|
88
|
-
);
|
|
89
|
-
if (!parsed.ok) {
|
|
90
|
-
return [parsed, { status: "invalid" }];
|
|
91
|
-
}
|
|
92
|
-
const payload = parsed.value;
|
|
93
|
-
const body = null;
|
|
94
|
-
|
|
95
|
-
const path = pathToFunc("/api/v1/serving/tenants")();
|
|
96
|
-
|
|
97
|
-
const query = encodeFormQuery({
|
|
98
|
-
"cursor": payload.cursor,
|
|
99
|
-
"limit": payload.limit,
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
const headers = new Headers(compactMap({
|
|
103
|
-
Accept: "application/json",
|
|
104
|
-
"X-On-Behalf-Of": encodeSimple(
|
|
105
|
-
"X-On-Behalf-Of",
|
|
106
|
-
payload["X-On-Behalf-Of"],
|
|
107
|
-
{ explode: false, charEncoding: "none" },
|
|
108
|
-
),
|
|
109
|
-
}));
|
|
110
|
-
|
|
111
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
112
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
113
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
114
|
-
|
|
115
|
-
const context = {
|
|
116
|
-
options: client._options,
|
|
117
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
118
|
-
operationID: "listServingTenants",
|
|
119
|
-
oAuth2Scopes: null,
|
|
120
|
-
|
|
121
|
-
resolvedSecurity: requestSecurity,
|
|
122
|
-
|
|
123
|
-
securitySource: client._options.bearerAuth,
|
|
124
|
-
retryConfig: options?.retries
|
|
125
|
-
|| client._options.retryConfig
|
|
126
|
-
|| {
|
|
127
|
-
strategy: "backoff",
|
|
128
|
-
backoff: {
|
|
129
|
-
initialInterval: 500,
|
|
130
|
-
maxInterval: 5000,
|
|
131
|
-
exponent: 1.5,
|
|
132
|
-
maxElapsedTime: 15000,
|
|
133
|
-
},
|
|
134
|
-
retryConnectionErrors: true,
|
|
135
|
-
}
|
|
136
|
-
|| { strategy: "none" },
|
|
137
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
const requestRes = client._createRequest(context, {
|
|
141
|
-
security: requestSecurity,
|
|
142
|
-
method: "GET",
|
|
143
|
-
baseURL: options?.serverURL,
|
|
144
|
-
path: path,
|
|
145
|
-
headers: headers,
|
|
146
|
-
query: query,
|
|
147
|
-
body: body,
|
|
148
|
-
userAgent: client._options.userAgent,
|
|
149
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
150
|
-
}, options);
|
|
151
|
-
if (!requestRes.ok) {
|
|
152
|
-
return [requestRes, { status: "invalid" }];
|
|
153
|
-
}
|
|
154
|
-
const req = requestRes.value;
|
|
155
|
-
|
|
156
|
-
const doResult = await client._do(req, {
|
|
157
|
-
context,
|
|
158
|
-
isErrorStatusCode: (statusCode: number) =>
|
|
159
|
-
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
160
|
-
retryConfig: context.retryConfig,
|
|
161
|
-
retryCodes: context.retryCodes,
|
|
162
|
-
});
|
|
163
|
-
if (!doResult.ok) {
|
|
164
|
-
return [doResult, { status: "request-error", request: req }];
|
|
165
|
-
}
|
|
166
|
-
const response = doResult.value;
|
|
167
|
-
|
|
168
|
-
const responseFields = {
|
|
169
|
-
HttpMeta: { Response: response, Request: req },
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
const [result] = await M.match<
|
|
173
|
-
components.PageServingTenant,
|
|
174
|
-
| errors.ServingError
|
|
175
|
-
| errors.ServingHTTPValidationError
|
|
176
|
-
| SDKError
|
|
177
|
-
| ResponseValidationError
|
|
178
|
-
| ConnectionError
|
|
179
|
-
| RequestAbortedError
|
|
180
|
-
| RequestTimeoutError
|
|
181
|
-
| InvalidRequestError
|
|
182
|
-
| UnexpectedClientError
|
|
183
|
-
| SDKValidationError
|
|
184
|
-
>(
|
|
185
|
-
M.json(200, components.PageServingTenant$inboundSchema),
|
|
186
|
-
M.jsonErr(403, errors.ServingError$inboundSchema),
|
|
187
|
-
M.jsonErr(422, errors.ServingHTTPValidationError$inboundSchema),
|
|
188
|
-
M.fail([401, "4XX"]),
|
|
189
|
-
M.fail("5XX"),
|
|
190
|
-
)(response, req, { extraFields: responseFields });
|
|
191
|
-
if (!result.ok) {
|
|
192
|
-
return [result, { status: "complete", request: req, response }];
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
return [result, { status: "complete", request: req, response }];
|
|
196
|
-
}
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SDKCore } from "../core.js";
|
|
6
|
-
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../models/errors/httpclienterrors.js";
|
|
22
|
-
import * as errors from "../models/errors/index.js";
|
|
23
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
25
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
-
import * as operations from "../models/operations/index.js";
|
|
27
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
-
import { Result } from "../types/fp.js";
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Set serving tenant enablement
|
|
32
|
-
*
|
|
33
|
-
* @remarks
|
|
34
|
-
* 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.
|
|
35
|
-
*/
|
|
36
|
-
export function servingTenantsSet(
|
|
37
|
-
client: SDKCore,
|
|
38
|
-
request: operations.SetServingTenantRequest,
|
|
39
|
-
options?: RequestOptions,
|
|
40
|
-
): APIPromise<
|
|
41
|
-
Result<
|
|
42
|
-
components.ServingTenant,
|
|
43
|
-
| errors.ServingError
|
|
44
|
-
| errors.ServingHTTPValidationError
|
|
45
|
-
| SDKError
|
|
46
|
-
| ResponseValidationError
|
|
47
|
-
| ConnectionError
|
|
48
|
-
| RequestAbortedError
|
|
49
|
-
| RequestTimeoutError
|
|
50
|
-
| InvalidRequestError
|
|
51
|
-
| UnexpectedClientError
|
|
52
|
-
| SDKValidationError
|
|
53
|
-
>
|
|
54
|
-
> {
|
|
55
|
-
return new APIPromise($do(
|
|
56
|
-
client,
|
|
57
|
-
request,
|
|
58
|
-
options,
|
|
59
|
-
));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
async function $do(
|
|
63
|
-
client: SDKCore,
|
|
64
|
-
request: operations.SetServingTenantRequest,
|
|
65
|
-
options?: RequestOptions,
|
|
66
|
-
): Promise<
|
|
67
|
-
[
|
|
68
|
-
Result<
|
|
69
|
-
components.ServingTenant,
|
|
70
|
-
| errors.ServingError
|
|
71
|
-
| errors.ServingHTTPValidationError
|
|
72
|
-
| SDKError
|
|
73
|
-
| ResponseValidationError
|
|
74
|
-
| ConnectionError
|
|
75
|
-
| RequestAbortedError
|
|
76
|
-
| RequestTimeoutError
|
|
77
|
-
| InvalidRequestError
|
|
78
|
-
| UnexpectedClientError
|
|
79
|
-
| SDKValidationError
|
|
80
|
-
>,
|
|
81
|
-
APICall,
|
|
82
|
-
]
|
|
83
|
-
> {
|
|
84
|
-
const parsed = safeParse(
|
|
85
|
-
request,
|
|
86
|
-
(value) => operations.SetServingTenantRequest$outboundSchema.parse(value),
|
|
87
|
-
"Input validation failed",
|
|
88
|
-
);
|
|
89
|
-
if (!parsed.ok) {
|
|
90
|
-
return [parsed, { status: "invalid" }];
|
|
91
|
-
}
|
|
92
|
-
const payload = parsed.value;
|
|
93
|
-
const body = encodeJSON("body", payload.ServingTenantSet, { explode: true });
|
|
94
|
-
|
|
95
|
-
const pathParams = {
|
|
96
|
-
org_id: encodeSimple("org_id", payload.org_id, {
|
|
97
|
-
explode: false,
|
|
98
|
-
charEncoding: "percent",
|
|
99
|
-
}),
|
|
100
|
-
};
|
|
101
|
-
const path = pathToFunc("/api/v1/serving/tenants/{org_id}")(pathParams);
|
|
102
|
-
|
|
103
|
-
const headers = new Headers(compactMap({
|
|
104
|
-
"Content-Type": "application/json",
|
|
105
|
-
Accept: "application/json",
|
|
106
|
-
"X-On-Behalf-Of": encodeSimple(
|
|
107
|
-
"X-On-Behalf-Of",
|
|
108
|
-
payload["X-On-Behalf-Of"],
|
|
109
|
-
{ explode: false, charEncoding: "none" },
|
|
110
|
-
),
|
|
111
|
-
}));
|
|
112
|
-
|
|
113
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
114
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
115
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
116
|
-
|
|
117
|
-
const context = {
|
|
118
|
-
options: client._options,
|
|
119
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
120
|
-
operationID: "setServingTenant",
|
|
121
|
-
oAuth2Scopes: null,
|
|
122
|
-
|
|
123
|
-
resolvedSecurity: requestSecurity,
|
|
124
|
-
|
|
125
|
-
securitySource: client._options.bearerAuth,
|
|
126
|
-
retryConfig: options?.retries
|
|
127
|
-
|| client._options.retryConfig
|
|
128
|
-
|| {
|
|
129
|
-
strategy: "backoff",
|
|
130
|
-
backoff: {
|
|
131
|
-
initialInterval: 500,
|
|
132
|
-
maxInterval: 5000,
|
|
133
|
-
exponent: 1.5,
|
|
134
|
-
maxElapsedTime: 15000,
|
|
135
|
-
},
|
|
136
|
-
retryConnectionErrors: true,
|
|
137
|
-
}
|
|
138
|
-
|| { strategy: "none" },
|
|
139
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
const requestRes = client._createRequest(context, {
|
|
143
|
-
security: requestSecurity,
|
|
144
|
-
method: "PUT",
|
|
145
|
-
baseURL: options?.serverURL,
|
|
146
|
-
path: path,
|
|
147
|
-
headers: headers,
|
|
148
|
-
body: body,
|
|
149
|
-
userAgent: client._options.userAgent,
|
|
150
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
151
|
-
}, options);
|
|
152
|
-
if (!requestRes.ok) {
|
|
153
|
-
return [requestRes, { status: "invalid" }];
|
|
154
|
-
}
|
|
155
|
-
const req = requestRes.value;
|
|
156
|
-
|
|
157
|
-
const doResult = await client._do(req, {
|
|
158
|
-
context,
|
|
159
|
-
isErrorStatusCode: (statusCode: number) =>
|
|
160
|
-
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
161
|
-
retryConfig: context.retryConfig,
|
|
162
|
-
retryCodes: context.retryCodes,
|
|
163
|
-
});
|
|
164
|
-
if (!doResult.ok) {
|
|
165
|
-
return [doResult, { status: "request-error", request: req }];
|
|
166
|
-
}
|
|
167
|
-
const response = doResult.value;
|
|
168
|
-
|
|
169
|
-
const responseFields = {
|
|
170
|
-
HttpMeta: { Response: response, Request: req },
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
const [result] = await M.match<
|
|
174
|
-
components.ServingTenant,
|
|
175
|
-
| errors.ServingError
|
|
176
|
-
| errors.ServingHTTPValidationError
|
|
177
|
-
| SDKError
|
|
178
|
-
| ResponseValidationError
|
|
179
|
-
| ConnectionError
|
|
180
|
-
| RequestAbortedError
|
|
181
|
-
| RequestTimeoutError
|
|
182
|
-
| InvalidRequestError
|
|
183
|
-
| UnexpectedClientError
|
|
184
|
-
| SDKValidationError
|
|
185
|
-
>(
|
|
186
|
-
M.json(200, components.ServingTenant$inboundSchema),
|
|
187
|
-
M.jsonErr(403, errors.ServingError$inboundSchema),
|
|
188
|
-
M.jsonErr(422, errors.ServingHTTPValidationError$inboundSchema),
|
|
189
|
-
M.fail([401, "4XX"]),
|
|
190
|
-
M.fail("5XX"),
|
|
191
|
-
)(response, req, { extraFields: responseFields });
|
|
192
|
-
if (!result.ok) {
|
|
193
|
-
return [result, { status: "complete", request: req, response }];
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
return [result, { status: "complete", request: req, response }];
|
|
197
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { servingTenantsGet } from "../../funcs/servingTenantsGet.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.GetServingTenantRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$servingTenantsGet: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "serving-tenants-get",
|
|
15
|
-
description: `Get a serving tenant
|
|
16
|
-
|
|
17
|
-
Get one organization's serving enablement record. Cluster administrators only.`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await servingTenantsGet(
|
|
21
|
-
client,
|
|
22
|
-
args.request,
|
|
23
|
-
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
-
).$inspect();
|
|
25
|
-
|
|
26
|
-
if (!result.ok) {
|
|
27
|
-
return {
|
|
28
|
-
content: [{ type: "text", text: result.error.message }],
|
|
29
|
-
isError: true,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const value = result.value;
|
|
34
|
-
|
|
35
|
-
return formatResult(value, apiCall);
|
|
36
|
-
},
|
|
37
|
-
};
|