diff --git a/CHANGELOG.md b/CHANGELOG.md index 37ac4fc..e787c6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- Synced with the latest OpenAPI spec: `ListEmailsResponse` and + `ListProjectsResponse` no longer carry a top-level `success` flag; + `ErrorCode` gained `retrieval_error`, `insufficient_scope`, and + `schedule_cancellation_failed`; the webhook event-type typo + `engagament.*` was corrected to `engagement.*`. No SDK behavior + change — `error_code` values and webhook `events` strings continue + to accept any value, so callers don't need to update their code. + ### Fixed - `emails.list()`, `emails.get()`, and `emails.list_events()` were reading responses at the wrong nesting level and silently returned empty results diff --git a/tests/__pycache__/test_emails.cpython-313-pytest-9.0.3.pyc b/tests/__pycache__/test_emails.cpython-313-pytest-9.0.3.pyc index 5938851..e667ee6 100644 Binary files a/tests/__pycache__/test_emails.cpython-313-pytest-9.0.3.pyc and b/tests/__pycache__/test_emails.cpython-313-pytest-9.0.3.pyc differ diff --git a/tests/test_emails.py b/tests/test_emails.py index 9fe35c6..afd97b6 100644 --- a/tests/test_emails.py +++ b/tests/test_emails.py @@ -168,7 +168,6 @@ def test_list_regression_nested_events_wrapper( empty list when the API actually had emails. """ mock_client.get.return_value = { - "success": True, "message": "Emails retrieved successfully.", "data": { "events": {