
    -2i                    R   d dl mZ d dl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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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$dS )    )annotationsN   )_legacy_response)BodyOmitQueryHeadersNotGivenomit	not_given)maybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)make_request_options)client_secret_create_params)ClientSecretCreateResponseClientSecretsAsyncClientSecretsc                  V    e Zd Zedd            Zedd            ZeedddedddZdS )r   returnClientSecretsWithRawResponsec                     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/openai/openai-python#accessing-raw-response-data-eg-headers
        )r   selfs    g/var/www/html/pixcura-vrs/venv/lib/python3.11/site-packages/openai/resources/realtime/client_secrets.pywith_raw_responsezClientSecrets.with_raw_response   s     ,D111    "ClientSecretsWithStreamingResponsec                     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/openai/openai-python#with_streaming_response
        )r#   r   s    r    with_streaming_responsez%ClientSecrets.with_streaming_response   s     2$777r"   Nexpires_aftersessionextra_headersextra_query
extra_bodytimeoutr(   /client_secret_create_params.ExpiresAfter | Omitr)   *client_secret_create_params.Session | Omitr*   Headers | Noner+   Query | Noner,   Body | Noner-   'float | httpx.Timeout | None | NotGivenr   c          
         |                      dt          ||dt          j                  t	          ||||          t
                    S )n  
        Create a Realtime client secret with an associated session configuration.

        Args:
          expires_after: Configuration for the client secret expiration. Expiration refers to the time
              after which a client secret will no longer be valid for creating sessions. The
              session itself may continue after that time once started. A secret can be used
              to create multiple sessions until it expires.

          session: Session configuration to use for the client secret. Choose either a realtime
              session or a transcription session.

          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
        /realtime/client_secretsr(   r)   r*   r+   r,   r-   bodyoptionscast_to)_postr   r   ClientSecretCreateParamsr   r   r   r(   r)   r*   r+   r,   r-   s          r    createzClientSecrets.create(   sl    @ zz& %2&  ,D  )+Q[el   /  
 
 	
r"   )r   r   )r   r#   r(   r.   r)   r/   r*   r0   r+   r1   r,   r2   r-   r3   r   r   	__name__
__module____qualname__r   r!   r&   r   r   r@    r"   r    r   r      s        2 2 2 _2 8 8 8 _8 JN>B )-$("&;D-
 -
 -
 -
 -
 -
 -
 -
r"   c                  V    e Zd Zedd            Zedd            ZeedddedddZdS )r   r   !AsyncClientSecretsWithRawResponsec                     t          |           S r   )rH   r   s    r    r!   z$AsyncClientSecrets.with_raw_responseY   s     1666r"   'AsyncClientSecretsWithStreamingResponsec                     t          |           S r%   )rJ   r   s    r    r&   z*AsyncClientSecrets.with_streaming_responsec   s     7t<<<r"   Nr'   r(   r.   r)   r/   r*   r0   r+   r1   r,   r2   r-   r3   r   c          
        K   |                      dt          ||dt          j                   d{V t	          ||||          t
                     d{V S )r5   r6   r7   Nr8   r9   )r=   r   r   r>   r   r   r?   s          r    r@   zAsyncClientSecrets.createl   s      @ ZZ&,%2&  ,D        )+Q[el   /   
 
 
 
 
 
 
 
 	
r"   )r   rH   )r   rJ   rA   rB   rF   r"   r    r   r   X   s        7 7 7 _7 = = = _= JN>B )-$("&;D-
 -
 -
 -
 -
 -
 -
 -
r"   c                      e Zd ZddZdS )r   client_secretsr   r   Nonec                P    || _         t          j        |j                  | _        d S N)_client_secretsr   to_raw_response_wrapperr@   r   rN   s     r    __init__z%ClientSecretsWithRawResponse.__init__   s(    -&>!
 
r"   NrN   r   r   rO   rC   rD   rE   rU   rF   r"   r    r   r      (        
 
 
 
 
 
r"   r   c                      e Zd ZddZdS )rH   rN   r   r   rO   c                P    || _         t          j        |j                  | _        d S rQ   )rR   r   async_to_raw_response_wrapperr@   rT   s     r    rU   z*AsyncClientSecretsWithRawResponse.__init__   s(    -&D!
 
r"   NrN   r   r   rO   rW   rF   r"   r    rH   rH      rX   r"   rH   c                      e Zd ZddZdS )r#   rN   r   r   rO   c                F    || _         t          |j                  | _        d S rQ   )rR   r   r@   rT   s     r    rU   z+ClientSecretsWithStreamingResponse.__init__   s%    -2!
 
r"   NrV   rW   rF   r"   r    r#   r#      rX   r"   r#   c                      e Zd ZddZdS )rJ   rN   r   r   rO   c                F    || _         t          |j                  | _        d S rQ   )rR   r   r@   rT   s     r    rU   z0AsyncClientSecretsWithStreamingResponse.__init__   s%    -8!
 
r"   Nr\   rW   rF   r"   r    rJ   rJ      rX   r"   rJ   )%
__future__r   httpx r   _typesr   r   r   r	   r
   r   r   _utilsr   r   _compatr   	_resourcer   r   	_responser   r   _base_clientr   types.realtimer   ,types.realtime.client_secret_create_responser   __all__r   r   r   rH   r#   rJ   rF   r"   r    <module>rm      s   # " " " " "              K K K K K K K K K K K K K K K K K K < < < < < < < < & & & & & & : : : : : : : : Y Y Y Y Y Y Y Y 0 0 0 0 0 0 9 9 9 9 9 9 V V V V V V0
1A
 A
 A
 A
 A
O A
 A
 A
HA
 A
 A
 A
 A
) A
 A
 A
H
 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
r"   