Skip to content

feat: SDK regeneration - MFA Advanced Factor Configuration (GA), Anonymous Sessions, Experimentation API, and Search endpoint - #1404

Merged
ankita10119 merged 3 commits into
masterfrom
fern-bot/2026-09-11_02-58-42_868
Sep 11, 2026
Merged

feat: SDK regeneration - MFA Advanced Factor Configuration (GA), Anonymous Sessions, Experimentation API, and Search endpoint#1404
ankita10119 merged 3 commits into
masterfrom
fern-bot/2026-09-11_02-58-42_868

Conversation

@fern-api

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

Copy link
Copy Markdown
Contributor

Summary

Automated SDK regeneration adding support for MFA Advanced Factor Configuration (GA) with Guardian Settings and Email/Phone Factor Settings endpoints, Anonymous Sessions management API fields across clients/tenants/resource servers, a new Experimentation API resource, search endpoints for Organizations and Resource Servers, and a new GatewayTimeoutError (504) type.

Changes

MFA Advanced Factor Configuration (GA)

  • Add guardian.get() / guardian.set() - GET/PUT /api/v2/guardian/settings
    • Properties: display_remember_me_checkbox, remember_me_default_value, mfa_session_inactivity_timeout, mfa_session_overall_timeout
    • New types: GetGuardianSettingsResponseContent, SetGuardianSettingsResponseContent (types.ts), SetGuardianSettingsRequestContent (requests.ts)
  • Add guardian.factors.email.get() / guardian.factors.email.set() - GET/PUT /api/v2/guardian/factors/email/settings
    • Properties: otp_length, otp_expiration_time
    • New types: GetEmailFactorSettingsResponseContent, SetEmailFactorSettingsResponseContent (types.ts), SetEmailFactorSettingsRequestContent (requests.ts)
  • Add guardian.factors.phone.get() / guardian.factors.phone.set() - GET/PUT /api/v2/guardian/factors/phone/settings - (Note: phone factor client was an existing resource, get()/set() settings methods were added to it)
    • Properties: otp_length, otp_expiration_time
    • New types: GetPhoneFactorSettingsResponseContent, SetPhoneFactorSettingsResponseContent (types.ts), SetPhoneFactorSettingsRequestContent (requests.ts)

Anonymous Sessions (Management API fields)

  • Add anonymous_sessions.active to Client, CreateClientRequestContent, UpdateClientRequestContent and all client response types
    • New types: AnonymousSessions, CreateAnonymousSessions, UpdateAnonymousSessions
  • Add sessions.anonymous.lifetime_in_minutes and sessions.anonymous.activate_cookie to tenant settings
    • New type: TenantSettingsSessionsAnonymous
  • Add subject_type_authorization.anonymous_user.policy (deny_all | require_client_grant) and token_lifetime_for_anonymous_access_tokens to resource server types
    • New types: ResourceServerSubjectTypeAuthorizationAnonymousUser, ResourceServerSubjectTypeAuthorizationAnonymousUserPolicyEnum

Experimentation API (new resource)

  • Add client.experimentation resource
    • experimentation.experiments.advanceRamp(id, request) - POST /api/v2/experimentation/experiments/{id}/advance-ramp
  • Add UpdateExperimentation: "update:experimentation" to OauthScope
  • New types: AdvanceRampResponseContent (types.ts), AdvanceRampRequestContent (requests.ts)

Search Endpoints

  • Add organizations.search(request) - GET /api/v2/organizations/search
    • SCIM/Lucene filter syntax (q, parser), cursor-based pagination (from, take), sort by name, display_name, or created_at
    • New types: SearchOrganizationsRequestParameters (requests.ts), SearchOrganization, SearchOrganizationsPaginatedResponseContent, OrganizationSortFieldEnum, SearchParserEnum (types.ts)
  • Add resourceServers.search(request) - GET /api/v2/resource-servers/search
    • SCIM/Lucene filter syntax, cursor-based pagination, sort by identifier, name, or updated_at
    • New types: SearchResourceServersRequestParameters (requests.ts), ResourceServerSearchResponse, SearchResourceServersResponseContent, ResourceServerSortFieldEnum (types.ts)
    • Shares SearchParserEnum with organizations.search()

Error Handling

  • Add GatewayTimeoutError (504) to error exports - now surfaced in organizations.search() and resourceServers.search()

⚠️ Breaking Changes

  1. client.organizationTemplates removed

The entire organizationTemplates resource has been deleted from the Management client:

  • client.organizationTemplates.list()
  • client.organizationTemplates.create()
  • client.organizationTemplates.get(id)
  • client.organizationTemplates.update(id)
  • client.organizationTemplates.listOrganizations(id)
  • OauthScope values removed: CreateOrganizationTemplates: "create:organization_templates",
    UpdateOrganizationTemplates: "update:organization_templates"

Removed types: ListOrganizationTemplatesPaginatedResponseContent, OrganizationTemplateAssignedOrganization, ListTemplateOrganizationsPaginatedResponseContent

  1. Enum values renamed/removed in ConnectionIdentityProviderEnum and ConnectionStrategyEnum

    Renamed (key and string value both changed):

    • AsanaMcp: "asana-mcp" → Asana: "asana"
    • AtlassianMcp: "atlassian-mcp" → Atlassian: "atlassian"
    • GitlabMcp: "gitlab-mcp" → Gitlab: "gitlab"
    • SlackMcp: "slack-mcp" → Slack: "slack"

    Removed:

    • DocusignMcp, FigmaMcp, GustoMcp, HerokuMcp, IntercomMcp, PagerdutyMcp, SupabaseMcp, VercelMcp, XeroMcp

Testing

  • Wire tests added for guardian/settings - GET/PUT coverage
  • Wire tests added for guardian/factors/email - GET/PUT coverage
  • Wire tests added for guardian/factors/phone - GET/PUT coverage
  • Wire tests updated for organizations - search endpoint coverage
  • Wire tests updated for resourceServers - search endpoint coverage
  • Wire tests added for experimentation/experiments - advanceRamp coverage
  • Wire tests updated for clients - anonymous sessions field coverage
  • Wire tests updated for tenants/settings - anonymous sessions field coverage
  • Wire tests for organizationTemplates deleted (resource removed)

Checklist

fern-api Bot added 2 commits September 11, 2026 02:58
Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-typescript-sdk: 3.72.5
Patches applied (6):
  - patch-066ff9e0: docs: add v6 migration guide for breaking changes in v6.0.0 (#1368)
  - patch-d8faf7a2: docs: update v6 migration guide with federatedConnectionsTokensets and federated_connections_access_tokens breaking changes (#1370)
  - patch-0f7baa6f: fix: auto-stamp SDK_VERSION from package.json during build (#1382)
  - patch-5adf10d8: [BREAKING] feat!: remove Authentication layer (#1390)
  - patch-b942f5d6: docs: add Authentication API migration guide (auth0-auth-js / auth0-server-js) (#1395)
  - patch-842d2f51: docs: add v7 migration guide (v6 → v7) (#1396)

Patches with unresolved conflicts (7):
  - patch-490e5634: feat(management): add sub-package exports and management auth helper (#1373)
  - patch-74170bb0: Release v6.1.0 (#1381)
  - patch-4fcb39a4: Release v6.2.0 (#1389)
  - patch-f9d64134: Release v6.3.0 (#1393)
  - patch-4d450aa4: Release v6.4.0 (#1401)
  - patch-42fd927d: chore(v7): remove dead exports and unreachable telemetry middleware (#1397)
  - patch-d4614ec0: Release v7.0.0 (#1402)
    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:58
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.19074% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.68%. Comparing base (d4614ec) to head (307da47).

Files with missing lines Patch % Lines
...management/api/resources/guardian/client/Client.ts 87.50% 8 Missing ⚠️
...resources/factors/resources/email/client/Client.ts 88.57% 8 Missing ⚠️
...resources/factors/resources/phone/client/Client.ts 86.66% 8 Missing ⚠️
...rimentation/resources/experiments/client/Client.ts 91.11% 4 Missing ⚠️
...ement/api/resources/organizations/client/Client.ts 91.11% 4 Missing ⚠️
...ent/api/resources/resourceServers/client/Client.ts 91.83% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1404      +/-   ##
==========================================
+ Coverage   89.67%   89.68%   +0.01%     
==========================================
  Files         433      439       +6     
  Lines       20911    21080     +169     
  Branches    10245     9990     -255     
==========================================
+ Hits        18751    18905     +154     
- Misses       2160     2175      +15     
Flag Coverage Δ
alltests 89.68% <90.19%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/management/Client.ts 97.33% <100.00%> (ø)
src/management/api/errors/GatewayTimeoutError.ts 100.00% <100.00%> (ø)
src/management/api/errors/index.ts 100.00% <100.00%> (ø)
...ent/api/resources/experimentation/client/Client.ts 100.00% <100.00%> (ø)
.../management/api/resources/experimentation/index.ts 100.00% <100.00%> (ø)
...ces/experimentation/resources/experiments/index.ts 100.00% <ø> (ø)
...t/api/resources/experimentation/resources/index.ts 100.00% <100.00%> (ø)
...ources/guardian/resources/factors/client/Client.ts 90.36% <100.00%> (+0.36%) ⬆️
...uardian/resources/factors/resources/email/index.ts 100.00% <100.00%> (ø)
...rces/guardian/resources/factors/resources/index.ts 100.00% <100.00%> (ø)
... and 8 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ankita10119 ankita10119 changed the title SDK regeneration feat: SDK regeneration - MFA Advanced Factor Configuration (GA), Anonymous Sessions, Experimentation API, and Search endpoint Sep 11, 2026

@developerkunal developerkunal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@rmad17 rmad17 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

@ankita10119
ankita10119 merged commit 6151df7 into master Sep 11, 2026
11 checks passed
@ankita10119
ankita10119 deleted the fern-bot/2026-09-11_02-58-42_868 branch September 11, 2026 14:14
@ankita10119 ankita10119 mentioned this pull request Sep 11, 2026
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.

3 participants