From c87e11d69b667e3c5bbcf506c0d70dfbbcccd190 Mon Sep 17 00:00:00 2001 From: Samuel Xavier Date: Wed, 5 Nov 2025 22:13:15 -0300 Subject: [PATCH] CUST-4901 added message.deleted to the webhook enum, appended webhook test suite --- CHANGELOG.md | 4 ++++ nylas/models/webhooks.py | 1 + tests/resources/test_webhooks.py | 1 + 3 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1a8180..fc6f78f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ nylas-python Changelog ====================== +Unreleased +---------- +* Added `message.deleted` to the Webhook enum, appended tests + v6.13.1 ---------- * Fixed UTF-8 character encoding for all API requests to preserve special characters (accented letters, emoji, etc.) instead of escaping them as unicode sequences diff --git a/nylas/models/webhooks.py b/nylas/models/webhooks.py index 71b6582..7cbee4a 100644 --- a/nylas/models/webhooks.py +++ b/nylas/models/webhooks.py @@ -33,6 +33,7 @@ class WebhookTriggers(str, Enum): MESSAGE_BOUNCE_DETECTED = "message.bounce_detected" MESSAGE_CREATED = "message.created" MESSAGE_UPDATED = "message.updated" + MESSAGE_DELETED= "message.deleted" MESSAGE_OPENED = "message.opened" MESSAGE_LINK_CLICKED = "message.link_clicked" MESSAGE_OPENED_LEGACY = "message.opened.legacy" diff --git a/tests/resources/test_webhooks.py b/tests/resources/test_webhooks.py index 98f016d..159a94d 100644 --- a/tests/resources/test_webhooks.py +++ b/tests/resources/test_webhooks.py @@ -57,6 +57,7 @@ def test_webhook_deserialization_all(self, http_client): "message.bounce_detected", "message.created", "message.updated", + "message.deleted", "message.opened", "message.link_clicked", "message.opened.legacy",