Ë
    [üàgG4  ã                   ó”   — d Z ddlmZ ddlmZmZmZmZmZ ddlm	Z	m
Z
mZ ddlmZ ddlmZ ddlmZ  G d„ d	e«      Z G d
„ de«      Zy)að  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Conversations
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
é    )Údatetime)ÚAnyÚDictÚListÚOptionalÚUnion)ÚdeserializeÚ	serializeÚvalues)ÚInstanceResource)ÚListResource)ÚVersionc                   ól   ‡ — e Zd Z G d„ de«      Z G d„ de«      Z	 dedeee	f   fˆ fd„Z
defd	„Zˆ xZS )
Ú$ConversationWithParticipantsInstancec                   ó   — e Zd ZdZdZdZy)ú*ConversationWithParticipantsInstance.StateÚinactiveÚactiveÚclosedN)Ú__name__Ú
__module__Ú__qualname__ÚINACTIVEÚACTIVEÚCLOSED© ó    úy/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/conversations/v1/conversation_with_participants.pyÚStater      s   „ ØˆØˆØ‰r   r   c                   ó   — e Zd ZdZdZy)ú7ConversationWithParticipantsInstance.WebhookEnabledTypeÚtrueÚfalseN)r   r   r   ÚTRUEÚFALSEr   r   r   ÚWebhookEnabledTyper!      s   „ ØˆØ‰r   r&   ÚversionÚpayloadc                 óØ  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        |j                  d«      | _
        t        j                  |j                  d	«      «      | _        t        j                  |j                  d
«      «      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y )NÚaccount_sidÚchat_service_sidÚmessaging_service_sidÚsidÚfriendly_nameÚunique_nameÚ
attributesÚstateÚdate_createdÚdate_updatedÚtimersÚlinksÚbindingsÚurl)ÚsuperÚ__init__Úgetr*   r+   r,   r-   r.   r/   r0   r1   r	   Úiso8601_datetimer2   r3   r4   r5   r6   r7   )Úselfr'   r(   Ú	__class__s      €r   r9   z-ConversationWithParticipantsInstance.__init__4   s  ø€ Ü‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ/6¯{©{Ð;MÓ/NˆÔØ4;·K±KÐ@WÓ4XˆÔ"Ø")§+¡+¨eÓ"4ˆŒØ,3¯K©K¸Ó,HˆÔØ*1¯+©+°mÓ*DˆÔØ)0¯©°\Ó)BˆŒà�K‰K˜Ó ð 	Œ
ô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð 4;·;±;¸xÓ3HˆŒØ29·+±+¸gÓ2FˆŒ
Ø5<·[±[ÀÓ5LˆŒØ")§+¡+¨eÓ"4ˆ�r   Úreturnc                  ó   — y)úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z><Twilio.Conversations.V1.ConversationWithParticipantsInstance>r   ©r<   s    r   Ú__repr__z-ConversationWithParticipantsInstance.__repr__L   s   € ð Pr   )r   r   r   Úobjectr   r&   r   r   Ústrr   r9   rB   Ú__classcell__©r=   s   @r   r   r      sI   ø„ ô�ô ô
˜Vô ðð"5 ð 5°$°s¸C°x±.õ 5ð0P˜#÷ Pr   r   c                   ó   ‡ — e Zd Zdefˆ fd„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdedef   dee	ef   dee	ef   dee
ef   dee
ef   d	ee	ef   d
ee	ef   dedef   dee	ef   dee	ef   dee	ef   dee	ef   deee	   ef   defd„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdedef   dee	ef   dee	ef   dee
ef   dee
ef   d	ee	ef   d
ee	ef   dedef   dee	ef   dee	ef   dee	ef   dee	ef   deee	   ef   defd„Zde	fd„Zˆ xZS )Ú ConversationWithParticipantsListr'   c                 ó2   •— t         ‰| �  |«       d| _        y)z~
        Initialize the ConversationWithParticipantsList

        :param version: Version that contains the resource

        z/ConversationWithParticipantsN)r8   r9   Ú_uri)r<   r'   r=   s     €r   r9   z)ConversationWithParticipantsList.__init__X   s   ø€ ô 	‰Ñ˜Ô!à3ˆ�	r   Úx_twilio_webhook_enabledr!   r.   r/   r2   r3   r,   r0   r1   r   Útimers_inactiveÚtimers_closedÚbindings_email_addressÚbindings_email_nameÚparticipantr>   c                 ó~  — t        j                  ||t        j                  |«      t        j                  |«      ||||	|
||t        j                  |d„ «      dœ«      }t        j                  |ddœ«      }d|d<   d|d<   | j
                  j                  d| j                  ||¬	«      }t        | j
                  |«      S )
a®  
        Create the ConversationWithParticipantsInstance

        :param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
        :param friendly_name: The human-readable name of this conversation, limited to 256 characters. Optional.
        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
        :param date_created: The date that this resource was created.
        :param date_updated: The date that this resource was last updated.
        :param messaging_service_sid: The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
        :param attributes: An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
        :param state:
        :param timers_inactive: ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
        :param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
        :param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
        :param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
        :param participant: The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.

        :returns: The created ConversationWithParticipantsInstance
        c                 ó   — | S ©Nr   ©Úes    r   ú<lambda>z9ConversationWithParticipantsList.create.<locals>.<lambda>˜   ó   € ÀA€ r   ©ÚFriendlyNameÚ
UniqueNameÚDateCreatedÚDateUpdatedÚMessagingServiceSidÚ
Attributesr   zTimers.InactivezTimers.ClosedzBindings.Email.AddresszBindings.Email.NameÚParticipantú!application/x-www-form-urlencoded©zX-Twilio-Webhook-EnabledúContent-Typerb   úapplication/jsonÚAcceptÚPOST©ÚmethodÚuriÚdataÚheaders)	r   Úofr
   r;   ÚmapÚ_versionÚcreaterJ   r   ©r<   rK   r.   r/   r2   r3   r,   r0   r1   rL   rM   rN   rO   rP   ri   rj   r(   s                    r   rn   z'ConversationWithParticipantsList.createc   sÈ   € ôP �y‰yà -Ø)Ü(×9Ñ9¸,ÓGÜ(×9Ñ9¸,ÓGØ'<Ø(ØØ#2Ø!.Ø*@Ø':Ü(Ÿ}™}¨[¹+ÓFñó
ˆô  —)‘)à,DØ Cñó
ˆð #Fˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô 4°D·M±MÀ7ÓKÐKr   c              ƒ   óš  K  — t        j                  ||t        j                  |«      t        j                  |«      ||||	|
||t        j                  |d„ «      dœ«      }t        j                  |ddœ«      }d|d<   d|d<   | j
                  j                  d| j                  ||¬	«      ƒ d
{  –—† }t        | j
                  |«      S 7 Œ­w)a½  
        Asynchronously create the ConversationWithParticipantsInstance

        :param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
        :param friendly_name: The human-readable name of this conversation, limited to 256 characters. Optional.
        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
        :param date_created: The date that this resource was created.
        :param date_updated: The date that this resource was last updated.
        :param messaging_service_sid: The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
        :param attributes: An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
        :param state:
        :param timers_inactive: ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
        :param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
        :param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
        :param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
        :param participant: The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.

        :returns: The created ConversationWithParticipantsInstance
        c                 ó   — | S rS   r   rT   s    r   rV   z?ConversationWithParticipantsList.create_async.<locals>.<lambda>á   rW   r   rX   r`   ra   rb   rc   rd   re   rf   N)	r   rk   r
   r;   rl   rm   Úcreate_asyncrJ   r   ro   s                    r   rr   z-ConversationWithParticipantsList.create_async¬   sÖ   è ø€ ôP �y‰yà -Ø)Ü(×9Ñ9¸,ÓGÜ(×9Ñ9¸,ÓGØ'<Ø(ØØ#2Ø!.Ø*@Ø':Ü(Ÿ}™}¨[¹+ÓFñó
ˆô  —)‘)à,DØ Cñó
ˆð #Fˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô 4°D·M±MÀ7ÓKÐKð	
ús   ‚B,CÂ.C	Â/Cc                  ó   — y)r@   z:<Twilio.Conversations.V1.ConversationWithParticipantsList>r   rA   s    r   rB   z)ConversationWithParticipantsList.__repr__õ   s   € ð Lr   )r   r   r   r   r9   r   Úunsetr   rC   rD   r   r   r   rn   rr   rB   rE   rF   s   @r   rH   rH   V   s?  ø„ ð	4 õ 	4ð �L‰LØ,2¯L©LØ*0¯,©,Ø06·±Ø06·±Ø4:·L±LØ)/¯©ð �L‰LØ.4¯l©lØ,2¯L©LØ5;·\±\Ø28·,±,Ø06·±ñ%GLà"'ØEÀvÐMñ#
ðGLð
 ˜S &˜[Ñ)ðGLð ˜3 ˜;Ñ'ðGLð ˜H fÐ,Ñ-ðGLð ˜H fÐ,Ñ-ðGLð  % S¨& [Ñ1ðGLð ˜#˜v˜+Ñ&ðGLð Ø8¸&Ð@ñ
ðGLð ˜s F˜{Ñ+ðGLð ˜S &˜[Ñ)ðGLð  !& c¨6 kÑ 2ð!GLð" # 3¨ ;Ñ/ð#GLð$ ˜4 ™9 fÐ,Ñ-ð%GLð& 
.ó'GLðZ �L‰LØ,2¯L©LØ*0¯,©,Ø06·±Ø06·±Ø4:·L±LØ)/¯©ð �L‰LØ.4¯l©lØ,2¯L©LØ5;·\±\Ø28·,±,Ø06·±ñ%GLà"'ØEÀvÐMñ#
ðGLð
 ˜S &˜[Ñ)ðGLð ˜3 ˜;Ñ'ðGLð ˜H fÐ,Ñ-ðGLð ˜H fÐ,Ñ-ðGLð  % S¨& [Ñ1ðGLð ˜#˜v˜+Ñ&ðGLð Ø8¸&Ð@ñ
ðGLð ˜s F˜{Ñ+ðGLð ˜S &˜[Ñ)ðGLð  !& c¨6 kÑ 2ð!GLð" # 3¨ ;Ñ/ð#GLð$ ˜4 ™9 fÐ,Ñ-ð%GLð& 
.ó'GLðRL˜#÷ Lr   rH   N)Ú__doc__r   Útypingr   r   r   r   r   Útwilio.baser	   r
   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   rH   r   r   r   ú<module>r{      sD   ðñõ ß 3Õ 3ß 6Ñ 6å :Ý 2Ý 'ô;PÐ+;ô ;Pô|eL |õ eLr   