Skip to content

Commit 3193350

Browse files
committed
update callers, and exports
Signed-off-by: gabriel miranda <gabrielmfern@outlook.com>
1 parent ce79d4a commit 3193350

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

resend/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
from .emails._batch import Batch, BatchValidationError
3232
from .emails._email import Email
3333
from .emails._emails import Emails, EmailTemplate
34-
from .emails._received_email import (EmailAttachment, EmailAttachmentDetails,
35-
ListReceivedEmail, ReceivedEmail)
34+
from .emails._received_email import (AttachmentWithSignedUrl, EmailAttachment,
35+
EmailAttachmentDetails, ListReceivedEmail,
36+
ReceivedEmail)
3637
from .emails._receiving import Receiving as EmailsReceiving
3738
from .emails._tag import Tag
3839
from .events._event import (Event, EventListItem, EventSchema,
@@ -136,6 +137,7 @@
136137
"BatchValidationError",
137138
"ReceivedEmail",
138139
"EmailAttachment",
140+
"AttachmentWithSignedUrl",
139141
"EmailAttachmentDetails",
140142
"ListReceivedEmail",
141143
# Receiving types (for type hints)

resend/emails/_attachments.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from resend import request
66
from resend._base_response import BaseResponse
7-
from resend.emails._received_email import (EmailAttachment,
7+
from resend.emails._received_email import (AttachmentWithSignedUrl,
88
EmailAttachmentDetails)
99
from resend.pagination_helper import PaginationHelper
1010

@@ -35,7 +35,7 @@ class _ListResponse(BaseResponse):
3535
"""
3636
The object type: "list"
3737
"""
38-
data: List[EmailAttachment]
38+
data: List[AttachmentWithSignedUrl]
3939
"""
4040
The list of attachment objects.
4141
"""
@@ -66,7 +66,7 @@ class ListResponse(_ListResponse):
6666
6767
Attributes:
6868
object (str): The object type: "list"
69-
data (List[EmailAttachment]): The list of attachment objects.
69+
data (List[AttachmentWithSignedUrl]): The list of attachment objects.
7070
has_more (bool): Whether there are more attachments available for pagination.
7171
"""
7272

resend/emails/_receiving.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from resend import request
66
from resend._base_response import BaseResponse
7-
from resend.emails._received_email import (EmailAttachment,
7+
from resend.emails._received_email import (AttachmentWithSignedUrl,
88
EmailAttachmentDetails,
99
ListReceivedEmail, ReceivedEmail)
1010
from resend.pagination_helper import PaginationHelper
@@ -66,7 +66,7 @@ class _AttachmentListResponse(BaseResponse):
6666
"""
6767
The object type: "list"
6868
"""
69-
data: List[EmailAttachment]
69+
data: List[AttachmentWithSignedUrl]
7070
"""
7171
The list of attachment objects.
7272
"""
@@ -102,7 +102,7 @@ class ListResponse(_AttachmentListResponse):
102102
103103
Attributes:
104104
object (str): The object type: "list"
105-
data (List[EmailAttachment]): The list of attachment objects.
105+
data (List[AttachmentWithSignedUrl]): The list of attachment objects.
106106
has_more (bool): Whether there are more attachments available for pagination.
107107
"""
108108

0 commit comments

Comments
 (0)