Ë
    [üàgˆF  ã                   óª   — d Z ddl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 - 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)ÚdeserializeÚ	serializeÚvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersionc                   ó¦  ‡ — 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
edd
„«       Zdd„Zdd„Zej                   ej                   ej                   ej                   ej                   ej                   ej                   fded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	d fd„Zej                   ej                   ej                   ej                   ej                   ej                   ej                   fded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	d fd„Zd	efd„Zˆ xZS )ÚAnnotationInstancec                   ó   — e Zd ZdZdZdZy)úAnnotationInstance.AnsweredByÚunknown_answered_byÚhumanÚmachineN)Ú__name__Ú
__module__Ú__qualname__ÚUNKNOWN_ANSWERED_BYÚHUMANÚMACHINE© ó    úe/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/insights/v1/call/annotation.pyÚ
AnsweredByr      s   „ Ø3ÐØˆØ‰r   r   c                   ó$   — e Zd ZdZdZdZdZdZdZy)ú$AnnotationInstance.ConnectivityIssueÚunknown_connectivity_issueÚno_connectivity_issueÚinvalid_numberÚ	caller_idÚdropped_callÚnumber_reachabilityN)	r   r   r   ÚUNKNOWN_CONNECTIVITY_ISSUEÚNO_CONNECTIVITY_ISSUEÚINVALID_NUMBERÚ	CALLER_IDÚDROPPED_CALLÚNUMBER_REACHABILITYr   r   r   ÚConnectivityIssuer!      s#   „ Ø%AÐ"Ø 7ÐØ)ˆØˆ	Ø%ˆØ3Ñr   r.   ÚversionÚpayloadÚcall_sidc                 ó"  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _        |j                  d«      | _        |j                  d	«      | _        |j                  d
«      | _        d|i| _        d | _        y )Nr1   Úaccount_sidÚanswered_byÚconnectivity_issueÚquality_issuesÚspamÚ
call_scoreÚcommentÚincidentÚurl)ÚsuperÚ__init__Úgetr1   r3   r4   r5   r6   r7   r   Úintegerr8   r9   r:   r;   Ú	_solutionÚ_context)Úselfr/   r0   r1   Ú	__class__s       €r   r=   zAnnotationInstance.__init__3   så   ø€ Ü‰Ñ˜Ô!à'.§{¡{°:Ó'>ˆŒØ*1¯+©+°mÓ*DˆÔØFMÇkÁkØóG
ˆÔð �K‰KÐ,Ó-ð 	Ôð 4;·;±;Ð?OÓ3PˆÔØ$+§K¡K°Ó$7ˆŒ	Ü)4×)<Ñ)<¸W¿[¹[ÈÓ=VÓ)WˆŒØ&-§k¡k°)Ó&<ˆŒØ'.§{¡{°:Ó'>ˆŒØ")§+¡+¨eÓ"4ˆŒð ˜ð
ˆŒð 6:ˆ�r   Úreturnc                 ó„   — | j                   €)t        | j                  | 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: AnnotationContext for this AnnotationInstance
        r1   ©r1   )rA   ÚAnnotationContextÚ_versionr@   ©rB   s    r   Ú_proxyzAnnotationInstance._proxyJ   s9   € ð �=‰=Ð Ü-Ø—‘ØŸ™¨
Ñ3ôˆDŒMð �}‰}Ðr   c                 ó6   — | j                   j                  «       S )úa
        Fetch the AnnotationInstance


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


        :returns: The fetched AnnotationInstance
        N)rJ   Úfetch_asyncrI   s    r   rP   zAnnotationInstance.fetch_asyncb   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.ús   ‚' %¡'r4   r   r5   r!   r6   r7   r8   r9   r:   c           	      óF   — | j                   j                  |||||||¬«      S )áŸ  
        Update the AnnotationInstance

        :param answered_by:
        :param connectivity_issue:
        :param quality_issues: Specify if the call had any subjective quality issues. Possible values, one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. Use comma separated values to indicate multiple quality issues for the same call.
        :param spam: A boolean flag to indicate if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Use `true` if the call was a spam call.
        :param call_score: Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
        :param comment: Specify any comments pertaining to the call. `comment` has a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in the `comment`.
        :param incident: Associate this call with an incident or support ticket. The `incident` parameter is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`.

        :returns: The updated AnnotationInstance
        ©r4   r5   r6   r7   r8   r9   r:   )rJ   Úupdate©rB   r4   r5   r6   r7   r8   r9   r:   s           r   rT   zAnnotationInstance.updatek   s5   € ð2 �{‰{×!Ñ!Ø#Ø1Ø)ØØ!ØØð "ó 
ð 	
r   c           	   ƒ   ób   K  — | j                   j                  |||||||¬«      ƒ d{  –—† S 7 Œ­w)á¹  
        Asynchronous coroutine to update the AnnotationInstance

        :param answered_by:
        :param connectivity_issue:
        :param quality_issues: Specify if the call had any subjective quality issues. Possible values, one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. Use comma separated values to indicate multiple quality issues for the same call.
        :param spam: A boolean flag to indicate if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Use `true` if the call was a spam call.
        :param call_score: Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
        :param comment: Specify any comments pertaining to the call. `comment` has a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in the `comment`.
        :param incident: Associate this call with an incident or support ticket. The `incident` parameter is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`.

        :returns: The updated AnnotationInstance
        rS   N)rJ   Úupdate_asyncrU   s           r   rX   zAnnotationInstance.update_asyncŽ   sC   è ø€ ð2 —[‘[×-Ñ-Ø#Ø1Ø)ØØ!ØØð .ó 
÷ 
ð 	
ð 
ú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.AnnotationInstance.__repr__.<locals>.<genexpr>·   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z*<Twilio.Insights.V1.AnnotationInstance {}>©Újoinr@   Úitemsr_   ©rB   Úcontexts     r   Ú__repr__zAnnotationInstance.__repr__±   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ;×BÑBÀ7ÓKÐKr   )rD   rG   )rD   r   )r   r   r   Úobjectr   r.   r   r   Ústrr   r=   ÚpropertyrJ   rM   rP   r
   Úunsetr   ÚboolÚintrT   rX   rl   Ú__classcell__©rC   s   @r   r   r      s  ø„ ô�Vô ô
4˜Fô 4ðð: ð :°$°s¸C°x±.ð :ÈCõ :ð. òó ðó#ó/ð GMÇlÁlð �L‰LØ-3¯\©\Ø$*§L¡LØ)/¯©Ø&,§l¡lØ'-§|¡|ñ!
àÐ:¸FÐBÑCð!
ð "Ø2°FÐ:ñ
ð!
ð ˜c 6˜kÑ*ð!
ð �D˜&�LÑ!ð!
ð ˜#˜v˜+Ñ&ð!
ð �s˜F�{Ñ#ð!
ð ˜˜V˜Ñ$ð!
ð 
ó!
ðJ GMÇlÁlð �L‰LØ-3¯\©\Ø$*§L¡LØ)/¯©Ø&,§l¡lØ'-§|¡|ñ!
àÐ:¸FÐBÑCð!
ð "Ø2°FÐ:ñ
ð!
ð ˜c 6˜kÑ*ð!
ð �D˜&�LÑ!ð!
ð ˜#˜v˜+Ñ&ð!
ð �s˜F�{Ñ#ð!
ð ˜˜V˜Ñ$ð!
ð 
ó!
ðFL˜#÷ Lr   r   c                   ó`  ‡ — e Zd Zdedefˆ 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                  e	j                  fded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fd„Ze	j                  e	j                  e	j                  e	j                  e	j                  e	j                  e	j                  fded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fd„Zdefd„Zˆ xZS )rG   r/   r1   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)zé
        Initialize the AnnotationContext

        :param version: Version that contains the resource
        :param call_sid: The unique string that Twilio created to identify this Call resource. It always starts with a CA.
        r1   z/Voice/{call_sid}/AnnotationNr   )r<   r=   r@   r_   Ú_uri©rB   r/   r1   rC   s      €r   r=   zAnnotationContext.__init__½   s@   ø€ ô 	‰Ñ˜Ô!ð ˜ð
ˆŒð :Ð2×9Ñ9ÑK¸D¿N¹NÑKˆ�	r   rD   c                 óÐ   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   ¬«      S )rL   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚheadersr1   rF   )r
   ÚofrH   rM   rw   r   r@   ©rB   r€   r0   s      r   rM   zAnnotationContext.fetchÌ   s]   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆä!Ø�M‰MØØ—^‘^ JÑ/ô
ð 	
r   c              ƒ   óì   K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬«      S 7 Œ)­w)rO   rz   r{   r|   r}   Nr1   rF   )r
   r�   rH   rP   rw   r   r@   r‚   s      r   rP   zAnnotationContext.fetch_asyncà   sr   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô "Ø�M‰MØØ—^‘^ JÑ/ô
ð 	
ð	
ús   ‚AA4ÁA2Á	*A4r4   r   r5   r!   r6   r7   r8   r9   r:   c           
      ó<  — t        j                  |||t        j                  |«      |||dœ«      }t        j                  i «      }	d|	d<   d|	d<   | j                  j                  d| j                  ||	¬«      }
t        | j                  |
| j                  d   ¬	«      S )
rR   ©r   r.   ÚQualityIssuesÚSpamÚ	CallScoreÚCommentÚIncidentú!application/x-www-form-urlencodedúContent-Typerz   r{   ÚPOST©r~   r   Údatar€   r1   rF   )	r
   r�   r	   Úboolean_to_stringrH   rT   rw   r   r@   ©rB   r4   r5   r6   r7   r8   r9   r:   r�   r€   r0   s              r   rT   zAnnotationContext.updateö   s£   € ô4 �y‰yà)Ø%7Ø!/Ü!×3Ñ3°DÓ9Ø'Ø"Ø$ñó

ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô "Ø�M‰M˜7¨T¯^©^¸JÑ-Gô
ð 	
r   c           
   ƒ   óX  K  — t        j                  |||t        j                  |«      |||dœ«      }t        j                  i «      }	d|	d<   d|	d<   | j                  j                  d| j                  ||	¬«      ƒ d{  –—† }
t        | j                  |
| j                  d	   ¬
«      S 7 Œ)­w)rW   r…   r‹   rŒ   rz   r{   r�   rŽ   Nr1   rF   )	r
   r�   r	   r�   rH   rX   rw   r   r@   r‘   s              r   rX   zAnnotationContext.update_async)  s±   è ø€ ô4 �y‰yà)Ø%7Ø!/Ü!×3Ñ3°DÓ9Ø'Ø"Ø$ñó

ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô "Ø�M‰M˜7¨T¯^©^¸JÑ-Gô
ð 	
ð	
ús   ‚A<B*Á>B(Á?*B*c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rZ   r[   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wr]   r^   r`   s      r   rd   z-AnnotationContext.__repr__.<locals>.<genexpr>b  re   rf   z)<Twilio.Insights.V1.AnnotationContext {}>rg   rj   s     r   rl   zAnnotationContext.__repr__\  s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ:×AÑAÀ'ÓJÐJr   )r   r   r   r   rn   r=   r   rM   rP   r
   rp   r   rm   rq   rr   rT   rX   rl   rs   rt   s   @r   rG   rG   »   sá  ø„ ðL ð L°3õ Lð
Ð)ó 
ð(
Ð#5ó 
ð0 GMÇlÁlð �L‰LØ-3¯\©\Ø$*§L¡LØ)/¯©Ø&,§l¡lØ'-§|¡|ñ1
àÐ:¸FÐBÑCð1
ð "Ø2°FÐ:ñ
ð1
ð ˜c 6˜kÑ*ð1
ð �D˜&�LÑ!ð1
ð ˜#˜v˜+Ñ&ð1
ð �s˜F�{Ñ#ð1
ð ˜˜V˜Ñ$ð1
ð 
ó1
ðj GMÇlÁlð �L‰LØ-3¯\©\Ø$*§L¡LØ)/¯©Ø&,§l¡lØ'-§|¡|ñ1
àÐ:¸FÐBÑCð1
ð "Ø2°FÐ:ñ
ð1
ð ˜c 6˜kÑ*ð1
ð �D˜&�LÑ!ð1
ð ˜#˜v˜+Ñ&ð1
ð �s˜F�{Ñ#ð1
ð ˜˜V˜Ñ$ð1
ð 
ó1
ðfK˜#÷ Kr   rG   c                   óL   ‡ — e Zd Zdedefˆ fd„Zdefd„Zdefd„Zdefd„Z	ˆ xZ
S )ÚAnnotationListr/   r1   c                 ó6   •— t         ‰| �  |«       d|i| _        y)z¬
        Initialize the AnnotationList

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

        r1   N)r<   r=   r@   rx   s      €r   r=   zAnnotationList.__init__h  s"   ø€ ô 	‰Ñ˜Ô!ð ˜ð
ˆ�r   rD   c                 óJ   — t        | j                  | j                  d   ¬«      S ©z1
        Constructs a AnnotationContext

        r1   rF   ©rG   rH   r@   rI   s    r   r>   zAnnotationList.getw  ó   € ô
 ! §¡¸¿¹È
Ñ9SÔTÐTr   c                 óJ   — t        | j                  | j                  d   ¬«      S r™   rš   rI   s    r   Ú__call__zAnnotationList.__call__~  r›   r   c                  ó   — y)rZ   z#<Twilio.Insights.V1.AnnotationList>r   rI   s    r   rl   zAnnotationList.__repr__…  s   € ð 5r   )r   r   r   r   rn   r=   rG   r>   r�   rl   rs   rt   s   @r   r–   r–   f  s@   ø„ ð
 ð 
°3õ 
ðUÐ&ó UðUÐ+ó Uð5˜#÷ 5r   r–   N)Ú__doc__Útypingr   r   r   r   r   Útwilio.baser   r	   r
   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   rG   r–   r   r   r   ú<module>r¦      sS   ðñ÷ 4Õ 3ß 6Ñ 6Ý 8Ý :Ý 2Ý 'ôaLÐ)ô aLôHhK˜ô hKôV%5�\õ %5r   