mindee 4.6.0 → 4.7.0.pre.rc2

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 (310) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +21 -222
  4. data/docs/code_samples/default_v2.txt +28 -0
  5. data/lib/mindee/client.rb +11 -30
  6. data/lib/mindee/client_v2.rb +109 -0
  7. data/lib/mindee/errors/mindee_http_error_v2.rb +26 -0
  8. data/lib/mindee/errors/mindee_input_error.rb +1 -1
  9. data/lib/mindee/errors.rb +1 -0
  10. data/lib/mindee/geometry/point.rb +2 -2
  11. data/lib/mindee/geometry/quadrilateral.rb +4 -4
  12. data/lib/mindee/geometry/utils.rb +1 -0
  13. data/lib/mindee/http/api_settings_v2.rb +61 -0
  14. data/lib/mindee/http/endpoint.rb +12 -6
  15. data/lib/mindee/http/http_error_handler.rb +17 -4
  16. data/lib/mindee/http/mindee_api_v2.rb +148 -0
  17. data/lib/mindee/http/response_validation.rb +20 -1
  18. data/lib/mindee/http/workflow_endpoint.rb +2 -2
  19. data/lib/mindee/http.rb +2 -0
  20. data/lib/mindee/image/extracted_image.rb +1 -1
  21. data/lib/mindee/image/image_extractor.rb +12 -15
  22. data/lib/mindee/input/inference_parameters.rb +116 -0
  23. data/lib/mindee/input/local_response.rb +10 -1
  24. data/lib/mindee/input/polling_options.rb +26 -0
  25. data/lib/mindee/input/sources/base64_input_source.rb +2 -2
  26. data/lib/mindee/input/sources/local_input_source.rb +49 -30
  27. data/lib/mindee/input.rb +2 -0
  28. data/lib/mindee/page_options.rb +24 -0
  29. data/lib/mindee/parsing/common/api_request.rb +2 -2
  30. data/lib/mindee/parsing/common/api_response.rb +4 -0
  31. data/lib/mindee/parsing/common/execution.rb +1 -1
  32. data/lib/mindee/parsing/common/extras/extras.rb +2 -2
  33. data/lib/mindee/parsing/common/extras/rag_extra.rb +2 -0
  34. data/lib/mindee/parsing/common/ocr/ocr.rb +4 -6
  35. data/lib/mindee/parsing/common/orientation.rb +2 -2
  36. data/lib/mindee/parsing/common/product.rb +6 -1
  37. data/lib/mindee/parsing/standard/amount_field.rb +2 -2
  38. data/lib/mindee/parsing/standard/feature_field.rb +1 -1
  39. data/lib/mindee/parsing/standard/tax_field.rb +1 -1
  40. data/lib/mindee/parsing/universal/universal_list_field.rb +2 -2
  41. data/lib/mindee/parsing/universal/universal_object_field.rb +7 -4
  42. data/lib/mindee/parsing/v2/common_response.rb +18 -0
  43. data/lib/mindee/parsing/v2/error_response.rb +36 -0
  44. data/lib/mindee/parsing/v2/field/base_field.rb +60 -0
  45. data/lib/mindee/parsing/v2/field/field_confidence.rb +91 -0
  46. data/lib/mindee/parsing/v2/field/field_location.rb +36 -0
  47. data/lib/mindee/parsing/v2/field/inference_fields.rb +96 -0
  48. data/lib/mindee/parsing/v2/field/list_field.rb +88 -0
  49. data/lib/mindee/parsing/v2/field/object_field.rb +102 -0
  50. data/lib/mindee/parsing/v2/field/simple_field.rb +55 -0
  51. data/lib/mindee/parsing/v2/field.rb +9 -0
  52. data/lib/mindee/parsing/v2/inference.rb +50 -0
  53. data/lib/mindee/parsing/v2/inference_file.rb +38 -0
  54. data/lib/mindee/parsing/v2/inference_model.rb +18 -0
  55. data/lib/mindee/parsing/v2/inference_response.rb +30 -0
  56. data/lib/mindee/parsing/v2/inference_result.rb +49 -0
  57. data/lib/mindee/parsing/v2/inference_result_options.rb +21 -0
  58. data/lib/mindee/parsing/v2/job.rb +86 -0
  59. data/lib/mindee/parsing/v2/job_response.rb +30 -0
  60. data/lib/mindee/parsing/v2/job_webhook.rb +60 -0
  61. data/lib/mindee/parsing/v2/raw_text.rb +21 -0
  62. data/lib/mindee/parsing/v2.rb +15 -0
  63. data/lib/mindee/pdf/extracted_pdf.rb +5 -3
  64. data/lib/mindee/pdf/pdf_extractor.rb +11 -7
  65. data/lib/mindee/pdf/pdf_processor.rb +6 -6
  66. data/lib/mindee/pdf/pdf_tools.rb +6 -4
  67. data/lib/mindee/product/universal/universal_prediction.rb +4 -4
  68. data/lib/mindee/version.rb +2 -2
  69. data/lib/mindee.rb +6 -0
  70. data/mindee.gemspec +1 -1
  71. data/sig/custom/mini_magick.rbs +14 -7
  72. data/sig/custom/net_http.rbs +4 -4
  73. data/sig/custom/origami.rbs +9 -4
  74. data/sig/mindee/client.rbs +14 -19
  75. data/sig/mindee/client_v2.rbs +17 -0
  76. data/sig/mindee/errors/mindee_http_error.rbs +6 -5
  77. data/sig/mindee/errors/mindee_http_error_v2.rbs +12 -0
  78. data/sig/mindee/errors/mindee_input_error.rbs +3 -2
  79. data/sig/mindee/geometry/min_max.rbs +4 -3
  80. data/sig/mindee/geometry/point.rbs +5 -6
  81. data/sig/mindee/geometry/polygon.rbs +3 -3
  82. data/sig/mindee/geometry/quadrilateral.rbs +5 -8
  83. data/sig/mindee/geometry/utils.rbs +8 -8
  84. data/sig/mindee/http/api_settings_v2.rbs +23 -0
  85. data/sig/mindee/http/endpoint.rbs +12 -11
  86. data/sig/mindee/http/http_error_handler.rbs +8 -3
  87. data/sig/mindee/http/mindee_api_v2.rbs +18 -0
  88. data/sig/mindee/http/response_validation.rbs +1 -0
  89. data/sig/mindee/http/workflow_endpoint.rbs +1 -1
  90. data/sig/mindee/image/extracted_image.rbs +2 -2
  91. data/sig/mindee/image/image_compressor.rbs +1 -1
  92. data/sig/mindee/image/image_extractor.rbs +5 -5
  93. data/sig/mindee/image/image_utils.rbs +10 -10
  94. data/sig/mindee/input/inference_parameters.rbs +30 -0
  95. data/sig/mindee/input/local_response.rbs +6 -5
  96. data/sig/mindee/input/polling_options.rbs +12 -0
  97. data/sig/mindee/input/sources/base64_input_source.rbs +1 -1
  98. data/sig/mindee/input/sources/local_input_source.rbs +14 -7
  99. data/sig/mindee/input/sources/url_input_source.rbs +1 -1
  100. data/sig/mindee/logging/logger.rbs +2 -0
  101. data/sig/mindee/page_options.rbs +11 -0
  102. data/sig/mindee/parsing/common/api_request.rbs +6 -6
  103. data/sig/mindee/parsing/common/api_response.rbs +2 -2
  104. data/sig/mindee/parsing/common/document.rbs +10 -10
  105. data/sig/mindee/parsing/common/execution.rbs +15 -14
  106. data/sig/mindee/parsing/common/execution_file.rbs +3 -3
  107. data/sig/mindee/parsing/common/extras/cropper_extra.rbs +3 -2
  108. data/sig/mindee/parsing/common/extras/extras.rbs +6 -5
  109. data/sig/mindee/parsing/common/extras/full_text_ocr_extra.rbs +2 -1
  110. data/sig/mindee/parsing/common/inference.rbs +16 -9
  111. data/sig/mindee/parsing/common/job.rbs +2 -2
  112. data/sig/mindee/parsing/common/ocr/mvision_v1.rbs +2 -2
  113. data/sig/mindee/parsing/common/ocr/ocr.rbs +22 -20
  114. data/sig/mindee/parsing/common/orientation.rbs +4 -3
  115. data/sig/mindee/parsing/common/page.rbs +6 -5
  116. data/sig/mindee/parsing/common/product.rbs +4 -4
  117. data/sig/mindee/parsing/common/workflow_response.rbs +8 -4
  118. data/sig/mindee/parsing/standard/abstract_field.rbs +1 -1
  119. data/sig/mindee/parsing/standard/address_field.rbs +1 -1
  120. data/sig/mindee/parsing/standard/amount_field.rbs +6 -4
  121. data/sig/mindee/parsing/standard/base_field.rbs +1 -1
  122. data/sig/mindee/parsing/standard/boolean_field.rbs +1 -1
  123. data/sig/mindee/parsing/standard/company_registration_field.rbs +3 -2
  124. data/sig/mindee/parsing/standard/date_field.rbs +6 -6
  125. data/sig/mindee/parsing/standard/locale_field.rbs +1 -1
  126. data/sig/mindee/parsing/standard/payment_details_field.rbs +7 -6
  127. data/sig/mindee/parsing/standard/position_field.rbs +2 -2
  128. data/sig/mindee/parsing/standard/string_field.rbs +1 -1
  129. data/sig/mindee/parsing/standard/tax_field.rbs +8 -7
  130. data/sig/mindee/parsing/universal/universal_list_field.rbs +4 -5
  131. data/sig/mindee/parsing/universal/universal_object_field.rbs +17 -11
  132. data/sig/mindee/parsing/v2/common_response.rbs +11 -0
  133. data/sig/mindee/parsing/v2/error_response.rbs +16 -0
  134. data/sig/mindee/parsing/v2/field/base_field.rbs +17 -0
  135. data/sig/mindee/parsing/v2/field/field_confidence.rbs +27 -0
  136. data/sig/mindee/parsing/v2/field/field_location.rbs +16 -0
  137. data/sig/mindee/parsing/v2/field/inference_fields.rbs +19 -0
  138. data/sig/mindee/parsing/v2/field/list_field.rbs +21 -0
  139. data/sig/mindee/parsing/v2/field/object_field.rbs +21 -0
  140. data/sig/mindee/parsing/v2/field/simple_field.rbs +16 -0
  141. data/sig/mindee/parsing/v2/inference.rbs +16 -0
  142. data/sig/mindee/parsing/v2/inference_file.rbs +15 -0
  143. data/sig/mindee/parsing/v2/inference_model.rbs +11 -0
  144. data/sig/mindee/parsing/v2/inference_response.rbs +12 -0
  145. data/sig/mindee/parsing/v2/inference_result.rbs +13 -0
  146. data/sig/mindee/parsing/v2/inference_result_options.rbs +11 -0
  147. data/sig/mindee/parsing/v2/job.rbs +22 -0
  148. data/sig/mindee/parsing/v2/job_response.rbs +12 -0
  149. data/sig/mindee/parsing/v2/job_webhook.rbs +17 -0
  150. data/sig/mindee/parsing/v2/raw_text.rbs +12 -0
  151. data/sig/mindee/pdf/extracted_pdf.rbs +6 -6
  152. data/sig/mindee/pdf/pdf_compressor.rbs +4 -4
  153. data/sig/mindee/pdf/pdf_extractor.rbs +8 -7
  154. data/sig/mindee/pdf/pdf_processor.rbs +4 -4
  155. data/sig/mindee/pdf/pdf_tools.rbs +22 -16
  156. data/sig/mindee/product/barcode_reader/barcode_reader_v1.rbs +1 -1
  157. data/sig/mindee/product/barcode_reader/barcode_reader_v1_document.rbs +1 -1
  158. data/sig/mindee/product/barcode_reader/barcode_reader_v1_page.rbs +2 -2
  159. data/sig/mindee/product/bill_of_lading/bill_of_lading_v1.rbs +1 -1
  160. data/sig/mindee/product/bill_of_lading/bill_of_lading_v1_carrier.rbs +2 -2
  161. data/sig/mindee/product/bill_of_lading/bill_of_lading_v1_carrier_item.rbs +3 -3
  162. data/sig/mindee/product/bill_of_lading/bill_of_lading_v1_consignee.rbs +2 -2
  163. data/sig/mindee/product/bill_of_lading/bill_of_lading_v1_document.rbs +1 -1
  164. data/sig/mindee/product/bill_of_lading/bill_of_lading_v1_notify_party.rbs +2 -2
  165. data/sig/mindee/product/bill_of_lading/bill_of_lading_v1_page.rbs +2 -2
  166. data/sig/mindee/product/bill_of_lading/bill_of_lading_v1_shipper.rbs +2 -2
  167. data/sig/mindee/product/business_card/business_card_v1.rbs +1 -1
  168. data/sig/mindee/product/business_card/business_card_v1_document.rbs +1 -1
  169. data/sig/mindee/product/business_card/business_card_v1_page.rbs +2 -2
  170. data/sig/mindee/product/cropper/cropper_v1.rbs +1 -1
  171. data/sig/mindee/product/cropper/cropper_v1_document.rbs +1 -1
  172. data/sig/mindee/product/cropper/cropper_v1_page.rbs +2 -2
  173. data/sig/mindee/product/delivery_note/delivery_note_v1.rbs +1 -1
  174. data/sig/mindee/product/delivery_note/delivery_note_v1_document.rbs +1 -1
  175. data/sig/mindee/product/delivery_note/delivery_note_v1_page.rbs +2 -2
  176. data/sig/mindee/product/driver_license/driver_license_v1.rbs +1 -1
  177. data/sig/mindee/product/driver_license/driver_license_v1_document.rbs +1 -1
  178. data/sig/mindee/product/driver_license/driver_license_v1_page.rbs +2 -2
  179. data/sig/mindee/product/financial_document/financial_document_v1.rbs +1 -1
  180. data/sig/mindee/product/financial_document/financial_document_v1_document.rbs +1 -1
  181. data/sig/mindee/product/financial_document/financial_document_v1_line_item.rbs +3 -3
  182. data/sig/mindee/product/financial_document/financial_document_v1_page.rbs +2 -2
  183. data/sig/mindee/product/fr/bank_account_details/bank_account_details_v1.rbs +1 -1
  184. data/sig/mindee/product/fr/bank_account_details/bank_account_details_v1_document.rbs +1 -1
  185. data/sig/mindee/product/fr/bank_account_details/bank_account_details_v1_page.rbs +2 -2
  186. data/sig/mindee/product/fr/bank_account_details/bank_account_details_v2.rbs +1 -1
  187. data/sig/mindee/product/fr/bank_account_details/bank_account_details_v2_bban.rbs +2 -2
  188. data/sig/mindee/product/fr/bank_account_details/bank_account_details_v2_document.rbs +1 -1
  189. data/sig/mindee/product/fr/bank_account_details/bank_account_details_v2_page.rbs +2 -2
  190. data/sig/mindee/product/fr/bank_statement/bank_statement_v2.rbs +1 -1
  191. data/sig/mindee/product/fr/bank_statement/bank_statement_v2_document.rbs +1 -1
  192. data/sig/mindee/product/fr/bank_statement/bank_statement_v2_page.rbs +2 -2
  193. data/sig/mindee/product/fr/bank_statement/bank_statement_v2_transaction.rbs +3 -3
  194. data/sig/mindee/product/fr/carte_grise/carte_grise_v1.rbs +1 -1
  195. data/sig/mindee/product/fr/carte_grise/carte_grise_v1_document.rbs +1 -1
  196. data/sig/mindee/product/fr/carte_grise/carte_grise_v1_page.rbs +2 -2
  197. data/sig/mindee/product/fr/energy_bill/energy_bill_v1.rbs +1 -1
  198. data/sig/mindee/product/fr/energy_bill/energy_bill_v1_document.rbs +1 -1
  199. data/sig/mindee/product/fr/energy_bill/energy_bill_v1_energy_consumer.rbs +2 -2
  200. data/sig/mindee/product/fr/energy_bill/energy_bill_v1_energy_supplier.rbs +2 -2
  201. data/sig/mindee/product/fr/energy_bill/energy_bill_v1_energy_usage.rbs +3 -3
  202. data/sig/mindee/product/fr/energy_bill/energy_bill_v1_meter_detail.rbs +2 -2
  203. data/sig/mindee/product/fr/energy_bill/energy_bill_v1_page.rbs +2 -2
  204. data/sig/mindee/product/fr/energy_bill/energy_bill_v1_subscription.rbs +3 -3
  205. data/sig/mindee/product/fr/energy_bill/energy_bill_v1_taxes_and_contribution.rbs +3 -3
  206. data/sig/mindee/product/fr/health_card/health_card_v1.rbs +1 -1
  207. data/sig/mindee/product/fr/health_card/health_card_v1_document.rbs +1 -1
  208. data/sig/mindee/product/fr/health_card/health_card_v1_page.rbs +2 -2
  209. data/sig/mindee/product/fr/id_card/id_card_v1.rbs +1 -1
  210. data/sig/mindee/product/fr/id_card/id_card_v1_document.rbs +1 -1
  211. data/sig/mindee/product/fr/id_card/id_card_v1_page.rbs +2 -2
  212. data/sig/mindee/product/fr/id_card/id_card_v2.rbs +1 -1
  213. data/sig/mindee/product/fr/id_card/id_card_v2_document.rbs +1 -1
  214. data/sig/mindee/product/fr/id_card/id_card_v2_page.rbs +2 -2
  215. data/sig/mindee/product/fr/payslip/payslip_v2.rbs +1 -1
  216. data/sig/mindee/product/fr/payslip/payslip_v2_bank_account_detail.rbs +2 -2
  217. data/sig/mindee/product/fr/payslip/payslip_v2_document.rbs +1 -1
  218. data/sig/mindee/product/fr/payslip/payslip_v2_employee.rbs +2 -2
  219. data/sig/mindee/product/fr/payslip/payslip_v2_employer.rbs +2 -2
  220. data/sig/mindee/product/fr/payslip/payslip_v2_employment.rbs +2 -2
  221. data/sig/mindee/product/fr/payslip/payslip_v2_page.rbs +2 -2
  222. data/sig/mindee/product/fr/payslip/payslip_v2_pay_detail.rbs +2 -2
  223. data/sig/mindee/product/fr/payslip/payslip_v2_pay_period.rbs +2 -2
  224. data/sig/mindee/product/fr/payslip/payslip_v2_pto.rbs +2 -2
  225. data/sig/mindee/product/fr/payslip/payslip_v2_salary_detail.rbs +3 -3
  226. data/sig/mindee/product/fr/payslip/payslip_v3.rbs +1 -1
  227. data/sig/mindee/product/fr/payslip/payslip_v3_bank_account_detail.rbs +2 -2
  228. data/sig/mindee/product/fr/payslip/payslip_v3_document.rbs +1 -1
  229. data/sig/mindee/product/fr/payslip/payslip_v3_employee.rbs +2 -2
  230. data/sig/mindee/product/fr/payslip/payslip_v3_employer.rbs +2 -2
  231. data/sig/mindee/product/fr/payslip/payslip_v3_employment.rbs +2 -2
  232. data/sig/mindee/product/fr/payslip/payslip_v3_page.rbs +2 -2
  233. data/sig/mindee/product/fr/payslip/payslip_v3_paid_time_off.rbs +3 -3
  234. data/sig/mindee/product/fr/payslip/payslip_v3_pay_detail.rbs +2 -2
  235. data/sig/mindee/product/fr/payslip/payslip_v3_pay_period.rbs +2 -2
  236. data/sig/mindee/product/fr/payslip/payslip_v3_salary_detail.rbs +3 -3
  237. data/sig/mindee/product/ind/indian_passport/indian_passport_v1.rbs +1 -1
  238. data/sig/mindee/product/ind/indian_passport/indian_passport_v1_document.rbs +1 -1
  239. data/sig/mindee/product/ind/indian_passport/indian_passport_v1_page.rbs +2 -2
  240. data/sig/mindee/product/international_id/international_id_v2.rbs +1 -1
  241. data/sig/mindee/product/international_id/international_id_v2_document.rbs +1 -1
  242. data/sig/mindee/product/international_id/international_id_v2_page.rbs +2 -2
  243. data/sig/mindee/product/invoice/invoice_v4.rbs +1 -1
  244. data/sig/mindee/product/invoice/invoice_v4_document.rbs +1 -1
  245. data/sig/mindee/product/invoice/invoice_v4_line_item.rbs +3 -3
  246. data/sig/mindee/product/invoice/invoice_v4_page.rbs +2 -2
  247. data/sig/mindee/product/invoice_splitter/invoice_splitter_v1.rbs +1 -1
  248. data/sig/mindee/product/invoice_splitter/invoice_splitter_v1_document.rbs +1 -1
  249. data/sig/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_group.rbs +3 -3
  250. data/sig/mindee/product/invoice_splitter/invoice_splitter_v1_page.rbs +2 -2
  251. data/sig/mindee/product/multi_receipts_detector/multi_receipts_detector_v1.rbs +1 -1
  252. data/sig/mindee/product/multi_receipts_detector/multi_receipts_detector_v1_document.rbs +1 -1
  253. data/sig/mindee/product/multi_receipts_detector/multi_receipts_detector_v1_page.rbs +2 -2
  254. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1.rbs +1 -1
  255. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_added_sugar.rbs +2 -2
  256. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_calorie.rbs +2 -2
  257. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_cholesterol.rbs +2 -2
  258. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_dietary_fiber.rbs +2 -2
  259. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_document.rbs +1 -1
  260. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_nutrient.rbs +3 -3
  261. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_page.rbs +2 -2
  262. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_protein.rbs +2 -2
  263. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_saturated_fat.rbs +2 -2
  264. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_serving_size.rbs +2 -2
  265. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_sodium.rbs +2 -2
  266. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_total_carbohydrate.rbs +2 -2
  267. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_total_fat.rbs +2 -2
  268. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_total_sugar.rbs +2 -2
  269. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_trans_fat.rbs +2 -2
  270. data/sig/mindee/product/passport/passport_v1.rbs +1 -1
  271. data/sig/mindee/product/passport/passport_v1_document.rbs +1 -1
  272. data/sig/mindee/product/passport/passport_v1_page.rbs +2 -2
  273. data/sig/mindee/product/receipt/receipt_v5.rbs +1 -1
  274. data/sig/mindee/product/receipt/receipt_v5_document.rbs +1 -1
  275. data/sig/mindee/product/receipt/receipt_v5_line_item.rbs +3 -3
  276. data/sig/mindee/product/receipt/receipt_v5_page.rbs +2 -2
  277. data/sig/mindee/product/resume/resume_v1.rbs +1 -1
  278. data/sig/mindee/product/resume/resume_v1_certificate.rbs +3 -3
  279. data/sig/mindee/product/resume/resume_v1_document.rbs +1 -1
  280. data/sig/mindee/product/resume/resume_v1_education.rbs +3 -3
  281. data/sig/mindee/product/resume/resume_v1_language.rbs +3 -3
  282. data/sig/mindee/product/resume/resume_v1_page.rbs +2 -2
  283. data/sig/mindee/product/resume/resume_v1_professional_experience.rbs +3 -3
  284. data/sig/mindee/product/resume/resume_v1_social_networks_url.rbs +3 -3
  285. data/sig/mindee/product/universal/universal.rbs +5 -5
  286. data/sig/mindee/product/universal/universal_document.rbs +1 -1
  287. data/sig/mindee/product/universal/universal_page.rbs +2 -2
  288. data/sig/mindee/product/universal/universal_prediction.rbs +5 -5
  289. data/sig/mindee/product/us/bank_check/bank_check_v1.rbs +1 -1
  290. data/sig/mindee/product/us/bank_check/bank_check_v1_document.rbs +1 -1
  291. data/sig/mindee/product/us/bank_check/bank_check_v1_page.rbs +2 -2
  292. data/sig/mindee/product/us/healthcare_card/healthcare_card_v1.rbs +1 -1
  293. data/sig/mindee/product/us/healthcare_card/healthcare_card_v1_copay.rbs +3 -3
  294. data/sig/mindee/product/us/healthcare_card/healthcare_card_v1_document.rbs +1 -1
  295. data/sig/mindee/product/us/healthcare_card/healthcare_card_v1_page.rbs +2 -2
  296. data/sig/mindee/product/us/us_mail/us_mail_v2.rbs +1 -1
  297. data/sig/mindee/product/us/us_mail/us_mail_v2_document.rbs +1 -1
  298. data/sig/mindee/product/us/us_mail/us_mail_v2_page.rbs +2 -2
  299. data/sig/mindee/product/us/us_mail/us_mail_v2_recipient_address.rbs +3 -3
  300. data/sig/mindee/product/us/us_mail/us_mail_v2_sender_address.rbs +2 -2
  301. data/sig/mindee/product/us/us_mail/us_mail_v3.rbs +1 -1
  302. data/sig/mindee/product/us/us_mail/us_mail_v3_document.rbs +1 -1
  303. data/sig/mindee/product/us/us_mail/us_mail_v3_page.rbs +2 -2
  304. data/sig/mindee/product/us/us_mail/us_mail_v3_recipient_address.rbs +3 -3
  305. data/sig/mindee/product/us/us_mail/us_mail_v3_sender_address.rbs +2 -2
  306. data/sig/mindee/product/us/w9/w9_v1.rbs +1 -1
  307. data/sig/mindee/product/us/w9/w9_v1_document.rbs +1 -1
  308. data/sig/mindee/product/us/w9/w9_v1_page.rbs +2 -2
  309. data/sig/mindee/version.rbs +2 -2
  310. metadata +61 -6
@@ -0,0 +1,12 @@
1
+ # lib/mindee/parsing/v2/job_response.rb
2
+ module Mindee
3
+ module Parsing
4
+ module V2
5
+ class JobResponse < CommonResponse
6
+ attr_reader job: Job
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
+ def to_s: -> String
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,17 @@
1
+ # lib/mindee/parsing/v2/job_webhook.rb
2
+ module Mindee
3
+ module Parsing
4
+ module V2
5
+ class JobWebhook
6
+ attr_reader created_at: DateTime?
7
+ attr_reader error: ErrorResponse
8
+ attr_reader id: String
9
+ attr_reader status: String
10
+
11
+ def initialize: (Hash[String | Symbol, untyped]) -> void
12
+ def to_s: -> String
13
+ def parse_date: (String?) -> DateTime?
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,12 @@
1
+ # lib/mindee/parsing/v2/raw_text.rb
2
+ module Mindee
3
+ module Parsing
4
+ module V2
5
+ class RawText
6
+ attr_reader page: Integer?
7
+ attr_reader content: String?
8
+ def initialize: (Hash[String | Symbol, untyped]) -> void
9
+ end
10
+ end
11
+ end
12
+ end
@@ -3,12 +3,12 @@ module Mindee
3
3
  module PDF
4
4
  module PDFExtractor
5
5
  class ExtractedPDF
6
- def pdf_bytes: -> untyped
7
- def filename: -> untyped
8
- def initialize: (untyped, untyped) -> untyped
9
- def page_count: -> nil
10
- def write_to_file: (untyped, ?override: false) -> Integer
11
- def as_input_source: -> untyped
6
+ attr_reader pdf_bytes: StringIO
7
+ attr_reader filename: String
8
+ def initialize: (StringIO, String) -> void
9
+ def page_count: -> Integer
10
+ def write_to_file: (String, ?override: bool) -> Integer
11
+ def as_input_source: -> Input::Source::BytesInputSource
12
12
  end
13
13
  end
14
14
  end
@@ -4,11 +4,11 @@ PDF: untyped
4
4
  module Mindee
5
5
  module PDF
6
6
  module PDFCompressor
7
- def self.logger: () -> untyped
8
- def self.compress_pdf: (StringIO, ?quality: Integer, ?force_source_text_compression: bool, ?disable_source_text: bool) -> StringIO
7
+ def self.logger: () -> Logger
8
+ def self.compress_pdf: (StringIO | File, ?quality: Integer, ?force_source_text_compression: bool, ?disable_source_text: bool) -> (StringIO | File)
9
9
  def self.process_pdf_pages: (Origami::PDF, Integer) -> Array[Origami::Page]
10
- def self.create_output_pdf: (Array[Origami::Page], bool, StringIO) -> Origami::PDF
11
- def self.inject_text: (StringIO, Array[Origami::Page]) -> nil
10
+ def self.create_output_pdf: (Array[Origami::Page], bool, StringIO | File) -> Origami::PDF
11
+ def self.inject_text: (StringIO | File, Array[Origami::Page]) -> nil
12
12
  def self.process_pdf_page: (StringIO, Integer, Integer, Array[Integer]?) -> Origami::Page
13
13
  end
14
14
  end
@@ -3,13 +3,14 @@ module Mindee
3
3
  module PDF
4
4
  module PDFExtractor
5
5
  class PDFExtractor
6
- def initialize: (untyped) -> StringIO
7
- def page_count: -> untyped
8
- def cut_pages: (Array[untyped]) -> untyped
9
- def extract_sub_documents: (Array[untyped]) -> Array[untyped]
10
- def extract_invoices: (untyped, ?strict: bool) -> Array[untyped]
11
- def source_pdf: -> StringIO
12
- def filename: -> untyped
6
+ attr_reader filename: String
7
+ attr_reader source_pdf: StringIO
8
+
9
+ def initialize: (Input::Source::LocalInputSource) -> void
10
+ def page_count: -> Integer
11
+ def cut_pages: (Array[Integer]) -> StringIO
12
+ def extract_sub_documents: (Array[Array[Integer]]) -> Array[ExtractedPDF]
13
+ def extract_invoices: (Array[Product::InvoiceSplitter::InvoiceSplitterV1InvoicePageGroup] | Array [Array[Integer]], ?strict: bool) -> Array[ExtractedPDF]
13
14
  end
14
15
  end
15
16
  end
@@ -2,10 +2,10 @@
2
2
  module Mindee
3
3
  module PDF
4
4
  module PDFProcessor
5
- def self.parse: (StringIO, PageOptions) -> StringIO
6
- def self.indexes_from_keep: (Array[Integer], Array[untyped]) -> (Array[Integer] | Array[untyped])
7
- def self.indexes_from_remove: (Array[Integer], Array[untyped]) -> (Array[Integer] | Array[untyped])
8
- def self.open_pdf: (StringIO) -> Origami::PDF
5
+ def self.parse: (StringIO | File, PageOptions) -> StringIO
6
+ def self.indexes_from_keep: (Array[Integer], Array[Integer]) -> (Array[Integer])
7
+ def self.indexes_from_remove: (Array[Integer], Array[Integer]) -> (Array[Integer])
8
+ def self.open_pdf: (StringIO | File) -> Origami::PDF
9
9
  def self.get_page: (Origami::PDF, Integer) -> StringIO
10
10
  end
11
11
  end
@@ -2,22 +2,28 @@
2
2
  module Mindee
3
3
  module PDF
4
4
  module PDFTools
5
- def to_io_stream: (?Hash[untyped, untyped]) -> StringIO
6
- def self.stream_has_text?: (untyped) -> bool
7
- def self.source_text?: (untyped) -> bool?
8
- def self.create_xobject: (untyped) -> untyped
9
- def self.set_xobject_properties: (untyped, untyped) -> untyped
10
- def self.determine_filter: (untyped) -> (:DCTDecode | :FlateDecode | :LZWDecode)
11
- def self.determine_colorspace: (untyped) -> (:DeviceCMYK | :DeviceGray | :DeviceRGB)
12
- def self.add_content_to_page: (untyped, untyped, untyped, untyped) -> untyped
13
- def compile: (untyped) -> untyped
14
- def intents_as_pdfa1: () -> untyped
15
- def delinearize!: () -> untyped
16
- def linearized?: () -> untyped
17
- def load_all_objects: () -> untyped
18
- def output: (untyped) -> untyped
19
- def self.set_page_dimensions: (untyped, untyped, untyped) -> untyped
20
- def self.process_image_xobject: (untyped, untyped, untyped, untyped) -> untyped
5
+ BitsPerComponent: Integer
6
+ ColorSpace: Symbol
7
+ Contents: Origami::Stream
8
+ Height: Integer | Float
9
+ Width: Integer | Float
10
+
11
+ def to_io_stream: (?Hash[Symbol, untyped]) -> StringIO
12
+ def intents_as_pdfa1: () -> void
13
+ def delinearize!: () -> void
14
+ def linearized?: () -> bool
15
+ def compile: (Hash[String | Symbol, untyped]) -> StringIO
16
+ def output: (Hash[String | Symbol, untyped]) -> String
17
+ def load_all_objects: () -> void
18
+ def self.stream_has_text?: (Origami::Stream) -> bool
19
+ def self.source_text?: (StringIO | File) -> bool
20
+ def self.create_xobject: (MiniMagick::Image) -> Origami::Graphics::ImageXObject
21
+ def self.set_xobject_properties: (Origami::Graphics::ImageXObject, MiniMagick::Image) -> void
22
+ def self.determine_filter: (MiniMagick::Image) -> (:DCTDecode | :FlateDecode | :LZWDecode)
23
+ def self.determine_colorspace: (MiniMagick::Image) -> (:DeviceCMYK | :DeviceGray | :DeviceRGB)
24
+ def self.add_content_to_page: (Origami::Page, String, Integer, Integer) -> void
25
+ def self.set_page_dimensions: (Origami::Page, Integer | Float, Integer | Float) -> void
26
+ def self.process_image_xobject: (MiniMagick::Image | StringIO, Integer, Integer | Float, Integer | Float) -> Origami::Graphics::ImageXObject
21
27
  end
22
28
  end
23
29
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module BarcodeReader
6
6
  class BarcodeReaderV1 < Parsing::Common::Inference
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module BarcodeReader
6
6
  class BarcodeReaderV1Document < Parsing::Common::Prediction
7
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
7
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
8
8
  def codes_1d: -> (Array[Parsing::Standard::StringField])
9
9
  def codes_2d: -> (Array[Parsing::Standard::StringField])
10
10
  def to_s: -> String
@@ -4,10 +4,10 @@ module Mindee
4
4
  module Product
5
5
  module BarcodeReader
6
6
  class BarcodeReaderV1Page < Parsing::Common::Page
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  class BarcodeReaderV1PagePrediction < BarcodeReaderV1Document
10
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
10
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
11
11
  def to_s: -> String
12
12
  end
13
13
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module BillOfLading
6
6
  class BillOfLadingV1 < Parsing::Common::Inference
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  end
10
10
  end
@@ -2,11 +2,11 @@ module Mindee
2
2
  module Product
3
3
  module BillOfLading
4
4
  class BillOfLadingV1Carrier < Parsing::Standard::FeatureField
5
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
5
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
6
6
  def name: -> String
7
7
  def professional_number: -> String
8
8
  def scac: -> String
9
- def printable_values: -> Hash[Symbol | String, untyped]
9
+ def printable_values: -> Hash[String | Symbol, untyped]
10
10
  def to_s: -> String
11
11
  end
12
12
  end
@@ -2,15 +2,15 @@ module Mindee
2
2
  module Product
3
3
  module BillOfLading
4
4
  class BillOfLadingV1CarrierItem < Parsing::Standard::FeatureField
5
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
5
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
6
6
  def description: -> String
7
7
  def gross_weight: -> Float
8
8
  def measurement: -> Float
9
9
  def measurement_unit: -> String
10
10
  def quantity: -> Float
11
11
  def weight_unit: -> String
12
- def printable_values: -> Hash[Symbol | String, untyped]
13
- def table_printable_values: -> Hash[Symbol | String, untyped]
12
+ def printable_values: -> Hash[String | Symbol, untyped]
13
+ def table_printable_values: -> Hash[String | Symbol, untyped]
14
14
  def to_table_line: -> String
15
15
  def to_s: -> String
16
16
  end
@@ -2,12 +2,12 @@ module Mindee
2
2
  module Product
3
3
  module BillOfLading
4
4
  class BillOfLadingV1Consignee < Parsing::Standard::FeatureField
5
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
5
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
6
6
  def address: -> String
7
7
  def email: -> String
8
8
  def name: -> String
9
9
  def phone: -> String
10
- def printable_values: -> Hash[Symbol | String, untyped]
10
+ def printable_values: -> Hash[String | Symbol, untyped]
11
11
  def to_s: -> String
12
12
  end
13
13
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module BillOfLading
6
6
  class BillOfLadingV1Document < Parsing::Common::Prediction
7
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
7
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
8
8
  def bill_of_lading_number: -> (Parsing::Standard::StringField)
9
9
  def carrier: -> (Product::BillOfLading::BillOfLadingV1Carrier)
10
10
  def carrier_items: -> (Product::BillOfLading::BillOfLadingV1CarrierItems)
@@ -2,12 +2,12 @@ module Mindee
2
2
  module Product
3
3
  module BillOfLading
4
4
  class BillOfLadingV1NotifyParty < Parsing::Standard::FeatureField
5
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
5
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
6
6
  def address: -> String
7
7
  def email: -> String
8
8
  def name: -> String
9
9
  def phone: -> String
10
- def printable_values: -> Hash[Symbol | String, untyped]
10
+ def printable_values: -> Hash[String | Symbol, untyped]
11
11
  def to_s: -> String
12
12
  end
13
13
  end
@@ -4,10 +4,10 @@ module Mindee
4
4
  module Product
5
5
  module BillOfLading
6
6
  class BillOfLadingV1Page < Parsing::Common::Page
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  class BillOfLadingV1PagePrediction < BillOfLadingV1Document
10
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
10
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
11
11
  def to_s: -> String
12
12
  end
13
13
  end
@@ -2,12 +2,12 @@ module Mindee
2
2
  module Product
3
3
  module BillOfLading
4
4
  class BillOfLadingV1Shipper < Parsing::Standard::FeatureField
5
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
5
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
6
6
  def address: -> String
7
7
  def email: -> String
8
8
  def name: -> String
9
9
  def phone: -> String
10
- def printable_values: -> Hash[Symbol | String, untyped]
10
+ def printable_values: -> Hash[String | Symbol, untyped]
11
11
  def to_s: -> String
12
12
  end
13
13
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module BusinessCard
6
6
  class BusinessCardV1 < Parsing::Common::Inference
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module BusinessCard
6
6
  class BusinessCardV1Document < Parsing::Common::Prediction
7
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
7
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
8
8
  def address: -> (Parsing::Standard::StringField)
9
9
  def company: -> (Parsing::Standard::StringField)
10
10
  def email: -> (Parsing::Standard::StringField)
@@ -4,10 +4,10 @@ module Mindee
4
4
  module Product
5
5
  module BusinessCard
6
6
  class BusinessCardV1Page < Parsing::Common::Page
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  class BusinessCardV1PagePrediction < BusinessCardV1Document
10
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
10
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
11
11
  def to_s: -> String
12
12
  end
13
13
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module Cropper
6
6
  class CropperV1 < Parsing::Common::Inference
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module Cropper
6
6
  class CropperV1Document < Parsing::Common::Prediction
7
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
7
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
8
8
  def to_s: -> String
9
9
  end
10
10
  end
@@ -4,10 +4,10 @@ module Mindee
4
4
  module Product
5
5
  module Cropper
6
6
  class CropperV1Page < Parsing::Common::Page
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  class CropperV1PagePrediction < CropperV1Document
10
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
10
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
11
11
  def cropping: -> Array[Parsing::Standard::PositionField]
12
12
  def to_s: -> String
13
13
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module DeliveryNote
6
6
  class DeliveryNoteV1 < Parsing::Common::Inference
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module DeliveryNote
6
6
  class DeliveryNoteV1Document < Parsing::Common::Prediction
7
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
7
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
8
8
  def customer_address: -> (Parsing::Standard::StringField)
9
9
  def customer_name: -> (Parsing::Standard::StringField)
10
10
  def delivery_date: -> (Parsing::Standard::DateField)
@@ -4,10 +4,10 @@ module Mindee
4
4
  module Product
5
5
  module DeliveryNote
6
6
  class DeliveryNoteV1Page < Parsing::Common::Page
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  class DeliveryNoteV1PagePrediction < DeliveryNoteV1Document
10
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
10
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
11
11
  def to_s: -> String
12
12
  end
13
13
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module DriverLicense
6
6
  class DriverLicenseV1 < Parsing::Common::Inference
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module DriverLicense
6
6
  class DriverLicenseV1Document < Parsing::Common::Prediction
7
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
7
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
8
8
  def category: -> (Parsing::Standard::StringField)
9
9
  def country_code: -> (Parsing::Standard::StringField)
10
10
  def date_of_birth: -> (Parsing::Standard::DateField)
@@ -4,10 +4,10 @@ module Mindee
4
4
  module Product
5
5
  module DriverLicense
6
6
  class DriverLicenseV1Page < Parsing::Common::Page
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  class DriverLicenseV1PagePrediction < DriverLicenseV1Document
10
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
10
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
11
11
  def to_s: -> String
12
12
  end
13
13
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module FinancialDocument
6
6
  class FinancialDocumentV1 < Parsing::Common::Inference
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Mindee
4
4
  module Product
5
5
  module FinancialDocument
6
6
  class FinancialDocumentV1Document < Parsing::Common::Prediction
7
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
7
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
8
8
  def billing_address: -> (Parsing::Standard::AddressField)
9
9
  def category: -> (Parsing::Standard::ClassificationField)
10
10
  def customer_address: -> (Parsing::Standard::AddressField)
@@ -2,7 +2,7 @@ module Mindee
2
2
  module Product
3
3
  module FinancialDocument
4
4
  class FinancialDocumentV1LineItem < Parsing::Standard::FeatureField
5
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
5
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
6
6
  def description: -> String
7
7
  def product_code: -> String
8
8
  def quantity: -> Float
@@ -11,8 +11,8 @@ module Mindee
11
11
  def total_amount: -> Float
12
12
  def unit_measure: -> String
13
13
  def unit_price: -> Float
14
- def printable_values: -> Hash[Symbol | String, untyped]
15
- def table_printable_values: -> Hash[Symbol | String, untyped]
14
+ def printable_values: -> Hash[String | Symbol, untyped]
15
+ def table_printable_values: -> Hash[String | Symbol, untyped]
16
16
  def to_table_line: -> String
17
17
  def to_s: -> String
18
18
  end
@@ -4,10 +4,10 @@ module Mindee
4
4
  module Product
5
5
  module FinancialDocument
6
6
  class FinancialDocumentV1Page < Parsing::Common::Page
7
- def initialize: (Hash[Symbol | String, untyped]) -> void
7
+ def initialize: (Hash[String | Symbol, untyped]) -> void
8
8
  end
9
9
  class FinancialDocumentV1PagePrediction < FinancialDocumentV1Document
10
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
10
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
11
11
  def to_s: -> String
12
12
  end
13
13
  end
@@ -5,7 +5,7 @@ module Mindee
5
5
  module FR
6
6
  module BankAccountDetails
7
7
  class BankAccountDetailsV1 < Parsing::Common::Inference
8
- def initialize: (Hash[Symbol | String, untyped]) -> void
8
+ def initialize: (Hash[String | Symbol, untyped]) -> void
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module Mindee
5
5
  module FR
6
6
  module BankAccountDetails
7
7
  class BankAccountDetailsV1Document < Parsing::Common::Prediction
8
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
8
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
9
9
  def account_holder_name: -> (Parsing::Standard::StringField)
10
10
  def iban: -> (Parsing::Standard::StringField)
11
11
  def swift: -> (Parsing::Standard::StringField)
@@ -5,10 +5,10 @@ module Mindee
5
5
  module FR
6
6
  module BankAccountDetails
7
7
  class BankAccountDetailsV1Page < Parsing::Common::Page
8
- def initialize: (Hash[Symbol | String, untyped]) -> void
8
+ def initialize: (Hash[String | Symbol, untyped]) -> void
9
9
  end
10
10
  class BankAccountDetailsV1PagePrediction < BankAccountDetailsV1Document
11
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
11
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
12
12
  def to_s: -> String
13
13
  end
14
14
  end
@@ -5,7 +5,7 @@ module Mindee
5
5
  module FR
6
6
  module BankAccountDetails
7
7
  class BankAccountDetailsV2 < Parsing::Common::Inference
8
- def initialize: (Hash[Symbol | String, untyped]) -> void
8
+ def initialize: (Hash[String | Symbol, untyped]) -> void
9
9
  end
10
10
  end
11
11
  end
@@ -3,12 +3,12 @@ module Mindee
3
3
  module FR
4
4
  module BankAccountDetails
5
5
  class BankAccountDetailsV2Bban < Parsing::Standard::FeatureField
6
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
6
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
7
7
  def bban_bank_code: -> String
8
8
  def bban_branch_code: -> String
9
9
  def bban_key: -> String
10
10
  def bban_number: -> String
11
- def printable_values: -> Hash[Symbol | String, untyped]
11
+ def printable_values: -> Hash[String | Symbol, untyped]
12
12
  def to_s: -> String
13
13
  end
14
14
  end
@@ -5,7 +5,7 @@ module Mindee
5
5
  module FR
6
6
  module BankAccountDetails
7
7
  class BankAccountDetailsV2Document < Parsing::Common::Prediction
8
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
8
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
9
9
  def account_holders_names: -> (Parsing::Standard::StringField)
10
10
  def bban: -> (Product::FR::BankAccountDetails::BankAccountDetailsV2Bban)
11
11
  def iban: -> (Parsing::Standard::StringField)
@@ -5,10 +5,10 @@ module Mindee
5
5
  module FR
6
6
  module BankAccountDetails
7
7
  class BankAccountDetailsV2Page < Parsing::Common::Page
8
- def initialize: (Hash[Symbol | String, untyped]) -> void
8
+ def initialize: (Hash[String | Symbol, untyped]) -> void
9
9
  end
10
10
  class BankAccountDetailsV2PagePrediction < BankAccountDetailsV2Document
11
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
11
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
12
12
  def to_s: -> String
13
13
  end
14
14
  end
@@ -5,7 +5,7 @@ module Mindee
5
5
  module FR
6
6
  module BankStatement
7
7
  class BankStatementV2 < Parsing::Common::Inference
8
- def initialize: (Hash[Symbol | String, untyped]) -> void
8
+ def initialize: (Hash[String | Symbol, untyped]) -> void
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module Mindee
5
5
  module FR
6
6
  module BankStatement
7
7
  class BankStatementV2Document < Parsing::Common::Prediction
8
- def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
8
+ def initialize: (Hash[String | Symbol, untyped], Integer?) -> void
9
9
  def account_number: -> (Parsing::Standard::StringField)
10
10
  def bank_address: -> (Parsing::Standard::StringField)
11
11
  def bank_name: -> (Parsing::Standard::StringField)