From 16e2ce870356baa6a549b7e89a65a71ff23a0fc4 Mon Sep 17 00:00:00 2001 From: dielduarte Date: Thu, 17 Sep 2026 16:34:24 -0300 Subject: [PATCH] feat(webhooks): add suppression.added/removed event enum values WebhookEvent had no SUPPRESSION_ADDED/SUPPRESSION_REMOVED members, unlike the Node SDK, so those events couldn't be subscribed to via the typed API. Note: could not run the Gradle test suite locally (no JDK available in this environment); changes are a straightforward enum addition with no existing test asserting an exhaustive list of values. Co-Authored-By: Claude Sonnet 5 --- gradle.properties | 2 +- .../com/resend/services/webhooks/model/WebhookEvent.java | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 4e09d88..66aa353 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.resend -VERSION_NAME=4.25.0 +VERSION_NAME=4.26.0 POM_URL=https://github.com/resendlabs/resend-java POM_SCM_URL=https://github.com/resendlabs/resend-java.git diff --git a/src/main/java/com/resend/services/webhooks/model/WebhookEvent.java b/src/main/java/com/resend/services/webhooks/model/WebhookEvent.java index db79f5a..7af1fef 100644 --- a/src/main/java/com/resend/services/webhooks/model/WebhookEvent.java +++ b/src/main/java/com/resend/services/webhooks/model/WebhookEvent.java @@ -35,7 +35,11 @@ public enum WebhookEvent { /** Triggered when a domain is updated. */ DOMAIN_UPDATED("domain.updated"), /** Triggered when a domain is deleted. */ - DOMAIN_DELETED("domain.deleted"); + DOMAIN_DELETED("domain.deleted"), + /** Triggered when an email address is added to the suppression list. */ + SUPPRESSION_ADDED("suppression.added"), + /** Triggered when an email address is removed from the suppression list. */ + SUPPRESSION_REMOVED("suppression.removed"); private final String value;