@incodetech/core 2.4.1-agentic → 2.4.1-agentic.10

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 (239) hide show
  1. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
  2. package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
  3. package/dist/{multipartRecordingService-DMBxHKS2.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -734
  4. package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
  5. package/dist/{FaceDetectionProvider-B83VmClw.esm.js → FaceDetectionProvider-BSLpXAGx.esm.js} +11 -12
  6. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
  7. package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +2 -2
  8. package/dist/MultipartRecordingProvider-BfQPSgSO.esm.js +151 -0
  9. package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
  10. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  11. package/dist/{WasmUtilProvider-GTkoJyFY.esm.js → WasmUtilProvider-C_puwvVn.esm.js} +2 -2
  12. package/dist/WorkerEncoderRecordingProvider-CyCrQnZR.esm.js +80 -0
  13. package/dist/addressSearch-B_4JYKa-.esm.js +72 -0
  14. package/dist/ae-signature.esm.js +1 -1
  15. package/dist/antifraud.esm.js +2 -2
  16. package/dist/{antifraudManager-CQ08atTC.esm.js → antifraudManager-BWCVkSu2.esm.js} +2 -2
  17. package/dist/{antifraudStateMachine-BcsUTTIr.esm.js → antifraudStateMachine-CX9I2f3s.esm.js} +1 -1
  18. package/dist/{api-BO8JA7Pf.esm.js → api-BSnbg4HO.esm.js} +4 -0
  19. package/dist/{apiError-CfuIvnUy.esm.js → apiError-Bmwy1Fa7.esm.js} +1 -1
  20. package/dist/{attemptCarry-BjTJ6bMQ.esm.js → attemptCarry-zQH85Elh.esm.js} +2 -2
  21. package/dist/authentication.d.ts +3 -3
  22. package/dist/authentication.esm.js +2 -2
  23. package/dist/{authenticationManager-DvmklBTE.esm.js → authenticationManager-BoiOaB0m.esm.js} +5 -5
  24. package/dist/{authenticationManager-C-cOki0Y.d.ts → authenticationManager-CISxaY6N.d.ts} +1 -1
  25. package/dist/{authenticationStateMachine-BL2ptOA0.esm.js → authenticationStateMachine-BMD1JLwr.esm.js} +3 -3
  26. package/dist/avatar.d.ts +1 -1
  27. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  28. package/dist/{backCameraStream-C5_NNfUN.esm.js → backCameraStream-DS1oDiUq.esm.js} +10 -65
  29. package/dist/{browser-pQZA35G2-DtkAf6sn.esm.js → browser-pQZA35G2-PIj2uGBm.esm.js} +1 -1
  30. package/dist/camera.d.ts +2 -2
  31. package/dist/camera.esm.js +1 -1
  32. package/dist/certificate-issuance.esm.js +2 -2
  33. package/dist/{certificateIssuanceManager-CM0fuqDC.esm.js → certificateIssuanceManager-DzDuQTsK.esm.js} +2 -2
  34. package/dist/{certificateIssuanceStateMachine-kksIUOPD.esm.js → certificateIssuanceStateMachine-BAOYLACb.esm.js} +2 -2
  35. package/dist/{connectivity-HSl0diCx.esm.js → connectivity-BCuEoQ-n.esm.js} +2 -21
  36. package/dist/consent.d.ts +1 -1
  37. package/dist/consent.esm.js +2 -2
  38. package/dist/{consentManager-_q9yJUku.d.ts → consentManager-7aHaehwF.d.ts} +5 -5
  39. package/dist/{consentManager-CBwFozhv.esm.js → consentManager-DFSKQTcR.esm.js} +2 -2
  40. package/dist/{consentStateMachine-CpmRAcr2.esm.js → consentStateMachine-4nZIH2O8.esm.js} +1 -1
  41. package/dist/{cpf-uAZTPUBy.esm.js → cpf-BIADjddF.esm.js} +1 -25
  42. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
  43. package/dist/cross-document-data-match.esm.js +1 -1
  44. package/dist/{crossDocumentDataMatchManager-64O8t10a.esm.js → crossDocumentDataMatchManager-D7ka2qOC.esm.js} +2 -2
  45. package/dist/curp-validation.d.ts +1 -1
  46. package/dist/curp-validation.esm.js +2 -2
  47. package/dist/{curpValidationManager-CLgJQcx0.esm.js → curpValidationManager-BVTt7IgC.esm.js} +2 -2
  48. package/dist/{curpValidationManager-CXpFE-Mv.d.ts → curpValidationManager-DEqTUWdu.d.ts} +1 -1
  49. package/dist/{curpValidationStateMachine-Bx9YhVkJ.esm.js → curpValidationStateMachine-FB_MRbZQ.esm.js} +2 -2
  50. package/dist/custom-fields.esm.js +1 -1
  51. package/dist/custom-watchlist.esm.js +2 -2
  52. package/dist/{customFieldsManager-DWt_0YtJ.esm.js → customFieldsManager-gbsq53p6.esm.js} +2 -2
  53. package/dist/{customWatchlistManager-D8o-2Nej.esm.js → customWatchlistManager-50APwk4Z.esm.js} +2 -2
  54. package/dist/{customWatchlistStateMachine-Sbi6DIcK.esm.js → customWatchlistStateMachine-CpEVPzuT.esm.js} +1 -1
  55. package/dist/{deepsightService-twg3bXqY.esm.js → deepsightLoader-BKCT8UT1.esm.js} +34 -29
  56. package/dist/definitionSource-BHNxbuiv.esm.js +184 -0
  57. package/dist/{desktopCameraElection-kHY2IDJi.esm.js → desktopCameraElection-Dvvw7PRY.esm.js} +5 -5
  58. package/dist/document-capture.d.ts +3 -3
  59. package/dist/document-capture.esm.js +2 -2
  60. package/dist/{documentCaptureManager-CMSC_Mhd.esm.js → documentCaptureManager-BG5TuqJz.esm.js} +3 -2
  61. package/dist/{documentCaptureManager-6tnnDkMX.d.ts → documentCaptureManager-DDfviFg0.d.ts} +25 -4
  62. package/dist/{documentCaptureStateMachine-BCwD5Rto.esm.js → documentCaptureStateMachine-C7PW_Ah9.esm.js} +67 -26
  63. package/dist/dynamic-forms.esm.js +2 -2
  64. package/dist/{dynamicFormsManager-DU6W1e20.esm.js → dynamicFormsManager-B0bpHhhJ.esm.js} +2 -2
  65. package/dist/{dynamicFormsStateMachine-C8Z7k3vo.esm.js → dynamicFormsStateMachine-2ZHyejBc.esm.js} +2 -2
  66. package/dist/ekyb.d.ts +4 -4
  67. package/dist/ekyb.esm.js +3 -3
  68. package/dist/{ekybManager-TB6ZG5lX.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
  69. package/dist/{ekybManager-TGfqyjuu.esm.js → ekybManager-P9mC7W9J.esm.js} +2 -2
  70. package/dist/{ekybStateMachine-DBgFuEPK.esm.js → ekybStateMachine-C7HKaeVr.esm.js} +7 -3
  71. package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
  72. package/dist/ekyc-prefill.d.ts +17 -0
  73. package/dist/ekyc-prefill.esm.js +3 -0
  74. package/dist/ekyc.d.ts +3 -2
  75. package/dist/ekyc.esm.js +3 -3
  76. package/dist/{ekycManager-C2cgG2Pl.esm.js → ekycManager-CeeJoRFY.esm.js} +2 -2
  77. package/dist/{ekycManager-BSQteIfC.d.ts → ekycManager-q1fos6IY.d.ts} +2 -1
  78. package/dist/ekycPrefillManager-C6BFFKxc.esm.js +102 -0
  79. package/dist/ekycPrefillManager-PPGVZbWk.d.ts +565 -0
  80. package/dist/ekycPrefillStateMachine-Dku90kZL.esm.js +686 -0
  81. package/dist/ekycRules-BLX7Elcb.esm.js +319 -0
  82. package/dist/{ekycStateMachine-CuNF7z4O.esm.js → ekycStateMachine-DBTczgGE.esm.js} +719 -596
  83. package/dist/{ekycUtils-BFncpC4F.esm.js → ekycUtils-Dcff8BOD.esm.js} +103 -14
  84. package/dist/electronic-signature.esm.js +1 -1
  85. package/dist/{electronicSignatureManager-C7pqXsRm.esm.js → electronicSignatureManager-BKQuhJm_.esm.js} +4 -4
  86. package/dist/email.esm.js +2 -2
  87. package/dist/{emailManager-FH_CP0cT.esm.js → emailManager-CGmKbsBL.esm.js} +2 -2
  88. package/dist/{emailStateMachine-Cx-uTaBV.esm.js → emailStateMachine-CGY1UGs2.esm.js} +2 -2
  89. package/dist/{events-CQteqXfy.esm.js → events-C7h7oaTE.esm.js} +1 -1
  90. package/dist/events.esm.js +1 -1
  91. package/dist/extensibility.d.ts +20 -18
  92. package/dist/extensibility.esm.js +37 -35
  93. package/dist/{externalFetch-CQY41QT1.esm.js → externalFetch-cUjJYyXj.esm.js} +1 -1
  94. package/dist/face-match.d.ts +1 -1
  95. package/dist/face-match.esm.js +2 -2
  96. package/dist/{faceCaptureManagerFactory-C-xKdj-d.d.ts → faceCaptureManagerFactory-BVwVGa3z.d.ts} +7 -7
  97. package/dist/{faceCaptureManagerFactory-CBm05KnT.esm.js → faceCaptureManagerFactory-ClFsByZc.esm.js} +4 -4
  98. package/dist/{faceCaptureSetup-BQjCbL51.esm.js → faceCaptureSetup-9hv5GC_H.esm.js} +12 -403
  99. package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-BZtEw6bB.d.ts} +9 -3
  100. package/dist/{faceMatchManager-B2zp7yP4.esm.js → faceMatchManager-CRe7Nvm6.esm.js} +2 -2
  101. package/dist/{faceMatchStateMachine-ByTMQCUC.esm.js → faceMatchStateMachine-EX9QhxFE.esm.js} +28 -14
  102. package/dist/{feature-management-DjAG5lsJ.esm.js → feature-management-CmKTG_T5.esm.js} +35 -21
  103. package/dist/feature-management.esm.js +1 -1
  104. package/dist/field-comparison.esm.js +1 -1
  105. package/dist/{fieldComparisonManager-CC0vKmpf.esm.js → fieldComparisonManager-DuosZJso.esm.js} +2 -2
  106. package/dist/fiscal-qr.esm.js +1 -1
  107. package/dist/{fiscalQrManager-Be-r4oZj.esm.js → fiscalQrManager-ji0qDaTW.esm.js} +3 -3
  108. package/dist/flow-events.d.ts +1 -1
  109. package/dist/flow.d.ts +33 -18
  110. package/dist/flow.esm.js +82 -17
  111. package/dist/{flowCompletionService-ChMU2v79.esm.js → flowCompletionService-DvcH16XO.esm.js} +24 -3
  112. package/dist/{flowServices-g2tVWsJl.esm.js → flowServices-Ca2vKNt2.esm.js} +84 -139
  113. package/dist/geolocation.esm.js +2 -2
  114. package/dist/{geolocationManager-DLbvZwUB.esm.js → geolocationManager-CiG32lIm.esm.js} +2 -2
  115. package/dist/{geolocationStateMachine-CAJVongM.esm.js → geolocationStateMachine-5rnTEOuw.esm.js} +3 -3
  116. package/dist/government-validation.esm.js +2 -2
  117. package/dist/{governmentValidationManager-CkX9TEkh.esm.js → governmentValidationManager-BivVZNVe.esm.js} +2 -2
  118. package/dist/{governmentValidationStateMachine-PTPCP26N.esm.js → governmentValidationStateMachine-CeSDNgha.esm.js} +1 -1
  119. package/dist/home.d.ts +1 -1
  120. package/dist/home.esm.js +1 -1
  121. package/dist/http.esm.js +1 -1
  122. package/dist/id-ocr.d.ts +2 -2
  123. package/dist/id-ocr.esm.js +3 -19
  124. package/dist/id-selfie-flow.d.ts +3 -3
  125. package/dist/id-selfie-flow.esm.js +10 -9
  126. package/dist/id-verification.esm.js +2 -2
  127. package/dist/id.d.ts +4 -4
  128. package/dist/id.esm.js +4 -4
  129. package/dist/{idCaptureDefaults-MSQoqScU.esm.js → idCaptureDefaults-DBnOC28H.esm.js} +3 -3
  130. package/dist/{idCaptureManager-zZdTcpG1.esm.js → idCaptureManager-B5xqok0L.esm.js} +9 -8
  131. package/dist/{idCaptureManager-DzTfQ1Am.d.ts → idCaptureManager-CG8zbAp0.d.ts} +10 -8
  132. package/dist/{idCaptureServices-8OHinO0N.esm.js → idCaptureServices-BIF_7rub.esm.js} +27 -196
  133. package/dist/{idCaptureStateMachine-B3G6XoDG.esm.js → idCaptureStateMachine-B5cfgKvn.esm.js} +50 -22
  134. package/dist/idOcrCpfUtils-Nfln1Psb.esm.js +18 -0
  135. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-B5xeI2lg.d.ts} +3 -3
  136. package/dist/{idOcrManager-B64-fjWg.esm.js → idOcrManager-DNbVTMIu.esm.js} +2 -2
  137. package/dist/{idOcrStateMachine-B1aZnobs.esm.js → idOcrStateMachine-MAGnpWkb.esm.js} +8 -7
  138. package/dist/{idVerificationManager-_Kebv-Ue.esm.js → idVerificationManager-BEAkamNm.esm.js} +2 -2
  139. package/dist/{idVerificationStateMachine-DQn6c84z.esm.js → idVerificationStateMachine-D5mBN2Ye.esm.js} +1 -1
  140. package/dist/identity-reuse.esm.js +2 -2
  141. package/dist/{identityReuseManager-DDXkNVZi.esm.js → identityReuseManager-M8-BTjar.esm.js} +2 -2
  142. package/dist/{identityReuseStateMachine-Bcnkbjf8.esm.js → identityReuseStateMachine-D5bXgw9h.esm.js} +1 -1
  143. package/dist/{index-DEfwds5y.d.ts → index-Btj1EhiM.d.ts} +43 -19
  144. package/dist/{index-DMDAk85K.d.ts → index-CSPOoqah.d.ts} +1 -1
  145. package/dist/index.d.ts +1 -1
  146. package/dist/index.esm.js +1 -1
  147. package/dist/{invokeOnCaptureCallback-CXIBwBeE.esm.js → invokeOnCaptureCallback-C1-j4fsq.esm.js} +1 -1
  148. package/dist/kyb-checks.d.ts +3 -0
  149. package/dist/kyb-checks.esm.js +3 -0
  150. package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
  151. package/dist/kybChecksManager-CnqwgKoV.esm.js +89 -0
  152. package/dist/kybChecksStateMachine-Be41K_NS.esm.js +719 -0
  153. package/dist/mandatory-consent.d.ts +2 -2
  154. package/dist/mandatory-consent.esm.js +2 -2
  155. package/dist/{mandatoryConsentManager-xx3mY-xw.d.ts → mandatoryConsentManager-CYOJd_IZ.d.ts} +20 -11
  156. package/dist/{mandatoryConsentManager-43W5d_8G.esm.js → mandatoryConsentManager-LFhUlLvO.esm.js} +2 -2
  157. package/dist/{mandatoryConsentStateMachine-CVlgdlnt.esm.js → mandatoryConsentStateMachine-DTSyDqQs.esm.js} +11 -5
  158. package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
  159. package/dist/multipartRecordingService-CCiRpByl.esm.js +407 -0
  160. package/dist/{permissionGuards-B3OPL8Si.esm.js → permissionGuards-DjQUR1du.esm.js} +1 -1
  161. package/dist/{permissionServices-DnBAN_hW.esm.js → permissionServices-CZpORUWY.esm.js} +8 -6
  162. package/dist/phone.esm.js +2 -2
  163. package/dist/phoneFormat-DEpESpz2.esm.js +87 -0
  164. package/dist/{phoneManager-C6jut_pz.esm.js → phoneManager-C-qD3p3N.esm.js} +3 -3
  165. package/dist/phoneServices-BdR1nmSO.esm.js +77 -0
  166. package/dist/{phoneStateMachine-T1-drWfG.esm.js → phoneStateMachine-2FMTdjtJ.esm.js} +20 -60
  167. package/dist/{processFaceMatch-BWme3kVV.esm.js → processFaceMatch-B1YnoBer.esm.js} +1 -1
  168. package/dist/qe-signature.esm.js +1 -1
  169. package/dist/recordingService-BVSCo0ac.esm.js +397 -0
  170. package/dist/redirect-to-mobile.esm.js +2 -2
  171. package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-CqyDfDxs.esm.js} +3 -3
  172. package/dist/{redirectToMobileStateMachine-BBMAc2Gb.esm.js → redirectToMobileStateMachine-CXqfo2Gd.esm.js} +40 -22
  173. package/dist/resolveForm-f9PhUo9j.esm.js +143 -0
  174. package/dist/{runChildModule-DPHTqSdF.esm.js → runChildModule-BmteMhR7.esm.js} +2 -2
  175. package/dist/{sdkVersion-C3_P-Qbq.esm.js → sdkVersion-KZROt6l3.esm.js} +1 -1
  176. package/dist/selfie.d.ts +4 -4
  177. package/dist/selfie.esm.js +10 -10
  178. package/dist/{selfieErrorUtils-BL0BLMnp.esm.js → selfieErrorUtils-fqxp645p.esm.js} +1 -1
  179. package/dist/{selfieManager-Cbliomv7.esm.js → selfieManager-A-n3k9Tu.esm.js} +5 -5
  180. package/dist/{selfieManager-BMmpUii2.d.ts → selfieManager-DREuBhXZ.d.ts} +1 -1
  181. package/dist/{selfieStateMachine-B5m_Kn0O.esm.js → selfieStateMachine-48PKdKrw.esm.js} +3 -3
  182. package/dist/{session-DAaAewMX.esm.js → session-D0DWDKp9.esm.js} +4 -4
  183. package/dist/session.d.ts +2 -2
  184. package/dist/session.esm.js +6 -6
  185. package/dist/{sessionInitializer-CWFT4dfw.esm.js → sessionInitializer-I92b2dmL.esm.js} +94 -24
  186. package/dist/{setup-CDAKwTr7.esm.js → setup-BpjzWqR1.esm.js} +25 -27
  187. package/dist/{setup-D9qt8YVU.d.ts → setup-CG6oLkAa.d.ts} +2 -2
  188. package/dist/signature.esm.js +2 -2
  189. package/dist/{signatureManager-BeEVCcsC.esm.js → signatureManager-M9vQBj19.esm.js} +2 -2
  190. package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-0_frzAN5.esm.js} +1 -1
  191. package/dist/{stats-BpMz-hTP.esm.js → stats-C2sigf9p.esm.js} +1 -1
  192. package/dist/stats.esm.js +1 -1
  193. package/dist/step-up.d.ts +378 -0
  194. package/dist/step-up.esm.js +639 -0
  195. package/dist/textRules-D4NRinKY.d.ts +41 -0
  196. package/dist/{tri-BajQnjbf.esm.js → tri-DaUNvo-o.esm.js} +29 -34
  197. package/dist/tri.d.ts +2 -2
  198. package/dist/tri.esm-Df5eKLsY.esm.js +2165 -0
  199. package/dist/tri.esm.js +2 -2
  200. package/dist/{trueSightService-BujtUIW6.esm.js → trueSightService-DHYTBCIn.esm.js} +4 -4
  201. package/dist/trust-graph.esm.js +1 -1
  202. package/dist/types-B-PIc0en.d.ts +115 -0
  203. package/dist/{types-C397LhmN.d.ts → types-BgRHw-dR.d.ts} +1 -1
  204. package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
  205. package/dist/{types-xEEWCx1j.d.ts → types-BqlZSoZ-.d.ts} +5 -5
  206. package/dist/types-CTaL0XJz.d.ts +80 -0
  207. package/dist/{types-e8fCsvvk.d.ts → types-Cbm9J2yF.d.ts} +1 -1
  208. package/dist/{types--3HDl2SF.d.ts → types-CgihAhT_.d.ts} +3 -3
  209. package/dist/{types-ZTZelfbM.d.ts → types-CyNndVAT.d.ts} +14 -6
  210. package/dist/{types-B2FK_wYb.d.ts → types-DEa3taWc.d.ts} +9 -41
  211. package/dist/{types-PTZHRhGX.d.ts → types-P9LzsfRo.d.ts} +3 -2
  212. package/dist/{types-DuD8TRJU.d.ts → types-TisHEbBg.d.ts} +12 -4
  213. package/dist/types-kLsU6Jkt.d.ts +6 -0
  214. package/dist/{urlUtils-eYiyWjh0.esm.js → urlUtils-B2wagB5v.esm.js} +14 -1
  215. package/dist/usStates-CwOQ2kAx.esm.js +209 -0
  216. package/dist/video-selfie.d.ts +5 -4
  217. package/dist/video-selfie.esm.js +9 -7
  218. package/dist/{videoSelfieCameraWarmer-DjkPpoj_.esm.js → videoSelfieCameraWarmer-CTOpqhov.esm.js} +16 -14
  219. package/dist/{videoSelfieStepDetector-RfSmlFFW.d.ts → videoSelfieStepDetector-4XE2QI5q.d.ts} +4 -4
  220. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  221. package/dist/{warmup-BkfxQZsC.esm.js → warmup-9iKKNNuW.esm.js} +69 -20
  222. package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
  223. package/dist/wasm.d.ts +9 -3
  224. package/dist/wasm.esm.js +3 -3
  225. package/dist/{wasmDsFlagSync-BhU5H2oR.esm.js → wasmDsFlagSync-lRIgn5Ic.esm.js} +1 -1
  226. package/dist/{wasmWebClient-DTj9auyA.esm.js → wasmWebClient-C3v3s_4H.esm.js} +34 -19
  227. package/dist/watchlist-for-business.esm.js +2 -2
  228. package/dist/watchlist.esm.js +2 -2
  229. package/dist/{watchlistForBusinessManager-CVay6-9A.esm.js → watchlistForBusinessManager-C1S5y5yj.esm.js} +2 -2
  230. package/dist/{watchlistForBusinessStateMachine-DA6K5na4.esm.js → watchlistForBusinessStateMachine-Bj_hnoK5.esm.js} +1 -1
  231. package/dist/{watchlistManager-B8gQ_rw3.esm.js → watchlistManager-BpegtZbc.esm.js} +2 -2
  232. package/dist/{watchlistStateMachine-CSi_ZhtT.esm.js → watchlistStateMachine-Bgkh1gra.esm.js} +1 -1
  233. package/dist/workflow.d.ts +226 -41
  234. package/dist/workflow.esm.js +163 -67
  235. package/package.json +21 -5
  236. package/dist/addressSearch-41sMcnJk.esm.js +0 -604
  237. package/dist/deepsightLoader-DMxtowCm.esm.js +0 -33
  238. package/dist/tri.esm-CzTNi5Q_.esm.js +0 -3826
  239. package/dist/types-D9r3zRfY.d.ts +0 -6
@@ -3,15 +3,15 @@ import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
4
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
5
5
  import "./index-DpTj5PFb.js";
6
- import "./createFaceAvatar-lYX0VTYs.js";
7
- import { a as RegulationTypes } from "./types-DuD8TRJU.js";
8
- import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-Cqiaxydi.js";
6
+ import "./createFaceAvatar-BimBTONm.js";
7
+ import { a as RegulationTypes } from "./types-TisHEbBg.js";
8
+ import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-BRn0wz8v.js";
9
9
  import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
10
- import { t as BaseWasmProvider } from "./BaseWasmProvider-Bq3OHo7P.js";
11
- import { n as DeepsightService } from "./StreamCanvasCapture-C3xNfOsv.js";
10
+ import { t as BaseWasmProvider } from "./BaseWasmProvider-bBNquvYn.js";
11
+ import { n as DeepsightService } from "./StreamCanvasCapture-ixfy84ys.js";
12
12
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
13
- import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
14
- import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-xEEWCx1j.js";
13
+ import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
14
+ import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-BqlZSoZ-.js";
15
15
  //#region src/internal/http/endpoints.d.ts
16
16
  /**
17
17
  * Backend `CaptureType` for the `captureType` query param on `add/front-id`,
@@ -131,6 +131,8 @@ type ValidationError = {
131
131
  messageDescription?: string;
132
132
  errorKey: IdErrorCode;
133
133
  };
134
+ /** Statsig gate that lets the backend's `idQualityAttemptApproved` decide readability. */
135
+ declare const ID_QUALITY_BACKEND_VALIDATION_GATE = "id_quality_backend_validation";
134
136
  declare function validateUploadResponse(response: UploadIdResponse & {
135
137
  failReason?: string;
136
138
  side?: 'front' | 'back';
@@ -846,4 +848,4 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
846
848
  deviceWalletUseAnotherMethod(): void;
847
849
  };
848
850
  //#endregion
849
- export { addBarcode as A, resumeRecordingAfterPause as B, AddBarcodeParams as C, StartRecordingParams as D, InitializeIdCaptureParams as E, initializeIdCapture as F, validateUploadResponse as G, stopRecording as H, isSuspendableRecordingSession as I, WasmUtilProvider as K, pauseRecordingForAttempt as L, disposeRecordingSession as M, finalizeRecordingSession as N, UploadIdImageParams as O, getRealQualityValue as P, prepareRecordingForCameraRetry as R, idCaptureMachine as S, IdCaptureInitResult as T, stopStream as U, startRecordingSession as V, uploadIdImage as W, idCaptureOnlyMachine as _, RenderWalletError as a, createIdCaptureActor as b, DeviceWalletManager as c, CreateDeviceWalletActorOptions as d, resolveWalletPlatform as f, IdCaptureOnlyMachine as g, createIdCaptureOnlyActor as h, createIdCaptureManagerFromActor as i, barcodeToBase64 as j, ValidationError as k, DeviceWalletState as l, IdCaptureOnlyActor as m, IdCaptureManager as n, RenderWalletParams as o, CreateIdCaptureOnlyActorOptions as p, IdCaptureState as r, renderWallet as s, createIdCaptureManager as t, createDeviceWalletManager as u, CreateIdCaptureActorOptions as v, FinalizedIdRecording as w, IdCaptureMachine as x, IdCaptureActor as y, processId as z };
851
+ export { ValidationError as A, processId as B, AddBarcodeParams as C, InitializeIdCaptureParams as D, IdCaptureInitResult as E, getRealQualityValue as F, uploadIdImage as G, startRecordingSession as H, initializeIdCapture as I, validateUploadResponse as K, isSuspendableRecordingSession as L, barcodeToBase64 as M, disposeRecordingSession as N, StartRecordingParams as O, finalizeRecordingSession as P, pauseRecordingForAttempt as R, idCaptureMachine as S, ID_QUALITY_BACKEND_VALIDATION_GATE as T, stopRecording as U, resumeRecordingAfterPause as V, stopStream as W, idCaptureOnlyMachine as _, RenderWalletError as a, createIdCaptureActor as b, DeviceWalletManager as c, CreateDeviceWalletActorOptions as d, resolveWalletPlatform as f, IdCaptureOnlyMachine as g, createIdCaptureOnlyActor as h, createIdCaptureManagerFromActor as i, addBarcode as j, UploadIdImageParams as k, DeviceWalletState as l, IdCaptureOnlyActor as m, IdCaptureManager as n, RenderWalletParams as o, CreateIdCaptureOnlyActorOptions as p, WasmUtilProvider as q, IdCaptureState as r, renderWallet as s, createIdCaptureManager as t, createDeviceWalletManager as u, CreateIdCaptureActorOptions as v, FinalizedIdRecording as w, IdCaptureMachine as x, IdCaptureActor as y, prepareRecordingForCameraRetry as z };
@@ -1,194 +1,13 @@
1
- import { t as ensureWasmPipelines } from "./setup-CDAKwTr7.esm.js";
2
- import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
3
- import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-DjAG5lsJ.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-BpjzWqR1.esm.js";
2
+ import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
3
+ import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-CmKTG_T5.esm.js";
4
4
  import { i as isDesktop } from "./platform-aPh7gTWh.esm.js";
5
- import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
6
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
7
- import { l as queryCameraPermission } from "./permissionServices-DnBAN_hW.esm.js";
8
- import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-DMBxHKS2.esm.js";
9
- import { i as isBackFacingTrack, t as getBackCameraStream } from "./backCameraStream-C5_NNfUN.esm.js";
5
+ import { n as isBackFacingTrack } from "./backCameraLabel-yda5ugE4.esm.js";
10
6
  import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
11
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-MSQoqScU.esm.js";
12
- //#region src/internal/camera/cameraServices.ts
13
- function createCameraServices(camera) {
14
- return {
15
- async checkPermission() {
16
- return queryCameraPermission();
17
- },
18
- async requestStream(config) {
19
- return camera.requestStream({
20
- facingMode: config.facingMode,
21
- deviceId: config.deviceId
22
- });
23
- },
24
- stopStream(stream) {
25
- camera.stopStream(stream);
26
- },
27
- captureFrame(video) {
28
- return camera.captureFrame(video);
29
- }
30
- };
31
- }
32
- setup({
33
- types: {
34
- context: {},
35
- events: {},
36
- input: {}
37
- },
38
- actors: {
39
- checkPermission: fromPromise(async ({ input }) => {
40
- return createCameraServices(input.camera).checkPermission();
41
- }),
42
- requestStream: fromPromise(async ({ input }) => {
43
- return createCameraServices(input.camera).requestStream(input.config);
44
- })
45
- },
46
- actions: {
47
- setPermissionResult: assign({ permissionResult: ({ event }) => {
48
- if ("output" in event) return event.output;
49
- if (event.type === "PERMISSION_RESULT") return event.result;
50
- } }),
51
- setStream: assign({ stream: ({ event }) => {
52
- if ("output" in event) return event.output;
53
- if (event.type === "STREAM_READY") return event.stream;
54
- } }),
55
- setError: assign({
56
- error: ({ event }) => {
57
- if ("error" in event && event.type?.startsWith?.("xstate.error")) {
58
- const err = event.error;
59
- return err.message || String(err);
60
- }
61
- if (event.type === "STREAM_ERROR") return event.error;
62
- },
63
- errorType: ({ event }) => {
64
- if ("error" in event && event.type?.startsWith?.("xstate.error")) {
65
- const err = event.error;
66
- if (err.name === "NotAllowedError") return "permission_denied";
67
- if (err.name === "NotFoundError") return "not_found";
68
- if (err.name === "NotReadableError") return "not_readable";
69
- if (err.name === "OverconstrainedError") return "overconstrained";
70
- if (err.name === "SecurityError") return "security";
71
- if (err.name === "AbortError") return "abort";
72
- return "unknown";
73
- }
74
- if (event.type === "STREAM_ERROR") return event.errorType;
75
- }
76
- }),
77
- stopStream: ({ context }) => {
78
- if (context.stream) createCameraServices(context.camera).stopStream(context.stream);
79
- },
80
- resetContext: assign(({ context }) => ({
81
- camera: context.camera,
82
- config: context.config,
83
- stream: void 0,
84
- permissionResult: void 0,
85
- error: void 0,
86
- errorType: void 0
87
- }))
88
- },
89
- guards: {
90
- permissionGranted: ({ context }) => context.permissionResult === "granted",
91
- permissionDenied: ({ context }) => context.permissionResult === "denied",
92
- hasStream: ({ context }) => context.stream !== void 0
93
- }
94
- }).createMachine({
95
- id: "camera",
96
- initial: "idle",
97
- context: ({ input }) => ({
98
- camera: input.camera,
99
- config: input.config ?? {},
100
- stream: void 0,
101
- permissionResult: void 0,
102
- error: void 0,
103
- errorType: void 0
104
- }),
105
- states: {
106
- idle: { on: { START: "checkingPermission" } },
107
- checkingPermission: {
108
- invoke: {
109
- id: "checkPermission",
110
- src: "checkPermission",
111
- input: ({ context }) => ({ camera: context.camera }),
112
- onDone: {
113
- target: "routing",
114
- actions: "setPermissionResult"
115
- },
116
- onError: {
117
- target: "routing",
118
- actions: assign({ permissionResult: () => "prompt" })
119
- }
120
- },
121
- on: { STOP: {
122
- target: "idle",
123
- actions: "resetContext"
124
- } }
125
- },
126
- routing: { always: [
127
- {
128
- target: "requesting",
129
- guard: "permissionGranted"
130
- },
131
- {
132
- target: "error",
133
- guard: "permissionDenied",
134
- actions: assign({
135
- error: () => "Camera permission denied",
136
- errorType: () => "permission_denied"
137
- })
138
- },
139
- { target: "requesting" }
140
- ] },
141
- requesting: {
142
- invoke: {
143
- id: "requestStream",
144
- src: "requestStream",
145
- input: ({ context }) => ({
146
- camera: context.camera,
147
- config: context.config
148
- }),
149
- onDone: {
150
- target: "streaming",
151
- actions: "setStream"
152
- },
153
- onError: {
154
- target: "error",
155
- actions: "setError"
156
- }
157
- },
158
- on: { STOP: {
159
- target: "idle",
160
- actions: "resetContext"
161
- } }
162
- },
163
- streaming: {
164
- exit: "stopStream",
165
- on: {
166
- STOP: {
167
- target: "idle",
168
- actions: "resetContext"
169
- },
170
- RESET: {
171
- target: "idle",
172
- actions: "resetContext"
173
- }
174
- }
175
- },
176
- error: { on: {
177
- RESET: {
178
- target: "idle",
179
- actions: "resetContext"
180
- },
181
- STOP: {
182
- target: "idle",
183
- actions: "resetContext"
184
- }
185
- } }
186
- }
187
- });
188
- //#endregion
7
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-DBnOC28H.esm.js";
189
8
  //#region src/modules/id/idCameraStream.ts
190
9
  async function getIdCameraStream(deviceId) {
191
- return getBackCameraStream(deviceId);
10
+ return (await import("./backCameraStream-DS1oDiUq.esm.js").then((n) => n.t)).getBackCameraStream(deviceId);
192
11
  }
193
12
  //#endregion
194
13
  //#region src/modules/id/idCaptureExperiments.ts
@@ -470,6 +289,14 @@ async function initializeIdCapture(params) {
470
289
  function stopStream(stream) {
471
290
  for (const track of stream.getTracks()) track.stop();
472
291
  }
292
+ /** Statsig gate that lets the backend's `idQualityAttemptApproved` decide readability. */
293
+ const ID_QUALITY_BACKEND_VALIDATION_GATE = "id_quality_backend_validation";
294
+ const readabilityIssue = {
295
+ error: true,
296
+ message: "Info is not readable",
297
+ messageDescription: "Minimize camera shake by holding your phone steady",
298
+ errorKey: ID_ERROR_CODES.READABILITY_ISSUE
299
+ };
473
300
  function validateUploadResponse(response, sessionState) {
474
301
  if (response.failReason === "ID_TYPE_UNACCEPTABLE") return {
475
302
  error: true,
@@ -483,17 +310,16 @@ function validateUploadResponse(response, sessionState) {
483
310
  messageDescription: response.side === "back" ? "Please show the back side of your ID" : "Please show the front side of your ID",
484
311
  errorKey: ID_ERROR_CODES.WRONG_DOCUMENT_SIDE
485
312
  };
486
- if (response.failReason === "DOCUMENT_NOT_READABLE") return {
487
- error: true,
488
- message: "Info is not readable",
489
- messageDescription: "Minimize camera shake by holding your phone steady",
490
- errorKey: ID_ERROR_CODES.READABILITY_ISSUE
491
- };
313
+ if (response.failReason === "DOCUMENT_NOT_READABLE") return readabilityIssue;
492
314
  if (!response.classification) return {
493
315
  error: true,
494
316
  message: "ID classification failed",
495
317
  errorKey: ID_ERROR_CODES.CLASSIFICATION_FAILED
496
318
  };
319
+ if (getFeatureGate("id_quality_backend_validation").enabled && response.idQualityAttemptApproved !== void 0 && response.idQualityAttemptApproved !== null) {
320
+ if (response.idQualityAttemptApproved === false) return readabilityIssue;
321
+ return;
322
+ }
497
323
  const sharpnessThreshold = getDeviceClass() === "desktop" ? -1 : SHARPNESS_THRESHOLD;
498
324
  if (response.sharpness !== void 0 && sharpnessThreshold >= 0 && response.sharpness < sharpnessThreshold) return {
499
325
  error: true,
@@ -607,12 +433,17 @@ async function startRecordingSession(params) {
607
433
  if (multipartSession) multipartSession.recorderPaused = false;
608
434
  return params.existing;
609
435
  }
436
+ const [compositorModule, recorderModule, serviceModule] = await Promise.all([
437
+ import("./CameraCompositor-DN7NkJzV.esm.js").then((n) => n.n),
438
+ import("./WorkerEncoderRecordingProvider-CyCrQnZR.esm.js").then((n) => n.n),
439
+ import("./multipartRecordingService-CCiRpByl.esm.js").then((n) => n.n)
440
+ ]);
610
441
  const recordingSource = params.stream.clone();
611
- const compositor = createRecordingCompositor();
442
+ const compositor = compositorModule.createRecordingCompositor();
612
443
  let service;
613
444
  try {
614
445
  const recordingStream = compositor.start(recordingSource);
615
- service = new MultipartRecordingService(params.type, new WorkerEncoderRecordingProvider(compositor));
446
+ service = new serviceModule.MultipartRecordingService(params.type, new recorderModule.WorkerEncoderRecordingProvider(compositor));
616
447
  await service.start(recordingStream);
617
448
  } catch (error) {
618
449
  compositor.stop();
@@ -761,4 +592,4 @@ async function addBarcode(params) {
761
592
  return res.data;
762
593
  }
763
594
  //#endregion
764
- export { getIdCameraStream as C, OPTIMIZING_WATCHDOG_MARGIN_MS as S, ID_ERROR_CODES as _, getRealQualityValue as a, resolveIdCaptureThresholds as b, pauseRecordingForAttempt as c, resumeRecordingAfterPause as d, startRecordingSession as f, validateUploadResponse as g, uploadIdImage as h, finalizeRecordingSession as i, prepareRecordingForCameraRetry as l, stopStream as m, barcodeToBase64 as n, initializeIdCapture as o, stopRecording as p, disposeRecordingSession as r, isSuspendableRecordingSession as s, addBarcode as t, processId as u, resolveCaptureOptimizingTreatment as v, CAPTURE_OPTIMIZING as x, resolveCountdownStepMs as y };
595
+ export { OPTIMIZING_WATCHDOG_MARGIN_MS as C, CAPTURE_OPTIMIZING as S, validateUploadResponse as _, finalizeRecordingSession as a, resolveCountdownStepMs as b, isSuspendableRecordingSession as c, processId as d, resumeRecordingAfterPause as f, uploadIdImage as g, stopStream as h, disposeRecordingSession as i, pauseRecordingForAttempt as l, stopRecording as m, addBarcode as n, getRealQualityValue as o, startRecordingSession as p, barcodeToBase64 as r, initializeIdCapture as s, ID_QUALITY_BACKEND_VALIDATION_GATE as t, prepareRecordingForCameraRetry as u, ID_ERROR_CODES as v, getIdCameraStream as w, resolveIdCaptureThresholds as x, resolveCaptureOptimizingTreatment as y };
@@ -1,34 +1,34 @@
1
1
  import { n as getTimestamp, r as revokeObjectURL } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
- import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-CDAKwTr7.esm.js";
3
- import { t as WasmUtilProvider } from "./WasmUtilProvider-GTkoJyFY.esm.js";
4
- import { n as eventModuleNames, o as createManagerInstrumentation, s as recordExperimentAssignmentOnce, y as addEvent } from "./events-CQteqXfy.esm.js";
5
- import { r as getToken, t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
6
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-BujtUIW6.esm.js";
7
- import { t as getDisableIpify } from "./sessionInitializer-CWFT4dfw.esm.js";
2
+ import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-BpjzWqR1.esm.js";
3
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-C_puwvVn.esm.js";
4
+ import { n as eventModuleNames, o as createManagerInstrumentation, s as recordExperimentAssignmentOnce, y as addEvent } from "./events-C7h7oaTE.esm.js";
5
+ import { r as getToken, t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
6
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-DHYTBCIn.esm.js";
7
+ import { n as getDisableIpify } from "./sessionInitializer-I92b2dmL.esm.js";
8
8
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
9
- import { s as exposeExperimentOnce } from "./feature-management-DjAG5lsJ.esm.js";
10
- import { t as addDeviceStats } from "./stats-BpMz-hTP.esm.js";
9
+ import { s as exposeExperimentOnce } from "./feature-management-CmKTG_T5.esm.js";
10
+ import { t as addDeviceStats } from "./stats-C2sigf9p.esm.js";
11
11
  import { a as isIOS, c as isIPhone14OrHigher, f as isSamsungDevice, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-aPh7gTWh.esm.js";
12
- import "./session-DAaAewMX.esm.js";
12
+ import "./session-D0DWDKp9.esm.js";
13
13
  import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
14
14
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
15
- import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-eYiyWjh0.esm.js";
15
+ import { r as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-B2wagB5v.esm.js";
16
16
  import { s as isCameraDenialErrorName } from "./camera-E_Kcre4O.esm.js";
17
- import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-DnBAN_hW.esm.js";
18
- import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-kHY2IDJi.esm.js";
17
+ import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-CZpORUWY.esm.js";
18
+ import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-Dvvw7PRY.esm.js";
19
19
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
20
- import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-B3OPL8Si.esm.js";
21
- import { t as carryAttempts } from "./attemptCarry-BjTJ6bMQ.esm.js";
22
- import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-DMBxHKS2.esm.js";
20
+ import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DjQUR1du.esm.js";
21
+ import { t as carryAttempts } from "./attemptCarry-zQH85Elh.esm.js";
22
+ import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
23
23
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
24
24
  import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
25
- import { r as isBackCameraLabel } from "./backCameraStream-C5_NNfUN.esm.js";
25
+ import { t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
26
26
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
27
- import { n as frameSources, r as runVirtualCameraCheck } from "./deepsightService-twg3bXqY.esm.js";
28
27
  import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
29
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-MSQoqScU.esm.js";
30
- import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as ID_ERROR_CODES, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, x as CAPTURE_OPTIMIZING, y as resolveCountdownStepMs } from "./idCaptureServices-8OHinO0N.esm.js";
28
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-DBnOC28H.esm.js";
29
+ import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-BIF_7rub.esm.js";
31
30
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
31
+ import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-eFOm2C9q.esm.js";
32
32
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
33
33
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
34
34
  function isKnownFailReason(reason) {
@@ -1382,7 +1382,20 @@ function getPermissionOutput(event) {
1382
1382
  }
1383
1383
  const hasShowTutorialGuard = ({ context }) => context.config.showTutorial;
1384
1384
  const hasAgeAssuranceGuard = ({ context }) => context.config.ageAssurance === true;
1385
- const hasShowDocumentChooserGuard = ({ context }) => !context.config.onlyBack && (context.config.showDocumentChooserScreen ?? false);
1385
+ /** Camera capture has something to capture: an ID or a passport is accepted. */
1386
+ const hasPhysicalDocumentType = (context) => context.availableDocumentTypes.some((type) => type === "id" || type === "passport");
1387
+ /**
1388
+ * The chooser shows when configured, and also when only digital-ID options
1389
+ * are available: hiding it would otherwise fall through to camera capture of
1390
+ * a document the module does not accept (PRI-6436).
1391
+ */
1392
+ const hasShowDocumentChooserGuard = ({ context }) => context.availableDocumentTypes.length > 0 && !hasPhysicalDocumentType(context) || !context.config.onlyBack && (context.config.showDocumentChooserScreen ?? false);
1393
+ /**
1394
+ * Chooser hidden and a single web-redirect provider (e.g. FTN) is the only
1395
+ * option: enter it directly. Unlike the device wallet, the redirect needs no
1396
+ * user activation, so no chooser click is required (PRI-6436).
1397
+ */
1398
+ const isSoleDigitalIdRedirectWithoutChooserGuard = ({ context }) => !(context.config.showDocumentChooserScreen ?? false) && context.availableDocumentTypes.length === 1 && context.availableDocumentTypes[0] === "digitalIdRedirect" && context.digitalIdRedirectOptions.length === 1;
1386
1399
  const isPermissionGrantedGuard = ({ event }) => {
1387
1400
  return getPermissionOutput(event) === "granted";
1388
1401
  };
@@ -2031,7 +2044,7 @@ fromPromise(async ({ input }) => {
2031
2044
  });
2032
2045
  fromPromise(async ({ input }) => {
2033
2046
  if (!input.dependencies) return;
2034
- const { loadDeepsightSession } = await import("./deepsightLoader-DMxtowCm.esm.js");
2047
+ const { loadDeepsightSession } = await import("./deepsightLoader-BKCT8UT1.esm.js");
2035
2048
  return loadDeepsightSession({
2036
2049
  ds: input.ds,
2037
2050
  storage: input.dependencies.storage,
@@ -2474,7 +2487,7 @@ function cleanup(service) {
2474
2487
  service.cleanup();
2475
2488
  } catch {}
2476
2489
  }
2477
- function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-DMxtowCm.esm.js")).loadDeepsightSession(input)) {
2490
+ function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-BKCT8UT1.esm.js")).loadDeepsightSession(input)) {
2478
2491
  let disposed = false;
2479
2492
  let preparation;
2480
2493
  let service;
@@ -4380,6 +4393,10 @@ const idCaptureMachine = setup({
4380
4393
  performStopMediaRecording(context);
4381
4394
  },
4382
4395
  clearRecordingSession: assign({ recordingSession: () => void 0 }),
4396
+ selectSoleDigitalIdRedirect: assign({
4397
+ selectedDocumentType: () => "digitalIdRedirect",
4398
+ selectedDigitalIdProviderId: ({ context }) => context.digitalIdRedirectOptions[0]?.providerId
4399
+ }),
4383
4400
  setSelectedDocument: assign({
4384
4401
  selectedDocumentType: ({ event }) => {
4385
4402
  if ("documentType" in event) return event.documentType;
@@ -4624,6 +4641,7 @@ const idCaptureMachine = setup({
4624
4641
  isDeepsightReady: isDeepsightReadyGuard,
4625
4642
  needsDeepsightInit: needsDeepsightInitGuard,
4626
4643
  hasNoDocumentTypesAvailable: hasNoDocumentTypesAvailableGuard,
4644
+ isSoleDigitalIdRedirectWithoutChooser: isSoleDigitalIdRedirectWithoutChooserGuard,
4627
4645
  isDigitalIdUploadSelected: ({ event }) => isDigitalIdUploadSelectedGuard({ event: asPublicIdEvent(event) }),
4628
4646
  isDigitalIdRedirectSelected: ({ event }) => isDigitalIdRedirectSelectedGuard({ event: asPublicIdEvent(event) }),
4629
4647
  isDigitalIdSelected: ({ event }) => isDigitalIdSelectedGuard({ event: asPublicIdEvent(event) }),
@@ -4796,6 +4814,11 @@ const idCaptureMachine = setup({
4796
4814
  guard: "hasNoDocumentTypesAvailable",
4797
4815
  actions: [() => console.error(ID_CAPTURE_NO_DOCUMENT_TYPES_ERROR), assign({ error: () => ID_CAPTURE_NO_DOCUMENT_TYPES_ERROR })]
4798
4816
  },
4817
+ {
4818
+ target: "digitalIdRedirect",
4819
+ guard: "isSoleDigitalIdRedirectWithoutChooser",
4820
+ actions: ["selectSoleDigitalIdRedirect"]
4821
+ },
4799
4822
  {
4800
4823
  target: "detectingCountry",
4801
4824
  guard: and(["hasShowDocumentChooser", "needsCountryDetection"])
@@ -5896,6 +5919,11 @@ const idCaptureMachine = setup({
5896
5919
  target: "#idCapture.finished",
5897
5920
  actions: ["storeDigitalIdRedirectResult", "clearPendingDigitalIdRedirect"]
5898
5921
  },
5922
+ {
5923
+ target: "closed",
5924
+ guard: "isSoleDigitalIdRedirectWithoutChooser",
5925
+ actions: ["clearPendingDigitalIdRedirect"]
5926
+ },
5899
5927
  {
5900
5928
  target: "detectingCountry",
5901
5929
  guard: and(["hasShowDocumentChooser", "needsCountryDetection"]),
@@ -0,0 +1,18 @@
1
+ import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
2
+ //#region src/modules/id-ocr/idOcrCpfUtils.ts
3
+ function formatCPF(value) {
4
+ const digits = value.replace(/\D/g, "").slice(0, 11);
5
+ const first = digits.slice(0, 3);
6
+ const second = digits.slice(3, 6);
7
+ const third = digits.slice(6, 9);
8
+ const verifier = digits.slice(9, 11);
9
+ if (digits.length > 9) return `${first}.${second}.${third}-${verifier}`;
10
+ if (digits.length > 6) return `${first}.${second}.${third}`;
11
+ if (digits.length > 3) return `${first}.${second}`;
12
+ return first;
13
+ }
14
+ function isValidCPF(value) {
15
+ return validateCPF(value);
16
+ }
17
+ //#endregion
18
+ export { isValidCPF as n, formatCPF as t };
@@ -1,7 +1,7 @@
1
1
  import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
- import { a as UpdateOcrResponse, i as UpdateOcrDataParams, n as OcrData, t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
4
+ import { a as UpdateOcrResponse, i as UpdateOcrDataParams, n as OcrData, t as IdOcrConfig } from "./types-Bpo97EOh.js";
5
5
  //#region src/modules/id-ocr/idOcrStateMachine.d.ts
6
6
  type IdOcrOcrDocument = 'first' | 'second';
7
7
  type IdOcrContext = {
@@ -109,7 +109,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
109
109
  type: "shouldProceedWithoutSubmitToSecondId";
110
110
  params: unknown;
111
111
  };
112
- }>, never, "error" | "idle" | "success" | "finished" | "submitting" | "loading" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
112
+ }>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
113
113
  readonly id: "idOcr";
114
114
  readonly initial: "idle";
115
115
  readonly context: ({ input }: {
@@ -210,7 +210,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
210
210
  config: IdOcrConfig;
211
211
  formData: UpdateOcrDataParams;
212
212
  editedFields: {};
213
- activeOcrDocument: IdOcrOcrDocument;
213
+ activeOcrDocument: "second" | "first";
214
214
  };
215
215
  readonly states: {
216
216
  readonly idle: {
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as idOcrStateMachine } from "./idOcrStateMachine-B1aZnobs.esm.js";
3
+ import { t as idOcrStateMachine } from "./idOcrStateMachine-MAGnpWkb.esm.js";
4
4
  //#region src/modules/id-ocr/idOcrActor.ts
5
5
  function createIdOcrActor(options) {
6
6
  return createActor(idOcrStateMachine, { input: { config: options.config } }).start();
@@ -1,8 +1,9 @@
1
1
  import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
- import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
2
+ import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
- import { n as DateFormattingProvider, t as validateCPF } from "./cpf-uAZTPUBy.esm.js";
5
+ import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
6
+ import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
6
7
  //#region src/modules/id-ocr/idOcrUtils.ts
7
8
  const dateFormattingInstance$1 = new DateFormattingProvider();
8
9
  const resolveFullName = (data) => {
@@ -255,8 +256,8 @@ const idOcrStateMachine = setup({
255
256
  editedFields: {},
256
257
  validationErrors: void 0
257
258
  })),
258
- resetForRetry: assign(() => ({
259
- activeOcrDocument: "first",
259
+ resetForRetry: assign(({ context }) => ({
260
+ activeOcrDocument: context.config.ocrDocument ?? "first",
260
261
  formData: emptyOcrData(),
261
262
  editedFields: {},
262
263
  error: void 0,
@@ -266,10 +267,10 @@ const idOcrStateMachine = setup({
266
267
  },
267
268
  guards: {
268
269
  isOcrEditable: ({ context }) => context.config.editableOcr === true,
269
- shouldLoadSecondOcrAfterFirst: ({ context }) => context.config.secondId === true && context.activeOcrDocument === "first",
270
+ shouldLoadSecondOcrAfterFirst: ({ context }) => context.config.ocrDocument === void 0 && context.config.secondId === true && context.activeOcrDocument === "first",
270
271
  isOcrFormValid: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0,
271
272
  shouldSubmit: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0 && Object.keys(context.editedFields).length > 0,
272
- shouldProceedWithoutSubmitToSecondId: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0 && Object.keys(context.editedFields).length === 0 && context.config.secondId === true && context.activeOcrDocument === "first"
273
+ shouldProceedWithoutSubmitToSecondId: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0 && Object.keys(context.editedFields).length === 0 && context.config.ocrDocument === void 0 && context.config.secondId === true && context.activeOcrDocument === "first"
273
274
  }
274
275
  }).createMachine({
275
276
  id: "idOcr",
@@ -280,7 +281,7 @@ const idOcrStateMachine = setup({
280
281
  config: input.config,
281
282
  formData: data,
282
283
  editedFields: {},
283
- activeOcrDocument: "first"
284
+ activeOcrDocument: input.config.ocrDocument ?? "first"
284
285
  };
285
286
  },
286
287
  states: {
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as idVerificationMachine } from "./idVerificationStateMachine-DQn6c84z.esm.js";
3
+ import { t as idVerificationMachine } from "./idVerificationStateMachine-D5mBN2Ye.esm.js";
4
4
  //#region src/modules/id-verification/idVerificationActor.ts
5
5
  function createIdVerificationActor(options) {
6
6
  return createActor(idVerificationMachine, { input: { config: options.config } }).start();
@@ -1,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
2
2
  import { t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
4
  //#region src/modules/id-verification/idVerificationServices.ts
@@ -1,3 +1,3 @@
1
- import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-Bcnkbjf8.esm.js";
2
- import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-DDXkNVZi.esm.js";
1
+ import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-D5bXgw9h.esm.js";
2
+ import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-M8-BTjar.esm.js";
3
3
  export { SCAN_NEW_DOCUMENT, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { n as identityReuseMachine } from "./identityReuseStateMachine-Bcnkbjf8.esm.js";
3
+ import { n as identityReuseMachine } from "./identityReuseStateMachine-D5bXgw9h.esm.js";
4
4
  //#region src/modules/identity-reuse/identityReuseActor.ts
5
5
  /**
6
6
  * Creates and starts an IdentityReuse actor.
@@ -1,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
2
2
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
4
  //#region src/modules/identity-reuse/identityReuseServices.ts