Skip to content

adsefid v0.4.0

Choose a tag to compare

@moeen moeen released this 09 Sep 09:09
· 2 commits to main since this release
48a2a6b

A caller-supplied httpx client now works without its own base_url, malformed success payloads surface as SDK errors, and every model is importable from the top-level package. Upgrade if you inject your own httpx.Client or build requests by hand.

Added

  • Every request and result dataclass is exported from adsefid (for example from adsefid import AdsefidClient, SendSingleSmsRequest); the adsefid.models.* modules keep working.
  • error_code on BulkReceptorResult, P2pMessageResult, MessengerBulkReceptorResult and MessengerP2pReceptorResult, naming the WebServiceResponseCode when that one item was rejected.
  • Typing :: Typed classifier; CI covers Python 3.10 and 3.13.

Changed

  • Every request carries the absolute URL built from base_url, so an http_client you supply needs no base_url of its own.

Fixed

  • A success payload of the wrong JSON shape raised a bare TypeError or KeyError from a model's from_dict; it now raises AdsefidTransportError.

Verified against adsefid.com Web Service API documentation v1.12.0.