bardiyamap_sdk 0.1.0
bardiyamap_sdk: ^0.1.0 copied to clipboard
Official Bardiya Map SDK for Dart: Places, Geocoding, Directions, Distance Matrix, Tracking, Realtime (SSE) and webhooks.
Changelog #
0.1.0 — unreleased #
- Initial Dart SDK for the Bardiya Map public v1 API.
- Generated client (OpenAPI Generator 7.27.0,
dart) covering all 39 contract operations: Maps, Places, Geocoding, Directions, Distance Matrix, Address Validation, Tracking, Client Tokens, Subscriptions, Webhooks, Health and Realtime. - Auth routing: Maps API key (
X-API-Key), Tracking bearer, session-scoped ingest credentials. - Read-plane routing for tracking GETs with a transport-level read-only guard.
- Typed error envelope with
request_idandRetry-After; bounded retries for idempotent requests only. - Streaming tracking snapshots/locations over SSE with typed failures.
- HMAC-SHA256 webhook signature verification.
- Web-compatible REST client: no
dart:iodependency;dart compile jsverified. - Deterministic regeneration and drift check (
generate.py).
Changed:
HistoryPoint.event_idis an integer (tracking_location_events.id, a PostgreSQL BIGINT) as of contract 1.1.0. Contract 1.0.0 declared it as a string while the server always returned a JSON number, so strict decoders rejected a populated history page.
Fixed:
- Tracking reads follow an explicit base URL when no read base URL is given, instead of silently using the production read host.
- Default
retryPostComputationstofalseand require explicit opt-in even whenIdempotency-Keyis supplied (quota and Free Sandbox debits are not idempotent), addBardiyaClient.isDegradedDirections, addBardiyaStreamClient.forViewer(bdy_cli_*viewer tokens,followRedirects = false), and cap webhook future clock skew tomin(60, maxAge.inSeconds).