Skip to content

Add Waitpoints resource client with auth_required infrastructure - #34

Open
mehmetkr wants to merge 1 commit into
mainfrom
tier2-waitpoints
Open

mehmetkr wants to merge 1 commit into
mainfrom
tier2-waitpoints

Conversation

@mehmetkr

@mehmetkr mehmetkr commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add auth_required parameter to all 6 SyncAPIResource._request and AsyncAPIResource._request overloads, forwarding to the base client
  • Add Waitpoints and AsyncWaitpoints resource clients with 5 operations: create_token, list_tokens, complete_token_callback (unauthenticated), complete_token, retrieve_token
  • The complete_token_callback endpoint uses auth_required=False for external webhook-style callbacks
  • Wire both into Client and AsyncClient via @cached_property
  • Export both classes from resources.__init__

Test plan

  • 6 sync tests covering all Waitpoints operations including filter params
  • 5 async tests covering all Waitpoints operations
  • Auth header absence assertion for callback endpoint (both sync and async)
  • All 330 tests pass (including pre-existing)
  • ruff lint + format clean
  • pyright strict clean
  • mypy strict clean

@mehmetkr

mehmetkr commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

Re-triggering CI

@mehmetkr mehmetkr closed this Dec 2, 2026
@mehmetkr mehmetkr reopened this Dec 2, 2026
@mehmetkr
mehmetkr force-pushed the tier2-waitpoints branch 2 times, most recently from ab05126 to 35dfec6 Compare December 2, 2026 22:16

This branch has not been deployed

No deployments
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