Ë
    [üàg3  ã                   ó¦   — 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 G d„ de«      Z	 dedeee	f   fˆ fd„Z
edd	„«       Zdd
„Zdd„Zej                   ej                   ej                   ej                   ej                   fdeeef   deee   ef   deeef   deeef   dedef   dd fd„Zej                   ej                   ej                   ej                   ej                   fdeeef   deee   ef   deeef   deeef   ded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   © ó    úp/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/conversations/v1/configuration/webhook.pyÚMethodr      s   „ ØˆØ‰r   r   c                   ó   — e Zd ZdZdZy)úWebhookInstance.TargetÚwebhookÚflexN)r   r   r   ÚWEBHOOKÚFLEXr   r   r   ÚTargetr      s   „ ØˆØ‰r   r!   ÚversionÚpayloadc                 óf  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        d | _
        y )NÚaccount_sidÚmethodÚfiltersÚpre_webhook_urlÚpost_webhook_urlÚtargetÚurl)ÚsuperÚ__init__Úgetr%   r&   r'   r(   r)   r*   r+   Ú_context)Úselfr"   r#   Ú	__class__s      €r   r-   zWebhookInstance.__init__+   sŒ   ø€ Ü‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ:A¿+¹+ÀhÓ:OˆŒØ,3¯K©K¸	Ó,BˆŒØ.5¯k©kÐ:KÓ.LˆÔØ/6¯{©{Ð;MÓ/NˆÔØ:A¿+¹+ÀhÓ:OˆŒØ")§+¡+¨eÓ"4ˆŒà26ˆ�r   Úreturnc                 óf   — | j                   €t        | j                  «      | _         | 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/   ÚWebhookContextÚ_version©r0   s    r   Ú_proxyzWebhookInstance._proxy8   s-   € ð �=‰=Ð Ü*Ø—‘óˆDŒMð �}‰}Ðr   c                 ó6   — | j                   j                  «       S )ú[
        Fetch the WebhookInstance


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


        :returns: The fetched WebhookInstance
        N)r7   Úfetch_asyncr6   s    r   r=   zWebhookInstance.fetch_asyncO   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.ús   ‚' %¡'r&   r'   r(   r)   r*   r   c                 óB   — | j                   j                  |||||¬«      S )áÑ  
        Update the WebhookInstance

        :param method: The HTTP method to be used when sending a webhook request.
        :param filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated`
        :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 target:

        :returns: The updated WebhookInstance
        ©r&   r'   r(   r)   r*   )r7   Úupdate©r0   r&   r'   r(   r)   r*   s         r   rA   zWebhookInstance.updateX   s/   € ð& �{‰{×!Ñ!ØØØ+Ø-Øð "ó 
ð 	
r   c              ƒ   ó^   K  — | j                   j                  |||||¬«      ƒ d{  –—† S 7 Œ­w)áë  
        Asynchronous coroutine to update the WebhookInstance

        :param method: The HTTP method to be used when sending a webhook request.
        :param filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated`
        :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 target:

        :returns: The updated WebhookInstance
        r@   N)r7   Úupdate_asyncrB   s         r   rE   zWebhookInstance.update_asyncs   s=   è ø€ ð& —[‘[×-Ñ-ØØØ+Ø-Øð .ó 
÷ 
ð 	
ð 
ús   ‚$-¦+§-c                  ó   — y)úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z)<Twilio.Conversations.V1.WebhookInstance>r   r6   s    r   Ú__repr__zWebhookInstance.__repr__Ž   s   € ð ;r   )r2   r4   )r2   r   )r   r   r   Úobjectr   r!   r   r   Ústrr   r-   Úpropertyr7   r:   r=   r	   Úunsetr   r   rA   rE   rH   Ú__classcell__©r1   s   @r   r   r      s•  ø„ ô�ô ô�ô ðð7 ð 7°$°s¸C°x±.õ 7ð òó ðó#ó/ð &,§\¡\Ø,2¯L©LØ.4¯l©lØ/5¯|©|Ø:@¿,¹,ñ
à�c˜6�kÑ"ð
ð �t˜C‘y &Ð(Ñ)ð
ð ˜s F˜{Ñ+ð	
ð
    V Ñ,ð
ð Ð.°Ð6Ñ7ð
ð 
ó
ð: &,§\¡\Ø,2¯L©LØ.4¯l©lØ/5¯|©|Ø:@¿,¹,ñ
à�c˜6�kÑ"ð
ð �t˜C‘y &Ð(Ñ)ð
ð ˜s F˜{Ñ+ð	
ð
    V Ñ,ð
ð Ð.°Ð6Ñ7ð
ð 
ó
ð6;˜#÷ ;r   r   c                   óØ  ‡ — e Zd Zdefˆ fd„Zdefd„Zdefd„Zej                  ej                  ej                  ej                  ej                  fde
eef   de
ee   ef   de
eef   d	e
eef   d
e
def   defd„Zej                  ej                  ej                  ej                  ej                  fde
eef   de
ee   ef   de
eef   d	e
eef   d
e
def   defd„Zdefd„Zˆ xZS )r4   r"   c                 ó2   •— t         ‰| �  |«       d| _        y)zk
        Initialize the WebhookContext

        :param version: Version that contains the resource
        z/Configuration/WebhooksN)r,   r-   Ú_uri©r0   r"   r1   s     €r   r-   zWebhookContext.__init__š   s   ø€ ô 	‰Ñ˜Ô!à-ˆ�	r   r2   c                 ó²   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  |«      S )r9   úapplication/jsonÚAcceptr   ©r&   ÚuriÚheaders)r	   Úofr5   r:   rQ   r   ©r0   rX   r#   s      r   r:   zWebhookContext.fetch¤   sQ   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆäØ�M‰MØó
ð 	
r   c              ƒ   óÎ   K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  |«      S 7 Œ­w)r<   rT   rU   r   rV   N)r	   rY   r5   r=   rQ   r   rZ   s      r   r=   zWebhookContext.fetch_async·   sf   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô Ø�M‰MØó
ð 	
ð	
ús   ‚AA%ÁA#Á	A%r&   r'   r(   r)   r*   r   c                 ó  — t        j                  |t        j                  |d„ «      |||dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )	r?   c                 ó   — | S ©Nr   ©Úes    r   ú<lambda>z'WebhookContext.update.<locals>.<lambda>ã   ó   € ¸A€ r   ©r   ÚFiltersÚPreWebhookUrlÚPostWebhookUrlr!   ú!application/x-www-form-urlencodedúContent-TyperT   rU   r   ©r&   rW   ÚdatarX   )r	   rY   r   Úmapr5   rA   rQ   r   ©	r0   r&   r'   r(   r)   r*   rj   rX   r#   s	            r   rA   zWebhookContext.updateÌ   s�   € ô( �y‰yà Ü$Ÿ=™=¨±+Ó>Ø!0Ø"2Ø ñó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô ˜tŸ}™}¨gÓ6Ð6r   c              ƒ   ó:  K  — t        j                  |t        j                  |d„ «      |||dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d	{  –—† }t        | j                  |«      S 7 Œ­w)
rD   c                 ó   — | S r^   r   r_   s    r   ra   z-WebhookContext.update_async.<locals>.<lambda>  rb   r   rc   rg   rh   rT   rU   r   ri   N)r	   rY   r   rk   r5   rE   rQ   r   rl   s	            r   rE   zWebhookContext.update_asyncõ   s›   è ø€ ô( �y‰yà Ü$Ÿ=™=¨±+Ó>Ø!0Ø"2Ø ñó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô ˜tŸ}™}¨gÓ6Ð6ð	
ús   ‚A<BÁ>BÁ?Bc                  ó   — y)rG   z(<Twilio.Conversations.V1.WebhookContext>r   r6   s    r   rH   zWebhookContext.__repr__  s   € ð :r   )r   r   r   r   r-   r   r:   r=   r	   rL   r   rJ   rI   r   rA   rE   rH   rM   rN   s   @r   r4   r4   ˜   se  ø„ ð. õ .ð
�ó 
ð&
 ?ó 
ð. &,§\¡\Ø,2¯L©LØ.4¯l©lØ/5¯|©|Ø:@¿,¹,ñ'7à�c˜6�kÑ"ð'7ð �t˜C‘y &Ð(Ñ)ð'7ð ˜s F˜{Ñ+ð	'7ð
    V Ñ,ð'7ð Ð.°Ð6Ñ7ð'7ð 
ó'7ðV &,§\¡\Ø,2¯L©LØ.4¯l©lØ/5¯|©|Ø:@¿,¹,ñ'7à�c˜6�kÑ"ð'7ð �t˜C‘y &Ð(Ñ)ð'7ð ˜s F˜{Ñ+ð	'7ð
    V Ñ,ð'7ð Ð.°Ð6Ñ7ð'7ð 
ó'7ðR:˜#÷ :r   r4   c                   óH   ‡ — e Zd Z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"   c                 ó$   •— t         ‰| �  |«       y)zi
        Initialize the WebhookList

        :param version: Version that contains the resource

        N)r,   r-   rR   s     €r   r-   zWebhookList.__init__*  s   ø€ ô 	‰Ñ˜Õ!r   r2   c                 ó,   — t        | j                  «      S ©z.
        Constructs a WebhookContext

        ©r4   r5   r6   s    r   r.   zWebhookList.get3  ó   € ô
 ˜dŸm™mÓ,Ð,r   c                 ó,   — t        | j                  «      S rt   ru   r6   s    r   Ú__call__zWebhookList.__call__:  rv   r   c                  ó   — y)rG   z%<Twilio.Conversations.V1.WebhookList>r   r6   s    r   rH   zWebhookList.__repr__A  s   € ð 7r   )r   r   r   r   r-   r4   r.   rx   rJ   rH   rM   rN   s   @r   rq   rq   (  s3   ø„ ð" õ "ð-�^ó -ð-˜.ó -ð7˜#÷ 7r   rq   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   r4   rq   r   r   r   ú<module>r�      sL   ðñ÷ 4Õ 3ß )Ý 8Ý :Ý 2Ý 'ô~;Ð&ô ~;ôBM:�_ô M:ô`7�,õ 7r   