11# This file was auto-generated by Fern from our API Definition.
22
33from ...core .pydantic_utilities import UniversalBaseModel
4+ from ...inboxes .types .inbox_id import InboxId
45from .thread_id import ThreadId
56from .thread_event_id import ThreadEventId
67from .thread_labels import ThreadLabels
1415from .thread_attachments import ThreadAttachments
1516from ...messages .types .message import Message
1617import pydantic
17- from ...inboxes .types .inbox_id import InboxId
18- from ...types .organization_id import OrganizationId
1918from ...core .pydantic_utilities import IS_PYDANTIC_V2
2019
2120
@@ -29,7 +28,6 @@ class Thread(UniversalBaseModel):
2928 from agentmail.threads import Thread
3029
3130 Thread(
32- organization_id="org_123",
3331 inbox_id="yourinbox@agentmail.to",
3432 thread_id="thread_123",
3533 event_id="event_123",
@@ -55,12 +53,12 @@ class Thread(UniversalBaseModel):
5553 to=["bob@example.com"],
5654 text="Let's review the timeline for the project.",
5755 inbox_id="yourinbox@agentmail.to",
58- organization_id="org_123",
5956 )
6057 ],
6158 )
6259 """
6360
61+ inbox_id : InboxId
6462 thread_id : ThreadId
6563 event_id : ThreadEventId
6664 labels : ThreadLabels
@@ -76,9 +74,6 @@ class Thread(UniversalBaseModel):
7674 Messages in thread. Ordered by `sent_at` ascending.
7775 """
7876
79- inbox_id : InboxId
80- organization_id : OrganizationId
81-
8277 if IS_PYDANTIC_V2 :
8378 model_config : typing .ClassVar [pydantic .ConfigDict ] = pydantic .ConfigDict (extra = "allow" , frozen = True ) # type: ignore # Pydantic v2
8479 else :
0 commit comments