chore: Add events module, async token support, and connection retry resilience#835
Open
fern-api[bot] wants to merge 4 commits intomasterfrom
Open
chore: Add events module, async token support, and connection retry resilience#835fern-api[bot] wants to merge 4 commits intomasterfrom
fern-api[bot] wants to merge 4 commits intomasterfrom
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 5.8.4
| 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: |
Automated SDK generation by Fern --- ✅ Customizations automatically preserved in this update. --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
eventsclient with sync and async support (src/auth0/management/events/)HTTP client retry improvements
_retry_timeout_from_retries()for connection-level retry backoff when no response is availableConnectErrorandRemoteProtocolErrorwith exponential backoffbase_max_retriesparameter on both sync and async HTTP clientsdataandforce_multipartparameters being forwarded on retryAsync client enhancements
async_tokenparameter onAsyncAuth0for async bearer token acquisition (e.g., refreshing tokens via an async HTTP client)_make_default_async_clienthelper for automatic aiohttp detection_default_clients.pywithDefaultAioHttpClientandDefaultAsyncHttpxClientclassesType model updates
_v_2to_v2,_o_auth_2to_o_auth2)Custom wiring
management/__init__.pyforManagementClient,AsyncManagementClient,CustomDomainHeader,TokenProvider, andAsyncTokenProviderReferences
fernapi/fern-python-sdk: 5.8.4Testing
Wire tests updated across 106 existing test files, and 1 new test file added for the events module.
Checklist