Uh oh!
There was an error while loading. Please reload this page.
feat: add complete audit log download helper - #144
Conversation
3d6aee8 to
6cb8e9eCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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 0779ce9. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.

Summary
auditLogs.downloadfor complete exports while retainingexportChunkfor low-level accessexportChunkTesting
./scripts/lint./scripts/test./scripts/buildNote
Medium Risk
New client-side export path with integrity and pagination rules; failures can leave partial files (documented), but existing list/exportChunk APIs are unchanged.
Overview
Adds
auditLogs.downloadfor full gzip JSONL audit exports to any writable destination, whileexportChunkstays available for single-chunk access.The new helper pages via
X-Next-Cursor, validatesX-Has-More,X-Row-Count, andX-Content-Sha256before writing, detects repeated cursors, and retries transient transfer failures with configurablemaxTransferRetries. It supportsonProgress, abort signals, body read timeouts, and partial-write handling for destinations like Node file handles.AuditLogDownloadErrorand related types are exported from the package entrypoint.Reviewed by Cursor Bugbot for commit ec64cbd. Bugbot is set up for automated code reviews on this repo. Configure here.