Ë
    [üàgï7  ã                   ó¦   — d Z ddlmZ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 - 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.
é    )ÚAnyÚDictÚListÚOptionalÚUnion)Ú	serializeÚvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersionc                   óÄ  ‡ — e Zd Z G d„ de«      Z	 dedeeef   d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ee   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ee   ef   deeef   dd f
d„Zdefd„Zˆ xZS )ÚWebhookInstancec                   ó   — e Zd ZdZdZy)úWebhookInstance.MethodÚGETÚPOSTN)Ú__name__Ú
__module__Ú__qualname__r   r   © ó    úx/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/conversations/v1/service/configuration/webhook.pyÚMethodr      s   „ ØˆØ‰r   r   ÚversionÚpayloadÚchat_service_sidc                 óx  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        d|i| _
        d | _        y )NÚaccount_sidr   Úpre_webhook_urlÚpost_webhook_urlÚfiltersÚmethodÚurl)ÚsuperÚ__init__Úgetr   r   r    r!   r"   r#   r$   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €r   r&   zWebhookInstance.__init__'   s£   ø€ ô 	‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ/6¯{©{Ð;MÓ/NˆÔØ.5¯k©kÐ:KÓ.LˆÔØ/6¯{©{Ð;MÓ/NˆÔØ,3¯K©K¸	Ó,BˆŒØ:A¿+¹+ÀhÓ:OˆŒØ")§+¡+¨eÓ"4ˆŒð Ð 0ð
ˆŒð 37ˆ�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: WebhookContext for this WebhookInstance
        r   ©r   )r)   ÚWebhookContextÚ_versionr(   ©r*   s    r   Ú_proxyzWebhookInstance._proxy9   s:   € ð �=‰=Ð Ü*Ø—‘Ø!%§¡Ð0BÑ!CôˆDŒMð �}‰}Ðr   c                 ó6   — | j                   j                  «       S )ú[
        Fetch the WebhookInstance


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


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

        :param pre_webhook_url: The absolute url the pre-event webhook request should be sent to.
        :param post_webhook_url: The absolute url the post-event webhook request should be sent to.
        :param filters: The list of events that your configured webhook targets will receive. Events not configured here will not fire. Possible values are `onParticipantAdd`, `onParticipantAdded`, `onDeliveryUpdated`, `onConversationUpdated`, `onConversationRemove`, `onParticipantRemove`, `onConversationUpdate`, `onMessageAdd`, `onMessageRemoved`, `onParticipantUpdated`, `onConversationAdded`, `onMessageAdded`, `onConversationAdd`, `onConversationRemoved`, `onParticipantUpdate`, `onMessageRemove`, `onMessageUpdated`, `onParticipantRemoved`, `onMessageUpdate` or `onConversationStateUpdated`.
        :param method: The HTTP method to be used when sending a webhook request. One of `GET` or `POST`.

        :returns: The updated WebhookInstance
        ©r    r!   r"   r#   )r2   Úupdate©r*   r    r!   r"   r#   s        r   r<   zWebhookInstance.updateZ   s,   € ð" �{‰{×!Ñ!Ø+Ø-ØØð	 "ó 
ð 	
r   c              ƒ   ó\   K  — | j                   j                  ||||¬«      ƒ d{  –—† S 7 Œ­w)áý  
        Asynchronous coroutine to update the WebhookInstance

        :param pre_webhook_url: The absolute url the pre-event webhook request should be sent to.
        :param post_webhook_url: The absolute url the post-event webhook request should be sent to.
        :param filters: The list of events that your configured webhook targets will receive. Events not configured here will not fire. Possible values are `onParticipantAdd`, `onParticipantAdded`, `onDeliveryUpdated`, `onConversationUpdated`, `onConversationRemove`, `onParticipantRemove`, `onConversationUpdate`, `onMessageAdd`, `onMessageRemoved`, `onParticipantUpdated`, `onConversationAdded`, `onMessageAdded`, `onConversationAdd`, `onConversationRemoved`, `onParticipantUpdate`, `onMessageRemove`, `onMessageUpdated`, `onParticipantRemoved`, `onMessageUpdate` or `onConversationStateUpdated`.
        :param method: The HTTP method to be used when sending a webhook request. One of `GET` or `POST`.

        :returns: The updated WebhookInstance
        r;   N)r2   Úupdate_asyncr=   s        r   r@   zWebhookInstance.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+WebhookInstance.__repr__.<locals>.<genexpr>�   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z,<Twilio.Conversations.V1.WebhookInstance {}>©Újoinr(   ÚitemsrG   ©r*   Úcontexts     r   Ú__repr__zWebhookInstance.__repr__Š   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ=×DÑDÀWÓMÐMr   )r,   r/   )r,   r   )r   r   r   Úobjectr   r   r   Ústrr   r&   Úpropertyr2   r5   r8   r	   Úunsetr   r   r<   r@   rT   Ú__classcell__©r+   s   @r   r   r      s]  ø„ ô�ô ðð7Øð7Ø)-¨c°3¨h©ð7ØKNõ7ð$ òó ðó#ó/ð /5¯l©lØ/5¯|©|Ø,2¯L©LØ%+§\¡\ñ
à˜s F˜{Ñ+ð
ð    V Ñ,ð
ð �t˜C‘y &Ð(Ñ)ð	
ð
 �c˜6�kÑ"ð
ð 
ó
ð4 /5¯l©lØ/5¯|©|Ø,2¯L©LØ%+§\¡\ñ
à˜s F˜{Ñ+ð
ð    V Ñ,ð
ð �t˜C‘y &Ð(Ñ)ð	
ð
 �c˜6�kÑ"ð
ð 
ó
ð0N˜#÷ N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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eef   deeef   d	eee   ef   d
eeef   def
d„Zdefd„Zˆ xZS )r/   r   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)a  
        Initialize the WebhookContext

        :param version: Version that contains the resource
        :param chat_service_sid: The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.
        r   z3/Services/{chat_service_sid}/Configuration/WebhooksNr   )r%   r&   r(   rG   Ú_uri©r*   r   r   r+   s      €r   r&   zWebhookContext.__init__–   sG   ø€ ô 	‰Ñ˜Ô!ð Ð 0ð
ˆŒð QÐI×PÑPñ 
Ø�n‰nñ
ˆ�	r   r,   c                 óÐ   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   ¬«      S )r4   úapplication/jsonÚAcceptr   ©r#   ÚuriÚheadersr   r.   )r	   Úofr0   r5   r]   r   r(   ©r*   rd   r   s      r   r5   zWebhookContext.fetch§   s^   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆäØ�M‰MØØ!Ÿ^™^Ð,>Ñ?ô
ð 	
r   c              ƒ   óì   K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬«      S 7 Œ)­w)r7   r`   ra   r   rb   Nr   r.   )r	   re   r0   r8   r]   r   r(   rf   s      r   r8   zWebhookContext.fetch_async»   ss   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô Ø�M‰MØØ!Ÿ^™^Ð,>Ñ?ô
ð 	
ð	
ús   ‚AA4ÁA2Á	*A4r    r!   r"   r#   c                 ó:  — t        j                  ||t        j                  |d„ «      |dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d	   ¬
«      S )r:   c                 ó   — | S ©Nr   ©Úes    r   ú<lambda>z'WebhookContext.update.<locals>.<lambda>ç   ó   € ¸A€ r   ©ÚPreWebhookUrlÚPostWebhookUrlÚFiltersr   ú!application/x-www-form-urlencodedúContent-Typer`   ra   r   ©r#   rc   Údatard   r   r.   )	r	   re   r   Úmapr0   r<   r]   r   r(   ©r*   r    r!   r"   r#   rv   rd   r   s           r   r<   zWebhookContext.updateÑ   s›   € ô$ �y‰yà!0Ø"2Ü$Ÿ=™=¨±+Ó>Ø ñ	ó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô Ø�M‰M˜7°T·^±^ÐDVÑ5Wô
ð 	
r   c              ƒ   óV  K  — t        j                  ||t        j                  |d„ «      |dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d	{  –—† }t        | j                  || j                  d
   ¬«      S 7 Œ)­w)r?   c                 ó   — | S rj   r   rk   s    r   rm   z-WebhookContext.update_async.<locals>.<lambda>  rn   r   ro   rs   rt   r`   ra   r   ru   Nr   r.   )	r	   re   r   rw   r0   r@   r]   r   r(   rx   s           r   r@   zWebhookContext.update_asyncù   s©   è ø€ ô$ �y‰yà!0Ø"2Ü$Ÿ=™=¨±+Ó>Ø ñ	ó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô Ø�M‰M˜7°T·^±^ÐDVÑ5Wô
ð 	
ð	
ús   ‚A;B)Á=B'Á>*B)c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rB   rC   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wrE   rF   rH   s      r   rL   z*WebhookContext.__repr__.<locals>.<genexpr>'  rM   rN   z+<Twilio.Conversations.V1.WebhookContext {}>rO   rR   s     r   rT   zWebhookContext.__repr__!  s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ<×CÑCÀGÓLÐLr   )r   r   r   r   rV   r&   r   r5   r8   r	   rX   r   rU   r   r<   r@   rT   rY   rZ   s   @r   r/   r/   ”   s6  ø„ ð
 ð 
¸3õ 
ð"
�ó 
ð(
 ?ó 
ð0 /5¯l©lØ/5¯|©|Ø,2¯L©LØ%+§\¡\ñ&
à˜s F˜{Ñ+ð&
ð    V Ñ,ð&
ð �t˜C‘y &Ð(Ñ)ð	&
ð
 �c˜6�kÑ"ð&
ð 
ó&
ðT /5¯l©lØ/5¯|©|Ø,2¯L©LØ%+§\¡\ñ&
à˜s F˜{Ñ+ð&
ð    V Ñ,ð&
ð �t˜C‘y &Ð(Ñ)ð	&
ð
 �c˜6�kÑ"ð&
ð 
ó&
ðPM˜#÷ Mr   r/   c                   óL   ‡ — e Zd Zdedefˆ fd„Zdefd„Zdefd„Zdefd„Z	ˆ xZ
S )ÚWebhookListr   r   c                 ó6   •— t         ‰| �  |«       d|i| _        y)a  
        Initialize the WebhookList

        :param version: Version that contains the resource
        :param chat_service_sid: The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.

        r   N)r%   r&   r(   r^   s      €r   r&   zWebhookList.__init__-  s#   ø€ ô 	‰Ñ˜Ô!ð Ð 0ð
ˆ�r   r,   c                 óJ   — t        | j                  | j                  d   ¬«      S ©z.
        Constructs a WebhookContext

        r   r.   ©r/   r0   r(   r1   s    r   r'   zWebhookList.get<  ó$   € ô
 Ø�M‰M¨D¯N©NÐ;MÑ,Nô
ð 	
r   c                 óJ   — t        | j                  | j                  d   ¬«      S r�   r‚   r1   s    r   Ú__call__zWebhookList.__call__E  rƒ   r   c                  ó   — y)rB   z%<Twilio.Conversations.V1.WebhookList>r   r1   s    r   rT   zWebhookList.__repr__N  s   € ð 7r   )r   r   r   r   rV   r&   r/   r'   r…   rT   rY   rZ   s   @r   r~   r~   +  s:   ø„ ð
 ð 
¸3õ 
ð
�^ó 
ð
˜.ó 
ð7˜#÷ 7r   r~   N)Ú__doc__Útypingr   r   r   r   r   Útwilio.baser   r	   Útwilio.base.instance_contextr
   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r/   r~   r   r   r   ú<module>rŽ      sP   ðñ÷ 4Õ 3ß )Ý 8Ý :Ý 2Ý 'ôzNÐ&ô zNôzTM�_ô TMôn)7�,õ )7r   