Ë
    [üàgA,  ã                   ó¢   — d Z ddlmZmZmZmZ ddl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 G d„ de«      Zy)aì  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Frontline
    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)Ú	serializeÚvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersionc                   óÂ  ‡ — e Zd Z G d„ de«      Z	 	 ddedeeef   de	e   fˆ fd„Z
edd„«       Zdd	„Zdd
„Zej                   ej                   ej                   ej                   fdeeef   deeef   dedef   deeef   dd f
d„Zej                   ej                   ej                   ej                   fdeeef   deeef   dedef   deeef   dd f
d„Zdefd„Zˆ xZS )ÚUserInstancec                   ó   — e Zd ZdZdZy)úUserInstance.StateTypeÚactiveÚdeactivatedN)Ú__name__Ú
__module__Ú__qualname__ÚACTIVEÚDEACTIVATED© ó    ú_/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/frontline_api/v1/user.pyÚ	StateTyper      s   „ ØˆØ#‰r   r   ÚversionÚpayloadÚsidc                 ó”  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        d|xs | j                  i| _
        d | _        y )Nr   ÚidentityÚfriendly_nameÚavatarÚstateÚis_availableÚurl)ÚsuperÚ__init__Úgetr   r    r!   r"   r#   r$   r%   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €r   r'   zUserInstance.__init__'   s¥   ø€ ô 	‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ'.§{¡{°:Ó'>ˆŒØ,3¯K©K¸Ó,HˆÔØ%,§[¡[°Ó%:ˆŒØ9@¿¹ÀWÓ9MˆŒ
Ø,3¯K©K¸Ó,GˆÔØ")§+¡+¨eÓ"4ˆŒð �3’?˜$Ÿ(™(ð
ˆŒð 04ˆ�r   Úreturnc                 ó„   — | j                   €)t        | j                  | j                  d   ¬«      | _         | j                   S )zã
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: UserContext for this UserInstance
        r   ©r   )r*   ÚUserContextÚ_versionr)   ©r+   s    r   Ú_proxyzUserInstance._proxy9   s9   € ð �=‰=Ð Ü'Ø—‘Ø—N‘N 5Ñ)ôˆDŒMð �}‰}Ðr   c                 ó6   — | j                   j                  «       S )úU
        Fetch the UserInstance


        :returns: The fetched UserInstance
        )r3   Úfetchr2   s    r   r6   zUserInstance.fetchH   s   € ð �{‰{× Ñ Ó"Ð"r   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)úo
        Asynchronous coroutine to fetch the UserInstance


        :returns: The fetched UserInstance
        N)r3   Úfetch_asyncr2   s    r   r9   zUserInstance.fetch_asyncQ   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.ús   ‚' %¡'r!   r"   r#   r   r$   c                 ó@   — | j                   j                  ||||¬«      S )á   
        Update the UserInstance

        :param friendly_name: The string that you assigned to describe the User.
        :param avatar: The avatar URL which will be shown in Frontline application.
        :param state:
        :param is_available: Whether the User is available for new conversations. Set to `false` to prevent User from receiving new inbound conversations if you are using [Pool Routing](https://www.twilio.com/docs/frontline/handle-incoming-conversations#3-pool-routing).

        :returns: The updated UserInstance
        ©r!   r"   r#   r$   )r3   Úupdate©r+   r!   r"   r#   r$   s        r   r=   zUserInstance.updateZ   s,   € ð" �{‰{×!Ñ!Ø'ØØØ%ð	 "ó 
ð 	
r   c              ƒ   ó\   K  — | j                   j                  ||||¬«      ƒ d{  –—† S 7 Œ­w)á:  
        Asynchronous coroutine to update the UserInstance

        :param friendly_name: The string that you assigned to describe the User.
        :param avatar: The avatar URL which will be shown in Frontline application.
        :param state:
        :param is_available: Whether the User is available for new conversations. Set to `false` to prevent User from receiving new inbound conversations if you are using [Pool Routing](https://www.twilio.com/docs/frontline/handle-incoming-conversations#3-pool-routing).

        :returns: The updated UserInstance
        r<   N)r3   Úupdate_asyncr>   s        r   rA   zUserInstance.update_asyncr   s:   è ø€ ð" —[‘[×-Ñ-Ø'ØØØ%ð	 .ó 
÷ 
ð 	
ð 
ús   ‚#,¥*¦,c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )úf
        Provide a friendly representation

        :returns: Machine friendly representation
        ú c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­w©z{}={}N©Úformat©Ú.0ÚkÚvs      r   ú	<genexpr>z(UserInstance.__repr__.<locals>.<genexpr>�   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z(<Twilio.FrontlineApi.V1.UserInstance {}>©Újoinr)   ÚitemsrH   ©r+   Úcontexts     r   Ú__repr__zUserInstance.__repr__Š   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ9×@Ñ@ÀÓIÐIr   )N)r-   r0   )r-   r   )r   r   r   Úobjectr   r   r   Ústrr   r   r'   Úpropertyr3   r6   r9   r   Úunsetr   Úboolr=   rA   rU   Ú__classcell__©r,   s   @r   r   r      sb  ø„ ô$�Fô $ðð OSñ4Øð4Ø)-¨c°3¨h©ð4Ø>FÀs¹mõ4ð$ òó ðó#ó/ð -3¯L©LØ%+§\¡\Ø9?¿¹Ø,2¯L©Lñ
à˜S &˜[Ñ)ð
ð �c˜6�kÑ"ð
ð Ð-¨vÐ5Ñ6ð	
ð
 ˜D &˜LÑ)ð
ð 
ó
ð4 -3¯L©LØ%+§\¡\Ø9?¿¹Ø,2¯L©Lñ
à˜S &˜[Ñ)ð
ð �c˜6�kÑ"ð
ð Ð-¨vÐ5Ñ6ð	
ð
 ˜D &˜LÑ)ð
ð 
ó
ð0J˜#÷ Jr   r   c                   óˆ  ‡ — e Zd Zdedefˆ fd„Zdefd„Zdefd„Ze	j                  e	j                  e	j                  e	j                  fdeeef   deeef   d	ed
ef   deeef   def
d„Ze	j                  e	j                  e	j                  e	j                  fdeeef   deeef   d	ed
ef   deeef   def
d„Zdefd„Zˆ xZS )r0   r   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)zù
        Initialize the UserContext

        :param version: Version that contains the resource
        :param sid: The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update.
        r   z/Users/{sid}Nr   )r&   r'   r)   rH   Ú_uri)r+   r   r   r,   s      €r   r'   zUserContext.__init__–   s?   ø€ ô 	‰Ñ˜Ô!ð �3ð
ˆŒð *�N×)Ñ)Ñ;¨D¯N©NÑ;ˆ�	r   r-   c                 óÐ   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   ¬«      S )r5   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚheadersr   r/   )r   Úofr1   r6   r_   r   r)   ©r+   rg   r   s      r   r6   zUserContext.fetch¥   s]   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆäØ�M‰MØØ—‘˜uÑ%ô
ð 	
r   c              ƒ   óì   K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬«      S 7 Œ)­w)r8   ra   rb   rc   rd   Nr   r/   )r   rh   r1   r9   r_   r   r)   ri   s      r   r9   zUserContext.fetch_async¹   sr   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô Ø�M‰MØØ—‘˜uÑ%ô
ð 	
ð	
ús   ‚AA4ÁA2Á	*A4r!   r"   r#   r   r$   c                 ó6  — t        j                  |||t        j                  |«      dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d   ¬	«      S )
r;   ©ÚFriendlyNameÚAvatarÚStateÚIsAvailableú!application/x-www-form-urlencodedúContent-Typera   rb   ÚPOST©re   rf   Údatarg   r   r/   )	r   rh   r   Úboolean_to_stringr1   r=   r_   r   r)   ©r+   r!   r"   r#   r$   ru   rg   r   s           r   r=   zUserContext.updateÏ   s•   € ô$ �y‰yà -Ø ØÜ(×:Ñ:¸<ÓHñ	ó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô ˜DŸM™M¨7¸¿¹ÀuÑ8MÔNÐNr   c              ƒ   óR  K  — t        j                  |||t        j                  |«      dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  d	   ¬
«      S 7 Œ)­w)r@   rl   rq   rr   ra   rb   rs   rt   Nr   r/   )	r   rh   r   rv   r1   rA   r_   r   r)   rw   s           r   rA   zUserContext.update_asyncõ   s£   è ø€ ô$ �y‰yà -Ø ØÜ(×:Ñ:¸<ÓHñ	ó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô ˜DŸM™M¨7¸¿¹ÀuÑ8MÔNÐNð	
ús   ‚A9B'Á;B%Á<*B'c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rC   rD   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wrF   rG   rI   s      r   rM   z'UserContext.__repr__.<locals>.<genexpr>!  rN   rO   z'<Twilio.FrontlineApi.V1.UserContext {}>rP   rS   s     r   rU   zUserContext.__repr__  s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ8×?Ñ?ÀÓHÐHr   )r   r   r   r   rW   r'   r   r6   r9   r   rY   r   rV   rZ   r=   rA   rU   r[   r\   s   @r   r0   r0   ”   s<  ø„ ð< ð <¨cõ <ð
�|ó 
ð(
 <ó 
ð0 -3¯L©LØ%+§\¡\Ø9?¿¹Ø,2¯L©Lñ$Oà˜S &˜[Ñ)ð$Oð �c˜6�kÑ"ð$Oð Ð-¨vÐ5Ñ6ð	$Oð
 ˜D &˜LÑ)ð$Oð 
ó$OðP -3¯L©LØ%+§\¡\Ø9?¿¹Ø,2¯L©Lñ$Oà˜S &˜[Ñ)ð$Oð �c˜6�kÑ"ð$Oð Ð-¨vÐ5Ñ6ð	$Oð
 ˜D &˜LÑ)ð$Oð 
ó$OðLI˜#÷ Ir   r0   c                   óP   ‡ — e Zd Zdefˆ fd„Zdedefd„Zdedefd„Zdefd„Z	ˆ xZ
S )ÚUserListr   c                 ó$   •— t         ‰| �  |«       y)zf
        Initialize the UserList

        :param version: Version that contains the resource

        N)r&   r'   )r+   r   r,   s     €r   r'   zUserList.__init__'  s   ø€ ô 	‰Ñ˜Õ!r   r   r-   c                 ó0   — t        | j                  |¬«      S ©z¼
        Constructs a UserContext

        :param sid: The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update.
        r/   ©r0   r1   ©r+   r   s     r   r(   zUserList.get0  ó   € ô ˜4Ÿ=™=¨cÔ2Ð2r   c                 ó0   — t        | j                  |¬«      S r   r€   r�   s     r   Ú__call__zUserList.__call__8  r‚   r   c                  ó   — y)rC   z!<Twilio.FrontlineApi.V1.UserList>r   r2   s    r   rU   zUserList.__repr__@  s   € ð 3r   )r   r   r   r   r'   rW   r0   r(   r„   rU   r[   r\   s   @r   r|   r|   %  sA   ø„ ð" õ "ð3�sð 3˜{ó 3ð3˜Cð 3 Kó 3ð3˜#÷ 3r   r|   N)Ú__doc__Útypingr   r   r   r   Útwilio.baser   r   Útwilio.base.instance_contextr	   Útwilio.base.instance_resourcer
   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r0   r|   r   r   r   ú<module>r�      sP   ðñ÷ .Ó -ß )Ý 8Ý :Ý 2Ý 'ôzJÐ#ô zJôzNI�/ô NIôb!3ˆ|õ !3r   