
    b6i                        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                  rdd	lmZmZ  G d
 d      Z G d d      Zy)    )annotationsN   )AsyncClientWrapperSyncClientWrapper)RequestOptions)User   )AsyncRawUserClientRawUserClient)AsyncSubscriptionClientSubscriptionClientc                  D    e Zd ZddZedd       Zddd	dZed        Zy)

UserClientc               B    t        |      | _        || _        d | _        y Nclient_wrapper)r   _raw_client_client_wrapper_subscriptionselfr   s     a/root/.openclaw/workspace/visionaryfx/venv/lib/python3.12/site-packages/elevenlabs/user/client.py__init__zUserClient.__init__   s    (G-BF    c                    | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawUserClient
        r   r   s    r   with_raw_responsezUserClient.with_raw_response        r   Nrequest_optionsc               R    | j                   j                  |      }|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"   	_responses      r   r%   zUserClient.get!   s'    . $$(((I	~~r   c                n    | j                   ddlm}  || j                        | _         | j                   S )Nr	   )r   r   )r   subscription.clientr   r   )r   r   s     r   subscriptionzUserClient.subscription;   s0    %?!34CWCW!XD!!!r   )r   r   )returnr   r"   ztyping.Optional[RequestOptions]r,   r   __name__
__module____qualname__r   propertyr   r%   r+    r   r   r   r      s<    G
     IM 4 " "r   r   c                  D    e Zd ZddZedd       Zddd	dZed        Zy)
AsyncUserClientc               B    t        |      | _        || _        d | _        y r   )r
   r   r   r   r   s     r   r   zAsyncUserClient.__init__E   s    -^L-GKr   c                    | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawUserClient
        r   r   s    r   r   z!AsyncUserClient.with_raw_responseJ   r    r   Nr!   c               n   K   | j                   j                  |       d{   }|j                  S 7 w)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'   s      r   r%   zAsyncUserClient.getU   s4     > **...OO	~~ Ps    535c                n    | j                   ddlm}  || j                        | _         | j                   S )Nr	   )r   r   )r   r*   r   r   )r   r   s     r   r+   zAsyncUserClient.subscriptionw   s0    %D!8H\H\!]D!!!r   )r   r   )r,   r
   r-   r.   r3   r   r   r5   r5   D   s=    L
     OS  D " "r   r5   )
__future__r   typingcore.client_wrapperr   r   core.request_optionsr   
types.userr   
raw_clientr
   r   TYPE_CHECKINGr*   r   r   r   r5   r3   r   r   <module>rA      s:    #  G 1  9	P1" 1"h9" 9"r   