Skip to content

chore: Add events module, async token support, and connection retry resilience#835

Merged
kishore7snehil merged 5 commits intomasterfrom
fern-bot/2026-04-30_09-07-36_088
May 4, 2026
Merged

chore: Add events module, async token support, and connection retry resilience#835
kishore7snehil merged 5 commits intomasterfrom
fern-bot/2026-04-30_09-07-36_088

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api Bot commented Apr 30, 2026

Changes

This update adds new management API capabilities, improves HTTP client resilience, and enhances async client flexibility. 976 files changed across the management SDK, types, and wire tests.

New events management module

  • Added events client with sync and async support (src/auth0/management/events/)
  • New wire tests for the events endpoint

HTTP client retry improvements

  • Added _retry_timeout_from_retries() for connection-level retry backoff when no response is available
  • HTTP client now retries on ConnectError and RemoteProtocolError with exponential backoff
  • Configurable base_max_retries parameter on both sync and async HTTP clients
  • Fixed missing data and force_multipart parameters being forwarded on retry

Async client enhancements

  • New async_token parameter on AsyncAuth0 for async bearer token acquisition (e.g., refreshing tokens via an async HTTP client)
  • New _make_default_async_client helper for automatic aiohttp detection
  • Added _default_clients.py with DefaultAioHttpClient and DefaultAsyncHttpxClient classes

Type model updates

  • 361 new type files for branding, clients, connections, and other management resources
  • 607 existing files modified across management clients, types, and core modules

Custom wiring

  • Restored custom wiring in management/__init__.py for ManagementClient, AsyncManagementClient, CustomDomainHeader, TokenProvider, and AsyncTokenProvider

References

  • Fern generator: fernapi/fern-python-sdk: 5.8.4

Testing

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language or why not

Wire tests updated across 108 existing test files, and 2 new test files added (events module + aiohttp autodetect).

Checklist

Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-python-sdk: 5.8.4
@fern-api fern-api Bot requested a review from a team as a code owner April 30, 2026 09:07
Comment thread src/auth0/management/events/raw_client.py Dismissed
Comment thread src/auth0/management/events/raw_client.py Dismissed
@developerkunal developerkunal changed the title SDK regeneration chore: Add events module, async token support, and connection retry resilience Apr 30, 2026
developerkunal and others added 3 commits May 1, 2026 13:10
Automated SDK generation by Fern

---

✅ Customizations automatically preserved in this update.

---------

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@kishore7snehil kishore7snehil left a comment

Choose a reason for hiding this comment

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

LGTM!

@kishore7snehil kishore7snehil merged commit dccf7ae into master May 4, 2026
9 checks passed
@kishore7snehil kishore7snehil deleted the fern-bot/2026-04-30_09-07-36_088 branch May 4, 2026 09:52
@kishore7snehil kishore7snehil mentioned this pull request May 4, 2026
kishore7snehil added a commit that referenced this pull request May 4, 2026
**Added**
- chore: Add events module, async token support, and connection retry
resilience [\#835](#835)
([fern-api[bot]](https://github.com/apps/fern-api))

**Changed**
- [fern-replay] Initialize Replay for SDK customizations
[\#833](#833)
([fern-api[bot]](https://github.com/apps/fern-api),
[developerkunal](https://github.com/developerkunal))

**Fixed**
- fix: Add top-level `py.typed` marker to resolve IDE import errors
[\#829](#829)
([kishore7snehil](https://github.com/kishore7snehil))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants