Ë
    [üàg”6  ã                   óª   — d Z ddlmZmZmZ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 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 - Insights
    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ÚIteratorÚAsyncIterator)Úvalues)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   óp   ‡ — e Zd Z G d„ de«      Z G d„ de«      Z	 dedeee	f   defˆ fd„Z
d	efd
„Zˆ xZS )ÚEventInstancec                   ó    — e Zd ZdZdZdZdZdZy)úEventInstance.LevelÚUNKNOWNÚDEBUGÚINFOÚWARNINGÚERRORN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   © ó    ú`/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/insights/v1/call/event.pyÚLevelr      s   „ ØˆØˆØˆØˆØ‰r   r   c                   ó    — e Zd ZdZdZdZdZdZy)úEventInstance.TwilioEdgeÚunknown_edgeÚcarrier_edgeÚsip_edgeÚsdk_edgeÚclient_edgeN)r   r   r   ÚUNKNOWN_EDGEÚCARRIER_EDGEÚSIP_EDGEÚSDK_EDGEÚCLIENT_EDGEr   r   r   Ú
TwilioEdger    !   s   „ Ø%ˆØ%ˆØˆØˆØ#‰r   r+   ÚversionÚpayloadÚcall_sidc                 ó  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        |j                  d«      | _
        |j                  d	«      | _        |j                  d
«      | _        |j                  d«      | _        d|i| _        y )NÚ	timestampr.   Úaccount_sidÚedgeÚgroupÚlevelÚnamer"   r#   r$   r%   )ÚsuperÚ__init__Úgetr0   r.   r1   r2   r3   r4   r5   r"   r#   r$   r%   Ú	_solution)Úselfr,   r-   r.   Ú	__class__s       €r   r7   zEventInstance.__init__6   sÓ   ø€ Ü‰Ñ˜Ô!à(/¯©°KÓ(@ˆŒØ'.§{¡{°:Ó'>ˆŒØ*1¯+©+°mÓ*DˆÔØ:A¿+¹+ÀfÓ:MˆŒ	Ø$+§K¡K°Ó$8ˆŒ
Ø6=·k±kÀ'Ó6JˆŒ
Ø#*§;¡;¨vÓ#6ˆŒ	Ø9@¿¹À^Ó9TˆÔØ5<·[±[ÀÓ5LˆŒØ5<·[±[ÀÓ5LˆŒØ8?¿¹ÀMÓ8RˆÔð ˜ð
ˆ�r   Úreturnc                 ó„   — 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)EventInstance.__repr__.<locals>.<genexpr>O   s   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùs   ‚!z%<Twilio.Insights.V1.EventInstance {}>)Újoinr9   ÚitemsrA   )r:   Úcontexts     r   Ú__repr__zEventInstance.__repr__I   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ6×=Ñ=¸gÓFÐFr   )r   r   r   Úobjectr   r+   r   r   Ústrr   r7   rI   Ú__classcell__©r;   s   @r   r   r      sP   ø„ ô�ô ô$�Vô $ðð
 ð 
°$°s¸C°x±.ð 
ÈCõ 
ð&G˜#÷ Gr   r   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)Ú	EventPager-   r<   c                 óL   — t        | j                  || j                  d   ¬«      S )zk
        Build an instance of EventInstance

        :param payload: Payload response from the API
        r.   )r.   )r   Ú_versionr9   )r:   r-   s     r   Úget_instancezEventPage.get_instanceU   s%   € ô Ø�M‰M˜7¨T¯^©^¸JÑ-Gô
ð 	
r   c                  ó   — y)r>   z<Twilio.Insights.V1.EventPage>r   ©r:   s    r   rI   zEventPage.__repr___   ó   € ð 0r   N)	r   r   r   r   rK   r   r   rR   rI   r   r   r   rO   rO   S   s)   „ ð
 D¨¨c¨¡Nð 
°}ó 
ð0˜#ô 0r   rO   c                   óÐ  ‡ — e Zd Zdedefˆ fd„Zej                  ddfdede	f   de
e   de
e   d	ee   fd
„Zej                  ddfdede	f   de
e   de
e   d	ee   fd„Zej                  ddfdede	f   de
e   de
e   d	ee   fd„Zej                  ddfdede	f   de
e   de
e   d	ee   fd„Zej                  ej                  ej                  ej                  fded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                  fdede	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fd„Zˆ xZS )Ú	EventListr,   r.   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)z§
        Initialize the EventList

        :param version: Version that contains the resource
        :param call_sid: The unique SID identifier of the Call.

        r.   z/Voice/{call_sid}/EventsNr   )r6   r7   r9   rA   Ú_uri)r:   r,   r.   r;   s      €r   r7   zEventList.__init__j   s@   ø€ ô 	‰Ñ˜Ô!ð ˜ð
ˆŒð 6Ð.×5Ñ5ÑG¸¿¹ÑGˆ�	r   Nr2   r    ÚlimitÚ	page_sizer<   c                 ó¤   — | j                   j                  ||«      }| j                  ||d   ¬«      }| j                   j                  ||d   «      S )aý  
        Streams EventInstance 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 &quot;EventInstance.TwilioEdge&quot; edge: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
        :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[   ©r2   r[   rZ   )rQ   Úread_limitsÚpageÚstream©r:   r2   rZ   r[   Úlimitsr_   s         r   r`   zEventList.streamz   sL   € ð, —‘×*Ñ*¨5°)Ó<ˆØ�y‰y˜d¨f°[Ñ.AˆyÓBˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r   c              ƒ   óÀ   K  — | j                   j                  ||«      }| j                  ||d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)a  
        Asynchronously streams EventInstance 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 &quot;EventInstance.TwilioEdge&quot; edge: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
        :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]   NrZ   )rQ   r^   Ú
page_asyncÚstream_asyncra   s         r   re   zEventList.stream_async•   sY   è ø€ ð, —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨$¸&ÀÑ:M�_ÓN×Nˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Oús   ‚6A¸A¹$Ac                 ó<   — t        | j                  |||¬«      «      S )aš  
        Lists EventInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param &quot;EventInstance.TwilioEdge&quot; edge: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
        :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
        ©r2   rZ   r[   )Úlistr`   )r:   r2   rZ   r[   s       r   rh   zEventList.list°   s+   € ô* Ø�K‰KØØØ#ð ó ó
ð 	
r   c              ƒ   ó|   K  — | j                  |||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)a©  
        Asynchronously lists EventInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param &quot;EventInstance.TwilioEdge&quot; edge: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
        :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
        rg   N)re   )r:   r2   rZ   r[   Úrecords        r   Ú
list_asynczEventList.list_asyncÍ   sW   è ø€ ð. '+×&7Ñ&7ØØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚<š/›<¡7£3§1
¨3«7¯<±3³7´<Ú
page_tokenÚpage_numberc                 ó  — t        j                  ||||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  «      S )aì  
        Retrieve a single page of EventInstance records from the API.
        Request is executed immediately

        :param edge: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
        :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 EventInstance
        ©ÚEdgeÚ	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheaders)r
   ÚofrQ   r_   rY   rO   r9   ©r:   r2   rl   rm   r[   Údatar|   Úresponses           r   r_   zEventList.pageë   s‚   € ô$ �y‰yàØ'Ø#Ø%ñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜Ÿ™¨°$·.±.ÓAÐAr   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 EventInstance records from the API.
        Request is executed immediately

        :param edge: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
        :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 EventInstance
        ro   rs   rt   ru   rv   rw   rx   N)r
   r}   rQ   rd   rY   rO   r9   r~   s           r   rd   zEventList.page_async  s�   è ø€ ô$ �y‰yàØ'Ø#Ø%ñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜Ÿ™¨°$·.±.ÓAÐAð
ús   ‚A#BÁ%BÁ&&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zï
        Retrieve a specific page of EventInstance records from the API.
        Request is executed immediately

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

        :returns: Page of EventInstance
        rw   )rQ   ÚdomainÚtwilioÚrequestrO   r9   ©r:   r‚   r€   s      r   Úget_pagezEventList.get_page3  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜Ÿ™¨°$·.±.ÓAÐAr   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)zþ
        Asynchronously retrieve a specific page of EventInstance records from the API.
        Request is executed immediately

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

        :returns: Page of EventInstance
        rw   N)rQ   r„   r…   Úrequest_asyncrO   r9   r‡   s      r   Úget_page_asynczEventList.get_page_async?  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜Ÿ™¨°$·.±.ÓAÐAð Vús   ‚4A¶A·&Ac                  ó   — y)r>   z<Twilio.Insights.V1.EventList>r   rT   s    r   rI   zEventList.__repr__K  rU   r   )r   r   r   r   rK   r7   r
   Úunsetr   rJ   r   Úintr   r   r`   r	   re   r   rh   rk   rO   r_   rd   rˆ   r‹   rI   rL   rM   s   @r   rW   rW   h   s¥  ø„ ðH ð H°3õ Hð$ ;A¿,¹,Ø#Ø#'ñ	;àÐ.°Ð6Ñ7ð;ð ˜‰}ð;ð ˜C‘=ð	;ð
 
�-Ñ	 ó;ð: ;A¿,¹,Ø#Ø#'ñ	AàÐ.°Ð6Ñ7ðAð ˜‰}ðAð ˜C‘=ð	Að
 
�}Ñ	%óAð: ;A¿,¹,Ø#Ø#'ñ	
àÐ.°Ð6Ñ7ð
ð ˜‰}ð
ð ˜C‘=ð	
ð
 
ˆmÑ	ó
ð> ;A¿,¹,Ø#Ø#'ñ	
àÐ.°Ð6Ñ7ð
ð ˜‰}ð
ð ˜C‘=ð	
ð
 
ˆmÑ	ó
ð@ ;A¿,¹,Ø)/¯©Ø*0¯,©,Ø(.¯©ñ"BàÐ.°Ð6Ñ7ð"Bð ˜#˜v˜+Ñ&ð"Bð ˜3 ˜;Ñ'ð	"Bð
 ˜˜f˜Ñ%ð"Bð 
ó"BðL ;A¿,¹,Ø)/¯©Ø*0¯,©,Ø(.¯©ñ"BàÐ.°Ð6Ñ7ð"Bð ˜#˜v˜+Ñ&ð"Bð ˜3 ˜;Ñ'ð	"Bð
 ˜˜f˜Ñ%ð"Bð 
ó"BðH
B 3ð 
B¨9ó 
Bð
B¨sð 
B°yó 
Bð0˜#÷ 0r   rW   N)Ú__doc__Útypingr   r   r   r   r   r   r	   Útwilio.baser
   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   rO   rW   r   r   r   ú<module>r–      sO   ðñ÷ M× LÑ LÝ å :Ý 2Ý 'Ý !ô8GÐ$ô 8Gôv0�ô 0ô*i0�õ i0r   