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)(WorkspaceServiceAccountListResponseModel   )AsyncRawServiceAccountsClientRawServiceAccountsClient)ApiKeysClientAsyncApiKeysClientc                   @  @   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 )ServiceAccountsClientclient_wrapperr   c                C     t |d| _|| _d | _d S Nr   )r
   _raw_client_client_wrapper	_api_keysselfr    r   f/var/www/html/asistente-voz-ia/venv/lib/python3.10/site-packages/elevenlabs/service_accounts/client.py__init__      
zServiceAccountsClient.__init__returnr
   c                 C     | j S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawServiceAccountsClient
        r   r   r   r   r   with_raw_response      	z'ServiceAccountsClient.with_raw_responseNrequest_optionsr#   typing.Optional[RequestOptions]r   c                C  s   | j j|d}|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#   	_responser   r   r   r&   !   s   zServiceAccountsClient.listc                 C  *   | j d u rddlm} || jd| _ | j S )Nr   )r   r   )r   api_keys.clientr   r   )r   r   r   r   r   api_keys=      
zServiceAccountsClient.api_keys)r   r   )r   r
   r#   r$   r   r   __name__
__module____qualname__r   propertyr    r&   r,   r   r   r   r   r      s    
r   c                   @  r   )AsyncServiceAccountsClientr   r   c                C  r   r   )r	   r   r   r   r   r   r   r   r   G   r   z#AsyncServiceAccountsClient.__init__r   r	   c                 C  r   )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawServiceAccountsClient
        r   r   r   r   r   r    L   r!   z,AsyncServiceAccountsClient.with_raw_responseNr"   r#   r$   r   c                  s   | j j|dI dH }|jS )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(   r   r   r   r&   W   s   !zAsyncServiceAccountsClient.listc                 C  r*   )Nr   )r   r   )r   r+   r   r   )r   r   r   r   r   r,   {   r-   z#AsyncServiceAccountsClient.api_keys)r   r   )r   r	   r.   r/   r   r   r   r   r4   F   s    
$r4   )
__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   r4   r   r   r   r   <module>   s   6