vedika_sdk 1.0.5
vedika_sdk: ^1.0.5 copied to clipboard
Flutter/Dart SDK for the Vedika Intelligence API. Covers astrology, tarot, numerology, Chinese astrology, I Ching, crystals, runes, palmistry and 20+ domains.
1.0.5 - 2026-10-15 #
Fixed #
- Five methods called routes that the API does not document. Each now calls
the documented route:
astrology.currentDashacalls/v2/astrology/dasha/current-all. The Vimshottari block now carries the full Maha, Antar and Pratyantar ladder withcurrentMahaDasha,currentAntarDashaandcurrentPratyantarDasha, and the Ashtottari and Yogini blocks are full timelines. Before, each block held only the running period.astrology.choghadiyaandastrology.horasend GET with the parameters as the query string, as documented. The POST they sent before was rejected with 400 asking for a birth datetime.astrology.saturnTransitandastrology.moonTransitcall/v2/astrology/planet-transitand are deprecated. The response now lists all nine planets underdata.planets. Read Saturn or the Moon from the entry with thatname. Each entry hassign,signNumber,degree,nakshatra,isRetrograde,houseFromLagnaandhouseFromMoon, withnatalMoonSignandnatalLagnaSignbeside the list. The old one-planet fieldseffect,gocharaVerdict,houseFromMoonLabel,longitudeandsignIndexare gone. For Saturn over the natal Moon, useastrology.sadeSati.
Added #
astrology.planetTransit, which calls/v2/astrology/planet-transit.test/openapi_paths_test.dartfails when any SDK method calls a route, or uses a method, that the public API reference does not document. The documented operations are kept intest/fixtures/public_operations.txt.dart run tool/public_operations.dartrefreshes that list inside the Vedika repository.
1.0.4 - 2026-10-14 #
Added #
- The room scan bridge is exported from
package:vedika_sdk/vedika_sdk.dart:RoomScanController,VastuRoomScanService(uploadRoomCapture,mergeCaptures),RoomScanSnapshot,RoomScanPhase, the message classesRoomScanMessage,RoomScanReady,RoomScanStateMessage,RoomScanCaptureMessage,RoomScanErrorMessage,RoomScanMergeRequestandRoomScanInvalid,RoomScanRefused,parseRoomScanMessage,resolveMergeScript,rejectMergeScript,roomScanBridgeSchemaandroomCaptureSchema. The code was in the repository since 1.0.3 but was not exported, so it could only be imported fromsrc/. It uses no WebView package: the app supplies its own WebView and passes the page's messages toRoomScanController.handleMessage.
1.0.3 - 2026-10-06 #
Fixed #
- 38 methods called routes that answer 404 on
api.vedika.ioand now call the live route:astrology.planets,houses,mahaDasha,antarDasha,gunaMatch,lifePath,destinyNumber,numerologyComplete,jaiminiCharaKarakas,fixedStars,asteroids,sunMoonTimes,festivals(now/festivals/upcoming, withfrom,days,region); everynumerology.*method that used/pythagorean,/chaldean,/lo-shu,/kabbalahor the bare/life-pathstyle names; andwestern.harmonics(the harmonic is now the path segment),directions,lots,astrocartography,dignities,hemisphereEmphasis. western.stelliumis deprecated: the API has no stellium route, so it now fails withUnsupportedErrorinstead of a 404 after a paid-looking call.- Any 2xx is a success. Only 200 and 202 were accepted, so a 201 or 204 raised
an error.
getRawhad the same 200-only check. X-SDKreportedvedika-flutter/1.0.0on every release. It now followsVedikaClient.sdkVersion, which is kept equal topubspec.yamlby a test.
Added #
VedikaInsufficientCredits.required,available,deficitandpurchaseUrl, read from the 402 body. A 402 is never retried.VedikaApiError.code, the API's machine-readable error code.VedikaRateLimitError.isDailyLimit,isRetryableandupgradeUrl. A 429 is classified by its bodycode, never by rate-limit headers.DAILY_LIMIT_EXCEEDEDis not retryable.retryAfterSecondsnow reads the body'sretryAfterfirst and theRetry-Afterheader second.VedikaIdempotencyNotSupportedErrorfor 422IDEMPOTENCY_NOT_SUPPORTED(no charge was attempted; call again withoutidempotencyKey).
1.0.2 - 2026-09-17 #
- Removed internal tracking references from source and test comments.
- The
documentationlink inpubspec.yamlnow points to the Flutter integration guide; the previous address returned 404.
1.0.1 - 2026-09-07 #
Security #
- The API key is now sent only to an approved origin.
baseUrlis checked when the client is constructed:api.vedika.io, loopback, or a host named in the newtrustedHostsparameter. Any other host throwsArgumentErrorbefore a request can carry the key. Previously anyhttps://origin was accepted and receivedAuthorization: Bearer <key>on the first call, so abaseUrltaken from remote config, a deep link, or a QR payload exfiltrated the customer's key from the user's device. allowInsecureHttpnow relaxes the scheme only and can no longer be used to reach a foreign host.- Requests assert their destination host against the origin pinned at construction, so future changes to URL building fail closed.
1.0.0 #
- Initial release.
- Full coverage of 500+ Vedika Intelligence API endpoints.
- 23 domain-specific service classes.
- Typed response models with
fromJsonfactories. - Automatic error handling (401, 402, 429, 5xx).
- Configurable base URL and timeout.
- Support for custom
http.Clientinjection (testing).