mindee 5.9.0 → 5.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +12 -13
  3. package/src/geometry/bbox.d.ts +18 -6
  4. package/src/geometry/bbox.js +6 -2
  5. package/src/geometry/boundingBox.d.ts +3 -1
  6. package/src/geometry/boundingBox.js +3 -1
  7. package/src/geometry/boundingBoxUtils.d.ts +4 -4
  8. package/src/geometry/boundingBoxUtils.js +7 -7
  9. package/src/geometry/minMax.d.ts +9 -3
  10. package/src/geometry/point.d.ts +3 -1
  11. package/src/geometry/polygon.d.ts +3 -1
  12. package/src/geometry/polygon.js +3 -1
  13. package/src/http/apiCore.js +1 -1
  14. package/src/http/baseSettings.d.ts +15 -5
  15. package/src/http/baseSettings.js +4 -2
  16. package/src/http/dispatcher.js +4 -2
  17. package/src/image/extractedImage.d.ts +13 -5
  18. package/src/image/extractedImage.js +3 -3
  19. package/src/image/extractedImages.d.ts +3 -1
  20. package/src/image/extractedImages.js +3 -1
  21. package/src/image/imageCompressor.d.ts +1 -0
  22. package/src/image/imageCompressor.js +2 -2
  23. package/src/image/imageExtractor.d.ts +1 -1
  24. package/src/image/imageExtractor.js +12 -12
  25. package/src/input/base64Input.d.ts +9 -3
  26. package/src/input/base64Input.js +9 -3
  27. package/src/input/bufferInput.d.ts +7 -2
  28. package/src/input/bufferInput.js +6 -2
  29. package/src/input/bytesInput.d.ts +10 -3
  30. package/src/input/bytesInput.js +10 -3
  31. package/src/input/inputSource.d.ts +4 -2
  32. package/src/input/inputSource.js +3 -2
  33. package/src/input/localInputSource.d.ts +19 -6
  34. package/src/input/localInputSource.js +12 -5
  35. package/src/input/pageOptions.d.ts +9 -3
  36. package/src/input/pageOptions.js +6 -2
  37. package/src/input/pathInput.d.ts +12 -4
  38. package/src/input/pathInput.js +11 -5
  39. package/src/input/streamInput.d.ts +14 -5
  40. package/src/input/streamInput.js +13 -4
  41. package/src/input/urlInput.d.ts +19 -7
  42. package/src/input/urlInput.js +20 -12
  43. package/src/parsing/baseLocalResponse.d.ts +7 -3
  44. package/src/parsing/baseLocalResponse.js +15 -11
  45. package/src/parsing/stringDict.d.ts +3 -1
  46. package/src/pdf/extractedPdf.d.ts +16 -6
  47. package/src/pdf/extractedPdf.js +5 -3
  48. package/src/pdf/extractedPdfs.d.ts +3 -1
  49. package/src/pdf/extractedPdfs.js +3 -1
  50. package/src/pdf/pdfCompressor.js +14 -14
  51. package/src/pdf/pdfExtractor.js +1 -1
  52. package/src/pdf/pdfOperation.d.ts +9 -3
  53. package/src/pdf/pdfOperation.js +14 -14
  54. package/src/pdf/pdfUtils.js +1 -1
  55. package/src/v1/cli.js +1 -1
  56. package/src/v1/client.d.ts +42 -14
  57. package/src/v1/client.js +8 -8
  58. package/src/v1/extraction/invoiceSplitterExtractor/extractedInvoiceSplitterImage.d.ts +6 -2
  59. package/src/v1/extraction/invoiceSplitterExtractor/invoiceSplitterExtractor.js +4 -4
  60. package/src/v1/extraction/multiReceiptsExtractor/extractedMultiReceiptImage.d.ts +6 -2
  61. package/src/v1/extraction/multiReceiptsExtractor/multiReceiptsExtractor.js +2 -2
  62. package/src/v1/http/apiSettingsV1.d.ts +15 -5
  63. package/src/v1/http/apiSettingsV1.js +12 -4
  64. package/src/v1/http/baseEndpoint.d.ts +6 -2
  65. package/src/v1/http/endpoint.d.ts +9 -3
  66. package/src/v1/http/endpoint.js +1 -1
  67. package/src/v1/http/errors.d.ts +9 -3
  68. package/src/v1/http/errors.js +6 -2
  69. package/src/v1/http/httpParams.d.ts +36 -12
  70. package/src/v1/http/workflowEndpoint.js +1 -1
  71. package/src/v1/parsing/common/apiRequest.d.ts +15 -5
  72. package/src/v1/parsing/common/apiResponse.d.ts +6 -2
  73. package/src/v1/parsing/common/asyncPredictResponse.d.ts +21 -7
  74. package/src/v1/parsing/common/document.d.ts +18 -6
  75. package/src/v1/parsing/common/document.js +2 -2
  76. package/src/v1/parsing/common/execution.d.ts +39 -13
  77. package/src/v1/parsing/common/executionFile.d.ts +6 -2
  78. package/src/v1/parsing/common/executionPriority.d.ts +12 -4
  79. package/src/v1/parsing/common/executionPriority.js +12 -4
  80. package/src/v1/parsing/common/extras/cropperExtra.d.ts +7 -3
  81. package/src/v1/parsing/common/extras/cropperExtra.js +6 -3
  82. package/src/v1/parsing/common/extras/extras.d.ts +9 -3
  83. package/src/v1/parsing/common/extras/extras.js +6 -2
  84. package/src/v1/parsing/common/extras/fullTextOcrExtra.d.ts +9 -3
  85. package/src/v1/parsing/common/extras/fullTextOcrExtra.js +3 -1
  86. package/src/v1/parsing/common/extras/ragExtra.d.ts +3 -1
  87. package/src/v1/parsing/common/extras/ragExtra.js +3 -1
  88. package/src/v1/parsing/common/feedback/feedbackResponse.d.ts +3 -1
  89. package/src/v1/parsing/common/feedback/feedbackResponse.js +0 -1
  90. package/src/v1/parsing/common/inference.d.ts +24 -8
  91. package/src/v1/parsing/common/inference.js +6 -2
  92. package/src/v1/parsing/common/mvisionV1.d.ts +3 -1
  93. package/src/v1/parsing/common/mvisionV1.js +3 -1
  94. package/src/v1/parsing/common/ocr.d.ts +3 -1
  95. package/src/v1/parsing/common/ocrPage.d.ts +6 -2
  96. package/src/v1/parsing/common/ocrPage.js +6 -2
  97. package/src/v1/parsing/common/orientation.d.ts +6 -2
  98. package/src/v1/parsing/common/page.d.ts +12 -4
  99. package/src/v1/parsing/common/predictResponse.d.ts +3 -1
  100. package/src/v1/parsing/common/prediction.d.ts +3 -1
  101. package/src/v1/parsing/common/prediction.js +3 -1
  102. package/src/v1/parsing/generated/generatedList.d.ts +6 -2
  103. package/src/v1/parsing/generated/generatedObject.d.ts +25 -9
  104. package/src/v1/parsing/generated/generatedObject.js +13 -7
  105. package/src/v1/parsing/localResponse.d.ts +3 -1
  106. package/src/v1/parsing/localResponse.js +3 -1
  107. package/src/v1/parsing/standard/addressField.d.ts +24 -8
  108. package/src/v1/parsing/standard/amount.d.ts +3 -1
  109. package/src/v1/parsing/standard/amount.js +3 -1
  110. package/src/v1/parsing/standard/base.d.ts +27 -9
  111. package/src/v1/parsing/standard/base.js +6 -2
  112. package/src/v1/parsing/standard/boolean.d.ts +3 -1
  113. package/src/v1/parsing/standard/classification.d.ts +6 -2
  114. package/src/v1/parsing/standard/companyRegistration.d.ts +9 -3
  115. package/src/v1/parsing/standard/companyRegistration.js +3 -1
  116. package/src/v1/parsing/standard/date.d.ts +12 -4
  117. package/src/v1/parsing/standard/date.js +3 -1
  118. package/src/v1/parsing/standard/field.d.ts +7 -5
  119. package/src/v1/parsing/standard/field.js +4 -4
  120. package/src/v1/parsing/standard/locale.d.ts +15 -5
  121. package/src/v1/parsing/standard/paymentDetails.d.ts +15 -5
  122. package/src/v1/parsing/standard/position.d.ts +15 -5
  123. package/src/v1/parsing/standard/tax.d.ts +18 -6
  124. package/src/v1/parsing/standard/tax.js +15 -5
  125. package/src/v1/parsing/standard/text.d.ts +6 -2
  126. package/src/v1/parsing/standard/word.d.ts +9 -3
  127. package/src/v1/parsing/standard/word.js +3 -1
  128. package/src/v1/product/barcodeReader/barcodeReaderV1.d.ts +12 -4
  129. package/src/v1/product/barcodeReader/barcodeReaderV1.js +9 -3
  130. package/src/v1/product/barcodeReader/barcodeReaderV1Document.d.ts +6 -2
  131. package/src/v1/product/barcodeReader/barcodeReaderV1Document.js +6 -2
  132. package/src/v1/product/cropper/cropperV1.d.ts +12 -4
  133. package/src/v1/product/cropper/cropperV1.js +9 -3
  134. package/src/v1/product/cropper/cropperV1Page.d.ts +3 -1
  135. package/src/v1/product/cropper/cropperV1Page.js +3 -1
  136. package/src/v1/product/driverLicense/driverLicenseV1.d.ts +12 -4
  137. package/src/v1/product/driverLicense/driverLicenseV1.js +9 -3
  138. package/src/v1/product/driverLicense/driverLicenseV1Document.d.ts +39 -13
  139. package/src/v1/product/financialDocument/financialDocumentV1.d.ts +12 -4
  140. package/src/v1/product/financialDocument/financialDocumentV1.js +9 -3
  141. package/src/v1/product/financialDocument/financialDocumentV1Document.d.ts +96 -32
  142. package/src/v1/product/financialDocument/financialDocumentV1Document.js +15 -5
  143. package/src/v1/product/financialDocument/financialDocumentV1LineItem.d.ts +30 -10
  144. package/src/v1/product/financialDocument/financialDocumentV1LineItem.js +3 -1
  145. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1.d.ts +12 -4
  146. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1.js +9 -3
  147. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1Document.d.ts +9 -3
  148. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2.d.ts +12 -4
  149. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2.js +9 -3
  150. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.d.ts +18 -6
  151. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.js +3 -1
  152. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Document.d.ts +12 -4
  153. package/src/v1/product/fr/carteGrise/carteGriseV1.d.ts +12 -4
  154. package/src/v1/product/fr/carteGrise/carteGriseV1.js +9 -3
  155. package/src/v1/product/fr/carteGrise/carteGriseV1Document.d.ts +123 -41
  156. package/src/v1/product/fr/idCard/idCardV2.d.ts +12 -4
  157. package/src/v1/product/fr/idCard/idCardV2.js +9 -3
  158. package/src/v1/product/fr/idCard/idCardV2Document.d.ts +45 -15
  159. package/src/v1/product/fr/idCard/idCardV2Document.js +3 -1
  160. package/src/v1/product/fr/idCard/idCardV2Page.d.ts +6 -2
  161. package/src/v1/product/generated/generatedV1.d.ts +12 -4
  162. package/src/v1/product/generated/generatedV1.js +9 -3
  163. package/src/v1/product/generated/generatedV1Prediction.d.ts +6 -2
  164. package/src/v1/product/generated/generatedV1Prediction.js +3 -1
  165. package/src/v1/product/internationalId/internationalIdV2.d.ts +12 -4
  166. package/src/v1/product/internationalId/internationalIdV2.js +9 -3
  167. package/src/v1/product/internationalId/internationalIdV2Document.d.ts +51 -17
  168. package/src/v1/product/internationalId/internationalIdV2Document.js +6 -2
  169. package/src/v1/product/invoice/invoiceV4.d.ts +12 -4
  170. package/src/v1/product/invoice/invoiceV4.js +9 -3
  171. package/src/v1/product/invoice/invoiceV4Document.d.ts +87 -29
  172. package/src/v1/product/invoice/invoiceV4Document.js +15 -5
  173. package/src/v1/product/invoice/invoiceV4LineItem.d.ts +30 -10
  174. package/src/v1/product/invoice/invoiceV4LineItem.js +3 -1
  175. package/src/v1/product/invoiceSplitter/invoiceSplitterV1.d.ts +12 -4
  176. package/src/v1/product/invoiceSplitter/invoiceSplitterV1.js +9 -3
  177. package/src/v1/product/invoiceSplitter/invoiceSplitterV1Document.d.ts +3 -1
  178. package/src/v1/product/invoiceSplitter/invoiceSplitterV1Document.js +3 -1
  179. package/src/v1/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.d.ts +9 -3
  180. package/src/v1/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.js +3 -1
  181. package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1.d.ts +12 -4
  182. package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1.js +9 -3
  183. package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.d.ts +3 -1
  184. package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.js +3 -1
  185. package/src/v1/product/passport/passportV1.d.ts +12 -4
  186. package/src/v1/product/passport/passportV1.js +9 -3
  187. package/src/v1/product/passport/passportV1Document.d.ts +33 -11
  188. package/src/v1/product/passport/passportV1Document.js +3 -1
  189. package/src/v1/product/receipt/receiptV5.d.ts +12 -4
  190. package/src/v1/product/receipt/receiptV5.js +9 -3
  191. package/src/v1/product/receipt/receiptV5Document.d.ts +51 -17
  192. package/src/v1/product/receipt/receiptV5Document.js +6 -2
  193. package/src/v1/product/receipt/receiptV5LineItem.d.ts +18 -6
  194. package/src/v1/product/receipt/receiptV5LineItem.js +3 -1
  195. package/src/v1/product/resume/resumeV1.d.ts +12 -4
  196. package/src/v1/product/resume/resumeV1.js +9 -3
  197. package/src/v1/product/resume/resumeV1Certificate.d.ts +18 -6
  198. package/src/v1/product/resume/resumeV1Certificate.js +3 -1
  199. package/src/v1/product/resume/resumeV1Document.d.ts +51 -17
  200. package/src/v1/product/resume/resumeV1Document.js +27 -9
  201. package/src/v1/product/resume/resumeV1Education.d.ts +27 -9
  202. package/src/v1/product/resume/resumeV1Education.js +3 -1
  203. package/src/v1/product/resume/resumeV1Language.d.ts +12 -4
  204. package/src/v1/product/resume/resumeV1Language.js +3 -1
  205. package/src/v1/product/resume/resumeV1ProfessionalExperience.d.ts +33 -11
  206. package/src/v1/product/resume/resumeV1ProfessionalExperience.js +3 -1
  207. package/src/v1/product/resume/resumeV1SocialNetworksUrl.d.ts +12 -4
  208. package/src/v1/product/resume/resumeV1SocialNetworksUrl.js +3 -1
  209. package/src/v1/product/us/bankCheck/bankCheckV1.d.ts +12 -4
  210. package/src/v1/product/us/bankCheck/bankCheckV1.js +9 -3
  211. package/src/v1/product/us/bankCheck/bankCheckV1Document.d.ts +18 -6
  212. package/src/v1/product/us/bankCheck/bankCheckV1Document.js +3 -1
  213. package/src/v1/product/us/bankCheck/bankCheckV1Page.d.ts +6 -2
  214. package/src/v1/product/us/bankCheck/bankCheckV1Page.js +3 -1
  215. package/src/v2/cli.js +1 -1
  216. package/src/v2/client.d.ts +9 -3
  217. package/src/v2/clientOptions/pollingOptions.d.ts +30 -10
  218. package/src/v2/clientOptions/pollingOptions.js +6 -2
  219. package/src/v2/http/mindeeApiV2.d.ts +1 -1
  220. package/src/v2/http/mindeeApiV2.js +1 -1
  221. package/src/v2/parsing/error/errorDetails.d.ts +3 -1
  222. package/src/v2/parsing/inference/baseInference.d.ts +6 -2
  223. package/src/v2/parsing/inference/baseInference.js +6 -2
  224. package/src/v2/parsing/inference/field/baseField.d.ts +9 -3
  225. package/src/v2/parsing/inference/field/fieldConfidence.d.ts +12 -4
  226. package/src/v2/parsing/inference/field/fieldConfidence.js +12 -4
  227. package/src/v2/parsing/inference/field/fieldLocation.d.ts +9 -3
  228. package/src/v2/parsing/inference/field/fieldLocation.js +3 -1
  229. package/src/v2/parsing/inference/field/inferenceFields.d.ts +6 -2
  230. package/src/v2/parsing/inference/field/inferenceFields.js +3 -1
  231. package/src/v2/parsing/inference/field/listField.d.ts +6 -2
  232. package/src/v2/parsing/inference/field/listField.js +6 -2
  233. package/src/v2/parsing/inference/field/objectField.d.ts +6 -2
  234. package/src/v2/parsing/inference/field/objectField.js +3 -1
  235. package/src/v2/parsing/inference/field/ragMetadata.d.ts +3 -1
  236. package/src/v2/parsing/inference/field/ragMetadata.js +3 -1
  237. package/src/v2/parsing/inference/field/rawText.d.ts +6 -2
  238. package/src/v2/parsing/inference/field/rawText.js +6 -2
  239. package/src/v2/parsing/inference/field/simpleField.d.ts +6 -2
  240. package/src/v2/parsing/inference/field/simpleField.js +8 -4
  241. package/src/v2/parsing/inference/inferenceFile.d.ts +6 -2
  242. package/src/v2/parsing/inference/inferenceFile.js +6 -2
  243. package/src/v2/parsing/inference/inferenceModel.d.ts +6 -2
  244. package/src/v2/parsing/inference/inferenceModel.js +6 -2
  245. package/src/v2/product/classification/classification.d.ts +9 -3
  246. package/src/v2/product/classification/classification.js +9 -3
  247. package/src/v2/product/classification/classificationClassifier.d.ts +6 -2
  248. package/src/v2/product/classification/classificationClassifier.js +6 -2
  249. package/src/v2/product/classification/classificationInference.d.ts +6 -2
  250. package/src/v2/product/classification/classificationInference.js +6 -2
  251. package/src/v2/product/classification/classificationResponse.d.ts +3 -1
  252. package/src/v2/product/classification/classificationResponse.js +3 -1
  253. package/src/v2/product/classification/classificationResult.d.ts +6 -2
  254. package/src/v2/product/classification/classificationResult.js +6 -2
  255. package/src/v2/product/crop/crop.d.ts +9 -3
  256. package/src/v2/product/crop/crop.js +9 -3
  257. package/src/v2/product/crop/cropInference.d.ts +6 -2
  258. package/src/v2/product/crop/cropInference.js +6 -2
  259. package/src/v2/product/crop/cropItem.d.ts +6 -2
  260. package/src/v2/product/crop/cropItem.js +6 -2
  261. package/src/v2/product/crop/cropResponse.d.ts +3 -1
  262. package/src/v2/product/crop/cropResponse.js +3 -1
  263. package/src/v2/product/crop/cropResult.d.ts +6 -2
  264. package/src/v2/product/crop/cropResult.js +6 -2
  265. package/src/v2/product/extraction/dataSchemaActiveOption.d.ts +3 -1
  266. package/src/v2/product/extraction/dataSchemaActiveOption.js +3 -1
  267. package/src/v2/product/extraction/extraction.d.ts +18 -6
  268. package/src/v2/product/extraction/extraction.js +18 -6
  269. package/src/v2/product/extraction/extractionActiveOptions.d.ts +6 -2
  270. package/src/v2/product/extraction/extractionActiveOptions.js +6 -2
  271. package/src/v2/product/extraction/extractionInference.d.ts +6 -2
  272. package/src/v2/product/extraction/extractionInference.js +6 -2
  273. package/src/v2/product/extraction/extractionResponse.d.ts +3 -1
  274. package/src/v2/product/extraction/extractionResponse.js +3 -1
  275. package/src/v2/product/extraction/extractionResult.d.ts +6 -2
  276. package/src/v2/product/extraction/extractionResult.js +6 -2
  277. package/src/v2/product/extraction/params/dataSchema.d.ts +12 -4
  278. package/src/v2/product/extraction/params/dataSchema.js +6 -2
  279. package/src/v2/product/extraction/params/dataSchemaField.d.ts +39 -13
  280. package/src/v2/product/extraction/params/dataSchemaField.js +9 -3
  281. package/src/v2/product/extraction/params/dataSchemaReplace.d.ts +12 -4
  282. package/src/v2/product/extraction/params/dataSchemaReplace.js +6 -2
  283. package/src/v2/product/extraction/params/extractionParameters.js +3 -3
  284. package/src/v2/product/extraction/ragDocuments/annotatedListField.d.ts +3 -1
  285. package/src/v2/product/extraction/ragDocuments/annotatedListField.js +3 -1
  286. package/src/v2/product/extraction/ragDocuments/params/ragDocumentAnnotationParameters.js +1 -1
  287. package/src/v2/product/ocr/ocr.d.ts +9 -3
  288. package/src/v2/product/ocr/ocr.js +9 -3
  289. package/src/v2/product/ocr/ocrInference.d.ts +6 -2
  290. package/src/v2/product/ocr/ocrInference.js +6 -2
  291. package/src/v2/product/ocr/ocrPage.d.ts +6 -2
  292. package/src/v2/product/ocr/ocrPage.js +6 -2
  293. package/src/v2/product/ocr/ocrResponse.d.ts +3 -1
  294. package/src/v2/product/ocr/ocrResponse.js +3 -1
  295. package/src/v2/product/ocr/ocrResult.d.ts +3 -1
  296. package/src/v2/product/ocr/ocrResult.js +3 -1
  297. package/src/v2/product/ocr/ocrWord.d.ts +6 -2
  298. package/src/v2/product/ocr/ocrWord.js +6 -2
  299. package/src/v2/product/split/split.d.ts +9 -3
  300. package/src/v2/product/split/split.js +9 -3
  301. package/src/v2/product/split/splitInference.d.ts +6 -2
  302. package/src/v2/product/split/splitInference.js +6 -2
  303. package/src/v2/product/split/splitRange.d.ts +3 -1
  304. package/src/v2/product/split/splitRange.js +3 -1
  305. package/src/v2/product/split/splitResponse.d.ts +3 -1
  306. package/src/v2/product/split/splitResponse.js +3 -1
  307. package/src/v2/product/split/splitResult.d.ts +3 -1
  308. package/src/v2/product/split/splitResult.js +3 -1
  309. package/src/v2/search/baseSearch.d.ts +9 -3
  310. package/src/v2/search/baseSearch.js +9 -3
  311. package/src/v2/search/models/modelSearch.d.ts +9 -3
  312. package/src/v2/search/models/modelSearch.js +9 -3
  313. package/src/v2/search/models/modelSearchParameters.d.ts +3 -1
  314. package/src/v2/search/models/modelSearchParameters.js +3 -1
  315. package/src/v2/search/ragDocuments/ragDocumentSearch.d.ts +9 -3
  316. package/src/v2/search/ragDocuments/ragDocumentSearch.js +9 -3
  317. package/src/v2/search/ragDocuments/ragDocumentSearchParameters.d.ts +3 -1
  318. package/src/v2/search/ragDocuments/ragDocumentSearchParameters.js +3 -1
@@ -1,12 +1,16 @@
1
1
  import { StringDict } from "../../../../parsing/stringDict.js";
2
2
  import { RawTextPage } from "./rawTextPage.js";
3
- /** Full raw OCR text grouped by page. */
3
+ /**
4
+ * Full raw OCR text grouped by page.
5
+ */
4
6
  export declare class RawText {
5
7
  /**
6
8
  * List of pages with their extracted text content.
7
9
  */
8
10
  pages: Array<RawTextPage>;
9
11
  constructor(serverResponse: StringDict);
10
- /** Returns concatenated raw text for all pages. */
12
+ /**
13
+ * Returns concatenated raw text for all pages.
14
+ */
11
15
  toString(): string;
12
16
  }
@@ -1,10 +1,14 @@
1
1
  import { RawTextPage } from "./rawTextPage.js";
2
- /** Full raw OCR text grouped by page. */
2
+ /**
3
+ * Full raw OCR text grouped by page.
4
+ */
3
5
  export class RawText {
4
6
  constructor(serverResponse) {
5
7
  this.pages = serverResponse["pages"] ? serverResponse["pages"].map((rawTextPage) => new RawTextPage(rawTextPage)) : [];
6
8
  }
7
- /** Returns concatenated raw text for all pages. */
9
+ /**
10
+ * Returns concatenated raw text for all pages.
11
+ */
8
12
  toString() {
9
13
  return this.pages.map(page => page.toString()).join("\n\n");
10
14
  }
@@ -1,6 +1,8 @@
1
1
  import { StringDict } from "../../../../parsing/stringDict.js";
2
2
  import { BaseField } from "./baseField.js";
3
- /** Scalar inference field. */
3
+ /**
4
+ * Scalar inference field.
5
+ */
4
6
  export declare class SimpleField extends BaseField {
5
7
  /**
6
8
  * The untyped value of the field.
@@ -24,6 +26,8 @@ export declare class SimpleField extends BaseField {
24
26
  * Retrieves a boolean field value as a boolean.
25
27
  */
26
28
  get booleanValue(): boolean | null;
27
- /** Returns a readable scalar representation. */
29
+ /**
30
+ * Returns a readable scalar representation.
31
+ */
28
32
  toString(): string;
29
33
  }
@@ -1,10 +1,12 @@
1
1
  import { BaseField } from "./baseField.js";
2
- /** Scalar inference field. */
2
+ /**
3
+ * Scalar inference field.
4
+ */
3
5
  export class SimpleField extends BaseField {
4
6
  constructor(serverResponse, indentLevel = 0) {
5
7
  super(serverResponse, indentLevel);
6
- this.value =
7
- serverResponse["value"] !== undefined ? serverResponse["value"] : null;
8
+ this.value = serverResponse["value"] === undefined
9
+ ? null : serverResponse["value"];
8
10
  }
9
11
  /**
10
12
  * Retrieves a string field value as a string.
@@ -33,7 +35,9 @@ export class SimpleField extends BaseField {
33
35
  }
34
36
  return this.value;
35
37
  }
36
- /** Returns a readable scalar representation. */
38
+ /**
39
+ * Returns a readable scalar representation.
40
+ */
37
41
  toString() {
38
42
  if (this.value === null) {
39
43
  return "";
@@ -1,5 +1,7 @@
1
1
  import { StringDict } from "../../../parsing/stringDict.js";
2
- /** File metadata attached to a v2 inference. */
2
+ /**
3
+ * File metadata attached to a v2 inference.
4
+ */
3
5
  export declare class InferenceFile {
4
6
  /**
5
7
  * Name of the file.
@@ -18,6 +20,8 @@ export declare class InferenceFile {
18
20
  */
19
21
  mimeType: string;
20
22
  constructor(serverResponse: StringDict);
21
- /** Returns a printable representation of file metadata. */
23
+ /**
24
+ * Returns a printable representation of file metadata.
25
+ */
22
26
  toString(): string;
23
27
  }
@@ -1,4 +1,6 @@
1
- /** File metadata attached to a v2 inference. */
1
+ /**
2
+ * File metadata attached to a v2 inference.
3
+ */
2
4
  export class InferenceFile {
3
5
  constructor(serverResponse) {
4
6
  this.name = serverResponse["name"];
@@ -6,7 +8,9 @@ export class InferenceFile {
6
8
  this.pageCount = serverResponse["page_count"];
7
9
  this.mimeType = serverResponse["mime_type"];
8
10
  }
9
- /** Returns a printable representation of file metadata. */
11
+ /**
12
+ * Returns a printable representation of file metadata.
13
+ */
10
14
  toString() {
11
15
  return ("File\n" +
12
16
  "====\n" +
@@ -1,11 +1,15 @@
1
1
  import { StringDict } from "../../../parsing/stringDict.js";
2
- /** Model metadata attached to a v2 inference. */
2
+ /**
3
+ * Model metadata attached to a v2 inference.
4
+ */
3
5
  export declare class InferenceModel {
4
6
  /**
5
7
  * ID of the model.
6
8
  */
7
9
  id: string;
8
10
  constructor(serverResponse: StringDict);
9
- /** Returns a printable representation of model metadata. */
11
+ /**
12
+ * Returns a printable representation of model metadata.
13
+ */
10
14
  toString(): string;
11
15
  }
@@ -1,9 +1,13 @@
1
- /** Model metadata attached to a v2 inference. */
1
+ /**
2
+ * Model metadata attached to a v2 inference.
3
+ */
2
4
  export class InferenceModel {
3
5
  constructor(serverResponse) {
4
6
  this.id = serverResponse["id"];
5
7
  }
6
- /** Returns a printable representation of model metadata. */
8
+ /**
9
+ * Returns a printable representation of model metadata.
10
+ */
7
11
  toString() {
8
12
  return "Model\n" +
9
13
  "=====\n" +
@@ -5,10 +5,16 @@ import { BaseProduct } from "../baseProduct.js";
5
5
  * Automatically sort any image or scanned document into categories.
6
6
  */
7
7
  export declare class Classification extends BaseProduct {
8
- /** @inheritDoc */
8
+ /**
9
+ * @inheritDoc
10
+ */
9
11
  static get parametersClass(): typeof ClassificationParameters;
10
- /** @inheritDoc */
12
+ /**
13
+ * @inheritDoc
14
+ */
11
15
  static get responseClass(): typeof ClassificationResponse;
12
- /** @inheritDoc */
16
+ /**
17
+ * @inheritDoc
18
+ */
13
19
  static get slug(): string;
14
20
  }
@@ -5,15 +5,21 @@ import { BaseProduct } from "../baseProduct.js";
5
5
  * Automatically sort any image or scanned document into categories.
6
6
  */
7
7
  export class Classification extends BaseProduct {
8
- /** @inheritDoc */
8
+ /**
9
+ * @inheritDoc
10
+ */
9
11
  static get parametersClass() {
10
12
  return ClassificationParameters;
11
13
  }
12
- /** @inheritDoc */
14
+ /**
15
+ * @inheritDoc
16
+ */
13
17
  static get responseClass() {
14
18
  return ClassificationResponse;
15
19
  }
16
- /** @inheritDoc */
20
+ /**
21
+ * @inheritDoc
22
+ */
17
23
  static get slug() {
18
24
  return "classification";
19
25
  }
@@ -3,7 +3,9 @@ import { ExtractionResponse } from "../index.js";
3
3
  /**
4
4
  * Document level classification.
5
5
  */
6
- /** Classifier output for document-level classification. */
6
+ /**
7
+ * Classifier output for document-level classification.
8
+ */
7
9
  export declare class ClassificationClassifier {
8
10
  /**
9
11
  * The document type, as identified on given classification values.
@@ -14,6 +16,8 @@ export declare class ClassificationClassifier {
14
16
  */
15
17
  extractionResponse?: ExtractionResponse;
16
18
  constructor(serverResponse: StringDict);
17
- /** Returns a readable classifier summary. */
19
+ /**
20
+ * Returns a readable classifier summary.
21
+ */
18
22
  toString(): string;
19
23
  }
@@ -2,7 +2,9 @@ import { ExtractionResponse } from "../index.js";
2
2
  /**
3
3
  * Document level classification.
4
4
  */
5
- /** Classifier output for document-level classification. */
5
+ /**
6
+ * Classifier output for document-level classification.
7
+ */
6
8
  export class ClassificationClassifier {
7
9
  constructor(serverResponse) {
8
10
  this.documentType = serverResponse["document_type"];
@@ -10,7 +12,9 @@ export class ClassificationClassifier {
10
12
  ? new ExtractionResponse(serverResponse["extraction_response"])
11
13
  : undefined;
12
14
  }
13
- /** Returns a readable classifier summary. */
15
+ /**
16
+ * Returns a readable classifier summary.
17
+ */
14
18
  toString() {
15
19
  return `Document Type: ${this.documentType}`;
16
20
  }
@@ -1,13 +1,17 @@
1
1
  import { StringDict } from "../../../parsing/index.js";
2
2
  import { BaseInference } from "../../parsing/inference/baseInference.js";
3
3
  import { ClassificationResult } from "./classificationResult.js";
4
- /** Inference payload for classification responses. */
4
+ /**
5
+ * Inference payload for classification responses.
6
+ */
5
7
  export declare class ClassificationInference extends BaseInference {
6
8
  /**
7
9
  * Result of a classification inference.
8
10
  */
9
11
  result: ClassificationResult;
10
12
  constructor(serverResponse: StringDict);
11
- /** Returns a readable representation of the inference. */
13
+ /**
14
+ * Returns a readable representation of the inference.
15
+ */
12
16
  toString(): string;
13
17
  }
@@ -1,12 +1,16 @@
1
1
  import { BaseInference } from "../../parsing/inference/baseInference.js";
2
2
  import { ClassificationResult } from "./classificationResult.js";
3
- /** Inference payload for classification responses. */
3
+ /**
4
+ * Inference payload for classification responses.
5
+ */
4
6
  export class ClassificationInference extends BaseInference {
5
7
  constructor(serverResponse) {
6
8
  super(serverResponse);
7
9
  this.result = new ClassificationResult(serverResponse["result"]);
8
10
  }
9
- /** Returns a readable representation of the inference. */
11
+ /**
12
+ * Returns a readable representation of the inference.
13
+ */
10
14
  toString() {
11
15
  return (super.toString() +
12
16
  this.result.toString() + "\n");
@@ -1,7 +1,9 @@
1
1
  import { StringDict } from "../../../parsing/stringDict.js";
2
2
  import { ClassificationInference } from "./classificationInference.js";
3
3
  import { BaseResponse } from "../../parsing/index.js";
4
- /** Response wrapper for classification product calls. */
4
+ /**
5
+ * Response wrapper for classification product calls.
6
+ */
5
7
  export declare class ClassificationResponse extends BaseResponse {
6
8
  /**
7
9
  * The inference result for a classification utility request.
@@ -1,6 +1,8 @@
1
1
  import { ClassificationInference } from "./classificationInference.js";
2
2
  import { BaseResponse } from "../../parsing/index.js";
3
- /** Response wrapper for classification product calls. */
3
+ /**
4
+ * Response wrapper for classification product calls.
5
+ */
4
6
  export class ClassificationResponse extends BaseResponse {
5
7
  /**
6
8
  * @param serverResponse JSON response from the server.
@@ -1,12 +1,16 @@
1
1
  import { StringDict } from "../../../parsing/stringDict.js";
2
2
  import { ClassificationClassifier } from "./classificationClassifier.js";
3
- /** Classification section of a classification inference result. */
3
+ /**
4
+ * Classification section of a classification inference result.
5
+ */
4
6
  export declare class ClassificationResult {
5
7
  /**
6
8
  * Fields contained in the inference.
7
9
  */
8
10
  classification: ClassificationClassifier;
9
11
  constructor(serverResponse: StringDict);
10
- /** Returns a readable classification summary. */
12
+ /**
13
+ * Returns a readable classification summary.
14
+ */
11
15
  toString(): string;
12
16
  }
@@ -1,10 +1,14 @@
1
1
  import { ClassificationClassifier } from "./classificationClassifier.js";
2
- /** Classification section of a classification inference result. */
2
+ /**
3
+ * Classification section of a classification inference result.
4
+ */
3
5
  export class ClassificationResult {
4
6
  constructor(serverResponse) {
5
7
  this.classification = new ClassificationClassifier(serverResponse["classification"]);
6
8
  }
7
- /** Returns a readable classification summary. */
9
+ /**
10
+ * Returns a readable classification summary.
11
+ */
8
12
  toString() {
9
13
  return `Classification\n==============\n${this.classification}`;
10
14
  }
@@ -5,10 +5,16 @@ import { BaseProduct } from "../baseProduct.js";
5
5
  * Identify the borders of documents on each page, matching each one to a category.
6
6
  */
7
7
  export declare class Crop extends BaseProduct {
8
- /** @inheritDoc */
8
+ /**
9
+ * @inheritDoc
10
+ */
9
11
  static get parametersClass(): typeof CropParameters;
10
- /** @inheritDoc */
12
+ /**
13
+ * @inheritDoc
14
+ */
11
15
  static get responseClass(): typeof CropResponse;
12
- /** @inheritDoc */
16
+ /**
17
+ * @inheritDoc
18
+ */
13
19
  static get slug(): string;
14
20
  }
@@ -5,15 +5,21 @@ import { BaseProduct } from "../baseProduct.js";
5
5
  * Identify the borders of documents on each page, matching each one to a category.
6
6
  */
7
7
  export class Crop extends BaseProduct {
8
- /** @inheritDoc */
8
+ /**
9
+ * @inheritDoc
10
+ */
9
11
  static get parametersClass() {
10
12
  return CropParameters;
11
13
  }
12
- /** @inheritDoc */
14
+ /**
15
+ * @inheritDoc
16
+ */
13
17
  static get responseClass() {
14
18
  return CropResponse;
15
19
  }
16
- /** @inheritDoc */
20
+ /**
21
+ * @inheritDoc
22
+ */
17
23
  static get slug() {
18
24
  return "crop";
19
25
  }
@@ -1,13 +1,17 @@
1
1
  import { StringDict } from "../../../parsing/index.js";
2
2
  import { BaseInference } from "../../parsing/inference/baseInference.js";
3
3
  import { CropResult } from "./cropResult.js";
4
- /** Inference payload for crop responses. */
4
+ /**
5
+ * Inference payload for crop responses.
6
+ */
5
7
  export declare class CropInference extends BaseInference {
6
8
  /**
7
9
  * Result of a crop utility inference.
8
10
  */
9
11
  result: CropResult;
10
12
  constructor(serverResponse: StringDict);
11
- /** Returns a readable representation of the inference. */
13
+ /**
14
+ * Returns a readable representation of the inference.
15
+ */
12
16
  toString(): string;
13
17
  }
@@ -1,12 +1,16 @@
1
1
  import { BaseInference } from "../../parsing/inference/baseInference.js";
2
2
  import { CropResult } from "./cropResult.js";
3
- /** Inference payload for crop responses. */
3
+ /**
4
+ * Inference payload for crop responses.
5
+ */
4
6
  export class CropInference extends BaseInference {
5
7
  constructor(serverResponse) {
6
8
  super(serverResponse);
7
9
  this.result = new CropResult(serverResponse["result"]);
8
10
  }
9
- /** Returns a readable representation of the inference. */
11
+ /**
12
+ * Returns a readable representation of the inference.
13
+ */
10
14
  toString() {
11
15
  return (super.toString() +
12
16
  this.result.toString() + "\n");
@@ -3,7 +3,9 @@ import { StringDict } from "../../../parsing/index.js";
3
3
  import { LocalInputSource } from "../../../input/index.js";
4
4
  import { ExtractedImage } from "../../../image/index.js";
5
5
  import { ExtractionResponse } from "../index.js";
6
- /** Single crop detection returned by the crop product. */
6
+ /**
7
+ * Single crop detection returned by the crop product.
8
+ */
7
9
  export declare class CropItem {
8
10
  /**
9
11
  * Type or classification of the detected object.
@@ -18,7 +20,9 @@ export declare class CropItem {
18
20
  */
19
21
  extractionResponse?: ExtractionResponse;
20
22
  constructor(serverResponse: StringDict);
21
- /** Returns a readable crop item summary. */
23
+ /**
24
+ * Returns a readable crop item summary.
25
+ */
22
26
  toString(): string;
23
27
  /**
24
28
  * Extracts a single crop from an input.
@@ -1,7 +1,9 @@
1
1
  import { FieldLocation } from "../../parsing/inference/field/index.js";
2
2
  import { extractSingleCrop } from "../../fileOperations/crop.js";
3
3
  import { ExtractionResponse } from "../index.js";
4
- /** Single crop detection returned by the crop product. */
4
+ /**
5
+ * Single crop detection returned by the crop product.
6
+ */
5
7
  export class CropItem {
6
8
  constructor(serverResponse) {
7
9
  this.objectType = serverResponse["object_type"];
@@ -10,7 +12,9 @@ export class CropItem {
10
12
  ? new ExtractionResponse(serverResponse["extraction_response"])
11
13
  : undefined;
12
14
  }
13
- /** Returns a readable crop item summary. */
15
+ /**
16
+ * Returns a readable crop item summary.
17
+ */
14
18
  toString() {
15
19
  return `* :Location: ${this.location}\n :Object Type: ${this.objectType}`;
16
20
  }
@@ -1,7 +1,9 @@
1
1
  import { StringDict } from "../../../parsing/stringDict.js";
2
2
  import { BaseResponse } from "../../parsing/index.js";
3
3
  import { CropInference } from "./cropInference.js";
4
- /** Response wrapper for crop product calls. */
4
+ /**
5
+ * Response wrapper for crop product calls.
6
+ */
5
7
  export declare class CropResponse extends BaseResponse {
6
8
  /**
7
9
  * Response for a crop utility inference.
@@ -1,6 +1,8 @@
1
1
  import { BaseResponse } from "../../parsing/index.js";
2
2
  import { CropInference } from "./cropInference.js";
3
- /** Response wrapper for crop product calls. */
3
+ /**
4
+ * Response wrapper for crop product calls.
5
+ */
4
6
  export class CropResponse extends BaseResponse {
5
7
  /**
6
8
  * @param serverResponse JSON response from the server.
@@ -2,14 +2,18 @@ import { StringDict } from "../../../parsing/stringDict.js";
2
2
  import { CropItem } from "./cropItem.js";
3
3
  import { LocalInputSource } from "../../../input/index.js";
4
4
  import { ExtractedImages } from "../../../image/extractedImages.js";
5
- /** Crop section of a crop inference result. */
5
+ /**
6
+ * Crop section of a crop inference result.
7
+ */
6
8
  export declare class CropResult {
7
9
  /**
8
10
  * Fields contained in the inference.
9
11
  */
10
12
  crops: CropItem[];
11
13
  constructor(serverResponse: StringDict);
12
- /** Returns a readable list of detected crops. */
14
+ /**
15
+ * Returns a readable list of detected crops.
16
+ */
13
17
  toString(): string;
14
18
  /**
15
19
  * Extracts a single crop from an input.
@@ -1,6 +1,8 @@
1
1
  import { CropItem } from "./cropItem.js";
2
2
  import { extractMultipleCrops } from "../../fileOperations/crop.js";
3
- /** Crop section of a crop inference result. */
3
+ /**
4
+ * Crop section of a crop inference result.
5
+ */
4
6
  export class CropResult {
5
7
  constructor(serverResponse) {
6
8
  /**
@@ -9,7 +11,9 @@ export class CropResult {
9
11
  this.crops = [];
10
12
  this.crops = serverResponse["crops"].map((cropItem) => new CropItem(cropItem));
11
13
  }
12
- /** Returns a readable list of detected crops. */
14
+ /**
15
+ * Returns a readable list of detected crops.
16
+ */
13
17
  toString() {
14
18
  const crops = this.crops.map(item => item.toString()).join("\n");
15
19
  return `Crops\n=====\n${crops}`;
@@ -8,6 +8,8 @@ export declare class DataSchemaActiveOption {
8
8
  */
9
9
  replace: boolean;
10
10
  constructor(serverResponse: StringDict);
11
- /** Returns a readable representation of active data schema options. */
11
+ /**
12
+ * Returns a readable representation of active data schema options.
13
+ */
12
14
  toString(): string;
13
15
  }
@@ -5,7 +5,9 @@ export class DataSchemaActiveOption {
5
5
  constructor(serverResponse) {
6
6
  this.replace = serverResponse["replace"];
7
7
  }
8
- /** Returns a readable representation of active data schema options. */
8
+ /**
9
+ * Returns a readable representation of active data schema options.
10
+ */
9
11
  toString() {
10
12
  return `Data Schema\n-----------\n:Replace: ${this.replace ? "True" : "False"}`;
11
13
  }
@@ -7,16 +7,28 @@ import { RagDocumentAnnotationParameters, RagDocumentUploadParameters } from "./
7
7
  * Automatically extract structured data from any image or scanned document.
8
8
  */
9
9
  export declare class Extraction extends BaseProduct {
10
- /** @inheritDoc */
10
+ /**
11
+ * @inheritDoc
12
+ */
11
13
  static get slug(): string;
12
- /** @inheritDoc */
14
+ /**
15
+ * @inheritDoc
16
+ */
13
17
  static get parametersClass(): typeof ExtractionParameters;
14
- /** @inheritDoc */
18
+ /**
19
+ * @inheritDoc
20
+ */
15
21
  static get responseClass(): typeof ExtractionResponse;
16
- /** @inheritDoc */
22
+ /**
23
+ * @inheritDoc
24
+ */
17
25
  static get annotationResponseClass(): typeof ExtractionRagAnnotationResponse;
18
- /** @inheritDoc */
26
+ /**
27
+ * @inheritDoc
28
+ */
19
29
  static get annotationParametersClass(): typeof RagDocumentAnnotationParameters;
20
- /** @inheritDoc */
30
+ /**
31
+ * @inheritDoc
32
+ */
21
33
  static get ragDocumentUploadClass(): typeof RagDocumentUploadParameters;
22
34
  }
@@ -7,27 +7,39 @@ import { RagDocumentAnnotationParameters, RagDocumentUploadParameters } from "./
7
7
  * Automatically extract structured data from any image or scanned document.
8
8
  */
9
9
  export class Extraction extends BaseProduct {
10
- /** @inheritDoc */
10
+ /**
11
+ * @inheritDoc
12
+ */
11
13
  static get slug() {
12
14
  return "extraction";
13
15
  }
14
- /** @inheritDoc */
16
+ /**
17
+ * @inheritDoc
18
+ */
15
19
  static get parametersClass() {
16
20
  return ExtractionParameters;
17
21
  }
18
- /** @inheritDoc */
22
+ /**
23
+ * @inheritDoc
24
+ */
19
25
  static get responseClass() {
20
26
  return ExtractionResponse;
21
27
  }
22
- /** @inheritDoc */
28
+ /**
29
+ * @inheritDoc
30
+ */
23
31
  static get annotationResponseClass() {
24
32
  return ExtractionRagAnnotationResponse;
25
33
  }
26
- /** @inheritDoc */
34
+ /**
35
+ * @inheritDoc
36
+ */
27
37
  static get annotationParametersClass() {
28
38
  return RagDocumentAnnotationParameters;
29
39
  }
30
- /** @inheritDoc */
40
+ /**
41
+ * @inheritDoc
42
+ */
31
43
  static get ragDocumentUploadClass() {
32
44
  return RagDocumentUploadParameters;
33
45
  }