Ë
    K[ýjÜ  ã                   ó|  — d dl Z d dlmZ d dlmZmZmZ d dlmZmZm	Z	  G d„ de«      Z
 G d„ de«      Z G d	„ d
e«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ d e«      Z G d!„ d"e«      Z G d#„ d$e«      Z G d%„ d&e«      Z G d'„ d(e«      Z G d)„ d*e«      Z G d+„ d,e«      Z G d-„ d.e«      Z G d/„ d0e«      Z G d1„ d2e«      Z  G d3„ d4e«      Z! G d5„ d6e«      Z" G d7„ d8e«      Z#y)9é    N)Údatetime)ÚAnyÚLiteralÚOptional)Ú	BaseModelÚ
ConfigDictÚFieldc                   óô   — e Zd ZU  ed¬«      ZdZeej                     e	d<    e
dd¬«      Zee	d<   d	Zed
   e	d<    e
dd¬«      Zee	d<    e
ddd¬«      Zee	d<    e
ddd¬«      Zee	d<    e
d¬«      Zee	d<   y)ÚButtonSchemaT©Úfrom_attributesNÚidé   éÿ   ©Ú
min_lengthÚ
max_lengthÚtextÚcallback_data)Úurlr   Úweb_appÚswitch_inline_queryÚbutton_typei   Úaction_valuer   é
   ©ÚdefaultÚgeÚleÚrow_positioné   Úcolumn_position©r   Ú
sort_order)Ú__name__Ú
__module__Ú__qualname__r   Úmodel_configr   r   ÚuuidÚUUIDÚ__annotations__r	   r   Ústrr   r   r   r    Úintr"   r$   © ó    ú5/root/telegram-saas/modules/message_studio/schemas.pyr   r      s†   … Ù¨dÔ3€Là"€Bˆ�—‘ÑÓ"Ù ¨sÔ3€Dˆ#Ó3ØUd€K�ÐQÑRÓdÙ¨°sÔ;€L�#Ó;Ù a¨A°"Ô5€L�#Ó5Ù ¨¨q°QÔ7€O�SÓ7Ù AÔ&€J�Ô&r/   r   c                   óô   — e Zd ZU  eddd¬«      Zeed<    edd¬«      Zeed<    ed	¬
«      Zeed<   dZ	e
d   ed<   dZe
d   ed<   dZee   ed<    eddd¬«      Zeed<   dZeed<   dZeed<   g Zee   ed<   y)ÚMessageTemplateCreateé   éd   ú^[a-z0-9_-]+$©r   r   ÚpatternÚmessage_keyr   r   Útitler   ©r   Úmessage_textÚHTML©r<   Ú
MarkdownV2ÚNoneÚ
parse_modeÚnone©rA   ÚphotoÚvideoÚ	animationÚdocumentÚ
media_typeNÚmedia_file_idÚenr   ©r   r   r   ÚlocaleTÚ	is_activeFÚis_draftÚbuttons)r%   r&   r'   r	   r8   r,   r+   r9   r;   r@   r   rG   rH   r   rK   rL   ÚboolrM   rN   Úlistr   r.   r/   r0   r2   r2      sš   … Ù¨°cÐCSÔT€K�ÓTÙ !°Ô4€Eˆ3Ó4Ù¨Ô+€L�#Ó+Ø8>€J�Ð4Ñ5Ó>ØMS€J�ÐIÑJÓSØ#'€M�8˜C‘=Ó'Ù °¸rÔB€FˆCÓBØ€IˆtÓØ€HˆdÓØ"$€GˆT�,ÑÔ$r/   r2   c                   ó  — e Zd ZU  eddd¬«      Zee   ed<    edd¬«      Zee   ed<   dZ	ee
d	      ed
<   dZee
d      ed<   dZee   ed<    eddd¬«      Zee   ed<   dZee   ed<   dZee   ed<   dZeee      ed<   y)ÚMessageTemplateUpdateNr3   r   rJ   r9   r   )r   r   r;   r=   r@   rB   rG   rH   r   rK   rL   rM   rN   )r%   r&   r'   r	   r9   r   r,   r+   r;   r@   r   rG   rH   rK   rL   rO   rM   rN   rP   r   r.   r/   r0   rR   rR       s­   … Ù ¨¸!ÈÔL€Eˆ8�C‰=ÓLÙ"'°ÀÔ"C€L�(˜3‘-ÓCØBF€J�˜Ð!=Ñ>Ñ?ÓFØW[€J�˜Ð!RÑSÑTÓ[Ø#'€M�8˜C‘=Ó'Ù!¨$¸1ÈÔL€FˆH�S‰MÓLØ $€Iˆx˜‰~Ó$Ø#€Hˆh�t‰nÓ#Ø,0€GˆX�d˜<Ñ(Ñ)Ô0r/   rR   c                   ó  — e Zd ZU  ed¬«      Zej                  ed<   ej                  ed<   ej                  ed<   eed<   eed<   eed<   eed	<   eed
<   e	e   ed<   eed<   e
ed<   e
ed<   eed<   ee   ed<   eed<   eed<   y)ÚMessageTemplateResponseTr   r   Ú	tenant_idÚbot_idr8   r9   r;   r@   rG   rH   rK   rL   rM   Úcurrent_versionrN   Ú
created_atÚ
updated_atN)r%   r&   r'   r   r(   r)   r*   r+   r,   r   rO   r-   rP   r   r   r.   r/   r0   rT   rT   ,   sz   … Ù¨dÔ3€Là�	‰	ƒMØ�y‰yÓØ�I‰IÓØÓØƒJØÓØƒOØƒOØ˜C‘=Ó ØƒKØƒOØƒNØÓØ�,ÑÓØÓØÔr/   rT   c                   ó¨   — e Zd ZU  ed¬«      Zej                  ed<   ej                  ed<   eed<   e	e
ef   ed<   eej                     ed<   eed<   y	)
ÚMessageVersionResponseTr   r   Útemplate_idÚversionÚsnapshot_jsonÚ
updated_byrX   N)r%   r&   r'   r   r(   r)   r*   r+   r-   Údictr,   r   r   r   r.   r/   r0   r[   r[   A   sG   … Ù¨dÔ3€Là�	‰	ƒMØ—‘ÓØƒLØ˜˜S˜‘>Ó!Ø˜Ÿ™Ñ#Ó#ØÔr/   r[   c                   ó,   — e Zd ZU dZeeeef      ed<   y)ÚPreviewRequestNÚ	variables)	r%   r&   r'   rc   r   r`   r,   r   r+   r.   r/   r0   rb   rb   L   s   … Ø*.€Iˆx˜˜S #˜X™Ñ'Ô.r/   rb   c                   ó,   — e Zd ZU eed<   eed<   eed<   y)ÚPreviewButtonr   r   r   N©r%   r&   r'   r,   r+   r.   r/   r0   re   re   P   s   … Ø
ƒIØÓØÔr/   re   c                   óR   — e Zd ZU eed<   eed<   eed<   ee   ed<   eee      ed<   y)ÚPreviewResponseÚrendered_textr@   rG   rH   ÚkeyboardN)r%   r&   r'   r,   r+   r   rP   re   r.   r/   r0   rh   rh   V   s,   … ØÓØƒOØƒOØ˜C‘=Ó Ø�4˜Ñ&Ñ'Ô'r/   rh   c                   ó*   — e Zd ZU  ed¬«      Zeed<   y)ÚRollbackRequestr   )r   r]   N)r%   r&   r'   r	   r]   r-   r+   r.   r/   r0   rl   rl   ^   s   … Ù˜A”;€GˆSÔr/   rl   c                   ó,   — e Zd ZU ej                  ed<   y)ÚDuplicateRequestÚtarget_bot_idN)r%   r&   r'   r)   r*   r+   r.   r/   r0   rn   rn   b   s   … Ø—9‘9Ôr/   rn   c                   ó„   — e Zd ZU eed<   eed<   eed<   eed<   dZeed<   dZeed<   d	Zee   ed
<   eed<   g Z	e
e   ed<   y	)ÚPresetResponseÚkeyr9   ÚcategoryÚdescriptionr<   r@   rA   rG   NrH   r;   rN   )r%   r&   r'   r,   r+   r@   rG   rH   r   rN   rP   r   r.   r/   r0   rq   rq   j   sN   … Ø	ƒHØƒJØƒMØÓØ€J�ÓØ€J�ÓØ#'€M�8˜C‘=Ó'ØÓØ"$€GˆT�,ÑÔ$r/   rq   c                   ó†   — e Zd ZU eed<    edddd¬«      Zee   ed<    eddd	¬
«      Zeed<    eddd¬
«      Z	ee   ed<   y)ÚApplyPresetRequestÚ
preset_keyNr3   r4   r5   )r   r   r   r7   r8   rI   r   rJ   rK   r   r9   )
r%   r&   r'   r,   r+   r	   r8   r   rK   r9   r.   r/   r0   rv   rv   v   sK   … ØƒOÙ!&¨tÀÈcÐ[kÔ!l€K�˜#‘ÓlÙ °¸rÔB€FˆCÓBÙ ¨¸!ÈÔL€Eˆ8�C‰=ÔLr/   rv   c                   óZ   — e Zd ZU  ed¬«      Zeed<   dZed   ed<   dZ	e
ed<   dZe
ed	<   y
)ÚStyleTextRequestr   r:   r   Ú
small_caps©rz   Ú	sans_boldÚ
serif_boldÚsans_italicÚ	monospaceÚdouble_struckÚstyleTÚpreserve_tagsÚpreserve_variablesN)r%   r&   r'   r	   r   r,   r+   r�   r   r‚   rO   rƒ   r.   r/   r0   ry   ry   }   sC   … Ù Ô#€Dˆ#Ó#ð 	ð 
ˆ7ð	ñó ð €M�4ÓØ#Ð˜Ô#r/   ry   c                   ó,   — e Zd ZU eed<   eed<   eed<   y)ÚStyleTextResponseÚoriginal_textÚstyled_textr�   Nrf   r.   r/   r0   r…   r…   ‹   s   … ØÓØÓØ„Jr/   r…   c                   ó|   — e Zd ZU  edd¬«      Zeed<   dZed   ed<   dZ	e
ed	<    ed
dd¬«      Zeed<   dZe
ed<   y)ÚGenerateHeaderRequestr   r4   r   r9   Údouble©rŠ   ÚsingleÚroundedÚheavyÚasciir�   FÚborderedé   r   é<   r   ÚwidthTÚauto_small_capsN)r%   r&   r'   r	   r9   r,   r+   r�   r   r�   rO   r“   r-   r”   r.   r/   r0   r‰   r‰   ‘   sJ   … Ù !°Ô4€Eˆ3Ó4ØFN€Eˆ7ÐBÑCÓNØ€HˆdÓÙ˜r b¨RÔ0€Eˆ3Ó0Ø €O�TÔ r/   r‰   c                   ó   — e Zd ZU eed<   y)ÚGenerateHeaderResponseÚheader_textNrf   r.   r/   r0   r–   r–   ™   s   … ØÔr/   r–   c                   ó^   — e Zd ZU  ed¬«      Zeed<    eddd¬«      Zeed<   d	Z	e
e   ed
<   y	)ÚGenerateSeparatorRequestÚinvoicer#   Úpresetr   é   é2   r   ÚlengthNÚcustom_char)r%   r&   r'   r	   r›   r,   r+   rž   r-   rŸ   r   r.   r/   r0   r™   r™   �   s2   … Ù 	Ô*€FˆCÓ*Ù  q¨RÔ0€FˆCÓ0Ø!%€K�˜#‘Ô%r/   r™   c                   ó   — e Zd ZU eed<   y)ÚGenerateSeparatorResponseÚseparator_textNrf   r.   r/   r0   r¡   r¡   £   s   … ØÔr/   r¡   c                   óÆ   — e Zd ZU  edd¬«      Zeed<    eddd¬«      Zeed	<   d
Z	e
d   ed<    edd¬«      Zee   ed<    edd¬«      Zee   ed<    edd¬«      Zeed<   y)ÚGenerateProgressRequestg        g      Y@)r   r   Úpercentr   é   é   r   rž   Úblocks©r¨   ÚsmoothÚcirclesÚsquaresr�   r�   Nr   )r   r   ÚstepÚtotal_stepszProcessing...r4   )r   r   Ú
step_title)r%   r&   r'   r	   r¥   Úfloatr+   rž   r-   r�   r   r­   r   r®   r¯   r,   r.   r/   r0   r¤   r¤   §   sq   … Ù˜c eÔ,€GˆUÓ,Ù  q¨RÔ0€FˆCÓ0ØHP€Eˆ7ÐDÑEÓPÙ¨°Ô3€Dˆ(�3‰-Ó3Ù!&¨t¸Ô!:€K�˜#‘Ó:Ù OÀÔD€J�ÔDr/   r¤   c                   ó6   — e Zd ZU eed<   dZee   ed<   eed<   y)ÚGenerateProgressResponseÚprogress_barNÚstep_headerÚcombined)r%   r&   r'   r,   r+   r´   r   r.   r/   r0   r²   r²   °   s   … ØÓØ!%€K�˜#‘Ó%Ø„Mr/   r²   c                   ó@   — e Zd ZU eed<   dZed   ed<   dZed   ed<   y)	ÚValidateMessageRequestr   r<   r=   r@   rA   rB   rG   N)r%   r&   r'   r,   r+   r@   r   rG   r.   r/   r0   r·   r·   ¶   s'   … Ø
ƒIØ8>€J�Ð4Ñ5Ó>ØMS€J�ÐIÑJÔSr/   r·   c                   ó@   — e Zd ZU eed<   eed<   eed<   g Zee   ed<   y)ÚValidateMessageResponseÚis_validrž   r   ÚerrorsN)	r%   r&   r'   rO   r+   r-   r»   rP   r,   r.   r/   r0   r¹   r¹   ¼   s   … ØƒNØƒKØƒOØ€FˆD�‰IÔr/   r¹   c                   óT   — e Zd ZU ej                  ed<   eed<   dZeed<   e	e
   ed<   y)ÚTemplateExportResponserV   Úexported_atz1.0r]   Ú	templatesN)r%   r&   r'   r)   r*   r+   r   r]   r,   rP   rT   r.   r/   r0   r½   r½   Ã   s(   … Ø�I‰IÓØÓØ€GˆSÓØÐ+Ñ,Ô,r/   r½   c                   óæ   — e Zd ZU  eddd¬«      Zeed<    edd¬«      Zeed<    ed	¬
«      Zeed<   dZ	e
d   ed<   dZe
d   ed<   dZee   ed<    eddd¬«      Zeed<   dZeed<   g Zee   ed<   y)ÚTemplateImportItemr3   r4   r5   r6   r8   r   r   r9   r   r:   r;   r<   r=   r@   rA   rB   rG   NrH   rI   r   rJ   rK   TrL   rN   )r%   r&   r'   r	   r8   r,   r+   r9   r;   r@   r   rG   rH   r   rK   rL   rO   rN   rP   r   r.   r/   r0   rÁ   rÁ   Ê   s�   … Ù¨°cÐCSÔT€K�ÓTÙ !°Ô4€Eˆ3Ó4Ù¨Ô+€L�#Ó+Ø8>€J�Ð4Ñ5Ó>ØMS€J�ÐIÑJÓSØ#'€M�8˜C‘=Ó'Ù °¸rÔB€FˆCÓBØ€IˆtÓØ"$€GˆT�,ÑÔ$r/   rÁ   c                   ó,   — e Zd ZU dZeed<   ee   ed<   y)ÚTemplateImportRequestTÚ	overwriter¿   N)r%   r&   r'   rÄ   rO   r+   rP   rÁ   r.   r/   r0   rÃ   rÃ   Ö   s   … Ø€IˆtÓØÐ&Ñ'Ô'r/   rÃ   c                   ó~   — e Zd ZU dZed   ed<   dZeed<   dZed   ed<   d	Z	eed
<   dZ
ed   ed<   g d¢Zee   ed<   y)ÚBotStylingSchemarŠ   r‹   Úheader_stylerš   Úseparator_presetrz   r{   Ú
font_styleõ   â��Úbullet_symbolr¨   r©   Úprogress_style)	u   âœ«rÊ   u   â¬¥u   â–°u   â–±u   ðŸ’Žu   ðŸ’³u   ðŸŸ¢u   ðŸ“¦Úcustom_symbolsN)r%   r&   r'   rÇ   r   r+   rÈ   r,   rÉ   rË   rÌ   rÍ   rP   r.   r/   r0   rÆ   rÆ   Û   sU   … ØMU€L�'ÐIÑJÓUØ%Ð�cÓ%Øp|€J�ÐlÑmÓ|Ø€M�3ÓØQY€N�GÐMÑNÓYÚ c€N�D˜‘IÔcr/   rÆ   )$r)   r   Útypingr   r   r   Úpydanticr   r   r	   r   r2   rR   rT   r[   rb   re   rh   rl   rn   rq   rv   ry   r…   r‰   r–   r™   r¡   r¤   r²   r·   r¹   r½   rÁ   rÃ   rÆ   r.   r/   r0   ú<module>rÐ      sW  ðÛ Ý ß )Ñ )ß 1Ñ 1ô	'�9ô 	'ô
%˜Iô 
%ô	1˜Iô 	1ô˜iô ô*˜Yô ô/�Yô /ô�Iô ô(�iô (ô�iô ô�yô ô	%�Yô 	%ôM˜ô Mô$�yô $ô˜	ô ô!˜Iô !ô˜Yô ô&˜yô &ô 	ô ôE˜iô Eô˜yô ôT˜Yô Tô˜iô ô-˜Yô -ô	%˜ô 	%ô(˜Iô (ô
d�yõ dr/   