File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from .public import (
2- ConvertToMarkdownResponse ,
32 ExtractTextResponse ,
43 PdfRestDeletionResponse ,
54 PdfRestErrorResponse ,
1413)
1514
1615__all__ = [
17- "ConvertToMarkdownResponse" ,
1816 "ExtractTextResponse" ,
1917 "PdfRestDeletionResponse" ,
2018 "PdfRestErrorResponse" ,
Original file line number Diff line number Diff line change 2020from typing_extensions import override
2121
2222__all__ = (
23- "ConvertToMarkdownResponse" ,
2423 "ExtractTextResponse" ,
2524 "PdfRestDeletionResponse" ,
2625 "PdfRestErrorResponse" ,
@@ -485,49 +484,6 @@ class ExtractTextResponse(BaseModel):
485484 ] = None
486485
487486
488- class ConvertToMarkdownResponse (BaseModel ):
489- """Response returned by the markdown conversion tool."""
490-
491- model_config = ConfigDict (extra = "allow" )
492-
493- markdown : Annotated [
494- str | None ,
495- Field (
496- description = "Inline markdown content when output_type is json." ,
497- default = None ,
498- ),
499- ] = None
500- input_id : Annotated [
501- PdfRestFileID ,
502- Field (
503- validation_alias = AliasChoices ("input_id" , "inputId" ),
504- description = "The id of the input file." ,
505- ),
506- ]
507- output_url : Annotated [
508- HttpUrl | None ,
509- Field (
510- alias = "outputUrl" ,
511- validation_alias = AliasChoices ("output_url" , "outputUrl" ),
512- description = "Download URL for file output." ,
513- default = None ,
514- ),
515- ] = None
516- output_id : Annotated [
517- PdfRestFileID | None ,
518- Field (
519- alias = "outputId" ,
520- validation_alias = AliasChoices ("output_id" , "outputId" ),
521- description = "The id of the generated output when output_type is file." ,
522- default = None ,
523- ),
524- ] = None
525- warning : Annotated [
526- str | None ,
527- Field (description = "A warning that was generated during markdown conversion." ),
528- ] = None
529-
530-
531487class PdfRestInfoResponse (BaseModel ):
532488 """A response containing the output from the /info route."""
533489
You can’t perform that action at this time.
0 commit comments