ó
    ­[jLL  ã                  ó|  • S SK Jr  S SKJrJrJr  S SKJr  S SKrSSK	J
r
Jr  SSKJr  SSKJrJrJrJrJrJrJr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"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-  SS/r. " S S\5      r/ " S S\ 5      r0 " S S5      r1 " S S5      r2 " S S5      r3 " S S5      r4g)é    )Úannotations)ÚMappingÚOptionalÚcast)ÚLiteralNé   )Úparse_job_list_paramsÚparse_job_create_params)Údeepcopy_with_paths)ÚBodyÚOmitÚQueryÚHeadersÚNotGivenÚ	FileTypesÚomitÚ	not_given)Úextract_filesÚpath_templateÚmaybe_transformÚasync_maybe_transform)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_raw_response_wrapperÚto_streamed_response_wrapperÚasync_to_raw_response_wrapperÚ"async_to_streamed_response_wrapper)Úmake_request_options)ÚParseJobGetResponse)ÚParseJobListResponse)ÚParseJobCreateResponseÚParseJobsResourceÚAsyncParseJobsResourcec                  óú   • \ rS rSr\SS j5       r\SS j5       r\\\\\\\SSS\S.                       SS jjr	\\\SSS\S.               SS jjr
SSS\S	.           SS
 jjrSrg)r#   é   c                ó   • [        U 5      $ ©zð
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/landing-ai/ade-python#accessing-raw-response-data-eg-headers
)Ú ParseJobsResourceWithRawResponse©Úselfs    Ú_/home/mande/repo/quber/.venv/lib/python3.13/site-packages/landingai_ade/resources/parse_jobs.pyÚwith_raw_responseÚ#ParseJobsResource.with_raw_response   s   € ô 0°Ó5Ð5ó    c                ó   • [        U 5      $ ©zµ
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/landing-ai/ade-python#with_streaming_response
)Ú&ParseJobsResourceWithStreamingResponser*   s    r,   Úwith_streaming_responseÚ)ParseJobsResource.with_streaming_response'   s   € ô 6°dÓ;Ð;r/   N©Úcustom_promptsÚdocumentÚdocument_urlÚmodelÚoutput_save_urlÚpasswordÚsplitÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutc               ó  • [        UUUUUUUS.S//5      n[        [        [        [        [
        4   U5      S//S9nSS0U=(       d    0 EnU R                  S[        U[        R                  5      U[        X‰X«S9[        S9$ )	áî  
Parse documents asynchronously.

This endpoint creates a job that handles the processing for both large documents
and large batches of documents.

For EU users, use this endpoint:

    `https://api.va.eu-west-1.landing.ai/v1/ade/parse/jobs`.

Args:
  custom_prompts: Custom parsing prompts by chunk type. Only `figure` is supported.

  document: A file to be parsed. The file can be a PDF or an image. See the list of
      supported file types here: https://docs.landing.ai/ade/ade-file-types. Either
      this parameter or the `document_url` parameter must be provided.

  document_url: The URL to the file to be parsed. The file can be a PDF or an image. See the
      list of supported file types here: https://docs.landing.ai/ade/ade-file-types.
      Either this parameter or the `document` parameter must be provided.

  model: The version of the model to use for parsing.

  output_save_url: If zero data retention (ZDR) is enabled, you must enter a URL for the parsed
      output to be saved to. When ZDR is enabled, the parsed content will not be in
      the API response.

  password: Password for encrypted document files. If the document is password-protected,
      provide the password to decrypt and process the document. Ignored for
      unencrypted documents.

  split: If you want to split documents into smaller sections, include the split
      parameter. Set the parameter to page to split documents at the page level. The
      splits object in the API output will contain a set of data for each page.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
©r6   r7   r8   r9   r:   r;   r<   r7   ©ÚpathsúContent-Typeúmultipart/form-dataú/v1/ade/parse/jobs©r=   r>   r?   r@   ©ÚbodyÚfilesÚoptionsÚcast_to)r   r   r   r   ÚstrÚobjectÚ_postr   r
   ÚParseJobCreateParamsr   r"   ©r+   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rK   rL   s                 r,   ÚcreateÚParseJobsResource.create0   s¬   € ôx #à"0Ø$Ø ,ØØ#2Ø$Øñð ˆ\ˆNó
ˆô œd¤7¬3´¨;Ñ#7¸Ó>È
À|ÀnÑUˆð (Ð)>ÐXÀ=×CVÐTVÐXˆØ�z‰zØ Ü  Ô'>×'SÑ'SÓTØÜ(Ø+ÐQ[ñô +ð ð 
ð 	
r/   ©ÚpageÚ	page_sizeÚstatusr=   r>   r?   r@   c               óz   • U R                  S[        UUUU[        UUUS.[        R                  5      S9[
        S9$ )á&  List all async parse jobs associated with your API key.

Returns the list of jobs
or an error response. For EU users, use this endpoint:

`https://api.va.eu-west-1.landing.ai/v1/ade/parse/jobs`.

Args:
  page: Page number (0-indexed)

  page_size: Number of items per page

  status: Filter by job status.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
rH   ©rW   rX   rY   ©r=   r>   r?   r@   Úquery©rM   rN   )Ú_getr   r   r	   ÚParseJobListParamsr!   ©r+   rW   rX   rY   r=   r>   r?   r@   s           r,   ÚlistÚParseJobsResource.list‡   sX   € ðF �y‰yØ Ü(Ø+Ø'Ø%ØÜ%à $Ø%.Ø"(ñô
 *×<Ñ<óñô )ð! ð 
ð 	
r/   rI   c          
     óx   • U(       d  [        SU< 35      eU R                  [        SUS9[        X#XES9[        S9$ )á´  
Get the status for an async parse job.

Returns the job status or an error response. For EU users, use this endpoint:

`https://api.va.eu-west-1.landing.ai/v1/ade/parse/jobs/{job_id}`.

Args:
  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
ú5Expected a non-empty value for `job_id` but received ú/v1/ade/parse/jobs/{job_id}©Újob_idrI   r_   ©Ú
ValueErrorr`   r   r   r    ©r+   rj   r=   r>   r?   r@   s         r,   ÚgetÚParseJobsResource.get½   sP   € ö6 ÜÐTÐU[ÑT^Ð_Ó`Ð`Ø�y‰yÜÐ7ÀÑGÜ(Ø+ÐQ[ñô (ð ð 
ð 	
r/   © )Úreturnr)   )rq   r2   ©r6   z6Optional[parse_job_create_params.CustomPrompts] | Omitr7   zOptional[FileTypes] | Omitr8   úOptional[str] | Omitr9   rs   r:   rs   r;   rs   r<   z Optional[Literal['page']] | Omitr=   úHeaders | Noner>   úQuery | Noner?   úBody | Noner@   ú'float | httpx.Timeout | None | NotGivenrq   r"   ©rW   ú
int | OmitrX   ry   rY   zUOptional[Literal['cancelled', 'completed', 'failed', 'pending', 'processing']] | Omitr=   rt   r>   ru   r?   rv   r@   rw   rq   r!   ©rj   rO   r=   rt   r>   ru   r?   rv   r@   rw   rq   r    ©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r-   r3   r   r   rT   rc   rn   Ú__static_attributes__rp   r/   r,   r#   r#      s�  † Øó6ó ð6ð ó<ó ð<ð RVØ/3Ø-1Ø&*Ø04Ø)-Ø26ð )-Ø$(Ø"&Ø;DñU
ð OðU
ð -ð	U
ð
 +ðU
ð $ðU
ð .ðU
ð 'ðU
ð 0ðU
ð &ðU
ð "ðU
ð  ðU
ð 9ðU
ð  
 õ!U
ðt  Ø $Øhlð )-Ø$(Ø"&Ø;Dñ4
ð ð4
ð ð	4
ð
 fð4
ð &ð4
ð "ð4
ð  ð4
ð 9ð4
ð 
õ4
ðx )-Ø$(Ø"&Ø;Dñ#
àð#
ð &ð#
ð "ð#
ð  ð#
ð 9ð#
ð 
÷#
ð #
r/   c                  óú   • \ rS rSr\SS j5       r\SS j5       r\\\\\\\SSS\S.                       SS jjr	\\\SSS\S.               SS jjr
SSS\S	.           SS
 jjrSrg)r$   éã   c                ó   • [        U 5      $ r(   )Ú%AsyncParseJobsResourceWithRawResponser*   s    r,   r-   Ú(AsyncParseJobsResource.with_raw_responseä   s   € ô 5°TÓ:Ð:r/   c                ó   • [        U 5      $ r1   )Ú+AsyncParseJobsResourceWithStreamingResponser*   s    r,   r3   Ú.AsyncParseJobsResource.with_streaming_responseî   s   € ô ;¸4Ó@Ð@r/   Nr5   c             ƒ  ó8  #   • [        UUUUUUUS.S//5      n[        [        [        [        [
        4   U5      S//S9nSS0U=(       d    0 EnU R                  S[        U[        R                  5      I Sh  v•N U[        X‰X«S9[        S	9I Sh  v•N $  N N7f)
rB   rC   r7   rD   rF   rG   rH   NrI   rJ   )r   r   r   r   rO   rP   rQ   r   r
   rR   r   r"   rS   s                 r,   rT   ÚAsyncParseJobsResource.create÷   s¿   é € ôx #à"0Ø$Ø ,ØØ#2Ø$Øñð ˆ\ˆNó
ˆô œd¤7¬3´¨;Ñ#7¸Ó>È
À|ÀnÑUˆð (Ð)>ÐXÀ=×CVÐTVÐXˆØ—Z‘ZØ Ü,¨TÔ3J×3_Ñ3_Ó`×`ØÜ(Ø+ÐQ[ñô +ð  ð 
÷ 
ð 	
á`ñ
ùs$   ‚A6BÁ8B
Á9BÂBÂBÂBrV   c             ƒ  óª   #   • U R                  S[        UUUU[        UUUS.[        R                  5      I Sh  v•N S9[
        S9I Sh  v•N $  N N7f)r[   rH   r\   Nr]   r_   )r`   r   r   r	   ra   r!   rb   s           r,   rc   ÚAsyncParseJobsResource.listN  so   é € ðF —Y‘YØ Ü(Ø+Ø'Ø%ØÜ1à $Ø%.Ø"(ñô
 *×<Ñ<ó÷ ñô )ð! ð 
÷ 
ð 	
ññ
ùs!   ‚7A¹AºAÁ
AÁAÁArI   c          
   ƒ  ó”   #   • U(       d  [        SU< 35      eU R                  [        SUS9[        X#XES9[        S9I Sh  v•N $  N7f)rf   rg   rh   ri   rI   r_   Nrk   rm   s         r,   rn   ÚAsyncParseJobsResource.get„  s]   é € ö6 ÜÐTÐU[ÑT^Ð_Ó`Ð`Ø—Y‘YÜÐ7ÀÑGÜ(Ø+ÐQ[ñô (ð ð 
÷ 
ð 	
ñ 
ùs   ‚?AÁAÁArp   )rq   r„   )rq   r‡   rr   rx   rz   r{   rp   r/   r,   r$   r$   ã   sŸ  † Øó;ó ð;ð óAó ðAð RVØ/3Ø-1Ø&*Ø04Ø)-Ø26ð )-Ø$(Ø"&Ø;DñU
ð OðU
ð -ð	U
ð
 +ðU
ð $ðU
ð .ðU
ð 'ðU
ð 0ðU
ð &ðU
ð "ðU
ð  ðU
ð 9ðU
ð  
 õ!U
ðt  Ø $Øhlð )-Ø$(Ø"&Ø;Dñ4
ð ð4
ð ð	4
ð
 fð4
ð &ð4
ð "ð4
ð  ð4
ð 9ð4
ð 
õ4
ðx )-Ø$(Ø"&Ø;Dñ#
àð#
ð &ð#
ð "ð#
ð  ð#
ð 9ð#
ð 
÷#
ð #
r/   c                  ó   • \ rS rSrSS jrSrg)r)   iª  c                ó¬   • Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        g ©N)Ú_parse_jobsr   rT   rc   rn   ©r+   Ú
parse_jobss     r,   Ú__init__Ú)ParseJobsResourceWithRawResponse.__init__«  sG   € Ø%Ôä-Ø×Ñó
ˆŒô ,Ø�O‰Oó
ˆŒ	ô +Ø�N‰Nó
ˆ�r/   ©r’   rT   rn   rc   N©r”   r#   rq   ÚNone©r|   r}   r~   r   r•   r€   rp   r/   r,   r)   r)   ª  ó   † ÷
r/   r)   c                  ó   • \ rS rSrSS jrSrg)r„   i¹  c                ó¬   • Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        g r‘   )r’   r   rT   rc   rn   r“   s     r,   r•   Ú.AsyncParseJobsResourceWithRawResponse.__init__º  sG   € Ø%Ôä3Ø×Ñó
ˆŒô 2Ø�O‰Oó
ˆŒ	ô 1Ø�N‰Nó
ˆ�r/   r—   N©r”   r$   rq   r™   rš   rp   r/   r,   r„   r„   ¹  r›   r/   r„   c                  ó   • \ rS rSrSS jrSrg)r2   iÈ  c                ó¬   • Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        g r‘   )r’   r   rT   rc   rn   r“   s     r,   r•   Ú/ParseJobsResourceWithStreamingResponse.__init__É  sG   € Ø%Ôä2Ø×Ñó
ˆŒô 1Ø�O‰Oó
ˆŒ	ô 0Ø�N‰Nó
ˆ�r/   r—   Nr˜   rš   rp   r/   r,   r2   r2   È  r›   r/   r2   c                  ó   • \ rS rSrSS jrSrg)r‡   i×  c                ó¬   • Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        g r‘   )r’   r   rT   rc   rn   r“   s     r,   r•   Ú4AsyncParseJobsResourceWithStreamingResponse.__init__Ø  sG   € Ø%Ôä8Ø×Ñó
ˆŒô 7Ø�O‰Oó
ˆŒ	ô 6Ø�N‰Nó
ˆ�r/   r—   NrŸ   rš   rp   r/   r,   r‡   r‡   ×  r›   r/   r‡   )5Ú
__future__r   Útypingr   r   r   Útyping_extensionsr   ÚhttpxÚtypesr	   r
   Ú_filesr   Ú_typesr   r   r   r   r   r   r   r   Ú_utilsr   r   r   r   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r   r   r   Ú_base_clientr   Útypes.parse_job_get_responser    Útypes.parse_job_list_responser!   Útypes.parse_job_create_responser"   Ú__all__r#   r$   r)   r„   r2   r‡   rp   r/   r,   Ú<module>r¶      s™   ðÝ "ç *Ñ *Ý %ã ç BÝ (ß U× UÓ Uß YÓ YÝ %ß 9÷ó õ 0Ý >Ý @Ý DàÐ 8Ð
9€ôD
˜ô D
ôND
Ð-ô D
÷N
ñ 
÷
ñ 
÷
ñ 
÷
ò 
r/   