o
    lWi%                     @  s   d dl mZ 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jr7dd
lmZmZ eejdZG dd dZG dd dZdS )    )annotationsN   )core)AsyncClientWrapperSyncClientWrapper)RequestOptions))RequestPvcManualVerificationResponseModel   )AsyncRawVerificationClientRawVerificationClient)AsyncCaptchaClientCaptchaClient.c                   @  B   e Zd ZdddZedddZed	d
dddZedd Zd	S )VerificationClientclient_wrapperr   c                C     t |d| _|| _d | _d S Nr   )r   _raw_client_client_wrapper_captchaselfr    r   m/var/www/html/asistente-voz-ia/venv/lib/python3.10/site-packages/elevenlabs/voices/pvc/verification/client.py__init__      
zVerificationClient.__init__returnr   c                 C     | j S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawVerificationClient
        r   r   r   r   r   with_raw_response      	z$VerificationClient.with_raw_responseN
extra_textrequest_optionsvoice_idstrfilestyping.List[core.File]r$   typing.Optional[str]r%   typing.Optional[RequestOptions]r   c                C  s   | j j||||d}|jS )a  
        Request manual verification for a 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.

        files : typing.List[core.File]
            See core.File for more documentation

        extra_text : typing.Optional[str]
            Extra text to be used in the manual verification process.

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

        Returns
        -------
        RequestPvcManualVerificationResponseModel
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.voices.pvc.verification.request(
            voice_id="21m00Tcm4TlvDq8ikWAM",
        )
        r(   r$   r%   r   requestdatar   r&   r(   r$   r%   	_responser   r   r   r.   $   s   )zVerificationClient.requestc                 C  *   | j d u rddlm} || jd| _ | j S )Nr	   )r   r   )r   captcha.clientr   r   )r   r   r   r   r   captchaR      
zVerificationClient.captcha)r   r   )r   r   
r&   r'   r(   r)   r$   r*   r%   r+   r   r   	__name__
__module____qualname__r   propertyr!   OMITr.   r4   r   r   r   r   r      s    
.r   c                   @  r   )AsyncVerificationClientr   r   c                C  r   r   )r
   r   r   r   r   r   r   r   r   \   r   z AsyncVerificationClient.__init__r   r
   c                 C  r   )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawVerificationClient
        r   r    r   r   r   r!   a   r"   z)AsyncVerificationClient.with_raw_responseNr#   r&   r'   r(   r)   r$   r*   r%   r+   r   c                  s"   | j j||||dI dH }|jS )a	  
        Request manual verification for a 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.

        files : typing.List[core.File]
            See core.File for more documentation

        extra_text : typing.Optional[str]
            Extra text to be used in the manual verification process.

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

        Returns
        -------
        RequestPvcManualVerificationResponseModel
            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.request(
                voice_id="21m00Tcm4TlvDq8ikWAM",
            )


        asyncio.run(main())
        r,   Nr-   r0   r   r   r   r.   l   s
   1zAsyncVerificationClient.requestc                 C  r2   )Nr	   )r   r   )r   r3   r   r   )r   r   r   r   r   r4      r5   zAsyncVerificationClient.captcha)r   r   )r   r
   r6   r7   r   r   r   r   r=   [   s    
6r=   )
__future__r   typing r   core.client_wrapperr   r   core.request_optionsr   4types.request_pvc_manual_verification_response_modelr   
raw_clientr
   r   TYPE_CHECKINGr3   r   r   castAnyr<   r   r=   r   r   r   r   <module>   s   H