Skip to content

feat: add guardian MFA settings, anonymous sessions support, and email factor client - #890

Merged
rmad17 merged 3 commits into
masterfrom
fern-bot/2026-09-11_02-46-44_289
Sep 11, 2026
Merged

feat: add guardian MFA settings, anonymous sessions support, and email factor client#890
rmad17 merged 3 commits into
masterfrom
fern-bot/2026-09-11_02-46-44_289

Conversation

@fern-api

@fern-api fern-api Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Breaking Changes ⚠️

  • OrganizationTemplates client removed: management.organization_templates is deleted along with ListOrganizationTemplatesPaginatedResponseContent and OrganizationTemplateAssignedOrganization. The module was exported from auth0.management, so direct imports break. The remaining OrganizationTemplate and related enum/policy types stay in place.
  • Connection enum member updates: Four providers dropped the -mcp suffix (asana-mcp becomes asana, atlassian-mcp becomes atlassian, gitlab-mcp becomes gitlab, slack-mcp becomes slack). Nine values are removed entirely (docusign-mcp, figma-mcp, gusto-mcp, heroku-mcp, intercom-mcp, pagerduty-mcp, supabase-mcp, vercel-mcp, xero-mcp). notion-mcp, cloudflare-mcp, hubspot-mcp, linear-mcp, and sentry-mcp keep the suffix. Both types are Union[Literal[...], Any], so the SDK does not raise at runtime on old string values, but the Auth0 API will reject them server-side. Code that passes old literal strings or annotates variables with ConnectionStrategyEnum must be updated. Static type checkers will flag the removed members.

Added

  • Guardian settings: new management.guardian.get() and management.guardian.set(display_remember_me_checkbox, remember_me_default_value, mfa_session_inactivity_timeout, mfa_session_overall_timeout) calling GET/PUT /api/v2/guardian/settings. Response type GetGuardianSettingsResponseContent / SetGuardianSettingsResponseContent.
  • Email MFA factor: new management.guardian.factors.email sub-client with get() and set(otp_length, otp_expiration_time) calling GET/PUT /api/v2/guardian/factors/email/settings. Response types GetEmailFactorSettingsResponseContent / SetEmailFactorSettingsResponseContent.
  • Phone factor settings: new management.guardian.factors.phone.get() and set(otp_length, otp_expiration_time) calling GET/PUT /api/v2/guardian/factors/phone/settings, in addition to the existing message type, provider, and template operations. Response types GetPhoneFactorSettingsResponseContent / SetPhoneFactorSettingsResponseContent.
  • Organizations search: new management.organizations.search(...) calling GET /api/v2/organizations/search with paginated results. New types: SearchOrganization, SearchOrganizationsPaginatedResponseContent, OrganizationSortFieldEnum.
  • Resource servers search: new management.resource_servers.search(...) calling GET /api/v2/resource-servers/search with search parameters. New types: SearchResourceServersResponseContent, ResourceServerSearchResponse, ResourceServerSortFieldEnum, ResourceServerSubjectTypeAuthorization.
  • Experimentation client: new experimentation sub-client exposing experiments.advance_ramp(...). It is reachable on the generated Auth0 / AsyncAuth0 management client, not on the ManagementClient facade, so management.experimentation is not available.
  • Anonymous sessions on clients: POST and PATCH /api/v2/clients accept a new anonymous_sessions field (CreateAnonymousSessions / UpdateAnonymousSessions, required field active: bool). GET /api/v2/clients/{id} response exposes anonymous_sessions: Optional[AnonymousSessions].
  • Anonymous sessions on tenant settings: PATCH /api/v2/tenants/settings accepts sessions.anonymous (TenantSettingsSessionsAnonymous) with optional fields lifetime_in_minutes (int) and activate_cookie (bool).
  • Resource server anonymous access: POST and PATCH /api/v2/resource-servers accept token_lifetime_for_anonymous_access_tokens: Optional[int] and subject_type_authorization.anonymous_user.policy (enum deny_all / require_client_grant).
  • GatewayTimeoutError: new error type raised on HTTP 504 responses.

fern-api Bot added 2 commits September 11, 2026 02:46
Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-python-sdk: 5.26.0
Patches applied (5):
  - patch-c04f0b4d: Fix for incorrect return type and missing __all__ type
  - patch-f7384913: Remove duplicate FedCmLoginGooglePatch and FedCmLoginPatch entries
  - patch-1e44613d: Added migration guide for v5 to v6
  - patch-30b1089a: Updated UPGRADING.md doc
  - patch-d6d69aeb: Remove duplicate FedCmLoginGooglePatch and FedCmLoginPatch entries

Patches with unresolved conflicts (3):
  - patch-4894603d: chore: Restore custom wiring in management/__init__.py
  - patch-7271f157: Revert wrapper file to preserve Auth0 telemetry customizations
  - patch-95211006: Restore Auth0 telemetry and custom client wiring after regeneration
    Run `fern-replay resolve` to apply these customizations.
@fern-api
fern-api Bot requested a review from a team as a code owner September 11, 2026 02:46
Comment thread src/auth0/management/__init__.py Fixed
Patches replayed:
  - patch-4894603d: chore: Restore custom wiring in management/__init__.py
  - patch-7271f157: Revert wrapper file to preserve Auth0 telemetry customizations
  - patch-c04f0b4d: Fix for incorrect return type and missing __all__ type
  - patch-95211006: Restore Auth0 telemetry and custom client wiring after regeneration
  - patch-f7384913: Remove duplicate FedCmLoginGooglePatch and FedCmLoginPatch entries
  - patch-1e44613d: Added migration guide for v5 to v6
  - patch-30b1089a: Updated UPGRADING.md doc
  - patch-d6d69aeb: Remove duplicate FedCmLoginGooglePatch and FedCmLoginPatch entries
@rmad17 rmad17 changed the title SDK regeneration feat: add guardian MFA settings, anonymous sessions support, and email factor client Sep 11, 2026
@rmad17
rmad17 merged commit dbe36d5 into master Sep 11, 2026
9 checks passed
@rmad17
rmad17 deleted the fern-bot/2026-09-11_02-46-44_289 branch September 11, 2026 09:28
@rmad17 rmad17 mentioned this pull request Sep 11, 2026
rmad17 added a commit that referenced this pull request Sep 11, 2026
⚠️ **Breaking Changes**
- `management.organization_templates` client removed along with
`ListOrganizationTemplatesPaginatedResponseContent` and
`OrganizationTemplateAssignedOrganization`. Four connection providers
dropped the `-mcp` suffix (`asana-mcp` becomes `asana`, `atlassian-mcp`
becomes `atlassian`, `gitlab-mcp` becomes `gitlab`, `slack-mcp` becomes
`slack`) and nine values removed entirely (`docusign-mcp`, `figma-mcp`,
`gusto-mcp`, `heroku-mcp`, `intercom-mcp`, `pagerduty-mcp`,
`supabase-mcp`, `vercel-mcp`, `xero-mcp`)
[\#890](#890)
([fern-api[bot]](https://github.com/apps/fern-api))

**Added**
- Guardian MFA settings (`GET`/`PUT /api/v2/guardian/settings`), email
and phone factor settings, organizations search, resource servers
search, experimentation client, anonymous sessions support on clients
and tenant settings, resource server anonymous access token
configuration, and `GatewayTimeoutError` for HTTP 504
[\#890](#890)
([fern-api[bot]](https://github.com/apps/fern-api))
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