Skip to content

Conversation

@fern-api
Copy link
Contributor

@fern-api fern-api bot commented Nov 18, 2025

This PR regenerates code to match the latest API Definition.

@greptile-apps
Copy link

greptile-apps bot commented Nov 18, 2025

Greptile Summary

  • Fern SDK regeneration updated from version 0.1.11 to 0.1.12 with generator upgrade from 3.29.2 to 3.31.1
  • Refactored client initialization by extracting normalizeClientOptions helper function to centralize SDK metadata headers and logging
  • Renamed all resource client classes with Client suffix (CopilotsCopilotsClient, UsersUsersClient, etc.) for improved naming consistency

Confidence Score: 5/5

  • This automated SDK regeneration is safe to merge with no risks
  • All changes are generated by Fern's official TypeScript SDK generator with consistent refactoring patterns applied across all files. The changes include proper initialization refactoring, consistent naming conventions, version updates, and corresponding test updates. No logic changes or breaking API modifications were introduced.
  • No files require special attention

Important Files Changed

Filename Overview
src/BaseClient.ts Added normalizeClientOptions helper function to centralize SDK header initialization and logging configuration
src/Client.ts Renamed resource client classes with Client suffix and refactored to use new normalizeClientOptions helper
src/api/resources/copilots/client/Client.ts Renamed Copilots to CopilotsClient and integrated normalizeClientOptions for consistent initialization

Sequence Diagram

sequenceDiagram
    participant User
    participant CredalClient
    participant normalizeClientOptions
    participant CopilotsClient
    
    User->>CredalClient: new CredalClient(options)
    CredalClient->>normalizeClientOptions: normalizeClientOptions(options)
    normalizeClientOptions->>normalizeClientOptions: mergeHeaders with SDK metadata
    normalizeClientOptions->>normalizeClientOptions: createLogger(options.logging)
    normalizeClientOptions-->>CredalClient: normalized options
    CredalClient-->>User: client instance
    
    User->>CredalClient: client.copilots
    CredalClient->>CopilotsClient: new CopilotsClient(options)
    CopilotsClient->>normalizeClientOptions: normalizeClientOptions(options)
    normalizeClientOptions-->>CopilotsClient: normalized options
    CopilotsClient-->>CredalClient: copilots client
    CredalClient-->>User: copilots client
Loading

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

16 files reviewed, no comments

Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format

@jackfischer jackfischer merged commit 8ebf02a into main Nov 18, 2025
3 checks passed
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