Skip to content

Commit 408a41f

Browse files
cursoragentcpenned
andcommitted
refactor: scope PR to message_id on Email type only
Remove webhook event payload types and Webhooks.verify return type change. Received email types already include message_id. Co-authored-by: cpenned <cpenned@users.noreply.github.com>
1 parent aeacae8 commit 408a41f

4 files changed

Lines changed: 9 additions & 663 deletions

File tree

resend/__init__.py

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,6 @@
5757
from .version import __version__, get_version
5858
from .webhooks._webhook import (VerifyWebhookOptions, Webhook, WebhookEvent,
5959
WebhookHeaders, WebhookStatus)
60-
from .webhooks._webhook_event import (BaseEmailEventData, ContactCreatedEvent,
61-
ContactDeletedEvent, ContactUpdatedEvent,
62-
ContactEventData, DomainCreatedEvent,
63-
DomainDeletedEvent, DomainEventData,
64-
DomainRecord, DomainUpdatedEvent,
65-
EmailBounce, EmailBouncedEvent,
66-
EmailClickedEvent, EmailClick,
67-
EmailComplainedEvent, EmailDeliveredEvent,
68-
EmailDeliveryDelayedEvent,
69-
EmailFailed, EmailFailedEvent,
70-
EmailOpenedEvent, EmailReceivedEvent,
71-
EmailScheduledEvent, EmailSentEvent,
72-
EmailSuppressed, EmailSuppressedEvent,
73-
ReceivedEmailAttachment,
74-
ReceivedEmailEventData,
75-
WebhookEventPayload)
7660
from .webhooks._webhooks import Webhooks
7761

7862
# Type for clients that support both sync and async
@@ -151,37 +135,9 @@
151135
"Variable",
152136
"Webhook",
153137
"WebhookEvent",
154-
"WebhookEventPayload",
155138
"WebhookHeaders",
156139
"WebhookStatus",
157140
"VerifyWebhookOptions",
158-
"BaseEmailEventData",
159-
"EmailBounce",
160-
"EmailClick",
161-
"EmailFailed",
162-
"EmailSuppressed",
163-
"ReceivedEmailAttachment",
164-
"ReceivedEmailEventData",
165-
"ContactEventData",
166-
"DomainRecord",
167-
"DomainEventData",
168-
"EmailSentEvent",
169-
"EmailScheduledEvent",
170-
"EmailDeliveredEvent",
171-
"EmailDeliveryDelayedEvent",
172-
"EmailComplainedEvent",
173-
"EmailBouncedEvent",
174-
"EmailOpenedEvent",
175-
"EmailClickedEvent",
176-
"EmailReceivedEvent",
177-
"EmailFailedEvent",
178-
"EmailSuppressedEvent",
179-
"ContactCreatedEvent",
180-
"ContactUpdatedEvent",
181-
"ContactDeletedEvent",
182-
"DomainCreatedEvent",
183-
"DomainUpdatedEvent",
184-
"DomainDeletedEvent",
185141
"Topic",
186142
"BatchValidationError",
187143
"ReceivedEmail",

0 commit comments

Comments
 (0)