feat: add logging support and SSE event-level discrimination#82
Open
fern-api[bot] wants to merge 1 commit intomainfrom
Open
feat: add logging support and SSE event-level discrimination#82fern-api[bot] wants to merge 1 commit intomainfrom
fern-api[bot] wants to merge 1 commit intomainfrom
Conversation
This release introduces SDK-level logging configuration capabilities and enhanced SSE stream processing for discriminated union types. The logging feature is opt-in and silent by default, requiring explicit configuration to produce output. Key changes: - Add logging configuration to ClientOptions builder with LogConfig parameter - Add SSE event-level discrimination support for discriminated unions - Remove InputStream-based file upload methods from LabReportClient - Add SSE_EVENT_DISCRIMINATED stream type with new iterator implementation - Update lab report documentation to reference multiple file uploads 🌿 Generated with Fern
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.
Version Bump: Removed public methods parserCreateJob() with InputStream parameters from LabReportClient - existing callers will get compile errors.
logging()method to configure log output for debugging HTTP requests and responses. New SSE event-level discrimination capabilities are available for handling discriminated union types in Server-Sent Events streams. InputStream-based file upload methods have been removed from the LabReportClient - use File-based methods instead.jobIdfield andgetJobId()method have been removed fromParsingJob. Code that accesses this field will need to be updated to use alternative identification methods. Additionally, a new optionalaccessNotesfield is now available on all patient address types (PatientAddress,PatientAddressCompatible, andPatientAddressWithValidation).lab_slugparameter available ingetMarkers()method for filtering markers by specific lab. Updated method documentation to clarify marker types returned by different endpoints.logging()method on builders. Two new client modules are available:CompendiumClientandLabAccountClient. Additional providers and status values have been added to support Sonora Quest, Samsung Health, Tandem Source, and other lab providers.RawLabAccountClientwithgetTeamLabAccounts()method for retrieving team lab accounts. TheCreateOrderRequestCompatiblenow supports an optionalclinicalNotesparameter for including clinical notes with lab test orders.additionalProperty()andadditionalProperties()methods, enabling more flexible API interactions.additionalProperty()andadditionalProperties()builder methods are now available on all request classes, allowing custom properties to be included in API requests.additionalProperty()andadditionalProperties()methods available on all vitals request builders for passing custom key-value pairs in API requests.appointmentNotesfield available onClientFacingAppointmentobjects. All type builders now supportadditionalProperty()andadditionalProperties()methods for setting custom fields.additionalProperty()andadditionalProperties()are now available on all type builders, enabling fluent setting of additional properties for forward compatibility with API changes.additionalProperty()andadditionalProperties()methods are now available on builder classes, allowing dynamic property setting during object construction.additionalProperty()andadditionalProperties()are now available on client-facing types, enabling custom key-value data to be added when constructing objects. The SDK also adds support forINSULIN_PUMPas a menstrual cycle source type.additionalProperty()andadditionalProperties()methods provide a consistent way to handle arbitrary key-value data from API responses. A newINSULIN_PUMPsource type is now supported for sleep cycle data.additionalProperty()andadditionalProperties()methods.additionalProperty()andadditionalProperties()methods available on builder classes for response objects. These methods enable setting additional properties on API response objects for better extensibility.additionalProperty()andadditionalProperties()are now available on response object builders for consistent handling of additional fields. Added new lab test conversion capabilities throughConvertCompendiumResponseand support for querying readiness data with newDerivedReadinessColumnExprtypes.additionalProperty()andadditionalProperties()methods. A newGetTeamLabAccountsResponsetype is available for lab account management operations.additionalProperty()andadditionalProperties()methods allow setting custom fields during object construction.additionalProperty()andadditionalProperties()methods available on all grouped data type builders for setting custom properties beyond standard fields.additionalProperty()andadditionalProperties()methods allow dynamic property assignment during object construction. Added new enum valueDERIVED_READINESStoIndexColumnExprIndexand new enum typesLabAccountDelegatedFlowandLabAccountStatus.PerLabCandidatetype for working with laboratory test candidate data, including LOINC codes, CPT codes, confidence scores, and marker popularity information. Additionally, several existing types now support additional properties through enhanced builder methods.SearchCompendiumResponseandSearchModetypes. A newUsStateenum is also available for US state handling. Additionally, builder patterns have been enhanced across many existing types with improved support for additional properties.