Skip to content

feat: add custom domain defaults, credential kid, and connection configuration#732

Merged
developerkunal merged 1 commit intomainfrom
fern-bot/2026-03-24T04-18Z
Mar 24, 2026
Merged

feat: add custom domain defaults, credential kid, and connection configuration#732
developerkunal merged 1 commit intomainfrom
fern-bot/2026-03-24T04-18Z

Conversation

@fern-api
Copy link
Contributor

@fern-api fern-api bot commented Mar 24, 2026

🔧 Changes

Auto-generated SDK regeneration to match the latest Auth0 API definition. Key changes:

  • Custom Domains: Add GetDefault and SetDefault endpoints for managing the tenant's default domain, along with new response types (GetDefaultDomainResponseContent, GetDefaultCanonicalDomainResponseContent, GetDefaultCustomDomainResponseContent, UpdateDefaultDomainResponseContent, UpdateDefaultCanonicalDomainResponseContent, UpdateDefaultCustomDomainResponseContent, SetDefaultCustomDomainRequestContent) and a new customdomains sub-package
  • Clients: Add Kid (Key ID) field to PublicKeyCredential for uniquely identifying credentials
  • Connections: Add Configuration field to ConnectionPropertiesOptions and UpdateConnectionOptions for encrypted string-only connection configurations
  • Client Grants: Make ClientID optional on CreateClientGrantRequestContent; add q and clientID query parameters for advanced filtering
  • Organization Discovery Domains: Add eventual consistency documentation to List, GetByName, and Get endpoints

⚠️ Breaking Changes

1. GetGroupResponseContent — Removed OrganizationID and Description fields

The OrganizationID and Description fields, along with their getters and setters, have been removed from GetGroupResponseContent. Group name uniqueness scope changed from "connection, organization, or tenant" to "connection".

Before:

group, _ := client.Groups.Get(ctx, groupID)
orgID := group.GetOrganizationID()   // worked
desc := group.GetDescription()       // worked

group.SetOrganizationID(&orgID)
group.SetDescription(&desc)

After:

group, _ := client.Groups.Get(ctx, groupID)
// group.GetOrganizationID()  — REMOVED, will not compile
// group.GetDescription()     — REMOVED, will not compile
// group.SetOrganizationID()  — REMOVED, will not compile
// group.SetDescription()     — REMOVED, will not compile

2. CreateClientGrantRequestContentClientID changed from required to optional

ClientID changed from string to *string, making it an optional field.

Before:

req := &management.CreateClientGrantRequestContent{
    ClientID: "my-client-id",       // string (required)
    Audience: "https://my-api.com",
}

After:

clientID := "my-client-id"
req := &management.CreateClientGrantRequestContent{
    ClientID: &clientID,             // *string (optional)
    Audience: "https://my-api.com",
}

3. UpdateCustomDomainResponseContentVerification field changed from required to optional, OriginDomainName added

Before:

resp, _ := client.CustomDomains.Update(ctx, id, req)
v := resp.Verification  // type: DomainVerification (value type, always present)

After:

resp, _ := client.CustomDomains.Update(ctx, id, req)
v := resp.Verification           // type: *DomainVerification (pointer, may be nil)
origin := resp.OriginDomainName  // NEW: *string
if resp.Verification != nil {
    // safe to use
}

📚 References

Auto-generated via Fern SDK regeneration.

🔬 Testing

All new and modified types include auto-generated tests covering serialization round-trips, getter/setter behavior, and nil-receiver safety.

📝 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 March 24, 2026 04:18
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 86.47746% with 81 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.75%. Comparing base (5bc7a07) to head (22f0bc6).

Files with missing lines Patch % Lines
management/custom_domains.go 85.53% 58 Missing and 13 partials ⚠️
management/customdomains/client.go 76.47% 2 Missing and 2 partials ⚠️
management/customdomains/raw_client.go 94.28% 2 Missing and 2 partials ⚠️
management/connections.go 85.71% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #732      +/-   ##
==========================================
- Coverage   87.78%   87.75%   -0.04%     
==========================================
  Files         315      315              
  Lines      137652   137445     -207     
==========================================
- Hits       120843   120615     -228     
- Misses      12303    12332      +29     
+ Partials     4506     4498       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@developerkunal developerkunal changed the title 🌿 Fern Regeneration -- March 24, 2026 feat: add custom domain defaults, credential kid, and connection configuration Mar 24, 2026
Copy link
Contributor

@developerkunal developerkunal left a comment

Choose a reason for hiding this comment

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

LGTM

@developerkunal developerkunal merged commit 5a634d8 into main Mar 24, 2026
6 checks passed
@developerkunal developerkunal deleted the fern-bot/2026-03-24T04-18Z branch March 24, 2026 05:06
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