fix: Remove placeholder defaults from optional parameters + additional updates #778
Merged
kishore7snehil merged 1 commit intomasterfrom Feb 10, 2026
Merged
fix: Remove placeholder defaults from optional parameters + additional updates #778kishore7snehil merged 1 commit intomasterfrom
kishore7snehil merged 1 commit intomasterfrom
Conversation
Merged
kishore7snehil
added a commit
that referenced
this pull request
Feb 10, 2026
**Fixed** - fix: Remove placeholder defaults from optional parameters [\#778](#778) ([fern-api[bot]](https://github.com/apps/fern-api)) **Added** - feat: Additional updates [\#778](#778) ([fern-api[bot]](https://github.com/apps/fern-api))
Merged
kishore7snehil
added a commit
that referenced
this pull request
Feb 11, 2026
**Fixed** - fix: Remove placeholder defaults from optional parameters + additional updates [\#778](#778) ([fern-api[bot]](https://github.com/apps/fern-api))
3 tasks
kishore7snehil
added a commit
that referenced
this pull request
Mar 17, 2026
## Summary This Fern regeneration includes several significant changes across 61 files: ### Bug Fix: Pagination (Fixes #783) - Fixed incorrect page advancement in **64 paginated endpoints** across all `raw_client.py` files - **Before (broken):** `page = page + len(_items or [])` — skipped pages when `per_page > 1` - **After (fixed):** `page = page + 1` - correctly advances one page at a time ### New Feature: SDK Logging Infrastructure - Added configurable logging via new `logging` parameter on the `Auth0` client - New `core/logging.py` module with `ConsoleLogger`, `Logger`, `LogConfig`, and `ILogger` protocol - Supports log levels: `debug`, `info`, `warn`, `error` with a `silent` mode (default) - HTTP request/response logging at debug level with method, URL, status code - Sensitive header redaction (`Authorization`, `Cookie`, `X-Api-Key`, etc.) in log output - Custom logger support via `ILogger` protocol ### New Types: OAuth1 & DPoP Connection Support - 10 new connection type files for OAuth1 connections (`connection_access_token_url_oauth1`, `connection_client_id_oauth1`, `connection_scripts_oauth1`, etc.) - DPoP signing algorithm types (`connection_dpop_signing_alg_enum`, `connection_dpop_signing_alg_values_supported`) - OIDC metadata types (`connection_options_oidc_metadata`, `connection_options_common_oidc`) - New `client_token_exchange_type_enum` and `resource_server_proof_of_possession_required_for_enum` ### Other Changes - Self-service profiles: updated response types (`create`, `get`, `update`) and `self_service_profile` model - Removed `core/custom_pagination.py` (replaced by standard pagination) - Updated `reference.md` and test configuration (`conftest.py`) ### Manual Fixes (on top of Fern regeneration) - Fixed `client_wrapper.py` to accept and forward the `logging` parameter to `HttpClient`/`AsyncHttpClient` (was missing, causing `TypeError` at runtime) - Added `ManagementClient` and `AsyncManagementClient` to `TYPE_CHECKING` and `__all__` exports in `__init__.py` (Fixes #793) ## Breaking Changes - `custom_pagination.py` has been removed — any code importing from it will need to update ## Test Plan - [x] Pagination: Created 5 roles, paginated with `per_page=2`, verified 3 pages returned with all 5 roles - [x] Logging: Verified debug logging captures HTTP method/URL/status, header redaction works, level filtering suppresses lower levels, silent mode produces zero output - [x] Existing tests (auth, management, Issue #778) continue to pass --------- Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Snehil Kishore <snehil.kishore@okta.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
Fixes
create()andupdate()methods to useOMITinstead of placeholder defaultsphone_number="+199999999999999",email="john.doe@gmail.com", etc. even when not provided by callerusers,organizations,actions,tickets,rules,hooks,email_templates,guardian, etc.)connectionparameter inusers.create())New Features
Server-Sent Events (SSE) Support
parse_sse_obj()function inpydantic_utilities.pyfor parsing streaming responsesOAuth Provider Type Definitions
Pagination Enhancements
actions.modules.versions.list()endpointpageandper_pageparameters with defaults (page=0,per_page=50)SyncPager/AsyncPagerfor consistent iterationTenant Domain Parameter
tenant_domainparameter toAuth0()andAsyncAuth0()client initialization