
    Ng                         d Z ddlmZ ddlmZmZ ddlmZ ddlm	Z	m
Z
 ddlmZ ddlZdd	lmZmZmZmZmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZmZ  G d de          ZdS )zACode generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.   )BaseSDK)AsyncHttpClient
HttpClient)SDKConfiguration)Loggerget_default_logger)RetryConfig    N)AnyCallableDictOptionalUnion)utils)SDKHooks)General)shared)OptionalNullableUNSETc                      e Zd ZU eed<   ddddddeddf	deeee         e	g ee         f         f                  dee         dee         dee
eef                  dee         dee         d	ee         d
ee         dee         ddfdZd ZdS )UnstructuredClientgeneralNapi_key_authserver
server_url
url_paramsclientasync_clientretry_config
timeout_msdebug_loggerreturnc
                     |t          j                    }t          t          |          t                    s
J d            |t          j                    }|	t                      }	t          t          |          t                    s
J d            d}
t                    rfd}
nt          j
                  }
||t          j        ||          }t          j        | t          |||
|||||	                     t!                      }| j                                        ^}}|                    || j        j                  \  }| j        _        ||k    r|| j        _        || j        j        d<   |                                  dS )a  Instantiates the SDK configuring it with the provided parameters.

        :param api_key_auth: The api_key_auth required for authentication
        :param server: The server by name to use for all methods
        :param server_url: The server URL to use for all methods
        :param url_params: Parameters to optionally template the server URL with
        :param client: The HTTP client to use for all synchronous methods
        :param async_client: The Async HTTP client to use for all asynchronous methods
        :param retry_config: The retry configuration to use for all supported methods
        :param timeout_ms: Optional request timeout applied to each operation in milliseconds
        Nz;The provided client must implement the HttpClient protocol.zFThe provided async_client must implement the AsyncHttpClient protocol.c                  >    t          j                                S )Nr   )r   Securityr%   s   S/var/www/html/ai-engine/env/lib/python3.11/site-packages/unstructured_client/sdk.py<lambda>z-UnstructuredClient.__init__.<locals>.<lambda>@   s    vLLNNKKK     r%   )r   r   securityr   r   r   r    r!   _hooks)httpxClient
issubclasstyper   AsyncClientr   r   callabler   r&   r   template_urlr   __init__r   r   sdk_configurationget_server_detailssdk_initr   r   __dict__
_init_sdks)selfr   r   r   r   r   r   r   r    r!   r*   hookscurrent_server_url_s    `            r'   r3   zUnstructuredClient.__init__   s   2 >\^^FLL*
 
 	I 	IH	I 	I 	I  ,..L-//L
 
 	T 	TS	T 	T 	T L!! 	BKKKKHHLAAAH!%"/
JGG
)!%)%)	 	 		
 	
 	
 

!%!7!J!J!L!LQ49NN 6 =5
 5
1
D*1 ++0:D"- 5:'1r)   c                 8    t          | j                  | _        d S )N)r   r4   r   )r9   s    r'   r8   zUnstructuredClient._init_sdksd   s    t566r)   )__name__
__module____qualname__r   __annotations__r   r   r   strr   r   r   r   r   r	   intr   r3   r8    r)   r'   r   r      s*          $$(/3'+266;$()-N N(3-"hsm*;!<<=
N
 N SMN T#s(^,N $N /N '{3N SMN v&N 
N N N N`7 7 7 7 7r)   r   ) __doc__basesdkr   
httpclientr   r   sdkconfigurationr   utils.loggerr   r   utils.retriesr	   r,   typingr   r   r   r   r   unstructured_clientr   unstructured_client._hooksr   unstructured_client.generalr   unstructured_client.modelsr   unstructured_client.typesr   r   r   rD   r)   r'   <module>rQ      sB   G G       3 3 3 3 3 3 3 3 . . . . . . 4 4 4 4 4 4 4 4 & & & & & &  7 7 7 7 7 7 7 7 7 7 7 7 7 7 % % % % % % / / / / / / / / / / / / - - - - - - = = = = = = = =T7 T7 T7 T7 T7 T7 T7 T7 T7 T7r)   