
    MiB                         S r SSKJr  SSK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JrJr  SSKJrJrJr  SS	KJr   " S
 S\5      rg)zACode generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.   )BaseSDK    )AnyListMappingOptionalUnioncast)utils)HookContext)errors
operationsshared)	BaseModelOptionalNullableUNSET)unmarshal_json_responsec                      \ rS rSr\SSSS.S\\R                  \R                  4   S\	\
R                     S\\   S\\   S\\\\4      S	\R                   4S
 jjr\SSSS.S\\R                  \R                  4   S\	\
R                     S\\   S\\   S\\\\4      S	\R                   4S jjr\SSSS.S\\R&                  \R(                  4   S\	\
R                     S\\   S\\   S\\\\4      S	\R*                  4S jjr\SSSS.S\\R&                  \R(                  4   S\	\
R                     S\\   S\\   S\\\\4      S	\R*                  4S jjrSrg)	Templates   N)retries
server_url
timeout_mshttp_headersrequestr   r   r   r   returnc                   SnSnUc  U R                   R                  nUb  UnOU R                  Xg5      n[        U[        5      (       d%  [
        R                  " U[        R                  5      n[        [        R                  U5      nU R                  SSUUUSSSSSUU R                   R                  US9nU[        :X  ac  U R                   R                  [        La  U R                   R                  nO/[
        R                  " S	[
        R                  " S
SSS5      S5      nSn	[        U[
        R                  5      (       a  US/4n	U R!                  [#        U R                   U=(       d    SS/ U R                   R                  S9U/ SQU	S9n
Sn[
        R$                  " U
SS5      (       ab  [        R&                  " [)        [*        [,        R.                     U
5      U
R0                  U
R2                  R5                  S5      =(       d    SU
S9$ [
        R$                  " U
SS5      (       a0  [)        [6        R8                  U
5      n[6        R:                  " X5      e[
        R$                  " U
SS5      (       a-  [
        R<                  " U
5      n[6        R>                  " SX5      e[
        R$                  " U
SS5      (       a-  [
        R<                  " U
5      n[6        R>                  " SX5      e[6        R>                  " SU
5      ea  Get Template

Retrieve detailed information and DAG for a specific template.

:param request: The request object to send.
:param retries: Override the default retry configuration for this method
:param server_url: Override the default server URL for this method
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
:param http_headers: Additional headers to set or replace on requests.
NGETz/api/v1/templates/{template_id}FT
user-agentapplication/jsonmethodpathbase_urlurl_variablesr   request_body_requiredrequest_has_path_paramsrequest_has_query_paramsuser_agent_headeraccept_header_valuer   securityr   backoff  
 Gz?@w 5xx get_templateconfigr%   operation_idoauth2_scopessecurity_source4224XX5XXhook_ctxr   error_status_codesretry_config200Content-Type)template_detailstatus_codecontent_typeraw_responser;   r<   *API error occurredr=   Unexpected response received) sdk_configurationr   _get_url
isinstancer   r   	unmarshalr   GetTemplateRequestr
   _build_requestr,   r   rA   RetryConfigBackoffStrategy
do_requestr   match_responseGetTemplateResponser   r   r   TemplateDetailrE   headersgetr   HTTPValidationErrorDataHTTPValidationErrorstream_to_textSDKErrorselfr   r   r   r   r   r%   r&   reqrA   http_resresponse_datahttp_res_texts                w/var/www/eduai.edurigo.com/storigo/production/storigo_env/lib/python3.13/site-packages/unstructured_client/templates.pyr4   Templates.get_template   s   * //::J!!H}}X=H'9--oogz/L/LMGz44g>!!2'"'$(%)* 2%++44! " 
  e%%22%?00==++u44T64QSW gu0011#eW-L?? --!R+  $ 6 6 ? ? 4% # 
 "%1CDD11 7V223X! %00%--11.AGR%  %1CDD3..M ,,]EE%55!00:M//"6PP%55!00:M//"6PPoo<hGG    c                Z  #    SnSnUc  U R                   R                  nUb  UnOU R                  Xg5      n[        U[        5      (       d%  [
        R                  " U[        R                  5      n[        [        R                  U5      nU R                  SSUUUSSSSSUU R                   R                  US9nU[        :X  ac  U R                   R                  [        La  U R                   R                  nO/[
        R                  " S	[
        R                  " S
SSS5      S5      nSn	[        U[
        R                  5      (       a  US/4n	U R!                  [#        U R                   U=(       d    SS/ U R                   R                  S9U/ SQU	S9I Sh  vN n
Sn[
        R$                  " U
SS5      (       ab  [        R&                  " [)        [*        [,        R.                     U
5      U
R0                  U
R2                  R5                  S5      =(       d    SU
S9$ [
        R$                  " U
SS5      (       a0  [)        [6        R8                  U
5      n[6        R:                  " X5      e[
        R$                  " U
SS5      (       a5  [
        R<                  " U
5      I Sh  vN n[6        R>                  " SX5      e[
        R$                  " U
SS5      (       a5  [
        R<                  " U
5      I Sh  vN n[6        R>                  " SX5      e[6        R>                  " SU
5      e GN N N77fr   ) rK   r   rL   rM   r   r   rN   r   rO   r
   _build_request_asyncr,   r   rA   rQ   rR   do_request_asyncr   rT   rU   r   r   r   rV   rE   rW   rX   r   rY   rZ   stream_to_text_asyncr\   r]   s                rc   get_template_asyncTemplates.get_template_asyncq   s    * //::J!!H}}X=H'9--oogz/L/LMGz44g>''2'"'$(%)* 2%++44! ( 
  e%%22%?00==++u44T64QSW gu0011#eW-L.. --!R+  $ 6 6 ? ? 4% / 
 
 "%1CDD11 7V223X! %00%--11.AGR%  %1CDD3..M ,,]EE%55"'"<"<X"FFM//"6PP%55"'"<"<X"FFM//"6PPoo<hGGG
: G Gs8   FL+L$DL+L' AL+1L)23L+'L+)L+c                "   SnSnUc  U R                   R                  nUb  UnOU R                  Xg5      n[        U[        5      (       d%  [
        R                  " U[        R                  5      n[        [        R                  U5      nU R                  SSUUUSSSSSUU R                   R                  US9nU[        :X  ac  U R                   R                  [        La  U R                   R                  nO/[
        R                  " S	[
        R                  " S
SSS5      S5      nSn	[        U[
        R                  5      (       a  US/4n	U R!                  [#        U R                   U=(       d    SS/ U R                   R                  S9U/ SQU	S9n
Sn[
        R$                  " U
SS5      (       ai  [        R&                  " [)        [*        [,        [.        R0                        U
5      U
R2                  U
R4                  R7                  S5      =(       d    SU
S9$ [
        R$                  " U
SS5      (       a0  [)        [8        R:                  U
5      n[8        R<                  " X5      e[
        R$                  " U
SS5      (       a-  [
        R>                  " U
5      n[8        R@                  " SX5      e[
        R$                  " U
SS5      (       a-  [
        R>                  " U
5      n[8        R@                  " SX5      e[8        R@                  " SU
5      ea  List Templates

Retrieve a list of available templates with their metadata.

:param request: The request object to send.
:param retries: Override the default retry configuration for this method
:param server_url: Override the default server URL for this method
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
:param http_headers: Additional headers to set or replace on requests.
Nr   z/api/v1/templates/FTr    r!   r"   r-   r.   r/   r0   r1   r2   r3   list_templatesr5   r:   r>   rB   rC   )response_list_templatesrE   rF   rG   r;   r<   rH   rI   r=   rJ   )!rK   r   rL   rM   r   r   rN   r   ListTemplatesRequestr
   rP   r,   r   rA   rQ   rR   rS   r   rT   ListTemplatesResponser   r   r   r   TemplateListItemrE   rW   rX   r   rY   rZ   r[   r\   r]   s                rc   rn   Templates.list_templates   s   * //::J!!H}}X=H'9--oogz/N/NOGz66@!!%'"'$)%)* 2%++44! " 
  e%%22%?00==++u44T64QSW gu0011#eW-L?? --!R-  $ 6 6 ? ? 4% # 
 "%1CDD33(?T&"9"9:;X) %00%--11.AGR%  %1CDD3..M ,,]EE%55!00:M//"6PP%55!00:M//"6PPoo<hGGre   c                h  #    SnSnUc  U R                   R                  nUb  UnOU R                  Xg5      n[        U[        5      (       d%  [
        R                  " U[        R                  5      n[        [        R                  U5      nU R                  SSUUUSSSSSUU R                   R                  US9nU[        :X  ac  U R                   R                  [        La  U R                   R                  nO/[
        R                  " S	[
        R                  " S
SSS5      S5      nSn	[        U[
        R                  5      (       a  US/4n	U R!                  [#        U R                   U=(       d    SS/ U R                   R                  S9U/ SQU	S9I Sh  vN n
Sn[
        R$                  " U
SS5      (       ai  [        R&                  " [)        [*        [,        [.        R0                        U
5      U
R2                  U
R4                  R7                  S5      =(       d    SU
S9$ [
        R$                  " U
SS5      (       a0  [)        [8        R:                  U
5      n[8        R<                  " X5      e[
        R$                  " U
SS5      (       a5  [
        R>                  " U
5      I Sh  vN n[8        R@                  " SX5      e[
        R$                  " U
SS5      (       a5  [
        R>                  " U
5      I Sh  vN n[8        R@                  " SX5      e[8        R@                  " SU
5      e GN N N77frm   )!rK   r   rL   rM   r   r   rN   r   rp   r
   rg   r,   r   rA   rQ   rR   rh   r   rT   rq   r   r   r   r   rr   rE   rW   rX   r   rY   rZ   ri   r\   r]   s                rc   list_templates_asyncTemplates.list_templates_async9  s    * //::J!!H}}X=H'9--oogz/N/NOGz66@''%'"'$)%)* 2%++44! ( 
  e%%22%?00==++u44T64QSW gu0011#eW-L.. --!R-  $ 6 6 ? ? 4% / 
 
 "%1CDD33(?T&"9"9:;X) %00%--11.AGR%  %1CDD3..M ,,]EE%55"'"<"<X"FFM//"6PP%55"'"<"<X"FFM//"6PPoo<hGGG
: G Gs8   FL2L+DL2&L.'AL28L093L2.L20L2 )__name__
__module____qualname____firstlineno__r   r	   r   rO   GetTemplateRequestTypedDictr   r   rQ   r   strintr   rU   r4   rj   rp   ListTemplatesRequestTypedDictrq   rn   ru   __static_attributes__rw   re   rc   r   r      s    8=$($(48bH )):+Q+QQ
bH "%"3"34bH SMbH SMbH wsCx01bH 
	'	'bHT 8=$($(48bH )):+Q+QQ
bH "%"3"34bH SMbH SMbH wsCx01bH 
	'	'bHT 8=$($(48bH ++Z-U-UU
bH "%"3"34bH SMbH SMbH wsCx01bH 
	)	)bHT 8=$($(48bH ++Z-U-UU
bH "%"3"34bH SMbH SMbH wsCx01bH 
	)	)bH bHre   r   N)__doc__basesdkr   typingr   r   r   r   r	   r
   unstructured_clientr   unstructured_client._hooksr   unstructured_client.modelsr   r   r   unstructured_client.typesr   r   r   1unstructured_client.utils.unmarshal_json_responser   r   rw   re   rc   <module>r      s6    G  < < % 2 A A H H UOH OHre   