
    b6i%                        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                  rdd
lmZmZ  ej&                  ej(                  d      Z G d d      Z G d d      Zy)    )annotationsN   )core)AsyncClientWrapperSyncClientWrapper)RequestOptions))RequestPvcManualVerificationResponseModel   )AsyncRawVerificationClientRawVerificationClient)AsyncCaptchaClientCaptchaClient.c                  X    e Zd ZddZedd       Zedd	 	 	 	 	 	 	 	 	 d	dZed        Zy)
VerificationClientc               B    t        |      | _        || _        d | _        y Nclient_wrapper)r   _raw_client_client_wrapper_captchaselfr   s     t/root/.openclaw/workspace/visionaryfx/venv/lib/python3.12/site-packages/elevenlabs/voices/pvc/verification/client.py__init__zVerificationClient.__init__   s    0O-8<    c                    | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawVerificationClient
        r   r   s    r   with_raw_responsez$VerificationClient.with_raw_response        r   N
extra_textrequest_optionsc               X    | j                   j                  ||||      }|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",
        )
        filesr#   r$   r   requestdatar   voice_idr'   r#   r$   	_responses         r   r)   zVerificationClient.request$   s5    R $$,,Ej/ - 
	 ~~r   c                n    | j                   ddlm}  || j                        | _         | j                   S )Nr
   )r   r   )r   captcha.clientr   r   )r   r   s     r   captchazVerificationClient.captchaR   s+    == 5)9M9MNDM}}r   )r   r   )returnr   
r,   strr'   ztyping.List[core.File]r#   ztyping.Optional[str]r$   ztyping.Optional[RequestOptions]r1   r	   	__name__
__module____qualname__r   propertyr    OMITr)   r0    r   r   r   r      sm    =
     ,0;?,, &	,
 ), 9, 
3,\  r   r   c                  X    e Zd ZddZedd       Zedd	 	 	 	 	 	 	 	 	 d	dZed        Zy)
AsyncVerificationClientc               B    t        |      | _        || _        d | _        y r   )r   r   r   r   r   s     r   r   z AsyncVerificationClient.__init__\   s    5^T-=Ar   c                    | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawVerificationClient
        r   r   s    r   r    z)AsyncVerificationClient.with_raw_responsea   r!   r   Nr"   c               t   K   | j                   j                  ||||       d{   }|j                  S 7 w)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(   r+   s         r   r)   zAsyncVerificationClient.requestl   sC     b **22Ej/ 3 
 
	 ~~
s   #868c                n    | j                   ddlm}  || j                        | _         | j                   S )Nr
   )r   r   )r   r/   r   r   )r   r   s     r   r0   zAsyncVerificationClient.captcha   s+    == :.d>R>RSDM}}r   )r   r   )r1   r   r2   r4   r:   r   r   r<   r<   [   sn    B
     ,0;?44 &	4
 )4 94 
34l  r   r<   )
__future__r   typing r   core.client_wrapperr   r   core.request_optionsr   4types.request_pvc_manual_verification_response_modelr	   
raw_clientr   r   TYPE_CHECKINGr/   r   r   castAnyr9   r   r<   r:   r   r   <module>rK      sW    #   I 3 n I	Av{{6::s#E EPM Mr   