feat: add logging support and enhanced SSE handling with event discrimination#83
Open
fern-api[bot] wants to merge 1 commit intomainfrom
Open
feat: add logging support and enhanced SSE handling with event discrimination#83fern-api[bot] wants to merge 1 commit intomainfrom
fern-api[bot] wants to merge 1 commit intomainfrom
Conversation
…mination Add configurable logging to ClientOptions with LogConfig and LoggingInterceptor support. Implement new SSE_EVENT_DISCRIMINATED stream type for handling discriminated union payloads in Server-Sent Events streams. Remove deprecated InputStream-based file upload methods from lab report clients. Key changes: - Add optional logging configuration to ClientOptions builder - Implement SSE event-level discrimination with SseEventParser integration - Remove InputStream overloads for parserCreateJob methods - Add fromSseWithEventDiscrimination factory methods to Stream class - Update documentation to reflect file(s) upload capability 🌿 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 related overloads from AsyncLabReportClient and LabReportClient.
parserCreateJob()methods that acceptedInputStreamparameters have been removed fromAsyncLabReportClientandLabReportClient. Use theFile-based overloads instead: replaceparserCreateJob(inputStream, filename)withparserCreateJob(file, request)wherefileis aFileobject andrequestcontains your parsing configuration.parserCreateJob(InputStream, String)methods and related overloads have been removed fromRawLabReportClient. Use theparserCreateJob(File, BodyCreateLabReportParserJob)method instead. New features: Added lab-specific configuration fields includinglabAccountIdandlabSlugin lab test requests,labSlugin marker requests, andappointmentNotesin appointment requests.vitalIosSdkVersionandvitalAndroidSdkVersioninManualConnectionData. Additional optional fields have been added includinggrantedPermissionsfor permission tracking,appointmentNotesfor appointment rescheduling, andaccessNotesfor address information. TheUserInfoCreateRequestclass now usesUserAddresstype instead ofAddress. Support forDerivedReadinessColumnExprhas been added to aggregate expressions.getJobId()method has been removed from theParsingJobclass. This field is no longer provided by the API and existing code referencing this method will need to be updated. TheaccessNotesfield is now available on patient address models to support delivery instructions.getMarkers()method now supports filtering by lab slug via thelab_slugquery parameter inLabTestsGetMarkersRequest.LogConfigAPI. Configure logging on the client builder withlogging(LogConfig.builder().level(LogLevel.DEBUG).silent(false).build()). New client resourcescompendium()andlabAccount()are now available on both sync and async clients. Additional health data providers are supported including Samsung Health, Tandem Source, Sonora Quest, and CRL labs.LabAccountClient. Enhanced builder patterns across multiple request classes now includeadditionalPropertyandadditionalPropertiesmethods for flexible request customization.RawLabAccountClient.getTeamLabAccounts()for retrieving team lab account configurations. TheCreateOrderRequestCompatiblenow supports an optionalclinicalNotesfield for enhanced order documentation.additionalProperty()andadditionalProperties()methods for setting custom fields beyond the defined schema.additionalProperty()andadditionalProperties()are now available on request builders for dynamic property handling. These methods enable setting custom key-value pairs on requests using a fluent builder pattern.additionalProperty()andadditionalProperties()methods available on all vitals request builders, allowing dynamic configuration of custom properties alongside standard request parameters..additionalProperty(key, value)or.additionalProperties(map)to pass custom metadata with vitals requests.additionalProperty()andadditionalProperties()methods. A newappointmentNotesfield is available onAppointmentBookingRequest, and a newAppointmentPscLabsenum has been added with Quest lab options.additionalProperty()andadditionalProperties()are now available on all SDK data classes, enabling you to set custom properties on API objects. A newCanonicalCandidateclass has been added to support lab test normalization features.appointmentNotesfield available onClientFacingAppointmentfor storing provider and patient notes related to appointments.additionalProperty()andadditionalProperties()builder methods available on client-facing type builders for enhanced extensibility support.additionalProperty()andadditionalProperties()methods for setting custom properties on client-facing data types during object construction.additionalProperty()andadditionalProperties()are now available on all model builders, allowing developers to set custom properties on SDK objects. A newINSULIN_PUMPenum value has been added toClientFacingMenstrualCycleSourceType.additionalProperty()andadditionalProperties()are now available on all client-facing model builders, providing a consistent way to set custom additional properties programmatically.additionalProperty()andadditionalProperties()are now available across all client-facing type builders, providing enhanced support for dynamic JSON properties.additionalProperty()andadditionalProperties()are available on all model classes for setting custom properties. New compendium functionality includesCompendiumSearchLabsenum andConvertCompendiumResponseclass for lab test conversion, plusDerivedReadinessColumnExprfor readiness data queries.additionalProperty()andadditionalProperties()methods are available on builders for enhanced flexibility when working with model objects. A newGetTeamLabAccountsResponseclass has been added for team lab account operations.additionalProperty()andadditionalProperties()methods available on all grouped data type builders, enabling custom key-value pairs to be set during object construction.additionalProperty()andadditionalProperties()builder methods are now available on model classes for setting custom key-value pairs during object construction. The SDK also adds support for new lab account management enums and derived readiness indexing.additionalProperty()andadditionalProperties()methods, enabling more flexible object construction for dynamic fields.PerLabCandidateclass available for representing laboratory test candidates with comprehensive metadata including marker information, LOINC codes, and confidence scoring. Enhanced builder patterns across multiple model classes with additional property setting methods.