Ë
    [üàgü  ã                   ó|   — d Z ddlmZmZmZmZ ddl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 - Flex
    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.
é    )ÚAnyÚDictÚOptionalÚUnion)Úvalues)ÚInstanceResource)ÚListResource)ÚVersionc                   óB   ‡ — e Zd ZdZdedeeef   fˆ fd„Zdefd„Z	ˆ xZ
S )ÚWebChannelsInstancea–  
    :ivar conversation_sid: The unique string representing the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) created.
    :ivar identity: The unique string representing the User created and should be authorized to participate in the Conversation. For more details, see [User Identity & Access Tokens](https://www.twilio.com/docs/conversations/identity).
    ÚversionÚpayloadc                 ó|   •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        y )NÚconversation_sidÚidentity)ÚsuperÚ__init__Úgetr   r   )Úselfr   r   Ú	__class__s      €úb/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/flex_api/v2/web_channels.pyr   zWebChannelsInstance.__init__   s2   ø€ Ü‰Ñ˜Ô!à/6¯{©{Ð;MÓ/NˆÔØ'.§{¡{°:Ó'>ˆ�ó    Úreturnc                  ó   — y)úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z'<Twilio.FlexApi.V2.WebChannelsInstance>© ©r   s    r   Ú__repr__zWebChannelsInstance.__repr__#   s   € ð 9r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   Ústrr   r   r   Ú__classcell__©r   s   @r   r   r      s/   ø„ ñð
? ð ?°$°s¸C°x±.õ ?ð9˜#÷ 9r   r   c                   ót  ‡ — e Zd Zdefˆ fd„Zej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee	f   de
fd	„Zej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee	f   de
fd
„Zdefd„Zˆ xZS )ÚWebChannelsListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zm
        Initialize the WebChannelsList

        :param version: Version that contains the resource

        z	/WebChatsN)r   r   Ú_uri)r   r   r   s     €r   r   zWebChannelsList.__init__/   s   ø€ ô 	‰Ñ˜Ô!àˆ�	r   Úaddress_sidÚ
ui_versionÚchat_friendly_nameÚcustomer_friendly_nameÚpre_engagement_datar   c                 óø   — t        j                  ||||dœ«      }t        j                  |ddœ«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )	aï  
        Create the WebChannelsInstance

        :param address_sid: The SID of the Conversations Address. See [Address Configuration Resource](https://www.twilio.com/docs/conversations/api/address-configuration-resource) for configuration details. When a conversation is created on the Flex backend, the callback URL will be set to the corresponding Studio Flow SID or webhook URL in your address configuration.
        :param ui_version: The Ui-Version HTTP request header
        :param chat_friendly_name: The Conversation's friendly name. See the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) for an example.
        :param customer_friendly_name: The Conversation participant's friendly name. See the [Conversation Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) for an example.
        :param pre_engagement_data: The pre-engagement data.

        :returns: The created WebChannelsInstance
        ©Ú
AddressSidÚChatFriendlyNameÚCustomerFriendlyNameÚPreEngagementDataú!application/x-www-form-urlencoded©z
Ui-VersionúContent-Typer7   úapplication/jsonÚAcceptÚPOST©ÚmethodÚuriÚdataÚheaders)r   ÚofÚ_versionÚcreater)   r   ©	r   r*   r+   r,   r-   r.   r>   r?   r   s	            r   rB   zWebChannelsList.create:   sŽ   € ô( �y‰yà)Ø$6Ø(>Ø%8ñ	ó
ˆô —)‘)à(Ø Cñó
ˆð #Fˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô # 4§=¡=°'Ó:Ð:r   c              ƒ   ó  K  — t        j                  ||||dœ«      }t        j                  |ddœ«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d	{  –—† }t        | j                  |«      S 7 Œ­w)
aþ  
        Asynchronously create the WebChannelsInstance

        :param address_sid: The SID of the Conversations Address. See [Address Configuration Resource](https://www.twilio.com/docs/conversations/api/address-configuration-resource) for configuration details. When a conversation is created on the Flex backend, the callback URL will be set to the corresponding Studio Flow SID or webhook URL in your address configuration.
        :param ui_version: The Ui-Version HTTP request header
        :param chat_friendly_name: The Conversation's friendly name. See the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) for an example.
        :param customer_friendly_name: The Conversation participant's friendly name. See the [Conversation Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) for an example.
        :param pre_engagement_data: The pre-engagement data.

        :returns: The created WebChannelsInstance
        r0   r5   r6   r7   r8   r9   r:   r;   N)r   r@   rA   Úcreate_asyncr)   r   rC   s	            r   rE   zWebChannelsList.create_asyncg   sœ   è ø€ ô( �y‰yà)Ø$6Ø(>Ø%8ñ	ó
ˆô —)‘)à(Ø Cñó
ˆð #Fˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô # 4§=¡=°'Ó:Ð:ð	
ús   ‚A)BÁ+BÁ,Bc                  ó   — y)r   z#<Twilio.FlexApi.V2.WebChannelsList>r   r   s    r   r   zWebChannelsList.__repr__”   s   € ð 5r   )r   r    r!   r
   r   r   Úunsetr#   r   Úobjectr   rB   rE   r   r$   r%   s   @r   r'   r'   -   s  ø„ ð	  õ 	 ð *0¯©Ø17·±Ø5;·\±\Ø28·,±,ñ+;àð+;ð ˜#˜v˜+Ñ&ð+;ð " # v +Ñ.ð	+;ð
 !& c¨6 kÑ 2ð+;ð # 3¨ ;Ñ/ð+;ð 
ó+;ð` *0¯©Ø17·±Ø5;·\±\Ø28·,±,ñ+;àð+;ð ˜#˜v˜+Ñ&ð+;ð " # v +Ñ.ð	+;ð
 !& c¨6 kÑ 2ð+;ð # 3¨ ;Ñ/ð+;ð 
ó+;ðZ5˜#÷ 5r   r'   N)r"   Útypingr   r   r   r   Útwilio.baser   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer	   Útwilio.base.versionr
   r   r'   r   r   r   ú<module>rN      s9   ðñ÷ .Ó -Ý å :Ý 2Ý 'ô9Ð*ô 9ô,m5�lõ m5r   