Skip to content

release: 0.71.0#127

Open
stainless-app[bot] wants to merge 3 commits into
mainfrom
release-please--branches--main--changes--next
Open

release: 0.71.0#127
stainless-app[bot] wants to merge 3 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app

@stainless-app stainless-app Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Automated Release PR

0.71.0 (2026-06-25)

Full Changelog: v0.70.0...v0.71.0

Features

  • Expose audit logs in public SDK (8c92e59)

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.List against GET /audit-logs with required start/end time bounds and optional filters (method, auth strategy, service, free-text search, etc.). Responses are AuditLogEntry records (path, status, user/email, client IP, route, and related request metadata). ListAutoPaging walks all pages automatically.

Pagination for this endpoint uses a new PageTokenPagination helper that follows X-Next-Page-Token (distinct from existing offset-based list pagination elsewhere in the SDK).

The root Client now exposes AuditLogs, with docs in api.md and generated tests in auditlog_test.go.

Reviewed by Cursor Bugbot for commit 68e38d9. Bugbot is set up for automated code reviews on this repo. Configure here.

@stainless-app

stainless-app Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

🧪 Testing

To try out this version of the SDK:

Download and unzip: 'https://pkg.stainless.com/s/kernel-go/8c92e59f00802a0fe4393ba7bdea1070554ab8b9/source.zip'. Run 'go mod edit -replace github.com/kernel/kernel-go-sdk=/path/to/unzipped_directory'.

Expires at: Fri, 24 Jul 2026 18:42:26 GMT
Updated at: Wed, 24 Jun 2026 18:42:26 GMT

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ 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
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit d003a61. Configure here.

@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from d003a61 to 68e38d9 Compare June 25, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants