Skip to content

Commit bcbb1ec

Browse files
committed
v4.7.0
1 parent 46c083a commit bcbb1ec

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Change Log (v2.8.1+)
22

3+
## v4.7.0 [2026-07-31]
4+
5+
__What's New:__
6+
7+
* Migrated `audit_logs.logs` to the Audit Log API v2 (`/api/logs/v2`). Audit Log API v1 is deprecated and scheduled for retirement in mid-October 2026. No method signatures changed, so a simple SDK upgrade is all that is required.
8+
9+
__Enhancements:__
10+
11+
* `audit_logs.logs.query` now uses v2 token based pagination via the `next-page` response header (with the `nextPageToken` body field, and the legacy `Next-Page-Token` header, honored as fallbacks), which resolves the prior issue where the final page of results could be omitted.
12+
* `audit_logs.logs.query` `from_time`/`to_time` now accept a string or int in addition to a `datetime`. Non-`datetime` values are passed through to the audit API, which supports ISO-8601 timestamps, epoch seconds/milliseconds, and relative expressions such as `now`, `yesterday`, or `1 day ago`. `datetime` inputs continue to be sent as UTC ISO-8601, so existing usage is unchanged.
13+
* `audit_logs.logs.[fields|operators]` now target the v2 endpoints.
14+
15+
__Bug Fixes:__
16+
17+
* None
18+
19+
__Dependencies:__
20+
21+
* None
22+
23+
__Other:__
24+
25+
* New errors that can be raised by `audit_logs.logs.query`:
26+
* `exceptions.AuditLogCsvDownloadError` — when `csv=True` and the presigned S3 URL for the CSV export cannot be downloaded (e.g. the execution environment lacks outbound HTTPS access to AWS S3).
27+
* `exceptions.InvalidRequest` — when the requested time frame exceeds the v2 maximum of 7 days (the human-readable API validation message is surfaced).
28+
329
## v4.6.1 [2026-07-07]
430

531
__Enhancements:__

src/britive/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '4.6.1'
1+
__version__ = '4.7.0'

0 commit comments

Comments
 (0)