Repository navigation
feat: add team member removal and a project filter for the member list - #45
Merged
Merged
Conversation
Add `team.members.remove(userId)` (team token). `team.members.list` and
`team.members.iterate` accept `filter: { project_id }`, which returns only
the members who can access that project.
The coverage test is strict again: every operation has an SDK method.
Co-Authored-By: Claude <noreply@anthropic.com>
bjarn
added this pull request to stack #46
October 20, 2026 20:46
bjornftw
approved these changes
Oct 21, 2026
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.
What changed
team.members.remove(userId, options?):DELETE /team/members/{userId}, returnsMessageResponse(team token). The Owner can't be removed; that answers 409 and throws the existingConflictError. An unknown member throwsNotFoundError. Empty,.and..user IDs are rejected before any request. No request body and noIdempotency-Key.team.members.listandteam.members.iterateacceptfilter: { project_id }(sent asfilter[project_id]). The list then has only the members who can access that project: members with access to all projects plus the members selected for it. An unknown project returns an empty list. The methods already took the generated query type, so the filter needed only docs and tests, no signature change.removeis in the Team API table, and the Team API example shows the project filter.Non-breaking.
Usage
Checks
On this branch (top of the stack):
npm run lint: passednpm run type-check: passednpm run generate:check: generated files up to date with the pinned spec; the header-only mode that CI runs also passesnpm run test:coverage: 8 suites, 350 tests passednpm run test:coverageon Node 20.18.0, 22.21.0 and 24.18.0: 350 passed eachnpm run build: passednpm run test:smoke: ESM import, CJS require and type declarations OKNot run locally
Nothing; every CI step was run locally.
🤖 Generated with Claude Code