feat: add logging support and SSE event discrimination#76
Open
fern-api[bot] wants to merge 1 commit intomainfrom
Open
feat: add logging support and SSE event discrimination#76fern-api[bot] wants to merge 1 commit intomainfrom
fern-api[bot] wants to merge 1 commit intomainfrom
Conversation
Add configurable logging support to ClientOptions with silent by default behavior, and introduce SSE event-level discrimination for streaming discriminated unions. Also remove deprecated InputStream-based lab report parsing methods. Key changes: - Added LogConfig and logging() builder method to ClientOptions for SDK logging - Added SSE_EVENT_DISCRIMINATED stream type for handling SSE discriminated unions - Added fromSseWithEventDiscrimination() methods to Stream class - Removed InputStream-based parserCreateJob methods from LabReportClient - Enhanced Stream iterator to support event-level discrimination via SseEventParser 🌿 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 parserCreateJob methods that accepted InputStream parameters - existing callers will get compilation errors.
logging()method onClientOptions.Builder. Logging is silent by default. Enhanced streaming capabilities with new SSE event-level discrimination support for discriminated union types. Removed deprecatedInputStream-based lab report parsing methods - useFile-based methods instead.getMarkers()method now supports filtering by lab slug through an optionallab_slugquery parameter in the request.lab_slugquery parameter. Manual provider connections can now include iOS and Android SDK version headers for better tracking and analytics.RawLabAccountClient.getTeamLabAccounts()method with filtering by lab account ID and status. Lab test order creation now supports clinical notes via theclinicalNotesfield inCreateOrderRequestCompatible.additionalProperty()andadditionalProperties()builder methods available on all request classes for setting custom metadata and fields.additionalProperty()andadditionalProperties()are now available on all request object builders, enabling flexible customization of requests with additional key-value pairs.additionalProperty()andadditionalProperties()are now available on all vitals request classes, allowing custom key-value pairs to be passed with requests.additionalProperty()andadditionalProperties()methods available on all vitals request builders for passing custom parameters to API requests.additionalProperty()andadditionalProperties()methods available on all request builders. Additionally, appointment booking requests now support optional appointment notes.additionalProperty()andadditionalProperties()are now available on all client-facing types for setting additional properties on model objects.additionalProperty()andadditionalProperties()methods are now available on all builder classes, allowing dynamic management of additional properties on model objects.additionalProperty()andadditionalProperties()methods. This enables more flexible construction of health data objects with custom metadata.additionalProperty()andadditionalProperties()are now available on all client-facing type builders, providing a fluent API for handling additional properties.additionalProperty()andadditionalProperties()are now available on client-facing type builders, allowing dynamic handling of extended JSON properties in API responses.additionalProperty()andadditionalProperties()methods are now available on all model builders, allowing you to set custom key-value pairs on response objects for handling dynamic or unknown API fields.additionalProperty()andadditionalProperties()builder methods are now available on all ClientFacing* types and response classes. These methods enable setting arbitrary additional properties for better extensibility and forward compatibility.additionalProperty()andadditionalProperties()are available on data type builders, allowing you to set custom properties on objects. The newGetTeamLabAccountsResponsetype is also available.additionalProperty(key, value)to set individual properties oradditionalProperties(map)to set multiple properties at once during object construction.additionalProperty(key, value)andadditionalProperties(map)for convenient handling of additional JSON fields.additionalProperty()andadditionalProperties()are now available on all response and data classes for setting custom properties. TheIndexColumnExprIndexenum now includes aDERIVED_READINESSoption. Two new enums are available:LabAccountDelegatedFlowfor lab account delegation statuses andLabAccountStatusfor lab account states.additionalProperty()andadditionalProperties()are now available on multiple types for setting custom fields during object construction. The newPerLabCandidatetype is also available for lab data processing.additionalProperty()andadditionalProperties()methods. New provider types TANDEM_SOURCE and SAMSUNG_HEALTH are available. A newProviderIdConversionResponseclass has been added for provider ID conversion functionality.additionalProperty()andadditionalProperties()are now available on all data model builders for flexible object construction. The SDK also includes new types:UsStateenum for US state handling andUserAddressfor comprehensive address management.additionalProperty()andadditionalProperties()are now available on WorkoutColumnExpr, WorkoutDurationTimeseriesExpr, and WorkoutV2InDb builders for setting custom additional properties.