Skip to content

feat(webhooks): add support for suppression.added/removed events - #287

Merged
dielduarte merged 2 commits into
mainfrom
feat/suppression-webhook-events
Sep 18, 2026
Merged

dielduarte merged 2 commits into
mainfrom
feat/suppression-webhook-events

Conversation

@dielduarte

@dielduarte dielduarte commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • WebhookEvent and WebhookEventPayload had no members for suppression events, unlike the Node SDK.
  • Adds SuppressionEventData and the SuppressionAddedEvent/SuppressionRemovedEvent payload types, reusing the existing SuppressionOrigin type.
  • Bumps version to 2.47.0 (rebased past the 2.46.0 release that had already claimed 2.41.0, the version this branch originally bumped to).

Test plan

  • mypy — clean
  • pytest tests/webhooks_test.py tests/webhooks_async_test.py tests/suppressions_test.py — 71 passed

🤖 Generated with Claude Code


Summary by cubic

Adds suppression.added and suppression.removed webhook event support to the Python SDK, matching the Node SDK.

New Features

  • Adds SuppressionEventData, inheriting the existing SuppressionListItem shape (id, email, origin, source_id, created_at) so the webhook and REST API contracts don't drift.
  • Registers the new event names for webhook verification, extends WebhookEventPayload, and exports the new types.
  • Bumps the version to 2.47.0 because 2.46.0 was already released.

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

Review in cubic

WebhookEvent and WebhookEventPayload had no members for suppression
events, unlike the Node SDK. Adds SuppressionEventData and the
SuppressionAddedEvent/SuppressionRemovedEvent payload types, reusing
the existing SuppressionOrigin type.

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 4 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread resend/webhooks/_webhook_event.py Outdated
SuppressionEventData duplicated SuppressionListItem's fields exactly,
risking drift between the webhook and REST API contracts. Inherit
instead of redeclaring.

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

@klotty klotty 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.

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

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

Auto-approved: Adds suppression.added/removed webhook event types, payloads, and exports, matching the Node SDK, with a version bump. The change is additive and bounded.

Re-trigger cubic

@dielduarte
dielduarte marked this pull request as ready for review September 17, 2026 20:38
@github-actions github-actions Bot added the linear-synced PR has been synced to Linear label Sep 18, 2026
@dielduarte
dielduarte merged commit 390da5f into main Sep 18, 2026
32 checks passed
@dielduarte
dielduarte deleted the feat/suppression-webhook-events branch September 18, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linear-synced PR has been synced to Linear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants