Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions resend/contacts/_contact.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict
from typing import Any, Dict, Optional

from typing_extensions import NotRequired, TypedDict

Expand All @@ -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
"""
Expand Down
2 changes: 1 addition & 1 deletion resend/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.36.0"
__version__ = "2.36.1"


def get_version() -> str:
Expand Down
8 changes: 4 additions & 4 deletions resend/webhooks/_webhook_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""


Expand Down
Loading