diff --git a/resend/contacts/_contact.py b/resend/contacts/_contact.py index 4089e43..83e6eeb 100644 --- a/resend/contacts/_contact.py +++ b/resend/contacts/_contact.py @@ -1,4 +1,4 @@ -from typing import Any, Dict +from typing import Any, Dict, Optional from typing_extensions import NotRequired, TypedDict @@ -12,13 +12,13 @@ class Contact(TypedDict): """ The email of the contact. """ - first_name: NotRequired[str] + first_name: Optional[str] """ - The first name of the contact. + The first name of the contact. None when the contact has no first name. """ - last_name: NotRequired[str] + last_name: Optional[str] """ - The last name of the contact. + The last name of the contact. None when the contact has no last name. """ created_at: str """ diff --git a/resend/webhooks/_webhook_event.py b/resend/webhooks/_webhook_event.py index 42d66cf..34c8b1b 100644 --- a/resend/webhooks/_webhook_event.py +++ b/resend/webhooks/_webhook_event.py @@ -277,13 +277,13 @@ class ContactEventData(TypedDict): """ Whether the contact is unsubscribed. """ - first_name: NotRequired[str] + first_name: NotRequired[Optional[str]] """ - The contact's first name. + The contact's first name. None when the contact has no first name. """ - last_name: NotRequired[str] + last_name: NotRequired[Optional[str]] """ - The contact's last name. + The contact's last name. None when the contact has no last name. """