
    b6ic                         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	 ddl
mZmZ  e j                  e j                  d	      Z G d
 d      Z G d d      Zy)    N   )AsyncClientWrapperSyncClientWrapper)RequestOptions)SeatType)"UpdateWorkspaceMemberResponseModel   )AsyncRawMembersClientRawMembersClient.c                       e Zd ZdefdZedefd       Zeeeddde	de
j                  e   d	e
j                  e   d
e
j                  e   de
j                  e   defdZy)MembersClientclient_wrapperc                &    t        |      | _        y N)r   )r   _raw_clientselfr   s     n/root/.openclaw/workspace/visionaryfx/venv/lib/python3.12/site-packages/elevenlabs/workspace/members/client.py__init__zMembersClient.__init__   s    +>J    returnc                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawMembersClient
        r   r   s    r   with_raw_responsezMembersClient.with_raw_response        r   N	is_lockedworkspace_roleworkspace_seat_typerequest_optionsemailr   r   r    r!   c                Z    | j                   j                  |||||      }|j                  S )aC  
        Updates attributes of a workspace member. Apart from the email identifier, all parameters will remain unchanged unless specified. This endpoint may only be called by workspace administrators.

        Parameters
        ----------
        email : str
            Email of the target user.

        is_locked : typing.Optional[bool]
            Whether to lock or unlock the user account.

        workspace_role : typing.Optional[SeatType]
            The workspace role of the user. This is deprecated, use `workspace_seat_type` instead.

        workspace_seat_type : typing.Optional[SeatType]
            The workspace seat type

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

        Returns
        -------
        UpdateWorkspaceMemberResponseModel
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.workspace.members.update(
            email="email",
        )
        r"   r   r   r    r!   r   updatedatar   r"   r   r   r    r!   	_responses          r   r&   zMembersClient.update   s;    Z $$++) 3+ , 
	 ~~r   )__name__
__module____qualname__r   r   propertyr   r   OMITstrtypingOptionalboolr   r   r   r&    r   r   r   r      s    K*; K  #3     ,0489=;?4 4 ??4(	4
 14 $__X64  84 
,4r   r   c                       e Zd ZdefdZedefd       Zeeeddde	de
j                  e   d	e
j                  e   d
e
j                  e   de
j                  e   defdZy)AsyncMembersClientr   c                &    t        |      | _        y r   )r
   r   r   s     r   r   zAsyncMembersClient.__init__V   s    0Or   r   c                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawMembersClient
        r   r   s    r   r   z$AsyncMembersClient.with_raw_responseY   r   r   Nr   r"   r   r   r    r!   c                v   K   | j                   j                  |||||       d{   }|j                  S 7 w)a  
        Updates attributes of a workspace member. Apart from the email identifier, all parameters will remain unchanged unless specified. This endpoint may only be called by workspace administrators.

        Parameters
        ----------
        email : str
            Email of the target user.

        is_locked : typing.Optional[bool]
            Whether to lock or unlock the user account.

        workspace_role : typing.Optional[SeatType]
            The workspace role of the user. This is deprecated, use `workspace_seat_type` instead.

        workspace_seat_type : typing.Optional[SeatType]
            The workspace seat type

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

        Returns
        -------
        UpdateWorkspaceMemberResponseModel
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.workspace.members.update(
                email="email",
            )


        asyncio.run(main())
        r$   Nr%   r(   s          r   r&   zAsyncMembersClient.updated   sI     j **11) 3+ 2 
 
	 ~~
s   $979)r*   r+   r,   r   r   r-   r
   r   r.   r/   r0   r1   r2   r   r   r   r&   r3   r   r   r5   r5   U   s    P*< P  #8     ,0489=;?< < ??4(	<
 1< $__X6<  8< 
,<r   r5   )r0   core.client_wrapperr   r   core.request_optionsr   types.seat_typer   ,types.update_workspace_member_response_modelr   
raw_clientr
   r   castAnyr.   r   r5   r3   r   r   <module>r@      sJ     H 2 ' ^ ? v{{6::s#C CLK Kr   