
    pi                     |    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      f/opt/services/ai/voice_agent/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/    
? ?$sCx. ?9# 9r   r   c                       e Zd Zdef fdZej                  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ee	f   d	e
fd
Zej                  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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   r   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.
        :param identity: The Identity of the guest user. See the [Conversation User Resource](https://www.twilio.com/docs/conversations/api/user-resource) for an example.

        :returns: The created WebChannelsInstance
        
AddressSidChatFriendlyNameCustomerFriendlyNamePreEngagementDataIdentity!application/x-www-form-urlencodedz
Ui-VersionContent-Typer8   application/jsonAcceptPOSTmethoduridataheaders)r   of_versioncreater)   r   
r   r*   r+   r,   r-   r.   r   r?   r@   r   s
             r   rC   zWebChannelsList.create:   s    , yy)$6(>%8$
 ))( C
 #F.--&&tyytW ' 
 #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.
        :param identity: The Identity of the guest user. See the [Conversation User Resource](https://www.twilio.com/docs/conversations/api/user-resource) for an example.

        :returns: The created WebChannelsInstance
        r0   r6   r7   r8   r9   r:   r;   r<   N)r   rA   rB   create_asyncr)   r   rD   s
             r   rF   zWebChannelsList.create_asyncj   s     , yy)$6(>%8$
 ))( C
 #F.22tyytW 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   rC   rF   r   r$   r%   s   @r   r'   r'   -   sS   	  	  *0175;\\28,,'-||.;.; #v+&.; "#v+.	.;
 !&c6k 2.; #3;/.; V$.; 
.;f *0175;\\28,,'-||.;.; #v+&.; "#v+.	.;
 !&c6k 2.; #3;/.; V$.; 
.;`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>rO      s9    . -  : 2 '9* 9,s5l s5r   