@incodetech/core 2.2.0-rc.8 → 2.3.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 (258) hide show
  1. package/THIRD_PARTY_NOTICES.txt +281 -0
  2. package/dist/BaseWasmProvider-Dyi6dKp1.d.ts +65 -0
  3. package/dist/{BrowserDiagnosticsCryptoProvider-DslcXorZ.esm.js → BrowserDiagnosticsCryptoProvider-C_9o3L2L.esm.js} +1 -1
  4. package/dist/{BrowserVisibilityObserverProvider-BX1BiLDK.esm.js → BrowserVisibilityObserverProvider-BrJN1B8A.esm.js} +2 -0
  5. package/dist/FaceDetectionProvider-DTetAE8H.esm.js +476 -0
  6. package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +36 -0
  7. package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-RNiFhvXR.d.ts} +7 -33
  8. package/dist/IWasmUtilCapability-CXXDA5l1.d.ts +159 -0
  9. package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-BgTYwg9L.esm.js} +1 -1
  10. package/dist/{deepsightService-DLVQS_RH.d.ts → StreamCanvasCapture-B3YT2Bt6.d.ts} +54 -41
  11. package/dist/{StreamCanvasCapture-D2XcXCZ4.esm.js → StreamCanvasCapture-C9jtgBdT.esm.js} +2 -2
  12. package/dist/{addressSearch-D1XpBdUS.esm.js → addressSearch-BRSu_aGA.esm.js} +1 -1
  13. package/dist/advanceableErrors-CpF2cBy6.esm.js +21 -0
  14. package/dist/ae-signature.d.ts +4 -2
  15. package/dist/ae-signature.esm.js +1 -1
  16. package/dist/antifraud.esm.js +2 -2
  17. package/dist/{antifraudManager-CQFNgSPt.esm.js → antifraudManager-Bg9ynGum.esm.js} +2 -2
  18. package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-BHxehiJZ.esm.js} +1 -1
  19. package/dist/{apiError-D4rZe9BR.esm.js → apiError-D0v5hFyN.esm.js} +14 -2
  20. package/dist/authentication.d.ts +3 -3
  21. package/dist/authentication.esm.js +2 -2
  22. package/dist/{authenticationManager-EfCuQy_Y.esm.js → authenticationManager-C4B4-29g.esm.js} +5 -5
  23. package/dist/{authenticationManager-BBMGTcwW.d.ts → authenticationManager-DXTIUcma.d.ts} +7 -1
  24. package/dist/{authenticationStateMachine-B9l3sHEg.esm.js → authenticationStateMachine-DJ0zUm-A.esm.js} +6 -62
  25. package/dist/avatar.d.ts +1 -2
  26. package/dist/avatar.esm.js +1 -1
  27. package/dist/{backCameraStream-CUeYm5eu.esm.js → backCameraStream-BOtyQowf.esm.js} +83 -22
  28. package/dist/{camera-_2sXMXiF.esm.js → camera-sIa9ceW2.esm.js} +19 -1
  29. package/dist/camera.esm.js +1 -1
  30. package/dist/{canvas-E1zGkel4.esm.js → canvas-BxFzWTt-.esm.js} +19 -0
  31. package/dist/certificate-issuance.d.ts +2 -302
  32. package/dist/certificate-issuance.esm.js +3 -66
  33. package/dist/certificateIssuanceManager-Bfvkq7Cy.esm.js +69 -0
  34. package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
  35. package/dist/{certificateIssuanceStateMachine-D_R92TYu.esm.js → certificateIssuanceStateMachine-BBD5h8c4.esm.js} +1 -1
  36. package/dist/consent.d.ts +1 -1
  37. package/dist/consent.esm.js +2 -2
  38. package/dist/{consentManager-BxjpLZAG.esm.js → consentManager-B5Vqdez-.esm.js} +2 -2
  39. package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
  40. package/dist/{consentStateMachine-D9D4ON8Z.esm.js → consentStateMachine-DbUmqWgV.esm.js} +1 -1
  41. package/dist/createCameraCycleOwnership-DQ5-F2oW.esm.js +826 -0
  42. package/dist/{createFaceAvatar-DQKaRise.esm.js → createFaceAvatar-BNHdeFj8.esm.js} +2 -2
  43. package/dist/createFaceAvatar-BlcTYgJv.d.ts +497 -0
  44. package/dist/cross-document-data-match.esm.js +1 -1
  45. package/dist/{crossDocumentDataMatchManager-CGT0V6RV.esm.js → crossDocumentDataMatchManager-QMOGwHXR.esm.js} +2 -2
  46. package/dist/curp-validation.d.ts +1 -1
  47. package/dist/curp-validation.esm.js +2 -2
  48. package/dist/{curpValidationManager-6Nmkn5u1.esm.js → curpValidationManager-D1ppROcF.esm.js} +2 -2
  49. package/dist/{curpValidationManager-DVGr7Fq7.d.ts → curpValidationManager-SSKNrm5Z.d.ts} +1 -1
  50. package/dist/{curpValidationStateMachine-Ds7KMacK.esm.js → curpValidationStateMachine-DvUPC_8S.esm.js} +1 -1
  51. package/dist/custom-fields.d.ts +2 -114
  52. package/dist/custom-fields.esm.js +2 -232
  53. package/dist/custom-watchlist.d.ts +2 -51
  54. package/dist/custom-watchlist.esm.js +3 -70
  55. package/dist/customFieldsManager-2j_PBq4U.esm.js +264 -0
  56. package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
  57. package/dist/customWatchlistManager-DUVrEdw9.esm.js +73 -0
  58. package/dist/customWatchlistManager-PBWHr_oM.d.ts +64 -0
  59. package/dist/{customWatchlistStateMachine-YWSgKLbF.esm.js → customWatchlistStateMachine-qZVgkKgP.esm.js} +1 -1
  60. package/dist/{deepsightLoader-DEcRUKfT.esm.js → deepsightLoader-Dm7ejW4v.esm.js} +27 -71
  61. package/dist/device.d.ts +25 -2
  62. package/dist/device.esm.js +69 -7
  63. package/dist/document-capture.d.ts +2 -2
  64. package/dist/document-capture.esm.js +2 -2
  65. package/dist/{documentCaptureManager-DsQQhWry.esm.js → documentCaptureManager-DR_Wv-3H.esm.js} +2 -2
  66. package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DensIj5F.d.ts} +83 -83
  67. package/dist/{documentCaptureStateMachine-BM4Ex_5x.esm.js → documentCaptureStateMachine-CWOATHfE.esm.js} +5 -5
  68. package/dist/dynamic-forms.d.ts +1 -1
  69. package/dist/dynamic-forms.esm.js +2 -2
  70. package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
  71. package/dist/{dynamicFormsManager-CmvBSrzC.esm.js → dynamicFormsManager-Dt98SDfV.esm.js} +16 -5
  72. package/dist/{dynamicFormsStateMachine-C37Rtz1G.esm.js → dynamicFormsStateMachine-obKr4IIp.esm.js} +35 -3
  73. package/dist/ekyb.d.ts +1 -1
  74. package/dist/ekyb.esm.js +3 -3
  75. package/dist/{ekybManager-Bx6dG89U.esm.js → ekybManager-DNZKrKF3.esm.js} +2 -2
  76. package/dist/{ekybStateMachine-uscz9zIj.esm.js → ekybStateMachine-DjhHQXZ8.esm.js} +3 -3
  77. package/dist/ekyc.esm.js +2 -2
  78. package/dist/{ekycManager-DgT48ky6.esm.js → ekycManager-CmQBpeiI.esm.js} +2 -2
  79. package/dist/{ekycStateMachine-CQwqiR-R.esm.js → ekycStateMachine-CmdW2gVm.esm.js} +2 -2
  80. package/dist/electronic-signature.d.ts +3 -3
  81. package/dist/electronic-signature.esm.js +2 -2
  82. package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
  83. package/dist/{electronicSignatureManager-_QiHi1U5.esm.js → electronicSignatureManager-DzulxM4_.esm.js} +357 -51
  84. package/dist/email.esm.js +2 -2
  85. package/dist/{emailManager-BY0jeYwR.esm.js → emailManager-B5ek_UfM.esm.js} +2 -2
  86. package/dist/{emailStateMachine-Crw8QVmc.esm.js → emailStateMachine-CyPFZ7dW.esm.js} +1 -1
  87. package/dist/{endpoints-CCzL3XD_.esm.js → endpoints-D3B9mUHh.esm.js} +24 -7
  88. package/dist/{events-DYiyoSlx.esm.js → events-ijlbX_Wx.esm.js} +2 -2
  89. package/dist/events.d.ts +1 -1
  90. package/dist/events.esm.js +1 -1
  91. package/dist/extensibility.d.ts +24 -64
  92. package/dist/extensibility.esm.js +35 -29
  93. package/dist/face-match.esm.js +2 -2
  94. package/dist/{faceCaptureManagerFactory-BxWPpxyd.d.ts → faceCaptureManagerFactory-CvtqcLxs.d.ts} +87 -54
  95. package/dist/{faceCaptureManagerFactory-Bkueb8mk.esm.js → faceCaptureManagerFactory-pCmG4MeF.esm.js} +68 -7
  96. package/dist/faceCaptureSetup-BSextack.esm.js +2106 -0
  97. package/dist/{faceMatchManager-Ri4UbNz0.esm.js → faceMatchManager-Caal2zyV.esm.js} +2 -2
  98. package/dist/{faceMatchStateMachine-20DdZ3jg.esm.js → faceMatchStateMachine-BUc5FXYy.esm.js} +1 -1
  99. package/dist/{feature-management-B3Uygq6K.esm.js → feature-management-B0sGlozZ.esm.js} +32 -7
  100. package/dist/feature-management.d.ts +1 -1
  101. package/dist/feature-management.esm.js +1 -1
  102. package/dist/field-comparison.esm.js +1 -1
  103. package/dist/{fieldComparisonManager-Cg6kPQQx.esm.js → fieldComparisonManager-BIs6HPJG.esm.js} +2 -2
  104. package/dist/fiscal-qr.d.ts +2 -56
  105. package/dist/fiscal-qr.esm.js +2 -308
  106. package/dist/fiscalQrManager-Bp_-3LJr.esm.js +34131 -0
  107. package/dist/fiscalQrManager-CHcBJwUM.d.ts +68 -0
  108. package/dist/flow-events.d.ts +1 -1
  109. package/dist/flow.d.ts +212 -185
  110. package/dist/flow.esm.js +119 -30
  111. package/dist/{flowCompletionService-UakxNaeg.esm.js → flowCompletionService-CLtbWhSK.esm.js} +2 -2
  112. package/dist/{flowServices-CD5m8HqZ.esm.js → flowServices-B5FwukTQ.esm.js} +91 -26
  113. package/dist/geolocation.esm.js +2 -2
  114. package/dist/{geolocationManager-Bz6wJrfI.esm.js → geolocationManager-DIw-xq9a.esm.js} +2 -2
  115. package/dist/{geolocationStateMachine-psEJIVjN.esm.js → geolocationStateMachine-DpG0TFOU.esm.js} +3 -3
  116. package/dist/getBrowser-CBiibsL-.esm.js +19 -0
  117. package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-Cbe1C4Tn.esm.js} +2 -1
  118. package/dist/{getDeviceClass-9y-kbVDw.esm.js → getDeviceClass-5NYZg9s6.esm.js} +2 -2
  119. package/dist/getParsedUserAgent-B2iFDql1.esm.js +1278 -0
  120. package/dist/government-validation.d.ts +2 -85
  121. package/dist/government-validation.esm.js +3 -120
  122. package/dist/governmentValidationManager-D02vT4yY.d.ts +63 -0
  123. package/dist/governmentValidationManager-TjC9iVjH.esm.js +79 -0
  124. package/dist/governmentValidationStateMachine-D1ZnEqdd.esm.js +54 -0
  125. package/dist/home.d.ts +1 -1
  126. package/dist/home.esm.js +1 -1
  127. package/dist/id-ocr.d.ts +2 -2
  128. package/dist/id-ocr.esm.js +2 -2
  129. package/dist/id-selfie-flow.d.ts +3 -2
  130. package/dist/id-selfie-flow.esm.js +11 -10
  131. package/dist/id-verification.esm.js +2 -2
  132. package/dist/id.d.ts +29 -5
  133. package/dist/id.esm.js +48 -46
  134. package/dist/idCaptureDefaults-BcxjQDI3.esm.js +484 -0
  135. package/dist/{idCaptureManager-CqrqSjJV.d.ts → idCaptureManager-CvmHOWWd.d.ts} +227 -39
  136. package/dist/{idCaptureManager-BJAquKfp.esm.js → idCaptureManager-Vby8oYqh.esm.js} +259 -46
  137. package/dist/{idCaptureServices-CM6ki4IH.esm.js → idCaptureServices-CJIxD9ep.esm.js} +342 -31
  138. package/dist/idCaptureStateMachine-CmqihkUy.esm.js +5343 -0
  139. package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
  140. package/dist/{idOcrManager-BIQYQXXj.esm.js → idOcrManager-DHU22hVn.esm.js} +2 -2
  141. package/dist/{idOcrStateMachine-cSxzHpHt.esm.js → idOcrStateMachine-33UvRAHE.esm.js} +1 -1
  142. package/dist/{idVerificationManager-JpV_SAsl.esm.js → idVerificationManager-CyaixD0D.esm.js} +2 -2
  143. package/dist/{idVerificationStateMachine-nPeUNyFq.esm.js → idVerificationStateMachine-BPGrQZEm.esm.js} +1 -1
  144. package/dist/identity-reuse.esm.js +2 -2
  145. package/dist/{identityReuseManager-kNCg9AbD.esm.js → identityReuseManager-CWaNHBO3.esm.js} +2 -2
  146. package/dist/{identityReuseStateMachine-DyulxDjP.esm.js → identityReuseStateMachine-CQgnATo5.esm.js} +1 -1
  147. package/dist/{index-CLMF0QLQ.d.ts → index-DLcJT5YP.d.ts} +1 -1
  148. package/dist/index.d.ts +1 -1
  149. package/dist/index.esm.js +1 -1
  150. package/dist/{invokeOnCaptureCallback-GpvMuz9o.esm.js → invokeOnCaptureCallback-BjzPjJ_p.esm.js} +1 -1
  151. package/dist/mandatory-consent.d.ts +2 -2
  152. package/dist/mandatory-consent.esm.js +2 -2
  153. package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-CJSyhTpi.d.ts} +5 -5
  154. package/dist/{mandatoryConsentManager-B4Niyg_u.esm.js → mandatoryConsentManager-Du-m-tZ_.esm.js} +2 -2
  155. package/dist/{mandatoryConsentStateMachine-B4-1u-L8.esm.js → mandatoryConsentStateMachine-DSDAk7WZ.esm.js} +1 -1
  156. package/dist/multipartRecordingService-B3C_zlev.esm.js +594 -0
  157. package/dist/{permissionGuards-KINpmKtI.esm.js → permissionGuards-uYZYFu4J.esm.js} +1 -1
  158. package/dist/{permissionServices-UvUcOSRb.esm.js → permissionServices-Bj_fyWtv.esm.js} +5 -5
  159. package/dist/personhood.d.ts +6 -5
  160. package/dist/personhood.esm.js +10 -10
  161. package/dist/phone.esm.js +2 -2
  162. package/dist/{phoneManager-FsJ0W2Ei.esm.js → phoneManager-N1-sbrY4.esm.js} +2 -2
  163. package/dist/{phoneStateMachine-Ba0wKHyX.esm.js → phoneStateMachine-jl8LJKCo.esm.js} +1 -1
  164. package/dist/{platform-BJrm5nzZ.esm.js → platform-DkcRc9JV.esm.js} +29 -1
  165. package/dist/qe-signature.d.ts +5 -3
  166. package/dist/qe-signature.esm.js +2 -2
  167. package/dist/recordingsRepository-CCWy13M-.esm.js +72 -0
  168. package/dist/redirect-to-mobile.esm.js +2 -2
  169. package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-DsFzdTwA.esm.js} +2 -2
  170. package/dist/{redirectToMobileStateMachine-Cyv2x0PP.esm.js → redirectToMobileStateMachine-v3otpT-L.esm.js} +1 -1
  171. package/dist/{rolldown-runtime-FZ4Itg2g.esm.js → rolldown-runtime-FDOR9p9I.esm.js} +1 -19
  172. package/dist/{runChildModule-BR2RIfRg.esm.js → runChildModule-TuyGE00X.esm.js} +3 -21
  173. package/dist/safeStorage-B-trhxg6.esm.js +423 -0
  174. package/dist/{sdkVersion-BWOdgLZ1.esm.js → sdkVersion-CLxKvdyz.esm.js} +1 -1
  175. package/dist/selfie.d.ts +5 -5
  176. package/dist/selfie.esm.js +14 -76
  177. package/dist/{selfieErrorUtils-C2PYBVsp.esm.js → selfieErrorUtils-C77GXJH6.esm.js} +30 -4
  178. package/dist/{selfieManager-BlImAV-k.esm.js → selfieManager-CihVnODO.esm.js} +5 -5
  179. package/dist/{selfieManager-DwlCppg0.d.ts → selfieManager-D1KRJ39M.d.ts} +8 -11
  180. package/dist/selfieStateMachine-fwMmNtOi.esm.js +69 -0
  181. package/dist/{session-Bp17qJsu.esm.js → session-BHIeAamR.esm.js} +4 -5
  182. package/dist/session.d.ts +21 -11
  183. package/dist/session.esm.js +5 -5
  184. package/dist/{sessionInitializer-CcqQD9Q4.esm.js → sessionInitializer-BLoK7SP9.esm.js} +187 -68
  185. package/dist/{setup-BgoWtvIS.d.ts → setup-Cv-JM9QC.d.ts} +63 -69
  186. package/dist/{setup-CXj5ozZN.esm.js → setup-msLybMbC.esm.js} +226 -100
  187. package/dist/signature.esm.js +2 -2
  188. package/dist/{signatureManager-Ca43yhwk.esm.js → signatureManager-ChsB-nMD.esm.js} +2 -2
  189. package/dist/{signatureStateMachine-K1LMRrxG.esm.js → signatureStateMachine-BHPwkJZS.esm.js} +1 -1
  190. package/dist/{src-0Jurt29N.esm.js → src-35ekGRzK.esm.js} +1 -1
  191. package/dist/{stats-B0nFKawG.esm.js → stats-DkK-f8JT.esm.js} +1 -1
  192. package/dist/stats.esm.js +1 -1
  193. package/dist/{trueSightService-D05SY_Ij.esm.js → trueSightService-CKrrfV0Q.esm.js} +7 -7
  194. package/dist/trust-graph.esm.js +1 -1
  195. package/dist/{types-BX_XkMsQ2.d.ts → types-9_esGTPj.d.ts} +1 -1
  196. package/dist/types-BT_Oalip.d.ts +1 -0
  197. package/dist/{types-DelMqZLe.d.ts → types-BjSly8cp.d.ts} +1 -1
  198. package/dist/{types-Hmd7U0JA.d.ts → types-CM-jtjJ2.d.ts} +6 -81
  199. package/dist/{types-Bdf8_LYB2.d.ts → types-CjKBS37a2.d.ts} +303 -13
  200. package/dist/{types-DVmXIdzW.d.ts → types-D0gekt4U.d.ts} +38 -5
  201. package/dist/types-DgDvvzg0.d.ts +10 -0
  202. package/dist/{types-KPvmag_B.d.ts → types-Do5rEXij.d.ts} +7 -4
  203. package/dist/types-ZT1XFIJ8.d.ts +6 -0
  204. package/dist/video-selfie.d.ts +59 -35
  205. package/dist/video-selfie.esm.js +510 -601
  206. package/dist/{videoSelfieCameraWarmer-BhTWYfGn.esm.js → videoSelfieCameraWarmer-CB1IzZkt.esm.js} +14 -153
  207. package/dist/videoSelfieFlowModuleMachine-BUe2uACW.esm.js +32 -0
  208. package/dist/{videoSelfieStepDetector-D3oo2ofo.d.ts → videoSelfieStepDetector-5YHFe0Mq.d.ts} +21 -5
  209. package/dist/virtualCameraCheck-WOloJ-do.esm.js +48 -0
  210. package/dist/warmup-CUUnwYxe.esm.js +714 -0
  211. package/dist/warmup-Cis2p6O0.d.ts +128 -0
  212. package/dist/wasm.d.ts +30 -6
  213. package/dist/wasm.esm.js +36 -4
  214. package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-B2e8p268.esm.js} +2 -2
  215. package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-B7baE-Wf.esm.js} +358 -28
  216. package/dist/watchlist-for-business.d.ts +2 -78
  217. package/dist/watchlist-for-business.esm.js +3 -102
  218. package/dist/watchlist.esm.js +2 -2
  219. package/dist/watchlistForBusinessManager-CpuuB1J2.esm.js +107 -0
  220. package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
  221. package/dist/{watchlistForBusinessStateMachine-CxFnlshm.esm.js → watchlistForBusinessStateMachine-DEzgjz7C.esm.js} +13 -6
  222. package/dist/{watchlistManager-LoNZH9qm.esm.js → watchlistManager-CI8BHFob.esm.js} +2 -2
  223. package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-DvOby3a-.esm.js} +1 -1
  224. package/dist/workflow.d.ts +12 -8
  225. package/dist/workflow.esm.js +48 -39
  226. package/package.json +4 -10
  227. package/dist/BrowserStorageProvider-k-FDkC4W.esm.js +0 -67
  228. package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
  229. package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
  230. package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
  231. package/dist/OpenViduRecordingProvider-Du98qevC.esm.js +0 -85
  232. package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
  233. package/dist/document-upload.d.ts +0 -325
  234. package/dist/document-upload.esm.js +0 -197
  235. package/dist/electronicSignatureManager-CcUXQZS7.d.ts +0 -1300
  236. package/dist/faceCaptureSetup-BECAis8R.esm.js +0 -863
  237. package/dist/getBrowser-Cb8Zgrgp.esm.js +0 -7
  238. package/dist/getParsedUserAgent-pJjATANs.esm.js +0 -1622
  239. package/dist/governmentValidationStateMachine-CK9DrZXX.esm.js +0 -226
  240. package/dist/idCaptureDefaults-WeHbQM7W.esm.js +0 -225
  241. package/dist/idCaptureStateMachine-fi-Gq1AH.esm.js +0 -3342
  242. package/dist/lib-DAyUtOTj.esm.js +0 -12420
  243. package/dist/manualReviewService-D4IkipnN.esm.js +0 -15
  244. package/dist/mediaRecorderOptions-dALSV8af.esm.js +0 -40
  245. package/dist/onDeviceFaceResults-CB62pUQf.esm.js +0 -646
  246. package/dist/openviduLazy-CCDpFWg1.esm.js +0 -10
  247. package/dist/recordingService-BRgmVnUT.esm.js +0 -329
  248. package/dist/safeStorage-Ep56I-f_.esm.js +0 -982
  249. package/dist/selfieStateMachine-CPXEC4wV.esm.js +0 -55
  250. package/dist/trueSight-CY0Ibfm9.esm.js +0 -1
  251. package/dist/types-EELWyWpd.d.ts +0 -6
  252. package/dist/types-Vb4P9ovf.d.ts +0 -22
  253. package/dist/warmup-Dv2alr2-.d.ts +0 -82
  254. package/dist/wasmDefaults-DTUrftxR.esm.js +0 -125
  255. package/dist/{Face2DProvider-UUQt_vRC.esm.js → Face2DProvider-BF48sz5c.esm.js} +1 -1
  256. package/dist/{PrivacyLensProvider-D8PS7AJa.esm.js → PrivacyLensProvider-EwnC_C5n.esm.js} +1 -1
  257. /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
  258. /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
@@ -1,12 +1,12 @@
1
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-msLybMbC.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
5
- import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BqUCwLY8.esm.js";
6
- import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
7
- import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-UvUcOSRb.esm.js";
8
- import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-fi-Gq1AH.esm.js";
9
- import { m as resolveIdCaptureThresholds, p as resolveCaptureOptimizingTreatment } from "./idCaptureServices-CM6ki4IH.esm.js";
5
+ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-B2e8p268.esm.js";
6
+ import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
7
+ import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Bj_fyWtv.esm.js";
8
+ import { a as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, s as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-CmqihkUy.esm.js";
9
+ import { v as resolveCaptureOptimizingTreatment, y as resolveIdCaptureThresholds } from "./idCaptureServices-CJIxD9ep.esm.js";
10
10
  //#region src/modules/id/digitalUpload/instrumentation.ts
11
11
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
12
12
  function isHoldingState(value) {
@@ -41,6 +41,51 @@ function mapDigitalIdScreenName(value, failReason) {
41
41
  return "uploadDigitalid.review.default";
42
42
  }
43
43
  //#endregion
44
+ //#region src/modules/id/deviceWallet/instrumentation.ts
45
+ /**
46
+ * Maps a device-wallet child-machine snapshot to a tracked screen name.
47
+ * Family is `deviceWallet.*` — emitted cross-family under the parent
48
+ * `idCapture` module token, same as `mapDigitalIdScreenName`. See
49
+ * `docs/patterns/INSTRUMENTATION.md`.
50
+ */
51
+ function mapDeviceWalletScreenName(value, failReason) {
52
+ if (value === "presenting") return "deviceWallet.wallet.default";
53
+ if (value === "failed") {
54
+ if (failReason === "NO_CREDENTIAL") return "deviceWallet.error.nocredential";
55
+ if (failReason === "UNSUPPORTED_PLATFORM") return "deviceWallet.error.unsupported";
56
+ return "deviceWallet.error.default";
57
+ }
58
+ return "deviceWallet.loading.default";
59
+ }
60
+ //#endregion
61
+ //#region src/modules/digital-id-redirect/instrumentation.ts
62
+ /**
63
+ * Maps a digital-ID web-redirect (Trinsic iDIN/FTN) child-machine snapshot value
64
+ * to the ID-Capture "Tracked Events" screen name. Like `digitalUpload`'s
65
+ * `mapDigitalIdScreenName`, this is emitted cross-family under the parent
66
+ * `idCapture` module token (all ID-Capture children ride under
67
+ * `eventModuleNames.idCapture`) on `event.screen`.
68
+ *
69
+ * Names mirror the user-visible phases the ID-Capture UI renders
70
+ * (`digitalIdRedirect.tsx`): loader / redirecting / succeeded / failed / error.
71
+ * The provider chooser is intentionally absent — inside ID-Capture the provider
72
+ * is preset from `config.digitalIds`, so no chooser screen is shown.
73
+ * `finished`/`closed` are terminal and surface no screen of their own.
74
+ *
75
+ * TODO(design): confirm the exact strings against the digital-id-redirect Figma
76
+ * "Tracked Events" canvas when it exists (mirrors the digitalUpload source note).
77
+ * See docs/patterns/INSTRUMENTATION.md.
78
+ */
79
+ function mapDigitalIdRedirectScreenName(value) {
80
+ switch (value) {
81
+ case "readyToRedirect": return "idCapture.digitalIdRedirect.redirecting.default";
82
+ case "succeeded": return "idCapture.digitalIdRedirect.succeeded.default";
83
+ case "failed": return "idCapture.digitalIdRedirect.failed.default";
84
+ case "error": return "idCapture.digitalIdRedirect.error.default";
85
+ default: return "idCapture.digitalIdRedirect.loader.default";
86
+ }
87
+ }
88
+ //#endregion
44
89
  //#region src/modules/id/manualUpload/instrumentation.ts
45
90
  /**
46
91
  * Maps an ID Manual Upload child-machine snapshot to the exact Figma
@@ -208,17 +253,43 @@ function shouldCaptureBack(context) {
208
253
  function shouldCaptureFront(context) {
209
254
  return context.config.usSmartCapture === true && context.currentMode === "back" && context.uploadResponse?.forceFrontIdCapture === true;
210
255
  }
211
- function mapCaptureState(snapshot, context) {
256
+ /**
257
+ * Resolves the document method represented by camera-facing manager states.
258
+ *
259
+ * Machine context keeps `selectedDocumentType` as the literal chooser
260
+ * selection. Direct-entry flows never dispatch `SELECT_DOCUMENT`, so resolve
261
+ * their effective type only at the public manager boundary. An explicit
262
+ * selection always wins, including non-camera methods. Without one, infer only
263
+ * from the machine's already-derived available camera methods: capture-mode
264
+ * flags such as `onlyBack` and `usSmartCapture` must not manufacture an ID
265
+ * method for a Digital-ID-only or otherwise malformed configuration.
266
+ */
267
+ function getEffectiveSelectedDocumentType(context) {
268
+ if (context.selectedDocumentType !== void 0) return context.selectedDocumentType;
269
+ let isIdAvailable = false;
270
+ let isPassportAvailable = false;
271
+ for (const docType of context.availableDocumentTypes ?? []) {
272
+ if (docType === "id") isIdAvailable = true;
273
+ if (docType === "passport") isPassportAvailable = true;
274
+ }
275
+ if (isIdAvailable && isPassportAvailable) return context.currentMode === "passport" ? "passport" : "id";
276
+ if (isIdAvailable) return "id";
277
+ if (isPassportAvailable) return "passport";
278
+ }
279
+ function mapCaptureState(snapshot, context, presentationStream) {
212
280
  const captureStatus = getCaptureStatus(snapshot) ?? "initializing";
213
281
  const { uploadError, uploadResponse } = context;
214
282
  return {
215
283
  status: "capture",
216
284
  captureStatus,
217
- stream: context.stream,
285
+ stream: presentationStream,
286
+ usingBackCamera: context.usingBackCamera ?? true,
218
287
  detectionStatus: context.detectionStatus,
219
288
  attemptsRemaining: context.attemptsRemaining,
220
289
  uploadError,
221
290
  currentMode: context.currentMode,
291
+ selectedDocumentType: getEffectiveSelectedDocumentType(context),
292
+ tutorialEnabled: context.config.showTutorial === true,
222
293
  counterValue: context.counterValue,
223
294
  orientation: context.orientation,
224
295
  idType: context.idType,
@@ -231,14 +302,52 @@ function mapCaptureState(snapshot, context) {
231
302
  captureFeedbackMode: context.captureFeedbackMode,
232
303
  uploadErrorMessage: uploadError ? getErrorTitleKey(uploadError, context.currentMode) : void 0,
233
304
  uploadErrorDescription: uploadError ? getErrorSubtitleKey(uploadError, uploadResponse, context.currentMode) : void 0,
305
+ acceptedDocuments: uploadResponse?.acceptedDocuments,
306
+ countryCode: uploadResponse?.countryCode,
234
307
  needsBackCapture: shouldCaptureBack(context),
235
308
  needsFrontCapture: shouldCaptureFront(context),
236
309
  showCaptureButtonInAuto: context.config.showCaptureButtonInAuto ?? false,
237
310
  canRetry: context.attemptsRemaining > 0
238
311
  };
239
312
  }
240
- function isLoadingPhase(snapshot) {
241
- return snapshot.matches({ capture: "checkingStream" }) || snapshot.matches({ capture: "initializingDeepsight" }) || snapshot.matches({ capture: "initializing" }) || snapshot.matches({ permissions: "idle" });
313
+ function mapPermissionsState(snapshot, context) {
314
+ return {
315
+ status: "permissions",
316
+ permissionStatus: getPermissionStatus(snapshot) ?? "idle",
317
+ selectedDocumentType: getEffectiveSelectedDocumentType(context),
318
+ currentMode: context.currentMode,
319
+ tutorialEnabled: context.config.showTutorial === true
320
+ };
321
+ }
322
+ function getLoadingPhase(snapshot) {
323
+ if (snapshot.matches({ capture: "checkingStream" })) return "checkingStream";
324
+ if (snapshot.matches({ capture: "initializingDeepsight" })) return "initializingDeepsight";
325
+ if (snapshot.matches({ capture: "initializing" })) return "initializingCamera";
326
+ if (snapshot.matches({ permissions: "idle" })) return "permissionsIdle";
327
+ }
328
+ function mapLoadingState(snapshot, phase) {
329
+ return {
330
+ status: "loading",
331
+ phase,
332
+ tutorialEnabled: snapshot.context.config.showTutorial === true,
333
+ selectedDocumentType: getEffectiveSelectedDocumentType(snapshot.context),
334
+ currentMode: snapshot.context.currentMode
335
+ };
336
+ }
337
+ function getTutorialPhase(snapshot) {
338
+ if (snapshot.matches({ tutorial: "checkingPermission" })) return "checkingPermission";
339
+ if (snapshot.matches({ tutorial: "waitingForPermission" })) return "waitingForPermission";
340
+ if (snapshot.matches({ tutorial: { initializingCamera: { userIntent: "clicked" } } })) return "waitingForCamera";
341
+ if (snapshot.matches({ tutorial: "initializingCamera" })) return "initializingCamera";
342
+ return "ready";
343
+ }
344
+ function mapTutorialState(snapshot, context) {
345
+ return {
346
+ status: "tutorial",
347
+ phase: getTutorialPhase(snapshot),
348
+ selectedDocumentType: getEffectiveSelectedDocumentType(context),
349
+ currentMode: context.currentMode
350
+ };
242
351
  }
243
352
  function mapManualUploadState(snapshot) {
244
353
  const { config } = snapshot.context;
@@ -258,14 +367,17 @@ function mapManualUploadState(snapshot) {
258
367
  /**
259
368
  * Manual upload is client-authoritative for the back side: the slot must be
260
369
  * shown or hidden before any upload round-trip, so there is no
261
- * `skipBackIdCapture` to defer to yet. `config.onlyFront` is therefore read
262
- * directly here — restoring V1 parity (ENG-50532). The camera path is the
263
- * opposite: it forwards the flag and waits for the server's answer.
370
+ * `skipBackIdCapture` to defer to yet. The side-only flags are therefore read
371
+ * directly here (`onlyFront`: ENG-50532; `onlyBack`: ENG-51547). The camera
372
+ * path is the opposite: it forwards only-front and waits for the server's
373
+ * answer.
264
374
  */
265
375
  const onlyFront = config.onlyFront === true;
266
- const idTabCanContinue = (childCtx?.frontUploaded ?? false) && (onlyFront || backUploaded);
267
- const canContinue = childCtx?.activeTab === "id" ? idTabCanContinue : childCtx?.passportUploaded ?? false;
268
- const showBackSlot = !onlyFront;
376
+ const onlyBack = config.onlyBack === true;
377
+ const idTabCanContinue = onlyBack && backUploaded || !onlyBack && (childCtx?.frontUploaded ?? false) && (onlyFront || backUploaded);
378
+ const canContinue = childCtx?.activeTab === "id" ? idTabCanContinue : !onlyBack && (childCtx?.passportUploaded ?? false);
379
+ const showFrontSlot = !onlyBack;
380
+ const showBackSlot = onlyBack || !onlyFront;
269
381
  return {
270
382
  status: "manualUpload",
271
383
  phase,
@@ -273,6 +385,7 @@ function mapManualUploadState(snapshot) {
273
385
  activeTab: childCtx?.activeTab ?? "id",
274
386
  showIdTab,
275
387
  showPassportTab,
388
+ showFrontSlot,
276
389
  showBackSlot,
277
390
  frontFileName: childCtx?.frontFile?.name,
278
391
  backFileName: childCtx?.backFile?.name,
@@ -312,34 +425,55 @@ function mapDigitalUploadState(snapshot) {
312
425
  pickerRequestId: childCtx?.pickerRequestId ?? 0
313
426
  };
314
427
  }
315
- function mapState(snapshot) {
428
+ function mapDigitalIdRedirectState(snapshot) {
429
+ const childSnapshot = snapshot.children["digitalIdRedirect"]?.getSnapshot();
430
+ const childCtx = childSnapshot?.context;
431
+ const childValue = childSnapshot?.value;
432
+ return {
433
+ status: "digitalIdRedirect",
434
+ phase: (() => {
435
+ if (childValue === "readyToRedirect") return "redirecting";
436
+ if (childValue === "succeeded") return "success";
437
+ if (childValue === "failed") return "failed";
438
+ if (childValue === "error") return "error";
439
+ return "loading";
440
+ })(),
441
+ launchUrl: childCtx?.launchUrl,
442
+ failureReason: childCtx?.failureReason,
443
+ providerId: childCtx?.selectedProvider ?? childCtx?.config.provider
444
+ };
445
+ }
446
+ function mapDeviceWalletState(snapshot) {
447
+ const childSnapshot = snapshot.children["deviceWallet"]?.getSnapshot();
448
+ const childCtx = childSnapshot?.context;
449
+ const childValue = childSnapshot?.value;
450
+ return {
451
+ status: "deviceWallet",
452
+ phase: (() => {
453
+ if (childValue === "presenting") return "presenting";
454
+ if (childValue === "decrypting") return "decrypting";
455
+ if (childValue === "failed") return "failed";
456
+ return "requesting";
457
+ })(),
458
+ failReason: childCtx?.failReason ?? null,
459
+ platform: childCtx?.platform
460
+ };
461
+ }
462
+ function mapState(snapshot, presentationStream) {
316
463
  const { context } = snapshot;
317
464
  if (snapshot.matches("idle")) return { status: "idle" };
318
- if (isLoadingPhase(snapshot)) return { status: "loading" };
465
+ const loadingPhase = getLoadingPhase(snapshot);
466
+ if (loadingPhase) return mapLoadingState(snapshot, loadingPhase);
319
467
  if (snapshot.matches("chooser")) return {
320
468
  status: "chooser",
321
469
  availableDocumentTypes: context.availableDocumentTypes
322
470
  };
323
- if (snapshot.matches("loading")) return { status: "loading" };
324
- if (snapshot.matches("tutorial")) return {
325
- status: "tutorial",
326
- selectedDocumentType: context.selectedDocumentType,
327
- currentMode: context.currentMode
328
- };
471
+ if (snapshot.matches("loading")) return mapLoadingState(snapshot, "bootstrapping");
472
+ if (snapshot.matches("tutorial")) return mapTutorialState(snapshot, context);
329
473
  if (snapshot.matches("ageVerification")) return { status: "ageVerification" };
330
474
  if (snapshot.matches("closed")) return { status: "closed" };
331
- if (snapshot.matches("permissions")) {
332
- const permissionStatus = getPermissionStatus(snapshot);
333
- if (permissionStatus === void 0) return {
334
- status: "permissions",
335
- permissionStatus: "idle"
336
- };
337
- return {
338
- status: "permissions",
339
- permissionStatus
340
- };
341
- }
342
- if (snapshot.matches("capture")) return mapCaptureState(snapshot, context);
475
+ if (snapshot.matches("permissions")) return mapPermissionsState(snapshot, context);
476
+ if (snapshot.matches("capture")) return mapCaptureState(snapshot, context, presentationStream);
343
477
  if (snapshot.matches("mandatoryConsent")) return {
344
478
  status: "mandatoryConsent",
345
479
  regulationType: context.uploadResponse?.regulationType ?? "Other"
@@ -377,6 +511,8 @@ function mapState(snapshot) {
377
511
  };
378
512
  if (snapshot.matches("manualIdUpload")) return mapManualUploadState(snapshot);
379
513
  if (snapshot.matches("digitalIdUpload")) return mapDigitalUploadState(snapshot);
514
+ if (snapshot.matches("digitalIdRedirect") || snapshot.matches("digitalIdRedirectReturning")) return mapDigitalIdRedirectState(snapshot);
515
+ if (snapshot.matches("deviceWallet") || snapshot.matches("digitalIdRouting")) return mapDeviceWalletState(snapshot);
380
516
  return { status: "idle" };
381
517
  }
382
518
  function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished }) {
@@ -385,7 +521,7 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
385
521
  return {
386
522
  load() {
387
523
  const { config } = actor.getSnapshot().context;
388
- if (config.ds === true) setWasmDsFlagSync(true);
524
+ setWasmDsFlagSync(config.ds === true);
389
525
  resetWasmMotionPrimedForModule();
390
526
  actor.send({ type: "LOAD" });
391
527
  },
@@ -408,6 +544,14 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
408
544
  }
409
545
  actor.send({ type: "NEXT_STEP" });
410
546
  },
547
+ /**
548
+ * Requests camera (and, when deepsight is enabled, motion) permission.
549
+ * Effective in `permissions.idle`, `permissions.waitingForUser`,
550
+ * `permissions.motionOnly`, `permissions.learnMore`, `tutorial.ready`,
551
+ * `tutorial.checkingPermission`, and `tutorial.initializingCamera` (while
552
+ * the camera pre-warms it records the user's intent to continue, so the
553
+ * tutorial advances to capture as soon as the warm-up finishes).
554
+ */
411
555
  requestPermission() {
412
556
  trackElementClicked?.("requestPermission");
413
557
  actor.send({ type: "REQUEST_PERMISSION" });
@@ -536,6 +680,36 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
536
680
  digitalUploadChooseAnother() {
537
681
  trackElementClicked?.("digitalUpload.chooseAnother");
538
682
  actor.send({ type: "DIGITAL_UPLOAD_CHOOSE_ANOTHER" });
683
+ },
684
+ /** Retry a failed Digital ID web-redirect — creates a NEW verification. */
685
+ digitalIdRedirectRetry() {
686
+ trackElementClicked?.("digitalIdRedirect.retry");
687
+ actor.send({ type: "DIGITAL_ID_REDIRECT_RETRY" });
688
+ },
689
+ /** Fall back from the Digital ID web-redirect to the chooser. */
690
+ digitalIdRedirectUseAnotherMethod() {
691
+ trackElementClicked?.("digitalIdRedirect.useAnotherMethod");
692
+ actor.send({ type: "DIGITAL_ID_REDIRECT_USE_ANOTHER_METHOD" });
693
+ },
694
+ /** Acknowledge the Digital ID web-redirect success screen and advance. */
695
+ digitalIdRedirectContinue() {
696
+ trackElementClicked?.("digitalIdRedirect.continue");
697
+ actor.send({ type: "DIGITAL_ID_REDIRECT_CONTINUE" });
698
+ },
699
+ /** Refresh an expiring launch URL (no new verification / billing event). */
700
+ digitalIdRedirectRefresh() {
701
+ trackElementClicked?.("digitalIdRedirect.refresh");
702
+ actor.send({ type: "DIGITAL_ID_REDIRECT_REFRESH" });
703
+ },
704
+ /** Retry a failed device-wallet (mDL) handshake from the start. */
705
+ deviceWalletRetry() {
706
+ trackElementClicked?.("deviceWallet.retry");
707
+ actor.send({ type: "DEVICE_WALLET_RETRY" });
708
+ },
709
+ /** Fall back from the device-wallet handshake to the chooser. */
710
+ deviceWalletUseAnotherMethod() {
711
+ trackElementClicked?.("deviceWallet.useAnotherMethod");
712
+ actor.send({ type: "DEVICE_WALLET_USE_ANOTHER_METHOD" });
539
713
  }
540
714
  };
541
715
  }
@@ -674,6 +848,17 @@ function getIdCaptureScreenName(snapshot) {
674
848
  const childContext = child?.context;
675
849
  return mapIdManualUploadScreenName(child?.value, childContext) ?? "idCapture.manualIdUpload";
676
850
  }
851
+ case "digitalIdRedirect":
852
+ case "digitalIdRedirectReturning": {
853
+ const child = snapshot.children["digitalIdRedirect"]?.getSnapshot();
854
+ return mapDigitalIdRedirectScreenName(child?.value);
855
+ }
856
+ case "deviceWallet":
857
+ case "digitalIdRouting": {
858
+ const child = snapshot.children["deviceWallet"]?.getSnapshot();
859
+ const childContext = child?.context;
860
+ return mapDeviceWalletScreenName(child?.value, childContext?.failReason ?? null);
861
+ }
677
862
  default: return `idCapture.${topLevel}`;
678
863
  }
679
864
  }
@@ -770,28 +955,56 @@ function getIdCaptureErrorPayload(snapshot) {
770
955
  * `docs/patterns/CAPABILITY.md`). Pass a fake/no-op to override (tests do).
771
956
  */
772
957
  function createIdCaptureManagerFromActor(actor, visibilityObserver = new BrowserVisibilityObserverProvider()) {
958
+ const protectedCaptureController = findIdProtectedCaptureController(actor);
959
+ protectedCaptureController?.setVisible(visibilityObserver.isVisible());
773
960
  return createManager({
774
961
  actor,
775
- mapState,
962
+ mapState: (snapshot) => mapState(snapshot, protectedCaptureController?.getProjection().stream),
776
963
  createApi,
777
964
  instrumentation: createManagerInstrumentation(eventModuleNames.idCapture, {
778
965
  getEventScreenName: mapIdCaptureScreenName,
779
966
  getErrorName: getIdCaptureErrorName,
780
967
  getErrorPayload: getIdCaptureErrorPayload,
781
- visibilityObserver
968
+ visibilityObserver: {
969
+ isVisible: () => visibilityObserver.isVisible(),
970
+ onVisibilityChange: (listener) => visibilityObserver.onVisibilityChange((visible) => {
971
+ protectedCaptureController?.setVisible(visible);
972
+ actor.send({ type: visible ? "FOREGROUND" : "BACKGROUND" });
973
+ listener(visible);
974
+ })
975
+ }
782
976
  })
783
977
  });
784
978
  }
785
979
  //#endregion
980
+ //#region ../infra/src/providers/browser/BrowserDigitalCredentialsProvider.ts
981
+ var BrowserDigitalCredentialsProvider = class {
982
+ isAvailable() {
983
+ return typeof navigator !== "undefined" && typeof navigator.credentials?.get === "function" && typeof globalThis.DigitalCredential !== "undefined";
984
+ }
985
+ async get(request, options) {
986
+ return { response: (await navigator.credentials.get({
987
+ mediation: "required",
988
+ signal: options?.signal,
989
+ digital: { requests: [request] }
990
+ }))?.data?.response };
991
+ }
992
+ };
993
+ //#endregion
786
994
  //#region src/modules/id/idCaptureActor.ts
787
995
  function createIdCaptureActor(options) {
788
- const dependencies = options.dependencies ?? { storage: new BrowserStorageProvider() };
996
+ const dependencies = {
997
+ ...options.dependencies,
998
+ storage: options.dependencies?.storage ?? new BrowserStorageProvider(),
999
+ credentials: options.dependencies?.credentials ?? new BrowserDigitalCredentialsProvider()
1000
+ };
789
1001
  const treatment = resolveCaptureOptimizingTreatment(options.config);
790
- return createActor(idCaptureMachine, { input: {
791
- config: {
792
- ...options.config,
793
- thresholds: resolveIdCaptureThresholds(options.config, treatment?.framesAggregationInterval)
794
- },
1002
+ const config = {
1003
+ ...options.config,
1004
+ thresholds: resolveIdCaptureThresholds(options.config, treatment?.framesAggregationInterval)
1005
+ };
1006
+ return createActor(provideIdProtectedCaptureController(idCaptureMachine, createIdProtectedCaptureController()), { input: {
1007
+ config,
795
1008
  dependencies,
796
1009
  captureFeedbackMode: treatment?.mode ?? "countdown",
797
1010
  captureWindowMs: treatment?.captureWindowMs,