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
@@ -5,27 +5,49 @@ import { Polygon } from "../../../geometry/index.js";
5
5
  */
6
6
  export declare class ResumeV1ProfessionalExperience {
7
7
  #private;
8
- /** The type of contract for the professional experience. */
8
+ /**
9
+ * The type of contract for the professional experience.
10
+ */
9
11
  contractType: string | null;
10
- /** The specific department or division within the company. */
12
+ /**
13
+ * The specific department or division within the company.
14
+ */
11
15
  department: string | null;
12
- /** The description of the professional experience as written in the document. */
16
+ /**
17
+ * The description of the professional experience as written in the document.
18
+ */
13
19
  description: string | null;
14
- /** The name of the company or organization. */
20
+ /**
21
+ * The name of the company or organization.
22
+ */
15
23
  employer: string | null;
16
- /** The month when the professional experience ended. */
24
+ /**
25
+ * The month when the professional experience ended.
26
+ */
17
27
  endMonth: string | null;
18
- /** The year when the professional experience ended. */
28
+ /**
29
+ * The year when the professional experience ended.
30
+ */
19
31
  endYear: string | null;
20
- /** The position or job title held by the candidate. */
32
+ /**
33
+ * The position or job title held by the candidate.
34
+ */
21
35
  role: string | null;
22
- /** The month when the professional experience began. */
36
+ /**
37
+ * The month when the professional experience began.
38
+ */
23
39
  startMonth: string | null;
24
- /** The year when the professional experience began. */
40
+ /**
41
+ * The year when the professional experience began.
42
+ */
25
43
  startYear: string | null;
26
- /** Confidence score */
44
+ /**
45
+ * Confidence score
46
+ */
27
47
  confidence: number;
28
- /** The document page on which the information was found. */
48
+ /**
49
+ * The document page on which the information was found.
50
+ */
29
51
  pageId: number;
30
52
  /**
31
53
  * Contains the relative vertices coordinates (points) of a polygon containing
@@ -12,7 +12,9 @@ import { Polygon } from "../../../geometry/index.js";
12
12
  export class ResumeV1ProfessionalExperience {
13
13
  constructor({ prediction = {} }) {
14
14
  _ResumeV1ProfessionalExperience_instances.add(this);
15
- /** Confidence score */
15
+ /**
16
+ * Confidence score
17
+ */
16
18
  this.confidence = 0.0;
17
19
  /**
18
20
  * Contains the relative vertices coordinates (points) of a polygon containing
@@ -5,13 +5,21 @@ import { Polygon } from "../../../geometry/index.js";
5
5
  */
6
6
  export declare class ResumeV1SocialNetworksUrl {
7
7
  #private;
8
- /** The name of the social network. */
8
+ /**
9
+ * The name of the social network.
10
+ */
9
11
  name: string | null;
10
- /** The URL of the social network. */
12
+ /**
13
+ * The URL of the social network.
14
+ */
11
15
  url: string | null;
12
- /** Confidence score */
16
+ /**
17
+ * Confidence score
18
+ */
13
19
  confidence: number;
14
- /** The document page on which the information was found. */
20
+ /**
21
+ * The document page on which the information was found.
22
+ */
15
23
  pageId: number;
16
24
  /**
17
25
  * Contains the relative vertices coordinates (points) of a polygon containing
@@ -12,7 +12,9 @@ import { Polygon } from "../../../geometry/index.js";
12
12
  export class ResumeV1SocialNetworksUrl {
13
13
  constructor({ prediction = {} }) {
14
14
  _ResumeV1SocialNetworksUrl_instances.add(this);
15
- /** Confidence score */
15
+ /**
16
+ * Confidence score
17
+ */
16
18
  this.confidence = 0.0;
17
19
  /**
18
20
  * Contains the relative vertices coordinates (points) of a polygon containing
@@ -5,13 +5,21 @@ import { BankCheckV1Page } from "./bankCheckV1Page.js";
5
5
  * Bank Check API version 1 inference prediction.
6
6
  */
7
7
  export declare class BankCheckV1 extends Inference {
8
- /** The endpoint's name. */
8
+ /**
9
+ * The endpoint's name.
10
+ */
9
11
  endpointName: string;
10
- /** The endpoint's version. */
12
+ /**
13
+ * The endpoint's version.
14
+ */
11
15
  endpointVersion: string;
12
- /** The document-level prediction. */
16
+ /**
17
+ * The document-level prediction.
18
+ */
13
19
  prediction: BankCheckV1Document;
14
- /** The document's pages. */
20
+ /**
21
+ * The document's pages.
22
+ */
15
23
  pages: Page<BankCheckV1Page>[];
16
24
  constructor(rawPrediction: StringDict);
17
25
  }
@@ -7,11 +7,17 @@ import { BankCheckV1Page } from "./bankCheckV1Page.js";
7
7
  export class BankCheckV1 extends Inference {
8
8
  constructor(rawPrediction) {
9
9
  super(rawPrediction);
10
- /** The endpoint's name. */
10
+ /**
11
+ * The endpoint's name.
12
+ */
11
13
  this.endpointName = "bank_check";
12
- /** The endpoint's version. */
14
+ /**
15
+ * The endpoint's version.
16
+ */
13
17
  this.endpointVersion = "1";
14
- /** The document's pages. */
18
+ /**
19
+ * The document's pages.
20
+ */
15
21
  this.pages = [];
16
22
  this.prediction = new BankCheckV1Document(rawPrediction["prediction"]);
17
23
  rawPrediction["pages"].forEach((page) => {
@@ -4,17 +4,29 @@ import { AmountField, DateField, StringField } from "../../../parsing/standard/i
4
4
  * Bank Check API version 1.1 document data.
5
5
  */
6
6
  export declare class BankCheckV1Document implements Prediction {
7
- /** The check payer's account number. */
7
+ /**
8
+ * The check payer's account number.
9
+ */
8
10
  accountNumber: StringField;
9
- /** The amount of the check. */
11
+ /**
12
+ * The amount of the check.
13
+ */
10
14
  amount: AmountField;
11
- /** The issuer's check number. */
15
+ /**
16
+ * The issuer's check number.
17
+ */
12
18
  checkNumber: StringField;
13
- /** The date the check was issued. */
19
+ /**
20
+ * The date the check was issued.
21
+ */
14
22
  date: DateField;
15
- /** List of the check's payees (recipients). */
23
+ /**
24
+ * List of the check's payees (recipients).
25
+ */
16
26
  payees: StringField[];
17
- /** The check issuer's routing number. */
27
+ /**
28
+ * The check issuer's routing number.
29
+ */
18
30
  routingNumber: StringField;
19
31
  constructor(rawPrediction: StringDict, pageId?: number);
20
32
  /**
@@ -5,7 +5,9 @@ import { AmountField, DateField, StringField, } from "../../../parsing/standard/
5
5
  */
6
6
  export class BankCheckV1Document {
7
7
  constructor(rawPrediction, pageId) {
8
- /** List of the check's payees (recipients). */
8
+ /**
9
+ * List of the check's payees (recipients).
10
+ */
9
11
  this.payees = [];
10
12
  this.accountNumber = new StringField({
11
13
  prediction: rawPrediction["account_number"],
@@ -5,9 +5,13 @@ import { BankCheckV1Document } from "./bankCheckV1Document.js";
5
5
  * Bank Check API version 1.1 page data.
6
6
  */
7
7
  export declare class BankCheckV1Page extends BankCheckV1Document {
8
- /** The position of the check on the document. */
8
+ /**
9
+ * The position of the check on the document.
10
+ */
9
11
  checkPosition: PositionField;
10
- /** List of signature positions */
12
+ /**
13
+ * List of signature positions
14
+ */
11
15
  signaturesPositions: PositionField[];
12
16
  constructor(rawPrediction: StringDict, pageId?: number);
13
17
  toString(): string;
@@ -7,7 +7,9 @@ import { BankCheckV1Document } from "./bankCheckV1Document.js";
7
7
  export class BankCheckV1Page extends BankCheckV1Document {
8
8
  constructor(rawPrediction, pageId) {
9
9
  super(rawPrediction, pageId);
10
- /** List of signature positions */
10
+ /**
11
+ * List of signature positions
12
+ */
11
13
  this.signaturesPositions = [];
12
14
  this.checkPosition = new PositionField({
13
15
  prediction: rawPrediction["check_position"],
package/src/v2/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Command } from "commander";
2
- import * as console from "console";
2
+ import * as console from "node:console";
3
3
  import { Client, PathInput, UrlInput } from "../index.js";
4
4
  import { Classification, Crop, Extraction, Ocr, Split, } from "./product/index.js";
5
5
  const program = new Command();
@@ -17,11 +17,17 @@ import { LocalInputSource } from "../input/index.js";
17
17
  * });
18
18
  */
19
19
  export interface ClientOptions {
20
- /** Your API key for all endpoints. */
20
+ /**
21
+ * Your API key for all endpoints.
22
+ */
21
23
  apiKey?: string;
22
- /** Log debug messages. */
24
+ /**
25
+ * Log debug messages.
26
+ */
23
27
  debug?: boolean;
24
- /** Custom Dispatcher instance for the HTTP requests. */
28
+ /**
29
+ * Custom Dispatcher instance for the HTTP requests.
30
+ */
25
31
  dispatcher?: Dispatcher;
26
32
  }
27
33
  /**
@@ -1,8 +1,14 @@
1
- /** Optional timer settings used by polling delays. */
1
+ /**
2
+ * Optional timer settings used by polling delays.
3
+ */
2
4
  export interface TimerOptions {
3
- /** Whether the timer should keep the event loop active. */
5
+ /**
6
+ * Whether the timer should keep the event loop active.
7
+ */
4
8
  ref?: boolean;
5
- /** Optional signal used to abort timer waits. */
9
+ /**
10
+ * Optional signal used to abort timer waits.
11
+ */
6
12
  signal?: AbortSignal;
7
13
  }
8
14
  export interface PollingOptionsConstructor {
@@ -43,19 +49,33 @@ export interface PollingOptionsConstructor {
43
49
  * ```
44
50
  */
45
51
  export declare class PollingOptions {
46
- /** Number of seconds to wait *before the first poll*. */
52
+ /**
53
+ * Number of seconds to wait *before the first poll*.
54
+ */
47
55
  initialDelaySec: number;
48
- /** Interval in seconds between two consecutive polls. */
56
+ /**
57
+ * Interval in seconds between two consecutive polls.
58
+ */
49
59
  delaySec: number;
50
- /** Maximum number of polling attempts (including the first one). */
60
+ /**
61
+ * Maximum number of polling attempts (including the first one).
62
+ */
51
63
  maxRetries: number;
52
- /** Options passed to the initial `setTimeout()`. */
64
+ /**
65
+ * Options passed to the initial `setTimeout()`.
66
+ */
53
67
  initialTimerOptions?: TimerOptions;
54
- /** Options passed to every recurring `setTimeout()`. */
68
+ /**
69
+ * Options passed to every recurring `setTimeout()`.
70
+ */
55
71
  recurringTimerOptions?: TimerOptions;
56
72
  constructor(params?: PollingOptionsConstructor);
57
- /** Validates polling options against minimum accepted values. */
73
+ /**
74
+ * Validates polling options against minimum accepted values.
75
+ */
58
76
  validateSettings(): void;
59
- /** Returns a compact string representation of the polling options. */
77
+ /**
78
+ * Returns a compact string representation of the polling options.
79
+ */
60
80
  toString(): string;
61
81
  }
@@ -65,7 +65,9 @@ export class PollingOptions {
65
65
  this.validateSettings();
66
66
  logger.debug(`Polling options initialized: ${this.toString()}`);
67
67
  }
68
- /** Validates polling options against minimum accepted values. */
68
+ /**
69
+ * Validates polling options against minimum accepted values.
70
+ */
69
71
  validateSettings() {
70
72
  if (this.delaySec < minDelaySec) {
71
73
  throw new MindeeConfigurationError(`Cannot set auto-parsing delay to less than ${minDelaySec} second(s).`);
@@ -77,7 +79,9 @@ export class PollingOptions {
77
79
  throw new MindeeConfigurationError(`Cannot set retry to less than ${minRetries}.`);
78
80
  }
79
81
  }
80
- /** Returns a compact string representation of the polling options. */
82
+ /**
83
+ * Returns a compact string representation of the polling options.
84
+ */
81
85
  toString() {
82
86
  return `{ initialDelaySec: ${this.initialDelaySec}, delaySec: ${this.delaySec}, maxRetries: ${this.maxRetries} }`;
83
87
  }
@@ -1,5 +1,5 @@
1
- import { ApiSettings } from "./apiSettings.js";
2
1
  import { Dispatcher } from "undici";
2
+ import { ApiSettings } from "./apiSettings.js";
3
3
  import { BaseProductParameters } from "../index.js";
4
4
  import { BaseSearchParameters, BaseAnnotationParameters, BaseRagDocumentUploadParameters } from "../clientOptions/index.js";
5
5
  import { JobResponse } from "../parsing/index.js";
@@ -4,8 +4,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _MindeeApiV2_instances, _MindeeApiV2_paramsToFormData, _MindeeApiV2_processResponse;
7
- import { ApiSettings } from "./apiSettings.js";
8
7
  import { FormData } from "undici";
8
+ import { ApiSettings } from "./apiSettings.js";
9
9
  import { ErrorResponse, JobResponse, } from "../parsing/index.js";
10
10
  import { sendRequestAndReadResponse } from "../../http/apiCore.js";
11
11
  import { LocalInputSource } from "../../input/index.js";
@@ -1,5 +1,7 @@
1
1
  import { ErrorItem } from "./errorItem.js";
2
- /** Structured error payload returned by v2 APIs. */
2
+ /**
3
+ * Structured error payload returned by v2 APIs.
4
+ */
3
5
  export interface ErrorDetails {
4
6
  /**
5
7
  * The HTTP status code returned by the server.
@@ -2,7 +2,9 @@ import { StringDict } from "../../../parsing/index.js";
2
2
  import { InferenceModel } from "./inferenceModel.js";
3
3
  import { InferenceFile } from "./inferenceFile.js";
4
4
  import { InferenceJob } from "./inferenceJob.js";
5
- /** Shared metadata container for v2 inference payloads. */
5
+ /**
6
+ * Shared metadata container for v2 inference payloads.
7
+ */
6
8
  export declare abstract class BaseInference {
7
9
  /**
8
10
  * Model info for the inference.
@@ -21,6 +23,8 @@ export declare abstract class BaseInference {
21
23
  */
22
24
  id: string;
23
25
  protected constructor(serverResponse: StringDict);
24
- /** Returns a printable representation of inference metadata. */
26
+ /**
27
+ * Returns a printable representation of inference metadata.
28
+ */
25
29
  toString(): string;
26
30
  }
@@ -1,7 +1,9 @@
1
1
  import { InferenceModel } from "./inferenceModel.js";
2
2
  import { InferenceFile } from "./inferenceFile.js";
3
3
  import { InferenceJob } from "./inferenceJob.js";
4
- /** Shared metadata container for v2 inference payloads. */
4
+ /**
5
+ * Shared metadata container for v2 inference payloads.
6
+ */
5
7
  export class BaseInference {
6
8
  constructor(serverResponse) {
7
9
  this.id = serverResponse["id"];
@@ -9,7 +11,9 @@ export class BaseInference {
9
11
  this.model = new InferenceModel(serverResponse["model"]);
10
12
  this.file = new InferenceFile(serverResponse["file"]);
11
13
  }
12
- /** Returns a printable representation of inference metadata. */
14
+ /**
15
+ * Returns a printable representation of inference metadata.
16
+ */
13
17
  toString() {
14
18
  return ("Inference\n" +
15
19
  "#########\n" +
@@ -2,11 +2,17 @@ import { FieldConfidence } from "./fieldConfidence.js";
2
2
  import { StringDict } from "../../../../parsing/stringDict.js";
3
3
  import { FieldLocation } from "./fieldLocation.js";
4
4
  export declare abstract class BaseField {
5
- /** Indentation level used when rendering field text output. */
5
+ /**
6
+ * Indentation level used when rendering field text output.
7
+ */
6
8
  protected _indentLevel: number;
7
- /** Confidence level associated with this field. */
9
+ /**
10
+ * Confidence level associated with this field.
11
+ */
8
12
  confidence: FieldConfidence | undefined;
9
- /** Optional list of source locations for this field. */
13
+ /**
14
+ * Optional list of source locations for this field.
15
+ */
10
16
  locations: Array<FieldLocation> | undefined;
11
17
  protected constructor(rawResponse: StringDict, indentLevel?: number);
12
18
  }
@@ -2,13 +2,21 @@
2
2
  * Confidence level of a field as returned by the V2 API.
3
3
  */
4
4
  export declare enum FieldConfidence {
5
- /** Maximum confidence level. */
5
+ /**
6
+ * Maximum confidence level.
7
+ */
6
8
  Certain = "Certain",
7
- /** High confidence level. */
9
+ /**
10
+ * High confidence level.
11
+ */
8
12
  High = "High",
9
- /** Medium confidence level. */
13
+ /**
14
+ * Medium confidence level.
15
+ */
10
16
  Medium = "Medium",
11
- /** Low confidence level. */
17
+ /**
18
+ * Low confidence level.
19
+ */
12
20
  Low = "Low"
13
21
  }
14
22
  export declare namespace FieldConfidence {
@@ -4,13 +4,21 @@
4
4
  */
5
5
  export var FieldConfidence;
6
6
  (function (FieldConfidence) {
7
- /** Maximum confidence level. */
7
+ /**
8
+ * Maximum confidence level.
9
+ */
8
10
  FieldConfidence["Certain"] = "Certain";
9
- /** High confidence level. */
11
+ /**
12
+ * High confidence level.
13
+ */
10
14
  FieldConfidence["High"] = "High";
11
- /** Medium confidence level. */
15
+ /**
16
+ * Medium confidence level.
17
+ */
12
18
  FieldConfidence["Medium"] = "Medium";
13
- /** Low confidence level. */
19
+ /**
20
+ * Low confidence level.
21
+ */
14
22
  FieldConfidence["Low"] = "Low";
15
23
  })(FieldConfidence || (FieldConfidence = {}));
16
24
  // eslint-disable-next-line @typescript-eslint/no-namespace
@@ -4,11 +4,17 @@ import { StringDict } from "../../../../parsing/stringDict.js";
4
4
  * A field's location on the document.
5
5
  */
6
6
  export declare class FieldLocation {
7
- /** Position information as a list of points in clockwise order. */
7
+ /**
8
+ * Position information as a list of points in clockwise order.
9
+ */
8
10
  readonly polygon: Polygon;
9
- /** 0-based page index of where the polygon is located. */
11
+ /**
12
+ * 0-based page index of where the polygon is located.
13
+ */
10
14
  readonly page: any;
11
15
  constructor(serverResponse: StringDict);
12
- /** Returns a readable location string. */
16
+ /**
17
+ * Returns a readable location string.
18
+ */
13
19
  toString(): string;
14
20
  }
@@ -7,7 +7,9 @@ export class FieldLocation {
7
7
  this.polygon = new Polygon(...serverResponse["polygon"]);
8
8
  this.page = serverResponse["page"];
9
9
  }
10
- /** Returns a readable location string. */
10
+ /**
11
+ * Returns a readable location string.
12
+ */
11
13
  toString() {
12
14
  return `${this.polygon} on page ${this.page}`;
13
15
  }
@@ -2,9 +2,13 @@ import { StringDict } from "../../../../parsing/stringDict.js";
2
2
  import type { ListField } from "./listField.js";
3
3
  import type { ObjectField } from "./objectField.js";
4
4
  import type { SimpleField } from "./simpleField.js";
5
- /** Typed map of extraction fields returned by the API. */
5
+ /**
6
+ * Typed map of extraction fields returned by the API.
7
+ */
6
8
  export declare class InferenceFields extends Map<string, SimpleField | ObjectField | ListField> {
7
- /** Indentation level used when rendering text output. */
9
+ /**
10
+ * Indentation level used when rendering text output.
11
+ */
8
12
  protected _indentLevel: number;
9
13
  constructor(serverResponse: StringDict, indentLevel?: number);
10
14
  /**
@@ -1,5 +1,7 @@
1
1
  import { createField } from "./fieldFactory.js";
2
- /** Typed map of extraction fields returned by the API. */
2
+ /**
3
+ * Typed map of extraction fields returned by the API.
4
+ */
3
5
  export class InferenceFields extends Map {
4
6
  constructor(serverResponse, indentLevel = 0) {
5
7
  super(Object.entries(serverResponse).map(([key, value]) => {
@@ -2,7 +2,9 @@ import { StringDict } from "../../../../parsing/stringDict.js";
2
2
  import { BaseField } from "./baseField.js";
3
3
  import { ObjectField } from "./objectField.js";
4
4
  import { SimpleField } from "./simpleField.js";
5
- /** List-valued inference field. */
5
+ /**
6
+ * List-valued inference field.
7
+ */
6
8
  export declare class ListField extends BaseField {
7
9
  /**
8
10
  * Items contained in the list.
@@ -17,6 +19,8 @@ export declare class ListField extends BaseField {
17
19
  * SimpleField items from the list.
18
20
  */
19
21
  get objectItems(): Array<ObjectField>;
20
- /** Returns a readable representation of list items. */
22
+ /**
23
+ * Returns a readable representation of list items.
24
+ */
21
25
  toString(): string;
22
26
  }
@@ -3,7 +3,9 @@ import { BaseField } from "./baseField.js";
3
3
  import { ObjectField } from "./objectField.js";
4
4
  import { SimpleField } from "./simpleField.js";
5
5
  import { createField } from "./fieldFactory.js";
6
- /** List-valued inference field. */
6
+ /**
7
+ * List-valued inference field.
8
+ */
7
9
  export class ListField extends BaseField {
8
10
  constructor(serverResponse, indentLevel = 0) {
9
11
  super(serverResponse, indentLevel);
@@ -44,7 +46,9 @@ export class ListField extends BaseField {
44
46
  }
45
47
  return result;
46
48
  }
47
- /** Returns a readable representation of list items. */
49
+ /**
50
+ * Returns a readable representation of list items.
51
+ */
48
52
  toString() {
49
53
  if (!this.items || this.items.length === 0) {
50
54
  return "\n";
@@ -3,9 +3,13 @@ import { StringDict } from "../../../../parsing/stringDict.js";
3
3
  import { BaseField } from "./baseField.js";
4
4
  import type { SimpleField } from "./simpleField.js";
5
5
  import type { ListField } from "./listField.js";
6
- /** Object-valued inference field. */
6
+ /**
7
+ * Object-valued inference field.
8
+ */
7
9
  export declare class ObjectField extends BaseField {
8
- /** Nested fields carried by this object. */
10
+ /**
11
+ * Nested fields carried by this object.
12
+ */
9
13
  readonly fields: InferenceFields;
10
14
  constructor(serverResponse: StringDict, indentLevel?: number);
11
15
  /**
@@ -1,6 +1,8 @@
1
1
  import { InferenceFields } from "./inferenceFields.js";
2
2
  import { BaseField } from "./baseField.js";
3
- /** Object-valued inference field. */
3
+ /**
4
+ * Object-valued inference field.
5
+ */
4
6
  export class ObjectField extends BaseField {
5
7
  constructor(serverResponse, indentLevel = 0) {
6
8
  super(serverResponse, indentLevel);
@@ -1,5 +1,7 @@
1
1
  import { StringDict } from "../../../../parsing/stringDict.js";
2
- /** Metadata about the RAG operation. */
2
+ /**
3
+ * Metadata about the RAG operation.
4
+ */
3
5
  export declare class RagMetadata {
4
6
  /**
5
7
  * The UUID of the matched document used during the RAG operation.
@@ -1,4 +1,6 @@
1
- /** Metadata about the RAG operation. */
1
+ /**
2
+ * Metadata about the RAG operation.
3
+ */
2
4
  export class RagMetadata {
3
5
  constructor(serverResponse) {
4
6
  this.retrievedDocumentId = serverResponse["retrieved_document_id"] ?? undefined;