Ë
    [üàg":  ã                   ó²   — d 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  G d„ d	e«      Z G d
„ de«      Z G d„ de«      Zy)aï  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Intelligence
    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)ÚdeserializeÚ	serializeÚvalues)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   óF   ‡ — e Zd ZdZdedeeef   defˆ fd„Zdefd„Z	ˆ xZ
S )ÚSentenceInstancea  
    :ivar media_channel: The channel number.
    :ivar sentence_index: The index of the sentence in the transcript.
    :ivar start_time: Offset from the beginning of the transcript when this sentence starts.
    :ivar end_time: Offset from the beginning of the transcript when this sentence ends.
    :ivar transcript: Transcript text.
    :ivar sid: A 34 character string that uniquely identifies this Sentence.
    :ivar confidence:
    :ivar words: Detailed information for each of the words of the given Sentence.
    ÚversionÚpayloadÚtranscript_sidc                 óT  •— t         ‰| �  |«       t        j                  |j	                  d«      «      | _        t        j                  |j	                  d«      «      | _        t        j                  |j	                  d«      «      | _        t        j                  |j	                  d«      «      | _	        |j	                  d«      | _
        |j	                  d«      | _        t        j                  |j	                  d«      «      | _        |j	                  d«      | _        d	|i| _        y )
NÚmedia_channelÚsentence_indexÚ
start_timeÚend_timeÚ
transcriptÚsidÚ
confidenceÚwordsr   )ÚsuperÚ__init__r
   ÚintegerÚgetr   r   Údecimalr   r   r   r   r   r   Ú	_solution)Úselfr   r   r   Ú	__class__s       €úm/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/intelligence/v2/transcript/sentence.pyr    zSentenceInstance.__init__$   sï   ø€ Ü‰Ñ˜Ô!ä,7×,?Ñ,?Ø�K‰K˜Ó(ó-
ˆÔô .9×-@Ñ-@Ø�K‰KÐ(Ó)ó.
ˆÔô ,7×+>Ñ+>Ø�K‰K˜Ó%ó,
ˆŒô *5×)<Ñ)<¸W¿[¹[ÈÓ=TÓ)UˆŒØ)0¯©°\Ó)BˆŒØ")§+¡+¨eÓ"4ˆŒÜ+6×+>Ñ+>Ø�K‰K˜Ó%ó,
ˆŒð 9@¿¹ÀGÓ8LˆŒ
ð ˜nð
ˆ�ó    Ú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,SentenceInstance.__repr__.<locals>.<genexpr>B   s   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùs   ‚!z,<Twilio.Intelligence.V2.SentenceInstance {}>)Újoinr$   Úitemsr.   )r%   Úcontexts     r'   Ú__repr__zSentenceInstance.__repr__<   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ=×DÑDÀWÓMÐMr(   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r    r6   Ú__classcell__©r&   s   @r'   r   r      s9   ø„ ñ	ð
 ð 
°$°s¸C°x±.ð 
ÐRUõ 
ð0N˜#÷ Nr(   r   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚSentencePager   r)   c                 óL   — t        | j                  || j                  d   ¬«      S )zn
        Build an instance of SentenceInstance

        :param payload: Payload response from the API
        r   )r   )r   Ú_versionr$   )r%   r   s     r'   Úget_instancezSentencePage.get_instanceH   s&   € ô  Ø�M‰M˜7°4·>±>ÐBRÑ3Sô
ð 	
r(   c                  ó   — y)r+   z%<Twilio.Intelligence.V2.SentencePage>© ©r%   s    r'   r6   zSentencePage.__repr__R   ó   € ð 7r(   N)	r7   r8   r9   r   r;   r   r   rB   r6   rD   r(   r'   r?   r?   F   s*   „ ð
 D¨¨c¨¡Nð 
Ð7Gó 
ð7˜#ô 7r(   r?   c                   ó¨  ‡ — e Zd Zdedefˆ fd„Zej                  ej                  ddfdee	e
f   dee	e
f   dee   dee   d	ee   f
d
„Zej                  ej                  ddfdee	e
f   dee	e
f   dee   dee   d	ee   f
d„Zej                  ej                  ddfdee	e
f   dee	e
f   dee   dee   d	ee   f
d„Zej                  ej                  ddfdee	e
f   dee	e
f   dee   dee   d	ee   f
d„Zej                  ej                  ej                  ej                  ej                  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                  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 )ÚSentenceListr   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)z¶
        Initialize the SentenceList

        :param version: Version that contains the resource
        :param transcript_sid: The unique SID identifier of the Transcript.

        r   z'/Transcripts/{transcript_sid}/SentencesNrD   )r   r    r$   r.   Ú_uri)r%   r   r   r&   s      €r'   r    zSentenceList.__init__]   sA   ø€ ô 	‰Ñ˜Ô!ð ˜nð
ˆŒð EÐ=×DÑDÑVÀtÇ~Á~ÑVˆ�	r(   NÚredactedÚword_timestampsÚlimitÚ	page_sizer)   c                 ó¦   — | j                   j                  ||«      }| j                  |||d   ¬«      }| j                   j                  ||d   «      S )aƒ  
        Streams SentenceInstance 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 bool redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
        :param bool word_timestamps: Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
        :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
        rN   ©rK   rL   rN   rM   )rA   Úread_limitsÚpageÚstream©r%   rK   rL   rM   rN   ÚlimitsrR   s          r'   rS   zSentenceList.streamm   sX   € ð0 —‘×*Ñ*¨5°)Ó<ˆØ�y‰yØØ+Ø˜[Ñ)ð ó 
ˆð �}‰}×#Ñ# D¨&°©/Ó:Ð:r(   c              ƒ   óÂ   K  — | j                   j                  ||«      }| j                  |||d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)a’  
        Asynchronously streams SentenceInstance 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 bool redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
        :param bool word_timestamps: Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
        :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
        rN   rP   NrM   )rA   rQ   Ú
page_asyncÚstream_asyncrT   s          r'   rX   zSentenceList.stream_asyncŽ   sf   è ø€ ð0 —‘×*Ñ*¨5°)Ó<ˆØ—_‘_ØØ+Ø˜[Ñ)ð %ó 
÷ 
ˆð �}‰}×)Ñ)¨$°°w±Ó@Ð@ð
ús   ‚7A¹Aº$Ac                 ó>   — t        | j                  ||||¬«      «      S )a   
        Lists SentenceInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param bool redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
        :param bool word_timestamps: Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
        :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
        ©rK   rL   rM   rN   )ÚlistrS   )r%   rK   rL   rM   rN   s        r'   r[   zSentenceList.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 SentenceInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param bool redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
        :param bool word_timestamps: Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
        :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
        rZ   N)rX   )r%   rK   rL   rM   rN   Úrecords         r'   Ú
list_asynczSentenceList.list_asyncÏ   sZ   è ø€ ð2 '+×&7Ñ&7Ø!Ø /ØØ#ð	 '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚=›0œ=¢8¤4¨2
©4¬8°=²4´8µ=Ú
page_tokenÚpage_numberc                 óP  — t        j                  t        j                  |«      t        j                  |«      |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  «      S )a�  
        Retrieve a single page of SentenceInstance records from the API.
        Request is executed immediately

        :param redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
        :param word_timestamps: Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
        :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 SentenceInstance
        ©ÚRedactedÚWordTimestampsÚ	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheaders)	r   Úofr   Úboolean_to_stringrA   rR   rJ   r?   r$   ©	r%   rK   rL   r_   r`   rN   Údatarp   Úresponses	            r'   rR   zSentenceList.pageð   s›   € ô( �y‰yä%×7Ñ7¸ÓAÜ"+×"=Ñ"=¸oÓ"NØ'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜DŸM™M¨8°T·^±^ÓDÐDr(   c              ƒ   ól  K  — t        j                  t        j                  |«      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 SentenceInstance records from the API.
        Request is executed immediately

        :param redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
        :param word_timestamps: Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
        :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 SentenceInstance
        rb   rg   rh   ri   rj   rk   rl   N)	r   rq   r   rr   rA   rW   rJ   r?   r$   rs   s	            r'   rW   zSentenceList.page_async  s©   è ø€ ô( �y‰yä%×7Ñ7¸ÓAÜ"+×"=Ñ"=¸oÓ"NØ'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜DŸM™M¨8°T·^±^ÓDÐDð
ús   ‚B
B4ÂB2Â&B4Ú
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zõ
        Retrieve a specific page of SentenceInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SentenceInstance
        rk   )rA   ÚdomainÚtwilioÚrequestr?   r$   ©r%   rw   ru   s      r'   Úget_pagezSentenceList.get_page>  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜DŸM™M¨8°T·^±^ÓDÐDr(   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)a  
        Asynchronously retrieve a specific page of SentenceInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SentenceInstance
        rk   N)rA   ry   rz   Úrequest_asyncr?   r$   r|   s      r'   Úget_page_asynczSentenceList.get_page_asyncJ  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜DŸM™M¨8°T·^±^ÓDÐDð Vús   ‚4A¶A·&Ac                  ó   — y)r+   z%<Twilio.Intelligence.V2.SentenceList>rD   rE   s    r'   r6   zSentenceList.__repr__V  rF   r(   )r7   r8   r9   r   r;   r    r   Úunsetr   ÚboolÚobjectr   Úintr   r   rS   r	   rX   r   r[   r^   r?   rR   rW   r}   r€   r6   r<   r=   s   @r'   rH   rH   [   s9  ø„ ðW ð W¸õ Wð$ )/¯©Ø/5¯|©|Ø#Ø#'ñ;à˜˜f˜Ñ%ð;ð ˜t V˜|Ñ,ð;ð ˜‰}ð	;ð
 ˜C‘=ð;ð 
Ð"Ñ	#ó;ðF )/¯©Ø/5¯|©|Ø#Ø#'ñAà˜˜f˜Ñ%ðAð ˜t V˜|Ñ,ðAð ˜‰}ð	Að
 ˜C‘=ðAð 
Ð'Ñ	(óAðF )/¯©Ø/5¯|©|Ø#Ø#'ñ
à˜˜f˜Ñ%ð
ð ˜t V˜|Ñ,ð
ð ˜‰}ð	
ð
 ˜C‘=ð
ð 
ÐÑ	ó
ðD )/¯©Ø/5¯|©|Ø#Ø#'ñ
à˜˜f˜Ñ%ð
ð ˜t V˜|Ñ,ð
ð ˜‰}ð	
ð
 ˜C‘=ð
ð 
ÐÑ	ó
ðF )/¯©Ø/5¯|©|Ø)/¯©Ø*0¯,©,Ø(.¯©ñ%Eà˜˜f˜Ñ%ð%Eð ˜t V˜|Ñ,ð%Eð ˜#˜v˜+Ñ&ð	%Eð
 ˜3 ˜;Ñ'ð%Eð ˜˜f˜Ñ%ð%Eð 
ó%EðR )/¯©Ø/5¯|©|Ø)/¯©Ø*0¯,©,Ø(.¯©ñ%Eà˜˜f˜Ñ%ð%Eð ˜t V˜|Ñ,ð%Eð ˜#˜v˜+Ñ&ð	%Eð
 ˜3 ˜;Ñ'ð%Eð ˜˜f˜Ñ%ð%Eð 
ó%EðN
E 3ð 
E¨<ó 
Eð
E¨sð 
E°|ó 
Eð7˜#÷ 7r(   rH   N)r:   Útypingr   r   r   r   r   r   r	   Útwilio.baser
   r   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r?   rH   rD   r(   r'   ú<module>rŒ      sR   ðñ÷ M× LÑ Lß 6Ñ 6å :Ý 2Ý 'Ý !ô+NÐ'ô +Nô\7�4ô 7ô*A7�<õ A7r(   