
    b?ic                         S SK JrJrJr  S SKJrJr   " S S\5      r " S S\5      r\" SS\	05      r
\" S	S\	05      r " S
 S\
5      r " S S\5      r " S S\5      r " S S\5      rg)    )DictListOptional)NotRequired	TypedDictc                   l    \ rS rSr% Sr\\S'    \\S'    \\S'    \\S'    \\   \S'    \\   \S'   S	r	g
)EmailAttachment   a  
EmailAttachment type that wraps an attachment object from an email.

Attributes:
    id (str): The attachment ID.
    filename (str): The filename of the attachment.
    content_type (str): The content type of the attachment.
    content_disposition (str): The content disposition of the attachment.
    content_id (NotRequired[str]): The content ID for inline attachments.
    size (NotRequired[int]): The size of the attachment in bytes.
idfilenamecontent_typecontent_disposition
content_idsize N)
__name__
__module____qualname____firstlineno____doc__str__annotations__r   int__static_attributes__r       a/var/www/html/livechat/backend/venv/lib/python3.13/site-packages/resend/emails/_received_email.pyr	   r	      s]    
 	G M   C   c
r   r	   c                   ~    \ rS rSr% Sr\\S'    \\S'    \\S'    \\S'    \\S'    \\   \S'    \\S	'    \\S
'   Srg)EmailAttachmentDetails-   a  
EmailAttachmentDetails type that wraps an email attachment with download details.

Attributes:
    object (str): The object type.
    id (str): The attachment ID.
    filename (str): The filename of the attachment.
    content_type (str): The content type of the attachment.
    content_disposition (str): The content disposition of the attachment.
    content_id (NotRequired[str]): The content ID for inline attachments.
    download_url (str): The URL to download the attachment.
    expires_at (str): When the download URL expires.
objectr   r   r   r   r   download_url
expires_atr   N)	r   r   r   r   r   r   r   r   r   r   r   r   r   r   -   sp     K 	G M   C    Or   r   _ReceivedEmailFromParamfrom_ListReceivedEmailFromParamc                       \ rS rSr% \\S'    \\S'    \\   \S'    \\S'    \\S'    \\   \S'    \\   \S'    \\\      \S	'    \\\      \S
'    \\\      \S'    \\S'    \\	\\4      \S'    \\
   \S'   Srg)_ReceivedEmailDefaultAttrsp   r    r   to
created_atsubjecthtmltextbccccreply_to
message_idheadersattachmentsr   N)r   r   r   r   r   r   r   r   r   r   r	   r   r   r   r   r'   r'   p   s    K 	G 	S	M O L 3- 3- 
$s)	 	c tCy!! O c3h(( o&&r   r'   c                       \ rS rSrSrSrg)ReceivedEmail   a	  
ReceivedEmail type that wraps a received (inbound) email object.

Attributes:
    object (str): The object type.
    id (str): The received email ID.
    to (List[str]): List of recipient email addresses.
    from (str): The sender email address.
    created_at (str): When the email was received.
    subject (str): The subject of the email.
    html (Optional[str]): The HTML content of the email.
    text (Optional[str]): The text content of the email.
    bcc (Optional[List[str]]): Bcc recipients.
    cc (Optional[List[str]]): Cc recipients.
    reply_to (Optional[List[str]]): Reply-to addresses.
    message_id (str): The message ID of the email.
    headers (NotRequired[Dict[str, str]]): Email headers.
    attachments (List[EmailAttachment]): List of attachments.
r   Nr   r   r   r   r   r   r   r   r   r5   r5      s    r   r5   c                       \ rS rSr% \\S'    \\   \S'    \\S'    \\S'    \\\      \S'    \\\      \S'    \\\      \S'    \\S	'    \\   \S
'   Sr	g)_ListReceivedEmailDefaultAttrs   r   r)   r*   r+   r.   r/   r0   r1   r3   r   N)
r   r   r   r   r   r   r   r   r	   r   r   r   r   r9   r9      s    G 	S	M O L 
$s)	 	c tCy!! O o&&r   r9   c                       \ rS rSrSrSrg)ListReceivedEmail   a~  
ListReceivedEmail type for received email items in list responses.
Omits html, text, headers, and object fields from the full email.

Attributes:
    id (str): The received email ID.
    to (List[str]): List of recipient email addresses.
    from (str): The sender email address.
    created_at (str): When the email was received.
    subject (str): The subject of the email.
    bcc (Optional[List[str]]): Bcc recipients.
    cc (Optional[List[str]]): Cc recipients.
    reply_to (Optional[List[str]]): Reply-to addresses.
    message_id (str): The message ID of the email.
    attachments (List[EmailAttachment]): List of attachments.
r   Nr7   r   r   r   r<   r<      s    r   r<   N)typingr   r   r   typing_extensionsr   r   r	   r   r   r#   r%   r'   r5   r9   r<   r   r   r   <module>r@      s    ' ' 4$i $N.Y .d $  (! 4!8 4n. ,$%@ $N6 r   