
    b6i                         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                  e j                  d	      Z G d
 d      Z G d d      Zy)    N   )core)AsyncClientWrapperSyncClientWrapper)RequestOptions)"VerifyPvcVoiceCaptchaResponseModel   )AsyncRawCaptchaClientRawCaptchaClient.c            	           e Zd ZdefdZedefd       Zdddede	j                  e   ddfd	Zddded
ej                  de	j                  e   defdZy)CaptchaClientclient_wrapperc                &    t        |      | _        y N)r   )r   _raw_clientselfr   s     |/root/.openclaw/workspace/visionaryfx/venv/lib/python3.12/site-packages/elevenlabs/voices/pvc/verification/captcha/client.py__init__zCaptchaClient.__init__   s    +>J    returnc                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawCaptchaClient
        r   r   s    r   with_raw_responsezCaptchaClient.with_raw_response        r   Nrequest_optionsvoice_idr   c                T    | j                   j                  ||      }|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   	_responses       r   r"   zCaptchaClient.get   s)    6 $$((?(S	~~r   	recordingc                V    | j                   j                  |||      }|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%   s        r   r*   zCaptchaClient.verify<   s-    B $$++H	[j+k	~~r   )__name__
__module____qualname__r   r   propertyr   r   strtypingOptionalr   r"   r   Filer   r*    r   r   r   r      s    K*; K  #3     X\ C V__^5T `d > jn""+/99"GMWeGf"	+"r   r   c            	           e Zd ZdefdZedefd       Zdddede	j                  e   ddfd	Zddded
ej                  de	j                  e   defdZy)AsyncCaptchaClientr   c                &    t        |      | _        y r   )r
   r   r   s     r   r   zAsyncCaptchaClient.__init__b   s    0Or   r   c                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawCaptchaClient
        r   r   s    r   r   z$AsyncCaptchaClient.with_raw_responsee   r   r   Nr   r   r   c                p   K   | j                   j                  ||       d{   }|j                  S 7 w)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$   s       r   r"   zAsyncCaptchaClient.getp   s7     F **..x.YY	~~ Zs   !646r&   c                r   K   | j                   j                  |||       d{   }|j                  S 7 w)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+   s        r   r*   zAsyncCaptchaClient.verify   s:     R **11(iap1qq	~~ rs   "757)r,   r-   r.   r   r   r/   r
   r   r0   r1   r2   r   r"   r   r3   r   r*   r4   r   r   r6   r6   a   s    P*< P  #8     ^b $# $6??>;Z $fj $N jn**+/99*GMWeGf*	+*r   r6   )r1    r   core.client_wrapperr   r   core.request_optionsr   -types.verify_pvc_voice_captcha_response_modelr   
raw_clientr
   r   castAnyOMITr   r6   r4   r   r   <module>rC      sJ      J 4 a ? v{{6::s#O Od_ _r   