Skip to content

Commit

Permalink
Fix required fields in Thread (#322)
Browse files Browse the repository at this point in the history
Fix some optional fields to be able to return a thread
  • Loading branch information
atejada committed Dec 22, 2023
1 parent cf5fab9 commit f264973
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nylas/models/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,20 @@ class Thread:
id: str
grant_id: str
latest_draft_or_message: Union[Message, Draft]
has_attachment: bool
has_drafts: bool
starred: bool
unread: bool
earliest_message_date: int
latest_message_received_date: int
latest_message_sent_date: int
participant: List[EmailName]
message_ids: List[str]
draft_ids: List[str]
folders: List[str]
object: str = "thread"
latest_message_received_date: Optional[int] = None
draft_ids: Optional[List[str]] = None
snippet: Optional[str] = None
subject: Optional[str] = None
participant: Optional[List[EmailName]] = None
latest_message_sent_date: Optional[int] = None
has_attachment: Optional[bool] = None


class UpdateThreadRequest(TypedDict):
Expand Down

0 comments on commit f264973

Please sign in to comment.