feat: add flexible auth override, calendarDate field, and nullable record values#2
Merged
Merged
Conversation
…cord values Introduce several new capabilities across the SDK: a flexible `auth` option on `BaseClientOptions` for overriding authentication at the client level, a new `calendarDate` field on `MealInDbBaseClientFacingSource`, nullable value support in serialized record types, and a `forwardCompatibleEnum_` schema builder utility. Key changes: - Add `AuthOption` type and `auth` field to `BaseClientOptions`, supporting `false` (disable auth), a function, an `AuthProvider`, or `HeaderAuthProvider.AuthOptions` - Add `isAuthProvider` type guard exported from `core/auth` - Add required `calendarDate: string` field to `MealInDbBaseClientFacingSource` - Allow nullable values in `Micros` mineral/traceElement/vitamin records and `SampleData`/`LabResultsRaw` record serialization - Add `forwardCompatibleEnum_` schema builder for forward-compatible enum handling 🌿 Generated with Fern
ItachiEU
approved these changes
May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking:
calendarDate: stringis added as a required (non-optional) property to theMealInDbBaseClientFacingSourceinterface, breaking existing callers who construct or type-check that object without the new field.Breaking Changes
MealInDbBaseClientFacingSource— new required fieldcalendarDate: stringadded; existing code that constructs or assigns this type withoutcalendarDatewill fail to compile. AddcalendarDateto all usages.Added
AuthOptiontype andauthoption onBaseClientOptions— passfalseto disable authentication, a function returning auth headers, anAuthProviderinstance, orHeaderAuthProvider.AuthOptionsto override auth at the client level.isAuthProvider— new exported type guard incore/authfor checking whether a value implements theAuthProviderinterface.forwardCompatibleEnum_— new schema builder utility for forward-compatible enum deserialization that tolerates unknown values.Changed
Micros,SampleData, andLabResultsRawserialization — record values inminerals,traceElements,vitamins,performingLaboratories, andsampleInformationnow acceptnullvalues in addition to their typed values, improving compatibility with API responses.See full changelog