uchara_sdk 1.0.2
uchara_sdk: ^1.0.2 copied to clipboard
Official Flutter SDK for the Uchara Chat Platform. Headless customer/visitor SDK for embedding realtime chat into Flutter apps: session init, conversations, messages, file uploads, transcript download [...]
Changelog #
All notable changes to the uchara_sdk Flutter package are documented in this
file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.2 - 2026-08-20 #
Added #
- Automatic presence heartbeats while the visitor WebSocket is connected.
- Automatic visitor JWT refresh before expiry, with manual
refreshSession()support. - Token-aware WebSocket reconnects after visitor session rotation.
1.0.1 - 2026-08-06 #
Added #
VisitorSDK.restoreSession({conversationId, connect})to restore a persisted visitor session from theTokenStorewithout re-authenticating.- Realtime room ownership: the WebSocket automatically reconnects to the active
conversation's room after
startConversationorgetActiveConversation, disposing the previous connection to avoid duplicate streams and resource leaks. - Hardened WebSocket URL construction:
apiUrlis parsed withUri, the scheme is validated (http/https), and the path is set to/ws/visitor. getActiveConversationnow treats known not-found error codes as "no active conversation" in addition to HTTP 404.
Changed #
sendMessageno longer sends the unsupportedattachment_ids/attachmentsfields; those parameters are deprecated and ignored. UseuploadFileto send attachments.
1.0.0 - 2026-08-06 #
Added #
- Initial public release of the headless Flutter SDK.
VisitorSDKwith session initialisation, conversations, messages, file uploads, transcript download, and conversation close.VisitorConfigandVisitorIdentityfor configuration and identity metadata.- Pluggable
TokenStorewith a defaultInMemoryTokenStore. - Resilient
WsClientwith typed realtime events, keepalive pings, and bounded exponential-backoff reconnection. - Structured error hierarchy rooted at
UcharaException. - HTTP client with response-envelope unwrapping, multipart uploads, and binary downloads.
- Comprehensive test suite using
package:httpMockClientand a fakeWsSocket/connector. - Runnable
example/Flutter app demonstrating init, conversations, messages, realtime, and dispose.