Skip to content
This repository was archived by the owner on Nov 16, 2026. It is now read-only.
This repository was archived by the owner on Nov 16, 2026. It is now read-only.

Missing paginated variants for team, repository, and issue list endpoints #60

Closed

Description

@BYK

Summary

The @sentry/api SDK provides no paginated (single-page, cursor-aware) variants for team, repository, or issue list endpoints. This forces callers that need cursor pagination to bypass the SDK entirely.

Missing methods

Missing What callers need
listTeamsPaginated(orgSlug, { cursor?, perPage }) Returns { data: SentryTeam[], nextCursor?: string }
listRepositoriesByOrganizationPaginated(orgSlug, { cursor?, perPage }) Returns { data: SentryRepository[], nextCursor?: string }
listIssuesPaginated(orgSlug, projectSlug, { cursor?, perPage, query?, sort? }) Returns { data: SentryIssue[], nextCursor?: string }

Impact

In the Sentry CLI, adding --cursor pagination to sentry team list, sentry repo list, and sentry issue list required dropping the SDK and calling orgScopedRequestPaginated() directly. This means:

  • SDK updates won't automatically benefit these commands
  • Type safety from the SDK is lost at the call site
  • More boilerplate per command

Related

Compounds the issue in #59 (unwrapResult() discarding Link headers) — even if that is fixed, callers still need first-class paginated method signatures.

Suggested API

listTeamsPaginated(
  orgSlug: string,
  opts: { cursor?: string; perPage: number }
): Promise<{ data: SentryTeam[]; nextCursor?: string }>

/cc @MathurAditya724

Activity

  1. added a commit that references this issue on Mar 2, 2026
    2bf409a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions