Skip to content

Add Tier 2 resource clients for 6 domains (32 operations) - #30

Closed
mehmetkr wants to merge 1 commit into
mainfrom
tier2-resource-clients
Closed

mehmetkr wants to merge 1 commit into
mainfrom
tier2-resource-clients

Conversation

@mehmetkr

@mehmetkr mehmetkr commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add 6 resource client modules covering 32 API operations: sessions (5), batches (2), waitpoints (5), webhooks (11), bulk actions (4), errors (5)
  • Add auth_required parameter to SyncAPIResource._request and AsyncAPIResource._request (all overloads) for the unauthenticated waitpoint callback endpoint
  • Wire all 6 resources into Client and AsyncClient via @cached_property
  • 77 test methods across 12 test files (sync + async) with filter param verification, body assertions, and auth header absence tests

Test plan

  • 394 tests pass (./scripts/ci-local.sh)
  • ruff lint + format clean
  • pyright strict + mypy strict clean
  • All 32 operations covered by sync and async tests
  • Filter param bracket notation verified in URL assertions
  • Discriminated union serialization tested (bulk actions create)
  • auth_required=False behavior tested with header absence assertion

@mehmetkr mehmetkr closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant