feat: add logging support and enhance SSE streaming capabilities#86
Open
fern-api[bot] wants to merge 1 commit intomainfrom
Open
feat: add logging support and enhance SSE streaming capabilities#86fern-api[bot] wants to merge 1 commit intomainfrom
fern-api[bot] wants to merge 1 commit intomainfrom
Conversation
Add configurable logging system with LogConfig and LoggingInterceptor to provide optional HTTP request/response logging. Enhance Stream class with event-level discrimination support for SSE streams with discriminated unions. Remove deprecated InputStream-based lab report upload methods and INSULIN_INJECTION enum value. Key changes: - Add logging configuration to ClientOptions with LogConfig and LoggingInterceptor - Add SSE_EVENT_DISCRIMINATED stream type with SseEventParser integration - Remove InputStream-based parserCreateJob method overloads from LabReportClient - Remove INSULIN_INJECTION enum value from IntervalTimeseriesExprTimeseries - Update documentation to reflect multiple 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 InputStream-based parserCreateJob methods from LabReportClient and AsyncLabReportClient, and removed INSULIN_INJECTION enum value from IntervalTimeseriesExprTimeseries.
jobIdfield has been removed from theParsingJobclass. Existing code accessinggetJobId()will need to be updated. New optionalaccessNotesfield is now available on patient address types. Query capabilities have been expanded with support for derived readiness columns and insulin injection timeseries.getMarkersmethod now accepts an optionallab_slugparameter to filter markers by lab slug. The method documentation has also been updated to clarify that reflex markers are not included in results.VitalBuilder.logging(LogConfig.builder().level(LogLevel.DEBUG).silent(false).build()). The SDK also adds new enum values for additional lab providers (Sonora Quest, CRL), health data sources (Samsung Health, Tandem Source), and order status tracking.RawLabAccountClientwith methods to retrieve team lab accounts. Lab test orders can now include clinical notes via theclinicalNotesfield inCreateOrderRequestCompatiblefor additional order context.additionalProperty()andadditionalProperties()builder methods are now available on all request classes, allowing you to pass custom fields for API extensibility.additionalProperty()andadditionalProperties()methods available on all request builder classes for more convenient handling of custom properties.additionalProperty()andadditionalProperties(). These methods allow passing extra key-value pairs when constructing requests for all vitals endpoints.additionalProperty()andadditionalProperties()builder methods available on all vitals request classes. These methods allow passing custom fields alongside standard API parameters.additionalProperty(key, value)oradditionalProperties(map)on any builder to include custom fields. Additionally, appointment booking requests now support optional appointment notes.appointmentNotesfield available onClientFacingAppointmentobjects. Builder pattern enhancements across appointment and health data types now supportadditionalProperty()andadditionalProperties()methods for custom field handling.additionalProperty()andadditionalProperties()methods on all model builders for handling additional properties. These methods allow you to add arbitrary key-value pairs to model objects while maintaining fluent builder chaining.additionalProperty()andadditionalProperties()are now available on client-facing types. These methods allow setting custom key-value pairs during object construction for handling dynamic data not explicitly modeled in the API schema.additionalProperty()andadditionalProperties()are now available on all ClientFacing response types to support custom field handling. TheClientFacingMenstrualCycleSourceTypeenum now includes anINSULIN_PUMPoption.additionalProperty()andadditionalProperties()methods for setting custom fields. Additionally, a newINSULIN_PUMPsource type is available for sleep cycle data.additionalProperty()andadditionalProperties()are now available on all model builders, providing a more convenient way to set custom properties when constructing model instances.additionalProperty()andadditionalProperties()methods, enabling easier handling of dynamic or extended data fields.additionalProperty()andadditionalProperties()methods are now available on response object builders, enabling custom property configuration. The SDK also includes new types:ConvertCompendiumResponse,CompendiumSearchLabs, andDerivedReadinessColumnExprfor enhanced lab test conversion and query capabilities.additionalProperty()andadditionalProperties()are now available on type builders, allowing custom key-value pairs to be set on model objects. A newGetTeamLabAccountsResponsetype has been added for lab account operations.additionalProperty()andadditionalProperties()methods. This enables more flexible object construction when working with API responses containing extra fields.additionalProperty()andadditionalProperties()methods. This enables adding custom key-value pairs to GroupedHypnogram, GroupedIge, GroupedIgg, and other grouped response types.additionalProperty()andadditionalProperties()methods for enhanced extensibility.ProviderIdConversionResponseandRelatedCandidatetypes. Added support for Tandem Source and Samsung Health providers. EnhancedResultMetadatawith gender field support.