castbrick 0.2.0
castbrick: ^0.2.0 copied to clipboard
Official Dart SDK for the CastBrick API — SMS, Contacts and Broadcasts.
0.2.0 #
New Features #
push.issueToken()— issue short-lived HMAC-signed channel tokens for browser/mobile clientspush.publish()— publish events to named channels from server-side codepush.subscribe()— open SSE subscription; returnsPushSubscriptionwith per-channelStream<PushEvent>- New models:
PushEvent,PushTokenResponse,PushPublishResponse SseClient— raw SSE stream parser overhttp.Client.send()(works on all Flutter platforms)- Auto-reconnect with exponential backoff (1s → 30s),
Last-Event-IDreplay support
0.1.3 #
Bug Fixes #
sms.cancelScheduled()— fixed endpoint fromPOST /sms/cancel-scheduledtoDELETE /sms/{id}(was completely broken)contacts.createList()— now correctly returnsString(the new list ID) instead of trying to deserialize aContactListobjectcontacts.create()— removed unsupportedemailsparameter; API only acceptsphoneNumbers
New Features #
sms.send()— addedfallbackparameter to control sender ID fallback behavioursms.list()— addedstatus,phone,fromandtofilter parametersCastBrickClient— corrected defaultbaseUrltohttps://api.castbrick.co(was incorrectly including/v1path prefix)
0.1.2 #
- Initial version.