feat: sync sdk contact book support
Merged
KM
9mo ago+3434+3434+0123456789012345678901234567890123456789-2802-2802-0123456789012345678901234567890123456789
Summary
- regenerate the JS SDK OpenAPI types and bump
usesend-jsto1.6.3for the updated contact-book schema - add Python SDK contact-book resources plus missing contact list and bulk helpers, including updated typed models and a
contactBooksparity alias - add focused Python SDK resource tests and bump the Python package version to
0.2.10
Verification
python3 -m pytest tests/test_webhooks.py tests/test_resources.pypython3 -m compileall usesendpnpm exec tsc --noEmit
Summary by cubic
Adds full contact book support across SDKs, including managing books and contact list/bulk operations. Regenerates OpenAPI/types and updates docs; bumps package versions.
-
New Features
- Python SDK: ContactBooks resource (list/create/get/update/delete), contacts.list with query params, contacts.bulk_create/delete, JS-style alias contactBooks, and updated TypedDict models.
- JS SDK: Regenerated types for the updated contact book and contact endpoints.
- Docs/Tests: API reference openapi.json synced; new resource tests covering paths and payloads.
-
Dependencies
- usesend-js: 1.6.3.
- usesend (Python): 0.2.10; adds pytest as a dev dependency.
Summary by CodeRabbit
Release Notes
-
New Features
- Added ContactBooks resource with list, create, get, update, and delete capabilities.
- Enhanced Contacts resource with list, bulk create, and bulk delete operations.
-
Documentation
- Updated Python SDK README to reflect new resources and available endpoints.
-
Tests
- Added test coverage for new resource operations.
-
Chores
- Bumped Python SDK to version 0.2.10 and JavaScript SDK to version 1.6.3.