Skip to content

feat!: update environment URLs and add new API fields#4

Merged
ItachiEU merged 2 commits into
mainfrom
fern-bot/2026-05-05T13-52Z
May 6, 2026
Merged

feat!: update environment URLs and add new API fields#4
ItachiEU merged 2 commits into
mainfrom
fern-bot/2026-05-05T13-52Z

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api Bot commented May 5, 2026

⚠️ 0.0.1 → 1.0.0

Breaking: MealInDbBaseClientFacingSource gains a new required calendarDate field (existing object literals won't compile without it), and JunctionEnvironment base URLs changed from tryvital.io to junction.com (breaking for consumers comparing or depending on those URL strings).

Breaking Changes

  • JunctionEnvironment URLs have changed from tryvital.io to junction.com domains — update any hardcoded URL comparisons or overrides to use the new junction.com endpoints.
  • MealInDbBaseClientFacingSource now requires a calendarDate: string field — add calendarDate to any object literals or constructors that build this type.

Added

  • LabReportResultSampleType and LabReportResultMeasurementKind — new non-exhaustive enum types exposed as optional fields sampleType and measurementKind on LabReportResult.
  • AuthOption type and auth property on BaseClientOptions — pass false to disable auth, a function, an AuthProvider, or auth options to override authentication per-client.
  • isAuthProvider — new exported helper function to type-narrow an unknown value to AuthProvider.

Fixed

  • Micros, SampleData, and LabResultsRaw serialization now correctly handles nullable values within record fields.

See full changelog

fern-api Bot and others added 2 commits May 5, 2026 13:52
Update base environment URLs from tryvital.io to junction.com domains,
add new optional fields to LabReportResult and MealInDbBaseClientFacingSource,
introduce new enum types, and add flexible auth override support to BaseClientOptions.

Key changes:
- Change all JunctionEnvironment URLs from tryvital.io to junction.com (breaking: existing hardcoded URL comparisons will differ)
- Add required `calendarDate` field to `MealInDbBaseClientFacingSource` (breaking: existing object literals missing this field won't compile)
- Add new `LabReportResultSampleType` and `LabReportResultMeasurementKind` enum types with optional fields on `LabReportResult`
- Add `auth` option to `BaseClientOptions` supporting false, function, AuthProvider, or AuthOptions
- Fix nullable record value serialization in `Micros`, `SampleData`, and `LabResultsRaw`

🌿 Generated with Fern
@ItachiEU ItachiEU merged commit 5c342d6 into main May 6, 2026
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.

1 participant