o
    lWi                     @   sz   d dl Z ddlm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 e jd	ZG d
d dZG dd dZdS )    N   )core)AsyncClientWrapperSyncClientWrapper)RequestOptions)"VerifyPvcVoiceCaptchaResponseModel   )AsyncRawCaptchaClientRawCaptchaClient.c                	   @   v   e Zd ZdefddZedefddZddd	ed
e	j
e ddfddZddd	edejd
e	j
e defddZdS )CaptchaClientclient_wrapperc                C      t |d| _d S N)r   )r
   _raw_clientselfr    r   u/var/www/html/asistente-voz-ia/venv/lib/python3.10/site-packages/elevenlabs/voices/pvc/verification/captcha/client.py__init__      zCaptchaClient.__init__returnc                 C      | j S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawCaptchaClient
        r   r   r   r   r   with_raw_response      	zCaptchaClient.with_raw_responseNrequest_optionsvoice_idr   c                C   s   | j j||d}|jS )a  
        Get captcha for PVC voice verification.

        Parameters
        ----------
        voice_id : str
            Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.

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

        Returns
        -------
        None

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.voices.pvc.verification.captcha.get(
            voice_id="21m00Tcm4TlvDq8ikWAM",
        )
        r   r   getdatar   r   r   	_responser   r   r   r!      s   zCaptchaClient.get	recordingc                C   s   | j j|||d}|jS )a  
        Submit captcha verification for PVC voice.

        Parameters
        ----------
        voice_id : str
            Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.

        recording : core.File
            See core.File for more documentation

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

        Returns
        -------
        VerifyPvcVoiceCaptchaResponseModel
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.voices.pvc.verification.captcha.verify(
            voice_id="21m00Tcm4TlvDq8ikWAM",
        )
        r%   r   r   verifyr"   r   r   r%   r   r$   r   r   r   r(   <   s   !zCaptchaClient.verify)__name__
__module____qualname__r   r   propertyr
   r   strtypingOptionalr   r!   r   Filer   r(   r   r   r   r   r      s    "
r   c                	   @   r   )AsyncCaptchaClientr   c                C   r   r   )r	   r   r   r   r   r   r   b   r   zAsyncCaptchaClient.__init__r   c                 C   r   )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawCaptchaClient
        r   r   r   r   r   r   e   r   z$AsyncCaptchaClient.with_raw_responseNr   r   r   c                   s   | j j||dI dH }|jS )a  
        Get captcha for PVC voice verification.

        Parameters
        ----------
        voice_id : str
            Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.

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

        Returns
        -------
        None

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.voices.pvc.verification.captcha.get(
                voice_id="21m00Tcm4TlvDq8ikWAM",
            )


        asyncio.run(main())
        r   Nr    r#   r   r   r   r!   p   s   #zAsyncCaptchaClient.getr%   c                   s    | j j|||dI dH }|jS )a  
        Submit captcha verification for PVC voice.

        Parameters
        ----------
        voice_id : str
            Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.

        recording : core.File
            See core.File for more documentation

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

        Returns
        -------
        VerifyPvcVoiceCaptchaResponseModel
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.voices.pvc.verification.captcha.verify(
                voice_id="21m00Tcm4TlvDq8ikWAM",
            )


        asyncio.run(main())
        r&   Nr'   r)   r   r   r   r(      s   )zAsyncCaptchaClient.verify)r*   r+   r,   r   r   r-   r	   r   r.   r/   r0   r   r!   r   r1   r   r(   r   r   r   r   r2   a   s    "
'r2   )r/    r   core.client_wrapperr   r   core.request_optionsr   -types.verify_pvc_voice_captcha_response_modelr   
raw_clientr	   r
   castAnyOMITr   r2   r   r   r   r   <module>   s   R