feat: add logging configuration and SSE event discrimination support#87
Open
fern-api[bot] wants to merge 1 commit intomainfrom
Open
feat: add logging configuration and SSE event discrimination support#87fern-api[bot] wants to merge 1 commit intomainfrom
fern-api[bot] wants to merge 1 commit intomainfrom
Conversation
Add comprehensive logging configuration to ClientOptions with silent-by-default behavior. Introduce new SSE event-level discrimination capabilities for handling discriminated union types in server-sent events. Remove deprecated InputStream overloads from lab report parser methods and insulin injection timeseries type. Key changes: - Add optional LogConfig to ClientOptions builder for configurable SDK logging - Add SSE_EVENT_DISCRIMINATED stream type with SseEventParser integration - Remove InputStream-based parserCreateJob method overloads (breaking change) - Remove INSULIN_INJECTION enum value from IntervalTimeseriesExprTimeseries (breaking change) - Update documentation for multi-file upload support 🌿 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(InputStream, String) and parserCreateJob(InputStream, String, MediaType) from LabReportClient, and removed INSULIN_INJECTION enum value - existing callers will get compilation errors.
parserCreateJob()method overloads that acceptedInputStreamparameters have been removed fromLabReportClientandAsyncLabReportClient. Use theFile-based overloads instead. TheINSULIN_INJECTIONenum value has also been removed fromIntervalTimeseriesExprTimeseries. The SDK now supports configurable logging throughClientOptions.builder().logging()and enhanced SSE event discrimination for discriminated union types.parserCreateJobmethod overloads that acceptInputStreamparameters have been removed fromRawLabReportClient. Use the File-based overloads instead. Thelabparameter inLabTestsGetPscAppointmentAvailabilityRequestnow accepts anAppointmentPscLabsenum instead of a String.New features: Added support for
lab_account_idandlab_slugfields in lab test creation,lab_slugfiltering in marker requests, andappointment_notesin appointment requests.jobIdfield has been removed from theParsingJobtype. Existing code accessinggetJobId()will need to be updated. Additionally, patient address types now support an optionalaccessNotesfield for additional delivery instructions.accessNotesfield on theUsAddressclass. TheUserInfoaddress field type has been changed fromAddresstoUserAddressfor improved type safety and consistency.ConvertCompendiumBodyandSearchCompendiumBodyfor lab test compendium operations, and includes a newLabAccountClientfor managing team lab accounts.RawLabAccountClientwith support for retrieving team lab accounts. TheCreateOrderRequestCompatiblenow accepts an optionalclinical_notesfield for enhanced order documentation.additionalProperty()andadditionalProperties()are now available on request object builders, allowing you to set custom properties for extensibility and forward compatibility.additionalProperty()andadditionalProperties()are now available on all request builders to support setting custom properties.additionalProperty()andadditionalProperties()methods available on all vitals request builders. These methods allow passing custom key-value pairs alongside standard request parameters for enhanced flexibility.CanonicalCandidatetype available for biomarker canonical matching with LOINC codes, provider IDs, and confidence scoring. Builder classes now support additional properties viaadditionalProperty()andadditionalProperties()methods.appointmentNotesfield available onClientFacingAppointmentfor storing additional notes about appointments. The SDK now provides enhanced builder methods withadditionalPropertysupport across multiple classes.additionalProperty()andadditionalProperties()methods available on all client-facing type builders for attaching custom metadata during object construction.additionalProperty()andadditionalProperties()are now available on client-facing types, allowing custom properties to be set during object construction.additionalProperty(key, value)andadditionalProperties(Map)methods are available on all client-facing model builders, enabling more flexible object construction and dynamic data handling.additionalProperty()andadditionalProperties()are now available on model builders to support setting dynamic properties during object construction. Additionally,INSULIN_PUMPsource type is now supported for sleep cycle data.additionalProperty(key, value)to set individual properties oradditionalProperties(map)to set multiple properties at once.additionalProperty(String key, Object value)andadditionalProperties(Map<String, Object> additionalProperties)methods for setting custom properties on data model objects.additionalProperty()andadditionalProperties()builder methods. New classes includeConvertCompendiumResponsefor lab test conversion,CompendiumSearchLabsenum for lab providers, andDerivedReadinessColumnExprfor readiness data expressions.additionalProperty()andadditionalProperties()methods available on builder classes, allowing dynamic extension of model objects with custom key-value pairs. Also added newGetTeamLabAccountsResponseclass.additionalProperty()andadditionalProperties()builder methods available on all grouped data type builders. These methods allow setting custom additional properties when constructing grouped data objects.additionalProperty()andadditionalProperties()methods. New insulin injection timeseries support is available with comprehensive field options for diabetes management data tracking.LabAccountStatusenum is available withACTIVE,PENDING, andSUSPENDEDvalues. Builder classes now supportadditionalProperty()andadditionalProperties()methods for enhanced extensibility.PerLabCandidateclass available for laboratory test candidate matching. Enhanced builder interfaces across multiple model classes withadditionalProperty()andadditionalProperties()methods for improved JSON extensibility.