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)!WorkspaceGroupByNameResponseModel   )AsyncRawGroupsClientRawGroupsClient)AsyncMembersClientMembersClientc                   @  @   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 )GroupsClientclient_wrapperr   c                C     t |d| _|| _d | _d S Nr   )r
   _raw_client_client_wrapper_membersselfr    r   f/var/www/html/asistente-voz-ia/venv/lib/python3.10/site-packages/elevenlabs/workspace/groups/client.py__init__      
zGroupsClient.__init__returnr
   c                 C     | j S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawGroupsClient
        r   r   r   r   r   with_raw_response      	zGroupsClient.with_raw_responseNrequest_optionsnamestrr#   typing.Optional[RequestOptions].typing.List[WorkspaceGroupByNameResponseModel]c                C  s   | j j||d}|jS )a  
        Searches for user groups in the workspace. Multiple or no groups may be returned.

        Parameters
        ----------
        name : str
            Name of the target group.

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

        Returns
        -------
        typing.List[WorkspaceGroupByNameResponseModel]
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.workspace.groups.search(
            name="name",
        )
        r$   r#   r   searchdatar   r$   r#   	_responser   r   r   r*   !   s   zGroupsClient.searchc                 C  *   | j d u rddlm} || jd| _ | j S )Nr   )r   r   )r   members.clientr   r   )r   r   r   r   r   membersB      
zGroupsClient.members)r   r   )r   r
   r$   r%   r#   r&   r   r'   __name__
__module____qualname__r   propertyr    r*   r0   r   r   r   r   r      s    
!r   c                   @  r   )AsyncGroupsClientr   r   c                C  r   r   )r	   r   r   r   r   r   r   r   r   L   r   zAsyncGroupsClient.__init__r   r	   c                 C  r   )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawGroupsClient
        r   r   r   r   r   r    Q   r!   z#AsyncGroupsClient.with_raw_responseNr"   r$   r%   r#   r&   r'   c                  s   | j j||dI dH }|jS )a  
        Searches for user groups in the workspace. Multiple or no groups may be returned.

        Parameters
        ----------
        name : str
            Name of the target group.

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

        Returns
        -------
        typing.List[WorkspaceGroupByNameResponseModel]
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.workspace.groups.search(
                name="name",
            )


        asyncio.run(main())
        r(   Nr)   r,   r   r   r   r*   \   s   &zAsyncGroupsClient.searchc                 C  r.   )Nr   )r   r   )r   r/   r   r   )r   r   r   r   r   r0      r1   zAsyncGroupsClient.members)r   r   )r   r	   r2   r3   r   r   r   r   r8   K   s    
)r8   )
__future__r   typingcore.client_wrapperr   r   core.request_optionsr   ,types.workspace_group_by_name_response_modelr   
raw_clientr	   r
   TYPE_CHECKINGr/   r   r   r   r8   r   r   r   r   <module>   s   ;