Skip to content

feat: enhance listMembers method with pagination and filtering options - #6

Merged
pikann merged 1 commit into
masterfrom
feature/enhance-member-pagination
Oct 14, 2026
Merged

pikann merged 1 commit into
masterfrom
feature/enhance-member-pagination

Conversation

@pikann

@pikann pikann commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

PluginApiClient.listMembers() now returns one cursor-paginated page and accepts filters, instead of returning every project member as an array. This matches the host change in Paca-AI/paca#571, where the project members endpoint is paginated.

Changes

  • listMembers(opts?: ListMembersOptions): Promise<MemberPage>
    • search: words that must all appear in the member's username, name or handle (server-side).
    • ids: look up specific members by membership id or account id (at most 100).
    • cursor: the previous page's next_cursor.
    • pageSize: 1-100.
  • New exported types ListMembersOptions and MemberPage ({items, page_size, next_cursor, total_count}).
  • ProjectMember: role_name: string is replaced by an optional roles?: {id, name}[], matching what the members endpoint returns for a member who can hold several roles.

Breaking changes

  • listMembers() returns a page object, not ProjectMember[]. Callers must read .items and follow next_cursor for more.
  • ProjectMember.role_name is gone; use roles.

This needs a new SDK version. Plugins pin published versions, so they must bump their dependency and adapt listMembers calls (the time-logging and example plugins are already updated on the plugin side).

Testing

tsc --noEmit passes. No tests were added; the change is type-level plus a query-string builder.

@pikann
pikann merged commit a7b01cc into master Oct 14, 2026
1 check passed
@pikann
pikann deleted the feature/enhance-member-pagination branch October 14, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant