Releases: didww/didww-api-3-python-sdk
Releases · didww/didww-api-3-python-sdk
v3.0.0 — DIDWW API 2026-04-16
v3.0.0 — DIDWW API 2026-04-16
This release upgrades the Python SDK to DIDWW API version 2026-04-16. The SDK now sends X-DIDWW-API-Version: 2026-04-16 with every request by default.
Users staying on API 2022-05-10 should pin to the 2022-05-10 branch (2.x), where future 2.x patches will be released.
Installation
pip install didww==3.0.0Breaking Changes
API / resource renames
- Default
X-DIDWW-API-Versionheader is now2026-04-16. - Resource
requirement_validationsrenamed toaddress_requirement_validations. - Resource
requirementsrenamed toaddress_requirements. AddressRequirementValidation.requirementrelationship renamed toaddress_requirement.DidGroup.requirementrelationship renamed toaddress_requirement.DidReservation.expire_atrenamed toexpires_at.EncryptedFile.expire_atrenamed toexpires_at.
Attribute / value changes
AddressVerification.reject_reasonsis now a list of strings.- Dropped
sms_outfromDidGroupfeatures. EncryptedFilePOST now accepts a single file per request.Exportyear/month filters replaced withfrom/todatetime range (frominclusive,toexclusive).VoiceInTrunkSIP configuration gainsdiversion_relay_policy.- Attribute values standardized to lowercase
snake_caseon the wire (status/area-level enums, etc.). Order.is_cancelledrenamed tois_canceled;STATUS_CANCELLED→STATUS_CANCELEDto match wire format (status: "canceled").
VoiceOutTrunk authentication
Flat credentials (username / password / auth_type) replaced with a polymorphic authentication_method relationship. Supported types:
CredentialsAuthenticationMethodIpAuthenticationMethodCredentialsAndIpAuthenticationMethodTwilioAuthenticationMethodGenericAuthenticationMethod(forward-compatible fallback for unknown types)
New Resources
DidHistory—/v3/did_history, withmeta.billing_cycles_count_changed.EmergencyRequirement—/v3/emergency_requirements.EmergencyRequirementValidation—/v3/emergency_requirement_validations.EmergencyCallingService—/v3/emergency_calling_services, withaddresshas-one relationship.EmergencyVerification—/v3/emergency_verifications.
New Attributes & Relationships
external_reference_id
Added to Address, AddressVerification, Export, EmergencyVerification, Order, PermanentSupportingDocument, Proof, SharedCapacityGroup, VoiceInTrunkGroup, VoiceInTrunk, VoiceOutTrunk.
PATCH supported on:
PATCH /v3/address_verifications/:idPATCH /v3/exports/:idPATCH /v3/emergency_verifications/:id
VoiceOutTrunk
emergency_enable_allattributertp_timeoutattributeemergency_didshas-many relationship- Status predicate helpers
Did
emergency_enabledattributeemergency_calling_servicehas-one relationshipemergency_verificationhas-one relationshipidentityhas-one relationship- Supports PATCH to unassign
emergency_calling_service
Identity
birth_countryhas-one relationship
DidGroup
- New features:
p2p,a2p,emergency,cnam_out service_restrictionsattribute
AddressVerification
reject_commentattribute
Order
- New
EmergencyOrderItemcomplex object
Helpers & Polish
- Status predicate helpers added to
VoiceOutTrunk,EmergencyCallingService,AddressVerification,EmergencyVerification, andOrder. Exportnow exposesSTATUS_PENDINGandSTATUS_PROCESSING.- Unknown
authentication_methodtypes are wrapped inGenericfor forward compatibility. - Resource-level meta support for
EmergencyCallingServiceandEmergencyRequirement. - Fixtures and examples use RFC 5737 documentation IPs (
203.0.113.0/24).
Tests
- 291 tests passing on Python 3.9 – 3.13.
- PATCH dirty-tracking coverage for polymorphic
authentication_method.
Upgrading
- Update your dependency:
pip install --upgrade didww==3.0.0
- Rename any references to
requirement_validations→address_requirement_validationsandrequirements→address_requirements. - Migrate
VoiceOutTrunkcredentials to the new polymorphicauthentication_methodrelationship. - Replace
expire_atwithexpires_atonDidReservationandEncryptedFile. - Update
Exportfilters fromyear/monthtofrom/todatetime range. - Update any
is_cancelled/STATUS_CANCELLEDreferences onOrderto theCanceledspellings. - Review the refreshed README and
examples/directory.
Full Changelog: v2.0.0...v3.0.0
v2.0.0
What's Changed
- improve release README by @senid231 in #18
- Implement dirty-only PATCH serialization with explicit null clears by @Fivell in #17
- Add coverage badge via GitHub Pages by @Fivell in #19
- Add JSON:API dependency note to README by @Fivell in #21
- Export csv gz decompression by @Fivell in #20
- Add User-Agent header to all API requests by @Fivell in #22
- Add missing metered_channels_count to SharedCapacityGroup README example by @Fivell in #23
- Add Requirement relationship to DidGroup by @Fivell in #26
- Add Region relationship to NanpaPrefix by @Fivell in #25
- Feat/nanpa prefix region relationship by @Fivell in #30
- Add rejected address verification test fixture by @Fivell in #28
- Add requirement relationship to DidGroup, remove unused _relationship_id methods by @Fivell in #29
- Add cross-SDK request validator test vectors and fix URL normalization by @Fivell in #27
- Refactor/dry cleanup by @Fivell in #31
- Add orders_nanpa example by @Fivell in #33
- Add DatetimeAttributeField, use it for datetime fields by @Fivell in #32
New Contributors
Full Changelog: v1.1.0...v2.0.0
v1.1.0
What's Changed
- Improvements by @Fivell in #12
- Add custom session support for proxy and advanced HTTP configuration by @Fivell in #13
- Add missing relationship declarations and comprehensive include tests by @Fivell in #14
- Clean up test fixtures and add missing tests by @Fivell in #15
- Add X-DIDWW-API-Version header and update README link by @Fivell in #16
Full Changelog: v1.0.0...v1.1.0