
    b6i"                         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)GetWhatsAppAccountResponse)ListWhatsAppAccountsResponse   )AsyncRawWhatsappAccountsClientRawWhatsappAccountsClient.c            	       B   e Zd ZdefdZedefd       Zdddede	j                  e   defd	Zdddede	j                  e   de	j                  fd
Zedddede	j                  e   de	j                  e   de	j                  fdZddde	j                  e   defdZy)WhatsappAccountsClientclient_wrapperc                &    t        |      | _        y N)r   )r   _raw_clientselfr   s     /root/.openclaw/workspace/visionaryfx/venv/lib/python3.12/site-packages/elevenlabs/conversational_ai/whatsapp_accounts/client.py__init__zWhatsappAccountsClient.__init__   s    4NS    returnc                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawWhatsappAccountsClient
        r   r   s    r   with_raw_responsez(WhatsappAccountsClient.with_raw_response        r   Nrequest_optionsphone_number_idr   c                T    | j                   j                  ||      }|j                  S )aB  
        Get a WhatsApp account

        Parameters
        ----------
        phone_number_id : str

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

        Returns
        -------
        GetWhatsAppAccountResponse
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.conversational_ai.whatsapp_accounts.get(
            phone_number_id="phone_number_id",
        )
        r   r   getdatar   r   r   	_responses       r   r"   zWhatsappAccountsClient.get   s)    : $$((/(Z	~~r   c                T    | j                   j                  ||      }|j                  S )a8  
        Delete a WhatsApp account

        Parameters
        ----------
        phone_number_id : str

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

        Returns
        -------
        typing.Any
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.conversational_ai.whatsapp_accounts.delete(
            phone_number_id="phone_number_id",
        )
        r   r   deleter#   r$   s       r   r(   zWhatsappAccountsClient.delete>   s)    6 $$++O_+]	~~r   assigned_agent_idr   r*   c                V    | j                   j                  |||      }|j                  S )aj  
        Update a WhatsApp account

        Parameters
        ----------
        phone_number_id : str

        assigned_agent_id : typing.Optional[str]

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

        Returns
        -------
        typing.Any
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.conversational_ai.whatsapp_accounts.update(
            phone_number_id="phone_number_id",
        )
        r)   r   updater#   r   r   r*   r   r%   s        r   r-   zWhatsappAccountsClient.update\   s5    F $$++/@Ra , 
	 ~~r   c                R    | j                   j                  |      }|j                  S )a  
        List all WhatsApp accounts

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

        Returns
        -------
        ListWhatsAppAccountsResponse
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.conversational_ai.whatsapp_accounts.list()
        r   r   listr#   r   r   r%   s      r   r1   zWhatsappAccountsClient.list   s'    . $$))/)J	~~r   )__name__
__module____qualname__r   r   propertyr   r   strtypingOptionalr   r   r"   Anyr(   OMITr-   r   r1    r   r   r   r      s    T*; T  #<     [_"8>8W	#@ bf c v~?^ jpjtjt D 37;?&& "??3/	&
  8& 
&P JN v~'F Rn r   r   c            	       B   e Zd ZdefdZedefd       Zdddede	j                  e   defd	Zdddede	j                  e   de	j                  fd
Zedddede	j                  e   de	j                  e   de	j                  fdZddde	j                  e   defdZy)AsyncWhatsappAccountsClientr   c                &    t        |      | _        y r   )r
   r   r   s     r   r   z$AsyncWhatsappAccountsClient.__init__   s    9Xr   r   c                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawWhatsappAccountsClient
        r   r   s    r   r   z-AsyncWhatsappAccountsClient.with_raw_response   r   r   Nr   r   r   c                p   K   | j                   j                  ||       d{   }|j                  S 7 w)a  
        Get a WhatsApp account

        Parameters
        ----------
        phone_number_id : str

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

        Returns
        -------
        GetWhatsAppAccountResponse
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.conversational_ai.whatsapp_accounts.get(
                phone_number_id="phone_number_id",
            )


        asyncio.run(main())
        r   Nr!   r$   s       r   r"   zAsyncWhatsappAccountsClient.get   s8     J **..P_.``	~~ a   !646c                p   K   | j                   j                  ||       d{   }|j                  S 7 w)a  
        Delete a WhatsApp account

        Parameters
        ----------
        phone_number_id : str

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

        Returns
        -------
        typing.Any
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.conversational_ai.whatsapp_accounts.delete(
                phone_number_id="phone_number_id",
            )


        asyncio.run(main())
        r   Nr'   r$   s       r   r(   z"AsyncWhatsappAccountsClient.delete   s8     J **11/Sb1cc	~~ drB   r)   r*   c                r   K   | j                   j                  |||       d{   }|j                  S 7 w)a  
        Update a WhatsApp account

        Parameters
        ----------
        phone_number_id : str

        assigned_agent_id : typing.Optional[str]

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

        Returns
        -------
        typing.Any
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.conversational_ai.whatsapp_accounts.update(
                phone_number_id="phone_number_id",
            )


        asyncio.run(main())
        r)   Nr,   r.   s        r   r-   z"AsyncWhatsappAccountsClient.update   sC     V **11/@Ra 2 
 
	 ~~
s   "757c                n   K   | j                   j                  |       d{   }|j                  S 7 w)a`  
        List all WhatsApp accounts

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

        Returns
        -------
        ListWhatsAppAccountsResponse
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


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


        asyncio.run(main())
        r   Nr0   r2   s      r   r1   z AsyncWhatsappAccountsClient.list.  s4     > **///PP	~~ Qs    535)r3   r4   r5   r   r   r6   r
   r   r7   r8   r9   r   r   r"   r:   r(   r;   r-   r   r1   r<   r   r   r>   r>      s    Y*< Y  #A     [_&"&8>8W&	#&R [_&"&8>8W&	&X 37;?.. "??3/	.
  8. 
.` PT  V__^-L  Xt  r   r>   )r8   core.client_wrapperr   r   core.request_optionsr   $types.get_whats_app_account_responser   &types.list_whats_app_accounts_responser   
raw_clientr
   r   castr:   r;   r   r>   r<   r   r   <module>rL      sJ     H 2 N R Q v{{6::s#M M`o or   