Skip to content

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

Open
fern-api[bot] wants to merge 4 commits intomasterfrom
fern-bot/2026-04-30_09-07-36_088
Open

chore: Add events module, async token support, and connection retry resilience#835
fern-api[bot] wants to merge 4 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. 1,151 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

  • 370 new type files for branding, clients, connections, and other management resources
  • 117 renamed type files normalizing naming conventions (e.g., _v_2 to _v2, _o_auth_2 to _o_auth2)
  • 9 removed type files for consolidated or deprecated models

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 106 existing test files, and 1 new test file added for the events module.

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
def _iter():
_event_source = EventSource(_response)
for _sse in _event_source.iter_sse():
if _sse.data == None:
async def _iter():
_event_source = EventSource(_response)
async for _sse in _event_source.aiter_sse():
if _sse.data == None:
@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 2 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>
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.

2 participants