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",