Ë
    [üàg[4  ã                   ó®   — 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)ÚdeserializeÚ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 )ÚInsightsConversationsInstancezä
    :ivar account_id: The id of the account.
    :ivar conversation_id: The unique id of the conversation
    :ivar segment_count: The count of segments for a conversation
    :ivar segments: The Segments of a conversation
    ÚversionÚpayloadc                 óú   •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _        |j                  d«      | _        y )NÚ
account_idÚconversation_idÚsegment_countÚsegments)	ÚsuperÚ__init__Úgetr   r   r
   Úintegerr   r   )Úselfr   r   Ú	__class__s      €úl/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/flex_api/v1/insights_conversations.pyr   z&InsightsConversationsInstance.__init__    sd   ø€ Ü‰Ñ˜Ô!à)0¯©°\Ó)BˆŒØ.5¯k©kÐ:KÓ.LˆÔÜ,7×,?Ñ,?Ø�K‰K˜Ó(ó-
ˆÔð <C¿;¹;ÀzÓ;Rˆ�ó    Úreturnc                  ó   — y)úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z1<Twilio.FlexApi.V1.InsightsConversationsInstance>© ©r   s    r   Ú__repr__z&InsightsConversationsInstance.__repr__*   s   € ð Cr    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r&   Ú__classcell__©r   s   @r   r   r      s4   ø„ ñðS ð S°$°s¸C°x±.õ SðC˜#÷ Cr    r   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚInsightsConversationsPager   r!   c                 ó.   — t        | j                  |«      S )z{
        Build an instance of InsightsConversationsInstance

        :param payload: Payload response from the API
        )r   Ú_version)r   r   s     r   Úget_instancez&InsightsConversationsPage.get_instance6   s   € ô -¨T¯]©]¸GÓDÐDr    c                  ó   — y)r#   z-<Twilio.FlexApi.V1.InsightsConversationsPage>r$   r%   s    r   r&   z"InsightsConversationsPage.__repr__>   ó   € ð ?r    N)	r'   r(   r)   r   r+   r   r   r2   r&   r$   r    r   r/   r/   4   s-   „ ðE D¨¨c¨¡Nð EÐ7Tó Eð?˜#ô ?r    r/   c                   ó¤  ‡ — e Zd Z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 )ÚInsightsConversationsListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zw
        Initialize the InsightsConversationsList

        :param version: Version that contains the resource

        z/Insights/ConversationsN)r   r   Ú_uri)r   r   r   s     €r   r   z"InsightsConversationsList.__init__I   s   ø€ ô 	‰Ñ˜Ô!à-ˆ�	r    NÚauthorizationÚ
segment_idÚlimitÚ	page_sizer!   c                 ó¦   — | j                   j                  ||«      }| j                  |||d   ¬«      }| j                   j                  ||d   «      S )a  
        Streams InsightsConversationsInstance 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: Unique Id of the segment for which conversation details needs to be fetched
        :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<   ©r9   r:   r<   r;   )r1   Úread_limitsÚpageÚstream©r   r9   r:   r;   r<   Úlimitsr@   s          r   rA   z InsightsConversationsList.streamT   sX   € ð0 —‘×*Ñ*¨5°)Ó<ˆØ�y‰yØ'Ø!Ø˜[Ñ)ð ó 
ˆð �}‰}×#Ñ# D¨&°©/Ó:Ð:r    c              ƒ   óÂ   K  — | j                   j                  ||«      }| j                  |||d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)a-  
        Asynchronously streams InsightsConversationsInstance 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: Unique Id of the segment for which conversation details needs to be fetched
        :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;   )r1   r?   Ú
page_asyncÚstream_asyncrB   s          r   rF   z&InsightsConversationsList.stream_asyncu   sf   è ø€ ð0 —‘×*Ñ*¨5°)Ó<ˆØ—_‘_Ø'Ø!Ø˜[Ñ)ð %ó 
÷ 
ˆð �}‰}×)Ñ)¨$°°w±Ó@Ð@ð
ús   ‚7A¹Aº$Ac                 ó>   — t        | j                  ||||¬«      «      S )a»  
        Lists InsightsConversationsInstance 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: Unique Id of the segment for which conversation details needs to be fetched
        :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
        ©r9   r:   r;   r<   )ÚlistrA   )r   r9   r:   r;   r<   s        r   rI   zInsightsConversationsList.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 InsightsConversationsInstance 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: Unique Id of the segment for which conversation details needs to be fetched
        :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
        rH   N)rF   )r   r9   r:   r;   r<   Úrecords         r   Ú
list_asyncz$InsightsConversationsList.list_async¶   sZ   è ø€ ð2 '+×&7Ñ&7Ø+Ø%ØØ#ð	 '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚=›0œ=¢8¤4¨2
©4¬8°=²4´8µ=Ú
page_tokenÚpage_numberc                 óð   — t        j                  |||||dœ«      }t        j                  |ddœ«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )a:  
        Retrieve a single page of InsightsConversationsInstance records from the API.
        Request is executed immediately

        :param authorization: The Authorization HTTP request header
        :param segment_id: Unique Id of the segment for which conversation details needs to be fetched
        :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 InsightsConversationsInstance
        ©ÚAuthorizationÚ	SegmentIdÚ	PageTokenr   ÚPageSizeú!application/x-www-form-urlencoded©rQ   zContent-Typeúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheaders)r   Úofr1   r@   r8   r/   ©	r   r9   r:   rM   rN   r<   Údatar^   Úresponses	            r   r@   zInsightsConversationsList.page×   s†   € ô( �y‰yà!.Ø'Ø'Ø#Ø%ñó
ˆô —)‘)à!.Ø Cñó
ˆð /ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô )¨¯©¸ÓAÐAr    c              ƒ   ó  K  — t        j                  |||||dœ«      }t        j                  |ddœ«      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  |«      S 7 Œ­w)	aI  
        Asynchronously retrieve a single page of InsightsConversationsInstance records from the API.
        Request is executed immediately

        :param authorization: The Authorization HTTP request header
        :param segment_id: Unique Id of the segment for which conversation details needs to be fetched
        :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 InsightsConversationsInstance
        rP   rU   rV   rW   rX   rY   rZ   N)r   r_   r1   rE   r8   r/   r`   s	            r   rE   z$InsightsConversationsList.page_async  s”   è ø€ ô( �y‰yà!.Ø'Ø'Ø#Ø%ñó
ˆô —)‘)à!.Ø Cñó
ˆð /ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô )¨¯©¸ÓAÐAð
ús   ‚A%BÁ'BÁ(BÚ
target_urlc                 óŽ   — | j                   j                  j                  j                  d|«      }t	        | j                   |«      S )a  
        Retrieve a specific page of InsightsConversationsInstance records from the API.
        Request is executed immediately

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

        :returns: Page of InsightsConversationsInstance
        rY   )r1   ÚdomainÚtwilioÚrequestr/   ©r   rd   rb   s      r   Úget_pagez"InsightsConversationsList.get_page/  s7   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ(¨¯©¸ÓAÐAr    c              ƒ   óª   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   |«      S 7 Œ­w)a  
        Asynchronously retrieve a specific page of InsightsConversationsInstance records from the API.
        Request is executed immediately

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

        :returns: Page of InsightsConversationsInstance
        rY   N)r1   rf   rg   Úrequest_asyncr/   ri   s      r   Úget_page_asyncz(InsightsConversationsList.get_page_async;  sD   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ(¨¯©¸ÓAÐAð Vús   ‚4A¶A·Ac                  ó   — y)r#   z-<Twilio.FlexApi.V1.InsightsConversationsList>r$   r%   s    r   r&   z"InsightsConversationsList.__repr__G  r4   r    )r'   r(   r)   r   r   r   Úunsetr   r+   Úobjectr   Úintr   r   rA   r	   rF   r   rI   rL   r/   r@   rE   rj   rm   r&   r,   r-   s   @r   r6   r6   G   s1  ø„ ð	. õ 	.ð -3¯L©LØ)/¯©Ø#Ø#'ñ;à˜S &˜[Ñ)ð;ð ˜#˜v˜+Ñ&ð;ð ˜‰}ð	;ð
 ˜C‘=ð;ð 
Ð/Ñ	0ó;ðF -3¯L©LØ)/¯©Ø#Ø#'ñAà˜S &˜[Ñ)ðAð ˜#˜v˜+Ñ&ðAð ˜‰}ð	Að
 ˜C‘=ðAð 
Ð4Ñ	5óAðF -3¯L©LØ)/¯©Ø#Ø#'ñ
à˜S &˜[Ñ)ð
ð ˜#˜v˜+Ñ&ð
ð ˜‰}ð	
ð
 ˜C‘=ð
ð 
Ð+Ñ	,ó
ðD -3¯L©LØ)/¯©Ø#Ø#'ñ
à˜S &˜[Ñ)ð
ð ˜#˜v˜+Ñ&ð
ð ˜‰}ð	
ð
 ˜C‘=ð
ð 
Ð+Ñ	,ó
ðF -3¯L©LØ)/¯©Ø)/¯©Ø*0¯,©,Ø(.¯©ñ*Bà˜S &˜[Ñ)ð*Bð ˜#˜v˜+Ñ&ð*Bð ˜#˜v˜+Ñ&ð	*Bð
 ˜3 ˜;Ñ'ð*Bð ˜˜f˜Ñ%ð*Bð 
#ó*Bð\ -3¯L©LØ)/¯©Ø)/¯©Ø*0¯,©,Ø(.¯©ñ*Bà˜S &˜[Ñ)ð*Bð ˜#˜v˜+Ñ&ð*Bð ˜#˜v˜+Ñ&ð	*Bð
 ˜3 ˜;Ñ'ð*Bð ˜˜f˜Ñ%ð*Bð 
#ó*BðX
B 3ð 
BÐ+Dó 
Bð
B¨sð 
BÐ7Pó 
Bð?˜#÷ ?r    r6   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/   r6   r$   r    r   ú<module>rx      sN   ðñ÷ M× LÑ Lß +å :Ý 2Ý 'Ý !ôCÐ$4ô Cô8? ô ?ô&F? õ F?r    