Ë
    [üàg E  ã                   ó²   — d Z ddlmZ ddl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  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ÚOptionalÚUnion)ÚdeserializeÚ	serializeÚvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersionc                   óÊ   ‡ — e Zd Z G d„ de«      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d„Z	 	 	 	 dd„Zde	fd„Zˆ xZS )ÚTranscriptionInstancec                   ó   — e Zd ZdZdZy)úTranscriptionInstance.Statuszin-progressÚstoppedN)Ú__name__Ú
__module__Ú__qualname__ÚIN_PROGRESSÚSTOPPED© ó    ún/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/call/transcription.pyÚStatusr      s   „ Ø#ˆØ‰r   r   c                   ó   — e Zd ZdZdZdZy)úTranscriptionInstance.TrackÚinbound_trackÚoutbound_trackÚboth_tracksN)r   r   r   ÚINBOUND_TRACKÚOUTBOUND_TRACKÚBOTH_TRACKSr   r   r   ÚTrackr      s   „ Ø'ˆØ)ˆØ#‰r   r%   c                   ó   — e Zd ZdZy)ú"TranscriptionInstance.UpdateStatusr   N)r   r   r   r   r   r   r   ÚUpdateStatusr'   #   s   „ Ø‰r   r(   ÚversionÚpayloadÚaccount_sidÚcall_sidÚsidc                 ó¾  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _
        |j                  d«      | _        |||xs | j                  dœ| _        d | _        y )	Nr-   r+   r,   ÚnameÚstatusÚdate_updatedÚuri©r+   r,   r-   )ÚsuperÚ__init__Úgetr-   r+   r,   r/   r0   r   Úrfc2822_datetimer1   r2   Ú	_solutionÚ_context)Úselfr)   r*   r+   r,   r-   Ú	__class__s         €r   r5   zTranscriptionInstance.__init__0   s¹   ø€ ô 	‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ*1¯+©+°mÓ*DˆÔØ'.§{¡{°:Ó'>ˆŒØ#*§;¡;¨vÓ#6ˆŒ	Ø@GÇÁÈHÓ@UˆŒÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð #*§+¡+¨eÓ"4ˆŒð 'Ø Ø’?˜$Ÿ(™(ñ
ˆŒð
 9=ˆ�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: TranscriptionContext for this TranscriptionInstance
        r+   r,   r-   r3   )r9   ÚTranscriptionContextÚ_versionr8   ©r:   s    r   Ú_proxyzTranscriptionInstance._proxyK   sQ   € ð �=‰=Ð Ü0Ø—‘Ø ŸN™N¨=Ñ9ØŸ™¨
Ñ3Ø—N‘N 5Ñ)ô	ˆDŒMð �}‰}Ðr   c                 ó:   — | j                   j                  |¬«      S )ú
        Update the TranscriptionInstance

        :param status:

        :returns: The updated TranscriptionInstance
        ©r0   )rA   Úupdate©r:   r0   s     r   rE   zTranscriptionInstance.update\   s#   € ð �{‰{×!Ñ!Øð "ó 
ð 	
r   c              ƒ   óV   K  — | j                   j                  |¬«      ƒ d{  –—† S 7 Œ­w)ú™
        Asynchronous coroutine to update the TranscriptionInstance

        :param status:

        :returns: The updated TranscriptionInstance
        rD   N)rA   Úupdate_asyncrF   s     r   rI   z"TranscriptionInstance.update_asyncj   s1   è ø€ ð —[‘[×-Ñ-Øð .ó 
÷ 
ð 	
ð 
ú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>z1TranscriptionInstance.__repr__.<locals>.<genexpr>~   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z+<Twilio.Api.V2010.TranscriptionInstance {}>©Újoinr8   ÚitemsrP   ©r:   Úcontexts     r   Ú__repr__zTranscriptionInstance.__repr__x   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ<×CÑCÀGÓLÐLr   )N)r<   r>   )r0   r'   r<   r   )r   r   r   Úobjectr   r%   r(   r   r   Ústrr   r   r5   ÚpropertyrA   rE   rI   r]   Ú__classcell__©r;   s   @r   r   r      s¾   ø„ ô�ô ô$�ô $ô
�vô ðð  "ñ=àð=ð �c˜3�h‘ð=ð ð	=ð
 ð=ð �c‰]õ=ð6 òó ðð 
Ø:ð
à	 ó
ð
Ø:ð
à	 ó
ðM˜#÷ Mr   r   c                   ó\   ‡ — e Zd Zdedededefˆ fd„Zdddefd	„Zdd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 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 this Transcription resource.
        :param call_sid: The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Transcription resource is associated with.
        :param sid: The SID of the Transcription resource, or the `name` used when creating the resource
        r3   zB/Accounts/{account_sid}/Calls/{call_sid}/Transcriptions/{sid}.jsonNr   ©r4   r5   r8   rP   Ú_uri)r:   r)   r+   r,   r-   r;   s        €r   r5   zTranscriptionContext.__init__„   sM   ø€ ô 	‰Ñ˜Ô!ð 'Ø Øñ
ˆŒð XÐP×WÑWñ Ø—.‘.ñð 	�	r   r0   r'   r<   c                 óB  — t        j                  d|i«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d   | j                  d	   | j                  d
   ¬«      S )rC   r   ú!application/x-www-form-urlencodedúContent-Typeúapplication/jsonÚAcceptÚPOST©Úmethodr2   ÚdataÚheadersr+   r,   r-   r3   )r
   Úofr?   rE   rf   r   r8   ©r:   r0   ro   rp   r*   s        r   rE   zTranscriptionContext.update›   s¢   € ô �y‰yà˜&ðó
ˆô
 —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô %Ø�M‰MØØŸ™ }Ñ5Ø—^‘^ JÑ/Ø—‘˜uÑ%ô
ð 	
r   c              ƒ   ó^  K  — t        j                  d|i«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  d	   | j                  d
   | j                  d   ¬«      S 7 ŒE­w)rH   r   rh   ri   rj   rk   rl   rm   Nr+   r,   r-   r3   )r
   rq   r?   rI   rf   r   r8   rr   s        r   rI   z!TranscriptionContext.update_async½   s°   è ø€ ô �y‰yà˜&ðó
ˆô
 —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô %Ø�M‰MØØŸ™ }Ñ5Ø—^‘^ JÑ/Ø—‘˜uÑ%ô
ð 	
ð	
ús   ‚A#B-Á%B+Á&AB-c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rK   rL   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wrN   rO   rQ   s      r   rU   z0TranscriptionContext.__repr__.<locals>.<genexpr>å   rV   rW   z*<Twilio.Api.V2010.TranscriptionContext {}>rX   r[   s     r   r]   zTranscriptionContext.__repr__ß   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ;×BÑBÀ7ÓKÐKr   )r   r   r   r   r_   r5   r   rE   rI   r]   ra   rb   s   @r   r>   r>   ‚   s^   ø„ ð
 ð 
°cð 
ÀSð 
Èsõ 
ð. 
Ø:ð 
à	ó 
ðD 
Ø:ð 
à	ó 
ðDL˜#÷ Lr   r>   c                   ód  ‡ — 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                  ej                  ej                  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	f   d	eee	f   d
eee	f   deee	f   dee
e	f   deee	f   deee	f   dee
e	f   dee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                  ej                  ej                  ej                  ej                  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	f   d	eee	f   d
eee	f   deee	f   dee
e	f   deee	f   deee	f   dee
e	f   dee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 )ÚTranscriptionListr)   r+   r,   c                 óz   •— t         ‰| �  |«       ||dœ| _         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 this Transcription resource.
        :param call_sid: The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Transcription resource is associated with.

        ©r+   r,   z</Accounts/{account_sid}/Calls/{call_sid}/Transcriptions.jsonNr   re   )r:   r)   r+   r,   r;   s       €r   r5   zTranscriptionList.__init__ë   sJ   ø€ ô 	‰Ñ˜Ô!ð 'Ø ñ
ˆŒð
 RÐJ×QÑQñ Ø—.‘.ñð 	�	r   r/   Útrackr   Ústatus_callback_urlÚstatus_callback_methodÚinbound_track_labelÚoutbound_track_labelÚpartial_resultsÚlanguage_codeÚtranscription_engineÚprofanity_filterÚspeech_modelÚhintsÚenable_automatic_punctuationÚintelligence_servicer<   c                 ó¶  — t        j                  ||||||t        j                  |«      ||	t        j                  |
«      ||t        j                  |«      |dœ«      }t        j                  ddi«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d   | j                  d	   ¬
«      S )aÞ  
        Create the TranscriptionInstance

        :param name: The user-specified name of this Transcription, if one was given when the Transcription was created. This may be used to stop the Transcription.
        :param track:
        :param status_callback_url: Absolute URL of the status callback.
        :param status_callback_method: The http method for the status_callback (one of GET, POST).
        :param inbound_track_label: Friendly name given to the Inbound Track
        :param outbound_track_label: Friendly name given to the Outbound Track
        :param partial_results: Indicates if partial results are going to be sent to the customer
        :param language_code: Language code used by the transcription engine, specified in [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) format
        :param transcription_engine: Definition of the transcription engine to be used, among those supported by Twilio
        :param profanity_filter: indicates if the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks
        :param speech_model: Recognition model used by the transcription engine, among those supported by the provider
        :param hints: A Phrase contains words and phrase \"hints\" so that the speech recognition engine is more likely to recognize them.
        :param enable_automatic_punctuation: The provider will add punctuation to recognition result
        :param intelligence_service: The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .

        :returns: The created TranscriptionInstance
        ©ÚNamer%   ÚStatusCallbackUrlÚStatusCallbackMethodÚInboundTrackLabelÚOutboundTrackLabelÚPartialResultsÚLanguageCodeÚTranscriptionEngineÚProfanityFilterÚSpeechModelÚHintsÚEnableAutomaticPunctuationÚIntelligenceServiceri   rh   rj   rk   rl   rm   r+   r,   ry   )	r
   rq   r	   Úboolean_to_stringr?   Úcreaterf   r   r8   ©r:   r/   rz   r{   r|   r}   r~   r   r€   r�   r‚   rƒ   r„   r…   r†   ro   rp   r*   s                     r   r—   zTranscriptionList.create  sê   € ôL �y‰yàØØ%8Ø(>Ø%8Ø&:Ü"+×"=Ñ"=¸oÓ"NØ -Ø';Ü#,×#>Ñ#>Ð?OÓ#PØ+ØÜ.7×.IÑ.IØ0ó/ð (<ñ!ó
ˆô( —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô %Ø�M‰MØØŸ™ }Ñ5Ø—^‘^ JÑ/ô	
ð 	
r   c              ƒ   óÒ  K  — t        j                  ||||||t        j                  |«      ||	t        j                  |
«      ||t        j                  |«      |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)aí  
        Asynchronously create the TranscriptionInstance

        :param name: The user-specified name of this Transcription, if one was given when the Transcription was created. This may be used to stop the Transcription.
        :param track:
        :param status_callback_url: Absolute URL of the status callback.
        :param status_callback_method: The http method for the status_callback (one of GET, POST).
        :param inbound_track_label: Friendly name given to the Inbound Track
        :param outbound_track_label: Friendly name given to the Outbound Track
        :param partial_results: Indicates if partial results are going to be sent to the customer
        :param language_code: Language code used by the transcription engine, specified in [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) format
        :param transcription_engine: Definition of the transcription engine to be used, among those supported by Twilio
        :param profanity_filter: indicates if the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks
        :param speech_model: Recognition model used by the transcription engine, among those supported by the provider
        :param hints: A Phrase contains words and phrase \"hints\" so that the speech recognition engine is more likely to recognize them.
        :param enable_automatic_punctuation: The provider will add punctuation to recognition result
        :param intelligence_service: The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .

        :returns: The created TranscriptionInstance
        rˆ   ri   rh   rj   rk   rl   rm   Nr+   r,   ry   )	r
   rq   r	   r–   r?   Úcreate_asyncrf   r   r8   r˜   s                     r   rš   zTranscriptionList.create_asyncL  sø   è ø€ ôL �y‰yàØØ%8Ø(>Ø%8Ø&:Ü"+×"=Ñ"=¸oÓ"NØ -Ø';Ü#,×#>Ñ#>Ð?OÓ#PØ+ØÜ.7×.IÑ.IØ0ó/ð (<ñ!ó
ˆô( —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô %Ø�M‰MØØŸ™ }Ñ5Ø—^‘^ JÑ/ô	
ð 	
ð	
ús   ‚B+C'Â-C%Â.8C'r-   c                 óh   — t        | j                  | j                  d   | j                  d   |¬«      S ©z�
        Constructs a TranscriptionContext

        :param sid: The SID of the Transcription resource, or the `name` used when creating the resource
        r+   r,   r3   ©r>   r?   r8   ©r:   r-   s     r   r6   zTranscriptionList.get—  ó3   € ô $Ø�M‰MØŸ™ }Ñ5Ø—^‘^ JÑ/Øô	
ð 	
r   c                 óh   — t        | j                  | j                  d   | j                  d   |¬«      S rœ   r�   rž   s     r   Ú__call__zTranscriptionList.__call__¤  rŸ   r   c                  ó   — y)rK   z$<Twilio.Api.V2010.TranscriptionList>r   r@   s    r   r]   zTranscriptionList.__repr__±  s   € ð 6r   )r   r   r   r   r_   r5   r
   Úunsetr   r^   Úboolr   r—   rš   r>   r6   r¡   r]   ra   rb   s   @r   rw   rw   é   sm  ø„ ð
 ð 
°cð 
ÀSõ 
ð0 $*§<¡<Ø>D¿l¹lØ28·,±,Ø5;·\±\Ø28·,±,Ø39·<±<Ø/5¯|©|Ø,2¯L©LØ39·<±<Ø06·±Ø+1¯<©<Ø$*§L¡LØ<B¿L¹LØ39·<±<ñI
à�C˜�KÑ ðI
ð Ð2°FÐ:Ñ;ðI
ð # 3¨ ;Ñ/ð	I
ð
 !& c¨6 kÑ 2ðI
ð # 3¨ ;Ñ/ðI
ð $ C¨ KÑ0ðI
ð ˜t V˜|Ñ,ðI
ð ˜S &˜[Ñ)ðI
ð $ C¨ KÑ0ðI
ð    f Ñ-ðI
ð ˜C ˜KÑ(ðI
ð �S˜&�[Ñ!ðI
ð ',¨D°&¨LÑ&9ðI
ð $ C¨ KÑ0ðI
ð  
ó!I
ðZ $*§<¡<Ø>D¿l¹lØ28·,±,Ø5;·\±\Ø28·,±,Ø39·<±<Ø/5¯|©|Ø,2¯L©LØ39·<±<Ø06·±Ø+1¯<©<Ø$*§L¡LØ<B¿L¹LØ39·<±<ñI
à�C˜�KÑ ðI
ð Ð2°FÐ:Ñ;ðI
ð # 3¨ ;Ñ/ð	I
ð
 !& c¨6 kÑ 2ðI
ð # 3¨ ;Ñ/ðI
ð $ C¨ KÑ0ðI
ð ˜t V˜|Ñ,ðI
ð ˜S &˜[Ñ)ðI
ð $ C¨ KÑ0ðI
ð    f Ñ-ðI
ð ˜C ˜KÑ(ðI
ð �S˜&�[Ñ!ðI
ð ',¨D°&¨LÑ&9ðI
ð $ C¨ KÑ0ðI
ð  
ó!I
ðV
�sð 
Ð3ó 
ð
˜Cð 
Ð$8ó 
ð6˜#÷ 6r   rw   N)Ú__doc__r   Útypingr   r   r   r   Útwilio.baser   r	   r
   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r>   rw   r   r   r   ú<module>r¬      sX   ðñõ ß -Ó -ß 6Ñ 6Ý 8Ý :Ý 2Ý 'ôgMÐ,ô gMôTdL˜?ô dLôNN6˜õ N6r   