
    =h                       d dl mZ d dlZddlmZmZmZmZmZ ddl	m
Z
 ddlmZmZ ddlmZmZmZmZ ddlmZ dd	lmZ dd
lmZ ddgZ G d de      Z G d de      Z G d d      Z G d d      Z G d d      Z G d d      Zy)    )annotationsN   )	NOT_GIVENBodyQueryHeadersNotGiven)cached_property)SyncAPIResourceAsyncAPIResource)to_raw_response_wrapperto_streamed_response_wrapperasync_to_raw_response_wrapper"async_to_streamed_response_wrapper)make_request_options)VoiceResponse)VoiceListResponseVoiceResourceAsyncVoiceResourcec                      e Zd Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 	 	 d	dZddded	 	 	 	 	 	 	 	 	 d
dZy)r   c                    t        |       S a  
        This property can be used as a prefix for any HTTP method call to return
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/RetellAI/retell-python-sdk#accessing-raw-response-data-eg-headers
        )VoiceResourceWithRawResponseselfs    f/var/www/html/phonemate/phone_mate_backend/venv/lib/python3.12/site-packages/retell/resources/voice.pywith_raw_responsezVoiceResource.with_raw_response   s     ,D11    c                    t        |       S z
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/RetellAI/retell-python-sdk#with_streaming_response
        )"VoiceResourceWithStreamingResponser   s    r   with_streaming_responsez%VoiceResource.with_streaming_response"   s     2$77r   Nextra_headersextra_query
extra_bodytimeoutc          	     r    |st        d|      | j                  d| t        ||||      t              S )X  
        Retrieve details of a specific voice

        Args:
          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        7Expected a non-empty value for `voice_id` but received /get-voice/r#   optionscast_to
ValueError_getr   r   r   voice_idr$   r%   r&   r'   s         r   retrievezVoiceResource.retrieve+   sT    . VW_Vbcddyy($(+Q[el "  
 	
r   c          	     L    | j                  dt        ||||      t              S )%List all voices available to the user/list-voicesr#   r,   r1   r   r   r   r$   r%   r&   r'   s        r   listzVoiceResource.listL   s5     yy(+Q[el &  
 	
r   )returnr   )r;   r!   r3   strr$   Headers | Noner%   Query | Noner&   Body | Noner'   'float | httpx.Timeout | None | NotGivenr;   r   
r$   r>   r%   r?   r&   r@   r'   rA   r;   r   	__name__
__module____qualname__r
   r   r"   r   r4   r:    r   r   r   r      s    2 2 8 8 )-$("&;D

 &
 "
  
 9
 

L )-$("&;D

 &
 "
  
 9
 

r   c                      e Zd Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 	 	 d	dZddded	 	 	 	 	 	 	 	 	 d
dZy)r   c                    t        |       S r   )!AsyncVoiceResourceWithRawResponser   s    r   r   z$AsyncVoiceResource.with_raw_responsea   s     166r   c                    t        |       S r    )'AsyncVoiceResourceWithStreamingResponser   s    r   r"   z*AsyncVoiceResource.with_streaming_responsek   s     7t<<r   Nr#   c          	        K   |st        d|      | j                  d| t        ||||      t               d{   S 7 w)r)   r*   r+   r#   r,   Nr/   r2   s         r   r4   zAsyncVoiceResource.retrievet   sb     . VW_VbcddYY($(+Q[el "  
 
 	
 
s   <AAAc          	     h   K   | j                  dt        ||||      t               d{   S 7 w)r6   r7   r#   r,   Nr8   r9   s        r   r:   zAsyncVoiceResource.list   sC      YY(+Q[el &  
 
 	
 
s   )202)r;   rJ   )r;   rL   r<   rB   rC   rG   r   r   r   r   `   s    7 7 = = )-$("&;D

 &
 "
  
 9
 

L )-$("&;D

 &
 "
  
 9
 

r   c                      e Zd ZddZy)r   c                z    || _         t        |j                        | _        t        |j                        | _        y N)_voicer   r4   r:   r   voices     r   __init__z%VoiceResourceWithRawResponse.__init__   s1    /NN
 ,JJ
	r   NrT   r   r;   NonerD   rE   rF   rU   rG   r   r   r   r          
r   r   c                      e Zd ZddZy)rJ   c                z    || _         t        |j                        | _        t        |j                        | _        y rQ   )rR   r   r4   r:   rS   s     r   rU   z*AsyncVoiceResourceWithRawResponse.__init__   s1    5NN
 2JJ
	r   NrT   r   r;   rW   rX   rG   r   r   rJ   rJ      rY   r   rJ   c                      e Zd ZddZy)r!   c                z    || _         t        |j                        | _        t        |j                        | _        y rQ   )rR   r   r4   r:   rS   s     r   rU   z+VoiceResourceWithStreamingResponse.__init__   s1    4NN
 1JJ
	r   NrV   rX   rG   r   r   r!   r!      rY   r   r!   c                      e Zd ZddZy)rL   c                z    || _         t        |j                        | _        t        |j                        | _        y rQ   )rR   r   r4   r:   rS   s     r   rU   z0AsyncVoiceResourceWithStreamingResponse.__init__   s1    :NN
 7JJ
	r   Nr\   rX   rG   r   r   rL   rL      rY   r   rL   ) 
__future__r   httpx_typesr   r   r   r   r	   _compatr
   	_resourcer   r   	_responser   r   r   r   _base_clientr   types.voice_responser   types.voice_list_responser   __all__r   r   r   rJ   r!   rL   rG   r   r   <module>rk      s    #  > > % 9  0 0 90
1F
O F
RF
) F
R	
 	
	
 	
	
 	
	
 	
r   