
    Mi|                     0   S r SSKJr  SSKJrJrJrJr  SSKJ	r	  SSK
JrJr  SSKJr  SSKrSSKrSS	KJrJrJrJrJrJrJr  SS
KJr  SSKJr  SSKJr  SSKJ r J!r!  SSK"r"\(       a$  SSK#J$r$  SSK%J&r&  SSK'J(r(  SSK)J*r*  SSK+J,r,  SSK-J.r.   " S S\5      r/g)zACode generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.   )BaseSDK)AsyncHttpClientClientOwner
HttpClientclose_clients)SDKConfiguration)Loggerget_default_logger)RetryConfig    N)AnyCallableDictOptionalTYPE_CHECKINGUnioncast)utils)SDKHooks)shared)OptionalNullableUNSET)Destinations)General)Jobs)Sources)	Templates)	Workflowsc                   F  ^  \ rS rSr% S\S'   S\S'   S\S'   S\S	'   S
\S'   S\S'   SSSSSSS.rSSSSSS\SS4	S\\\\	   \
/ \\	   4   4      S\\	   S\\	   S\\\	\	4      S\\   S\\   S\\   S\\   S\\   SS4S  jjrS!\	4S" jrU 4S# jrS$ rS% rS& rS' rS(rU =r$ ))UnstructuredClient   r   destinationsr   jobsr   sourcesr   	templatesr   	workflowsr   general)z unstructured_client.destinationsr   )zunstructured_client.jobsr   )zunstructured_client.sourcesr   )zunstructured_client.templatesr   )zunstructured_client.workflowsr   )zunstructured_client.generalr   )r"   r#   r$   r%   r&   r'   Napi_key_authserver
server_url
url_paramsclientasync_clientretry_config
timeout_msdebug_loggerreturnc
                   ^ Sn
Uc  [         R                  " 5       nSn
[        [        U5      [        5      (       d   S5       eSnUc  [         R
                  " 5       nSnU	c
  [        5       n	[        [        U5      [        5      (       d   S5       eSn[        T5      (       a  U4S jnO[        R                  " TS9nUb  Ub  [        R                  " X45      n[        R                  " U [        UU
UUUUUUUU	S9
5        [!        5       nXR"                  R$                  S	'   U R"                  R'                  5       tpUR)                  X5      u  o0R"                  l        X:w  a  X0R"                  l        [.        R0                  " U [2        [5        [6        U R"                  5      U R"                  R*                  U R"                  R8                  U R"                  R:                  U R"                  R<                  5        g)
au  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
TNFz;The provided client must implement the HttpClient protocol.zFThe provided async_client must implement the AsyncHttpClient protocol.c                  6   > [         R                  " T " 5       S9$ )Nr(   )r   Securityr4   s   q/var/www/eduai.edurigo.com/storigo/production/storigo_env/lib/python3.13/site-packages/unstructured_client/sdk.py<lambda>-UnstructuredClient.__init__.<locals>.<lambda>[   s    vLNK    r4   )
r,   client_suppliedr-   async_client_suppliedsecurityr*   r)   r.   r/   r0   _hooks)httpxClient
issubclasstyper   AsyncClientr
   r   callabler   r5   r   template_urlr   __init__r   r   sdk_configuration__dict__get_server_detailssdk_initr,   r*   weakreffinalizer   r   r   r:   r-   r;   )selfr(   r)   r*   r+   r,   r-   r.   r/   r0   r:   r;   r<   hookscurrent_server_url_s    `              r6   rE   UnstructuredClient.__init__*   s   2 >\\^F#OL*
 
 	IH	I 
 !% ,,.L$)!-/L
 
 	TS	T 
 L!!KHLAH!%"//
G
 /)&;!%)%)	
  
 5:''1!%!7!7!J!J!L49NN5
1
**1 +0:""-d445""))""22""//""88	
r9   namec                    XR                   ;   aS  U R                   U   u  p# [        R                  " U5      n[        XC5      nU" U R                  5      n[        XU5        U$ [        S[        U 5      R                   SU S35      e! [         a  n[        SU SU SU 35      UeS nAf[         a  n[        SU SU SU SU 35      UeS nAff = f)NzFailed to import module z for attribute z: zFailed to find class z in module 'z' object has no attribute ')
_sub_sdk_map	importlibimport_modulegetattrrF   setattrImportErrorAttributeErrorrA   __name__)rL   rQ   module_path
class_namemoduleklassinstancees           r6   __getattr__UnstructuredClient.__getattr__   s   $$$&*&7&7&=#K"00=3 !7!78H- T
##$$?vQG
 	
  $.{m?4&PRSTRUV " $+J<{;-_c^ddfghfijs$   A B 
CB''C4CCc                    > [        [        TU ]	  5       5      n[        U R                  R	                  5       5      n[        [        [        X-   5      5      5      $ N)listsuper__dir__rT   keyssortedset)rL   default_attrs
lazy_attrs	__class__s      r6   rh   UnstructuredClient.__dir__   sE    UW_./$++0023
d3}9:;<<r9   c                     U $ re    rL   s    r6   	__enter__UnstructuredClient.__enter__   s    r9   c                    #    U $ 7fre   rq   rr   s    r6   
__aenter__UnstructuredClient.__aenter__   s
     s   c                     U R                   R                  b?  U R                   R                  (       d$  U R                   R                  R                  5         S U R                   l        g re   )rF   r,   r:   closerL   exc_typeexc_valexc_tbs       r6   __exit__UnstructuredClient.__exit__   sI    ""))5**::""))//1(,%r9   c                    #    U R                   R                  bG  U R                   R                  (       d,  U R                   R                  R                  5       I S h  vN   S U R                   l        g  N7fre   )rF   r-   r;   acloserz   s       r6   	__aexit__UnstructuredClient.__aexit__   sW     ""//;**@@((55<<>>>.2+ ?s   AA5A3A5rq   )r[   
__module____qualname____firstlineno____annotations__rT   r   r   r   strr   r   r   r   r   r   intr	   rE   rb   rh   rs   rv   r~   r   __static_attributes____classcell__)rn   s   @r6   r    r       sJ     
LL4=CC=L  $$(/3'+266;$()-]
(3-"hsm*;!<<=
]

 ]
 SM]
 T#s(^,]
 $]
 /]
 '{3]
 SM]
 v&]
 
]
~
 
,=
-3 3r9   r    )0__doc__basesdkr   
httpclientr   r   r   r   sdkconfigurationr   utils.loggerr	   r
   utils.retriesr   r>   rU   typingr   r   r   r   r   r   r   unstructured_clientr   unstructured_client._hooksr   unstructured_client.modelsr   unstructured_client.typesr   r   rJ    unstructured_client.destinationsr   unstructured_client.generalr   unstructured_client.jobsr   unstructured_client.sourcesr   unstructured_client.templatesr   unstructured_client.workflowsr   r    rq   r9   r6   <module>r      s[    G  O O . 4 &   L L L % / - = =3-377^3 ^3r9   