@incodetech/core 2.4.1-agentic.9 → 2.5.0-agentic

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 (308) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-CPdofn7R.d.ts} +3 -5
  3. package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
  4. package/dist/{FaceDetectionProvider-CHpscouN.esm.js → FaceDetectionProvider-Dv9iXub0.esm.js} +21 -13
  5. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-CAxToGns.d.ts} +3 -3
  6. package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +7 -6
  7. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  8. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  9. package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-X4_2eBGd.esm.js} +15 -0
  10. package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
  11. package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +25 -3
  12. package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
  13. package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-DVFDFlIL.esm.js} +63 -6
  14. package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
  15. package/dist/{addressSearch-D6cKPWmk.esm.js → addressSearch-BKlynuBr.esm.js} +6 -7
  16. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  17. package/dist/ae-signature.d.ts +2 -2
  18. package/dist/ae-signature.esm.js +1 -1
  19. package/dist/antifraud.d.ts +1 -1
  20. package/dist/antifraud.esm.js +2 -2
  21. package/dist/{antifraudManager-CbIwM35x.esm.js → antifraudManager-BI2zr7YX.esm.js} +5 -3
  22. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  23. package/dist/{antifraudStateMachine-qNNXrlsP.esm.js → antifraudStateMachine-TWUu8wLN.esm.js} +4 -6
  24. package/dist/{api-C_P9YXbL.esm.js → api-BNxrW8xK.esm.js} +4 -1
  25. package/dist/{apiError-BeWqIYu8.esm.js → apiError-BAfdBGxH.esm.js} +1 -1
  26. package/dist/{attemptCarry-BaAXPR_w.esm.js → attemptCarry-DWM8lV9V.esm.js} +1 -1
  27. package/dist/authentication.d.ts +3 -3
  28. package/dist/authentication.esm.js +2 -2
  29. package/dist/{authenticationManager-DKLRA91K.d.ts → authenticationManager-BJElkTsj.d.ts} +2 -2
  30. package/dist/{authenticationManager-CTHFl6dl.esm.js → authenticationManager-DFzByAYo.esm.js} +7 -6
  31. package/dist/{authenticationStateMachine-D-SOzH8C.esm.js → authenticationStateMachine-CKTOhwwc.esm.js} +50 -18
  32. package/dist/avatar.d.ts +1 -1
  33. package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
  34. package/dist/{browser-pQZA35G2-DJEJnmCd.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
  35. package/dist/calendarDate-DcqGuEht.esm.js +35 -0
  36. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  37. package/dist/camera-9yYDUOsO.d.ts +5 -0
  38. package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
  39. package/dist/camera.d.ts +7 -3
  40. package/dist/camera.esm.js +1 -1
  41. package/dist/certificate-issuance.d.ts +1 -1
  42. package/dist/certificate-issuance.esm.js +2 -2
  43. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  44. package/dist/{certificateIssuanceManager-CrF3wjCH.esm.js → certificateIssuanceManager-P44yBRop.esm.js} +5 -3
  45. package/dist/{certificateIssuanceStateMachine-uSD9IkcV.esm.js → certificateIssuanceStateMachine-BPBrILt6.esm.js} +3 -3
  46. package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
  47. package/dist/consent.d.ts +1 -1
  48. package/dist/consent.esm.js +2 -2
  49. package/dist/{consentManager-BD7wwgat.esm.js → consentManager-D43w2ms-.esm.js} +5 -3
  50. package/dist/{consentManager-7aHaehwF.d.ts → consentManager-Duzd8paN.d.ts} +4 -3
  51. package/dist/{consentStateMachine-BAiLDE3D.esm.js → consentStateMachine-CLK8PfM4.esm.js} +6 -9
  52. package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
  53. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.d.ts} +1 -1
  54. package/dist/cross-document-data-match.d.ts +1 -1
  55. package/dist/cross-document-data-match.esm.js +1 -1
  56. package/dist/{crossDocumentDataMatchManager-CUc1uACE.esm.js → crossDocumentDataMatchManager-Cag_bcyW.esm.js} +6 -5
  57. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  58. package/dist/curp-DZGvefg3.esm.js +14 -0
  59. package/dist/curp-validation.d.ts +1 -1
  60. package/dist/curp-validation.esm.js +2 -2
  61. package/dist/{curpValidationManager-DBfZSQbu.esm.js → curpValidationManager-C6WmQToS.esm.js} +6 -4
  62. package/dist/{curpValidationManager-Crz3bnCo.d.ts → curpValidationManager-CmL52FU8.d.ts} +4 -4
  63. package/dist/{curpValidationStateMachine-DyAEyScb.esm.js → curpValidationStateMachine-BbJ4YAzE.esm.js} +16 -17
  64. package/dist/custom-fields.d.ts +1 -1
  65. package/dist/custom-fields.esm.js +1 -1
  66. package/dist/custom-watchlist.d.ts +1 -1
  67. package/dist/custom-watchlist.esm.js +2 -2
  68. package/dist/{customFieldsManager-BZhIPyaY.esm.js → customFieldsManager-BBy6X9nh.esm.js} +15 -17
  69. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  70. package/dist/{customWatchlistManager-B4cmxi__.esm.js → customWatchlistManager-CtBMy2EF.esm.js} +5 -3
  71. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  72. package/dist/{customWatchlistStateMachine-ZZoDGRAZ.esm.js → customWatchlistStateMachine-SS2ssNCg.esm.js} +4 -6
  73. package/dist/deepsightCaptureConfig-Nm_K8twx.esm.js +70 -0
  74. package/dist/{deepsightLoader-je1YxHgT.esm.js → deepsightLoader-BInnND1H.esm.js} +7 -6
  75. package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-B-Z2EgJJ.esm.js} +51 -1
  76. package/dist/{desktopCameraElection-m2dAj6Zu.esm.js → desktopCameraElection-JNBOXqvK.esm.js} +110 -13
  77. package/dist/device.d.ts +3 -3
  78. package/dist/device.esm.js +16 -16
  79. package/dist/document-capture.d.ts +2 -2
  80. package/dist/document-capture.esm.js +2 -2
  81. package/dist/document-signature.d.ts +123 -0
  82. package/dist/document-signature.esm.js +149 -0
  83. package/dist/{documentCaptureManager-v57klTso.esm.js → documentCaptureManager-CGDtkfWj.esm.js} +5 -3
  84. package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +7 -6
  85. package/dist/{documentCaptureStateMachine-CgCtimSa.esm.js → documentCaptureStateMachine-flAt9D4q.esm.js} +11 -13
  86. package/dist/documentSignatureStateMachine-DrRyICFT.esm.js +219 -0
  87. package/dist/dynamic-forms.d.ts +1 -1
  88. package/dist/dynamic-forms.esm.js +2 -2
  89. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  90. package/dist/{dynamicFormsManager-BKWJZfkn.esm.js → dynamicFormsManager-CxLq2KzT.esm.js} +5 -3
  91. package/dist/{dynamicFormsStateMachine-CQN8p1ux.esm.js → dynamicFormsStateMachine-By-maT_4.esm.js} +12 -13
  92. package/dist/ekyb.d.ts +3 -3
  93. package/dist/ekyb.esm.js +3 -3
  94. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  95. package/dist/{ekybManager-BD6HTwFJ.esm.js → ekybManager-CE19Pcdb.esm.js} +5 -3
  96. package/dist/{ekybStateMachine-3kceTymI.esm.js → ekybStateMachine-q7JQ-x9l.esm.js} +1214 -91
  97. package/dist/{ekybUtils-Cw8Ta9Qi.esm.js → ekybUtils-Z9MhFAer.esm.js} +11 -1
  98. package/dist/ekyc-prefill.d.ts +3 -3
  99. package/dist/ekyc-prefill.esm.js +2 -2
  100. package/dist/ekyc.d.ts +3 -3
  101. package/dist/ekyc.esm.js +3 -3
  102. package/dist/{ekycManager-CERRvIfg.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
  103. package/dist/{ekycManager-DawJq3Jo.esm.js → ekycManager-p3uenUEi.esm.js} +39 -16
  104. package/dist/{ekycPrefillManager-DLNmToWT.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +10 -9
  105. package/dist/{ekycPrefillManager-D_8NJzZf.esm.js → ekycPrefillManager-gPX3XE7u.esm.js} +3 -2
  106. package/dist/{ekycPrefillStateMachine-C-JAvkH3.esm.js → ekycPrefillStateMachine-SBnBKPGA.esm.js} +12 -13
  107. package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-BH_Ll_0A.esm.js} +201 -38
  108. package/dist/{ekycStateMachine-qvQ-b4IY.esm.js → ekycStateMachine-D0NAHzS7.esm.js} +1031 -132
  109. package/dist/{ekycUtils-Drx8ImpN.esm.js → ekycUtils-DEvtEyBI.esm.js} +55 -43
  110. package/dist/electronic-signature.d.ts +1 -1
  111. package/dist/electronic-signature.esm.js +1 -1
  112. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  113. package/dist/{electronicSignatureManager-u3UBhWw_.esm.js → electronicSignatureManager-C1M-Yxf2.esm.js} +11 -17
  114. package/dist/email.d.ts +1 -1
  115. package/dist/email.esm.js +2 -2
  116. package/dist/{emailManager-BSaGg1Gl.esm.js → emailManager-DWnhEsUf.esm.js} +5 -3
  117. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  118. package/dist/{emailStateMachine-CaoPZtZN.esm.js → emailStateMachine--T9PHflK.esm.js} +5 -7
  119. package/dist/events-ChMS-UzR.esm.js +299 -0
  120. package/dist/events.d.ts +4 -1
  121. package/dist/events.esm.js +2 -1
  122. package/dist/extensibility.d.ts +42 -42
  123. package/dist/extensibility.esm.js +38 -38
  124. package/dist/face-match.d.ts +1 -1
  125. package/dist/face-match.esm.js +2 -2
  126. package/dist/{faceCaptureManagerFactory-DKJUjsV2.esm.js → faceCaptureManagerFactory-18QW0lmV.esm.js} +29 -12
  127. package/dist/{faceCaptureManagerFactory-ZudYP6Qp.d.ts → faceCaptureManagerFactory-CHqmyOjM.d.ts} +35 -16
  128. package/dist/{faceCaptureSetup-CZzv26ip.esm.js → faceCaptureSetup-CFToXwHy.esm.js} +115 -74
  129. package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
  130. package/dist/{faceMatchManager-qPJsa5Ac.esm.js → faceMatchManager-DIStK4qi.esm.js} +5 -3
  131. package/dist/{faceMatchStateMachine-D90ZHY1r.esm.js → faceMatchStateMachine-DagrRdo2.esm.js} +49 -34
  132. package/dist/{feature-management-BMUPPAzI.esm.js → feature-management-BlscKbeV.esm.js} +3 -2
  133. package/dist/feature-management.esm.js +1 -1
  134. package/dist/field-comparison.d.ts +1 -1
  135. package/dist/field-comparison.esm.js +1 -1
  136. package/dist/{fieldComparisonManager-BLLj_Ey1.esm.js → fieldComparisonManager-BnWBtMN7.esm.js} +7 -7
  137. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  138. package/dist/fiscal-qr.d.ts +1 -1
  139. package/dist/fiscal-qr.esm.js +1 -1
  140. package/dist/{fiscalQrManager-Bh3rxb7Y.esm.js → fiscalQrManager-BxXaLhin.esm.js} +9 -8
  141. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  142. package/dist/flow-events.d.ts +1 -1
  143. package/dist/flow.d.ts +50 -14
  144. package/dist/flow.esm.js +214 -58
  145. package/dist/{flowCompletionService-DgA2VEq4.esm.js → flowCompletionService-DNLssMAg.esm.js} +2 -2
  146. package/dist/{flowServices-aJ5kGxBd.esm.js → flowServices-Bzq3piUR.esm.js} +378 -18
  147. package/dist/geolocation.d.ts +1 -1
  148. package/dist/geolocation.esm.js +2 -2
  149. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
  150. package/dist/{geolocationManager-BA57nCxj.esm.js → geolocationManager-DoLbpx5e.esm.js} +5 -3
  151. package/dist/{geolocationStateMachine-3-d1ECCh.esm.js → geolocationStateMachine-d5_E7gAm.esm.js} +8 -10
  152. package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
  153. package/dist/government-validation.d.ts +1 -1
  154. package/dist/government-validation.esm.js +2 -2
  155. package/dist/{governmentValidationManager-D5HkBqfr.esm.js → governmentValidationManager-CaZxyEOO.esm.js} +5 -3
  156. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  157. package/dist/{governmentValidationStateMachine-BwMClTqC.esm.js → governmentValidationStateMachine-DeHHhlcf.esm.js} +4 -6
  158. package/dist/home.d.ts +4 -3
  159. package/dist/home.esm.js +4 -2
  160. package/dist/http.esm.js +1 -1
  161. package/dist/id-ocr.d.ts +1 -1
  162. package/dist/id-ocr.esm.js +3 -3
  163. package/dist/id-selfie-flow.d.ts +7 -6
  164. package/dist/id-selfie-flow.esm.js +14 -13
  165. package/dist/id-verification.d.ts +1 -1
  166. package/dist/id-verification.esm.js +2 -2
  167. package/dist/id.d.ts +5 -5
  168. package/dist/id.esm.js +3 -3
  169. package/dist/{idCaptureDefaults-Dszuq9ng.esm.js → idCaptureDefaults-R3rHuTOE.esm.js} +4 -4
  170. package/dist/{idCaptureManager-NRGuCVv2.d.ts → idCaptureManager-CgkQW3Xc.d.ts} +24 -13
  171. package/dist/{idCaptureManager-B_TyUA3w.esm.js → idCaptureManager-D_YGMeCW.esm.js} +30 -22
  172. package/dist/{idCaptureServices-C6FUQ76N.esm.js → idCaptureServices-CP6AxsFW.esm.js} +17 -25
  173. package/dist/{idCaptureStateMachine-Cr8WdGyp.esm.js → idCaptureStateMachine-BdBtGQZP.esm.js} +114 -96
  174. package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
  175. package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-C0C7lFGd.d.ts} +4 -3
  176. package/dist/{idOcrManager-BMK2oou0.esm.js → idOcrManager-XTbpfHoF.esm.js} +5 -3
  177. package/dist/{idOcrStateMachine-RjNycN07.esm.js → idOcrStateMachine-B-00PgPh.esm.js} +13 -10
  178. package/dist/{idVerificationManager-4wY-Ee4j.esm.js → idVerificationManager-B4NYLlUl.esm.js} +5 -3
  179. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  180. package/dist/{idVerificationStateMachine-Bj00uWvh.esm.js → idVerificationStateMachine-B48Ikl-7.esm.js} +4 -6
  181. package/dist/identity-reuse.d.ts +2 -2
  182. package/dist/identity-reuse.esm.js +2 -2
  183. package/dist/identity-search.d.ts +97 -0
  184. package/dist/identity-search.esm.js +96 -0
  185. package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +84 -17
  186. package/dist/{identityReuseManager-CCZ-ES2E.esm.js → identityReuseManager-tFeYm_So.esm.js} +9 -4
  187. package/dist/{identityReuseStateMachine-BtpkGpYZ.esm.js → identityReuseStateMachine-Ckf39qFu.esm.js} +24 -31
  188. package/dist/{index-DlVDVTcf.d.ts → index-CNck5TLp.d.ts} +1 -1
  189. package/dist/{index-BGnYn_4J.d.ts → index-CoePktWH.d.ts} +2 -2
  190. package/dist/index-DHuAkTe0.d.ts +1 -0
  191. package/dist/index.d.ts +1 -1
  192. package/dist/index.esm.js +1 -1
  193. package/dist/{invokeOnCaptureCallback-BkvXSZfa.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
  194. package/dist/kyb-checks.d.ts +1 -1
  195. package/dist/kyb-checks.esm.js +2 -2
  196. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  197. package/dist/{kybChecksManager-x2nBdasv.esm.js → kybChecksManager-DP76y-Qz.esm.js} +3 -2
  198. package/dist/{kybChecksStateMachine-DdWSo3jQ.esm.js → kybChecksStateMachine-OKLT8Zoc.esm.js} +11 -14
  199. package/dist/mandatory-consent.d.ts +2 -2
  200. package/dist/mandatory-consent.esm.js +2 -2
  201. package/dist/{mandatoryConsentManager-C9JJGENL.esm.js → mandatoryConsentManager-NX1lz6nk.esm.js} +5 -3
  202. package/dist/{mandatoryConsentManager-JNeVXgK8.d.ts → mandatoryConsentManager-kzr5kdc_.d.ts} +5 -4
  203. package/dist/{mandatoryConsentStateMachine-DLNIGElA.esm.js → mandatoryConsentStateMachine-D1J2NQSI.esm.js} +6 -9
  204. package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
  205. package/dist/{multipartRecordingService-OmSzHBqh.esm.js → multipartRecordingService-Cz-cWrpV.esm.js} +2 -2
  206. package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-Cyh71hOt.esm.js} +1 -1
  207. package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-BrtDMB0Z.esm.js} +23 -9
  208. package/dist/phone.d.ts +1 -1
  209. package/dist/phone.esm.js +2 -2
  210. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  211. package/dist/{phoneManager-BylOWecM.esm.js → phoneManager-D1QPNbu0.esm.js} +5 -3
  212. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  213. package/dist/{phoneServices-Crge7uSV.esm.js → phoneServices-DC7AuUed.esm.js} +3 -7
  214. package/dist/{phoneStateMachine-CHnhCS-4.esm.js → phoneStateMachine-CxCPxTIy.esm.js} +4 -4
  215. package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
  216. package/dist/{processFaceMatch-BveUAHts.esm.js → processFaceMatch-BQoiqLVh.esm.js} +1 -1
  217. package/dist/qe-signature.d.ts +2 -2
  218. package/dist/qe-signature.esm.js +1 -1
  219. package/dist/{recordingService-BUqAQd8F.esm.js → recordingService-CSCvD2tB.esm.js} +17 -10
  220. package/dist/redirect-to-mobile.d.ts +1 -1
  221. package/dist/redirect-to-mobile.esm.js +2 -2
  222. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +4 -3
  223. package/dist/{redirectToMobileManager-DUpLyXsq.esm.js → redirectToMobileManager-Dcpg5GfP.esm.js} +7 -4
  224. package/dist/{redirectToMobileStateMachine-D0DW4y-f.esm.js → redirectToMobileStateMachine-BMehrtVP.esm.js} +18 -21
  225. package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
  226. package/dist/{runChildModule-BTMOZdMM.esm.js → runChildModule-DNEmc7of.esm.js} +8 -6
  227. package/dist/{sdkVersion-CinXzhdk.esm.js → sdkVersion-etdZfyCR.esm.js} +1 -1
  228. package/dist/selfie.d.ts +6 -6
  229. package/dist/selfie.esm.js +15 -13
  230. package/dist/{selfieErrorUtils-D92PpZGe.esm.js → selfieErrorUtils-DT-uhK20.esm.js} +1 -1
  231. package/dist/{selfieManager-DX9Ejy4x.esm.js → selfieManager-CdS6a7Q8.esm.js} +7 -6
  232. package/dist/{selfieManager-BPOlD-UN.d.ts → selfieManager-DrBYj5kA.d.ts} +2 -2
  233. package/dist/{selfieStateMachine-BfJ5mJ57.esm.js → selfieStateMachine-ChCl3nyf.esm.js} +5 -5
  234. package/dist/{session-CswNE2eZ.esm.js → session-VXYuRYzb.esm.js} +5 -4
  235. package/dist/session.d.ts +3 -13
  236. package/dist/session.esm.js +5 -5
  237. package/dist/{sessionInitializer-DFtIRfDh.esm.js → sessionInitializer-BT_CmYcX.esm.js} +54 -79
  238. package/dist/{setup-Bl3CRduw.esm.js → setup-BXrgDdfx.esm.js} +14 -12
  239. package/dist/{setup-prV5HQCQ.d.ts → setup-rcXgYUcY.d.ts} +6 -5
  240. package/dist/signature.d.ts +1 -1
  241. package/dist/signature.esm.js +2 -2
  242. package/dist/{signatureManager-QlegdTo3.esm.js → signatureManager-B737Gkvk.esm.js} +5 -3
  243. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  244. package/dist/{signatureStateMachine-DFbbbFwg.esm.js → signatureStateMachine-B-QG7fk0.esm.js} +5 -7
  245. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  246. package/dist/{stats-Bv5PiWvo.esm.js → stats-CrqhpKkP.esm.js} +1 -1
  247. package/dist/stats.esm.js +1 -1
  248. package/dist/step-up.d.ts +3 -2
  249. package/dist/step-up.esm.js +2 -1
  250. package/dist/{tri-BUFivnaE.esm.js → tri-BD9z6z0w.esm.js} +6 -3
  251. package/dist/tri.d.ts +1 -1
  252. package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
  253. package/dist/tri.esm.js +1 -1
  254. package/dist/trueSight-BymJD5cW.esm.js +1 -0
  255. package/dist/{trueSightService-CDbmG-Mi.esm.js → trueSightService-BwyLhIAo.esm.js} +10 -8
  256. package/dist/trust-graph.d.ts +87 -27
  257. package/dist/trust-graph.esm.js +6 -25
  258. package/dist/trustGraphStateMachine-BxvReuo1.esm.js +58 -0
  259. package/dist/{types-CquDWYfv.d.ts → types-4Re9FSOw.d.ts} +68 -6
  260. package/dist/{types-D9vIGFbl.d.ts → types-B-PIc0en.d.ts} +1 -1
  261. package/dist/types-BNkzXOXE.d.ts +45 -0
  262. package/dist/types-BtrJ5fkm.d.ts +6 -0
  263. package/dist/{types-LA74KylV.d.ts → types-C1056-J1.d.ts} +1 -1
  264. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  265. package/dist/{events-kU5WJU4B.esm.js → types-CBQN04Rh.esm.js} +5 -299
  266. package/dist/{types-BD9sV5oG.d.ts → types-CEGG70FK.d.ts} +16 -3
  267. package/dist/types-CXTDuzUJ.d.ts +16 -0
  268. package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
  269. package/dist/{types-CyNndVAT.d.ts → types-Cy6Lx3L6.d.ts} +2 -2
  270. package/dist/{types-BaDx6utW.d.ts → types-DEa3taWc.d.ts} +4 -0
  271. package/dist/{types-0Rr7etmf.d.ts → types-DHpz4Y37.d.ts} +1 -1
  272. package/dist/{types-BpJ21a4T.d.ts → types-b0l9b83G.d.ts} +14 -7
  273. package/dist/video-selfie.d.ts +8 -7
  274. package/dist/video-selfie.esm.js +14 -13
  275. package/dist/{videoSelfieCameraWarmer-Dnkiqe0z.esm.js → videoSelfieCameraWarmer-DgRlU_8q.esm.js} +10 -10
  276. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  277. package/dist/{videoSelfieStepDetector-B78BE_x9.d.ts → videoSelfieStepDetector-DC_Qh7qI.d.ts} +19 -9
  278. package/dist/{warmup-DtB0DJpl.esm.js → warmup-BN8dG2KX.esm.js} +192 -42
  279. package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
  280. package/dist/wasm.d.ts +9 -3
  281. package/dist/wasm.esm.js +3 -3
  282. package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
  283. package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-DwBfTlgB.esm.js} +1 -1
  284. package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-B2P6Vlvv.esm.js} +32 -13
  285. package/dist/watchlist-for-business.d.ts +1 -1
  286. package/dist/watchlist-for-business.esm.js +2 -2
  287. package/dist/watchlist.d.ts +1 -1
  288. package/dist/watchlist.esm.js +2 -2
  289. package/dist/{watchlistForBusinessManager-DOYmIiaj.esm.js → watchlistForBusinessManager-DxeSH80T.esm.js} +5 -3
  290. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  291. package/dist/{watchlistForBusinessStateMachine-D8qIyL8w.esm.js → watchlistForBusinessStateMachine-BC9UWLuZ.esm.js} +12 -9
  292. package/dist/{watchlistManager-BJGLRv-x.esm.js → watchlistManager-BHzmC9OC.esm.js} +5 -3
  293. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  294. package/dist/{watchlistStateMachine-DeLfuGSl.esm.js → watchlistStateMachine-Bxzn16iJ.esm.js} +4 -6
  295. package/dist/workflow.d.ts +6 -5
  296. package/dist/workflow.esm.js +68 -49
  297. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  298. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  299. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  300. package/package.json +13 -3
  301. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  302. package/dist/camera-9wWD-pwg.d.ts +0 -4
  303. package/dist/index-DpTj5PFb.d.ts +0 -1
  304. package/dist/nationalIds-B91f_RuB.esm.js +0 -99
  305. package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
  306. package/dist/tri.esm-DgtAka_v.esm.js +0 -2145
  307. package/dist/types-B2M1IPZn.d.ts +0 -6
  308. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +0 -27
@@ -1,11 +1,12 @@
1
- import { r as getWasmStatus } from "./warmup-DtB0DJpl.esm.js";
2
- import { r as getToken, t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
3
- import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-DFtIRfDh.esm.js";
4
- import { E as updateFeatureManagementUser } from "./feature-management-BMUPPAzI.esm.js";
5
- import { i as toIncodeApiError } from "./apiError-BeWqIYu8.esm.js";
6
- import "./session-CswNE2eZ.esm.js";
1
+ import { r as getWasmStatus } from "./warmup-BN8dG2KX.esm.js";
2
+ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
3
+ import { r as getToken, t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
4
+ import { d as whenSessionFingerprintSettled, f as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-BT_CmYcX.esm.js";
5
+ import { E as updateFeatureManagementUser } from "./feature-management-BlscKbeV.esm.js";
6
+ import { i as toIncodeApiError } from "./apiError-BAfdBGxH.esm.js";
7
+ import "./session-VXYuRYzb.esm.js";
7
8
  import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
8
- import { a as prefetchStartInfo } from "./phoneServices-Crge7uSV.esm.js";
9
+ import { a as prefetchStartInfo } from "./phoneServices-DC7AuUed.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 = {
@@ -101,7 +241,8 @@ function enrichFlowModuleConfig(module, flow) {
101
241
  };
102
242
  if (module.key === "ID" || module.key === "TUTORIAL_ID" || module.key === "SECOND_ID" || module.key === "SELFIE") return {
103
243
  ...config,
104
- ageAssurance: config.ageAssurance ?? flow.ageAssurance
244
+ ageAssurance: config.ageAssurance ?? flow.ageAssurance,
245
+ mergeSessionRecordings: config.mergeSessionRecordings ?? flow.mergeSessionRecordings
105
246
  };
106
247
  return config;
107
248
  }
@@ -114,7 +255,7 @@ let configConverters;
114
255
  async function loadFlowConfigConverters(flow) {
115
256
  const needed = flow.flowModules.some((module) => module.key === "EXTERNAL_VERIFICATION" || module.key === "EKYB");
116
257
  if (configConverters || !needed) return;
117
- const [ekyc, ekyb] = await Promise.all([import("./ekycUtils-Drx8ImpN.esm.js").then((n) => n.n), import("./ekybUtils-Cw8Ta9Qi.esm.js").then((n) => n.t)]);
258
+ const [ekyc, ekyb] = await Promise.all([import("./ekycUtils-DEvtEyBI.esm.js").then((n) => n.n), import("./ekybUtils-Z9MhFAer.esm.js").then((n) => n.t)]);
118
259
  configConverters = {
119
260
  toEkycConfig: ekyc.toEkycConfig,
120
261
  toEkybConfig: ekyb.toEkybConfig
@@ -226,10 +367,16 @@ function getRequiredWasmPipelines(flow) {
226
367
  function getNextRequiredWasmPipelines(state, loadedPipelines = getWasmStatus().loadedPipelines) {
227
368
  const { flow, currentStepIndex, homeScreen } = state;
228
369
  if (currentStepIndex < 0) return [];
370
+ const mayBeSkipped = stepsTheCurrentDecisionMaySkip({
371
+ armedPresets: triggeredFlowPresets(flow.flowModules),
372
+ steps: flow.flowModules.map((module) => module.key),
373
+ currentStepIndex
374
+ });
229
375
  let currentPipelines = [];
230
376
  for (let index = currentStepIndex; index < flow.flowModules.length; index++) {
231
377
  const module = flow.flowModules[index];
232
378
  if (module.key === "REDIRECT_TO_MOBILE") return [];
379
+ if (mayBeSkipped.has(index)) return [];
233
380
  const required = getRequiredWasmPipelines({
234
381
  ...flow,
235
382
  flowModules: [module]
@@ -249,7 +396,8 @@ function getNextRequiredWasmPipelines(state, loadedPipelines = getWasmStatus().l
249
396
  * - TUTORIAL_ID becomes ID (with same config)
250
397
  * - If secondId: true, adds SECOND_ID module with isSecondId: true
251
398
  * - thirdId is deprecated and ignored; the flow continues to the next step
252
- * - Bare ID following TUTORIAL_ID is dropped (already merged)
399
+ * - Bare ID following TUTORIAL_ID is dropped (already merged), except in a
400
+ * flow with identity reuse, where it becomes an ID_VALIDATION step
253
401
  */
254
402
  function normalizeFlowModules(flow, options = {}) {
255
403
  let modules = normalizeIdModules(flow.flowModules);
@@ -279,7 +427,13 @@ function dropSelfieIfVideoSelfieUsesAsSelfie(modules) {
279
427
  if (!modules.some((m) => m.key === "VIDEO_ONBOARDING" && m.configuration.useAsSelfie === true)) return modules;
280
428
  return modules.filter((m) => m.key !== "SELFIE");
281
429
  }
430
+ /**
431
+ * @internal Expands TUTORIAL_ID and handles the bare ID after it (see
432
+ * {@link normalizeFlowModules}). A flow it already ran on comes back
433
+ * unchanged.
434
+ */
282
435
  function normalizeIdModules(modules) {
436
+ const keepsIdValidation = modules.some((module) => IDENTITY_REUSE_TRIGGERS.includes(module.key));
283
437
  return modules.flatMap((module, idx, arr) => {
284
438
  if (module.key === "TUTORIAL_ID") {
285
439
  const idConfig = module.configuration;
@@ -297,7 +451,13 @@ function normalizeIdModules(modules) {
297
451
  return result;
298
452
  }
299
453
  const prev = arr[idx - 1];
300
- if (module.key === "ID" && prev?.key === "TUTORIAL_ID") return [];
454
+ if (module.key === "ID" && prev?.key === "TUTORIAL_ID") {
455
+ if (!keepsIdValidation) return [];
456
+ return [{
457
+ key: "ID_VALIDATION",
458
+ configuration: module.configuration
459
+ }];
460
+ }
301
461
  return [module];
302
462
  });
303
463
  }
@@ -334,6 +494,208 @@ function hasModule(modules, key) {
334
494
  return modules.some((module) => module.key === key);
335
495
  }
336
496
  //#endregion
497
+ //#region src/modules/flow/presets/flowPresets.ts
498
+ /** Every preset, in the order they arm and decide. The one registry. */
499
+ const FLOW_PRESETS = [identityReusePreset];
500
+ function isTriggered(modules, preset) {
501
+ return modules.some((module) => preset.triggers.includes(module.key));
502
+ }
503
+ /** Runs the preset's `prepare`, then lays its group out. */
504
+ function prepareAndLayOut(modules, flow, preset) {
505
+ return layOut(preset.prepare?.(modules, flow) ?? modules, preset);
506
+ }
507
+ /**
508
+ * Takes the preset's members out of the list and puts them back in run order,
509
+ * at the position of the earliest one. Every other module keeps its served
510
+ * order, so modules that sat between two members now run after the group.
511
+ */
512
+ function layOut(modules, preset) {
513
+ const rank = (module) => preset.members.indexOf(module.key);
514
+ const start = modules.findIndex((module) => rank(module) !== -1);
515
+ if (start === -1) return modules;
516
+ const rest = modules.slice(start);
517
+ const group = rest.filter((module) => rank(module) !== -1).sort((a, b) => rank(a) - rank(b));
518
+ const others = rest.filter((module) => rank(module) === -1);
519
+ return [
520
+ ...modules.slice(0, start),
521
+ ...group,
522
+ ...others
523
+ ];
524
+ }
525
+ function describeMisconfiguredPreset(preset, problems) {
526
+ const parts = [
527
+ problems.missing.length > 0 && `missing: ${problems.missing.join(", ")}`,
528
+ problems.unsupported.length > 0 && `not supported: ${problems.unsupported.join(", ")}`,
529
+ problems.unregistered.length > 0 && `no registered module for: ${problems.unregistered.join(", ")}`
530
+ ].filter((part) => typeof part === "string");
531
+ return `${preset.title} flow is misconfigured — ${parts.join("; ")}`;
532
+ }
533
+ /**
534
+ * Arms the presets the served flow switches on, once, at load. For each one it
535
+ * runs the preset's `prepare`, lays the group out in run order, then checks
536
+ * the laid-out list: the modules the preset needs, the ones it doesn't
537
+ * support, and a registered machine for every member present. A flow that
538
+ * fails the check can't run.
539
+ *
540
+ * A flow that switches no preset on comes back as it was: the same array, and
541
+ * no armed preset.
542
+ *
543
+ * @param canResolve - Whether a machine is registered for a module key. It is
544
+ * read when arming runs, after `getFlow`, because `<incode-flow>` fills its
545
+ * lazy registry inside `getFlow`.
546
+ */
547
+ function armFlowPresets(flow, canResolve) {
548
+ let laidOut = flow.flowModules ?? [];
549
+ const armedPresets = [];
550
+ for (const preset of FLOW_PRESETS) {
551
+ if (!isTriggered(laidOut, preset)) continue;
552
+ laidOut = prepareAndLayOut(laidOut, flow, preset);
553
+ const { missing, unsupported } = preset.check(laidOut, flow);
554
+ const unregistered = [...new Set(laidOut.map((module) => module.key).filter((key) => preset.members.includes(key) && !canResolve(key)))];
555
+ if (missing.length + unsupported.length + unregistered.length > 0) {
556
+ const problems = {
557
+ missing,
558
+ unsupported,
559
+ unregistered
560
+ };
561
+ return {
562
+ status: "misconfigured",
563
+ preset: preset.name,
564
+ moduleErrorCode: preset.misconfiguredErrorCode,
565
+ message: describeMisconfiguredPreset(preset, problems),
566
+ ...problems
567
+ };
568
+ }
569
+ armedPresets.push(preset.name);
570
+ }
571
+ return {
572
+ status: "armed",
573
+ modules: laidOut,
574
+ armedPresets
575
+ };
576
+ }
577
+ /**
578
+ * The indexes after `currentStepIndex` of the preset's members that are not in
579
+ * `stillRuns`. The safety rule lives here: only indexes after the current one,
580
+ * and only the preset's own members.
581
+ */
582
+ function skippedMembers(preset, steps, currentStepIndex, stillRuns) {
583
+ const skipped = [];
584
+ for (let index = currentStepIndex + 1; index < steps.length; index++) {
585
+ const key = steps[index];
586
+ if (!preset.members.includes(key)) continue;
587
+ if (!stillRuns.includes(preset.companions[key] ?? key)) skipped.push(index);
588
+ }
589
+ return skipped;
590
+ }
591
+ /** The analytics module of a preset, by name. */
592
+ function flowPresetAnalyticsModule(name) {
593
+ return FLOW_PRESETS.find((candidate) => candidate.name === name)?.analyticsModule ?? name;
594
+ }
595
+ /**
596
+ * The decision of each armed preset whose decision step this is: the outcome
597
+ * it took, given how the step ended, and the members that outcome skips.
598
+ * Empty when no preset decides at this step.
599
+ */
600
+ function decideFlowPresets({ armedPresets, steps, currentStepIndex, ending }) {
601
+ const step = steps[currentStepIndex];
602
+ if (step === void 0) return [];
603
+ const decisions = [];
604
+ for (const preset of FLOW_PRESETS) {
605
+ if (!armedPresets.includes(preset.name)) continue;
606
+ const outcome = preset.decide(step, ending);
607
+ if (outcome === void 0) continue;
608
+ const stillRuns = preset.outcomes[step]?.[outcome];
609
+ if (!stillRuns) continue;
610
+ decisions.push({
611
+ preset: preset.name,
612
+ analyticsModule: preset.analyticsModule,
613
+ outcome,
614
+ skipped: skippedMembers(preset, steps, currentStepIndex, stillRuns)
615
+ });
616
+ }
617
+ return decisions;
618
+ }
619
+ /**
620
+ * The indexes of the steps to remove after the step at `currentStepIndex`
621
+ * ended as `ending` says. Each armed preset whose decision step this is says
622
+ * which of its members still run; the others go.
623
+ *
624
+ * A preset never inserts, reorders, touches another module or finishes the
625
+ * flow, and nothing is removed when no preset armed or the step decides
626
+ * nothing.
627
+ */
628
+ function applyFlowPresets(position) {
629
+ return [...new Set(decideFlowPresets(position).flatMap(({ skipped }) => skipped))];
630
+ }
631
+ /**
632
+ * The steps that can run right after the step at `currentStepIndex`, in list
633
+ * order, so they can load while it runs. That is the next step, unless an
634
+ * armed preset decides at this step: then it is the step that runs next on
635
+ * each of the preset's paths. While face authentication runs, for example,
636
+ * that is IDENTITY_SEARCH and the first module after the group.
637
+ */
638
+ function stepsThatMayRunNext({ armedPresets, steps, currentStepIndex }) {
639
+ const step = steps[currentStepIndex];
640
+ if (step === void 0) return [];
641
+ const next = /* @__PURE__ */ new Set();
642
+ let decides = false;
643
+ for (const preset of FLOW_PRESETS) {
644
+ if (!armedPresets.includes(preset.name)) continue;
645
+ const outcomes = preset.outcomes[step];
646
+ if (!outcomes) continue;
647
+ decides = true;
648
+ for (const stillRuns of Object.values(outcomes)) {
649
+ const skipped = new Set(skippedMembers(preset, steps, currentStepIndex, stillRuns));
650
+ for (let index = currentStepIndex + 1; index < steps.length; index++) if (!skipped.has(index)) {
651
+ next.add(index);
652
+ break;
653
+ }
654
+ }
655
+ }
656
+ if (!decides && currentStepIndex + 1 < steps.length) next.add(currentStepIndex + 1);
657
+ return [...next].sort((a, b) => a - b).map((index) => steps[index]);
658
+ }
659
+ /**
660
+ * The presets a flow switches on. In a loaded flow these are the armed ones,
661
+ * because a flow that fails a preset's check never leaves loading.
662
+ */
663
+ function triggeredFlowPresets(modules) {
664
+ return FLOW_PRESETS.filter((preset) => isTriggered(modules, preset)).map((preset) => preset.name);
665
+ }
666
+ /**
667
+ * The indexes after `currentStepIndex` that an armed preset deciding at the
668
+ * current step skips on at least one of its paths. Empty when the current
669
+ * step decides nothing. While face authentication runs, for example, that is
670
+ * every other member of the identity group, because a recognized person
671
+ * leaves the group.
672
+ */
673
+ function stepsTheCurrentDecisionMaySkip({ armedPresets, steps, currentStepIndex }) {
674
+ const skipped = /* @__PURE__ */ new Set();
675
+ const step = steps[currentStepIndex];
676
+ if (step === void 0) return skipped;
677
+ for (const preset of FLOW_PRESETS) {
678
+ if (!armedPresets.includes(preset.name)) continue;
679
+ for (const stillRuns of Object.values(preset.outcomes[step] ?? {})) for (const index of skippedMembers(preset, steps, currentStepIndex, stillRuns)) skipped.add(index);
680
+ }
681
+ return skipped;
682
+ }
683
+ /**
684
+ * The key of the first module a flow runs once the presets it switches on
685
+ * have prepared it and laid it out, for preloading before the flow loads. It
686
+ * doesn't run the presets' checks, so it also answers for a raw dashboard
687
+ * flow or one that will fail to load. With the identity search hint from
688
+ * session start, for example, that is the module after the dropped contact
689
+ * steps.
690
+ */
691
+ function getFirstFlowModuleKey(flow) {
692
+ const served = flow.flowModules ?? [];
693
+ if (!FLOW_PRESETS.some((preset) => isTriggered(served, preset))) return served[0]?.key;
694
+ let modules = normalizeIdModules(served);
695
+ for (const preset of FLOW_PRESETS) if (isTriggered(modules, preset)) modules = prepareAndLayOut(modules, flow, preset);
696
+ return modules[0]?.key;
697
+ }
698
+ //#endregion
337
699
  //#region src/modules/flow/flowServices.ts
338
700
  let dashboardFlowCache;
339
701
  var FlowSessionFinishedError = class extends Error {
@@ -376,8 +738,8 @@ function toRegulationType(value) {
376
738
  * The consent decision rides on the device-fingerprint response. A flow that
377
739
  * never checks for consent doesn't read that response, so its first module
378
740
  * doesn't wait for the post, and the post keeps waiting for the device hash in
379
- * the background. A flow that checks waits for the post, so the post stops
380
- * waiting for the hash (`endDeviceHashWait`).
741
+ * the background. A flow that checks waits for the post, and so for the device
742
+ * hash: the hash must never be dropped to show the first screen sooner.
381
743
  */
382
744
  function readsFingerprintResult(flow) {
383
745
  return flow.mandatoryConsentCheck !== false;
@@ -406,7 +768,6 @@ function prependMandatoryConsent(flow) {
406
768
  */
407
769
  async function completeDeferredActivation(flow, signal) {
408
770
  const awaitFingerprint = readsFingerprintResult(flow);
409
- if (awaitFingerprint) endDeviceHashWait();
410
771
  await initializeSession({
411
772
  signal,
412
773
  awaitFingerprint
@@ -514,7 +875,6 @@ async function normalizeDashboardFlow(rawFlow, options, signal) {
514
875
  let flow = rawFlow;
515
876
  if (options.deferActivation !== true) {
516
877
  const awaitFingerprint = readsFingerprintResult(rawFlow);
517
- if (awaitFingerprint) endDeviceHashWait();
518
878
  await initializeSession({
519
879
  signal,
520
880
  awaitFingerprint
@@ -540,7 +900,7 @@ async function normalizeDashboardFlow(rawFlow, options, signal) {
540
900
  * activation still runs, so that screen skips a second round trip.
541
901
  */
542
902
  function warmFirstModule(flow) {
543
- if (flow.flowModules[0]?.key === "PHONE") {
903
+ if (getFirstFlowModuleKey(flow) === "PHONE") {
544
904
  loadPhoneValidation();
545
905
  prefetchStartInfo();
546
906
  }
@@ -588,4 +948,4 @@ async function resolveDashboardModuleConfig(options) {
588
948
  return flowConfig;
589
949
  }
590
950
  //#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 };
951
+ 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-BA57nCxj.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-3-d1ECCh.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-DoLbpx5e.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-d5_E7gAm.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-kU5WJU4B.esm.js";
2
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-3-d1ECCh.esm.js";
1
+ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-ChMS-UzR.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-d5_E7gAm.esm.js";
4
6
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
5
7
  var BrowserGeolocationProvider = class {
6
8
  getCurrentPosition() {
@@ -1,17 +1,15 @@
1
- import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
- import { a as isIOS, t as isAndroid } from "./platform-aPh7gTWh.esm.js";
3
- import { n as isConnectivityError } from "./apiError-BeWqIYu8.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-BaAXPR_w.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
2
+ import { i as isIOS, t as isAndroid } from "./platform-GIg4uPWe.esm.js";
3
+ import { n as isConnectivityError } from "./apiError-BAfdBGxH.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-DWM8lV9V.esm.js";
7
7
  //#region src/modules/geolocation/geolocationServices.ts
8
8
  async function addGeolocation(params, signal) {
9
- const res = await api.post(endpoints.addGeolocation, {
9
+ return (await api.post(endpoints.addGeolocation, {
10
10
  latitude: params.latitude,
11
11
  longitude: params.longitude
12
- }, { signal });
13
- if (!res.ok) throw new Error(`POST ${endpoints.addGeolocation} failed: ${res.status} ${res.statusText}`);
14
- return res.data;
12
+ }, { signal })).data;
15
13
  }
16
14
  //#endregion
17
15
  //#region src/modules/geolocation/geolocationStateMachine.ts
@@ -1,5 +1,5 @@
1
1
  import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
2
- import { p as isTabletWithoutAndroid } from "./platform-aPh7gTWh.esm.js";
2
+ import { f as isTabletWithoutAndroid } from "./platform-GIg4uPWe.esm.js";
3
3
  import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
4
4
  //#region src/internal/device/getDeviceClass.ts
5
5
  function getDeviceClass() {
@@ -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-BwMClTqC.esm.js";
2
- import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-D5HkBqfr.esm.js";
1
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-DeHHhlcf.esm.js";
2
+ import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-CaZxyEOO.esm.js";
3
3
  export { createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
@@ -1,7 +1,9 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-kU5WJU4B.esm.js";
1
+ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-ChMS-UzR.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-BwMClTqC.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-DeHHhlcf.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,11 +1,9 @@
1
- import { t as api, u as endpoints } from "./api-C_P9YXbL.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-BNxrW8xK.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
- const res = await api.post(endpoints.governmentValidation, {}, { signal });
7
- if (!res.ok) throw new Error(`POST ${endpoints.governmentValidation} failed: ${res.status} ${res.statusText}`);
8
- return res.data;
6
+ return (await api.post(endpoints.governmentValidation, {}, { signal })).data;
9
7
  }
10
8
  //#endregion
11
9
  //#region src/modules/government-validation/governmentValidationStateMachine.ts
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-CquDWYfv.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-4Re9FSOw.js";
4
5
  //#region src/modules/home/types.d.ts
5
6
  type HomeConfig = EmptyConfig;
6
7
  //#endregion