Repository navigation
feat(cli): accept the billing team role - #421
Merged
Merged
Conversation
`argos account member set-level` and `argos account invite create` now accept `--level billing`. A billing member is a member who also manages the team's plan, spend limit and invoices. `account update --default-user-level` keeps `member | contributor`: billing is not a valid default role. Refs ARG-511 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds the
billingteam role (ARG-511) to the CLI. A billing member is a member who also manages the team's plan, spend limit and invoices.argos account member set-level --level billingandargos account invite create … --level billingare now accepted. Choices:owner, billing, member, contributor.argos account update --default-user-levelis unchanged (member | contributor):billingis not a valid default role.@argos-ci/api-client:TeamUserLevelis now"owner" | "billing" | "member" | "contributor".argos-cliskill: lists the four roles and says every role butcontributorreaches every project.Important
Draft until the API accepts
billing. The server change (argos-ci/argos, branchclaude/arg-511-billing-role-4f491b) is not merged or deployed yet. Before then, the API rejects--level billing.How
schema.tswas regeneratedhttps://api.argos-ci.com/v2/openapi.yamldoes not includebillingyet. To regenerate:schema.tsis byte-identical to whatopenapi-typescriptgenerates from it today, so the starting point had no drift.components.schemas.TeamUserLevelto match the server branch: thebillingenum value and the new description.openapi-typescript(7.13.0, the repo's version) on it.The resulting diff is 2 lines. Once the server is deployed, run
pnpm --filter @argos-ci/api-client run build-schema-typesbefore merging. It should produce no diff. If it does, the server's final wording changed.Type of changes
enhancementVerification
pnpm run build,check-types,lint,check-format: all pass.@argos-ci/cliunit project: 15 files, 171 tests pass.@argos-ci/api-client: 28 tests pass. The CLIe2eproject needs CI secrets (ARGOS_TOKEN,USER_ACCESS_TOKEN), so it was not run locally.ARGOS_API_BASE_URL):Checklist
.choiceslist, already typed against the generatedTeamUserLevelskills/argos-cli/SKILL.md)🤖 Generated with Claude Code