
    b6iI                         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),ConversationInitiationClientDataRequestInput)SipTrunkOutboundCallResponse   )AsyncRawSipTrunkClientRawSipTrunkClient.c                       e Zd ZdefdZedefd       Zeddde	de	d	e	d
e
j                  e   de
j                  e   defdZy)SipTrunkClientclient_wrapperc                &    t        |      | _        y N)r   )r   _raw_clientselfr   s     x/root/.openclaw/workspace/visionaryfx/venv/lib/python3.12/site-packages/elevenlabs/conversational_ai/sip_trunk/client.py__init__zSipTrunkClient.__init__   s    ,NK    returnc                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawSipTrunkClient
        r   r   s    r   with_raw_responsez SipTrunkClient.with_raw_response        r   N#conversation_initiation_client_datarequest_optionsagent_idagent_phone_number_id	to_numberr   r   c                Z    | j                   j                  |||||      }|j                  S )aI  
        Handle an outbound call via SIP trunk

        Parameters
        ----------
        agent_id : str

        agent_phone_number_id : str

        to_number : str

        conversation_initiation_client_data : typing.Optional[ConversationInitiationClientDataRequestInput]

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

        Returns
        -------
        SipTrunkOutboundCallResponse
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.conversational_ai.sip_trunk.outbound_call(
            agent_id="agent_id",
            agent_phone_number_id="agent_phone_number_id",
            to_number="to_number",
        )
        r    r!   r"   r   r   r   outbound_calldatar   r    r!   r"   r   r   	_responses          r   r&   zSipTrunkClient.outbound_call   s;    V $$22"70S+ 3 
	 ~~r   )__name__
__module____qualname__r   r   propertyr   r   OMITstrtypingOptionalr   r   r   r&    r   r   r   r      s    L*; L  #4      nr;?2 2  #	2
 2 .4__=i-j2  82 
&2r   r   c                       e Zd ZdefdZedefd       Zeddde	de	d	e	d
e
j                  e   de
j                  e   defdZy)AsyncSipTrunkClientr   c                &    t        |      | _        y r   )r
   r   r   s     r   r   zAsyncSipTrunkClient.__init__T   s    1Pr   r   c                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawSipTrunkClient
        r   r   s    r   r   z%AsyncSipTrunkClient.with_raw_responseW   r   r   Nr   r    r!   r"   r   r   c                v   K   | j                   j                  |||||       d{   }|j                  S 7 w)a  
        Handle an outbound call via SIP trunk

        Parameters
        ----------
        agent_id : str

        agent_phone_number_id : str

        to_number : str

        conversation_initiation_client_data : typing.Optional[ConversationInitiationClientDataRequestInput]

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

        Returns
        -------
        SipTrunkOutboundCallResponse
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.conversational_ai.sip_trunk.outbound_call(
                agent_id="agent_id",
                agent_phone_number_id="agent_phone_number_id",
                to_number="to_number",
            )


        asyncio.run(main())
        r$   Nr%   r(   s          r   r&   z!AsyncSipTrunkClient.outbound_callb   sI     f **88"70S+ 9 
 
	 ~~
s   $979)r*   r+   r,   r   r   r-   r
   r   r.   r/   r0   r1   r   r   r   r&   r2   r   r   r4   r4   S   s    Q*< Q  #9      nr;?: :  #	:
 : .4__=i-j:  8: 
&:r   r4   )r0   core.client_wrapperr   r   core.request_optionsr   7types.conversation_initiation_client_data_request_inputr   &types.sip_trunk_outbound_call_responser   
raw_clientr
   r   castAnyr.   r   r4   r2   r   r   <module>r?      sJ     H 2 s R A v{{6::s#A AHI Ir   