Repository navigation
feat: add team member removal and a project filter for the member list - #53
Merged
Merged
Conversation
Add `$lettermint->team->members->remove($userId)`. `members->list()` and `members->iterate()` accept `filter[project_id]` to return only the members who can access that project. The operation coverage test is strict again: every operation in the generated table needs an SDK method. Co-Authored-By: Claude <noreply@anthropic.com>
bjarn
added this pull request to stack #54
October 20, 2026 20:49
bjornftw
approved these changes
Oct 20, 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
$lettermint->team->members->remove(string $userId): MessageResponse, which callsDELETE /team/members/{userId}with the team token.ConflictException, withowner_protectedinerrorCode.NotFoundException..and..user IDs are rejected before any request.Idempotency-Key.team->members->list()andteam->members->iterate()accept['filter' => ['project_id' => …]], sent asfilter[project_id].ListTeamMembersQueryshape, so the filter needed only docs and tests. The signatures don't change.listand through every page ofiterate.removeis in the Team API table, with a note on the project filter.Non-breaking.
Usage
Checks
On this branch (top of the stack):
vendor/bin/pest --ci: 352 passed (3835 assertions)vendor/bin/phpstan: no errors on PHP 8.5 and on PHP 8.4 (the CI version)vendor/bin/pint --test: passedcomposer generate:check(full regeneration check): 170 generated files up to datecomposer generate:checkin the header-only mode that CI runs: headers of 170 generated files OKcomposer update --prefer-lowestand--prefer-stable, each followed byvendor/bin/pest --ci. All runs passed with 352 tests (3835 assertions).php:8.3-cliDocker image, because the local PHP 8.3 build crashes from a broken third-party extension. That crash isn't related to this change.Not run locally
🤖 Generated with Claude Code