
    i                        S SK r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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K J!r!  SSK"J#r#   S SK$r$\$RJ                  RM                  S5      (       a  \'eS SK(J)r$  \RT                  " \RV                  S5      r, " S S5      r- " S S5      r.g! \' a    S SK$r$ N>f = f)    N)JSONDecodeError   )ApiError)AsyncClientWrapperSyncClientWrapper)jsonable_encoder)remove_none_from_dict)UnprocessableEntityError)File)FileIdPresignedUrl)HttpValidationError)PageFigureMetadata)PageScreenshotMetadata)PresignedUrl   )"FileCreateFromUrlResourceInfoValue)FileCreatePermissionInfoValue)FileCreateResourceInfoValuez1..c                      \ rS rSrS\4S jrSSS.S\S\R                  \   S\R                  \   S	\	4S
 jjr
SSS.S\S\R                  \   S\R                  \   S	S4S jjrSSS.S\R                  \   S\R                  \   S	\R                  \	   4S jjrSSSS.S\R                  \   S\R                  \   S\R                  \   S\R                  S	\	4
S jjrSSS\\\\\\S.	S\R                  \   S\R                  \   S\R                  \   S\S\R                  \   S\R                  \   S\R                  \R&                     S\R                  \R(                  \\R                  \   4      S\R                  \R(                  \\R                  \   4      S\R                  \   S	\4S jjrSSS.S\R                  \   S\R                  \   S	\R                  \	   4S jjrSS\\\\\\S.S\R                  \   S\R                  \   S\R                  \   S\S\R                  \   S\R                  \R(                  \\R                  \   4      S\R                  \   S \R                  \   S\R                  \R(                  \\R                  \   4      S	\	4S! jjrSSSS".S\S\R                  \   S\R                  \   S\R                  \   S	\4
S# jjrSSS.S\S\R                  \   S\R                  \   S	\R                  \   4S$ jjr SSS.S\S%\S\R                  \   S\R                  \   S	\RB                  4
S& jjr"SSS.S\S\R                  \   S\R                  \   S	\R                  \#   4S' jjr$SSS.S\S%\S\R                  \   S\R                  \   S	\R                  \#   4
S( jjr%SSS.S\S%\S)\S\R                  \   S\R                  \   S	\RB                  4S* jjr&SSS.S\S%\S\R                  \   S\R                  \   S	\4
S+ jjr'SSS.S\S%\S)\S\R                  \   S\R                  \   S	\4S, jjr(S-r)g).FilesClient#   client_wrapperc                    Xl         g N_client_wrapperselfr   s     \/home/james-whalen/.local/lib/python3.13/site-packages/llama_cloud/resources/files/client.py__init__FilesClient.__init__$       -    N
project_idorganization_ididr%   r&   returnc          	         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU 35      [        X#S.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)a  
Read File metadata objects.

Parameters:
    - id: str.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.get_file(
    id="string",
)
GET/api/v1/files/r$   <   paramsheaderstimeout   ,    status_codebodyr   httpx_clientrequesturllibparseurljoinget_base_urlr	   get_headersr6   pydanticparse_obj_asr   jsonr
   r   r   r   textr   r'   r%   r&   	_response_response_jsons         r   get_fileFilesClient.get_file'   s-   , ((55==LL  D$8$8$E$E$G#H!Jm\^[_L`a(
)gh((446 > 
	 )''-#-((y~~/?@@  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D1 1)Ec          	      h   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU 35      [        X#S.5      U R                   R                  5       SS9nSUR                  s=::  a  S:  a   g	  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)a  
Delete the file from S3.

Parameters:
    - id: str.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.delete_file(
    id="string",
)
DELETEr+   r,   r$   r-   r.   r2   r3   Nr4   r5   r   r9   r:   r;   r<   r=   r>   r	   r?   r6   r
   r@   rA   r   rB   r   r   rC   rD   s         r   delete_fileFilesClient.delete_fileN   s   , ((55==LL  D$8$8$E$E$G#H!Jm\^[_L`a(
)gh((446 > 
	 )''-#- .  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   $D )D1c          	         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        XS.5      U R                   R                  5       SS9nSUR                  s=::  a  S:  a=  O  O:[        R                  " [        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
Read File metadata objects.

Parameters:
    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.list_files()
r*   r+   api/v1/filesr$   r-   r.   r2   r3   r4   r5   r   r9   r:   r;   r<   r=   r>   r	   r?   r6   r@   rA   typingListr   rB   r
   r   r   r   rC   r   r%   r&   rE   rF   s        r   
list_filesFilesClient.list_filesu   s-   $ ((55==LL  D$8$8$E$E$G#H!JN[(
)gh((446 > 
	 )''-#-((T):INN<LMM  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	S   D? ?)E(external_file_idr%   r&   rX   upload_filec          
         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        XUS.5      [        0 5      SU0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)
Upload a file to S3.

Parameters:
    - external_file_id: typing.Optional[str].

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].

    - upload_file: typing.IO.
POSTr+   rO   rW   rY   r-   r/   datafilesr0   r1   r2   r3   r4   r5   r   r9   r:   r;   r<   r=   r>   r	   r   r?   r6   r@   rA   r   rB   r
   r   r   r   rC   r   rX   r%   r&   rY   rE   rF   s          r   rY   FilesClient.upload_file   s<   ( ((55==LL  D$8$8$E$E$G#H!JN[(%5dst ""% +.((446 > 

	 )''-#-((y~~/?@@  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D< <)E%	expires_at_secondsr%   r&   rX   	file_sizelast_modified_atresource_infopermission_infodata_source_idrd   namere   rf   rg   rh   ri   c       
   
      n   SU0nU[         La  X[S'   U[         La  XkS'   U[         La  X{S'   U[         La  XS'   U	[         La  XS'   U
[         La  XS'   U R                  R                  R                  S[        R
                  R                  U R                  R                  5        S	3S
5      [        XUS.5      [        U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)a0  
Create a presigned url for uploading a file.

The presigned url is valid for a limited time period, after which it will expire.
Be careful on accidental exposure of the presigned url, as it may allow unauthorized access to the file before the expiration.

Parameters:
    - expires_at_seconds: typing.Optional[int].

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].

    - name: str. Name that will be used for created file. If possible, always include the file extension in the name.

    - external_file_id: typing.Optional[str].

    - file_size: typing.Optional[int].

    - last_modified_at: typing.Optional[dt.datetime].

    - resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateResourceInfoValue]]].

    - permission_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreatePermissionInfoValue]]].

    - data_source_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.generate_presigned_url(
    name="string",
)
rj   rX   re   rf   rg   rh   ri   PUTr+   rO   rd   r%   r&   r-   r/   rB   r0   r1   r2   r3   r4   r5   OMITr   r9   r:   r;   r<   r=   r>   r	   r   r?   r6   r@   rA   r   rB   r
   r   r   r   rC   r   rd   r%   r&   rj   rX   re   rf   rg   rh   ri   _requestrE   rF   s                 r   generate_presigned_url"FilesClient.generate_presigned_url   s   d 39$4'+;'(D $-[!4'+;'($(5_%$&*9&'%)7%&((55==LL  D$8$8$E$E$G#H!JN[('9hwx "(+((446 > 	
	 )''-#-(();Y^^=MNN  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   'F )F4c          	         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        XS.5      U R                   R                  5       SS9nSUR                  s=::  a  S:  a=  O  O:[        R                  " [        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)a!  
Sync Files API against file contents uploaded via S3 presigned urls.

Parameters:
    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.sync_files()
rl   r+   api/v1/files/syncr$   r-   r.   r2   r3   r4   r5   rP   rS   s        r   
sync_filesFilesClient.sync_files  s.   $ ((55==LL  D$8$8$E$E$G#H!JL_`(
)gh((446 > 
	 )''-#-((T):INN<LMM  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	SrV   r%   r&   rj   	proxy_urlrequest_headers
verify_sslfollow_redirectsrg   urlrz   r{   r|   r}   c       	   	      l   SU0n
U[         La  X:S'   U[         La  XZS'   U[         La  XjS'   U[         La  XzS'   U[         La  XS'   U	[         La  XS'   U R                  R                  R                  S[        R
                  R                  U R                  R                  5        S	3S
5      [        XS.5      [        U
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)aM  
Upload a file to the project from a URL.

If name is ommitted in the request payload, the file name will be
extracted from the response Content-Disposition header if available
or otherwise it will be derived from the URL path.

If providing the name in the request payload, always suffix the
file extension in the name if available.

Parameters:
    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].

    - name: typing.Optional[str].

    - url: str. URL of the file to download

    - proxy_url: typing.Optional[str].

    - request_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]].

    - verify_ssl: typing.Optional[bool]. Whether to verify the SSL certificate when downloading the file

    - follow_redirects: typing.Optional[bool]. Whether to follow redirects when downloading the file

    - resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateFromUrlResourceInfoValue]]].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.upload_file_from_url(
    url="string",
)
r~   rj   rz   r{   r|   r}   rg   rl   r+   api/v1/files/upload_from_urlr$   r-   rn   r2   r3   r4   r5   rp   r   r9   r:   r;   r<   r=   r>   r	   r   r?   r6   r@   rA   r   rB   r
   r   r   r   rC   r   r%   r&   rj   r~   rz   r{   r|   r}   rg   rr   rE   rF   s                r   upload_file_from_url FilesClient.upload_file_from_url7  s   f 38t#VD $-[!$&*9&'T!%/\"4'+;'($(5_%((55==LL  D$8$8$E$E$G#H!JLjk(
)gh!(+((446 > 
	 )''-#-((y~~/?@@  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   &F
 
)F3rm   c          
         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        X#US.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)ah  
Returns a presigned url to read the file content.

Parameters:
    - id: str.

    - expires_at_seconds: typing.Optional[int].

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.read_file_content(
    id="string",
)
r*   r+   r,   /contentrm   r-   r.   r2   r3   r4   r5   r   r9   r:   r;   r<   r=   r>   r	   r?   r6   r@   rA   r   rB   r
   r   r   r   rC   r   r'   rd   r%   r&   rE   rF   s          r   read_file_contentFilesClient.read_file_content  s8   : ((55==LL  D$8$8$E$E$G#H!Jm\^[__gLhi('9hwx ((446 > 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D3 3)Ec          	         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        X#S.5      U R                   R                  5       SS9nSUR                  s=::  a  S	:  a=  O  O:[        R                  " [        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)aF  
List metadata for all screenshots of pages from a file.

Parameters:
    - id: str.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.list_file_page_screenshots(
    id="string",
)
r*   r+   r,   /page_screenshotsr$   r-   r.   r2   r3   r4   r5   r   r9   r:   r;   r<   r=   r>   r	   r?   r6   r@   rA   rQ   rR   r   rB   r
   r   r   r   rC   rD   s         r   list_file_page_screenshots&FilesClient.list_file_page_screenshots  s:   , ((55==LL  D$8$8$E$E$G#H!Jm\^[__pLqr(
)gh((446 > 
	 )''-#-((5K)LinnN^__  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	S   E )E,
page_indexc          
         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU 35      [        X4S.5      U R                   R                  5       SS9nSUR                  s=::  a  S	:  a6  O  O3[        R                  " [        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)a\  
Get screenshot of a page from a file.

Parameters:
    - id: str.

    - page_index: int.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.get_file_page_screenshot(
    id="string",
    page_index=1,
)
r*   r+   r,   /page_screenshots/r$   r-   r.   r2   r3   r4   r5   r   r9   r:   r;   r<   r=   r>   r	   r?   r6   r@   rA   rQ   AnyrB   r
   r   r   r   rC   r   r'   r   r%   r&   rE   rF   s          r   get_file_page_screenshot$FilesClient.get_file_page_screenshot  s=   < ((55==LL  ''4467q9]2$N`ak`l;m )
)gh((446 > 
	 )''-#-((Y^^5EFF  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D> >)E'c          	         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        X#S.5      U R                   R                  5       SS9nSUR                  s=::  a  S	:  a=  O  O:[        R                  " [        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)a
  
Parameters:
    - id: str.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.list_file_pages_figures(
    id="string",
)
r*   r+   r,   /page-figuresr$   r-   r.   r2   r3   r4   r5   r   r9   r:   r;   r<   r=   r>   r	   r?   r6   r@   rA   rQ   rR   r   rB   r
   r   r   r   rC   rD   s         r   list_file_pages_figures#FilesClient.list_file_pages_figures  s:   ( ((55==LL  D$8$8$E$E$G#H!Jm\^[__lLmn(
)gh((446 > 
	 )''-#-((5G)H)..JZ[[  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Sr   c          
         U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU 35      [        X4S.5      U R                   R                  5       SS9nSUR                  s=::  a  S	:  a=  O  O:[        R                  " [        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)a3  
Parameters:
    - id: str.

    - page_index: int.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.list_file_page_figures(
    id="string",
    page_index=1,
)
r*   r+   r,   /page-figures/r$   r-   r.   r2   r3   r4   r5   r   r   s          r   list_file_page_figures"FilesClient.list_file_page_figures6  sB   8 ((55==LL  ''4467q9]2$n]g\h;i )
)gh((446 > 
	 )''-#-((5G)H)..JZ[[  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   !E )E.figure_namec                   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU SU 35      [        XES.5      U R                   R                  5       SS9nSUR                  s=::  a  S	:  a6  O  O3[        R                  " [        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)ad  
Parameters:
    - id: str.

    - page_index: int.

    - figure_name: str.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.get_file_page_figure(
    id="string",
    page_index=1,
    figure_name="string",
)
r*   r+   r,   r   r$   r-   r.   r2   r3   r4   r5   r   r   r'   r   r   r%   r&   rE   rF   s           r   get_file_page_figure FilesClient.get_file_page_figuree  sF   @ ((55==LL  ''4467q9]2$n]g\hhijuiv;w )
)gh((446 > 
	 )''-#-((Y^^5EFF  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   E )E*c                   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU S35      [        X4S.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)aN  
Returns a presigned url to read a page screenshot.

The presigned url is valid for a limited time period, after which it will expire.
Be careful on accidental exposure of the presigned url, as it may allow unauthorized access to the file before the expiration.

Parameters:
    - id: str.

    - page_index: int.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.generate_file_page_screenshot_presigned_url(
    id="string",
    page_index=1,
)
r\   r+   r,   r   /presigned_urlr$   r-   r.   r2   r3   r4   r5   r   r   s          r   +generate_file_page_screenshot_presigned_url7FilesClient.generate_file_page_screenshot_presigned_url  s;   B ((55==LL  ''4467q9t#5j\P )
)gh((446 > 	
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D5 5)Ec                   U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU SU S35      [        XES.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)ay  
Returns a presigned url to read a page figure.

The presigned url is valid for a limited time period, after which it will expire.
Be careful on accidental exposure of the presigned url, as it may allow unauthorized access to the file before the expiration.

Parameters:
    - id: str.

    - page_index: int.

    - figure_name: str.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import LlamaCloud

client = LlamaCloud(
    token="YOUR_TOKEN",
)
client.files.generate_file_page_figure_presigned_url(
    id="string",
    page_index=1,
    figure_name="string",
)
r\   r+   r,   r   r   r$   r-   r.   r2   r3   r4   r5   r   r   s           r   'generate_file_page_figure_presigned_url3FilesClient.generate_file_page_figure_presigned_url  s@   J ((55==LL  ''4467q9t>*Q{m>Z )
)gh((446 > 	
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN  	Sy'<'<9>>RR	Ss   D8 8)E!r   )*__name__
__module____qualname____firstlineno__r   r    strrQ   Optionalr   rG   rL   rR   rT   IOrY   rp   intdtdatetimeDictr   r   r   rs   rw   boolr   r   r   r   r   r   r   r   r   r   r   r   r   r   __static_attributes__ r#   r   r   r   #   s   .*; . >Bko%O%O&,ooc&:%OTZTcTcdgTh%O	%OP >Bko%O%O&,ooc&:%OTZTcTcdgTh%O	%OP 59bf!O#__S1!OKQ??[^K_!O	T	!OL 26+/04'O !//#.'O OOC(	'O
  -'O YY'O 
'OX 48+/0415*.9=immq/3QO #OOC0QO OOC(	QO
  -QO QO !//#.QO ??3'QO !//"++6QO v{{3Hc8d3d'efQO  S&//Jg:h5h)ijQO ,QO 
QOh 59bf!O#__S1!OKQ??[^K_!O	T	!OL ,004%)*.SW,026ptPO OOC(PO  -	PO
 ooc"PO PO ??3'PO  S&//#:N5N)OPPO OOD)PO !//$/PO v{{3Hj8k3k'lmPO 
POl 48+/04.O.O #OOC0	.O
 OOC(.O  -.O 
.Ob >Bko%O%O&,ooc&:%OTZTcTcdgTh%O	+	,%OX ,004/O/O /O
 OOC(/O  -/O 
/Od >Bko#O#O&,ooc&:#OTZTcTcdgTh#O	'	(#OT ,004-O-O -O
 OOC(-O  --O 
'	(-Oj ,0041O1O 1O 	1O OOC(1O  -1O 
1Op ,0043O3O 3O
 OOC(3O  -3O 
3Ov ,0047O7O 7O 	7O OOC(7O  -7O 
7O 7Or#   r   c                      \ rS rSrS\4S jrSSS.S\S\R                  \   S\R                  \   S	\	4S
 jjr
SSS.S\S\R                  \   S\R                  \   S	S4S jjrSSS.S\R                  \   S\R                  \   S	\R                  \	   4S jjrSSSS.S\R                  \   S\R                  \   S\R                  \   S\R                  S	\	4
S jjrSSS\\\\\\S.	S\R                  \   S\R                  \   S\R                  \   S\S\R                  \   S\R                  \   S\R                  \R&                     S\R                  \R(                  \\R                  \   4      S\R                  \R(                  \\R                  \   4      S\R                  \   S	\4S jjrSSS.S\R                  \   S\R                  \   S	\R                  \	   4S jjrSS\\\\\\S.S\R                  \   S\R                  \   S\R                  \   S\S\R                  \   S\R                  \R(                  \\R                  \   4      S\R                  \   S \R                  \   S\R                  \R(                  \\R                  \   4      S	\	4S! jjrSSSS".S\S\R                  \   S\R                  \   S\R                  \   S	\4
S# jjrSSS.S\S\R                  \   S\R                  \   S	\R                  \   4S$ jjr SSS.S\S%\S\R                  \   S\R                  \   S	\RB                  4
S& jjr"SSS.S\S\R                  \   S\R                  \   S	\R                  \#   4S' jjr$SSS.S\S%\S\R                  \   S\R                  \   S	\R                  \#   4
S( jjr%SSS.S\S%\S)\S\R                  \   S\R                  \   S	\RB                  4S* jjr&SSS.S\S%\S\R                  \   S\R                  \   S	\4
S+ jjr'SSS.S\S%\S)\S\R                  \   S\R                  \   S	\4S, jjr(S-r)g).AsyncFilesClienti  r   c                    Xl         g r   r   r   s     r   r    AsyncFilesClient.__init__  r"   r#   Nr$   r'   r%   r&   r(   c          	        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU 35      [        X#S.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)a(  
Read File metadata objects.

Parameters:
    - id: str.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.get_file(
    id="string",
)
r*   r+   r,   r$   r-   r.   Nr2   r3   r4   r5   r8   rD   s         r   rG   AsyncFilesClient.get_file  s:    , ..;;CCLL  D$8$8$E$E$G#H!Jm\^[_L`a(
)gh((446 D 
 
	 )''-#-((y~~/?@@  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	Ss+   B
E)D;B	E)D= 'E)=)E&&E)c          	        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU 35      [        X#S.5      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S	:  a   g  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)a(  
Delete the file from S3.

Parameters:
    - id: str.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.delete_file(
    id="string",
)
rJ   r+   r,   r$   r-   r.   Nr2   r3   r4   r5   rK   rD   s         r   rL   AsyncFilesClient.delete_file2  s(    , ..;;CCLL  D$8$8$E$E$G#H!Jm\^[_L`a(
)gh((446 D 
 
	 )''-#- .  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	Ss+   B
E DA E .D >E )D==E c          	        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        XS.5      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S	:  a=  O  O:[        R                  " [        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)a  
Read File metadata objects.

Parameters:
    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.list_files()
r*   r+   rO   r$   r-   r.   Nr2   r3   r4   r5   rP   rS   s        r   rT   AsyncFilesClient.list_filesY  s:    $ ..;;CCLL  D$8$8$E$E$G#H!JN[(
)gh((446 D 
 
	 )''-#-((T):INN<LMM  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	S+   BE7	E	
BE7%E 5E7)E44E7rW   rX   rY   c          
        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        XUS.5      [        0 5      SU0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)r[   r\   r+   rO   rW   rY   r-   r]   Nr2   r3   r4   r5   r`   ra   s          r   rY   AsyncFilesClient.upload_file|  sI    ( ..;;CCLL  D$8$8$E$E$G#H!JN[(%5dst ""% +.((446 D 

 

	 )''-#-((y~~/?@@  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN'

"  	Sy'<'<9>>RR	Ss+   BE4EB	E4"E 2E4)E11E4rc   rd   rj   re   rf   rg   rh   ri   c       
   
        #    SU0nU[         La  X[S'   U[         La  XkS'   U[         La  X{S'   U[         La  XS'   U	[         La  XS'   U
[         La  XS'   U R                  R                  R                  S[        R
                  R                  U R                  R                  5        S	3S
5      [        XUS.5      [        U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)a@  
Create a presigned url for uploading a file.

The presigned url is valid for a limited time period, after which it will expire.
Be careful on accidental exposure of the presigned url, as it may allow unauthorized access to the file before the expiration.

Parameters:
    - expires_at_seconds: typing.Optional[int].

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].

    - name: str. Name that will be used for created file. If possible, always include the file extension in the name.

    - external_file_id: typing.Optional[str].

    - file_size: typing.Optional[int].

    - last_modified_at: typing.Optional[dt.datetime].

    - resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateResourceInfoValue]]].

    - permission_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreatePermissionInfoValue]]].

    - data_source_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.generate_presigned_url(
    name="string",
)
rj   rX   re   rf   rg   rh   ri   rl   r+   rO   rm   r-   rn   Nr2   r3   r4   r5   ro   rq   s                 r   rs   'AsyncFilesClient.generate_presigned_url  s    d 39$4'+;'(D $-[!4'+;'($(5_%$&*9&'%)7%&..;;CCLL  D$8$8$E$E$G#H!JN[('9hwx "(+((446 D 	
 	
	 )''-#-(();Y^^=MNN  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN%	
   	Sy'<'<9>>RR	Ss+   C$G&F'B	G1F G)G  Gc          	        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3S5      [        XS.5      U R                   R                  5       SS9I Sh  vN nSUR                  s=::  a  S	:  a=  O  O:[        R                  " [        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)a1  
Sync Files API against file contents uploaded via S3 presigned urls.

Parameters:
    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.sync_files()
rl   r+   rv   r$   r-   r.   Nr2   r3   r4   r5   rP   rS   s        r   rw   AsyncFilesClient.sync_files  s;    $ ..;;CCLL  D$8$8$E$E$G#H!JL_`(
)gh((446 D 
 
	 )''-#-((T):INN<LMM  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	Sr   ry   r~   rz   r{   r|   r}   c       	   	        #    SU0n
U[         La  X:S'   U[         La  XZS'   U[         La  XjS'   U[         La  XzS'   U[         La  XS'   U	[         La  XS'   U R                  R                  R                  S[        R
                  R                  U R                  R                  5        S	3S
5      [        XS.5      [        U
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)a]  
Upload a file to the project from a URL.

If name is ommitted in the request payload, the file name will be
extracted from the response Content-Disposition header if available
or otherwise it will be derived from the URL path.

If providing the name in the request payload, always suffix the
file extension in the name if available.

Parameters:
    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].

    - name: typing.Optional[str].

    - url: str. URL of the file to download

    - proxy_url: typing.Optional[str].

    - request_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]].

    - verify_ssl: typing.Optional[bool]. Whether to verify the SSL certificate when downloading the file

    - follow_redirects: typing.Optional[bool]. Whether to follow redirects when downloading the file

    - resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateFromUrlResourceInfoValue]]].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.upload_file_from_url(
    url="string",
)
r~   rj   rz   r{   r|   r}   rg   rl   r+   r   r$   r-   rn   Nr2   r3   r4   r5   r   r   s                r   r   %AsyncFilesClient.upload_file_from_url  s    f 38t#VD $-[!$&*9&'T!%/\"4'+;'($(5_%..;;CCLL  D$8$8$E$E$G#H!JLjk(
)gh!(+((446 D 
 
	 )''-#-((y~~/?@@  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN!
  	Sy'<'<9>>RR	Ss+   C#G%F&B	G0F  G)F??Grm   c          
        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        X#US.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)ax  
Returns a presigned url to read the file content.

Parameters:
    - id: str.

    - expires_at_seconds: typing.Optional[int].

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.read_file_content(
    id="string",
)
r*   r+   r,   r   rm   r-   r.   Nr2   r3   r4   r5   r   r   s          r   r   "AsyncFilesClient.read_file_contentm  sE    : ..;;CCLL  D$8$8$E$E$G#H!Jm\^[__gLhi('9hwx ((446 D 
 
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN#
  	Sy'<'<9>>RR	Ss+   BE+D=B	E+D? )E+?)E((E+c          	        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        X#S.5      U R                   R                  5       SS9I Sh  vN nS	UR                  s=::  a  S
:  a=  O  O:[        R                  " [        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)aV  
List metadata for all screenshots of pages from a file.

Parameters:
    - id: str.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.list_file_page_screenshots(
    id="string",
)
r*   r+   r,   r   r$   r-   r.   Nr2   r3   r4   r5   r   rD   s         r   r   +AsyncFilesClient.list_file_page_screenshots  sG    , ..;;CCLL  D$8$8$E$E$G#H!Jm\^[__pLqr(
)gh((446 D 
 
	 )''-#-((5K)LinnN^__  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	S+   BE;EBE;)E 9E;)E88E;r   c          
        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU 35      [        X4S.5      U R                   R                  5       SS9I Sh  vN nS	UR                  s=::  a  S
:  a6  O  O3[        R                  " [        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)al  
Get screenshot of a page from a file.

Parameters:
    - id: str.

    - page_index: int.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.get_file_page_screenshot(
    id="string",
    page_index=1,
)
r*   r+   r,   r   r$   r-   r.   Nr2   r3   r4   r5   r   r   s          r   r   )AsyncFilesClient.get_file_page_screenshot  sJ    < ..;;CCLL  ''4467q9]2$N`ak`l;m )
)gh((446 D 
 
	 )''-#-((Y^^5EFF  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN#
  	Sy'<'<9>>RR	Ss+   BE6EBE6$E
 4E6
)E33E6c          	        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU S35      [        X#S.5      U R                   R                  5       SS9I Sh  vN nS	UR                  s=::  a  S
:  a=  O  O:[        R                  " [        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)a  
Parameters:
    - id: str.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.list_file_pages_figures(
    id="string",
)
r*   r+   r,   r   r$   r-   r.   Nr2   r3   r4   r5   r   rD   s         r   r   (AsyncFilesClient.list_file_pages_figures  sG    ( ..;;CCLL  D$8$8$E$E$G#H!Jm\^[__lLmn(
)gh((446 D 
 
	 )''-#-((5G)H)..JZ[[  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN
  	Sy'<'<9>>RR	Sr   c          
        #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU 35      [        X4S.5      U R                   R                  5       SS9I Sh  vN nS	UR                  s=::  a  S
:  a=  O  O:[        R                  " [        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)aC  
Parameters:
    - id: str.

    - page_index: int.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.list_file_page_figures(
    id="string",
    page_index=1,
)
r*   r+   r,   r   r$   r-   r.   Nr2   r3   r4   r5   r   r   s          r   r   'AsyncFilesClient.list_file_page_figures  sO    8 ..;;CCLL  ''4467q9]2$n]g\h;i )
)gh((446 D 
 
	 )''-#-((5G)H)..JZ[[  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN#
  	Sy'<'<9>>RR	Ss+   BE=EBE=+E ;E=)E::E=r   c                  #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU SU 35      [        XES.5      U R                   R                  5       SS9I Sh  vN nS	UR                  s=::  a  S
:  a6  O  O3[        R                  " [        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)at  
Parameters:
    - id: str.

    - page_index: int.

    - figure_name: str.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.get_file_page_figure(
    id="string",
    page_index=1,
    figure_name="string",
)
r*   r+   r,   r   r$   r-   r.   Nr2   r3   r4   r5   r   r   s           r   r   %AsyncFilesClient.get_file_page_figureI  sS    @ ..;;CCLL  ''4467q9]2$n]g\hhijuiv;w )
)gh((446 D 
 
	 )''-#-((Y^^5EFF  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN#
  	Sy'<'<9>>RR	Ss+   BE9EBE9'E 7E9)E66E9c                  #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU S35      [        X4S.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)a^  
Returns a presigned url to read a page screenshot.

The presigned url is valid for a limited time period, after which it will expire.
Be careful on accidental exposure of the presigned url, as it may allow unauthorized access to the file before the expiration.

Parameters:
    - id: str.

    - page_index: int.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.generate_file_page_screenshot_presigned_url(
    id="string",
    page_index=1,
)
r\   r+   r,   r   r   r$   r-   r.   Nr2   r3   r4   r5   r   r   s          r   r   <AsyncFilesClient.generate_file_page_screenshot_presigned_url|  sH    B ..;;CCLL  ''4467q9t#5j\P )
)gh((446 D 	
 	
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN%	
   	Sy'<'<9>>RR	Ss+   BE-D?B	E-E +E-)E**E-c                  #    U R                   R                  R                  S[        R                  R                  U R                   R                  5        S3SU SU SU S35      [        XES.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)a  
Returns a presigned url to read a page figure.

The presigned url is valid for a limited time period, after which it will expire.
Be careful on accidental exposure of the presigned url, as it may allow unauthorized access to the file before the expiration.

Parameters:
    - id: str.

    - page_index: int.

    - figure_name: str.

    - project_id: typing.Optional[str].

    - organization_id: typing.Optional[str].
---
from llama_cloud.client import AsyncLlamaCloud

client = AsyncLlamaCloud(
    token="YOUR_TOKEN",
)
await client.files.generate_file_page_figure_presigned_url(
    id="string",
    page_index=1,
    figure_name="string",
)
r\   r+   r,   r   r   r$   r-   r.   Nr2   r3   r4   r5   r   r   s           r   r   8AsyncFilesClient.generate_file_page_figure_presigned_url  sM    J ..;;CCLL  ''4467q9t>*Q{m>Z )
)gh((446 D 	
 	
	 )''-#-((y~~7GHH  C'*8+@+@ATV_VdVdVf+ghh	S&^^-N 9#8#8~NN%	
   	Sy'<'<9>>RR	Ss+   BE0EB	E0E .E0)E--E0r   )*r   r   r   r   r   r    r   rQ   r   r   rG   rL   rR   rT   r   rY   rp   r   r   r   r   r   r   r   rs   rw   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r#   r   r   r     s   .*< . >Bko%O%O&,ooc&:%OTZTcTcdgTh%O	%OP >Bko%O%O&,ooc&:%OTZTcTcdgTh%O	%OP 59bf!O#__S1!OKQ??[^K_!O	T	!OL 26+/04'O !//#.'O OOC(	'O
  -'O YY'O 
'OX 48+/0415*.9=immq/3QO #OOC0QO OOC(	QO
  -QO QO !//#.QO ??3'QO !//"++6QO v{{3Hc8d3d'efQO  S&//Jg:h5h)ijQO ,QO 
QOh 59bf!O#__S1!OKQ??[^K_!O	T	!OL ,004%)*.SW,026ptPO OOC(PO  -	PO
 ooc"PO PO ??3'PO  S&//#:N5N)OPPO OOD)PO !//$/PO v{{3Hj8k3k'lmPO 
POl 48+/04.O.O #OOC0	.O
 OOC(.O  -.O 
.Ob >Bko%O%O&,ooc&:%OTZTcTcdgTh%O	+	,%OX ,004/O/O /O
 OOC(/O  -/O 
/Od >Bko#O#O&,ooc&:#OTZTcTcdgTh#O	'	(#OT ,004-O-O -O
 OOC(-O  --O 
'	(-Oj ,0041O1O 1O 	1O OOC(1O  -1O 
1Op ,0043O3O 3O
 OOC(3O  -3O 
3Ov ,0047O7O 7O 	7O OOC(7O  -7O 
7O 7Or#   r   )/r   r   rQ   urllib.parser;   json.decoderr   core.api_errorr   core.client_wrapperr   r   core.jsonable_encoderr   core.remove_none_from_dictr	   !errors.unprocessable_entity_errorr
   
types.filer   types.file_id_presigned_urlr   types.http_validation_errorr   types.page_figure_metadatar   types.page_screenshot_metadatar   types.presigned_urlr   .types.file_create_from_url_resource_info_valuer   'types.file_create_permission_info_valuer   %types.file_create_resource_info_valuer   r@   __version__
startswithImportErrorpydantic.v1v1castr   rp   r   r   r   r#   r   <module>r      s       ( & H 5 ? I  = > < D / ^ R N&&t,,"
 {{6::s#aO aOHaO aOW  s   *,C 
CC