
    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)(WorkspaceServiceAccountListResponseModel   )AsyncRawServiceAccountsClientRawServiceAccountsClient)ApiKeysClientAsyncApiKeysClientc                  J    e Zd ZddZedd       Zdd	 	 	 d	dZed        Zy)
ServiceAccountsClientc               B    t        |      | _        || _        d | _        y Nclient_wrapper)r   _raw_client_client_wrapper	_api_keysselfr   s     m/root/.openclaw/workspace/visionaryfx/venv/lib/python3.12/site-packages/elevenlabs/service_accounts/client.py__init__zServiceAccountsClient.__init__   s    3>R-9=    c                    | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawServiceAccountsClient
        r   r   s    r   with_raw_responsez'ServiceAccountsClient.with_raw_response        r   Nrequest_optionsc               R    | j                   j                  |      }|j                  S )a  
        List all service accounts in the workspace

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

        Returns
        -------
        WorkspaceServiceAccountListResponseModel
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.service_accounts.list()
        r!   r   listdatar   r"   	_responses      r   r%   zServiceAccountsClient.list!   s'    2 $$))/)J	~~r   c                n    | j                   ddlm}  || j                        | _         | j                   S )Nr	   )r   r   )r   api_keys.clientr   r   )r   r   s     r   api_keyszServiceAccountsClient.api_keys=   s+    >>!6*$:N:NODN~~r   )r   r   )returnr   r"   ztyping.Optional[RequestOptions]r,   r   __name__
__module____qualname__r   propertyr   r%   r+    r   r   r   r      sK    >
     EI"A	18  r   r   c                  J    e Zd ZddZedd       Zdd	 	 	 d	dZed        Zy)
AsyncServiceAccountsClientc               B    t        |      | _        || _        d | _        y r   )r
   r   r   r   r   s     r   r   z#AsyncServiceAccountsClient.__init__G   s    8W->Br   c                    | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawServiceAccountsClient
        r   r   s    r   r   z,AsyncServiceAccountsClient.with_raw_responseL   r    r   Nr!   c               n   K   | j                   j                  |       d{   }|j                  S 7 w)ai  
        List all service accounts in the workspace

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

        Returns
        -------
        WorkspaceServiceAccountListResponseModel
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.service_accounts.list()


        asyncio.run(main())
        r!   Nr$   r'   s      r   r%   zAsyncServiceAccountsClient.listW   s5     B **///PP	~~ Q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#AsyncServiceAccountsClient.api_keys{   s+    >>!;/t?S?STDN~~r   )r   r   )r,   r
   r-   r.   r3   r   r   r5   r5   F   sM    C
     EI""A"	1"H  r   r5   )
__future__r   typingcore.client_wrapperr   r   core.request_optionsr   3types.workspace_service_account_list_response_modelr   
raw_clientr
   r   TYPE_CHECKINGr*   r   r   r   r5   r3   r   r   <module>rA      s:    #  G 1 j O	B3 3l; ;r   