Ë
    [üàg�ˆ  ã                   óà   — d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
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 dd	lmZ  G d
„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zy)aç  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Chat
    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.
é    )Údatetime)ÚAnyÚDictÚListÚOptionalÚUnionÚIteratorÚAsyncIterator)ÚdeserializeÚ	serializeÚvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   ó   ‡ — e Zd Z G d„ de«      Z G d„ de«      Z	 	 ddedeee	f   deded	e
e   f
ˆ fd
„Zedd„«       Zdefd„Zdefd„Zdd„Zdd„Zej(                  ej(                  ej(                  ej(                  ej(                  ej(                  fdeeef   dedef   deee   ef   deee   ef   deeef   deeef   dd fd„Zej(                  ej(                  ej(                  ej(                  ej(                  ej(                  fdeeef   dedef   deee   ef   deee   ef   d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   © ó    úi/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/chat/v2/service/channel/webhook.pyÚMethodr      s   „ ØˆØ‰r   r   c                   ó   — e Zd ZdZdZdZy)úWebhookInstance.TypeÚwebhookÚtriggerÚstudioN)r   r   r   ÚWEBHOOKÚTRIGGERÚSTUDIOr   r   r   ÚTyper!      s   „ ØˆØˆØ‰r   r(   ÚversionÚpayloadÚservice_sidÚchannel_sidÚsidc                 ó<  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        t        j                  |j                  d«      «      | _        t        j                  |j                  d	«      «      | _        |||xs | j                  d
œ| _        d | _        y )Nr-   Úaccount_sidr+   r,   ÚtypeÚurlÚconfigurationÚdate_createdÚdate_updated©r+   r,   r-   )ÚsuperÚ__init__Úgetr-   r/   r+   r,   r0   r1   r2   r   Úiso8601_datetimer3   r4   Ú	_solutionÚ_context)Úselfr)   r*   r+   r,   r-   Ú	__class__s         €r   r7   zWebhookInstance.__init__0   së   ø€ ô 	‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ*1¯+©+°mÓ*DˆÔØ*1¯+©+°mÓ*DˆÔØ*1¯+©+°mÓ*DˆÔØ#*§;¡;¨vÓ#6ˆŒ	Ø")§+¡+¨eÓ"4ˆŒØ:A¿+¹+ÀoÓ:VˆÔÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð
 'Ø&Ø’?˜$Ÿ(™(ñ
ˆŒð
 37ˆ�r   Úreturnc                 ó¼   — | j                   €Et        | j                  | j                  d   | j                  d   | 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-   r5   )r;   ÚWebhookContextÚ_versionr:   ©r<   s    r   Ú_proxyzWebhookInstance._proxyO   sQ   € ð �=‰=Ð Ü*Ø—‘Ø ŸN™N¨=Ñ9Ø ŸN™N¨=Ñ9Ø—N‘N 5Ñ)ô	ˆDŒMð �}‰}Ðr   c                 ó6   — | j                   j                  «       S )új
        Deletes the WebhookInstance


        :returns: True if delete succeeds, False otherwise
        )rC   ÚdeleterB   s    r   rF   zWebhookInstance.delete`   s   € ð �{‰{×!Ñ!Ó#Ð#r   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)ú†
        Asynchronous coroutine that deletes the WebhookInstance


        :returns: True if delete succeeds, False otherwise
        N)rC   Údelete_asyncrB   s    r   rI   zWebhookInstance.delete_asynci   s!   è ø€ ð —[‘[×-Ñ-Ó/×/Ð/Ð/úó   ‚' %¡'c                 ó6   — | j                   j                  «       S )ú[
        Fetch the WebhookInstance


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


        :returns: The fetched WebhookInstance
        N)rC   Úfetch_asyncrB   s    r   rP   zWebhookInstance.fetch_async{   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.úrJ   Úconfiguration_urlÚconfiguration_methodr   Úconfiguration_filtersÚconfiguration_triggersÚconfiguration_flow_sidÚconfiguration_retry_countc                 óD   — | j                   j                  ||||||¬«      S )á  
        Update the WebhookInstance

        :param configuration_url: The URL of the webhook to call using the `configuration.method`.
        :param configuration_method:
        :param configuration_filters: The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger).
        :param configuration_triggers: A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
        :param configuration_flow_sid: The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`.
        :param configuration_retry_count: The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0.

        :returns: The updated WebhookInstance
        ©rQ   rR   rS   rT   rU   rV   )rC   Úupdate©r<   rQ   rR   rS   rT   rU   rV   s          r   rZ   zWebhookInstance.update„   s2   € ð* �{‰{×!Ñ!Ø/Ø!5Ø"7Ø#9Ø#9Ø&?ð "ó 
ð 	
r   c              ƒ   ó`   K  — | j                   j                  ||||||¬«      ƒ d{  –—† S 7 Œ­w)á(  
        Asynchronous coroutine to update the WebhookInstance

        :param configuration_url: The URL of the webhook to call using the `configuration.method`.
        :param configuration_method:
        :param configuration_filters: The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger).
        :param configuration_triggers: A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
        :param configuration_flow_sid: The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`.
        :param configuration_retry_count: The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0.

        :returns: The updated WebhookInstance
        rY   N)rC   Úupdate_asyncr[   s          r   r^   zWebhookInstance.update_async¢   s@   è ø€ ð* —[‘[×-Ñ-Ø/Ø!5Ø"7Ø#9Ø#9Ø&?ð .ó 
÷ 
ð 	
ð 
ú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.Chat.V2.WebhookInstance {}>©Újoinr:   Úitemsre   ©r<   Úcontexts     r   Ú__repr__zWebhookInstance.__repr__À   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ4×;Ñ;¸GÓDÐDr   ©N)r>   r@   )r>   r   )r   r   r   Úobjectr   r(   r   r   Ústrr   r   r7   ÚpropertyrC   ÚboolrF   rI   rM   rP   r   Úunsetr   r   ÚintrZ   r^   rr   Ú__classcell__©r=   s   @r   r   r      s  ø„ ô�ô ôˆvô ð

ð$ "ñ7àð7ð �c˜3�h‘ð7ð ð	7ð
 ð7ð �c‰]õ7ð> òó ðð $˜ó $ð0 Dó 0ó#ó/ð 17·±ØHNÏÉØ:@¿,¹,Ø;A¿<¹<Ø5;·\±\Ø8>¿¹ñ
à   f Ñ-ð
ð $Ð$<¸fÐ$DÑEð
ð  % T¨#¡Y°Ð%6Ñ7ð	
ð
 !& d¨3¡i°Ð&7Ñ 8ð
ð !& c¨6 kÑ 2ð
ð $)¨¨f¨Ñ#5ð
ð 
ó
ð@ 17·±ØHNÏÉØ:@¿,¹,Ø;A¿<¹<Ø5;·\±\Ø8>¿¹ñ
à   f Ñ-ð
ð $Ð$<¸fÐ$DÑEð
ð  % T¨#¡Y°Ð%6Ñ7ð	
ð
 !& d¨3¡i°Ð&7Ñ 8ð
ð !& c¨6 kÑ 2ð
ð $)¨¨f¨Ñ#5ð
ð 
ó
ð<E˜#÷ Er   r   c                   óP  ‡ — e Zd Zdedededefˆ fd„Zdefd„Zdefd„Zde	fd	„Z
de	fd
„Zej                  ej                  ej                  ej                  ej                  ej                  fdeeef   dedef   deee   ef   de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                  ej                  fdeeef   dedef   deee   ef   de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 )r@   r)   r+   r,   r-   c                 ó|   •— t         ‰| �  |«       |||dœ| _         dj                  di | j                  ¤Ž| _        y)a-  
        Initialize the WebhookContext

        :param version: Version that contains the resource
        :param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel that has the Webhook resource to update.
        :param channel_sid: The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`.
        :param sid: The SID of the Channel Webhook resource to update.
        r5   z=/Services/{service_sid}/Channels/{channel_sid}/Webhooks/{sid}Nr   ©r6   r7   r:   re   Ú_uri)r<   r)   r+   r,   r-   r=   s        €r   r7   zWebhookContext.__init__Ì   sM   ø€ ô 	‰Ñ˜Ô!ð 'Ø&Øñ
ˆŒð SÐK×RÑRñ Ø—.‘.ñð 	�	r   r>   c                 ó|   — t        j                  i «      }| j                  j                  d| j                  |¬«      S )rE   ÚDELETE©ÚmethodÚuriÚheaders)r   ÚofrA   rF   r   ©r<   r…   s     r   rF   zWebhookContext.deleteã   s1   € ô —)‘)˜B“-ˆà�}‰}×#Ñ#¨8¸¿¹ÈGÐ#ÓTÐTr   c              ƒ   ó˜   K  — t        j                  i «      }| j                  j                  d| j                  |¬«      ƒ d{  –—† S 7 Œ­w)rH   r�   r‚   N)r   r†   rA   rI   r   r‡   s     r   rI   zWebhookContext.delete_asyncï   sF   è ø€ ô —)‘)˜B“-ˆà—]‘]×/Ñ/Ø §¡°Gð 0ó 
÷ 
ð 	
ð 
ús   ‚AA
ÁAÁA
c                 ó  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   | j                  d   | j                  d   ¬«      S )	rL   úapplication/jsonÚAcceptr   r‚   r+   r,   r-   r5   )r   r†   rA   rM   r   r   r:   ©r<   r…   r*   s      r   rM   zWebhookContext.fetchý   su   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆäØ�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5Ø—‘˜uÑ%ô
ð 	
r   c              ƒ   ó$  K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   | j                  d   | j                  d   ¬	«      S 7 ŒE­w)
rO   rŠ   r‹   r   r‚   Nr+   r,   r-   r5   )r   r†   rA   rP   r   r   r:   rŒ   s      r   rP   zWebhookContext.fetch_async  sŠ   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5Ø—‘˜uÑ%ô
ð 	
ð	
ús   ‚ABÁBÁ	ABrQ   rR   r   rS   rT   rU   rV   c           	      ó   — t        j                  ||t        j                  |d„ «      t        j                  |d„ «      ||dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬	«      }	t        | j                  |	| j                  d
   | j                  d   | j                  d   ¬«      S )rX   c                 ó   — | S rs   r   ©Úes    r   ú<lambda>z'WebhookContext.update.<locals>.<lambda>F  ó   € °Q€ r   c                 ó   — | S rs   r   r�   s    r   r’   z'WebhookContext.update.<locals>.<lambda>I  ó   € °a€ r   ©úConfiguration.UrlúConfiguration.MethodúConfiguration.FiltersúConfiguration.TriggersúConfiguration.FlowSidúConfiguration.RetryCountú!application/x-www-form-urlencodedúContent-TyperŠ   r‹   r   ©rƒ   r„   Údatar…   r+   r,   r-   r5   )	r   r†   r   ÚmaprA   rZ   r   r   r:   ©
r<   rQ   rR   rS   rT   rU   rV   r    r…   r*   s
             r   rZ   zWebhookContext.update+  sÐ   € ô, �y‰yà%6Ø(<Ü)2¯©Ø)©;ó*ô +4¯-©-Ø*©Kó+ð *@Ø,Eñó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5Ø—‘˜uÑ%ô
ð 	
r   c           	   ƒ   ó¼  K  — t        j                  ||t        j                  |d„ «      t        j                  |d„ «      ||dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬	«      ƒ d
{  –—† }	t        | j                  |	| j                  d   | j                  d   | j                  d   ¬«      S 7 ŒE­w)r]   c                 ó   — | S rs   r   r�   s    r   r’   z-WebhookContext.update_async.<locals>.<lambda>|  r“   r   c                 ó   — | S rs   r   r�   s    r   r’   z-WebhookContext.update_async.<locals>.<lambda>  r•   r   r–   r�   rž   rŠ   r‹   r   rŸ   Nr+   r,   r-   r5   )	r   r†   r   r¡   rA   r^   r   r   r:   r¢   s
             r   r^   zWebhookContext.update_asynca  sÞ   è ø€ ô, �y‰yà%6Ø(<Ü)2¯©Ø)©;ó*ô +4¯-©-Ø*©Kó+ð *@Ø,Eñó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5Ø—‘˜uÑ%ô
ð 	
ð	
ús   ‚BCÂCÂACc                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )r`   ra   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wrc   rd   rf   s      r   rj   z*WebhookContext.__repr__.<locals>.<genexpr>�  rk   rl   z"<Twilio.Chat.V2.WebhookContext {}>rm   rp   s     r   rr   zWebhookContext.__repr__—  s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ3×:Ñ:¸7ÓCÐCr   )r   r   r   r   ru   r7   rw   rF   rI   r   rM   rP   r   rx   r   rt   r   ry   rZ   r^   rr   rz   r{   s   @r   r@   r@   Ê   sÕ  ø„ ð
 ð 
°cð 
Èð 
ÐRUõ 
ð.
U˜ó 
Uð
 Dó 
ð
�ó 
ð,
 ?ó 
ð4 17·±ØHNÏÉØ:@¿,¹,Ø;A¿<¹<Ø5;·\±\Ø8>¿¹ñ4
à   f Ñ-ð4
ð $Ð$<¸fÐ$DÑEð4
ð  % T¨#¡Y°Ð%6Ñ7ð	4
ð
 !& d¨3¡i°Ð&7Ñ 8ð4
ð !& c¨6 kÑ 2ð4
ð $)¨¨f¨Ñ#5ð4
ð 
ó4
ðp 17·±ØHNÏÉØ:@¿,¹,Ø;A¿<¹<Ø5;·\±\Ø8>¿¹ñ4
à   f Ñ-ð4
ð $Ð$<¸fÐ$DÑEð4
ð  % T¨#¡Y°Ð%6Ñ7ð	4
ð
 !& d¨3¡i°Ð&7Ñ 8ð4
ð !& c¨6 kÑ 2ð4
ð $)¨¨f¨Ñ#5ð4
ð 
ó4
ðlD˜#÷ Dr   r@   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚWebhookPager*   r>   c                 óh   — t        | j                  || j                  d   | j                  d   ¬«      S )zm
        Build an instance of WebhookInstance

        :param payload: Payload response from the API
        r+   r,   ©r+   r,   )r   rA   r:   )r<   r*   s     r   Úget_instancezWebhookPage.get_instance£  s3   € ô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5ô	
ð 	
r   c                  ó   — y)r`   z<Twilio.Chat.V2.WebhookPage>r   rB   s    r   rr   zWebhookPage.__repr__°  ó   € ð .r   N)	r   r   r   r   ru   r   r   r¬   rr   r   r   r   r©   r©   ¡  s)   „ ð
 D¨¨c¨¡Nð 
°ó 
ð.˜#ô .r   r©   c                   ó  ‡ — e Zd Zdededefˆ fd„Zej                  ej                  ej                  ej                  ej                  ej                  fdddeee	f   ded	e	f   d
ee
e   e	f   de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                  ej                  fdddeee	f   ded	e	f   d
ee
e   e	f   dee
e   e	f   deee	f   deee	f   defd„Z	 	 d"dee   dee   dee   fd„Z	 	 d"dee   dee   dee   fd„Z	 	 d"dee   dee   de
e   fd„Z	 	 d"dee   dee   de
e   fd„Zej                  ej                  ej                  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                  fdeee	f   deee	f   deee	f   defd„Zdedefd„Zdede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 )#ÚWebhookListr)   r+   r,   c                 óz   •— t         ‰| �  |«       ||dœ| _         dj                  di | j                  ¤Ž| _        y)aÕ  
        Initialize the WebhookList

        :param version: Version that contains the resource
        :param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to read the resources from.
        :param channel_sid: The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`.

        r«   z7/Services/{service_sid}/Channels/{channel_sid}/WebhooksNr   r~   )r<   r)   r+   r,   r=   s       €r   r7   zWebhookList.__init__»  sG   ø€ ô 	‰Ñ˜Ô!ð 'Ø&ñ
ˆŒð UÐM×TÑTñ 
Ø�n‰nñ
ˆ�	r   r0   r!   rQ   rR   r   rS   rT   rU   rV   r>   c           
      óŠ  — t        j                  |||t        j                  |d„ «      t        j                  |d„ «      ||dœ«      }t        j                  ddi«      }	d|	d<   d|	d<   | j                  j                  d| j                  ||	¬	«      }
t        | j                  |
| j                  d
   | j                  d   ¬«      S )a$  
        Create the WebhookInstance

        :param type:
        :param configuration_url: The URL of the webhook to call using the `configuration.method`.
        :param configuration_method:
        :param configuration_filters: The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger).
        :param configuration_triggers: A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
        :param configuration_flow_sid: The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`.
        :param configuration_retry_count: The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0.

        :returns: The created WebhookInstance
        c                 ó   — | S rs   r   r�   s    r   r’   z$WebhookList.create.<locals>.<lambda>í  r“   r   c                 ó   — | S rs   r   r�   s    r   r’   z$WebhookList.create.<locals>.<lambda>ð  r•   r   ©r(   r—   r˜   r™   rš   r›   rœ   rž   r�   rŠ   r‹   r   rŸ   r+   r,   r«   )	r   r†   r   r¡   rA   Úcreater   r   r:   ©r<   r0   rQ   rR   rS   rT   rU   rV   r    r…   r*   s              r   r¶   zWebhookList.createÏ  sÎ   € ô0 �y‰yàØ%6Ø(<Ü)2¯©Ø)©;ó*ô +4¯-©-Ø*©Kó+ð *@Ø,Eñó
ˆô —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5ô	
ð 	
r   c           
   ƒ   ó¦  K  — t        j                  |||t        j                  |d„ «      t        j                  |d„ «      ||dœ«      }t        j                  ddi«      }	d|	d<   d|	d<   | j                  j                  d| j                  ||	¬	«      ƒ d
{  –—† }
t        | j                  |
| j                  d   | j                  d   ¬«      S 7 Œ7­w)a3  
        Asynchronously create the WebhookInstance

        :param type:
        :param configuration_url: The URL of the webhook to call using the `configuration.method`.
        :param configuration_method:
        :param configuration_filters: The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger).
        :param configuration_triggers: A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
        :param configuration_flow_sid: The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`.
        :param configuration_retry_count: The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0.

        :returns: The created WebhookInstance
        c                 ó   — | S rs   r   r�   s    r   r’   z*WebhookList.create_async.<locals>.<lambda>%  r“   r   c                 ó   — | S rs   r   r�   s    r   r’   z*WebhookList.create_async.<locals>.<lambda>(  r•   r   rµ   rž   r�   rŠ   r‹   r   rŸ   Nr+   r,   r«   )	r   r†   r   r¡   rA   Úcreate_asyncr   r   r:   r·   s              r   r»   zWebhookList.create_async  sÜ   è ø€ ô0 �y‰yàØ%6Ø(<Ü)2¯©Ø)©;ó*ô +4¯-©-Ø*©Kó+ð *@Ø,Eñó
ˆô —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5ô	
ð 	
ð	
ús   ‚BCÂCÂ8CÚlimitÚ	page_sizec                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )a]  
        Streams WebhookInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r½   ©r½   r¼   )rA   Úread_limitsÚpageÚstream©r<   r¼   r½   ÚlimitsrÁ   s        r   rÂ   zWebhookList.stream?  sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)al  
        Asynchronously streams WebhookInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r½   r¿   Nr¼   )rA   rÀ   Ú
page_asyncÚstream_asyncrÃ   s        r   rÇ   zWebhookList.stream_asyncX  sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )aú  
        Lists WebhookInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        ©r¼   r½   )ÚlistrÂ   )r<   r¼   r½   s      r   rÊ   zWebhookList.listq  s(   € ô& Ø�K‰KØØ#ð ó ó
ð 	
r   c              ƒ   óz   K  — | j                  ||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)a	  
        Asynchronously lists WebhookInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        rÉ   N)rÇ   )r<   r¼   r½   Úrecords       r   Ú
list_asynczWebhookList.list_async‹  sT   è ø€ ð* '+×&7Ñ&7ØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚;™.š; 6¢2¦0
§2ª6®;°2²6³;Ú
page_tokenÚpage_numberc                 ó   — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  «      S )as  
        Retrieve a single page of WebhookInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of WebhookInstance
        ©Ú	PageTokenr   ÚPageSizerž   r�   rŠ   r‹   r   ©rƒ   r„   Úparamsr…   )r   r†   rA   rÁ   r   r©   r:   ©r<   rÎ   rÏ   r½   r    r…   Úresponses          r   rÁ   zWebhookList.page¦  s   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜4Ÿ=™=¨(°D·N±NÓCÐCr   c              ƒ   ó  K  — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  «      S 7 Œ%­w)	a‚  
        Asynchronously retrieve a single page of WebhookInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of WebhookInstance
        rÑ   rž   r�   rŠ   r‹   r   rÔ   N)r   r†   rA   rÆ   r   r©   r:   rÖ   s          r   rÆ   zWebhookList.page_asyncÇ  s�   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜4Ÿ=™=¨(°D·N±NÓCÐCð
ús   ‚A"BÁ$B
Á%&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zó
        Retrieve a specific page of WebhookInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of WebhookInstance
        r   )rA   ÚdomainÚtwilioÚrequestr©   r:   ©r<   rÙ   r×   s      r   Úget_pagezWebhookList.get_pageè  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜4Ÿ=™=¨(°D·N±NÓCÐCr   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)a  
        Asynchronously retrieve a specific page of WebhookInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of WebhookInstance
        r   N)rA   rÛ   rÜ   Úrequest_asyncr©   r:   rÞ   s      r   Úget_page_asynczWebhookList.get_page_asyncô  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜4Ÿ=™=¨(°D·N±NÓCÐCð Vús   ‚4A¶A·&Ar-   c                 óh   — t        | j                  | j                  d   | j                  d   |¬«      S ©zu
        Constructs a WebhookContext

        :param sid: The SID of the Channel Webhook resource to update.
        r+   r,   r5   ©r@   rA   r:   ©r<   r-   s     r   r8   zWebhookList.get   ó3   € ô Ø�M‰MØŸ™ }Ñ5ØŸ™ }Ñ5Øô	
ð 	
r   c                 óh   — t        | j                  | j                  d   | j                  d   |¬«      S rä   rå   ræ   s     r   Ú__call__zWebhookList.__call__  rç   r   c                  ó   — y)r`   z<Twilio.Chat.V2.WebhookList>r   rB   s    r   rr   zWebhookList.__repr__  r®   r   )NN) r   r   r   r   ru   r7   r   rx   r   rt   r   ry   r   r¶   r»   r   r	   rÂ   r
   rÇ   rÊ   rÍ   r©   rÁ   rÆ   rß   râ   r@   r8   ré   rr   rz   r{   s   @r   r°   r°   ¹  s¡  ø„ ð
 ð 
°cð 
Èõ 
ð. 17·±ØHNÏÉØ:@¿,¹,Ø;A¿<¹<Ø5;·\±\Ø8>¿¹ñ6
à$ð6
ð !  f Ñ-ð6
ð $Ð$<¸fÐ$DÑEð	6
ð
  % T¨#¡Y°Ð%6Ñ7ð6
ð !& d¨3¡i°Ð&7Ñ 8ð6
ð !& c¨6 kÑ 2ð6
ð $)¨¨f¨Ñ#5ð6
ð 
ó6
ðv 17·±ØHNÏÉØ:@¿,¹,Ø;A¿<¹<Ø5;·\±\Ø8>¿¹ñ6
à$ð6
ð !  f Ñ-ð6
ð $Ð$<¸fÐ$DÑEð	6
ð
  % T¨#¡Y°Ð%6Ñ7ð6
ð !& d¨3¡i°Ð&7Ñ 8ð6
ð !& c¨6 kÑ 2ð6
ð $)¨¨f¨Ñ#5ð6
ð 
ó6
ðt  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
�/Ñ	"ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
�Ñ	'ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ˆoÑ	ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ˆoÑ	ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	Dà˜#˜v˜+Ñ&ðDð ˜3 ˜;Ñ'ðDð ˜˜f˜Ñ%ð	Dð
 
óDðF *0¯©Ø*0¯,©,Ø(.¯©ñ	Dà˜#˜v˜+Ñ&ðDð ˜3 ˜;Ñ'ðDð ˜˜f˜Ñ%ð	Dð
 
óDðB
D 3ð 
D¨;ó 
Dð
D¨sð 
D°{ó 
Dð
�sð 
˜~ó 
ð
˜Cð 
 Nó 
ð.˜#÷ .r   r°   N)Ú__doc__r   Útypingr   r   r   r   r   r	   r
   Útwilio.baser   r   r   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r@   r©   r°   r   r   r   ú<module>ró      sj   ðñõ ß L× LÑ Lß 6Ñ 6Ý 8Ý :Ý 2Ý 'Ý !ônEÐ&ô nEôbTD�_ô TDôn.�$ô .ô0g.�,õ g.r   