Ë
    [üàgR@  ã                   ó®   — 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 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 - Flex
    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)Ú	serializeÚvalues)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   óB   ‡ — e Zd ZdZdedeeef   fˆ fd„Zdefd„Z	ˆ xZ
S )ÚInsightsSegmentsInstancea½  
    :ivar segment_id: To unique id of the segment
    :ivar external_id: The unique id for the conversation.
    :ivar queue:
    :ivar external_contact:
    :ivar external_segment_link_id: The uuid for the external_segment_link.
    :ivar date: The date of the conversation.
    :ivar account_id: The unique id for the account.
    :ivar external_segment_link: The hyperlink to recording of the task event.
    :ivar agent_id: The unique id for the agent.
    :ivar agent_phone: The phone number of the agent.
    :ivar agent_name: The name of the agent.
    :ivar agent_team_name: The team name to which agent belongs.
    :ivar agent_team_name_in_hierarchy: he team name to which agent belongs.
    :ivar agent_link: The link to the agent conversation.
    :ivar customer_phone: The phone number of the customer.
    :ivar customer_name: The name of the customer.
    :ivar customer_link: The link to the customer conversation.
    :ivar segment_recording_offset: The offset value for the recording.
    :ivar media: The media identifiers of the conversation.
    :ivar assessment_type: The type of the assessment.
    :ivar assessment_percentage: The percentage scored on the Assessments.
    :ivar url:
    ÚversionÚpayloadc                 óì  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        |j                  d«      | _
        |j                  d	«      | _        |j                  d
«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y )NÚ
segment_idÚexternal_idÚqueueÚexternal_contactÚexternal_segment_link_idÚdateÚ
account_idÚexternal_segment_linkÚagent_idÚagent_phoneÚ
agent_nameÚagent_team_nameÚagent_team_name_in_hierarchyÚ
agent_linkÚcustomer_phoneÚcustomer_nameÚcustomer_linkÚsegment_recording_offsetÚmediaÚassessment_typeÚassessment_percentageÚurl)ÚsuperÚ__init__Úgetr   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   )Úselfr   r   Ú	__class__s      €úg/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/flex_api/v1/insights_segments.pyr,   z!InsightsSegmentsInstance.__init__2   s�  ø€ Ü‰Ñ˜Ô!à)0¯©°\Ó)BˆŒØ*1¯+©+°mÓ*DˆÔØ$+§K¡K°Ó$8ˆŒ
Ø/6¯{©{Ð;MÓ/NˆÔØ7>·{±{Ø&ó8
ˆÔ%ð $+§;¡;¨vÓ#6ˆŒ	Ø)0¯©°\Ó)BˆŒØ4;·K±KÐ@WÓ4XˆÔ"Ø'.§{¡{°:Ó'>ˆŒØ*1¯+©+°mÓ*DˆÔØ)0¯©°\Ó)BˆŒØ.5¯k©kÐ:KÓ.LˆÔØ;B¿;¹;Ø*ó<
ˆÔ)ð *1¯©°\Ó)BˆŒØ-4¯[©[Ð9IÓ-JˆÔØ,3¯K©K¸Ó,HˆÔØ,3¯K©K¸Ó,HˆÔØ7>·{±{Ø&ó8
ˆÔ%ð 3:·+±+¸gÓ2FˆŒ
Ø<C¿K¹KØó=
ˆÔð CJÇ+Á+Ø#óC
ˆÔ"ð #*§+¡+¨eÓ"4ˆ�ó    Úreturnc                  ó   — y)úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z,<Twilio.FlexApi.V1.InsightsSegmentsInstance>© ©r.   s    r0   Ú__repr__z!InsightsSegmentsInstance.__repr__V   s   € ð >r1   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r,   r7   Ú__classcell__©r/   s   @r0   r   r      s0   ø„ ñð2"5 ð "5°$°s¸C°x±.õ "5ðH>˜#÷ >r1   r   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚInsightsSegmentsPager   r2   c                 ó.   — t        | j                  |«      S )zv
        Build an instance of InsightsSegmentsInstance

        :param payload: Payload response from the API
        )r   Ú_version)r.   r   s     r0   Úget_instancez!InsightsSegmentsPage.get_instanceb   s   € ô (¨¯©°wÓ?Ð?r1   c                  ó   — y)r4   z(<Twilio.FlexApi.V1.InsightsSegmentsPage>r5   r6   s    r0   r7   zInsightsSegmentsPage.__repr__j   ó   € ð :r1   N)	r8   r9   r:   r   r<   r   r   rC   r7   r5   r1   r0   r@   r@   `   s-   „ ð@ D¨¨c¨¡Nð @Ð7Oó @ð:˜#ô :r1   r@   c                   ó   ‡ — e Zd Zdefˆ fd„Zej                  ej                  ej                  ddfdeee	f   deee	f   dee
e   e	f   dee   dee   d	ee   fd
„Zej                  ej                  ej                  ddfdeee	f   deee	f   dee
e   e	f   dee   dee   d	ee   fd„Zej                  ej                  ej                  ddfdeee	f   deee	f   dee
e   e	f   dee   dee   d	e
e   fd„Zej                  ej                  ej                  ddfdeee	f   deee	f   de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                  ej                  fdeee	f   deee	f   de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                  fdeee	f   deee	f   de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 )ÚInsightsSegmentsListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zr
        Initialize the InsightsSegmentsList

        :param version: Version that contains the resource

        z/Insights/SegmentsN)r+   r,   Ú_uri)r.   r   r/   s     €r0   r,   zInsightsSegmentsList.__init__u   s   ø€ ô 	‰Ñ˜Ô!à(ˆ�	r1   NÚauthorizationr   Úreservation_idÚlimitÚ	page_sizer2   c                 ó¨   — | j                   j                  ||«      }| j                  ||||d   ¬«      }| j                   j                  ||d   «      S )a.  
        Streams InsightsSegmentsInstance 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 str authorization: The Authorization HTTP request header
        :param str segment_id: To unique id of the segment
        :param List[str] reservation_id: The list of reservation Ids
        :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
        rM   ©rJ   r   rK   rM   rL   )rB   Úread_limitsÚpageÚstream©r.   rJ   r   rK   rL   rM   ÚlimitsrQ   s           r0   rR   zInsightsSegmentsList.stream€   s[   € ð4 —‘×*Ñ*¨5°)Ó<ˆØ�y‰yØ'Ø!Ø)Ø˜[Ñ)ð	 ó 
ˆð �}‰}×#Ñ# D¨&°©/Ó:Ð:r1   c              ƒ   óÄ   K  — | j                   j                  ||«      }| j                  ||||d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)a=  
        Asynchronously streams InsightsSegmentsInstance 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 str authorization: The Authorization HTTP request header
        :param str segment_id: To unique id of the segment
        :param List[str] reservation_id: The list of reservation Ids
        :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
        rM   rO   NrL   )rB   rP   Ú
page_asyncÚstream_asyncrS   s           r0   rW   z!InsightsSegmentsList.stream_async¤   si   è ø€ ð4 —‘×*Ñ*¨5°)Ó<ˆØ—_‘_Ø'Ø!Ø)Ø˜[Ñ)ð	 %ó 
÷ 
ˆð �}‰}×)Ñ)¨$°°w±Ó@Ð@ð
ús   ‚8A ºA»$A c           	      ó@   — t        | j                  |||||¬«      «      S )aË  
        Lists InsightsSegmentsInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str authorization: The Authorization HTTP request header
        :param str segment_id: To unique id of the segment
        :param List[str] reservation_id: The list of reservation Ids
        :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
        ©rJ   r   rK   rL   rM   )ÚlistrR   )r.   rJ   r   rK   rL   rM   s         r0   rZ   zInsightsSegmentsList.listÈ   s1   € ô2 Ø�K‰KØ+Ø%Ø-ØØ#ð ó ó
ð 	
r1   c              ƒ   ó€   K  — | j                  |||||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)aÚ  
        Asynchronously lists InsightsSegmentsInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str authorization: The Authorization HTTP request header
        :param str segment_id: To unique id of the segment
        :param List[str] reservation_id: The list of reservation Ids
        :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
        rY   N)rW   )r.   rJ   r   rK   rL   rM   Úrecords          r0   Ú
list_asynczInsightsSegmentsList.list_asyncë   s]   è ø€ ð6 '+×&7Ñ&7Ø+Ø%Ø-ØØ#ð '8ó '÷ !÷	
ô 	
àò ð!øð	
øò 	
ð 		
ùò 	
ùs0   ‚>œ1�>£9¥5©3
ª5­9±>³5µ9¶>Ú
page_tokenÚpage_numberc           	      ó  — t        j                  ||t        j                  |d„ «      |||dœ«      }t        j                  |ddœ«      }d|d<   | j                  j                  d| j                  ||¬«      }	t        | j                  |	«      S )	a;  
        Retrieve a single page of InsightsSegmentsInstance records from the API.
        Request is executed immediately

        :param authorization: The Authorization HTTP request header
        :param segment_id: To unique id of the segment
        :param reservation_id: The list of reservation Ids
        :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 InsightsSegmentsInstance
        c                 ó   — | S ©Nr5   ©Úes    r0   ú<lambda>z+InsightsSegmentsList.page.<locals>.<lambda>)  ó   € È€ r1   ©ÚAuthorizationÚ	SegmentIdÚReservationIdÚ	PageTokenr   ÚPageSizeú!application/x-www-form-urlencoded©rh   zContent-Typeúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheaders)r   Úofr
   ÚmaprB   rQ   rI   r@   ©
r.   rJ   r   rK   r^   r_   rM   Údatarv   Úresponses
             r0   rQ   zInsightsSegmentsList.page  s”   € ô, �y‰yà!.Ø'Ü!*§¡¨~¹{Ó!KØ'Ø#Ø%ñó	
ˆô —)‘)à!.Ø Cñó
ˆð /ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô $ D§M¡M°8Ó<Ð<r1   c           	   ƒ   ó8  K  — t        j                  ||t        j                  |d„ «      |||dœ«      }t        j                  |ddœ«      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d	{  –—† }	t        | j                  |	«      S 7 Œ­w)
aJ  
        Asynchronously retrieve a single page of InsightsSegmentsInstance records from the API.
        Request is executed immediately

        :param authorization: The Authorization HTTP request header
        :param segment_id: To unique id of the segment
        :param reservation_id: The list of reservation Ids
        :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 InsightsSegmentsInstance
        c                 ó   — | S rb   r5   rc   s    r0   re   z1InsightsSegmentsList.page_async.<locals>.<lambda>X  rf   r1   rg   rm   rn   ro   rp   rq   rr   N)r   rw   r
   rx   rB   rV   rI   r@   ry   s
             r0   rV   zInsightsSegmentsList.page_async>  s¢   è ø€ ô, �y‰yà!.Ø'Ü!*§¡¨~¹{Ó!KØ'Ø#Ø%ñó	
ˆô —)‘)à!.Ø Cñó
ˆð /ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô $ D§M¡M°8Ó<Ð<ð
ús   ‚A;BÁ=BÁ>BÚ
target_urlc                 óŽ   — | j                   j                  j                  j                  d|«      }t	        | j                   |«      S )a  
        Retrieve a specific page of InsightsSegmentsInstance records from the API.
        Request is executed immediately

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

        :returns: Page of InsightsSegmentsInstance
        rq   )rB   ÚdomainÚtwilioÚrequestr@   ©r.   r~   r{   s      r0   Úget_pagezInsightsSegmentsList.get_pagem  s7   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ# D§M¡M°8Ó<Ð<r1   c              ƒ   óª   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   |«      S 7 Œ­w)a  
        Asynchronously retrieve a specific page of InsightsSegmentsInstance records from the API.
        Request is executed immediately

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

        :returns: Page of InsightsSegmentsInstance
        rq   N)rB   r€   r�   Úrequest_asyncr@   rƒ   s      r0   Úget_page_asyncz#InsightsSegmentsList.get_page_asyncy  sD   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ# D§M¡M°8Ó<Ð<ð Vús   ‚4A¶A·Ac                  ó   — y)r4   z(<Twilio.FlexApi.V1.InsightsSegmentsList>r5   r6   s    r0   r7   zInsightsSegmentsList.__repr__…  rE   r1   )r8   r9   r:   r   r,   r   Úunsetr   r<   Úobjectr   r   Úintr   r   rR   r	   rW   rZ   r]   r@   rQ   rV   r„   r‡   r7   r=   r>   s   @r0   rG   rG   s   sØ  ø„ ð	) õ 	)ð -3¯L©LØ)/¯©Ø39·<±<Ø#Ø#'ñ";à˜S &˜[Ñ)ð";ð ˜#˜v˜+Ñ&ð";ð ˜d 3™i¨Ð/Ñ0ð	";ð
 ˜‰}ð";ð ˜C‘=ð";ð 
Ð*Ñ	+ó";ðL -3¯L©LØ)/¯©Ø39·<±<Ø#Ø#'ñ"Aà˜S &˜[Ñ)ð"Að ˜#˜v˜+Ñ&ð"Að ˜d 3™i¨Ð/Ñ0ð	"Að
 ˜‰}ð"Að ˜C‘=ð"Að 
Ð/Ñ	0ó"AðL -3¯L©LØ)/¯©Ø39·<±<Ø#Ø#'ñ!
à˜S &˜[Ñ)ð!
ð ˜#˜v˜+Ñ&ð!
ð ˜d 3™i¨Ð/Ñ0ð	!
ð
 ˜‰}ð!
ð ˜C‘=ð!
ð 
Ð&Ñ	'ó!
ðJ -3¯L©LØ)/¯©Ø39·<±<Ø#Ø#'ñ"
à˜S &˜[Ñ)ð"
ð ˜#˜v˜+Ñ&ð"
ð ˜d 3™i¨Ð/Ñ0ð	"
ð
 ˜‰}ð"
ð ˜C‘=ð"
ð 
Ð&Ñ	'ó"
ðL -3¯L©LØ)/¯©Ø39·<±<Ø)/¯©Ø*0¯,©,Ø(.¯©ñ-=à˜S &˜[Ñ)ð-=ð ˜#˜v˜+Ñ&ð-=ð ˜d 3™i¨Ð/Ñ0ð	-=ð
 ˜#˜v˜+Ñ&ð-=ð ˜3 ˜;Ñ'ð-=ð ˜˜f˜Ñ%ð-=ð 
ó-=ðb -3¯L©LØ)/¯©Ø39·<±<Ø)/¯©Ø*0¯,©,Ø(.¯©ñ-=à˜S &˜[Ñ)ð-=ð ˜#˜v˜+Ñ&ð-=ð ˜d 3™i¨Ð/Ñ0ð	-=ð
 ˜#˜v˜+Ñ&ð-=ð ˜3 ˜;Ñ'ð-=ð ˜˜f˜Ñ%ð-=ð 
ó-=ð^
= 3ð 
=Ð+?ó 
=ð
=¨sð 
=Ð7Kó 
=ð:˜#÷ :r1   rG   N)r;   Útypingr   r   r   r   r   r   r	   Útwilio.baser
   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r@   rG   r5   r1   r0   ú<module>r’      sO   ðñ÷ M× LÑ Lß )å :Ý 2Ý 'Ý !ôE>Ð/ô E>ôP:˜4ô :ô&X:˜<õ X:r1   