o
    iI                     @  sj   d dl mZ d dlZddlmZmZ ddlmZmZ ej	r%ddl
mZmZ G dd	 d	ZG d
d dZdS )    )annotationsN   )AsyncClientWrapperSyncClientWrapper   )AsyncRawSelfHostedClientRawSelfHostedClient)AsyncV1ClientV1Clientc                   @  0   e Zd ZdddZedddZed	d
 ZdS )SelfHostedClientclient_wrapperr   c                C     t |d| _|| _d | _d S Nr   )r   _raw_client_client_wrapper_v1selfr    r   O/home/ubuntu/.local/lib/python3.10/site-packages/deepgram/self_hosted/client.py__init__      
zSelfHostedClient.__init__returnr   c                 C     | j S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawSelfHostedClient
        r   r   r   r   r   with_raw_response      	z"SelfHostedClient.with_raw_responsec                 C  *   | j d u rddlm} || jd| _ | j S )Nr   )r
   r   )r   	v1.clientr
   r   )r   r
   r   r   r   v1      
zSelfHostedClient.v1N)r   r   )r   r   __name__
__module____qualname__r   propertyr   r"   r   r   r   r   r          

r   c                   @  r   )AsyncSelfHostedClientr   r   c                C  r   r   )r   r   r   r   r   r   r   r   r   )   r   zAsyncSelfHostedClient.__init__r   r   c                 C  r   )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawSelfHostedClient
        r   r   r   r   r   r   .   r   z'AsyncSelfHostedClient.with_raw_responsec                 C  r    )Nr   )r	   r   )r   r!   r	   r   )r   r	   r   r   r   r"   9   r#   zAsyncSelfHostedClient.v1N)r   r   )r   r   r$   r   r   r   r   r*   (   r)   r*   )
__future__r   typingcore.client_wrapperr   r   
raw_clientr   r   TYPE_CHECKINGr!   r	   r
   r   r*   r   r   r   r   <module>   s   