Ë
    [üàg¼.  ã                   óº   — d Z ddlm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 - Assistants
    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ÚListÚOptionalÚUnionÚIteratorÚAsyncIterator)ÚdeserializeÚ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 )ÚMessageInstanceað  
    :ivar id: The message ID.
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resource.
    :ivar assistant_id: The Assistant ID.
    :ivar session_id: The Session ID.
    :ivar identity: The identity of the user.
    :ivar role: The role of the user associated with the message.
    :ivar content: The content of the message.
    :ivar meta: The metadata of the message.
    :ivar date_created: The date and time in GMT when the Message was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar date_updated: The date and time in GMT when the Message was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    ÚversionÚpayloadÚ
session_idc                 ó:  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        |j                  d«      | _
        t        j                  |j                  d	«      «      | _        t        j                  |j                  d
«      «      | _        d|i| _        y )NÚidÚaccount_sidÚassistant_idr   ÚidentityÚroleÚcontentÚmetaÚdate_createdÚdate_updated)ÚsuperÚ__init__Úgetr   r   r   r   r   r   r   r   r   Úiso8601_datetimer   r   Ú	_solution)Úselfr   r   r   Ú	__class__s       €úg/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/assistants/v1/session/message.pyr!   zMessageInstance.__init__'   sâ   ø€ Ü‰Ñ˜Ô!à!(§¡¨TÓ!2ˆŒØ*1¯+©+°mÓ*DˆÔØ+2¯;©;°~Ó+FˆÔØ)0¯©°\Ó)BˆŒØ'.§{¡{°:Ó'>ˆŒØ#*§;¡;¨vÓ#6ˆŒ	Ø4;·K±KÀ	Ó4JˆŒØ18·±¸VÓ1DˆŒ	Ü0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð
 ˜*ð
ˆ�ó    Ú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+MessageInstance.__repr__.<locals>.<genexpr>C   s   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùs   ‚!z)<Twilio.Assistants.V1.MessageInstance {}>)Újoinr$   Úitemsr.   )r%   Úcontexts     r'   Ú__repr__zMessageInstance.__repr__=   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ:×AÑAÀ'ÓJÐJr(   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r!   r6   Ú__classcell__©r&   s   @r'   r   r      s8   ø„ ñð
 ð 
°$°s¸C°x±.ð 
Ècõ 
ð,K˜#÷ Kr(   r   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚMessagePager   r)   c                 óL   — t        | j                  || j                  d   ¬«      S )zm
        Build an instance of MessageInstance

        :param payload: Payload response from the API
        r   )r   )r   Ú_versionr$   )r%   r   s     r'   Úget_instancezMessagePage.get_instanceI   s%   € ô Ø�M‰M˜7¨t¯~©~¸lÑ/Kô
ð 	
r(   c                  ó   — y)r+   z"<Twilio.Assistants.V1.MessagePage>© ©r%   s    r'   r6   zMessagePage.__repr__S   ó   € ð 4r(   N)	r7   r8   r9   r   r;   r   r   rB   r6   rD   r(   r'   r?   r?   G   s)   „ ð
 D¨¨c¨¡Nð 
°ó 
ð4˜#ô 4r(   r?   c            	       óø  ‡ — e Zd Zdedefˆ fd„Z	 	 ddee   dee   dee	   fd„Z
	 	 ddee   dee   dee	   fd„Z	 	 ddee   dee   dee	   fd	„Z	 	 ddee   dee   dee	   fd
„Zej"                  ej"                  ej"                  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"                  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 )ÚMessageListr   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)z—
        Initialize the MessageList

        :param version: Version that contains the resource
        :param session_id: Session id or name

        r   z/Sessions/{session_id}/MessagesNrD   )r    r!   r$   r.   Ú_uri)r%   r   r   r&   s      €r'   r!   zMessageList.__init__^   s@   ø€ ô 	‰Ñ˜Ô!ð ˜*ð
ˆŒð =Ð5×<Ñ<ÑN¸t¿~¹~ÑNˆ�	r(   ÚlimitÚ	page_sizer)   c                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )a]  
        Streams MessageInstance 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 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
        rL   ©rL   rK   )rA   Úread_limitsÚpageÚstream©r%   rK   rL   ÚlimitsrP   s        r'   rQ   zMessageList.streamn   sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r(   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)al  
        Asynchronously streams MessageInstance 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 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
        rL   rN   NrK   )rA   rO   Ú
page_asyncÚstream_asyncrR   s        r'   rV   zMessageList.stream_async‡   sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )aú  
        Lists MessageInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :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   )ÚlistrQ   )r%   rK   rL   s      r'   rY   zMessageList.list    s(   € ô& Ø�K‰KØØ#ð ó ó
ð 	
r(   c              ƒ   óz   K  — | j                  ||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)a	  
        Asynchronously lists MessageInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :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
        rX   N)rV   )r%   rK   rL   Úrecords       r'   Ú
list_asynczMessageList.list_asyncº   sT   è ø€ ð* '+×&7Ñ&7ØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚;™.š; 6¢2¦0
§2ª6®;°2²6³;Ú
page_tokenÚpage_numberc                 ó   — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  «      S )as  
        Retrieve a single page of MessageInstance records from the API.
        Request is executed immediately

        :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 MessageInstance
        ©Ú	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheaders)r   ÚofrA   rP   rJ   r?   r$   ©r%   r]   r^   rL   Údatarl   Úresponses          r'   rP   zMessageList.pageÕ   s   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜4Ÿ=™=¨(°D·N±NÓCÐCr(   c              ƒ   ó  K  — 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 MessageInstance records from the API.
        Request is executed immediately

        :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 MessageInstance
        r`   rc   rd   re   rf   rg   rh   N)r   rm   rA   rU   rJ   r?   r$   rn   s          r'   rU   zMessageList.page_asyncö   s�   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜4Ÿ=™=¨(°D·N±NÓCÐCð
ús   ‚A"BÁ$B
Á%&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zó
        Retrieve a specific page of MessageInstance records from the API.
        Request is executed immediately

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

        :returns: Page of MessageInstance
        rg   )rA   ÚdomainÚtwilioÚrequestr?   r$   ©r%   rr   rp   s      r'   Úget_pagezMessageList.get_page  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜4Ÿ=™=¨(°D·N±NÓCÐCr(   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)a  
        Asynchronously retrieve a specific page of MessageInstance records from the API.
        Request is executed immediately

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

        :returns: Page of MessageInstance
        rg   N)rA   rt   ru   Úrequest_asyncr?   r$   rw   s      r'   Úget_page_asynczMessageList.get_page_async#  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜4Ÿ=™=¨(°D·N±NÓCÐCð Vús   ‚4A¶A·&Ac                  ó   — y)r+   z"<Twilio.Assistants.V1.MessageList>rD   rE   s    r'   r6   zMessageList.__repr__/  rF   r(   )NN)r7   r8   r9   r   r;   r!   r   Úintr	   r   rQ   r
   rV   r   rY   r\   r   Úunsetr   Úobjectr?   rP   rU   rx   r{   r6   r<   r=   s   @r'   rH   rH   \   só  ø„ ðO ð O°Sõ Oð$  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
�/Ñ	"ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
�Ñ	'ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ˆoÑ	ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ˆoÑ	ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	Dà˜#˜v˜+Ñ&ðDð ˜3 ˜;Ñ'ðDð ˜˜f˜Ñ%ð	Dð
 
óDðF *0¯©Ø*0¯,©,Ø(.¯©ñ	Dà˜#˜v˜+Ñ&ðDð ˜3 ˜;Ñ'ðDð ˜˜f˜Ñ%ð	Dð
 
óDðB
D 3ð 
D¨;ó 
Dð
D¨sð 
D°{ó 
Dð4˜#÷ 4r(   rH   N)r:   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?   rH   rD   r(   r'   ú<module>r†      sQ   ðñõ ß L× LÑ Lß +å :Ý 2Ý 'Ý !ô+KÐ&ô +Kô\4�$ô 4ô*Y4�,õ Y4r(   