Ë
    [üà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                   óZ   ‡ — e Zd Z G d„ de«      Z	 dedeeef   defˆ fd„Z	defd„Z
ˆ xZS )	ÚFeedbackInstancec                   ó,   — e Zd ZdZdeeef   fd„Zd„ Zy)ú9FeedbackInstance.AssistantsV1ServiceCreateFeedbackRequestúÄ
        :ivar message_id: The message ID.
        :ivar score: The score to be given(0-1).
        :ivar session_id: The Session ID.
        :ivar text: The text to be given as feedback.
        Úpayloadc                 ó´   — |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y ©NÚ
message_idÚscoreÚ
session_idÚtext©Úgetr   r   r   r   ©Úselfr   s     új/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/assistants/v1/assistant/feedback.pyÚ__init__zBFeedbackInstance.AssistantsV1ServiceCreateFeedbackRequest.__init__#   óB   € à-4¯[©[¸Ó-FˆDŒOØ*1¯+©+°gÓ*>ˆDŒJØ-4¯[©[¸Ó-FˆDŒOØ'.§{¡{°6Ó':ˆD�Ió    c                 ó`   — | j                   | j                  | j                  | j                  dœS ©N©r   r   r   r   r'   ©r    s    r!   Úto_dictzAFeedbackInstance.AssistantsV1ServiceCreateFeedbackRequest.to_dict*   ó(   € à"Ÿo™oØŸ™Ø"Ÿo™oØŸ	™	ñ	ð r$   N©	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ústrr   r"   r)   © r$   r!   Ú(AssistantsV1ServiceCreateFeedbackRequestr      ó    „ ñ	ð	; D¨¨c¨¡Nó 	;ó	r$   r2   Úversionr   Ú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Úassistant_idr5   Úaccount_sidÚuser_sidr   r   r   r   Údate_createdÚdate_updated)Úsuperr"   r   r7   r5   r8   r9   r   r   r   r   r   Úiso8601_datetimer:   r;   Ú	_solution)r    r4   r   r5   Ú	__class__s       €r!   r"   zFeedbackInstance.__init__?   sâ   ø€ Ü‰Ñ˜Ô!à+2¯;©;°~Ó+FˆÔØ!(§¡¨TÓ!2ˆŒØ*1¯+©+°mÓ*DˆÔØ'.§{¡{°:Ó'>ˆŒØ)0¯©°\Ó)BˆŒØ&-§k¡k°'Ó&:ˆŒ
Ø)0¯©°\Ó)BˆŒØ#*§;¡;¨vÓ#6ˆŒ	Ü0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð
 �"ð
ˆ�r$   Ú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,FeedbackInstance.__repr__.<locals>.<genexpr>[   s   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùs   ‚!z*<Twilio.Assistants.V1.FeedbackInstance {}>)Újoinr>   ÚitemsrE   )r    Úcontexts     r!   Ú__repr__zFeedbackInstance.__repr__U   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ;×BÑBÀ7ÓKÐKr$   )r,   r-   r.   Úobjectr2   r   r   r0   r   r"   rM   Ú__classcell__©r?   s   @r!   r   r      sD   ø„ ô°6ô ð.ð
 ð 
°$°s¸C°x±.ð 
Àcõ 
ð,L˜#÷ Lr$   r   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚFeedbackPager   r@   c                 óL   — t        | j                  || j                  d   ¬«      S )zn
        Build an instance of FeedbackInstance

        :param payload: Payload response from the API
        r5   ©r5   )r   Ú_versionr>   r   s     r!   Úget_instancezFeedbackPage.get_instancea   s    € ô   §¡¨w¸4¿>¹>È$Ñ;OÔPÐPr$   c                  ó   — y)rB   z#<Twilio.Assistants.V1.FeedbackPage>r1   r(   s    r!   rM   zFeedbackPage.__repr__i   ó   € ð 5r$   N)	r,   r-   r.   r   r0   r   r   rV   rM   r1   r$   r!   rR   rR   _   s-   „ ðQ D¨¨c¨¡Nð QÐ7Gó Qð5˜#ô 5r$   rR   c            	       ó.  ‡ — e Zd Z G d„ de«      Zdedefˆ fd„Zdedefd„Z	ded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	 	 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 )ÚFeedbackListc                   ó,   — e Zd ZdZdeeef   fd„Zd„ Zy)ú5FeedbackList.AssistantsV1ServiceCreateFeedbackRequestr   r   c                 ó´   — |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y r   r   r   s     r!   r"   z>FeedbackList.AssistantsV1ServiceCreateFeedbackRequest.__init__|   r#   r$   c                 ó`   — | j                   | j                  | j                  | j                  dœS r&   r'   r(   s    r!   r)   z=FeedbackList.AssistantsV1ServiceCreateFeedbackRequest.to_dictƒ   r*   r$   Nr+   r1   r$   r!   r2   r\   t   r3   r$   r2   r4   r5   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)z�
        Initialize the FeedbackList

        :param version: Version that contains the resource
        :param id: The assistant ID.

        r5   z/Assistants/{id}/FeedbacksNr1   )r<   r"   r>   rE   Ú_uri)r    r4   r5   r?   s      €r!   r"   zFeedbackList.__init__‹   s@   ø€ ô 	‰Ñ˜Ô!ð �"ð
ˆŒð 8Ð0×7Ñ7ÑI¸$¿.¹.ÑIˆ�	r$   Ú-assistants_v1_service_create_feedback_requestr@   c                 ó   — |j                  «       }t        j                  ddi«      }d|d<   d|d<   | j                  j	                  d| j
                  ||¬«      }t        | j                  || j                  d   ¬«      S )	zœ
        Create the FeedbackInstance

        :param assistants_v1_service_create_feedback_request:

        :returns: The created FeedbackInstance
        úContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚPOST©ÚmethodÚuriÚdataÚheadersr5   rT   )r)   r   ÚofrU   Úcreater`   r   r>   ©r    ra   rk   rl   r   s        r!   rn   zFeedbackList.create›   s~   € ð =×DÑDÓFˆä—)‘)˜^Ð-PÐQÓRˆà"4ˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô   §¡¨w¸4¿>¹>È$Ñ;OÔPÐPr$   c              ƒ   ó  K  — |j                  «       }t        j                  ddi«      }d|d<   d|d<   | j                  j	                  d| j
                  ||¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬	«      S 7 Œ)­w)
z«
        Asynchronously create the FeedbackInstance

        :param assistants_v1_service_create_feedback_request:

        :returns: The created FeedbackInstance
        rc   rd   re   rf   rg   rh   Nr5   rT   )r)   r   rm   rU   Úcreate_asyncr`   r   r>   ro   s        r!   rq   zFeedbackList.create_async´   sŒ   è ø€ ð =×DÑDÓFˆä—)‘)˜^Ð-PÐQÓRˆà"4ˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô   §¡¨w¸4¿>¹>È$Ñ;OÔPÐPð	
ús   ‚ABÁ B
Á!*BÚlimitÚ	page_sizec                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )a^  
        Streams FeedbackInstance 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
        rs   ©rs   rr   )rU   Úread_limitsÚpageÚstream©r    rr   rs   Úlimitsrw   s        r!   rx   zFeedbackList.streamÍ   sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r$   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)am  
        Asynchronously streams FeedbackInstance 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
        rs   ru   Nrr   )rU   rv   Ú
page_asyncÚstream_asyncry   s        r!   r}   zFeedbackList.stream_asyncæ   sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )aû  
        Lists FeedbackInstance 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
        ©rr   rs   )Úlistrx   )r    rr   rs   s      r!   r€   zFeedbackList.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 FeedbackInstance 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
        r   N)r}   )r    rr   rs   Úrecords       r!   Ú
list_asynczFeedbackList.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 )au  
        Retrieve a single page of FeedbackInstance 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 FeedbackInstance
        ©Ú	PageTokenr   ÚPageSizerc   rd   re   rf   ÚGET©ri   rj   Úparamsrl   )r   rm   rU   rw   r`   rR   r>   ©r    r„   r…   rs   rk   rl   Úresponses          r!   rw   zFeedbackList.page4  s   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜DŸM™M¨8°T·^±^ÓDÐDr$   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 FeedbackInstance 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 FeedbackInstance
        r‡   rc   rd   re   rf   rŠ   r‹   N)r   rm   rU   r|   r`   rR   r>   r�   s          r!   r|   zFeedbackList.page_asyncU  s�   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜DŸM™M¨8°T·^±^ÓDÐDð
ús   ‚A"BÁ$B
Á%&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zõ
        Retrieve a specific page of FeedbackInstance records from the API.
        Request is executed immediately

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

        :returns: Page of FeedbackInstance
        rŠ   )rU   ÚdomainÚtwilioÚrequestrR   r>   ©r    r�   rŽ   s      r!   Úget_pagezFeedbackList.get_pagev  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 FeedbackInstance records from the API.
        Request is executed immediately

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

        :returns: Page of FeedbackInstance
        rŠ   N)rU   r’   r“   Úrequest_asyncrR   r>   r•   s      r!   Úget_page_asynczFeedbackList.get_page_async‚  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜DŸM™M¨8°T·^±^ÓDÐDð Vús   ‚4A¶A·&Ac                  ó   — y)rB   z#<Twilio.Assistants.V1.FeedbackList>r1   r(   s    r!   rM   zFeedbackList.__repr__Ž  rX   r$   )NN)r,   r-   r.   rN   r2   r   r0   r"   r   rn   rq   r   Úintr	   rx   r
   r}   r   r€   rƒ   r   Úunsetr   rR   rw   r|   r–   r™   rM   rO   rP   s   @r!   rZ   rZ   r   s7  ø„ ô°6ô ð.J ð J¨Sõ Jð Qà7_ðQð 
óQð2Qà7_ðQð 
óQð6  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
Ð"Ñ	#ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
Ð'Ñ	(ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ÐÑ	ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ÐÑ	ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	Eà˜#˜v˜+Ñ&ðEð ˜3 ˜;Ñ'ðEð ˜˜f˜Ñ%ð	Eð
 
óEðF *0¯©Ø*0¯,©,Ø(.¯©ñ	Eà˜#˜v˜+Ñ&ðEð ˜3 ˜;Ñ'ðEð ˜˜f˜Ñ%ð	Eð
 
óEðB
E 3ð 
E¨<ó 
Eð
E¨sð 
E°|ó 
Eð5˜#÷ 5r$   rZ   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   rR   rZ   r1   r$   r!   ú<module>r£      sS   ðñõ ß L× LÑ Lß +å :Ý 2Ý 'Ý !ôCLÐ'ô CLôL5�4ô 5ô&b5�<õ b5r$   