feat: add broadcasts.cancel() method
Merged
DI
2mo ago+74+74+01234567890123456789-0-0-0123456789
Summary
- Adds
Broadcasts.cancel(id), callingPOST /broadcasts/:id/cancelto cancel a queued or scheduled broadcast. - Mirrors
Emails.cancel()'s request shape (empty-string body, same content type). - Adds
CancelBroadcastResponseSuccessmodel (id + object).
Part of the broadcast cancel rollout: resend/resend-monorepo#8126, resend/resend-openapi#85, resend/resend-node#1059, resend/resend-docs#1722, resend/resend-go#144.
Test plan
- Added
testCancelBroadcast_Successfollowing the existing mock-IHttpClientpattern used bytestDeleteBroadcast_Success - Could not run
./gradlew testlocally (no JDK available in this environment) โ relying on CI to verify compilation and test pass
๐ค Generated with Claude Code
Summary by cubic
Adds Broadcasts.cancel(id) to cancel queued or scheduled broadcasts via POST /broadcasts/:id/cancel with an empty JSON body, mirroring Emails.cancel().
- New Features
- Added
CancelBroadcastResponseSuccess(id,object) andtestCancelBroadcast_Success. - Added JavaDoc for
cancel()andCancelBroadcastResponseSuccess; removed an unused test helper.
- Added