zen-cli 0.1.21__tar.gz → 0.1.23__tar.gz
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.
- {zen_cli-0.1.21 → zen_cli-0.1.23}/CHANGELOG.md +4 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/PKG-INFO +1 -1
- {zen_cli-0.1.21 → zen_cli-0.1.23}/pyproject.toml +1 -1
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/auth/login.py +2 -1
- zen_cli-0.1.23/src/zen_cli/cmds/auth/logout.py +18 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/config/default.yaml +1 -1
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/config/prod.yaml +2 -3
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/config/stg.yaml +0 -1
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/login_support.py +2 -2
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/sglib/auth.py +4 -10
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/sglib/csp.py +1 -1
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/sglib/ez_client.py +2 -2
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/util/versions.py +1 -1
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_auth_status.py +20 -0
- zen_cli-0.1.21/src/zen_cli/cmds/auth/logout.py +0 -9
- {zen_cli-0.1.21 → zen_cli-0.1.23}/.gitignore +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/LICENSE +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/README.md +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/__main__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cli.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/auth/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/auth/details.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/auth/refresh.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/auth/status.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/auth/token.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/completion.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/activity/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/activity/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/activity/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/activity/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/api.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/credential/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/credential/create.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/credential/delete.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/credential/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/credential/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/credential/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/deployment/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/deployment/create.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/deployment/delete.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/deployment/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/deployment/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/deployment/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/entitlement/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/entitlement/create.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/entitlement/delete.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/entitlement/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/entitlement/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/entitlement/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/group/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/group/create.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/group/delete.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/group/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/group/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/group/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/mcp.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/network/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/network/create.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/network/delete.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/network/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/network/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/network/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/notification/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/notification/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/notification/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/notification/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/org/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/org/create.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/org/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/org/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/org/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/pool/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/pool/create.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/pool/delete.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/pool/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/pool/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/pool/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/provider/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/provider/create.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/provider/delete.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/provider/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/provider/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/provider/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/sag/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/sag/create.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/sag/delete.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/sag/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/sag/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/sag/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/task/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/task/cancel.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/task/duplicate.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/task/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/task/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/task/log.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/task/namespaces.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/task/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/task/wait.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/vm/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/vm/delete.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/vm/get.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/vm/list.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/vm/poweroff.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/vm/poweron.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/vm/restart.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/vm/shutdown.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/vm/use.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/daas/vm/wait.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/profile/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/profile/init.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/profile/lock.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/profile/unlock.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/cmds/upgrade.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/config/int.yaml +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/_init.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/built_in_cmds/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/built_in_cmds/_ut.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/built_in_cmds/context.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/built_in_cmds/profile.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/cli_options.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/cli_processor.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/config.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/context.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/data_util.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/file_lock.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/httpx_alias.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/logger.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/profile.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/profile_store.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/recent.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/secret_store.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/state.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/telemetry.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/ctxp/util.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/_util.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/activity.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/api.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/credential.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/deployment.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/entitlement.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/group.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/network.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/notification.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/org.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/pool.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/provider.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/sag.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/task.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/resources/vm.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/mcp/server.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/activity.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/api.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/broker/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/broker/entitlement.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/broker/pool_group.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/cockpit/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/cockpit/network.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/cockpit/pool.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/cockpit/provider.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/cockpit/sag.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/cockpit/vm.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/credential.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/deployment.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/notification.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/org.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/service/task.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/activity.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/auth.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/deployment.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/network.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/notification.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/org.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/payload.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/pool.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/profile.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/recent.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/task.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/use_util.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/daas/support/vm.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/dex/.gitkeep +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/sglib/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/sglib/cli_options.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/sglib/client_util.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/sglib/mdc.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/sglib/requtil.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/sglib/zds_client.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/util/exec_util.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/util/exit.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/util/query_util.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/src/zen_cli/util/readonly.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/__init__.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/cli_test.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/conftest.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_api.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_auth.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_completion.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_context.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_errors.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_help.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_io.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_login.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_logout.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_org.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_pool.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_profile.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/test_root.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/blackbox/util.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_cli.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_dev_bundle.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_dev_release.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_device_login.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_error_details.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_error_object.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_import_lazy.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_leaf_help.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_mcp.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_payload.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_profile_features.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_profile_keyring.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_profile_lazy.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_profile_templates.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_query_util.py +0 -0
- {zen_cli-0.1.21 → zen_cli-0.1.23}/tests/test_recent.py +0 -0
|
@@ -36,7 +36,7 @@ from zen_cli.sglib.cli_options import use_org
|
|
|
36
36
|
"--org",
|
|
37
37
|
type=str,
|
|
38
38
|
required=False,
|
|
39
|
-
help="CSP
|
|
39
|
+
help="Pin CSP org for interactive login (device/browser OAuth scope and authorize query).",
|
|
40
40
|
)
|
|
41
41
|
@click.option("--api-token", type=str, required=False, help="Login with a user CSP API token.")
|
|
42
42
|
@click.option("--client-id", type=str, required=False, help="Login with OAuth client ID/secret.")
|
|
@@ -310,6 +310,7 @@ def _do_device_login() -> Any:
|
|
|
310
310
|
_echo(f" Organization: {org_id if org_id else '<default>'}")
|
|
311
311
|
_echo(f" Profile: {ctxp.profile.name()}")
|
|
312
312
|
_echo(f"Open: {url}")
|
|
313
|
+
_echo("On the sign-in page, use your ZITADEL login name (not your DCP portal email).")
|
|
313
314
|
_echo("Waiting for authorization. Press CTRL+C to abort.")
|
|
314
315
|
|
|
315
316
|
token = login_support.login_via_device_code(auth_config.url, org_id, announce=_announce)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import rich_click as click
|
|
2
|
+
|
|
3
|
+
from zen_cli.ctxp import profile
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@click.command()
|
|
7
|
+
def logout() -> None:
|
|
8
|
+
"""Logout the current profile."""
|
|
9
|
+
profile.auth.delete()
|
|
10
|
+
try:
|
|
11
|
+
current = profile.current(exit_on_failure=False)
|
|
12
|
+
except Exception:
|
|
13
|
+
current = None
|
|
14
|
+
if current is not None:
|
|
15
|
+
csp = getattr(current, "csp", None)
|
|
16
|
+
if csp is not None:
|
|
17
|
+
csp.orgId = None
|
|
18
|
+
profile.save()
|
|
@@ -5,7 +5,7 @@ features:
|
|
|
5
5
|
zcs:
|
|
6
6
|
mdcs:
|
|
7
7
|
beijing:
|
|
8
|
-
url: https://daas.zencloudia.com
|
|
8
|
+
url: https://dcp-cn.daas.zencloudia.com
|
|
9
9
|
mqtt: beijing-mqtt.zcs.com
|
|
10
10
|
regions:
|
|
11
11
|
- name: hangzhou
|
|
@@ -15,7 +15,7 @@ zcs:
|
|
|
15
15
|
url: https://region-beijing.zcs.com
|
|
16
16
|
mqtt: https://region-beijing-mqtt.zcs.com
|
|
17
17
|
singapore:
|
|
18
|
-
url: https://
|
|
18
|
+
url: https://dcp-sg.daas.zencloudia.com
|
|
19
19
|
mqtt: singapore-mqtt.zcs.com
|
|
20
20
|
regions:
|
|
21
21
|
- name: singapore-west
|
|
@@ -26,7 +26,6 @@ zcs:
|
|
|
26
26
|
mqtt: https://singapore-east-mqtt.region.zcs.com
|
|
27
27
|
csp:
|
|
28
28
|
url: https://iam.boss.zencloudia.com
|
|
29
|
-
#url: https://boss.zencloudia.com
|
|
30
29
|
orgId: null
|
|
31
30
|
apiToken: null
|
|
32
31
|
clientId: null
|
|
@@ -323,7 +323,7 @@ def start_device_authorization(csp_url: str, org_id: str | None = None) -> dict[
|
|
|
323
323
|
csp_url + OIDC_DEVICE_PATH,
|
|
324
324
|
data={"client_id": client_id, "scope": _device_scope(org_id, csp_url)},
|
|
325
325
|
headers={"Content-Type": "application/x-www-form-urlencoded", "Accept": "application/json"},
|
|
326
|
-
timeout=
|
|
326
|
+
timeout=15,
|
|
327
327
|
)
|
|
328
328
|
if not resp.is_success:
|
|
329
329
|
_, desc = _oauth_error(resp)
|
|
@@ -359,7 +359,7 @@ def poll_device_access_token(
|
|
|
359
359
|
"client_id": client_id,
|
|
360
360
|
},
|
|
361
361
|
headers={"Content-Type": "application/x-www-form-urlencoded", "Accept": "application/json"},
|
|
362
|
-
timeout=
|
|
362
|
+
timeout=15,
|
|
363
363
|
)
|
|
364
364
|
if resp.is_success:
|
|
365
365
|
token = resp.json()
|
|
@@ -69,7 +69,7 @@ def refresh_oauth_token(
|
|
|
69
69
|
}
|
|
70
70
|
post_kwargs: dict[str, Any] = {
|
|
71
71
|
"headers": {"Content-Type": "application/x-www-form-urlencoded", "Accept": "application/json"},
|
|
72
|
-
"timeout":
|
|
72
|
+
"timeout": 15,
|
|
73
73
|
}
|
|
74
74
|
if client_secret:
|
|
75
75
|
data["client_secret"] = client_secret
|
|
@@ -234,16 +234,10 @@ def _populate_token_with_cache(auth_config: Any, force_refresh: bool = False, ve
|
|
|
234
234
|
token = oauth_token_from_access_token(profile.reveal(_access_token_cred(auth_config)))
|
|
235
235
|
else:
|
|
236
236
|
if _cfg_get(auth_config, "device"):
|
|
237
|
-
raise CtxpException(
|
|
238
|
-
"Device session expired. Run 'zen auth login' or 'zen auth login --client-id --client-secret'."
|
|
239
|
-
)
|
|
237
|
+
raise CtxpException("Device session expired. Run 'zen auth login' or 'zen auth login --help'.")
|
|
240
238
|
if _cfg_get(auth_config, "browser"):
|
|
241
|
-
raise CtxpException(
|
|
242
|
-
|
|
243
|
-
)
|
|
244
|
-
raise CtxpException(
|
|
245
|
-
"Not logged in. Run 'zen auth login' or 'zen auth login --client-id --client-secret'."
|
|
246
|
-
)
|
|
239
|
+
raise CtxpException("Browser session expired. Run 'zen auth login' or 'zen auth login --help'.")
|
|
240
|
+
raise CtxpException("Not logged in. Run 'zen auth login' or 'zen auth login --help'.")
|
|
247
241
|
|
|
248
242
|
if not token.get("expires_at"):
|
|
249
243
|
token["expires_at"] = int(time.time() + token["expires_in"])
|
|
@@ -204,7 +204,7 @@ class EzClient:
|
|
|
204
204
|
if base_url.endswith("/"):
|
|
205
205
|
base_url = base_url[:-1]
|
|
206
206
|
client.base_url = base_url
|
|
207
|
-
client.timeout = int(os.environ.get("ZEN_CLI_TIMEOUT",
|
|
207
|
+
client.timeout = int(os.environ.get("ZEN_CLI_TIMEOUT", 15))
|
|
208
208
|
request_hooks = client.event_hooks["request"]
|
|
209
209
|
response_hooks = client.event_hooks["response"]
|
|
210
210
|
if _log_request not in request_hooks:
|
|
@@ -237,7 +237,7 @@ class EzClient:
|
|
|
237
237
|
files: Any = None,
|
|
238
238
|
headers: dict[str, Any] | None = None,
|
|
239
239
|
type: type[BaseModel] | None = None,
|
|
240
|
-
timeout: float =
|
|
240
|
+
timeout: float = 15.0,
|
|
241
241
|
) -> Any:
|
|
242
242
|
_check_access("POST", url)
|
|
243
243
|
try:
|
|
@@ -41,7 +41,7 @@ def get_latest_version() -> Version:
|
|
|
41
41
|
alias_httpx()
|
|
42
42
|
import httpx2
|
|
43
43
|
|
|
44
|
-
res = httpx2.get("https://pypi.org/pypi/zen-cli/json")
|
|
44
|
+
res = httpx2.get("https://pypi.org/pypi/zen-cli/json", timeout=15)
|
|
45
45
|
return _latest_installable(res.json().get("releases") or {})
|
|
46
46
|
|
|
47
47
|
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import base64
|
|
2
2
|
import json
|
|
3
3
|
import time
|
|
4
|
+
from typing import TYPE_CHECKING
|
|
4
5
|
|
|
5
6
|
from zen_cli.daas.support.auth import session_status
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
import pytest
|
|
6
10
|
from zen_cli.sglib.auth import configured_login_method, details_from_token, identity_from_token
|
|
7
11
|
|
|
8
12
|
|
|
@@ -26,6 +30,22 @@ def test_session_status_without_runtime_state() -> None:
|
|
|
26
30
|
assert session_status() == {"logged_in": False, "method": None, "ttl": 0}
|
|
27
31
|
|
|
28
32
|
|
|
33
|
+
def test_logout_clears_org_id(monkeypatch: pytest.MonkeyPatch) -> None:
|
|
34
|
+
from yumako.jsondot import DotDict
|
|
35
|
+
|
|
36
|
+
from zen_cli.cmds.auth.logout import logout
|
|
37
|
+
|
|
38
|
+
csp = DotDict({"orgId": "8e2aa39f-1fb4-469c-8ce6-4d9f8bb350c3"})
|
|
39
|
+
current = DotDict({"csp": csp})
|
|
40
|
+
saved: list[bool] = []
|
|
41
|
+
monkeypatch.setattr("zen_cli.cmds.auth.logout.profile.current", lambda exit_on_failure=False: current)
|
|
42
|
+
monkeypatch.setattr("zen_cli.cmds.auth.logout.profile.save", lambda: saved.append(True))
|
|
43
|
+
monkeypatch.setattr("zen_cli.cmds.auth.logout.profile.auth.delete", lambda: None)
|
|
44
|
+
logout.callback()
|
|
45
|
+
assert csp.orgId is None
|
|
46
|
+
assert saved == [True]
|
|
47
|
+
|
|
48
|
+
|
|
29
49
|
def test_ttl_math_positive_when_future_exp() -> None:
|
|
30
50
|
from zen_cli.sglib import auth as sglib_auth
|
|
31
51
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|