
    :Qg:                         d Z ddlZddlmZ ddlmZ ddlmZ ddl	m
Z
mZmZmZ ddlmZ dd	lmZ dd
lmZ  G d d      Zy)zACode generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.    N   )General)SDKConfiguration)RetryConfig)CallableDictOptionalUnion)utils)SDKHooks)sharedc                       e Zd ZU eed<   eed<   	 	 	 	 	 	 ddeee   e	g ee   f   f   dee   dee   dee
eef      deej                     d	ee   d
dfdZd Zy)UnstructuredClientgeneralsdk_configurationNapi_key_authserver
server_url
url_paramsclientretry_configreturnc                    |t        j                         }t              rfd}nt        j                        }||t        j                  ||      }t        |||||      | _        t               }| j                  j                         ^}	}
|j                  |	| j                  j                        \  }| j                  _        |	|k7  r|| j                  _        || j                  j                  d<   | j                          y)a  Instantiates the SDK configuring it with the provided parameters.

        :param api_key_auth: The api_key_auth required for authentication
        :type api_key_auth: Union[Optional[str], Callable[[], Optional[str]]]
        :param server: The server by name to use for all operations
        :type server: str
        :param server_url: The server URL to use for all operations
        :type server_url: str
        :param url_params: Parameters to optionally template the server URL with
        :type url_params: Dict[str, str]
        :param client: The requests.Session HTTP client to use for all operations
        :type client: requests_http.Session
        :param retry_config: The utils.RetryConfig to use globally
        :type retry_config: RetryConfig
        Nc                  :    t        j                                 S )Nr   )r   Securityr   s   T/var/www/html/answerous/venv/lib/python3.12/site-packages/unstructured_client/sdk.pysecurityz-UnstructuredClient.__init__.<locals>.security,   s    lnEE    r   )r   _hooks)requests_httpSessioncallabler   r   r   template_urlr   r   r   get_server_detailssdk_initr   r   __dict__
_init_sdks)selfr   r   r   r   r   r   r   hookscurrent_server_url_s    `         r   __init__zUnstructuredClient.__init__   s    . >"**,FL!F lCH!%"//
JG
 "2%"
 
!%!7!7!J!J!LQ49NNCUW[WmWmWtWt4u1
D**1+0:D""- 5:''1r   c                 8    t        | j                        | _        y )N)r   r   r   )r)   s    r   r(   zUnstructuredClient._init_sdksK   s    t556r   )NNNNNN)__name__
__module____qualname__r   __annotations__r   r
   r	   strr   r   r!   r"   r   r-   r(    r   r   r   r      s    '' TX)--18<;?7;7$Xc]HR#=N4O%OP7!#7 &c]7 &d38n5	7
 "-"7"787  (47 7t7r   r   )__doc__requestsr!   r   r   sdkconfigurationr   utils.retriesr   typingr   r   r	   r
   unstructured_clientr   unstructured_client._hooksr   unstructured_client.modelsr   r   r4   r   r   <module>r=      s/    G    . & 2 2 % / -@7 @7r   