release: 0.71.0#127
Conversation
|
🧪 Testing To try out this version of the SDK: Expires at: Fri, 24 Jul 2026 18:42:26 GMT |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d003a61. Configure here.
| func (r *PageTokenPagination[T]) GetNextPage() (res *PageTokenPagination[T], err error) { | ||
| if len(r.Items) == 0 { | ||
| return nil, nil | ||
| } |
There was a problem hiding this comment.
Empty page ignores next page token
Medium Severity
PageTokenPagination.GetNextPage returns immediately when Items is empty, so it never reads X-Next-Page-Token. If GET /audit-logs returns an empty page with a continuation header, manual paging and ListAutoPaging stop early and omit later records.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit d003a61. Configure here.
d003a61 to
68e38d9
Compare


Automated Release PR
0.71.0 (2026-06-25)
Full Changelog: v0.70.0...v0.71.0
Features
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions
Note
Low Risk
Additive OpenAPI-generated SDK surface with no changes to existing client behavior; audit data is read-only listing scoped to the authenticated org.
Overview
Release 0.71.0 adds org audit log search to the Go SDK and bumps package metadata to match.
Callers can use
client.AuditLogs.ListagainstGET /audit-logswith requiredstart/endtime bounds and optional filters (method, auth strategy, service, free-text search, etc.). Responses areAuditLogEntryrecords (path, status, user/email, client IP, route, and related request metadata).ListAutoPagingwalks all pages automatically.Pagination for this endpoint uses a new
PageTokenPaginationhelper that followsX-Next-Page-Token(distinct from existing offset-based list pagination elsewhere in the SDK).The root
Clientnow exposesAuditLogs, with docs inapi.mdand generated tests inauditlog_test.go.Reviewed by Cursor Bugbot for commit 68e38d9. Bugbot is set up for automated code reviews on this repo. Configure here.