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

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 (272) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-ppyMYVoY.esm.js} +1 -1
  3. package/dist/{FaceDetectionProvider-BSLpXAGx.esm.js → FaceDetectionProvider-2NzWDbV8.esm.js} +8 -8
  4. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  5. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  6. package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-CduV32Qa.esm.js} +1 -1
  7. package/dist/{WasmUtilProvider-C_puwvVn.esm.js → WasmUtilProvider-DdhAHHw4.esm.js} +40 -4
  8. package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-CsDED9UU.esm.js} +1 -1
  9. package/dist/{addressSearch-B_4JYKa-.esm.js → addressSearch-Rxm1K67A.esm.js} +5 -4
  10. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  11. package/dist/ae-signature.d.ts +2 -2
  12. package/dist/ae-signature.esm.js +1 -1
  13. package/dist/antifraud.d.ts +1 -1
  14. package/dist/antifraud.esm.js +2 -2
  15. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  16. package/dist/{antifraudManager-BWCVkSu2.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
  17. package/dist/{antifraudStateMachine-CX9I2f3s.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
  18. package/dist/{api-BSnbg4HO.esm.js → api-CZpuJuZl.esm.js} +1 -1
  19. package/dist/{apiError-Bmwy1Fa7.esm.js → apiError-BamZ815u.esm.js} +1 -1
  20. package/dist/{attemptCarry-zQH85Elh.esm.js → attemptCarry-BecGGZK8.esm.js} +1 -1
  21. package/dist/authentication.d.ts +3 -3
  22. package/dist/authentication.esm.js +2 -2
  23. package/dist/{authenticationManager-CISxaY6N.d.ts → authenticationManager-DRaugLgH.d.ts} +2 -2
  24. package/dist/{authenticationManager-BoiOaB0m.esm.js → authenticationManager-yBVGiIf_.esm.js} +7 -6
  25. package/dist/{authenticationStateMachine-BMD1JLwr.esm.js → authenticationStateMachine-DPqTOJPp.esm.js} +50 -18
  26. package/dist/{browser-pQZA35G2-PIj2uGBm.esm.js → browser-pQZA35G2-DxIBykpe.esm.js} +1 -1
  27. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  28. package/dist/camera.esm.js +1 -1
  29. package/dist/certificate-issuance.d.ts +1 -1
  30. package/dist/certificate-issuance.esm.js +2 -2
  31. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  32. package/dist/{certificateIssuanceManager-DzDuQTsK.esm.js → certificateIssuanceManager-Dxl9UwR0.esm.js} +5 -3
  33. package/dist/{certificateIssuanceStateMachine-BAOYLACb.esm.js → certificateIssuanceStateMachine-CM4q71h1.esm.js} +3 -3
  34. package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
  35. package/dist/consent.d.ts +1 -1
  36. package/dist/consent.esm.js +2 -2
  37. package/dist/{consentManager-7aHaehwF.d.ts → consentManager-B2F_VeAo.d.ts} +8 -7
  38. package/dist/{consentManager-DFSKQTcR.esm.js → consentManager-BPocwpm2.esm.js} +5 -3
  39. package/dist/{consentStateMachine-4nZIH2O8.esm.js → consentStateMachine-DgiIcT9q.esm.js} +3 -3
  40. package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
  41. package/dist/cross-document-data-match.d.ts +1 -1
  42. package/dist/cross-document-data-match.esm.js +1 -1
  43. package/dist/{crossDocumentDataMatchManager-D7ka2qOC.esm.js → crossDocumentDataMatchManager-BfA29Aji.esm.js} +6 -4
  44. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  45. package/dist/curp-DZGvefg3.esm.js +14 -0
  46. package/dist/curp-validation.d.ts +1 -1
  47. package/dist/curp-validation.esm.js +2 -2
  48. package/dist/{curpValidationManager-BVTt7IgC.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -4
  49. package/dist/{curpValidationManager-DEqTUWdu.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
  50. package/dist/{curpValidationStateMachine-FB_MRbZQ.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +5 -5
  51. package/dist/custom-fields.d.ts +1 -1
  52. package/dist/custom-fields.esm.js +1 -1
  53. package/dist/custom-watchlist.d.ts +1 -1
  54. package/dist/custom-watchlist.esm.js +2 -2
  55. package/dist/{customFieldsManager-gbsq53p6.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
  56. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  57. package/dist/{customWatchlistManager-50APwk4Z.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
  58. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  59. package/dist/{customWatchlistStateMachine-CpEVPzuT.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
  60. package/dist/{deepsightLoader-BKCT8UT1.esm.js → deepsightLoader-CEY2mSPM.esm.js} +5 -5
  61. package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
  62. package/dist/{desktopCameraElection-Dvvw7PRY.esm.js → desktopCameraElection-enVPfRsQ.esm.js} +4 -4
  63. package/dist/document-capture.d.ts +1 -1
  64. package/dist/document-capture.esm.js +2 -2
  65. package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-BZBmcOKI.d.ts} +5 -4
  66. package/dist/{documentCaptureManager-BG5TuqJz.esm.js → documentCaptureManager-C11k5BO-.esm.js} +5 -3
  67. package/dist/{documentCaptureStateMachine-C7PW_Ah9.esm.js → documentCaptureStateMachine-g0gfL0_1.esm.js} +6 -6
  68. package/dist/dynamic-forms.d.ts +1 -1
  69. package/dist/dynamic-forms.esm.js +2 -2
  70. package/dist/{dynamicFormsManager-B0bpHhhJ.esm.js → dynamicFormsManager-BmfCZ2zV.esm.js} +5 -3
  71. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  72. package/dist/{dynamicFormsStateMachine-2ZHyejBc.esm.js → dynamicFormsStateMachine-B-eYytau.esm.js} +4 -4
  73. package/dist/ekyb.d.ts +3 -3
  74. package/dist/ekyb.esm.js +2 -2
  75. package/dist/{ekybManager-P9mC7W9J.esm.js → ekybManager-BPaMfbgw.esm.js} +5 -3
  76. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  77. package/dist/{ekybStateMachine-C7HKaeVr.esm.js → ekybStateMachine-C_lEw4I7.esm.js} +18 -20
  78. package/dist/ekyc-prefill.d.ts +1 -1
  79. package/dist/ekyc-prefill.esm.js +2 -2
  80. package/dist/ekyc.d.ts +2 -2
  81. package/dist/ekyc.esm.js +3 -3
  82. package/dist/{ekycManager-q1fos6IY.d.ts → ekycManager-BKVQazAb.d.ts} +47 -6
  83. package/dist/{ekycManager-CeeJoRFY.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
  84. package/dist/{ekycPrefillManager-C6BFFKxc.esm.js → ekycPrefillManager-CCtbmrFd.esm.js} +3 -2
  85. package/dist/{ekycPrefillManager-PPGVZbWk.d.ts → ekycPrefillManager-DOTl3Y2w.d.ts} +8 -7
  86. package/dist/{ekycPrefillStateMachine-Dku90kZL.esm.js → ekycPrefillStateMachine-XpxgCAoC.esm.js} +11 -10
  87. package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-DXP2hqVw.esm.js} +198 -38
  88. package/dist/{ekycStateMachine-DBTczgGE.esm.js → ekycStateMachine-nwJRel2s.esm.js} +333 -64
  89. package/dist/{ekycUtils-Dcff8BOD.esm.js → ekycUtils-FcqA6oU4.esm.js} +44 -43
  90. package/dist/electronic-signature.d.ts +1 -1
  91. package/dist/electronic-signature.esm.js +1 -1
  92. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  93. package/dist/{electronicSignatureManager-BKQuhJm_.esm.js → electronicSignatureManager-M2O2VDks.esm.js} +7 -5
  94. package/dist/email.d.ts +1 -1
  95. package/dist/email.esm.js +2 -2
  96. package/dist/{emailManager-CGmKbsBL.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
  97. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  98. package/dist/{emailStateMachine-CGY1UGs2.esm.js → emailStateMachine-CTEaYncs.esm.js} +4 -4
  99. package/dist/events-CP3yOzAl.esm.js +299 -0
  100. package/dist/events.d.ts +3 -1
  101. package/dist/events.esm.js +2 -1
  102. package/dist/extensibility.d.ts +39 -39
  103. package/dist/extensibility.esm.js +38 -38
  104. package/dist/face-match.d.ts +1 -1
  105. package/dist/face-match.esm.js +2 -2
  106. package/dist/{faceCaptureManagerFactory-ClFsByZc.esm.js → faceCaptureManagerFactory-3Or5qfbA.esm.js} +17 -6
  107. package/dist/{faceCaptureManagerFactory-BVwVGa3z.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +14 -7
  108. package/dist/{faceCaptureSetup-9hv5GC_H.esm.js → faceCaptureSetup-Cf87i0rT.esm.js} +46 -38
  109. package/dist/{faceMatchManager-BZtEw6bB.d.ts → faceMatchManager-C5b5WtcY.d.ts} +3 -2
  110. package/dist/{faceMatchManager-CRe7Nvm6.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
  111. package/dist/{faceMatchStateMachine-EX9QhxFE.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +18 -6
  112. package/dist/{feature-management-CmKTG_T5.esm.js → feature-management-DG016L6E.esm.js} +1 -1
  113. package/dist/feature-management.esm.js +1 -1
  114. package/dist/field-comparison.d.ts +1 -1
  115. package/dist/field-comparison.esm.js +1 -1
  116. package/dist/{fieldComparisonManager-DuosZJso.esm.js → fieldComparisonManager-VgCU4X96.esm.js} +6 -4
  117. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  118. package/dist/fiscal-qr.d.ts +1 -1
  119. package/dist/fiscal-qr.esm.js +1 -1
  120. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  121. package/dist/{fiscalQrManager-ji0qDaTW.esm.js → fiscalQrManager-DOLq45ph.esm.js} +6 -4
  122. package/dist/flow-events.d.ts +1 -1
  123. package/dist/flow.d.ts +47 -11
  124. package/dist/flow.esm.js +214 -58
  125. package/dist/{flowCompletionService-DvcH16XO.esm.js → flowCompletionService-BpeAbbXc.esm.js} +2 -2
  126. package/dist/{flowServices-Ca2vKNt2.esm.js → flowServices-rDg1bAMs.esm.js} +373 -12
  127. package/dist/geolocation.d.ts +1 -1
  128. package/dist/geolocation.esm.js +2 -2
  129. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
  130. package/dist/{geolocationManager-CiG32lIm.esm.js → geolocationManager-T8m4lqvF.esm.js} +5 -3
  131. package/dist/{geolocationStateMachine-5rnTEOuw.esm.js → geolocationStateMachine-NWmA1Dtn.esm.js} +5 -5
  132. package/dist/government-validation.d.ts +1 -1
  133. package/dist/government-validation.esm.js +2 -2
  134. package/dist/{governmentValidationManager-BivVZNVe.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
  135. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  136. package/dist/{governmentValidationStateMachine-CeSDNgha.esm.js → governmentValidationStateMachine-wBunpfQ9.esm.js} +3 -3
  137. package/dist/home.d.ts +4 -3
  138. package/dist/home.esm.js +4 -2
  139. package/dist/http.esm.js +1 -1
  140. package/dist/id-ocr.d.ts +1 -1
  141. package/dist/id-ocr.esm.js +3 -3
  142. package/dist/id-selfie-flow.d.ts +4 -3
  143. package/dist/id-selfie-flow.esm.js +12 -11
  144. package/dist/id-verification.d.ts +1 -1
  145. package/dist/id-verification.esm.js +2 -2
  146. package/dist/id.d.ts +2 -2
  147. package/dist/id.esm.js +3 -3
  148. package/dist/{idCaptureDefaults-DBnOC28H.esm.js → idCaptureDefaults-Cjesf5i9.esm.js} +1 -1
  149. package/dist/{idCaptureManager-B5xqok0L.esm.js → idCaptureManager-5-ReVgbB.esm.js} +12 -10
  150. package/dist/{idCaptureManager-CG8zbAp0.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +7 -6
  151. package/dist/{idCaptureServices-BIF_7rub.esm.js → idCaptureServices-exB6I9lV.esm.js} +7 -7
  152. package/dist/{idCaptureStateMachine-B5cfgKvn.esm.js → idCaptureStateMachine-DQ14d3GR.esm.js} +21 -19
  153. package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
  154. package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-C0C7lFGd.d.ts} +4 -3
  155. package/dist/{idOcrManager-DNbVTMIu.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
  156. package/dist/{idOcrStateMachine-MAGnpWkb.esm.js → idOcrStateMachine-B832arAl.esm.js} +4 -4
  157. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  158. package/dist/{idVerificationManager-BEAkamNm.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
  159. package/dist/{idVerificationStateMachine-D5mBN2Ye.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
  160. package/dist/identity-reuse.d.ts +2 -2
  161. package/dist/identity-reuse.esm.js +2 -2
  162. package/dist/identity-search.d.ts +97 -0
  163. package/dist/identity-search.esm.js +97 -0
  164. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
  165. package/dist/{identityReuseManager-M8-BTjar.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
  166. package/dist/{identityReuseStateMachine-D5bXgw9h.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
  167. package/dist/index-DHuAkTe0.d.ts +1 -0
  168. package/dist/{index-Btj1EhiM.d.ts → index-DM43R87x.d.ts} +1 -1
  169. package/dist/{index-CSPOoqah.d.ts → index-DxYNO94y.d.ts} +2 -2
  170. package/dist/index.d.ts +1 -1
  171. package/dist/index.esm.js +1 -1
  172. package/dist/{invokeOnCaptureCallback-C1-j4fsq.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
  173. package/dist/kyb-checks.d.ts +1 -1
  174. package/dist/kyb-checks.esm.js +2 -2
  175. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  176. package/dist/{kybChecksManager-CnqwgKoV.esm.js → kybChecksManager-CZfdCkLC.esm.js} +3 -2
  177. package/dist/{kybChecksStateMachine-Be41K_NS.esm.js → kybChecksStateMachine-DkWxSU4L.esm.js} +8 -7
  178. package/dist/mandatory-consent.d.ts +2 -2
  179. package/dist/mandatory-consent.esm.js +2 -2
  180. package/dist/{mandatoryConsentManager-CYOJd_IZ.d.ts → mandatoryConsentManager-Bh1asNJh.d.ts} +9 -8
  181. package/dist/{mandatoryConsentManager-LFhUlLvO.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +5 -3
  182. package/dist/{mandatoryConsentStateMachine-DTSyDqQs.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +3 -3
  183. package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-g1TwTlhd.esm.js} +20 -3
  184. package/dist/{multipartRecordingService-CCiRpByl.esm.js → multipartRecordingService-WgK8ieRI.esm.js} +2 -2
  185. package/dist/{permissionGuards-DjQUR1du.esm.js → permissionGuards-D-4_VU7-.esm.js} +1 -1
  186. package/dist/{permissionServices-CZpORUWY.esm.js → permissionServices-DpccEnzE.esm.js} +1 -1
  187. package/dist/phone.d.ts +1 -1
  188. package/dist/phone.esm.js +2 -2
  189. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  190. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  191. package/dist/{phoneManager-C-qD3p3N.esm.js → phoneManager-rA7updqF.esm.js} +5 -3
  192. package/dist/{phoneServices-BdR1nmSO.esm.js → phoneServices-CFXcwCFr.esm.js} +1 -1
  193. package/dist/{phoneStateMachine-2FMTdjtJ.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +4 -4
  194. package/dist/{processFaceMatch-B1YnoBer.esm.js → processFaceMatch-B_DkDTE5.esm.js} +1 -1
  195. package/dist/qe-signature.d.ts +2 -2
  196. package/dist/qe-signature.esm.js +1 -1
  197. package/dist/{recordingService-BVSCo0ac.esm.js → recordingService-DxiwS8TV.esm.js} +5 -5
  198. package/dist/redirect-to-mobile.d.ts +1 -1
  199. package/dist/redirect-to-mobile.esm.js +2 -2
  200. package/dist/{redirectToMobileManager-CqyDfDxs.esm.js → redirectToMobileManager-DTB_pWuS.esm.js} +6 -4
  201. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
  202. package/dist/{redirectToMobileStateMachine-CXqfo2Gd.esm.js → redirectToMobileStateMachine-nP9DM01_.esm.js} +3 -3
  203. package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
  204. package/dist/{runChildModule-BmteMhR7.esm.js → runChildModule-CXLcOcXN.esm.js} +8 -6
  205. package/dist/{sdkVersion-KZROt6l3.esm.js → sdkVersion-fqxsdqFZ.esm.js} +1 -1
  206. package/dist/selfie.d.ts +3 -3
  207. package/dist/selfie.esm.js +13 -12
  208. package/dist/{selfieErrorUtils-fqxp645p.esm.js → selfieErrorUtils-MOfYdGPz.esm.js} +1 -1
  209. package/dist/{selfieManager-DREuBhXZ.d.ts → selfieManager-DihwheJ6.d.ts} +2 -2
  210. package/dist/{selfieManager-A-n3k9Tu.esm.js → selfieManager-Dq8tIqGd.esm.js} +7 -6
  211. package/dist/{selfieStateMachine-48PKdKrw.esm.js → selfieStateMachine-BZVDQB8R.esm.js} +5 -5
  212. package/dist/{session-D0DWDKp9.esm.js → session-C7x_iJ-p.esm.js} +4 -4
  213. package/dist/session.d.ts +1 -1
  214. package/dist/session.esm.js +5 -5
  215. package/dist/{sessionInitializer-I92b2dmL.esm.js → sessionInitializer-k-hKIBg8.esm.js} +9 -8
  216. package/dist/{setup-BpjzWqR1.esm.js → setup-BRbhjHiU.esm.js} +10 -9
  217. package/dist/{setup-CG6oLkAa.d.ts → setup-CpXbdA1X.d.ts} +1 -1
  218. package/dist/signature.d.ts +1 -1
  219. package/dist/signature.esm.js +2 -2
  220. package/dist/{signatureManager-M9vQBj19.esm.js → signatureManager-BgAja97K.esm.js} +5 -3
  221. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  222. package/dist/{signatureStateMachine-0_frzAN5.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
  223. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  224. package/dist/{stats-C2sigf9p.esm.js → stats-DoByUnTa.esm.js} +1 -1
  225. package/dist/stats.esm.js +1 -1
  226. package/dist/step-up.d.ts +3 -2
  227. package/dist/step-up.esm.js +2 -1
  228. package/dist/{tri-DaUNvo-o.esm.js → tri-CI2exudk.esm.js} +2 -2
  229. package/dist/tri.d.ts +1 -1
  230. package/dist/tri.esm-CxLWmTZk.esm.js +2287 -0
  231. package/dist/tri.esm.js +1 -1
  232. package/dist/{trueSightService-DHYTBCIn.esm.js → trueSightService-DhW2O8mB.esm.js} +6 -3
  233. package/dist/trust-graph.d.ts +4 -3
  234. package/dist/trust-graph.esm.js +5 -3
  235. package/dist/{types-CgihAhT_.d.ts → types-9wlf1-GE.d.ts} +1 -1
  236. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  237. package/dist/types-CE1jkHw3.d.ts +6 -0
  238. package/dist/{types-BqlZSoZ-.d.ts → types-Cpdum4vi.d.ts} +1 -1
  239. package/dist/{types-Cbm9J2yF.d.ts → types-DFP7eSle.d.ts} +1 -1
  240. package/dist/{types-P9LzsfRo.d.ts → types-DJPU3W2M.d.ts} +1 -1
  241. package/dist/{events-C7h7oaTE.esm.js → types-DYYMdAGv.esm.js} +3 -298
  242. package/dist/{types-TisHEbBg.d.ts → types-Ddc4Tr_f.d.ts} +28 -1
  243. package/dist/video-selfie.d.ts +5 -4
  244. package/dist/video-selfie.esm.js +14 -13
  245. package/dist/{videoSelfieCameraWarmer-CTOpqhov.esm.js → videoSelfieCameraWarmer-YwO_uP-b.esm.js} +6 -6
  246. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  247. package/dist/{videoSelfieStepDetector-4XE2QI5q.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +2 -2
  248. package/dist/wasm.d.ts +1 -1
  249. package/dist/wasm.esm.js +1 -1
  250. package/dist/{wasmDsFlagSync-lRIgn5Ic.esm.js → wasmDsFlagSync-D_6e8W62.esm.js} +1 -1
  251. package/dist/watchlist-for-business.d.ts +1 -1
  252. package/dist/watchlist-for-business.esm.js +2 -2
  253. package/dist/watchlist.d.ts +1 -1
  254. package/dist/watchlist.esm.js +2 -2
  255. package/dist/{watchlistForBusinessManager-C1S5y5yj.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +5 -3
  256. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  257. package/dist/{watchlistForBusinessStateMachine-Bj_hnoK5.esm.js → watchlistForBusinessStateMachine-BMWm5mcP.esm.js} +4 -4
  258. package/dist/{watchlistManager-BpegtZbc.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
  259. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  260. package/dist/{watchlistStateMachine-Bgkh1gra.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
  261. package/dist/workflow.d.ts +6 -5
  262. package/dist/workflow.esm.js +51 -43
  263. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  264. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  265. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  266. package/package.json +6 -1
  267. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  268. package/dist/index-DpTj5PFb.d.ts +0 -1
  269. package/dist/nationalIds-B91f_RuB.esm.js +0 -99
  270. package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
  271. package/dist/tri.esm-Df5eKLsY.esm.js +0 -2165
  272. package/dist/types-kLsU6Jkt.d.ts +0 -6
@@ -1,11 +1,12 @@
1
1
  import { r as getWasmStatus } from "./warmup-9iKKNNuW.esm.js";
2
- import { r as getToken, t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
3
- import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-I92b2dmL.esm.js";
4
- import { E as updateFeatureManagementUser } from "./feature-management-CmKTG_T5.esm.js";
5
- import { i as toIncodeApiError } from "./apiError-Bmwy1Fa7.esm.js";
6
- import "./session-D0DWDKp9.esm.js";
2
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
3
+ import { r as getToken, t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
4
+ import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-k-hKIBg8.esm.js";
5
+ import { E as updateFeatureManagementUser } from "./feature-management-DG016L6E.esm.js";
6
+ import { i as toIncodeApiError } from "./apiError-BamZ815u.esm.js";
7
+ import "./session-C7x_iJ-p.esm.js";
7
8
  import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
8
- import { a as prefetchStartInfo } from "./phoneServices-BdR1nmSO.esm.js";
9
+ import { a as prefetchStartInfo } from "./phoneServices-CFXcwCFr.esm.js";
9
10
  //#region src/modules/flow/dashboardConfig.ts
10
11
  function isPlainObject(value) {
11
12
  if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
@@ -22,6 +23,12 @@ function mergeDashboardConfig(dashboardConfig, localConfig) {
22
23
  }
23
24
  return result;
24
25
  }
26
+ const SDK_ONLY_FIELDS = { AUTHENTICATION: ["identityReuseOutcomes"] };
27
+ function withoutSdkOnlyFields(key, override) {
28
+ const fields = key in SDK_ONLY_FIELDS ? SDK_ONLY_FIELDS[key] : void 0;
29
+ if (!fields || !isPlainObject(override)) return override;
30
+ return Object.fromEntries(Object.entries(override).filter(([field]) => !fields.includes(field)));
31
+ }
25
32
  /**
26
33
  * Merges `modulesConfig` over the dashboard config of each matching module.
27
34
  * Runs on the normalized flow, so the keys are the step keys (`TUTORIAL_ID`
@@ -32,7 +39,7 @@ function applyModulesConfig(flow, modulesConfig) {
32
39
  return {
33
40
  ...flow,
34
41
  flowModules: flow.flowModules.map((module) => {
35
- const override = module.key === "TUTORIAL_ID" ? void 0 : modulesConfig[module.key];
42
+ const override = module.key === "TUTORIAL_ID" ? void 0 : withoutSdkOnlyFields(module.key, modulesConfig[module.key]);
36
43
  if (!override) return module;
37
44
  return {
38
45
  ...module,
@@ -93,6 +100,139 @@ function videoSelfieWasmPipelines(config, steps = resolveVideoSelfieSteps(config
93
100
  return pipelines;
94
101
  }
95
102
  //#endregion
103
+ //#region src/modules/flow/presets/identityReusePreset.ts
104
+ const SHARED = "identityShared";
105
+ const HINT_PROVIDED = "identitySearchHintProvided";
106
+ const OUTCOMES = "identityReuseOutcomes";
107
+ /** The modules that switch the preset on. Normalization reads them too. */
108
+ const IDENTITY_REUSE_TRIGGERS = ["IDENTITY_SEARCH", "IDENTITY_REUSE"];
109
+ /** The members in run order (design doc §2). Each path skips some of them. */
110
+ const MEMBERS = [
111
+ "AUTHENTICATION",
112
+ "IDENTITY_SEARCH",
113
+ "IDENTITY_REUSE",
114
+ "ID",
115
+ "SECOND_ID",
116
+ "ID_VALIDATION",
117
+ "FACE_MATCH"
118
+ ];
119
+ /** Every member but SECOND_ID, which is optional and goes with ID. */
120
+ const REQUIRED = [
121
+ "AUTHENTICATION",
122
+ "IDENTITY_SEARCH",
123
+ "IDENTITY_REUSE",
124
+ "ID",
125
+ "ID_VALIDATION",
126
+ "FACE_MATCH"
127
+ ];
128
+ /**
129
+ * Modules the preset can't run with. ID_OCR and NFC_SCAN need the ID capture,
130
+ * which P1 and P2 skip; they wait until their owners confirm how they behave
131
+ * (owner decision 15). SELFIE would be a second face capture: the 1:1
132
+ * authentication capture is the session's selfie.
133
+ */
134
+ const UNSUPPORTED = [
135
+ "ID_OCR",
136
+ "NFC_SCAN",
137
+ "SELFIE"
138
+ ];
139
+ const CONTACTS = ["EMAIL", "PHONE"];
140
+ /**
141
+ * Face authentication that runs on the device can't decide the path: the
142
+ * backend's verdict never reaches the module, so it always completes, and the
143
+ * preset would treat every person as a customer here (P1) and never fail a
144
+ * spoof.
145
+ */
146
+ const ON_DEVICE_AUTHENTICATION = "AUTHENTICATION with on-device face results";
147
+ function isOnDeviceAuthentication(module) {
148
+ return module.key === "AUTHENTICATION" && module.configuration.onDeviceFaceResultsSubmissionEnabled === true;
149
+ }
150
+ const CONTACT_BEFORE_GROUP = "EMAIL or PHONE, before the group";
151
+ /** How the load error names a missing ID_VALIDATION, a step the SDK derives. */
152
+ const ID_VALIDATION_LABEL = "ID_VALIDATION (ID Validation after TUTORIAL_ID)";
153
+ /** Authentication's endings that mean the person is new to this organization. */
154
+ const NEW_HERE = ["NONEXISTENT_CUSTOMER", "HINT_NOT_PROVIDED"];
155
+ /**
156
+ * The outcomes of each decision (design doc §6.3), by the name analytics
157
+ * reports, with what still runs on each. `decide` returns one of the names.
158
+ */
159
+ const AFTER_AUTHENTICATION = {
160
+ existingCustomer: [],
161
+ newCustomer: [
162
+ "IDENTITY_SEARCH",
163
+ "IDENTITY_REUSE",
164
+ "ID",
165
+ "ID_VALIDATION",
166
+ "FACE_MATCH"
167
+ ]
168
+ };
169
+ const AFTER_REUSE = {
170
+ documentShared: ["ID_VALIDATION", "FACE_MATCH"],
171
+ fullOnboarding: ["ID", "FACE_MATCH"]
172
+ };
173
+ function isRecord(value) {
174
+ return typeof value === "object" && value !== null;
175
+ }
176
+ function isMember(key) {
177
+ return MEMBERS.includes(key);
178
+ }
179
+ /**
180
+ * `IDENTITY_REUSE@1`: the identity reuse path in a Flow (design doc §2). The
181
+ * 1:1 face authentication decides first: a person who already has an identity
182
+ * in this organization leaves the group (P1), and a new one goes on to the
183
+ * search and the reuse picker. The reuse step then decides between validating
184
+ * the shared document (P2) and the ID capture (P3); the face match runs after
185
+ * either. An ending
186
+ * the table doesn't name takes the "otherwise" row: P1 after authentication,
187
+ * P3 after reuse. The backend's final rule judges the session either way.
188
+ */
189
+ const identityReusePreset = {
190
+ name: "IDENTITY_REUSE@1",
191
+ triggers: IDENTITY_REUSE_TRIGGERS,
192
+ members: MEMBERS,
193
+ companions: { SECOND_ID: "ID" },
194
+ misconfiguredErrorCode: "IDENTITY_REUSE_FLOW_MISCONFIGURED",
195
+ title: "Identity reuse",
196
+ analyticsModule: eventModuleNames.identityReusePath,
197
+ prepare(modules, flow) {
198
+ const groupStart = modules.findIndex((module) => isMember(module.key));
199
+ const dropsContacts = flow[HINT_PROVIDED] === true;
200
+ return modules.flatMap((module, index) => {
201
+ if (dropsContacts && index < groupStart && CONTACTS.includes(module.key)) return [];
202
+ if (module.key === "AUTHENTICATION") return [{
203
+ ...module,
204
+ configuration: {
205
+ ...module.configuration,
206
+ [OUTCOMES]: true
207
+ }
208
+ }];
209
+ return [module];
210
+ });
211
+ },
212
+ check(modules, flow) {
213
+ const keys = modules.map((module) => module.key);
214
+ const missing = REQUIRED.filter((key) => !keys.includes(key)).map((key) => key === "ID_VALIDATION" ? ID_VALIDATION_LABEL : key);
215
+ if (flow[HINT_PROVIDED] !== true) {
216
+ const groupStart = keys.findIndex(isMember);
217
+ if (!(groupStart === -1 ? [] : keys.slice(0, groupStart)).some((key) => CONTACTS.includes(key))) missing.push(CONTACT_BEFORE_GROUP);
218
+ }
219
+ const unsupported = UNSUPPORTED.filter((key) => keys.includes(key));
220
+ if (modules.some(isOnDeviceAuthentication)) unsupported.push(ON_DEVICE_AUTHENTICATION);
221
+ return {
222
+ missing,
223
+ unsupported
224
+ };
225
+ },
226
+ decide(step, { output, moduleErrorCode }) {
227
+ if (step === "AUTHENTICATION") return moduleErrorCode !== void 0 && NEW_HERE.includes(moduleErrorCode) ? "newCustomer" : "existingCustomer";
228
+ if (step === "IDENTITY_REUSE") return isRecord(output) && output[SHARED] === true ? "documentShared" : "fullOnboarding";
229
+ },
230
+ outcomes: {
231
+ AUTHENTICATION: AFTER_AUTHENTICATION,
232
+ IDENTITY_REUSE: AFTER_REUSE
233
+ }
234
+ };
235
+ //#endregion
96
236
  //#region src/modules/flow/flowUtils.ts
97
237
  function enrichFlowModuleConfig(module, flow) {
98
238
  const config = {
@@ -114,7 +254,7 @@ let configConverters;
114
254
  async function loadFlowConfigConverters(flow) {
115
255
  const needed = flow.flowModules.some((module) => module.key === "EXTERNAL_VERIFICATION" || module.key === "EKYB");
116
256
  if (configConverters || !needed) return;
117
- const [ekyc, ekyb] = await Promise.all([import("./ekycUtils-Dcff8BOD.esm.js").then((n) => n.n), import("./ekybUtils-Cw8Ta9Qi.esm.js").then((n) => n.t)]);
257
+ const [ekyc, ekyb] = await Promise.all([import("./ekycUtils-FcqA6oU4.esm.js").then((n) => n.n), import("./ekybUtils-Cw8Ta9Qi.esm.js").then((n) => n.t)]);
118
258
  configConverters = {
119
259
  toEkycConfig: ekyc.toEkycConfig,
120
260
  toEkybConfig: ekyb.toEkybConfig
@@ -226,10 +366,16 @@ function getRequiredWasmPipelines(flow) {
226
366
  function getNextRequiredWasmPipelines(state, loadedPipelines = getWasmStatus().loadedPipelines) {
227
367
  const { flow, currentStepIndex, homeScreen } = state;
228
368
  if (currentStepIndex < 0) return [];
369
+ const mayBeSkipped = stepsTheCurrentDecisionMaySkip({
370
+ armedPresets: triggeredFlowPresets(flow.flowModules),
371
+ steps: flow.flowModules.map((module) => module.key),
372
+ currentStepIndex
373
+ });
229
374
  let currentPipelines = [];
230
375
  for (let index = currentStepIndex; index < flow.flowModules.length; index++) {
231
376
  const module = flow.flowModules[index];
232
377
  if (module.key === "REDIRECT_TO_MOBILE") return [];
378
+ if (mayBeSkipped.has(index)) return [];
233
379
  const required = getRequiredWasmPipelines({
234
380
  ...flow,
235
381
  flowModules: [module]
@@ -249,7 +395,8 @@ function getNextRequiredWasmPipelines(state, loadedPipelines = getWasmStatus().l
249
395
  * - TUTORIAL_ID becomes ID (with same config)
250
396
  * - If secondId: true, adds SECOND_ID module with isSecondId: true
251
397
  * - thirdId is deprecated and ignored; the flow continues to the next step
252
- * - Bare ID following TUTORIAL_ID is dropped (already merged)
398
+ * - Bare ID following TUTORIAL_ID is dropped (already merged), except in a
399
+ * flow with identity reuse, where it becomes an ID_VALIDATION step
253
400
  */
254
401
  function normalizeFlowModules(flow, options = {}) {
255
402
  let modules = normalizeIdModules(flow.flowModules);
@@ -279,7 +426,13 @@ function dropSelfieIfVideoSelfieUsesAsSelfie(modules) {
279
426
  if (!modules.some((m) => m.key === "VIDEO_ONBOARDING" && m.configuration.useAsSelfie === true)) return modules;
280
427
  return modules.filter((m) => m.key !== "SELFIE");
281
428
  }
429
+ /**
430
+ * @internal Expands TUTORIAL_ID and handles the bare ID after it (see
431
+ * {@link normalizeFlowModules}). A flow it already ran on comes back
432
+ * unchanged.
433
+ */
282
434
  function normalizeIdModules(modules) {
435
+ const keepsIdValidation = modules.some((module) => IDENTITY_REUSE_TRIGGERS.includes(module.key));
283
436
  return modules.flatMap((module, idx, arr) => {
284
437
  if (module.key === "TUTORIAL_ID") {
285
438
  const idConfig = module.configuration;
@@ -297,7 +450,13 @@ function normalizeIdModules(modules) {
297
450
  return result;
298
451
  }
299
452
  const prev = arr[idx - 1];
300
- if (module.key === "ID" && prev?.key === "TUTORIAL_ID") return [];
453
+ if (module.key === "ID" && prev?.key === "TUTORIAL_ID") {
454
+ if (!keepsIdValidation) return [];
455
+ return [{
456
+ key: "ID_VALIDATION",
457
+ configuration: module.configuration
458
+ }];
459
+ }
301
460
  return [module];
302
461
  });
303
462
  }
@@ -334,6 +493,208 @@ function hasModule(modules, key) {
334
493
  return modules.some((module) => module.key === key);
335
494
  }
336
495
  //#endregion
496
+ //#region src/modules/flow/presets/flowPresets.ts
497
+ /** Every preset, in the order they arm and decide. The one registry. */
498
+ const FLOW_PRESETS = [identityReusePreset];
499
+ function isTriggered(modules, preset) {
500
+ return modules.some((module) => preset.triggers.includes(module.key));
501
+ }
502
+ /** Runs the preset's `prepare`, then lays its group out. */
503
+ function prepareAndLayOut(modules, flow, preset) {
504
+ return layOut(preset.prepare?.(modules, flow) ?? modules, preset);
505
+ }
506
+ /**
507
+ * Takes the preset's members out of the list and puts them back in run order,
508
+ * at the position of the earliest one. Every other module keeps its served
509
+ * order, so modules that sat between two members now run after the group.
510
+ */
511
+ function layOut(modules, preset) {
512
+ const rank = (module) => preset.members.indexOf(module.key);
513
+ const start = modules.findIndex((module) => rank(module) !== -1);
514
+ if (start === -1) return modules;
515
+ const rest = modules.slice(start);
516
+ const group = rest.filter((module) => rank(module) !== -1).sort((a, b) => rank(a) - rank(b));
517
+ const others = rest.filter((module) => rank(module) === -1);
518
+ return [
519
+ ...modules.slice(0, start),
520
+ ...group,
521
+ ...others
522
+ ];
523
+ }
524
+ function describeMisconfiguredPreset(preset, problems) {
525
+ const parts = [
526
+ problems.missing.length > 0 && `missing: ${problems.missing.join(", ")}`,
527
+ problems.unsupported.length > 0 && `not supported: ${problems.unsupported.join(", ")}`,
528
+ problems.unregistered.length > 0 && `no registered module for: ${problems.unregistered.join(", ")}`
529
+ ].filter((part) => typeof part === "string");
530
+ return `${preset.title} flow is misconfigured — ${parts.join("; ")}`;
531
+ }
532
+ /**
533
+ * Arms the presets the served flow switches on, once, at load. For each one it
534
+ * runs the preset's `prepare`, lays the group out in run order, then checks
535
+ * the laid-out list: the modules the preset needs, the ones it doesn't
536
+ * support, and a registered machine for every member present. A flow that
537
+ * fails the check can't run.
538
+ *
539
+ * A flow that switches no preset on comes back as it was: the same array, and
540
+ * no armed preset.
541
+ *
542
+ * @param canResolve - Whether a machine is registered for a module key. It is
543
+ * read when arming runs, after `getFlow`, because `<incode-flow>` fills its
544
+ * lazy registry inside `getFlow`.
545
+ */
546
+ function armFlowPresets(flow, canResolve) {
547
+ let laidOut = flow.flowModules ?? [];
548
+ const armedPresets = [];
549
+ for (const preset of FLOW_PRESETS) {
550
+ if (!isTriggered(laidOut, preset)) continue;
551
+ laidOut = prepareAndLayOut(laidOut, flow, preset);
552
+ const { missing, unsupported } = preset.check(laidOut, flow);
553
+ const unregistered = [...new Set(laidOut.map((module) => module.key).filter((key) => preset.members.includes(key) && !canResolve(key)))];
554
+ if (missing.length + unsupported.length + unregistered.length > 0) {
555
+ const problems = {
556
+ missing,
557
+ unsupported,
558
+ unregistered
559
+ };
560
+ return {
561
+ status: "misconfigured",
562
+ preset: preset.name,
563
+ moduleErrorCode: preset.misconfiguredErrorCode,
564
+ message: describeMisconfiguredPreset(preset, problems),
565
+ ...problems
566
+ };
567
+ }
568
+ armedPresets.push(preset.name);
569
+ }
570
+ return {
571
+ status: "armed",
572
+ modules: laidOut,
573
+ armedPresets
574
+ };
575
+ }
576
+ /**
577
+ * The indexes after `currentStepIndex` of the preset's members that are not in
578
+ * `stillRuns`. The safety rule lives here: only indexes after the current one,
579
+ * and only the preset's own members.
580
+ */
581
+ function skippedMembers(preset, steps, currentStepIndex, stillRuns) {
582
+ const skipped = [];
583
+ for (let index = currentStepIndex + 1; index < steps.length; index++) {
584
+ const key = steps[index];
585
+ if (!preset.members.includes(key)) continue;
586
+ if (!stillRuns.includes(preset.companions[key] ?? key)) skipped.push(index);
587
+ }
588
+ return skipped;
589
+ }
590
+ /** The analytics module of a preset, by name. */
591
+ function flowPresetAnalyticsModule(name) {
592
+ return FLOW_PRESETS.find((candidate) => candidate.name === name)?.analyticsModule ?? name;
593
+ }
594
+ /**
595
+ * The decision of each armed preset whose decision step this is: the outcome
596
+ * it took, given how the step ended, and the members that outcome skips.
597
+ * Empty when no preset decides at this step.
598
+ */
599
+ function decideFlowPresets({ armedPresets, steps, currentStepIndex, ending }) {
600
+ const step = steps[currentStepIndex];
601
+ if (step === void 0) return [];
602
+ const decisions = [];
603
+ for (const preset of FLOW_PRESETS) {
604
+ if (!armedPresets.includes(preset.name)) continue;
605
+ const outcome = preset.decide(step, ending);
606
+ if (outcome === void 0) continue;
607
+ const stillRuns = preset.outcomes[step]?.[outcome];
608
+ if (!stillRuns) continue;
609
+ decisions.push({
610
+ preset: preset.name,
611
+ analyticsModule: preset.analyticsModule,
612
+ outcome,
613
+ skipped: skippedMembers(preset, steps, currentStepIndex, stillRuns)
614
+ });
615
+ }
616
+ return decisions;
617
+ }
618
+ /**
619
+ * The indexes of the steps to remove after the step at `currentStepIndex`
620
+ * ended as `ending` says. Each armed preset whose decision step this is says
621
+ * which of its members still run; the others go.
622
+ *
623
+ * A preset never inserts, reorders, touches another module or finishes the
624
+ * flow, and nothing is removed when no preset armed or the step decides
625
+ * nothing.
626
+ */
627
+ function applyFlowPresets(position) {
628
+ return [...new Set(decideFlowPresets(position).flatMap(({ skipped }) => skipped))];
629
+ }
630
+ /**
631
+ * The steps that can run right after the step at `currentStepIndex`, in list
632
+ * order, so they can load while it runs. That is the next step, unless an
633
+ * armed preset decides at this step: then it is the step that runs next on
634
+ * each of the preset's paths. While face authentication runs, for example,
635
+ * that is IDENTITY_SEARCH and the first module after the group.
636
+ */
637
+ function stepsThatMayRunNext({ armedPresets, steps, currentStepIndex }) {
638
+ const step = steps[currentStepIndex];
639
+ if (step === void 0) return [];
640
+ const next = /* @__PURE__ */ new Set();
641
+ let decides = false;
642
+ for (const preset of FLOW_PRESETS) {
643
+ if (!armedPresets.includes(preset.name)) continue;
644
+ const outcomes = preset.outcomes[step];
645
+ if (!outcomes) continue;
646
+ decides = true;
647
+ for (const stillRuns of Object.values(outcomes)) {
648
+ const skipped = new Set(skippedMembers(preset, steps, currentStepIndex, stillRuns));
649
+ for (let index = currentStepIndex + 1; index < steps.length; index++) if (!skipped.has(index)) {
650
+ next.add(index);
651
+ break;
652
+ }
653
+ }
654
+ }
655
+ if (!decides && currentStepIndex + 1 < steps.length) next.add(currentStepIndex + 1);
656
+ return [...next].sort((a, b) => a - b).map((index) => steps[index]);
657
+ }
658
+ /**
659
+ * The presets a flow switches on. In a loaded flow these are the armed ones,
660
+ * because a flow that fails a preset's check never leaves loading.
661
+ */
662
+ function triggeredFlowPresets(modules) {
663
+ return FLOW_PRESETS.filter((preset) => isTriggered(modules, preset)).map((preset) => preset.name);
664
+ }
665
+ /**
666
+ * The indexes after `currentStepIndex` that an armed preset deciding at the
667
+ * current step skips on at least one of its paths. Empty when the current
668
+ * step decides nothing. While face authentication runs, for example, that is
669
+ * every other member of the identity group, because a recognized person
670
+ * leaves the group.
671
+ */
672
+ function stepsTheCurrentDecisionMaySkip({ armedPresets, steps, currentStepIndex }) {
673
+ const skipped = /* @__PURE__ */ new Set();
674
+ const step = steps[currentStepIndex];
675
+ if (step === void 0) return skipped;
676
+ for (const preset of FLOW_PRESETS) {
677
+ if (!armedPresets.includes(preset.name)) continue;
678
+ for (const stillRuns of Object.values(preset.outcomes[step] ?? {})) for (const index of skippedMembers(preset, steps, currentStepIndex, stillRuns)) skipped.add(index);
679
+ }
680
+ return skipped;
681
+ }
682
+ /**
683
+ * The key of the first module a flow runs once the presets it switches on
684
+ * have prepared it and laid it out, for preloading before the flow loads. It
685
+ * doesn't run the presets' checks, so it also answers for a raw dashboard
686
+ * flow or one that will fail to load. With the identity search hint from
687
+ * session start, for example, that is the module after the dropped contact
688
+ * steps.
689
+ */
690
+ function getFirstFlowModuleKey(flow) {
691
+ const served = flow.flowModules ?? [];
692
+ if (!FLOW_PRESETS.some((preset) => isTriggered(served, preset))) return served[0]?.key;
693
+ let modules = normalizeIdModules(served);
694
+ for (const preset of FLOW_PRESETS) if (isTriggered(modules, preset)) modules = prepareAndLayOut(modules, flow, preset);
695
+ return modules[0]?.key;
696
+ }
697
+ //#endregion
337
698
  //#region src/modules/flow/flowServices.ts
338
699
  let dashboardFlowCache;
339
700
  var FlowSessionFinishedError = class extends Error {
@@ -540,7 +901,7 @@ async function normalizeDashboardFlow(rawFlow, options, signal) {
540
901
  * activation still runs, so that screen skips a second round trip.
541
902
  */
542
903
  function warmFirstModule(flow) {
543
- if (flow.flowModules[0]?.key === "PHONE") {
904
+ if (getFirstFlowModuleKey(flow) === "PHONE") {
544
905
  loadPhoneValidation();
545
906
  prefetchStartInfo();
546
907
  }
@@ -588,4 +949,4 @@ async function resolveDashboardModuleConfig(options) {
588
949
  return flowConfig;
589
950
  }
590
951
  //#endregion
591
- export { resolveDashboardModuleConfig as a, getRequiredWasmPipelines as c, resolveFlowModuleConfig as d, facingModeForStep as f, mergeDashboardConfig as g, applyModulesConfig as h, resetDashboardFlowCache as i, loadFlowConfigConverters as l, videoSelfieWasmPipelines as m, getFlow as n, enrichFlowModuleConfig as o, resolveVideoSelfieSteps as p, preloadDashboardFlow as r, getNextRequiredWasmPipelines as s, completeDeferredActivation as t, normalizeFlowModules as u };
952
+ export { mergeDashboardConfig as S, resolveFlowModuleConfig as _, resolveDashboardModuleConfig as a, videoSelfieWasmPipelines as b, decideFlowPresets as c, stepsThatMayRunNext as d, enrichFlowModuleConfig as f, normalizeFlowModules as g, loadFlowConfigConverters as h, resetDashboardFlowCache as i, flowPresetAnalyticsModule as l, getRequiredWasmPipelines as m, getFlow as n, applyFlowPresets as o, getNextRequiredWasmPipelines as p, preloadDashboardFlow as r, armFlowPresets as s, completeDeferredActivation as t, getFirstFlowModuleKey as u, facingModeForStep as v, applyModulesConfig as x, resolveVideoSelfieSteps as y };
@@ -1,2 +1,2 @@
1
- import { n as GeolocationState, o as geolocationMachine, r as createGeolocationManager, s as GeolocationConfig, t as GeolocationManager } from "./geolocationManager-6e1i9UIR.js";
1
+ import { n as GeolocationState, o as geolocationMachine, r as createGeolocationManager, s as GeolocationConfig, t as GeolocationManager } from "./geolocationManager-CENrvxpK.js";
2
2
  export { type GeolocationConfig, type GeolocationManager, type GeolocationState, createGeolocationManager, geolocationMachine };
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-CiG32lIm.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-5rnTEOuw.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-T8m4lqvF.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-NWmA1Dtn.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -1,6 +1,7 @@
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
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-DpTj5PFb.js";
1
+ import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput, T as Values, _ as IsNotNever, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, g as InputFrom, h as GetConcreteByKey, i as ActorRefFrom, j as StateMachine, m as EventObject, o as AnyActorLogic, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, w as StateValue, x as RequiredActorOptions, y as MetaObject } from "./spawn-COZKetCS.js";
2
+ import "./xstate.cjs-D6Ur0X1F.js";
3
+ import { t as Manager } from "./Manager-DufwKlav.js";
4
+ import "./Actor-DqjOqDfU.js";
4
5
  import { n as IGeolocationCapability } from "./IGeolocationCapability-r49Qo7rR.js";
5
6
  //#region src/modules/geolocation/types.d.ts
6
7
  /**
@@ -1,6 +1,8 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
2
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-5rnTEOuw.esm.js";
1
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
3
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
4
+ import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
5
+ import { t as geolocationMachine } from "./geolocationStateMachine-NWmA1Dtn.esm.js";
4
6
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
5
7
  var BrowserGeolocationProvider = class {
6
8
  getCurrentPosition() {
@@ -1,9 +1,9 @@
1
- import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
2
  import { a as isIOS, t as isAndroid } from "./platform-aPh7gTWh.esm.js";
3
- import { n as isConnectivityError } from "./apiError-Bmwy1Fa7.esm.js";
4
- import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
- import { t as carryAttempts } from "./attemptCarry-zQH85Elh.esm.js";
3
+ import { n as isConnectivityError } from "./apiError-BamZ815u.esm.js";
4
+ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
5
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
6
+ import { t as carryAttempts } from "./attemptCarry-BecGGZK8.esm.js";
7
7
  //#region src/modules/geolocation/geolocationServices.ts
8
8
  async function addGeolocation(params, signal) {
9
9
  const res = await api.post(endpoints.addGeolocation, {
@@ -1,2 +1,2 @@
1
- import { a as GovernmentValidationActor, i as createGovernmentValidationManagerFromActor, n as GovernmentValidationState, o as governmentValidationMachine, r as createGovernmentValidationManager, s as GovernmentValidationConfig, t as GovernmentValidationManager } from "./governmentValidationManager-B82zOut8.js";
1
+ import { a as GovernmentValidationActor, i as createGovernmentValidationManagerFromActor, n as GovernmentValidationState, o as governmentValidationMachine, r as createGovernmentValidationManager, s as GovernmentValidationConfig, t as GovernmentValidationManager } from "./governmentValidationManager-De_vU7bm.js";
2
2
  export { type GovernmentValidationActor, type GovernmentValidationConfig, type GovernmentValidationManager, type GovernmentValidationState, createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
@@ -1,3 +1,3 @@
1
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CeSDNgha.esm.js";
2
- import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-BivVZNVe.esm.js";
1
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-wBunpfQ9.esm.js";
2
+ import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-6JQQkzha.esm.js";
3
3
  export { createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
@@ -1,7 +1,9 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
1
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
2
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CeSDNgha.esm.js";
4
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
+ import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-wBunpfQ9.esm.js";
5
7
  //#region src/modules/government-validation/governmentValidationActor.ts
6
8
  function createGovernmentValidationActor(options) {
7
9
  return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
@@ -1,7 +1,7 @@
1
- import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-DpTj5PFb.js";
4
- import "./index-DpTj5PFb.js";
1
+ import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
2
+ import { t as Manager } from "./Manager-DufwKlav.js";
3
+ import "./Actor-DqjOqDfU.js";
4
+ import "./index-DHuAkTe0.js";
5
5
  //#region src/modules/government-validation/types.d.ts
6
6
  type GovernmentValidationConfig = {
7
7
  validationCountries?: string[];
@@ -1,6 +1,6 @@
1
- import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
2
- import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
+ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
3
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
4
4
  //#region src/modules/government-validation/governmentValidationServices.ts
5
5
  async function processGovernmentValidation(signal) {
6
6
  const res = await api.post(endpoints.governmentValidation, {}, { signal });
package/dist/home.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { A as StateMachine, p as EventObject, v as MetaObject, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import { t as EmptyConfig } from "./types-TisHEbBg.js";
1
+ import { b as NonReducibleUnknown, j as StateMachine, m as EventObject, y as MetaObject } from "./spawn-COZKetCS.js";
2
+ import "./xstate.cjs-D6Ur0X1F.js";
3
+ import { t as Manager } from "./Manager-DufwKlav.js";
4
+ import { t as EmptyConfig } from "./types-Ddc4Tr_f.js";
4
5
  //#region src/modules/home/types.d.ts
5
6
  type HomeConfig = EmptyConfig;
6
7
  //#endregion
package/dist/home.esm.js CHANGED
@@ -1,5 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
2
- import { s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
1
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
3
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
4
+ import { s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
3
5
  //#region src/modules/home/homeStateMachine.ts
4
6
  const homeMachine = setup({ types: {
5
7
  context: {},
package/dist/http.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as getApi, t as api } from "./api-BSnbg4HO.esm.js";
1
+ import { n as getApi, t as api } from "./api-CZpuJuZl.esm.js";
2
2
  export { api, getApi };
package/dist/id-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-Bpo97EOh.js";
2
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-B5xeI2lg.js";
2
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-C0C7lFGd.js";
3
3
  //#region src/modules/id-ocr/idOcrFields.d.ts
4
4
  declare const OCR_FIELDS: OcrFieldConfig[];
5
5
  declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
@@ -1,4 +1,4 @@
1
- import { n as isValidCPF, t as formatCPF } from "./idOcrCpfUtils-Nfln1Psb.esm.js";
2
- import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-MAGnpWkb.esm.js";
3
- import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-DNbVTMIu.esm.js";
1
+ import { n as isValidCPF, t as formatCPF } from "./idOcrCpfUtils-D5Gwskxu.esm.js";
2
+ import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-B832arAl.esm.js";
3
+ import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-im7VfJQi.esm.js";
4
4
  export { CPFFlowIds, MIN_AGE, OCR_FIELDS, createIdOcrManager, createIdOcrManagerFromActor, formatCPF, getOcrFields, idOcrStateMachine, isValidCPF };
@@ -1,10 +1,11 @@
1
1
  import "./warmup-BNhIuURi.js";
2
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-DpTj5PFb.js";
2
+ import "./xstate.cjs-D6Ur0X1F.js";
3
+ import { t as Manager } from "./Manager-DufwKlav.js";
4
+ import "./Actor-DqjOqDfU.js";
4
5
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
5
6
  import { t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
6
7
  import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
7
- import { a as FacingMode, c as VideoSelfieStep, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, t as StepDetector } from "./videoSelfieStepDetector-4XE2QI5q.js";
8
+ import { a as FacingMode, c as VideoSelfieStep, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, t as StepDetector } from "./videoSelfieStepDetector-DRrh4P0A.js";
8
9
  //#region src/modules/id-selfie-flow/types.d.ts
9
10
  /**
10
11
  * The capture steps an ID + Selfie flow session can run, in flow order. A