Skip to content

feat: My Organization Member Management EA, Resource Server Access Token Custom Claims, and Organization Connection Member Access Level - #1406

Merged
ankita10119 merged 2 commits into
masterfrom
fern-bot/2026-09-15_05-57-48_424
Sep 16, 2026
Merged

ankita10119 merged 2 commits into
masterfrom
fern-bot/2026-09-15_05-57-48_424

Conversation

@fern-api

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

Copy link
Copy Markdown
Contributor

🔧 Changes

Adds management fields for My Organization member management, resource server access token custom claims, and organization connection member access levels.

  • Client (my_organization_configuration): enforce_permission_ceiling limits permissions that org admins can assign to members; enforce_self_assignment_restriction prevents org admins from assigning permissions to themselves. Added to ClientMyOrganizationPatchConfiguration, ClientMyOrganizationPostConfiguration, and
    ClientMyOrganizationResponseConfiguration.
  • Resource Server: access_token.claims_mapping.custom_claims allows custom claims to be emitted in anonymous-session access tokens via dot-path expressions (e.g. anonymous_session.metadata.country). Added to CreateResourceServerRequestContent, UpdateResourceServerRequestContent, CreateResourceServerResponseContent, GetResourceServerResponseContent,
    UpdateResourceServerResponseContent, ResourceServer, and ResourceServerSearchResponse
    • New supporting types: ResourceServerAccessToken, ResourceServerAccessTokenClaimsMapping, ResourceServerAccessTokenCustomClaimsMapping, and
      ResourceServerAccessTokenCustomClaimsMappingRule.
  • Tenant Settings: access_token field added to GetTenantSettingsResponseContent, UpdateTenantSettingsResponseContent, and UpdateTenantSettingsRequestContent.
  • Organization Connections: organization_member_access_level (none | readonly | limited | full) added to all organization connection request/response types. New enum type
    OrganizationMemberAccessLevelEnum for standard usage, plus a nullable variant OrganizationMemberAccessLevelEnumWithNull used for
    UpdateOrganizationConnectionRequestParameters where the field is nullable.

// My Organization member management

  client.my_organization_configuration = {
      enforce_permission_ceiling: true,
      enforce_self_assignment_restriction: false,
  };

// Resource server access token custom claims

resourceServer.access_token = {
    claims_mapping: {
        custom_claims: [{ name: "country", expression: "anonymous_session.metadata.country" }]
    }
};

// Organization connection member access level
connection.organization_member_access_level = "readonly";

🔬 Testing

  • clients.test.ts - enforce_permission_ceiling and enforce_self_assignment_restriction added to 4 wire test fixtures
  • organizations/connections.test.ts - organization_member_access_level added to 4 wire test fixtures
  • resourceServers.test.ts - access_token claims mapping added to 3 wire test fixtures
  • tenants/settings.test.ts - access_token claims mapping added to 2 wire test fixtures
  • management-client-fetch-option.test.ts and token-provider.test.ts - deleted (201 + 541 lines)

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@fern-api
fern-api Bot requested a review from a team as a code owner September 15, 2026 05:57
@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.41%. Comparing base (e1e90b8) to head (fd6fd65).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1406      +/-   ##
==========================================
- Coverage   89.68%   89.41%   -0.27%     
==========================================
  Files         439      439              
  Lines       21080    21082       +2     
  Branches    10327     9990     -337     
==========================================
- Hits        18905    18851      -54     
- Misses       2175     2231      +56     
Flag Coverage Δ
alltests 89.41% <100.00%> (-0.27%) ⬇️

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

Files with missing lines Coverage Δ
src/management/api/types/types.ts 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

🚀 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.

fern-api Bot added 2 commits September 15, 2026 11:47
Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-typescript-sdk: 3.72.5
Patches applied (5):
  - 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-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-d4614ec0: Release v7.0.0 (#1402)
  - patch-e1e90b89: Release v7.1.0 (#1405)
    Run `fern-replay resolve` to apply these customizations.
@fern-api
fern-api Bot force-pushed the fern-bot/2026-09-15_05-57-48_424 branch from d432516 to fd6fd65 Compare September 15, 2026 11:47
@ankita10119 ankita10119 changed the title SDK regeneration feat: My Organization Member Management EA, Resource Server Access Token Custom Claims, and Organization Connection Member Access Level Sep 15, 2026
@ankita10119
ankita10119 merged commit b52dd3f into master Sep 16, 2026
11 checks passed
@ankita10119
ankita10119 deleted the fern-bot/2026-09-15_05-57-48_424 branch September 16, 2026 09:50
@ankita10119 ankita10119 mentioned this pull request Sep 16, 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.

2 participants