Ë
    [üàgH  ã                   óÜ   — 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 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 - Api
    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Úvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec            
       ó¢   ‡ — e Zd Z G d„ de«      Z	 	 ddedeeef   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defd„Zˆ xZS )ÚTranscriptionInstancec                   ó   — e Zd ZdZdZdZy)úTranscriptionInstance.Statuszin-progressÚ	completedÚfailedN)Ú__name__Ú
__module__Ú__qualname__ÚIN_PROGRESSÚ	COMPLETEDÚFAILED© ó    úi/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/transcription.pyÚStatusr      s   „ Ø#ˆØˆ	Ø‰r   r!   ÚversionÚpayloadÚaccount_sidÚsidc                 ó  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _        t        j                  |j                  d«      «      | _        |j                  d«      | _	        t        j                  |j                  d«      «      | _        |j                  d«      | _        |j                  d«      | _        |j                  d	«      | _        |j                  d
«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        ||xs | j                  dœ| _        d | _        y )Nr$   Úapi_versionÚdate_createdÚdate_updatedÚdurationÚpriceÚ
price_unitÚrecording_sidr%   ÚstatusÚtranscription_textÚtypeÚuri©r$   r%   )ÚsuperÚ__init__Úgetr$   r'   r   Úrfc2822_datetimer(   r)   r*   Údecimalr+   r,   r-   r%   r.   r/   r0   r1   Ú	_solutionÚ_context)Úselfr"   r#   r$   r%   Ú	__class__s        €r    r4   zTranscriptionInstance.__init__0   s6  ø€ ô 	‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ*1¯+©+°mÓ*DˆÔÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð (/§{¡{°:Ó'>ˆŒÜ&1×&9Ñ&9¸'¿+¹+ÀgÓ:NÓ&OˆŒ
Ø)0¯©°\Ó)BˆŒØ,3¯K©K¸Ó,HˆÔØ")§+¡+¨eÓ"4ˆŒØ@GÇÁÈHÓ@UˆŒØ18·±Ð=QÓ1RˆÔØ#*§;¡;¨vÓ#6ˆŒ	Ø")§+¡+¨eÓ"4ˆŒð 'Ø’?˜$Ÿ(™(ñ
ˆŒð 9=ˆ�r   Úreturnc                 ó    — | j                   €7t        | j                  | 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: TranscriptionContext for this TranscriptionInstance
        r$   r%   r2   )r9   ÚTranscriptionContextÚ_versionr8   ©r:   s    r    Ú_proxyzTranscriptionInstance._proxyQ   sE   € ð �=‰=Ð Ü0Ø—‘Ø ŸN™N¨=Ñ9Ø—N‘N 5Ñ)ôˆDŒMð
 �}‰}Ðr   c                 ó6   — | j                   j                  «       S )úp
        Deletes the TranscriptionInstance


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


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


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


        :returns: The fetched TranscriptionInstance
        N)rA   Úfetch_asyncr@   s    r    rN   z!TranscriptionInstance.fetch_async|   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.úrH   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>z1TranscriptionInstance.__repr__.<locals>.<genexpr>‹   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z+<Twilio.Api.V2010.TranscriptionInstance {}>©Újoinr8   ÚitemsrU   ©r:   Úcontexts     r    Ú__repr__zTranscriptionInstance.__repr__…   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ<×CÑCÀGÓLÐLr   )N)r<   r>   )r<   r   )r   r   r   Úobjectr!   r   r   Ústrr   r   r4   ÚpropertyrA   ÚboolrD   rG   rK   rN   rb   Ú__classcell__©r;   s   @r    r   r      s•   ø„ ô�ô ð
ð* "ñ=àð=ð �c˜3�h‘ð=ð ð	=ð
 �c‰]õ=ðB òó ðð$˜ó $ð0 Dó 0ó#ó/ðM˜#÷ Mr   r   c                   óh   ‡ — e Zd Z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defd
„Zˆ xZS )r>   r"   r$   r%   c                 óz   •— t         ‰| �  |«       ||dœ| _         dj                  di | j                  ¤Ž| _        y)ar  
        Initialize the TranscriptionContext

        :param version: Version that contains the resource
        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch.
        :param sid: The Twilio-provided string that uniquely identifies the Transcription resource to fetch.
        r2   z1/Accounts/{account_sid}/Transcriptions/{sid}.jsonNr   ©r3   r4   r8   rU   Ú_uri)r:   r"   r$   r%   r;   s       €r    r4   zTranscriptionContext.__init__‘   sG   ø€ ô 	‰Ñ˜Ô!ð 'Øñ
ˆŒð OÐG×NÑNñ 
Ø�n‰nñ
ˆ�	r   r<   c                 ó|   — t        j                  i «      }| j                  j                  d| j                  |¬«      S )rC   ÚDELETE©Úmethodr1   Úheaders)r   Úofr?   rD   rl   ©r:   rq   s     r    rD   zTranscriptionContext.delete¤   s1   € ô —)‘)˜B“-ˆà�}‰}×#Ñ#¨8¸¿¹ÈGÐ#ÓTÐTr   c              ƒ   ó˜   K  — t        j                  i «      }| j                  j                  d| j                  |¬«      ƒ d{  –—† S 7 Œ­w)rF   rn   ro   N)r   rr   r?   rG   rl   rs   s     r    rG   z!TranscriptionContext.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   ¬«      S )rJ   úapplication/jsonÚAcceptÚGETro   r$   r%   r2   )r   rr   r?   rK   rl   r   r8   ©r:   rq   r#   s      r    rK   zTranscriptionContext.fetch¾   si   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆä$Ø�M‰MØØŸ™ }Ñ5Ø—‘˜uÑ%ô	
ð 	
r   c              ƒ   ó  K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   | j                  d   ¬«      S 7 Œ7­w)	rM   rv   rw   rx   ro   Nr$   r%   r2   )r   rr   r?   rN   rl   r   r8   ry   s      r    rN   z TranscriptionContext.fetch_asyncÓ   s~   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô %Ø�M‰MØØŸ™ }Ñ5Ø—‘˜uÑ%ô	
ð 	
ð	
ús   ‚ABÁB Á	8Bc                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rP   rQ   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wrS   rT   rV   s      r    rZ   z0TranscriptionContext.__repr__.<locals>.<genexpr>ð   r[   r\   z*<Twilio.Api.V2010.TranscriptionContext {}>r]   r`   s     r    rb   zTranscriptionContext.__repr__ê   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ;×BÑBÀ7ÓKÐKr   )r   r   r   r   rd   r4   rf   rD   rG   r   rK   rN   rb   rg   rh   s   @r    r>   r>   �   s_   ø„ ð
 ð 
°cð 
Àõ 
ð&
U˜ó 
Uð
 Dó 
ð
Ð,ó 
ð*
Ð#8ó 
ð.L˜#÷ Lr   r>   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚTranscriptionPager#   r<   c                 óL   — t        | j                  || j                  d   ¬«      S )zs
        Build an instance of TranscriptionInstance

        :param payload: Payload response from the API
        r$   )r$   )r   r?   r8   )r:   r#   s     r    Úget_instancezTranscriptionPage.get_instanceö   s%   € ô %Ø�M‰M˜7°·±¸}Ñ0Mô
ð 	
r   c                  ó   — y)rP   z$<Twilio.Api.V2010.TranscriptionPage>r   r@   s    r    rb   zTranscriptionPage.__repr__   ó   € ð 6r   N)	r   r   r   r   rd   r   r   r€   rb   r   r   r    r~   r~   ô   s*   „ ð
 D¨¨c¨¡Nð 
Ð7Ló 
ð6˜#ô 6r   r~   c            	       ó  ‡ — e Zd Zdedefˆ 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 )ÚTranscriptionListr"   r$   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)a  
        Initialize the TranscriptionList

        :param version: Version that contains the resource
        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read.

        r$   z+/Accounts/{account_sid}/Transcriptions.jsonNr   rk   )r:   r"   r$   r;   s      €r    r4   zTranscriptionList.__init__  sF   ø€ ô 	‰Ñ˜Ô!ð ˜;ð
ˆŒð IÐA×HÑHñ 
Ø�n‰nñ
ˆ�	r   ÚlimitÚ	page_sizer<   c                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )ac  
        Streams TranscriptionInstance 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†   )r?   Úread_limitsÚpageÚstream©r:   r†   r‡   Úlimitsr‹   s        r    rŒ   zTranscriptionList.stream  sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)ar  
        Asynchronously streams TranscriptionInstance 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†   )r?   rŠ   Ú
page_asyncÚstream_asyncr�   s        r    r‘   zTranscriptionList.stream_async6  sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )a   
        Lists TranscriptionInstance 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TranscriptionList.listO  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 TranscriptionInstance 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TranscriptionList.list_asynci  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 )a  
        Retrieve a single page of TranscriptionInstance 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 TranscriptionInstance
        ©Ú	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedrv   rw   rx   ©rp   r1   Úparamsrq   )r   rr   r?   r‹   rl   r~   r8   ©r:   r˜   r™   r‡   Údatarq   Úresponses          r    r‹   zTranscriptionList.page„  s   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ! §¡°¸$¿.¹.ÓIÐIr   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 TranscriptionInstance 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 TranscriptionInstance
        r›   rž   rŸ   rv   rw   rx   r    N)r   rr   r?   r�   rl   r~   r8   r¢   s          r    r�   zTranscriptionList.page_async¥  s�   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ! §¡°¸$¿.¹.ÓIÐIð
ús   ‚A"BÁ$B
Á%&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zÿ
        Retrieve a specific page of TranscriptionInstance records from the API.
        Request is executed immediately

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

        :returns: Page of TranscriptionInstance
        rx   )r?   ÚdomainÚtwilioÚrequestr~   r8   ©r:   r¦   r¤   s      r    Úget_pagezTranscriptionList.get_pageÆ  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ  §¡°¸$¿.¹.ÓIÐIr   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)a  
        Asynchronously retrieve a specific page of TranscriptionInstance records from the API.
        Request is executed immediately

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

        :returns: Page of TranscriptionInstance
        rx   N)r?   r¨   r©   Úrequest_asyncr~   r8   r«   s      r    Úget_page_asyncz TranscriptionList.get_page_asyncÒ  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ  §¡°¸$¿.¹.ÓIÐIð Vús   ‚4A¶A·&Ar%   c                 óL   — t        | j                  | j                  d   |¬«      S ©z¡
        Constructs a TranscriptionContext

        :param sid: The Twilio-provided string that uniquely identifies the Transcription resource to fetch.
        r$   r2   ©r>   r?   r8   ©r:   r%   s     r    r5   zTranscriptionList.getÞ  ó%   € ô $Ø�M‰M t§~¡~°mÑ'DÈ#ô
ð 	
r   c                 óL   — t        | j                  | j                  d   |¬«      S r±   r²   r³   s     r    Ú__call__zTranscriptionList.__call__è  r´   r   c                  ó   — y)rP   z$<Twilio.Api.V2010.TranscriptionList>r   r@   s    r    rb   zTranscriptionList.__repr__ò  r‚   r   )NN)r   r   r   r   rd   r4   r   Úintr	   r   rŒ   r
   r‘   r   r”   r—   r   Úunsetr   rc   r~   r‹   r�   r¬   r¯   r>   r5   r¶   rb   rg   rh   s   @r    r„   r„   	  s  ø„ ð
 ð 
°cõ 
ð(  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
Ð'Ñ	(ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
Ð,Ñ	-ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð#Ñ	$ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð#Ñ	$ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	Jà˜#˜v˜+Ñ&ðJð ˜3 ˜;Ñ'ðJð ˜˜f˜Ñ%ð	Jð
 
óJðF *0¯©Ø*0¯,©,Ø(.¯©ñ	Jà˜#˜v˜+Ñ&ðJð ˜3 ˜;Ñ'ðJð ˜˜f˜Ñ%ð	Jð
 
óJðB
J 3ð 
JÐ+<ó 
Jð
J¨sð 
JÐ7Hó 
Jð
�sð 
Ð3ó 
ð
˜Cð 
Ð$8ó 
ð6˜#÷ 6r   r„   N)Ú__doc__r   Útypingr   r   r   r   r   r	   r
   Útwilio.baser   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Â      sg   ðñõ ß L× LÑ Lß +Ý 8Ý :Ý 2Ý 'Ý !ôsMÐ,ô sMôlbL˜?ô bLôJ6˜ô 6ô*o6˜õ o6r   