@incodetech/core 2.1.1 → 2.2.0-rc.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 (328) hide show
  1. package/dist/{3dAvatarProvider-BwOmTMOy.esm.js → 3dAvatarProvider-g02DTFqT.esm.js} +811 -880
  2. package/dist/Actor-iTq7YY48.d.ts +1 -0
  3. package/dist/BrowserDiagnosticsCryptoProvider-CriIh1Gt.esm.js +95 -0
  4. package/dist/BrowserLazyImportProvider-BhoA957O.esm.js +114 -0
  5. package/dist/{BrowserStorageProvider-CBHBhKQN.esm.js → BrowserStorageProvider-k-FDkC4W.esm.js} +2 -4
  6. package/dist/{BrowserTimerProvider-CHloo0eQ.esm.js → BrowserTimerProvider-BXhgNxLt.esm.js} +1 -2
  7. package/dist/{BrowserVisibilityObserverProvider-GBS6XSii.esm.js → BrowserVisibilityObserverProvider-BX1BiLDK.esm.js} +1 -2
  8. package/dist/Face2DProvider-UUQt_vRC.esm.js +437 -0
  9. package/dist/{createFaceAvatar-CpdYp9Iy.d.ts → FaceDetectionProvider-Mh6q3EbA.d.ts} +107 -159
  10. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +9 -0
  11. package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +23 -0
  12. package/dist/IFeatureManagementCapability-DdEUp6tB.d.ts +1125 -0
  13. package/dist/IIdCaptureCapability-DHTT3FC2.d.ts +237 -0
  14. package/dist/IStorageCapability-ORkQfK3F.d.ts +242 -0
  15. package/dist/{ITimerCapability-DJ73P4RK.esm.js → ITimerCapability-DgdDzp8G.esm.js} +1 -2
  16. package/dist/{Manager-goNPc_h_.d.ts → Manager-CQQ99QOI.d.ts} +1 -0
  17. package/dist/{MotionSensorProvider-BHuHoYvJ.esm.js → MotionSensorProvider-DGiV77J_.esm.js} +2 -37
  18. package/dist/{OpenViduRecordingProvider-CK6A5kiU.esm.js → OpenViduRecordingProvider-Du98qevC.esm.js} +2 -4
  19. package/dist/PrivacyLensProvider-D8PS7AJa.esm.js +405 -0
  20. package/dist/StateMachine-EDpYWy0i.d.ts +6 -0
  21. package/dist/{StreamCanvasCapture-CAqUdVkM.esm.js → StreamCanvasCapture-D2XcXCZ4.esm.js} +2 -4
  22. package/dist/{addressSearch-D7msRieq.esm.js → addressSearch-DQyrvDQj.esm.js} +10 -21
  23. package/dist/ae-signature.d.ts +4 -6
  24. package/dist/ae-signature.esm.js +10 -11
  25. package/dist/antifraud.d.ts +1 -6
  26. package/dist/antifraud.esm.js +3 -8
  27. package/dist/{antifraudManager-5KA84wtF.esm.js → antifraudManager-B8Plzf7a.esm.js} +11 -8
  28. package/dist/{antifraudManager-DCiNI6np.d.ts → antifraudManager-BY36bS12.d.ts} +3 -3
  29. package/dist/{antifraudStateMachine-BQVw46N5.esm.js → antifraudStateMachine-r4VxSBS4.esm.js} +5 -7
  30. package/dist/api-Bx3gKW_y.esm.js +129 -0
  31. package/dist/{apiError-DkOXfFBu.esm.js → apiError-DZfAyExM.esm.js} +25 -3
  32. package/dist/authentication.d.ts +3 -19
  33. package/dist/authentication.esm.js +3 -35
  34. package/dist/{authenticationManager-BeT6tNZm.d.ts → authenticationManager-BBMGTcwW.d.ts} +3 -4
  35. package/dist/{authenticationManager-BryLnSaF.esm.js → authenticationManager-DscbQwIl.esm.js} +7 -10
  36. package/dist/{authenticationStateMachine-DbdxfGHx.esm.js → authenticationStateMachine-SyuM00Fa.esm.js} +11 -15
  37. package/dist/avatar.d.ts +2 -2
  38. package/dist/avatar.esm.js +2 -3
  39. package/dist/avatar2dWarm-DqucNFX4.esm.js +1330 -0
  40. package/dist/avatarStats-CdUOb3VD.esm.js +136 -0
  41. package/dist/{backCameraStream-ChrMTJv-.esm.js → backCameraStream-CUeYm5eu.esm.js} +20 -8
  42. package/dist/browser-DlFgHpoC-DnyrCR8r.esm.js +1513 -0
  43. package/dist/callback-645_omgz.d.ts +133 -0
  44. package/dist/camera-_2sXMXiF.esm.js +140 -0
  45. package/dist/camera.d.ts +19 -2
  46. package/dist/camera.esm.js +2 -6
  47. package/dist/{canvas-Pi10hG_l.esm.js → canvas-E1zGkel4.esm.js} +1 -2
  48. package/dist/certificate-issuance.d.ts +34 -39
  49. package/dist/certificate-issuance.esm.js +4 -11
  50. package/dist/{certificateIssuanceStateMachine-DlZQT1_u.esm.js → certificateIssuanceStateMachine-COd7_l2T.esm.js} +7 -11
  51. package/dist/consent.d.ts +1 -4
  52. package/dist/consent.esm.js +3 -8
  53. package/dist/{consentManager-BwNu-uC-.esm.js → consentManager-BApTlfA0.esm.js} +5 -7
  54. package/dist/{consentManager-B4PMGXW-.d.ts → consentManager-uhDPdU6i.d.ts} +55 -61
  55. package/dist/{consentStateMachine-BOkVFiU7.esm.js → consentStateMachine-WD-S-Yhs.esm.js} +5 -7
  56. package/dist/{cpf-16m_cGAM.esm.js → cpf-BIADjddF.esm.js} +1 -2
  57. package/dist/createFaceAvatar-BEj18KXi.d.ts +50 -0
  58. package/dist/createFaceAvatar-DQKaRise.esm.js +103 -0
  59. package/dist/cross-document-data-match.d.ts +2 -26
  60. package/dist/cross-document-data-match.esm.js +2 -71
  61. package/dist/crossDocumentDataMatchManager-Dq8Z3SOg.d.ts +41 -0
  62. package/dist/crossDocumentDataMatchManager-OmYvyung.esm.js +84 -0
  63. package/dist/curp-validation.d.ts +1 -11
  64. package/dist/curp-validation.esm.js +3 -8
  65. package/dist/{curpValidationManager-CoqODZx5.d.ts → curpValidationManager-DVGr7Fq7.d.ts} +4 -6
  66. package/dist/{curpValidationManager-Cbji2inV.esm.js → curpValidationManager-UZxcrsrz.esm.js} +11 -7
  67. package/dist/{curpValidationStateMachine-Dlw4qfFb.esm.js → curpValidationStateMachine-9KwnqeoB.esm.js} +22 -14
  68. package/dist/custom-fields.d.ts +2 -5
  69. package/dist/custom-fields.esm.js +24 -11
  70. package/dist/custom-watchlist.d.ts +1 -3
  71. package/dist/custom-watchlist.esm.js +11 -10
  72. package/dist/{customWatchlistStateMachine-D8w0mNxm.esm.js → customWatchlistStateMachine-B_ey3TFj.esm.js} +5 -7
  73. package/dist/{dateUtils-BW6mBV6p.esm.js → dateUtils-CvG0FvK8.esm.js} +1 -2
  74. package/dist/{deepsightService-CViys6T4.esm.js → deepsightLoader-DcWjMC6A.esm.js} +68 -14
  75. package/dist/{deepsightService-BuTOFTr8.d.ts → deepsightService-DLVQS_RH.d.ts} +41 -2
  76. package/dist/device.d.ts +10 -2
  77. package/dist/device.esm.js +21 -21
  78. package/dist/document-capture.d.ts +3 -1816
  79. package/dist/document-capture.esm.js +3 -245
  80. package/dist/document-upload.d.ts +48 -55
  81. package/dist/document-upload.esm.js +8 -14
  82. package/dist/documentCaptureManager-B4Kivr8_.d.ts +2062 -0
  83. package/dist/documentCaptureManager-DszmcU-l.esm.js +296 -0
  84. package/dist/{documentCaptureStateMachine-BkTvU3yq.esm.js → documentCaptureStateMachine-D2jBwwVb.esm.js} +66 -40
  85. package/dist/dynamic-forms.d.ts +2 -4
  86. package/dist/dynamic-forms.esm.js +3 -9
  87. package/dist/{dynamicFormsManager-CHXUBNs4.esm.js → dynamicFormsManager-BoZ2-OUI.esm.js} +48 -9
  88. package/dist/{dynamicFormsManager-CKZkE7Wo.d.ts → dynamicFormsManager-fhK0yINk.d.ts} +22 -46
  89. package/dist/{dynamicFormsStateMachine-DJ1HGZff.esm.js → dynamicFormsStateMachine-D0RzkoEV.esm.js} +161 -34
  90. package/dist/ekyb.d.ts +5 -137
  91. package/dist/ekyb.esm.js +4 -179
  92. package/dist/ekybManager-DTvfxAOZ.esm.js +178 -0
  93. package/dist/ekybManager-Dzswb_b8.d.ts +114 -0
  94. package/dist/{ekybStateMachine-D9GzA4MW.esm.js → ekybStateMachine-BlTIozb6.esm.js} +16 -193
  95. package/dist/ekyc.d.ts +2 -79
  96. package/dist/ekyc.esm.js +4 -154
  97. package/dist/ekycManager-BFpHbBoT.d.ts +97 -0
  98. package/dist/ekycManager-oTstTJuL.esm.js +156 -0
  99. package/dist/{ekycStateMachine-DnVRiu3s.esm.js → ekycStateMachine-DHvksnrr.esm.js} +141 -423
  100. package/dist/ekycUtils-Dew1rBG0.esm.js +223 -0
  101. package/dist/electronic-signature.d.ts +3 -5
  102. package/dist/electronic-signature.esm.js +2 -10
  103. package/dist/{index-36QX_21w.d.ts → electronicSignatureManager-CcUXQZS7.d.ts} +220 -251
  104. package/dist/{electronicSignatureManager-DESRgObX.esm.js → electronicSignatureManager-DRYlHPjT.esm.js} +47 -33
  105. package/dist/email.d.ts +1 -5
  106. package/dist/email.esm.js +3 -10
  107. package/dist/{emailManager-CMS4q_r6.d.ts → emailManager-CADXW_9X.d.ts} +4 -7
  108. package/dist/{emailManager-B9Vrv3Ma.esm.js → emailManager-tE-YvNtS.esm.js} +76 -12
  109. package/dist/{emailStateMachine-CbmKFVSi.esm.js → emailStateMachine-Bm894MHB.esm.js} +7 -9
  110. package/dist/{endpoints-CwrFQfW7.esm.js → endpoints-CCzL3XD_.esm.js} +55 -6
  111. package/dist/{events-1wxZ97yf.esm.js → events-CxfNJVZW.esm.js} +43 -176
  112. package/dist/events.d.ts +28 -10
  113. package/dist/events.esm.js +2 -4
  114. package/dist/extensibility.d.ts +37 -37
  115. package/dist/extensibility.esm.js +31 -80
  116. package/dist/{externalFetch-hvmz_npP.esm.js → externalFetch-BKBThAUC.esm.js} +2 -4
  117. package/dist/face-match.d.ts +2 -225
  118. package/dist/face-match.esm.js +3 -173
  119. package/dist/{faceCaptureManagerFactory-C9TiGbkA.esm.js → faceCaptureManagerFactory-BDAsBCkh.esm.js} +52 -31
  120. package/dist/{faceCaptureManagerFactory-DiJ64oem.d.ts → faceCaptureManagerFactory-BxWPpxyd.d.ts} +63 -24
  121. package/dist/{faceCaptureSetup-BqhqfFHL.esm.js → faceCaptureSetup-C7Qv79fA.esm.js} +57 -36
  122. package/dist/faceMatchManager-BXp2WUT-.esm.js +201 -0
  123. package/dist/faceMatchManager-BnvrZM2F.d.ts +268 -0
  124. package/dist/{faceMatchStateMachine-MDb30gCm.esm.js → faceMatchStateMachine-CJiO2yLO.esm.js} +14 -10
  125. package/dist/feature-management-DS_Nj5Gg.esm.js +615 -0
  126. package/dist/feature-management.d.ts +173 -0
  127. package/dist/feature-management.esm.js +2 -0
  128. package/dist/field-comparison.d.ts +1 -4
  129. package/dist/field-comparison.esm.js +2 -7
  130. package/dist/{fieldComparisonManager-OLKVsG2Z.d.ts → fieldComparisonManager-CBvEGxFx.d.ts} +3 -5
  131. package/dist/{fieldComparisonManager-Cw4uzD7S.esm.js → fieldComparisonManager-DhnYdYZ2.esm.js} +6 -11
  132. package/dist/fiscal-qr.d.ts +1 -6
  133. package/dist/fiscal-qr.esm.js +14 -29
  134. package/dist/flow-events.d.ts +2 -9
  135. package/dist/flow.d.ts +59 -21
  136. package/dist/flow.esm.js +132 -49
  137. package/dist/{flowCompletionService-B6P6_EF3.esm.js → flowCompletionService-BSe3p7pg.esm.js} +4 -6
  138. package/dist/flowServices-unhF9V9F.esm.js +620 -0
  139. package/dist/geolocation.d.ts +1 -4
  140. package/dist/geolocation.esm.js +3 -9
  141. package/dist/{geolocationManager-CF6-NizA.esm.js → geolocationManager-Bv9MSVNr.esm.js} +44 -16
  142. package/dist/geolocationManager-Cz744E5S.d.ts +506 -0
  143. package/dist/{geolocationStateMachine-CD2XJs1b.esm.js → geolocationStateMachine-BxD6JK1M.esm.js} +53 -28
  144. package/dist/{getBrowser-1yNcfFZR.esm.js → getBrowser-Cb8Zgrgp.esm.js} +1 -2
  145. package/dist/getBrowser-DNrQeL4T.esm.js +16 -0
  146. package/dist/getDeviceClass-9y-kbVDw.esm.js +19 -0
  147. package/dist/{getDeviceClass-C-Dg6IsJ.esm.js → getDeviceClass-CeBiEayS.esm.js} +1 -2
  148. package/dist/getParsedUserAgent-pJjATANs.esm.js +1622 -0
  149. package/dist/government-validation.d.ts +3 -6
  150. package/dist/government-validation.esm.js +7 -13
  151. package/dist/{governmentValidationStateMachine-BE5wiQ7Y.esm.js → governmentValidationStateMachine-BYKYUdza.esm.js} +8 -11
  152. package/dist/home.d.ts +14 -22
  153. package/dist/home.esm.js +3 -8
  154. package/dist/http.d.ts +0 -1
  155. package/dist/http.esm.js +2 -4
  156. package/dist/id-ocr.d.ts +8 -7
  157. package/dist/id-ocr.esm.js +20 -9
  158. package/dist/id-selfie-flow.d.ts +179 -0
  159. package/dist/id-selfie-flow.esm.js +917 -0
  160. package/dist/id-verification.d.ts +2 -191
  161. package/dist/id-verification.esm.js +3 -43
  162. package/dist/id.d.ts +7 -18
  163. package/dist/id.esm.js +47 -53
  164. package/dist/{idCaptureDefaults-CZajItdO.esm.js → idCaptureDefaults-WeHbQM7W.esm.js} +54 -17
  165. package/dist/idCaptureManager-BjU-Wyow.d.ts +429 -0
  166. package/dist/{idCaptureManager-DASPUMtC.esm.js → idCaptureManager-BjiBSrHm.esm.js} +173 -34
  167. package/dist/idCaptureServices-CFDwqTtQ.esm.js +396 -0
  168. package/dist/{idCaptureStateMachine-DZ2ZTSxu.esm.js → idCaptureStateMachine-CRwQh8jc.esm.js} +438 -585
  169. package/dist/{idOcrManager-Tm4LzKR0.esm.js → idOcrManager-CvJZhmBR.esm.js} +4 -7
  170. package/dist/{idOcrManager-DLfAjDZn.d.ts → idOcrManager-DXc_xRN7.d.ts} +62 -229
  171. package/dist/{idOcrStateMachine-BJxZCxwS.esm.js → idOcrStateMachine-Bq_e3l4E.esm.js} +15 -20
  172. package/dist/idVerificationManager-BB4Pj_N6.d.ts +197 -0
  173. package/dist/idVerificationManager-CduNXhWd.esm.js +51 -0
  174. package/dist/{idVerificationStateMachine-DXN9WcdM.esm.js → idVerificationStateMachine-GEQWUPU2.esm.js} +5 -7
  175. package/dist/identity-reuse.d.ts +1 -4
  176. package/dist/identity-reuse.esm.js +3 -8
  177. package/dist/{identityReuseManager-LjkPvSQN.esm.js → identityReuseManager-D5vXknnJ.esm.js} +24 -7
  178. package/dist/{identityReuseManager-CLVOYxcp.d.ts → identityReuseManager-v2TH5g7e.d.ts} +38 -43
  179. package/dist/{identityReuseStateMachine-Bp-zONoV.esm.js → identityReuseStateMachine-AubRPhIi.esm.js} +6 -8
  180. package/dist/index-B8weJxmL.d.ts +1 -0
  181. package/dist/index-BKOWUhxG.d.ts +258 -0
  182. package/dist/{index-DrpWp15Z.d.ts → index-CLMF0QLQ.d.ts} +3 -3
  183. package/dist/index.d.ts +1 -3
  184. package/dist/index.esm.js +2 -15
  185. package/dist/{invokeOnCaptureCallback-CCS2Ruzi.esm.js → invokeOnCaptureCallback-1m1VJ3Q4.esm.js} +2 -4
  186. package/dist/{lib-Bjd6nOLG.esm.js → lib-DAyUtOTj.esm.js} +1510 -1589
  187. package/dist/mandatory-consent.d.ts +2 -10
  188. package/dist/mandatory-consent.esm.js +3 -8
  189. package/dist/{mandatoryConsentManager-DeBmOHcQ.d.ts → mandatoryConsentManager-B29kR0XA.d.ts} +60 -85
  190. package/dist/{mandatoryConsentManager-DZ26sg4B.esm.js → mandatoryConsentManager-BeELm1zS.esm.js} +4 -7
  191. package/dist/{mandatoryConsentStateMachine-_44ZoDSh.esm.js → mandatoryConsentStateMachine-zroQGzwb.esm.js} +5 -7
  192. package/dist/manualReviewService-D4IkipnN.esm.js +15 -0
  193. package/dist/{mediaRecorderOptions-CClCKAiF.esm.js → mediaRecorderOptions-dALSV8af.esm.js} +2 -4
  194. package/dist/{mediapipeShared-Bcmkzs3x.esm.js → mediapipeShared-B6oNoXEQ.esm.js} +21 -9
  195. package/dist/{onDeviceFaceResults-DILtthks.esm.js → onDeviceFaceResults-f81FVdQs.esm.js} +30 -87
  196. package/dist/openviduLazy-CCDpFWg1.esm.js +10 -0
  197. package/dist/{otp-B1YeyRXu.d.ts → otp-CEWfTj9v.d.ts} +0 -1
  198. package/dist/{otp-uaXiKt_R.esm.js → otp-D2k3PeSL.esm.js} +3 -14
  199. package/dist/{permissionGuards-BNOe4Tnu.esm.js → permissionGuards-KINpmKtI.esm.js} +2 -4
  200. package/dist/{permissionServices-C_kxhNeo.esm.js → permissionServices-UvUcOSRb.esm.js} +35 -28
  201. package/dist/personhood.d.ts +13 -20
  202. package/dist/personhood.esm.js +153 -85
  203. package/dist/phone.d.ts +1 -5
  204. package/dist/phone.esm.js +3 -10
  205. package/dist/{phoneManager-_KtitbUA.d.ts → phoneManager-BBU8Lq0O.d.ts} +4 -7
  206. package/dist/{phoneManager-CRblfdcI.esm.js → phoneManager-Cpiai2IM.esm.js} +82 -12
  207. package/dist/{phoneStateMachine-DjFGWMjQ.esm.js → phoneStateMachine-E1fUUcNM.esm.js} +7 -9
  208. package/dist/{platform-0Ot-bF_a.esm.js → platform-BJrm5nzZ.esm.js} +31 -11
  209. package/dist/privacyLensWorker-DI-Rg83h.esm.js +355 -0
  210. package/dist/qe-signature.d.ts +4 -6
  211. package/dist/qe-signature.esm.js +10 -11
  212. package/dist/{recordingService-CxaYkITO.esm.js → recordingService-CFpfdXSS.esm.js} +13 -31
  213. package/dist/redirect-to-mobile.d.ts +2 -6
  214. package/dist/redirect-to-mobile.esm.js +3 -10
  215. package/dist/{redirectToMobileManager-dv29o_LS.d.ts → redirectToMobileManager-BD2PvT5B.d.ts} +8 -44
  216. package/dist/{redirectToMobileManager-DbuNUlru.esm.js → redirectToMobileManager-C0dfc7f6.esm.js} +28 -8
  217. package/dist/{redirectToMobileStateMachine-BRaIJWOM.esm.js → redirectToMobileStateMachine-C9SYCJcH.esm.js} +74 -18
  218. package/dist/rolldown-runtime-FZ4Itg2g.esm.js +42 -0
  219. package/dist/{runChildModule-kojSv3MH.esm.js → runChildModule-DpvgAGFA.esm.js} +10 -9
  220. package/dist/{WasmUtilProvider-BgzcXBdl.esm.js → safeStorage-Ep56I-f_.esm.js} +98 -473
  221. package/dist/selfie.d.ts +8 -21
  222. package/dist/selfie.esm.js +40 -47
  223. package/dist/selfieErrorUtils-C2PYBVsp.esm.js +90 -0
  224. package/dist/{selfieManager-B1Px3GGa.esm.js → selfieManager-Br4onIMy.esm.js} +7 -10
  225. package/dist/{selfieManager-4juKfrHG.d.ts → selfieManager-DwlCppg0.d.ts} +3 -4
  226. package/dist/{selfieStateMachine-D0TS93Tu.esm.js → selfieStateMachine-CNGs8vFK.esm.js} +14 -29
  227. package/dist/{session-CLsU2Jnb.esm.js → session-CX2H3tmI.esm.js} +16 -7
  228. package/dist/session.d.ts +12 -10
  229. package/dist/session.esm.js +5 -15
  230. package/dist/sessionInitializer-CV6Rj_dn.esm.js +1865 -0
  231. package/dist/{setup-CfNsYAeB.esm.js → setup-CYdVacqv.esm.js} +319 -137
  232. package/dist/{setup-CmA2apmN.d.ts → setup-DywQeePQ.d.ts} +186 -4
  233. package/dist/signature.d.ts +2 -96
  234. package/dist/signature.esm.js +3 -108
  235. package/dist/signatureManager-DGBSWz2_.d.ts +106 -0
  236. package/dist/signatureManager-DdPgcmou.esm.js +113 -0
  237. package/dist/{signatureStateMachine-CdhlMih-.esm.js → signatureStateMachine-Cf73DGWO.esm.js} +5 -7
  238. package/dist/spawn-D9jgw9pW.d.ts +1441 -0
  239. package/dist/src-0Jurt29N.esm.js +4482 -0
  240. package/dist/{stats-BVy52wLy.esm.js → stats-B0nFKawG.esm.js} +3 -5
  241. package/dist/stats.esm.js +2 -5
  242. package/dist/topLevelStateName-B5i2avbh.esm.js +41 -0
  243. package/dist/{tri-CFAPtAUM.esm.js → tri-4RsGrIt6.esm.js} +3 -119
  244. package/dist/tri.d.ts +2 -2
  245. package/dist/tri.esm-BIjHhBJ2.esm.js +2620 -0
  246. package/dist/tri.esm.js +2 -4
  247. package/dist/trueSight-B8G85W4z.esm.js +1 -0
  248. package/dist/trueSightService-6dTpiaTh.esm.js +1894 -0
  249. package/dist/trust-graph.d.ts +4 -5
  250. package/dist/trust-graph.esm.js +13 -9
  251. package/dist/types-BEwVKkLJ.d.ts +15 -0
  252. package/dist/{types-BKLb3C42.esm.js → types-BN5RPPIZ.esm.js} +1 -2
  253. package/dist/types-BSBzhHRH.d.ts +57 -0
  254. package/dist/types-BX_XkMsQ2.d.ts +21 -0
  255. package/dist/types-BfHiko5D.d.ts +48 -0
  256. package/dist/{types-D8Cl1N2Z.d.ts → types-BfgmV7s72.d.ts} +2 -2
  257. package/dist/types-CJ7Yl9K-2.d.ts +164 -0
  258. package/dist/types-DPIDuhut.d.ts +40 -0
  259. package/dist/types-DVmXIdzW.d.ts +82 -0
  260. package/dist/types-DelMqZLe.d.ts +105 -0
  261. package/dist/types-EELWyWpd.d.ts +6 -0
  262. package/dist/{types-fO6KIdol.d.ts → types-Hmd7U0JA.d.ts} +80 -6
  263. package/dist/{types-BUgeB2X6.d.ts → types-KPvmag_B.d.ts} +7 -7
  264. package/dist/types-M6eb82ra2.d.ts +589 -0
  265. package/dist/{types-DV3wkhQ4.d.ts → types-Vb4P9ovf.d.ts} +1 -3
  266. package/dist/{urlUtils-CpiYwn7w.esm.js → urlUtils-D6phjq1-.esm.js} +1 -2
  267. package/dist/{video-ZY92rkel.esm.js → video-BtSWtHy1.esm.js} +1 -2
  268. package/dist/video-selfie.d.ts +71 -117
  269. package/dist/video-selfie.esm.js +575 -643
  270. package/dist/videoSelfieCameraWarmer-h_VUk5Vu.esm.js +651 -0
  271. package/dist/videoSelfieStepDetector-D3oo2ofo.d.ts +123 -0
  272. package/dist/wasm.d.ts +2 -4
  273. package/dist/wasm.esm.js +4 -15
  274. package/dist/wasmDefaults-DTUrftxR.esm.js +125 -0
  275. package/dist/{wasmDsFlagSync-Ch0mFJNT.esm.js → wasmDsFlagSync-BqUCwLY8.esm.js} +2 -4
  276. package/dist/wasmWebClient-DM8lkb0z.esm.js +407 -0
  277. package/dist/watchlist-for-business.d.ts +1 -3
  278. package/dist/watchlist-for-business.esm.js +9 -9
  279. package/dist/watchlist.d.ts +1 -52
  280. package/dist/watchlist.esm.js +3 -70
  281. package/dist/{watchlistForBusinessStateMachine-R1Yp1g5A.esm.js → watchlistForBusinessStateMachine-BcBMkMvV.esm.js} +5 -7
  282. package/dist/watchlistManager-CjSMmbyq.esm.js +83 -0
  283. package/dist/watchlistManager-DLXef90v.d.ts +68 -0
  284. package/dist/{watchlistStateMachine-D07UVq1m.esm.js → watchlistStateMachine-Bl7Wy9Cm.esm.js} +5 -7
  285. package/dist/workflow.d.ts +239 -203
  286. package/dist/workflow.esm.js +156 -101
  287. package/dist/xstate-actors.esm-CtI5S0f4.esm.js +310 -0
  288. package/dist/{xstate.esm-nY3M5UYm.esm.js → xstate.esm-Cf4e0Cfd.esm.js} +136 -610
  289. package/package.json +14 -9
  290. package/dist/Actor-BwgmOPkb.d.ts +0 -2
  291. package/dist/Face2DProvider-CZU11g6r.esm.js +0 -824
  292. package/dist/FaceDetectionProvider-CPWg-PAH.d.ts +0 -119
  293. package/dist/IWasmUtilCapability-DaSNxgA8.d.ts +0 -150
  294. package/dist/PrivacyLensProvider-B_zrV25p.esm.js +0 -339
  295. package/dist/StateMachine-D5WO6lHS.d.ts +0 -2
  296. package/dist/StreamCanvasCapture-DHaWferF.d.ts +0 -42
  297. package/dist/ae-signature-Pp4oCAHD.esm.js +0 -12
  298. package/dist/api-DsbUi7TO.esm.js +0 -72
  299. package/dist/browser-DlFgHpoC-Br3G10gw.esm.js +0 -1425
  300. package/dist/browserSimulation-DZwEy9bu.esm.js +0 -2804
  301. package/dist/camera-CxxXV0VN.esm.js +0 -79
  302. package/dist/canvas-90BqS0NF.d.ts +0 -112
  303. package/dist/chunk-CIKcdghV.esm.js +0 -49
  304. package/dist/clientLifecycle-VyzRfALg.esm.js +0 -534
  305. package/dist/cpf-ocr.d.ts +0 -10
  306. package/dist/cpf-ocr.esm.js +0 -8
  307. package/dist/cpfOcrManager-9eM4z4o7.esm.js +0 -190
  308. package/dist/cpfOcrManager-C5U9E0hf.d.ts +0 -216
  309. package/dist/createFaceAvatar-BZSg2MNo.esm.js +0 -46
  310. package/dist/deepsightLoader-CU_tiLMx.esm.js +0 -62
  311. package/dist/flowServices-DkQmOkLV.esm.js +0 -208
  312. package/dist/geolocationManager-DaHYFkVO.d.ts +0 -156
  313. package/dist/getDeviceClass-DIjnTPjR.esm.js +0 -14
  314. package/dist/http-CnsKEaJY.esm.js +0 -0
  315. package/dist/idCaptureManager-CwuXtVu6.d.ts +0 -1013
  316. package/dist/index-BAyZ8_iI.d.ts +0 -93
  317. package/dist/openviduLazy-jPgABwrt.esm.js +0 -3
  318. package/dist/openviduLazy-wEojM41w.esm.js +0 -12
  319. package/dist/qe-signature-BnWIpR-O.esm.js +0 -12
  320. package/dist/sessionInitializer-Dj7-aJaP.esm.js +0 -547
  321. package/dist/tri.esm-DDJ1zOqG.esm.js +0 -2593
  322. package/dist/types-BcF-fii5.d.ts +0 -5
  323. package/dist/videoSelfieSteps-Djpv7cjb.esm.js +0 -58
  324. /package/dist/{IVisibilityObserverCapability-BZ1rE7ly.d.ts → IVisibilityObserverCapability-D4tvIB5v.d.ts} +0 -0
  325. /package/dist/{camera-CKU96nwJ.d.ts → camera-9wWD-pwg.d.ts} +0 -0
  326. /package/dist/{flowCompletionService-BOSTlAWo.d.ts → flowCompletionService-BlAHsKyv.d.ts} +0 -0
  327. /package/dist/{types-BgjMAEXl.d.ts → types-Bk_6dmDa.d.ts} +0 -0
  328. /package/dist/{warmup-Dd0iq6KF.d.ts → warmup-Dv2alr2-.d.ts} +0 -0
@@ -1,1816 +1,3 @@
1
- import "./StateMachine-D5WO6lHS.js";
2
- import { t as Manager } from "./Manager-goNPc_h_.js";
3
- import "./Actor-BwgmOPkb.js";
4
- import { t as CameraStream } from "./camera-CKU96nwJ.js";
5
- import { n as PermissionStatus, t as PermissionResult } from "./types-BcF-fii5.js";
6
- import * as xstate1077 from "xstate";
7
-
8
- //#region src/modules/document-capture/types.d.ts
9
- type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
10
- declare const DOCUMENT_CAPTURE_ERROR_CODES: {
11
- readonly FILE_TOO_LARGE: "FILE_TOO_LARGE";
12
- readonly UPLOAD_FAILED: "UPLOAD_FAILED";
13
- };
14
- declare const DOCUMENT_CAPTURE_FINALIZE_ERROR_CODES: {
15
- readonly UNEXPECTED_ERROR: "UNEXPECTED_ERROR";
16
- };
17
- type DocumentCaptureErrorCode = (typeof DOCUMENT_CAPTURE_ERROR_CODES)[keyof typeof DOCUMENT_CAPTURE_ERROR_CODES];
18
- type DocumentCaptureFinalizeErrorCode = (typeof DOCUMENT_CAPTURE_FINALIZE_ERROR_CODES)[keyof typeof DOCUMENT_CAPTURE_FINALIZE_ERROR_CODES];
19
- /**
20
- * Configuration for the document capture module.
21
- * Parameterized to support both DOCUMENT_CAPTURE and ADDRESS flows.
22
- */
23
- type DocumentCaptureConfig = {
24
- /** Processing type for API endpoint routing. @default 'addressStatement' */
25
- processingType?: DocumentType;
26
- /** Capture mode. 'camera' shows bottom sheet with camera+file options. 'file' opens file picker directly. @default 'camera' */
27
- captureMode?: 'file' | 'camera';
28
- /** Allow user to skip this step. @default false */
29
- allowSkipDocumentCapture?: boolean;
30
- /** Backend ADDRESS config field. Inverted: `disableSkipPoa: true` → skip disabled. If both are set, `allowSkipDocumentCapture` takes precedence. */
31
- disableSkipPoa?: boolean;
32
- /** Tutorial screen title override */
33
- title?: string;
34
- /** Tutorial screen text override */
35
- text?: string;
36
- /** Title override for the second-page tutorial (multi-page flows). Falls back to `title`. */
37
- step2Title?: string;
38
- /** Text override for the second-page tutorial (multi-page flows). Falls back to `text`. */
39
- step2Text?: string;
40
- /** Number of capture/upload attempts before auto-advancing. @default 3 */
41
- captureAttempts?: number;
42
- /** Send image as base64 instead of raw file. @default false */
43
- sendBase64?: boolean;
44
- /** Maximum file size in bytes. @default 10485760 (10MB) */
45
- maxFileSize?: number;
46
- };
47
- type CapturedDocument = {
48
- imageBase64: string;
49
- file: File;
50
- fileType: string;
51
- };
52
- type DocumentUploadResponse = {
53
- success: boolean;
54
- status?: 'ADD_NEXT_PAGE' | 'OPTIONAL_PAGE_CAPTURE' | 'SUCCESS';
55
- };
56
- type FinalizeDocumentResponse = {
57
- status?: string;
58
- success?: boolean;
59
- };
60
- type DocumentCaptureResolvedConfig = {
61
- processingType: DocumentType;
62
- captureMode: 'file' | 'camera';
63
- allowSkipDocumentCapture: boolean;
64
- captureAttempts: number;
65
- sendBase64: boolean;
66
- maxFileSize: number;
67
- title: string | undefined;
68
- text: string | undefined;
69
- step2Title: string | undefined;
70
- step2Text: string | undefined;
71
- };
72
- type DocumentCaptureNextPageType = 'none' | 'required' | 'optional';
73
- type DocumentCaptureContext = {
74
- config: DocumentCaptureResolvedConfig;
75
- stream: CameraStream | undefined;
76
- permissionResult: PermissionResult | 'refresh' | undefined;
77
- capturedDocument: CapturedDocument | undefined;
78
- captureMethod: 'camera' | 'file' | 'gallery' | undefined;
79
- progress: number;
80
- error: DocumentCaptureErrorCode | DocumentCaptureFinalizeErrorCode | undefined;
81
- attemptsRemaining: number;
82
- pageNumber: number;
83
- nextPageType: DocumentCaptureNextPageType;
84
- };
85
- type DocumentCaptureInput = {
86
- config: DocumentCaptureConfig;
87
- };
88
- //#endregion
89
- //#region src/modules/document-capture/documentCaptureStateMachine.d.ts
90
- declare const documentCaptureMachine: xstate1077.StateMachine<DocumentCaptureContext, {
91
- type: "CAPTURE";
92
- } | {
93
- type: "FILE_SELECTED";
94
- file: File;
95
- imageBase64: string;
96
- fileType: string;
97
- } | {
98
- type: "ACCEPT";
99
- } | {
100
- type: "RETAKE";
101
- } | {
102
- type: "UPLOAD_PROGRESS";
103
- progress: number;
104
- } | {
105
- type: "RETRY";
106
- } | {
107
- type: "CONTINUE";
108
- } | {
109
- type: "NEXT_PAGE_CAMERA";
110
- } | {
111
- type: "NEXT_PAGE_PHOTO_LIBRARY";
112
- } | {
113
- type: "ALL_PAGES_CAPTURED";
114
- } | {
115
- type: "SKIP";
116
- } | {
117
- type: "REQUEST_PERMISSION";
118
- } | {
119
- type: "GO_TO_LEARN_MORE";
120
- } | {
121
- type: "BACK";
122
- } | {
123
- type: "CLOSE";
124
- }, {
125
- [x: string]: xstate1077.ActorRefFromLogic<xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>> | xstate1077.ActorRefFromLogic<xstate1077.PromiseActorLogic<DocumentUploadResponse, {
126
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
127
- processingType: string;
128
- onProgress: (progress: number) => void;
129
- }, xstate1077.EventObject>> | xstate1077.ActorRefFromLogic<xstate1077.PromiseActorLogic<PermissionResult, {
130
- permissionResult?: PermissionResult;
131
- requestMotionPermission: boolean;
132
- }, xstate1077.EventObject>> | xstate1077.ActorRefFromLogic<xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>> | xstate1077.ActorRefFromLogic<xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
133
- processingType: string;
134
- }, xstate1077.EventObject>> | undefined;
135
- }, xstate1077.Values<{
136
- uploadDocument: {
137
- src: "uploadDocument";
138
- logic: xstate1077.PromiseActorLogic<DocumentUploadResponse, {
139
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
140
- processingType: string;
141
- onProgress: (progress: number) => void;
142
- }, xstate1077.EventObject>;
143
- id: string | undefined;
144
- };
145
- initCamera: {
146
- src: "initCamera";
147
- logic: xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>;
148
- id: string | undefined;
149
- };
150
- requestPermission: {
151
- src: "requestPermission";
152
- logic: xstate1077.PromiseActorLogic<PermissionResult, {
153
- permissionResult?: PermissionResult;
154
- requestMotionPermission: boolean;
155
- }, xstate1077.EventObject>;
156
- id: string | undefined;
157
- };
158
- checkPermission: {
159
- src: "checkPermission";
160
- logic: xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>;
161
- id: string | undefined;
162
- };
163
- finalizeDocumentRequest: {
164
- src: "finalizeDocumentRequest";
165
- logic: xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
166
- processingType: string;
167
- }, xstate1077.EventObject>;
168
- id: string | undefined;
169
- };
170
- }>, xstate1077.Values<{
171
- setStream: {
172
- type: "setStream";
173
- params: xstate1077.NonReducibleUnknown;
174
- };
175
- setProgress: {
176
- type: "setProgress";
177
- params: xstate1077.NonReducibleUnknown;
178
- };
179
- clearError: {
180
- type: "clearError";
181
- params: xstate1077.NonReducibleUnknown;
182
- };
183
- stopStream: {
184
- type: "stopStream";
185
- params: xstate1077.NonReducibleUnknown;
186
- };
187
- setCapturedDocument: {
188
- type: "setCapturedDocument";
189
- params: xstate1077.NonReducibleUnknown;
190
- };
191
- setFileTooLargeError: {
192
- type: "setFileTooLargeError";
193
- params: xstate1077.NonReducibleUnknown;
194
- };
195
- setUploadError: {
196
- type: "setUploadError";
197
- params: xstate1077.NonReducibleUnknown;
198
- };
199
- setFinalizeError: {
200
- type: "setFinalizeError";
201
- params: xstate1077.NonReducibleUnknown;
202
- };
203
- decrementAttemptsRemaining: {
204
- type: "decrementAttemptsRemaining";
205
- params: xstate1077.NonReducibleUnknown;
206
- };
207
- setCaptureMethodFile: {
208
- type: "setCaptureMethodFile";
209
- params: xstate1077.NonReducibleUnknown;
210
- };
211
- setCaptureMethodCamera: {
212
- type: "setCaptureMethodCamera";
213
- params: xstate1077.NonReducibleUnknown;
214
- };
215
- setCaptureMethodGallery: {
216
- type: "setCaptureMethodGallery";
217
- params: xstate1077.NonReducibleUnknown;
218
- };
219
- clearCapturedDocument: {
220
- type: "clearCapturedDocument";
221
- params: xstate1077.NonReducibleUnknown;
222
- };
223
- resetPageNumber: {
224
- type: "resetPageNumber";
225
- params: xstate1077.NonReducibleUnknown;
226
- };
227
- clearCapturedDocumentGalleryRetake: {
228
- type: "clearCapturedDocumentGalleryRetake";
229
- params: xstate1077.NonReducibleUnknown;
230
- };
231
- setNextPageType: {
232
- type: "setNextPageType";
233
- params: xstate1077.NonReducibleUnknown;
234
- };
235
- clearForNextPage: {
236
- type: "clearForNextPage";
237
- params: xstate1077.NonReducibleUnknown;
238
- };
239
- resetProgress: {
240
- type: "resetProgress";
241
- params: xstate1077.NonReducibleUnknown;
242
- };
243
- }>, xstate1077.Values<{
244
- allowSkip: {
245
- type: "allowSkip";
246
- params: unknown;
247
- };
248
- fileSizeOk: {
249
- type: "fileSizeOk";
250
- params: unknown;
251
- };
252
- canRetry: {
253
- type: "canRetry";
254
- params: unknown;
255
- };
256
- attemptsExhausted: {
257
- type: "attemptsExhausted";
258
- params: unknown;
259
- };
260
- isCameraMode: {
261
- type: "isCameraMode";
262
- params: unknown;
263
- };
264
- isCameraPermissionGranted: {
265
- type: "isCameraPermissionGranted";
266
- params: unknown;
267
- };
268
- isCameraPermissionDenied: {
269
- type: "isCameraPermissionDenied";
270
- params: unknown;
271
- };
272
- isCaptureMethodCamera: {
273
- type: "isCaptureMethodCamera";
274
- params: unknown;
275
- };
276
- isCaptureMethodGallery: {
277
- type: "isCaptureMethodGallery";
278
- params: unknown;
279
- };
280
- isCaptureMethodFile: {
281
- type: "isCaptureMethodFile";
282
- params: unknown;
283
- };
284
- isNextPageOptional: {
285
- type: "isNextPageOptional";
286
- params: unknown;
287
- };
288
- isNextPageRequired: {
289
- type: "isNextPageRequired";
290
- params: unknown;
291
- };
292
- canFinalizeOptionalPages: {
293
- type: "canFinalizeOptionalPages";
294
- params: unknown;
295
- };
296
- fileSizeOkForGallery: {
297
- type: "fileSizeOkForGallery";
298
- params: unknown;
299
- };
300
- fileSizeOkForNonGallery: {
301
- type: "fileSizeOkForNonGallery";
302
- params: unknown;
303
- };
304
- }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "tutorial" | "preview" | "failure" | "nextPage" | "finalizing" | {
305
- permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
306
- }, string, DocumentCaptureInput, xstate1077.NonReducibleUnknown, xstate1077.EventObject, xstate1077.MetaObject, {
307
- readonly id: "documentCapture";
308
- readonly initial: "tutorial";
309
- readonly context: ({
310
- input
311
- }: {
312
- spawn: {
313
- <TSrc extends "uploadDocument" | "initCamera" | "requestPermission" | "checkPermission" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
314
- src: "uploadDocument";
315
- logic: xstate1077.PromiseActorLogic<DocumentUploadResponse, {
316
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
317
- processingType: string;
318
- onProgress: (progress: number) => void;
319
- }, xstate1077.EventObject>;
320
- id: string | undefined;
321
- } extends infer T ? T extends {
322
- src: "uploadDocument";
323
- logic: xstate1077.PromiseActorLogic<DocumentUploadResponse, {
324
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
325
- processingType: string;
326
- onProgress: (progress: number) => void;
327
- }, xstate1077.EventObject>;
328
- id: string | undefined;
329
- } ? T extends {
330
- src: TSrc;
331
- } ? xstate1077.ConditionalRequired<[options?: ({
332
- id?: T["id"] | undefined;
333
- systemId?: string;
334
- input?: xstate1077.InputFrom<T["logic"]> | undefined;
335
- syncSnapshot?: boolean;
336
- } & { [K in xstate1077.RequiredActorOptions<T>]: unknown }) | undefined], xstate1077.IsNotNever<xstate1077.RequiredActorOptions<T>>> : never : never : never) | ({
337
- src: "initCamera";
338
- logic: xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>;
339
- id: string | undefined;
340
- } extends infer T_1 ? T_1 extends {
341
- src: "initCamera";
342
- logic: xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>;
343
- id: string | undefined;
344
- } ? T_1 extends {
345
- src: TSrc;
346
- } ? xstate1077.ConditionalRequired<[options?: ({
347
- id?: T_1["id"] | undefined;
348
- systemId?: string;
349
- input?: xstate1077.InputFrom<T_1["logic"]> | undefined;
350
- syncSnapshot?: boolean;
351
- } & { [K_1 in xstate1077.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1077.IsNotNever<xstate1077.RequiredActorOptions<T_1>>> : never : never : never) | ({
352
- src: "requestPermission";
353
- logic: xstate1077.PromiseActorLogic<PermissionResult, {
354
- permissionResult?: PermissionResult;
355
- requestMotionPermission: boolean;
356
- }, xstate1077.EventObject>;
357
- id: string | undefined;
358
- } extends infer T_2 ? T_2 extends {
359
- src: "requestPermission";
360
- logic: xstate1077.PromiseActorLogic<PermissionResult, {
361
- permissionResult?: PermissionResult;
362
- requestMotionPermission: boolean;
363
- }, xstate1077.EventObject>;
364
- id: string | undefined;
365
- } ? T_2 extends {
366
- src: TSrc;
367
- } ? xstate1077.ConditionalRequired<[options?: ({
368
- id?: T_2["id"] | undefined;
369
- systemId?: string;
370
- input?: xstate1077.InputFrom<T_2["logic"]> | undefined;
371
- syncSnapshot?: boolean;
372
- } & { [K_2 in xstate1077.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate1077.IsNotNever<xstate1077.RequiredActorOptions<T_2>>> : never : never : never) | ({
373
- src: "checkPermission";
374
- logic: xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>;
375
- id: string | undefined;
376
- } extends infer T_3 ? T_3 extends {
377
- src: "checkPermission";
378
- logic: xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>;
379
- id: string | undefined;
380
- } ? T_3 extends {
381
- src: TSrc;
382
- } ? xstate1077.ConditionalRequired<[options?: ({
383
- id?: T_3["id"] | undefined;
384
- systemId?: string;
385
- input?: xstate1077.InputFrom<T_3["logic"]> | undefined;
386
- syncSnapshot?: boolean;
387
- } & { [K_3 in xstate1077.RequiredActorOptions<T_3>]: unknown }) | undefined], xstate1077.IsNotNever<xstate1077.RequiredActorOptions<T_3>>> : never : never : never) | ({
388
- src: "finalizeDocumentRequest";
389
- logic: xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
390
- processingType: string;
391
- }, xstate1077.EventObject>;
392
- id: string | undefined;
393
- } extends infer T_4 ? T_4 extends {
394
- src: "finalizeDocumentRequest";
395
- logic: xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
396
- processingType: string;
397
- }, xstate1077.EventObject>;
398
- id: string | undefined;
399
- } ? T_4 extends {
400
- src: TSrc;
401
- } ? xstate1077.ConditionalRequired<[options?: ({
402
- id?: T_4["id"] | undefined;
403
- systemId?: string;
404
- input?: xstate1077.InputFrom<T_4["logic"]> | undefined;
405
- syncSnapshot?: boolean;
406
- } & { [K_4 in xstate1077.RequiredActorOptions<T_4>]: unknown }) | undefined], xstate1077.IsNotNever<xstate1077.RequiredActorOptions<T_4>>> : never : never : never)): xstate1077.ActorRefFromLogic<xstate1077.GetConcreteByKey<xstate1077.Values<{
407
- uploadDocument: {
408
- src: "uploadDocument";
409
- logic: xstate1077.PromiseActorLogic<DocumentUploadResponse, {
410
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
411
- processingType: string;
412
- onProgress: (progress: number) => void;
413
- }, xstate1077.EventObject>;
414
- id: string | undefined;
415
- };
416
- initCamera: {
417
- src: "initCamera";
418
- logic: xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>;
419
- id: string | undefined;
420
- };
421
- requestPermission: {
422
- src: "requestPermission";
423
- logic: xstate1077.PromiseActorLogic<PermissionResult, {
424
- permissionResult?: PermissionResult;
425
- requestMotionPermission: boolean;
426
- }, xstate1077.EventObject>;
427
- id: string | undefined;
428
- };
429
- checkPermission: {
430
- src: "checkPermission";
431
- logic: xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>;
432
- id: string | undefined;
433
- };
434
- finalizeDocumentRequest: {
435
- src: "finalizeDocumentRequest";
436
- logic: xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
437
- processingType: string;
438
- }, xstate1077.EventObject>;
439
- id: string | undefined;
440
- };
441
- }>, "src", TSrc>["logic"]>;
442
- <TLogic extends xstate1077.AnyActorLogic>(src: TLogic, ...[options]: xstate1077.ConditionalRequired<[options?: ({
443
- id?: never;
444
- systemId?: string;
445
- input?: xstate1077.InputFrom<TLogic> | undefined;
446
- syncSnapshot?: boolean;
447
- } & { [K in xstate1077.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1077.IsNotNever<xstate1077.RequiredLogicInput<TLogic>>>): xstate1077.ActorRefFromLogic<TLogic>;
448
- };
449
- input: DocumentCaptureInput;
450
- self: xstate1077.ActorRef<xstate1077.MachineSnapshot<DocumentCaptureContext, {
451
- type: "CAPTURE";
452
- } | {
453
- type: "FILE_SELECTED";
454
- file: File;
455
- imageBase64: string;
456
- fileType: string;
457
- } | {
458
- type: "ACCEPT";
459
- } | {
460
- type: "RETAKE";
461
- } | {
462
- type: "UPLOAD_PROGRESS";
463
- progress: number;
464
- } | {
465
- type: "RETRY";
466
- } | {
467
- type: "CONTINUE";
468
- } | {
469
- type: "NEXT_PAGE_CAMERA";
470
- } | {
471
- type: "NEXT_PAGE_PHOTO_LIBRARY";
472
- } | {
473
- type: "ALL_PAGES_CAPTURED";
474
- } | {
475
- type: "SKIP";
476
- } | {
477
- type: "REQUEST_PERMISSION";
478
- } | {
479
- type: "GO_TO_LEARN_MORE";
480
- } | {
481
- type: "BACK";
482
- } | {
483
- type: "CLOSE";
484
- }, Record<string, xstate1077.AnyActorRef | undefined>, xstate1077.StateValue, string, unknown, any, any>, {
485
- type: "CAPTURE";
486
- } | {
487
- type: "FILE_SELECTED";
488
- file: File;
489
- imageBase64: string;
490
- fileType: string;
491
- } | {
492
- type: "ACCEPT";
493
- } | {
494
- type: "RETAKE";
495
- } | {
496
- type: "UPLOAD_PROGRESS";
497
- progress: number;
498
- } | {
499
- type: "RETRY";
500
- } | {
501
- type: "CONTINUE";
502
- } | {
503
- type: "NEXT_PAGE_CAMERA";
504
- } | {
505
- type: "NEXT_PAGE_PHOTO_LIBRARY";
506
- } | {
507
- type: "ALL_PAGES_CAPTURED";
508
- } | {
509
- type: "SKIP";
510
- } | {
511
- type: "REQUEST_PERMISSION";
512
- } | {
513
- type: "GO_TO_LEARN_MORE";
514
- } | {
515
- type: "BACK";
516
- } | {
517
- type: "CLOSE";
518
- }, xstate1077.AnyEventObject>;
519
- }) => {
520
- config: {
521
- processingType: DocumentType;
522
- captureMode: "file" | "camera";
523
- allowSkipDocumentCapture: boolean;
524
- captureAttempts: number;
525
- sendBase64: boolean;
526
- maxFileSize: number;
527
- title: string | undefined;
528
- text: string | undefined;
529
- step2Title: string | undefined;
530
- step2Text: string | undefined;
531
- };
532
- stream: undefined;
533
- permissionResult: undefined;
534
- capturedDocument: undefined;
535
- captureMethod: undefined;
536
- progress: number;
537
- error: undefined;
538
- attemptsRemaining: number;
539
- pageNumber: number;
540
- nextPageType: "none";
541
- };
542
- readonly states: {
543
- readonly tutorial: {
544
- readonly on: {
545
- readonly CAPTURE: readonly [{
546
- readonly target: "permissions";
547
- readonly guard: "isCameraMode";
548
- }, {
549
- readonly target: "capturing";
550
- }];
551
- readonly FILE_SELECTED: readonly [{
552
- readonly target: "preview";
553
- readonly guard: "fileSizeOk";
554
- readonly actions: readonly ["setCapturedDocument", "setCaptureMethodFile"];
555
- }, {
556
- readonly target: "tutorial";
557
- readonly actions: "setFileTooLargeError";
558
- }];
559
- readonly SKIP: {
560
- readonly target: "finished";
561
- readonly guard: "allowSkip";
562
- };
563
- readonly CLOSE: {
564
- readonly target: "closed";
565
- };
566
- };
567
- };
568
- readonly permissions: {
569
- readonly initial: "idle";
570
- readonly states: {
571
- readonly idle: {
572
- readonly invoke: {
573
- readonly id: "checkPermissionIdle";
574
- readonly src: "checkPermission";
575
- readonly onDone: readonly [{
576
- readonly target: "#documentCapture.initCamera";
577
- readonly guard: "isCameraPermissionGranted";
578
- readonly actions: xstate1077.ActionFunction<DocumentCaptureContext, xstate1077.DoneActorEvent<PermissionResult, string>, {
579
- type: "CAPTURE";
580
- } | {
581
- type: "FILE_SELECTED";
582
- file: File;
583
- imageBase64: string;
584
- fileType: string;
585
- } | {
586
- type: "ACCEPT";
587
- } | {
588
- type: "RETAKE";
589
- } | {
590
- type: "UPLOAD_PROGRESS";
591
- progress: number;
592
- } | {
593
- type: "RETRY";
594
- } | {
595
- type: "CONTINUE";
596
- } | {
597
- type: "NEXT_PAGE_CAMERA";
598
- } | {
599
- type: "NEXT_PAGE_PHOTO_LIBRARY";
600
- } | {
601
- type: "ALL_PAGES_CAPTURED";
602
- } | {
603
- type: "SKIP";
604
- } | {
605
- type: "REQUEST_PERMISSION";
606
- } | {
607
- type: "GO_TO_LEARN_MORE";
608
- } | {
609
- type: "BACK";
610
- } | {
611
- type: "CLOSE";
612
- }, undefined, xstate1077.Values<{
613
- uploadDocument: {
614
- src: "uploadDocument";
615
- logic: xstate1077.PromiseActorLogic<DocumentUploadResponse, {
616
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
617
- processingType: string;
618
- onProgress: (progress: number) => void;
619
- }, xstate1077.EventObject>;
620
- id: string | undefined;
621
- };
622
- initCamera: {
623
- src: "initCamera";
624
- logic: xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>;
625
- id: string | undefined;
626
- };
627
- requestPermission: {
628
- src: "requestPermission";
629
- logic: xstate1077.PromiseActorLogic<PermissionResult, {
630
- permissionResult?: PermissionResult;
631
- requestMotionPermission: boolean;
632
- }, xstate1077.EventObject>;
633
- id: string | undefined;
634
- };
635
- checkPermission: {
636
- src: "checkPermission";
637
- logic: xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>;
638
- id: string | undefined;
639
- };
640
- finalizeDocumentRequest: {
641
- src: "finalizeDocumentRequest";
642
- logic: xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
643
- processingType: string;
644
- }, xstate1077.EventObject>;
645
- id: string | undefined;
646
- };
647
- }>, never, never, never, never>;
648
- }, {
649
- readonly target: "denied";
650
- readonly guard: "isCameraPermissionDenied";
651
- readonly actions: xstate1077.ActionFunction<DocumentCaptureContext, xstate1077.DoneActorEvent<PermissionResult, string>, {
652
- type: "CAPTURE";
653
- } | {
654
- type: "FILE_SELECTED";
655
- file: File;
656
- imageBase64: string;
657
- fileType: string;
658
- } | {
659
- type: "ACCEPT";
660
- } | {
661
- type: "RETAKE";
662
- } | {
663
- type: "UPLOAD_PROGRESS";
664
- progress: number;
665
- } | {
666
- type: "RETRY";
667
- } | {
668
- type: "CONTINUE";
669
- } | {
670
- type: "NEXT_PAGE_CAMERA";
671
- } | {
672
- type: "NEXT_PAGE_PHOTO_LIBRARY";
673
- } | {
674
- type: "ALL_PAGES_CAPTURED";
675
- } | {
676
- type: "SKIP";
677
- } | {
678
- type: "REQUEST_PERMISSION";
679
- } | {
680
- type: "GO_TO_LEARN_MORE";
681
- } | {
682
- type: "BACK";
683
- } | {
684
- type: "CLOSE";
685
- }, undefined, xstate1077.Values<{
686
- uploadDocument: {
687
- src: "uploadDocument";
688
- logic: xstate1077.PromiseActorLogic<DocumentUploadResponse, {
689
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
690
- processingType: string;
691
- onProgress: (progress: number) => void;
692
- }, xstate1077.EventObject>;
693
- id: string | undefined;
694
- };
695
- initCamera: {
696
- src: "initCamera";
697
- logic: xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>;
698
- id: string | undefined;
699
- };
700
- requestPermission: {
701
- src: "requestPermission";
702
- logic: xstate1077.PromiseActorLogic<PermissionResult, {
703
- permissionResult?: PermissionResult;
704
- requestMotionPermission: boolean;
705
- }, xstate1077.EventObject>;
706
- id: string | undefined;
707
- };
708
- checkPermission: {
709
- src: "checkPermission";
710
- logic: xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>;
711
- id: string | undefined;
712
- };
713
- finalizeDocumentRequest: {
714
- src: "finalizeDocumentRequest";
715
- logic: xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
716
- processingType: string;
717
- }, xstate1077.EventObject>;
718
- id: string | undefined;
719
- };
720
- }>, never, never, never, never>;
721
- }, {
722
- readonly target: "waitingForUser";
723
- readonly actions: xstate1077.ActionFunction<DocumentCaptureContext, xstate1077.DoneActorEvent<PermissionResult, string>, {
724
- type: "CAPTURE";
725
- } | {
726
- type: "FILE_SELECTED";
727
- file: File;
728
- imageBase64: string;
729
- fileType: string;
730
- } | {
731
- type: "ACCEPT";
732
- } | {
733
- type: "RETAKE";
734
- } | {
735
- type: "UPLOAD_PROGRESS";
736
- progress: number;
737
- } | {
738
- type: "RETRY";
739
- } | {
740
- type: "CONTINUE";
741
- } | {
742
- type: "NEXT_PAGE_CAMERA";
743
- } | {
744
- type: "NEXT_PAGE_PHOTO_LIBRARY";
745
- } | {
746
- type: "ALL_PAGES_CAPTURED";
747
- } | {
748
- type: "SKIP";
749
- } | {
750
- type: "REQUEST_PERMISSION";
751
- } | {
752
- type: "GO_TO_LEARN_MORE";
753
- } | {
754
- type: "BACK";
755
- } | {
756
- type: "CLOSE";
757
- }, undefined, xstate1077.Values<{
758
- uploadDocument: {
759
- src: "uploadDocument";
760
- logic: xstate1077.PromiseActorLogic<DocumentUploadResponse, {
761
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
762
- processingType: string;
763
- onProgress: (progress: number) => void;
764
- }, xstate1077.EventObject>;
765
- id: string | undefined;
766
- };
767
- initCamera: {
768
- src: "initCamera";
769
- logic: xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>;
770
- id: string | undefined;
771
- };
772
- requestPermission: {
773
- src: "requestPermission";
774
- logic: xstate1077.PromiseActorLogic<PermissionResult, {
775
- permissionResult?: PermissionResult;
776
- requestMotionPermission: boolean;
777
- }, xstate1077.EventObject>;
778
- id: string | undefined;
779
- };
780
- checkPermission: {
781
- src: "checkPermission";
782
- logic: xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>;
783
- id: string | undefined;
784
- };
785
- finalizeDocumentRequest: {
786
- src: "finalizeDocumentRequest";
787
- logic: xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
788
- processingType: string;
789
- }, xstate1077.EventObject>;
790
- id: string | undefined;
791
- };
792
- }>, never, never, never, never>;
793
- }];
794
- readonly onError: {
795
- readonly target: "waitingForUser";
796
- readonly actions: xstate1077.ActionFunction<DocumentCaptureContext, xstate1077.ErrorActorEvent<unknown, string>, {
797
- type: "CAPTURE";
798
- } | {
799
- type: "FILE_SELECTED";
800
- file: File;
801
- imageBase64: string;
802
- fileType: string;
803
- } | {
804
- type: "ACCEPT";
805
- } | {
806
- type: "RETAKE";
807
- } | {
808
- type: "UPLOAD_PROGRESS";
809
- progress: number;
810
- } | {
811
- type: "RETRY";
812
- } | {
813
- type: "CONTINUE";
814
- } | {
815
- type: "NEXT_PAGE_CAMERA";
816
- } | {
817
- type: "NEXT_PAGE_PHOTO_LIBRARY";
818
- } | {
819
- type: "ALL_PAGES_CAPTURED";
820
- } | {
821
- type: "SKIP";
822
- } | {
823
- type: "REQUEST_PERMISSION";
824
- } | {
825
- type: "GO_TO_LEARN_MORE";
826
- } | {
827
- type: "BACK";
828
- } | {
829
- type: "CLOSE";
830
- }, undefined, xstate1077.Values<{
831
- uploadDocument: {
832
- src: "uploadDocument";
833
- logic: xstate1077.PromiseActorLogic<DocumentUploadResponse, {
834
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
835
- processingType: string;
836
- onProgress: (progress: number) => void;
837
- }, xstate1077.EventObject>;
838
- id: string | undefined;
839
- };
840
- initCamera: {
841
- src: "initCamera";
842
- logic: xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>;
843
- id: string | undefined;
844
- };
845
- requestPermission: {
846
- src: "requestPermission";
847
- logic: xstate1077.PromiseActorLogic<PermissionResult, {
848
- permissionResult?: PermissionResult;
849
- requestMotionPermission: boolean;
850
- }, xstate1077.EventObject>;
851
- id: string | undefined;
852
- };
853
- checkPermission: {
854
- src: "checkPermission";
855
- logic: xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>;
856
- id: string | undefined;
857
- };
858
- finalizeDocumentRequest: {
859
- src: "finalizeDocumentRequest";
860
- logic: xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
861
- processingType: string;
862
- }, xstate1077.EventObject>;
863
- id: string | undefined;
864
- };
865
- }>, never, never, never, never>;
866
- };
867
- };
868
- readonly on: {
869
- readonly REQUEST_PERMISSION: "requesting";
870
- readonly GO_TO_LEARN_MORE: "learnMore";
871
- };
872
- };
873
- readonly waitingForUser: {
874
- readonly on: {
875
- readonly REQUEST_PERMISSION: "requesting";
876
- readonly GO_TO_LEARN_MORE: "learnMore";
877
- };
878
- };
879
- readonly learnMore: {
880
- readonly on: {
881
- readonly BACK: "idle";
882
- readonly REQUEST_PERMISSION: "requesting";
883
- };
884
- };
885
- readonly requesting: {
886
- readonly invoke: {
887
- readonly id: "requestPermission";
888
- readonly src: "requestPermission";
889
- readonly input: ({
890
- context
891
- }: {
892
- context: DocumentCaptureContext;
893
- event: {
894
- type: "CAPTURE";
895
- } | {
896
- type: "FILE_SELECTED";
897
- file: File;
898
- imageBase64: string;
899
- fileType: string;
900
- } | {
901
- type: "ACCEPT";
902
- } | {
903
- type: "RETAKE";
904
- } | {
905
- type: "UPLOAD_PROGRESS";
906
- progress: number;
907
- } | {
908
- type: "RETRY";
909
- } | {
910
- type: "CONTINUE";
911
- } | {
912
- type: "NEXT_PAGE_CAMERA";
913
- } | {
914
- type: "NEXT_PAGE_PHOTO_LIBRARY";
915
- } | {
916
- type: "ALL_PAGES_CAPTURED";
917
- } | {
918
- type: "SKIP";
919
- } | {
920
- type: "REQUEST_PERMISSION";
921
- } | {
922
- type: "GO_TO_LEARN_MORE";
923
- } | {
924
- type: "BACK";
925
- } | {
926
- type: "CLOSE";
927
- };
928
- self: xstate1077.ActorRef<xstate1077.MachineSnapshot<DocumentCaptureContext, {
929
- type: "CAPTURE";
930
- } | {
931
- type: "FILE_SELECTED";
932
- file: File;
933
- imageBase64: string;
934
- fileType: string;
935
- } | {
936
- type: "ACCEPT";
937
- } | {
938
- type: "RETAKE";
939
- } | {
940
- type: "UPLOAD_PROGRESS";
941
- progress: number;
942
- } | {
943
- type: "RETRY";
944
- } | {
945
- type: "CONTINUE";
946
- } | {
947
- type: "NEXT_PAGE_CAMERA";
948
- } | {
949
- type: "NEXT_PAGE_PHOTO_LIBRARY";
950
- } | {
951
- type: "ALL_PAGES_CAPTURED";
952
- } | {
953
- type: "SKIP";
954
- } | {
955
- type: "REQUEST_PERMISSION";
956
- } | {
957
- type: "GO_TO_LEARN_MORE";
958
- } | {
959
- type: "BACK";
960
- } | {
961
- type: "CLOSE";
962
- }, Record<string, xstate1077.AnyActorRef>, xstate1077.StateValue, string, unknown, any, any>, {
963
- type: "CAPTURE";
964
- } | {
965
- type: "FILE_SELECTED";
966
- file: File;
967
- imageBase64: string;
968
- fileType: string;
969
- } | {
970
- type: "ACCEPT";
971
- } | {
972
- type: "RETAKE";
973
- } | {
974
- type: "UPLOAD_PROGRESS";
975
- progress: number;
976
- } | {
977
- type: "RETRY";
978
- } | {
979
- type: "CONTINUE";
980
- } | {
981
- type: "NEXT_PAGE_CAMERA";
982
- } | {
983
- type: "NEXT_PAGE_PHOTO_LIBRARY";
984
- } | {
985
- type: "ALL_PAGES_CAPTURED";
986
- } | {
987
- type: "SKIP";
988
- } | {
989
- type: "REQUEST_PERMISSION";
990
- } | {
991
- type: "GO_TO_LEARN_MORE";
992
- } | {
993
- type: "BACK";
994
- } | {
995
- type: "CLOSE";
996
- }, xstate1077.AnyEventObject>;
997
- }) => {
998
- permissionResult: PermissionResult | undefined;
999
- requestMotionPermission: false;
1000
- };
1001
- readonly onDone: readonly [{
1002
- readonly target: "#documentCapture.initCamera";
1003
- readonly guard: "isCameraPermissionGranted";
1004
- readonly actions: xstate1077.ActionFunction<DocumentCaptureContext, xstate1077.DoneActorEvent<PermissionResult, string>, {
1005
- type: "CAPTURE";
1006
- } | {
1007
- type: "FILE_SELECTED";
1008
- file: File;
1009
- imageBase64: string;
1010
- fileType: string;
1011
- } | {
1012
- type: "ACCEPT";
1013
- } | {
1014
- type: "RETAKE";
1015
- } | {
1016
- type: "UPLOAD_PROGRESS";
1017
- progress: number;
1018
- } | {
1019
- type: "RETRY";
1020
- } | {
1021
- type: "CONTINUE";
1022
- } | {
1023
- type: "NEXT_PAGE_CAMERA";
1024
- } | {
1025
- type: "NEXT_PAGE_PHOTO_LIBRARY";
1026
- } | {
1027
- type: "ALL_PAGES_CAPTURED";
1028
- } | {
1029
- type: "SKIP";
1030
- } | {
1031
- type: "REQUEST_PERMISSION";
1032
- } | {
1033
- type: "GO_TO_LEARN_MORE";
1034
- } | {
1035
- type: "BACK";
1036
- } | {
1037
- type: "CLOSE";
1038
- }, undefined, xstate1077.Values<{
1039
- uploadDocument: {
1040
- src: "uploadDocument";
1041
- logic: xstate1077.PromiseActorLogic<DocumentUploadResponse, {
1042
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
1043
- processingType: string;
1044
- onProgress: (progress: number) => void;
1045
- }, xstate1077.EventObject>;
1046
- id: string | undefined;
1047
- };
1048
- initCamera: {
1049
- src: "initCamera";
1050
- logic: xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>;
1051
- id: string | undefined;
1052
- };
1053
- requestPermission: {
1054
- src: "requestPermission";
1055
- logic: xstate1077.PromiseActorLogic<PermissionResult, {
1056
- permissionResult?: PermissionResult;
1057
- requestMotionPermission: boolean;
1058
- }, xstate1077.EventObject>;
1059
- id: string | undefined;
1060
- };
1061
- checkPermission: {
1062
- src: "checkPermission";
1063
- logic: xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>;
1064
- id: string | undefined;
1065
- };
1066
- finalizeDocumentRequest: {
1067
- src: "finalizeDocumentRequest";
1068
- logic: xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
1069
- processingType: string;
1070
- }, xstate1077.EventObject>;
1071
- id: string | undefined;
1072
- };
1073
- }>, never, never, never, never>;
1074
- }, {
1075
- readonly target: "denied";
1076
- readonly guard: "isCameraPermissionDenied";
1077
- readonly actions: xstate1077.ActionFunction<DocumentCaptureContext, xstate1077.DoneActorEvent<PermissionResult, string>, {
1078
- type: "CAPTURE";
1079
- } | {
1080
- type: "FILE_SELECTED";
1081
- file: File;
1082
- imageBase64: string;
1083
- fileType: string;
1084
- } | {
1085
- type: "ACCEPT";
1086
- } | {
1087
- type: "RETAKE";
1088
- } | {
1089
- type: "UPLOAD_PROGRESS";
1090
- progress: number;
1091
- } | {
1092
- type: "RETRY";
1093
- } | {
1094
- type: "CONTINUE";
1095
- } | {
1096
- type: "NEXT_PAGE_CAMERA";
1097
- } | {
1098
- type: "NEXT_PAGE_PHOTO_LIBRARY";
1099
- } | {
1100
- type: "ALL_PAGES_CAPTURED";
1101
- } | {
1102
- type: "SKIP";
1103
- } | {
1104
- type: "REQUEST_PERMISSION";
1105
- } | {
1106
- type: "GO_TO_LEARN_MORE";
1107
- } | {
1108
- type: "BACK";
1109
- } | {
1110
- type: "CLOSE";
1111
- }, undefined, xstate1077.Values<{
1112
- uploadDocument: {
1113
- src: "uploadDocument";
1114
- logic: xstate1077.PromiseActorLogic<DocumentUploadResponse, {
1115
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
1116
- processingType: string;
1117
- onProgress: (progress: number) => void;
1118
- }, xstate1077.EventObject>;
1119
- id: string | undefined;
1120
- };
1121
- initCamera: {
1122
- src: "initCamera";
1123
- logic: xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>;
1124
- id: string | undefined;
1125
- };
1126
- requestPermission: {
1127
- src: "requestPermission";
1128
- logic: xstate1077.PromiseActorLogic<PermissionResult, {
1129
- permissionResult?: PermissionResult;
1130
- requestMotionPermission: boolean;
1131
- }, xstate1077.EventObject>;
1132
- id: string | undefined;
1133
- };
1134
- checkPermission: {
1135
- src: "checkPermission";
1136
- logic: xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>;
1137
- id: string | undefined;
1138
- };
1139
- finalizeDocumentRequest: {
1140
- src: "finalizeDocumentRequest";
1141
- logic: xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
1142
- processingType: string;
1143
- }, xstate1077.EventObject>;
1144
- id: string | undefined;
1145
- };
1146
- }>, never, never, never, never>;
1147
- }, {
1148
- readonly target: "waitingForUser";
1149
- readonly actions: xstate1077.ActionFunction<DocumentCaptureContext, xstate1077.DoneActorEvent<PermissionResult, string>, {
1150
- type: "CAPTURE";
1151
- } | {
1152
- type: "FILE_SELECTED";
1153
- file: File;
1154
- imageBase64: string;
1155
- fileType: string;
1156
- } | {
1157
- type: "ACCEPT";
1158
- } | {
1159
- type: "RETAKE";
1160
- } | {
1161
- type: "UPLOAD_PROGRESS";
1162
- progress: number;
1163
- } | {
1164
- type: "RETRY";
1165
- } | {
1166
- type: "CONTINUE";
1167
- } | {
1168
- type: "NEXT_PAGE_CAMERA";
1169
- } | {
1170
- type: "NEXT_PAGE_PHOTO_LIBRARY";
1171
- } | {
1172
- type: "ALL_PAGES_CAPTURED";
1173
- } | {
1174
- type: "SKIP";
1175
- } | {
1176
- type: "REQUEST_PERMISSION";
1177
- } | {
1178
- type: "GO_TO_LEARN_MORE";
1179
- } | {
1180
- type: "BACK";
1181
- } | {
1182
- type: "CLOSE";
1183
- }, undefined, xstate1077.Values<{
1184
- uploadDocument: {
1185
- src: "uploadDocument";
1186
- logic: xstate1077.PromiseActorLogic<DocumentUploadResponse, {
1187
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
1188
- processingType: string;
1189
- onProgress: (progress: number) => void;
1190
- }, xstate1077.EventObject>;
1191
- id: string | undefined;
1192
- };
1193
- initCamera: {
1194
- src: "initCamera";
1195
- logic: xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>;
1196
- id: string | undefined;
1197
- };
1198
- requestPermission: {
1199
- src: "requestPermission";
1200
- logic: xstate1077.PromiseActorLogic<PermissionResult, {
1201
- permissionResult?: PermissionResult;
1202
- requestMotionPermission: boolean;
1203
- }, xstate1077.EventObject>;
1204
- id: string | undefined;
1205
- };
1206
- checkPermission: {
1207
- src: "checkPermission";
1208
- logic: xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>;
1209
- id: string | undefined;
1210
- };
1211
- finalizeDocumentRequest: {
1212
- src: "finalizeDocumentRequest";
1213
- logic: xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
1214
- processingType: string;
1215
- }, xstate1077.EventObject>;
1216
- id: string | undefined;
1217
- };
1218
- }>, never, never, never, never>;
1219
- }];
1220
- readonly onError: {
1221
- readonly target: "denied";
1222
- };
1223
- };
1224
- };
1225
- readonly denied: {
1226
- readonly entry: xstate1077.ActionFunction<DocumentCaptureContext, {
1227
- type: "CAPTURE";
1228
- } | {
1229
- type: "FILE_SELECTED";
1230
- file: File;
1231
- imageBase64: string;
1232
- fileType: string;
1233
- } | {
1234
- type: "ACCEPT";
1235
- } | {
1236
- type: "RETAKE";
1237
- } | {
1238
- type: "UPLOAD_PROGRESS";
1239
- progress: number;
1240
- } | {
1241
- type: "RETRY";
1242
- } | {
1243
- type: "CONTINUE";
1244
- } | {
1245
- type: "NEXT_PAGE_CAMERA";
1246
- } | {
1247
- type: "NEXT_PAGE_PHOTO_LIBRARY";
1248
- } | {
1249
- type: "ALL_PAGES_CAPTURED";
1250
- } | {
1251
- type: "SKIP";
1252
- } | {
1253
- type: "REQUEST_PERMISSION";
1254
- } | {
1255
- type: "GO_TO_LEARN_MORE";
1256
- } | {
1257
- type: "BACK";
1258
- } | {
1259
- type: "CLOSE";
1260
- }, {
1261
- type: "CAPTURE";
1262
- } | {
1263
- type: "FILE_SELECTED";
1264
- file: File;
1265
- imageBase64: string;
1266
- fileType: string;
1267
- } | {
1268
- type: "ACCEPT";
1269
- } | {
1270
- type: "RETAKE";
1271
- } | {
1272
- type: "UPLOAD_PROGRESS";
1273
- progress: number;
1274
- } | {
1275
- type: "RETRY";
1276
- } | {
1277
- type: "CONTINUE";
1278
- } | {
1279
- type: "NEXT_PAGE_CAMERA";
1280
- } | {
1281
- type: "NEXT_PAGE_PHOTO_LIBRARY";
1282
- } | {
1283
- type: "ALL_PAGES_CAPTURED";
1284
- } | {
1285
- type: "SKIP";
1286
- } | {
1287
- type: "REQUEST_PERMISSION";
1288
- } | {
1289
- type: "GO_TO_LEARN_MORE";
1290
- } | {
1291
- type: "BACK";
1292
- } | {
1293
- type: "CLOSE";
1294
- }, undefined, xstate1077.Values<{
1295
- uploadDocument: {
1296
- src: "uploadDocument";
1297
- logic: xstate1077.PromiseActorLogic<DocumentUploadResponse, {
1298
- capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
1299
- processingType: string;
1300
- onProgress: (progress: number) => void;
1301
- }, xstate1077.EventObject>;
1302
- id: string | undefined;
1303
- };
1304
- initCamera: {
1305
- src: "initCamera";
1306
- logic: xstate1077.PromiseActorLogic<MediaStream, void, xstate1077.EventObject>;
1307
- id: string | undefined;
1308
- };
1309
- requestPermission: {
1310
- src: "requestPermission";
1311
- logic: xstate1077.PromiseActorLogic<PermissionResult, {
1312
- permissionResult?: PermissionResult;
1313
- requestMotionPermission: boolean;
1314
- }, xstate1077.EventObject>;
1315
- id: string | undefined;
1316
- };
1317
- checkPermission: {
1318
- src: "checkPermission";
1319
- logic: xstate1077.PromiseActorLogic<PermissionResult, void, xstate1077.EventObject>;
1320
- id: string | undefined;
1321
- };
1322
- finalizeDocumentRequest: {
1323
- src: "finalizeDocumentRequest";
1324
- logic: xstate1077.PromiseActorLogic<FinalizeDocumentResponse, {
1325
- processingType: string;
1326
- }, xstate1077.EventObject>;
1327
- id: string | undefined;
1328
- };
1329
- }>, never, never, never, never>;
1330
- };
1331
- };
1332
- readonly on: {
1333
- readonly CLOSE: {
1334
- readonly target: "closed";
1335
- };
1336
- };
1337
- };
1338
- readonly initCamera: {
1339
- readonly invoke: {
1340
- readonly id: "initCamera";
1341
- readonly src: "initCamera";
1342
- readonly input: undefined;
1343
- readonly onDone: {
1344
- readonly target: "capturing";
1345
- readonly actions: "setStream";
1346
- };
1347
- readonly onError: {
1348
- readonly target: "failure";
1349
- readonly actions: "setUploadError";
1350
- };
1351
- };
1352
- readonly on: {
1353
- readonly CLOSE: {
1354
- readonly target: "closed";
1355
- };
1356
- };
1357
- };
1358
- readonly capturing: {
1359
- readonly on: {
1360
- readonly FILE_SELECTED: readonly [{
1361
- readonly target: "preview";
1362
- readonly guard: "fileSizeOkForGallery";
1363
- readonly actions: "setCapturedDocument";
1364
- }, {
1365
- readonly target: "preview";
1366
- readonly guard: "fileSizeOkForNonGallery";
1367
- readonly actions: readonly ["setCapturedDocument", "setCaptureMethodCamera"];
1368
- }, {
1369
- readonly target: "capturing";
1370
- readonly actions: "setFileTooLargeError";
1371
- }];
1372
- readonly CLOSE: {
1373
- readonly target: "closed";
1374
- readonly actions: "stopStream";
1375
- };
1376
- };
1377
- };
1378
- readonly preview: {
1379
- readonly on: {
1380
- readonly ACCEPT: {
1381
- readonly target: "uploading";
1382
- readonly actions: "resetProgress";
1383
- };
1384
- readonly RETAKE: readonly [{
1385
- readonly target: "tutorial";
1386
- readonly guard: "isCaptureMethodFile";
1387
- readonly actions: "clearCapturedDocument";
1388
- }, {
1389
- readonly target: "capturing";
1390
- readonly guard: "isCaptureMethodGallery";
1391
- readonly actions: "clearCapturedDocumentGalleryRetake";
1392
- }, {
1393
- readonly target: "capturing";
1394
- readonly actions: "clearCapturedDocument";
1395
- }];
1396
- readonly CLOSE: {
1397
- readonly target: "closed";
1398
- readonly actions: "stopStream";
1399
- };
1400
- };
1401
- };
1402
- readonly uploading: {
1403
- readonly invoke: {
1404
- readonly id: "uploadDocument";
1405
- readonly src: "uploadDocument";
1406
- readonly input: ({
1407
- context,
1408
- self
1409
- }: {
1410
- context: DocumentCaptureContext;
1411
- event: {
1412
- type: "CAPTURE";
1413
- } | {
1414
- type: "FILE_SELECTED";
1415
- file: File;
1416
- imageBase64: string;
1417
- fileType: string;
1418
- } | {
1419
- type: "ACCEPT";
1420
- } | {
1421
- type: "RETAKE";
1422
- } | {
1423
- type: "UPLOAD_PROGRESS";
1424
- progress: number;
1425
- } | {
1426
- type: "RETRY";
1427
- } | {
1428
- type: "CONTINUE";
1429
- } | {
1430
- type: "NEXT_PAGE_CAMERA";
1431
- } | {
1432
- type: "NEXT_PAGE_PHOTO_LIBRARY";
1433
- } | {
1434
- type: "ALL_PAGES_CAPTURED";
1435
- } | {
1436
- type: "SKIP";
1437
- } | {
1438
- type: "REQUEST_PERMISSION";
1439
- } | {
1440
- type: "GO_TO_LEARN_MORE";
1441
- } | {
1442
- type: "BACK";
1443
- } | {
1444
- type: "CLOSE";
1445
- };
1446
- self: xstate1077.ActorRef<xstate1077.MachineSnapshot<DocumentCaptureContext, {
1447
- type: "CAPTURE";
1448
- } | {
1449
- type: "FILE_SELECTED";
1450
- file: File;
1451
- imageBase64: string;
1452
- fileType: string;
1453
- } | {
1454
- type: "ACCEPT";
1455
- } | {
1456
- type: "RETAKE";
1457
- } | {
1458
- type: "UPLOAD_PROGRESS";
1459
- progress: number;
1460
- } | {
1461
- type: "RETRY";
1462
- } | {
1463
- type: "CONTINUE";
1464
- } | {
1465
- type: "NEXT_PAGE_CAMERA";
1466
- } | {
1467
- type: "NEXT_PAGE_PHOTO_LIBRARY";
1468
- } | {
1469
- type: "ALL_PAGES_CAPTURED";
1470
- } | {
1471
- type: "SKIP";
1472
- } | {
1473
- type: "REQUEST_PERMISSION";
1474
- } | {
1475
- type: "GO_TO_LEARN_MORE";
1476
- } | {
1477
- type: "BACK";
1478
- } | {
1479
- type: "CLOSE";
1480
- }, Record<string, xstate1077.AnyActorRef>, xstate1077.StateValue, string, unknown, any, any>, {
1481
- type: "CAPTURE";
1482
- } | {
1483
- type: "FILE_SELECTED";
1484
- file: File;
1485
- imageBase64: string;
1486
- fileType: string;
1487
- } | {
1488
- type: "ACCEPT";
1489
- } | {
1490
- type: "RETAKE";
1491
- } | {
1492
- type: "UPLOAD_PROGRESS";
1493
- progress: number;
1494
- } | {
1495
- type: "RETRY";
1496
- } | {
1497
- type: "CONTINUE";
1498
- } | {
1499
- type: "NEXT_PAGE_CAMERA";
1500
- } | {
1501
- type: "NEXT_PAGE_PHOTO_LIBRARY";
1502
- } | {
1503
- type: "ALL_PAGES_CAPTURED";
1504
- } | {
1505
- type: "SKIP";
1506
- } | {
1507
- type: "REQUEST_PERMISSION";
1508
- } | {
1509
- type: "GO_TO_LEARN_MORE";
1510
- } | {
1511
- type: "BACK";
1512
- } | {
1513
- type: "CLOSE";
1514
- }, xstate1077.AnyEventObject>;
1515
- }) => {
1516
- capturedDocument: CapturedDocument;
1517
- processingType: DocumentType;
1518
- onProgress: (progress: number) => void;
1519
- };
1520
- readonly onDone: {
1521
- readonly target: "success";
1522
- readonly actions: readonly ["setNextPageType", "stopStream"];
1523
- };
1524
- readonly onError: {
1525
- readonly target: "failure";
1526
- readonly actions: readonly ["setUploadError", "decrementAttemptsRemaining", "stopStream"];
1527
- };
1528
- };
1529
- readonly on: {
1530
- readonly UPLOAD_PROGRESS: {
1531
- readonly actions: "setProgress";
1532
- };
1533
- };
1534
- };
1535
- readonly success: {
1536
- readonly on: {
1537
- readonly CONTINUE: readonly [{
1538
- readonly target: "nextPage";
1539
- readonly guard: "isNextPageOptional";
1540
- }, {
1541
- readonly target: "nextPage";
1542
- readonly guard: "isNextPageRequired";
1543
- }, {
1544
- readonly target: "finished";
1545
- }];
1546
- readonly CLOSE: {
1547
- readonly target: "closed";
1548
- };
1549
- };
1550
- };
1551
- readonly nextPage: {
1552
- readonly on: {
1553
- readonly NEXT_PAGE_CAMERA: {
1554
- readonly target: "permissions";
1555
- readonly actions: readonly ["clearForNextPage", "setCaptureMethodCamera"];
1556
- };
1557
- readonly NEXT_PAGE_PHOTO_LIBRARY: {
1558
- readonly target: "capturing";
1559
- readonly actions: readonly ["clearForNextPage", "setCaptureMethodGallery"];
1560
- };
1561
- readonly ALL_PAGES_CAPTURED: readonly [{
1562
- readonly target: "finalizing";
1563
- readonly guard: "canFinalizeOptionalPages";
1564
- }, {
1565
- readonly target: "finished";
1566
- }];
1567
- readonly CLOSE: {
1568
- readonly target: "closed";
1569
- };
1570
- };
1571
- };
1572
- readonly finalizing: {
1573
- readonly invoke: {
1574
- readonly id: "finalizeDocument";
1575
- readonly src: "finalizeDocumentRequest";
1576
- readonly input: ({
1577
- context
1578
- }: {
1579
- context: DocumentCaptureContext;
1580
- event: {
1581
- type: "CAPTURE";
1582
- } | {
1583
- type: "FILE_SELECTED";
1584
- file: File;
1585
- imageBase64: string;
1586
- fileType: string;
1587
- } | {
1588
- type: "ACCEPT";
1589
- } | {
1590
- type: "RETAKE";
1591
- } | {
1592
- type: "UPLOAD_PROGRESS";
1593
- progress: number;
1594
- } | {
1595
- type: "RETRY";
1596
- } | {
1597
- type: "CONTINUE";
1598
- } | {
1599
- type: "NEXT_PAGE_CAMERA";
1600
- } | {
1601
- type: "NEXT_PAGE_PHOTO_LIBRARY";
1602
- } | {
1603
- type: "ALL_PAGES_CAPTURED";
1604
- } | {
1605
- type: "SKIP";
1606
- } | {
1607
- type: "REQUEST_PERMISSION";
1608
- } | {
1609
- type: "GO_TO_LEARN_MORE";
1610
- } | {
1611
- type: "BACK";
1612
- } | {
1613
- type: "CLOSE";
1614
- };
1615
- self: xstate1077.ActorRef<xstate1077.MachineSnapshot<DocumentCaptureContext, {
1616
- type: "CAPTURE";
1617
- } | {
1618
- type: "FILE_SELECTED";
1619
- file: File;
1620
- imageBase64: string;
1621
- fileType: string;
1622
- } | {
1623
- type: "ACCEPT";
1624
- } | {
1625
- type: "RETAKE";
1626
- } | {
1627
- type: "UPLOAD_PROGRESS";
1628
- progress: number;
1629
- } | {
1630
- type: "RETRY";
1631
- } | {
1632
- type: "CONTINUE";
1633
- } | {
1634
- type: "NEXT_PAGE_CAMERA";
1635
- } | {
1636
- type: "NEXT_PAGE_PHOTO_LIBRARY";
1637
- } | {
1638
- type: "ALL_PAGES_CAPTURED";
1639
- } | {
1640
- type: "SKIP";
1641
- } | {
1642
- type: "REQUEST_PERMISSION";
1643
- } | {
1644
- type: "GO_TO_LEARN_MORE";
1645
- } | {
1646
- type: "BACK";
1647
- } | {
1648
- type: "CLOSE";
1649
- }, Record<string, xstate1077.AnyActorRef>, xstate1077.StateValue, string, unknown, any, any>, {
1650
- type: "CAPTURE";
1651
- } | {
1652
- type: "FILE_SELECTED";
1653
- file: File;
1654
- imageBase64: string;
1655
- fileType: string;
1656
- } | {
1657
- type: "ACCEPT";
1658
- } | {
1659
- type: "RETAKE";
1660
- } | {
1661
- type: "UPLOAD_PROGRESS";
1662
- progress: number;
1663
- } | {
1664
- type: "RETRY";
1665
- } | {
1666
- type: "CONTINUE";
1667
- } | {
1668
- type: "NEXT_PAGE_CAMERA";
1669
- } | {
1670
- type: "NEXT_PAGE_PHOTO_LIBRARY";
1671
- } | {
1672
- type: "ALL_PAGES_CAPTURED";
1673
- } | {
1674
- type: "SKIP";
1675
- } | {
1676
- type: "REQUEST_PERMISSION";
1677
- } | {
1678
- type: "GO_TO_LEARN_MORE";
1679
- } | {
1680
- type: "BACK";
1681
- } | {
1682
- type: "CLOSE";
1683
- }, xstate1077.AnyEventObject>;
1684
- }) => {
1685
- processingType: DocumentType;
1686
- };
1687
- readonly onDone: {
1688
- readonly target: "finished";
1689
- };
1690
- readonly onError: {
1691
- readonly target: "failure";
1692
- readonly actions: readonly ["setFinalizeError", "decrementAttemptsRemaining"];
1693
- };
1694
- };
1695
- };
1696
- readonly failure: {
1697
- readonly on: {
1698
- readonly RETRY: {
1699
- readonly target: "tutorial";
1700
- readonly guard: "canRetry";
1701
- readonly actions: readonly ["clearError", "clearCapturedDocument", "resetPageNumber"];
1702
- };
1703
- readonly CLOSE: {
1704
- readonly target: "closed";
1705
- };
1706
- };
1707
- readonly after: {
1708
- readonly 3000: {
1709
- readonly target: "finished";
1710
- readonly guard: "attemptsExhausted";
1711
- };
1712
- };
1713
- };
1714
- readonly finished: {
1715
- readonly type: "final";
1716
- };
1717
- readonly closed: {
1718
- readonly type: "final";
1719
- };
1720
- };
1721
- }>;
1722
- //#endregion
1723
- //#region src/modules/document-capture/documentCaptureActor.d.ts
1724
- type CreateDocumentCaptureActorOptions = {
1725
- config: DocumentCaptureConfig;
1726
- };
1727
- //#endregion
1728
- //#region src/modules/document-capture/documentCaptureManager.d.ts
1729
- type DocumentCaptureTutorialState = {
1730
- status: 'tutorial';
1731
- title: string | undefined;
1732
- text: string | undefined;
1733
- allowSkipDocumentCapture: boolean;
1734
- captureMode: 'file' | 'camera';
1735
- error: DocumentCaptureErrorCode | undefined;
1736
- pageNumber: number;
1737
- };
1738
- type DocumentCapturePermissionsState = {
1739
- status: 'permissions';
1740
- permissionStatus: PermissionStatus;
1741
- };
1742
- type DocumentCaptureInitializingCameraState = {
1743
- status: 'initializingCamera';
1744
- };
1745
- type DocumentCaptureCapturingState = {
1746
- status: 'capturing';
1747
- stream: MediaStream | undefined;
1748
- captureMode: 'file' | 'camera';
1749
- captureMethod: 'camera' | 'file' | 'gallery' | undefined;
1750
- error: DocumentCaptureErrorCode | undefined;
1751
- pageNumber: number;
1752
- };
1753
- type DocumentCapturePreviewState = {
1754
- status: 'preview';
1755
- imageBase64: string;
1756
- fileType: string;
1757
- fileName: string;
1758
- };
1759
- type DocumentCaptureUploadingState = {
1760
- status: 'uploading';
1761
- progress: number;
1762
- imageBase64: string;
1763
- fileType: string;
1764
- fileName: string;
1765
- };
1766
- type DocumentCaptureSuccessState = {
1767
- status: 'success';
1768
- imageBase64: string;
1769
- fileType: string;
1770
- fileName: string;
1771
- nextPageType: DocumentCaptureNextPageType;
1772
- };
1773
- type DocumentCaptureFailureState = {
1774
- status: 'failure';
1775
- error: DocumentCaptureErrorCode;
1776
- attemptsRemaining: number;
1777
- };
1778
- type DocumentCaptureFinishedState = {
1779
- status: 'finished';
1780
- };
1781
- type DocumentCaptureClosedState = {
1782
- status: 'closed';
1783
- };
1784
- type DocumentCaptureNextPageState = {
1785
- status: 'nextPage';
1786
- imageBase64: string;
1787
- fileType: string;
1788
- fileName: string;
1789
- pageNumber: number;
1790
- nextPageType: Exclude<DocumentCaptureNextPageType, 'none'>;
1791
- captureMode: 'file' | 'camera';
1792
- };
1793
- /** Confirming optional multi-page capture with the backend (short-lived). */
1794
- type DocumentCaptureFinalizingState = {
1795
- status: 'finalizing';
1796
- };
1797
- type DocumentCaptureState = DocumentCaptureTutorialState | DocumentCapturePermissionsState | DocumentCaptureInitializingCameraState | DocumentCaptureCapturingState | DocumentCapturePreviewState | DocumentCaptureUploadingState | DocumentCaptureSuccessState | DocumentCaptureFailureState | DocumentCaptureFinishedState | DocumentCaptureClosedState | DocumentCaptureNextPageState | DocumentCaptureFinalizingState;
1798
- declare function createDocumentCaptureManager(options: CreateDocumentCaptureActorOptions): Manager<DocumentCaptureState> & {
1799
- capture(): void;
1800
- setFile(file: File, imageBase64: string): void;
1801
- accept(): void;
1802
- retake(): void;
1803
- retry(): void;
1804
- continue(): void;
1805
- skip(): void;
1806
- close(): void;
1807
- requestPermission(): void;
1808
- goToLearnMore(): void;
1809
- back(): void;
1810
- captureNextPageFromCamera(): void;
1811
- captureNextPageFromFile(): void;
1812
- finishPageCapture(): void;
1813
- };
1814
- type DocumentCaptureManager = ReturnType<typeof createDocumentCaptureManager>;
1815
- //#endregion
1816
- export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, documentCaptureMachine };
1
+ import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-DelMqZLe.js";
2
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-B4Kivr8_.js";
3
+ export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };