o
    lWi                     @  s   d dl mZ d dlZddlmZmZ ddlmZ ddlm	Z	 ddl
mZmZ ejr1dd	lmZmZ G d
d dZG dd dZdS )    )annotationsN   )AsyncClientWrapperSyncClientWrapper)RequestOptions)User   )AsyncRawUserClientRawUserClient)AsyncSubscriptionClientSubscriptionClientc                   @  @   e Zd ZdddZedddZd	d
dddZedd Zd	S )
UserClientclient_wrapperr   c                C     t |d| _|| _d | _d S Nr   )r
   _raw_client_client_wrapper_subscriptionselfr    r   Z/var/www/html/asistente-voz-ia/venv/lib/python3.10/site-packages/elevenlabs/user/client.py__init__      
zUserClient.__init__returnr
   c                 C     | j S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawUserClient
        r   r   r   r   r   with_raw_response      	zUserClient.with_raw_responseNrequest_optionsr#   typing.Optional[RequestOptions]r   c                C  s   | j j|d}|jS )a  
        Gets information about the user

        Parameters
        ----------
        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        User
            Successful Response

        Examples
        --------
        from elevenlabs import ElevenLabs

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.user.get()
        r"   r   getdatar   r#   	_responser   r   r   r&   !   s   zUserClient.getc                 C  *   | j d u rddlm} || jd| _ | j S )Nr   )r   r   )r   subscription.clientr   r   )r   r   r   r   r   subscription;      
zUserClient.subscription)r   r   )r   r
   r#   r$   r   r   __name__
__module____qualname__r   propertyr    r&   r,   r   r   r   r   r      s    

r   c                   @  r   )AsyncUserClientr   r   c                C  r   r   )r	   r   r   r   r   r   r   r   r   E   r   zAsyncUserClient.__init__r   r	   c                 C  r   )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawUserClient
        r   r   r   r   r   r    J   r!   z!AsyncUserClient.with_raw_responseNr"   r#   r$   r   c                  s   | j j|dI dH }|jS )a-  
        Gets information about the user

        Parameters
        ----------
        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        User
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.user.get()


        asyncio.run(main())
        r"   Nr%   r(   r   r   r   r&   U   s   zAsyncUserClient.getc                 C  r*   )Nr   )r   r   )r   r+   r   r   )r   r   r   r   r   r,   w   r-   zAsyncUserClient.subscription)r   r   )r   r	   r.   r/   r   r   r   r   r4   D   s    

"r4   )
__future__r   typingcore.client_wrapperr   r   core.request_optionsr   
types.userr   
raw_clientr	   r
   TYPE_CHECKINGr+   r   r   r   r4   r   r   r   r   <module>   s   4