
    i^                        S SK r S SKrS SKJr  SSKJr  SSKJr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r\R&                  R)                  S
5      (       a  \eS SKJr   " S S5      r " S S5      rg! \ a    S SKr N!f = f)    N)JSONDecodeError   )ApiError)AsyncClientWrapperSyncClientWrapper)remove_none_from_dict)UnprocessableEntityError)HttpValidationError)LicenseInfoResponsez1.c                   V    \ rS rSrS\4S jrSS.S\R                  \   S\	4S jjr
S	rg)
AdminClient   client_wrapperc                    Xl         g N_client_wrapperselfr   s     \/home/james-whalen/.local/lib/python3.13/site-packages/llama_cloud/resources/admin/client.py__init__AdminClient.__init__       -    Ninclude_scopesr   returnc                   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        SU05      U R                   R                  5       SS9nSUR                  s=::  a  S:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S	:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US
9e! [          a    [#        UR                  UR$                  S
9ef = f)z
Parameters:
    - include_scopes: typing.Optional[bool]. Whether to include scopes in the response
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.admin.get_license_info()
GET/api/v1/admin/license/infor   <   paramsheaderstimeout   ,    status_codebodyr   httpx_clientrequesturllibparseurljoinget_base_urlr   get_headersr+   pydanticparse_obj_asr   jsonr	   r
   r   r   textr   r   	_response_response_jsons       r   get_license_infoAdminClient.get_license_info   s)    ((55==LL  D$8$8$E$E$G#H!JLgh(*:N)KL((446 > 
	 )''-#-(()<inn>NOO  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   
D. .)Er   )__name__
__module____qualname____firstlineno__r   r   typingOptionalboolr   r<   __static_attributes__ r   r   r   r      s<    .*; . KO O&//$2G OSf O Or   r   c                   V    \ rS rSrS\4S jrSS.S\R                  \   S\	4S jjr
S	rg)
AsyncAdminClient9   r   c                    Xl         g r   r   r   s     r   r   AsyncAdminClient.__init__:   r   r   Nr   r   r   c                  #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        SU05      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S	:  a,  O  O)[        R                  " [        UR                  5       5      $ UR                  S
:X  a2  [        [        R                  " [        UR                  5       5      5      e UR                  5       n[#        UR                  US9e N! [          a    [#        UR                  UR$                  S9ef = f7f)z
Parameters:
    - include_scopes: typing.Optional[bool]. Whether to include scopes in the response
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.admin.get_license_info()
r   r    r!   r   r"   r#   Nr'   r(   r)   r*   r-   r9   s       r   r<   !AsyncAdminClient.get_license_info=   s6     ..;;CCLL  D$8$8$E$E$G#H!JLgh(*:N)KL((446 D 
 
	 )''-#-(()<inn>NOO  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	Ss+   BE&	D8
B	E&D: $E&:)E##E&r   )r>   r?   r@   rA   r   r   rB   rC   rD   r   r<   rE   rF   r   r   rH   rH   9   s<    .*< . QU O8M OYl O Or   rH   )rB   urllib.parser0   json.decoderr   core.api_errorr   core.client_wrapperr   r   core.remove_none_from_dictr   !errors.unprocessable_entity_errorr	   types.http_validation_errorr
   types.license_info_responser   r5   __version__
startswithImportErrorpydantic.v1v1r   rH   rF   r   r   <module>r[      sx      ( & H ? I > >&&t,,"
O ODO OM  s   ,A7 7
BB