Skip to content

feat: add broadcasts.Cancel() method - #144

Merged
dielduarte merged 1 commit into
mainfrom
broadcasts-cancel
Aug 12, 2026
Merged

dielduarte merged 1 commit into
mainfrom
broadcasts-cancel

Conversation

@dielduarte

@dielduarte dielduarte commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds Broadcasts.Cancel(id) / CancelWithContext(ctx, id), calling POST /broadcasts/:id/cancel to cancel a queued or scheduled broadcast.
  • Mirrors Emails.Cancel()'s shape (no body, id-only).

Part of the broadcast cancel rollout: resend/resend-monorepo#8126, resend/resend-openapi#85, resend/resend-node#1059, resend/resend-docs#1722.

Test plan

  • go build ./... — clean
  • go vet ./... — clean
  • gofmt -l on touched files — clean
  • go test ./... -run Broadcast — 12/12 passing

🤖 Generated with Claude Code


Summary by cubic

Adds Broadcasts.Cancel and CancelWithContext to cancel queued or scheduled broadcasts via POST /broadcasts/:id/cancel. Mirrors Emails.Cancel behavior (no body, id-only).

  • New Features
    • Adds CancelBroadcastResponse with object and id.
    • Adds ErrFailedToCreateBroadcastCancelRequest.
    • Tests cover cancel flow.

Written for commit ba505d0. Summary will update on new commits.

Review in cubic

Cancels a queued or scheduled broadcast via POST /broadcasts/:id/cancel.
Mirrors emails.Cancel()'s shape (no body, id-only).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds new public API methods (Cancel/CancelWithContext) to the SDK, expanding the library's contract and exposing new cancel functionality; a human should confirm the API surface.

Re-trigger cubic

@dielduarte
dielduarte merged commit 23e4e2e into main Aug 12, 2026
12 checks passed
@dielduarte
dielduarte deleted the broadcasts-cancel branch August 12, 2026 02:06
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.

2 participants