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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
  3. package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-ppyMYVoY.esm.js} +1 -1
  4. package/dist/{FaceDetectionProvider-CHpscouN.esm.js → FaceDetectionProvider-n9u4dEn_.esm.js} +9 -9
  5. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
  6. package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +2 -2
  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/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-CduV32Qa.esm.js} +1 -1
  10. package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
  11. package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-0xTxgP0R.esm.js} +42 -6
  12. package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-CsDED9UU.esm.js} +1 -1
  13. package/dist/{addressSearch-D6cKPWmk.esm.js → addressSearch-Rxm1K67A.esm.js} +5 -4
  14. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  15. package/dist/ae-signature.d.ts +2 -2
  16. package/dist/ae-signature.esm.js +1 -1
  17. package/dist/antifraud.d.ts +1 -1
  18. package/dist/antifraud.esm.js +2 -2
  19. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  20. package/dist/{antifraudManager-CbIwM35x.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
  21. package/dist/{antifraudStateMachine-qNNXrlsP.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
  22. package/dist/{api-C_P9YXbL.esm.js → api-CZpuJuZl.esm.js} +2 -1
  23. package/dist/{apiError-BeWqIYu8.esm.js → apiError-CtArBUt-.esm.js} +1 -1
  24. package/dist/{attemptCarry-BaAXPR_w.esm.js → attemptCarry-BecGGZK8.esm.js} +1 -1
  25. package/dist/authentication.d.ts +3 -3
  26. package/dist/authentication.esm.js +2 -2
  27. package/dist/{authenticationManager-CTHFl6dl.esm.js → authenticationManager-9N3eg3Uh.esm.js} +7 -6
  28. package/dist/{authenticationManager-DKLRA91K.d.ts → authenticationManager-DRaugLgH.d.ts} +2 -2
  29. package/dist/{authenticationStateMachine-D-SOzH8C.esm.js → authenticationStateMachine-DoK5RKIS.esm.js} +50 -18
  30. package/dist/avatar.d.ts +1 -1
  31. package/dist/{browser-pQZA35G2-DJEJnmCd.esm.js → browser-DlFgHpoC-DnyrCR8r.esm.js} +150 -161
  32. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  33. package/dist/camera.esm.js +1 -1
  34. package/dist/certificate-issuance.d.ts +1 -1
  35. package/dist/certificate-issuance.esm.js +2 -2
  36. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  37. package/dist/{certificateIssuanceManager-CrF3wjCH.esm.js → certificateIssuanceManager-DaUklfNj.esm.js} +5 -3
  38. package/dist/{certificateIssuanceStateMachine-uSD9IkcV.esm.js → certificateIssuanceStateMachine-_EQcjGE3.esm.js} +4 -4
  39. package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
  40. package/dist/consent.d.ts +1 -1
  41. package/dist/consent.esm.js +2 -2
  42. package/dist/{consentManager-BD7wwgat.esm.js → consentManager-BPocwpm2.esm.js} +5 -3
  43. package/dist/{consentManager-7aHaehwF.d.ts → consentManager-vI6QHkHU.d.ts} +5 -4
  44. package/dist/{consentStateMachine-BAiLDE3D.esm.js → consentStateMachine-DgiIcT9q.esm.js} +3 -3
  45. package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
  46. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
  47. package/dist/cross-document-data-match.d.ts +1 -1
  48. package/dist/cross-document-data-match.esm.js +1 -1
  49. package/dist/{crossDocumentDataMatchManager-CUc1uACE.esm.js → crossDocumentDataMatchManager-BfA29Aji.esm.js} +6 -4
  50. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  51. package/dist/curp-DZGvefg3.esm.js +14 -0
  52. package/dist/curp-validation.d.ts +1 -1
  53. package/dist/curp-validation.esm.js +2 -2
  54. package/dist/{curpValidationManager-DBfZSQbu.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -4
  55. package/dist/{curpValidationManager-Crz3bnCo.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
  56. package/dist/{curpValidationStateMachine-DyAEyScb.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +5 -5
  57. package/dist/custom-fields.d.ts +1 -1
  58. package/dist/custom-fields.esm.js +1 -1
  59. package/dist/custom-watchlist.d.ts +1 -1
  60. package/dist/custom-watchlist.esm.js +2 -2
  61. package/dist/{customFieldsManager-BZhIPyaY.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
  62. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  63. package/dist/{customWatchlistManager-B4cmxi__.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
  64. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  65. package/dist/{customWatchlistStateMachine-ZZoDGRAZ.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
  66. package/dist/{deepsightLoader-je1YxHgT.esm.js → deepsightLoader-zG373VVx.esm.js} +10 -6
  67. package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
  68. package/dist/{desktopCameraElection-m2dAj6Zu.esm.js → desktopCameraElection-BKFjsQpO.esm.js} +5 -5
  69. package/dist/document-capture.d.ts +1 -1
  70. package/dist/document-capture.esm.js +2 -2
  71. package/dist/{documentCaptureManager-v57klTso.esm.js → documentCaptureManager-BKaJVQxg.esm.js} +5 -3
  72. package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-CoGcEiMK.d.ts} +4 -3
  73. package/dist/{documentCaptureStateMachine-CgCtimSa.esm.js → documentCaptureStateMachine-BYLb5Azk.esm.js} +6 -6
  74. package/dist/dynamic-forms.d.ts +1 -1
  75. package/dist/dynamic-forms.esm.js +2 -2
  76. package/dist/{dynamicFormsManager-BKWJZfkn.esm.js → dynamicFormsManager-BfQKWG7a.esm.js} +5 -3
  77. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  78. package/dist/{dynamicFormsStateMachine-CQN8p1ux.esm.js → dynamicFormsStateMachine-CRq01QNK.esm.js} +4 -4
  79. package/dist/ekyb.d.ts +3 -3
  80. package/dist/ekyb.esm.js +2 -2
  81. package/dist/{ekybManager-BD6HTwFJ.esm.js → ekybManager-B489iXyO.esm.js} +5 -3
  82. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  83. package/dist/{ekybStateMachine-3kceTymI.esm.js → ekybStateMachine-DZxg8T0H.esm.js} +18 -20
  84. package/dist/ekyc-prefill.d.ts +3 -3
  85. package/dist/ekyc-prefill.esm.js +2 -2
  86. package/dist/ekyc.d.ts +3 -3
  87. package/dist/ekyc.esm.js +3 -3
  88. package/dist/{ekycManager-CERRvIfg.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
  89. package/dist/{ekycManager-DawJq3Jo.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
  90. package/dist/{ekycPrefillManager-D_8NJzZf.esm.js → ekycPrefillManager-BXWDF7vT.esm.js} +3 -2
  91. package/dist/{ekycPrefillManager-DLNmToWT.d.ts → ekycPrefillManager-DOTl3Y2w.d.ts} +6 -5
  92. package/dist/{ekycPrefillStateMachine-C-JAvkH3.esm.js → ekycPrefillStateMachine-CuWTVze1.esm.js} +11 -10
  93. package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-DXP2hqVw.esm.js} +198 -38
  94. package/dist/{ekycStateMachine-qvQ-b4IY.esm.js → ekycStateMachine-nwJRel2s.esm.js} +349 -67
  95. package/dist/{ekycUtils-Drx8ImpN.esm.js → ekycUtils-FcqA6oU4.esm.js} +45 -43
  96. package/dist/electronic-signature.d.ts +1 -1
  97. package/dist/electronic-signature.esm.js +1 -1
  98. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  99. package/dist/{electronicSignatureManager-u3UBhWw_.esm.js → electronicSignatureManager-BcE0XMrN.esm.js} +8 -6
  100. package/dist/email.d.ts +1 -1
  101. package/dist/email.esm.js +2 -2
  102. package/dist/{emailManager-BSaGg1Gl.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
  103. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  104. package/dist/{emailStateMachine-CaoPZtZN.esm.js → emailStateMachine-CTEaYncs.esm.js} +4 -4
  105. package/dist/events-CP3yOzAl.esm.js +299 -0
  106. package/dist/events.d.ts +3 -1
  107. package/dist/events.esm.js +2 -1
  108. package/dist/extensibility.d.ts +42 -56
  109. package/dist/extensibility.esm.js +38 -38
  110. package/dist/{externalFetch-cUjJYyXj.esm.js → externalFetch-CQY41QT1.esm.js} +1 -1
  111. package/dist/face-match.d.ts +1 -1
  112. package/dist/face-match.esm.js +2 -2
  113. package/dist/{faceCaptureManagerFactory-DKJUjsV2.esm.js → faceCaptureManagerFactory-BBQzNrku.esm.js} +17 -6
  114. package/dist/{faceCaptureManagerFactory-ZudYP6Qp.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +18 -11
  115. package/dist/{faceCaptureSetup-CZzv26ip.esm.js → faceCaptureSetup-D8_ilXFc.esm.js} +46 -38
  116. package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
  117. package/dist/{faceMatchManager-qPJsa5Ac.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
  118. package/dist/{faceMatchStateMachine-D90ZHY1r.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +44 -18
  119. package/dist/{feature-management-BMUPPAzI.esm.js → feature-management-SIBmKJs8.esm.js} +1 -1
  120. package/dist/feature-management.esm.js +1 -1
  121. package/dist/field-comparison.d.ts +1 -1
  122. package/dist/field-comparison.esm.js +1 -1
  123. package/dist/{fieldComparisonManager-BLLj_Ey1.esm.js → fieldComparisonManager-VgCU4X96.esm.js} +6 -4
  124. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  125. package/dist/fiscal-qr.d.ts +1 -1
  126. package/dist/fiscal-qr.esm.js +1 -1
  127. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  128. package/dist/{fiscalQrManager-Bh3rxb7Y.esm.js → fiscalQrManager-DOLq45ph.esm.js} +6 -4
  129. package/dist/flow-events.d.ts +1 -1
  130. package/dist/flow.d.ts +51 -13
  131. package/dist/flow.esm.js +241 -62
  132. package/dist/{flowCompletionService-DgA2VEq4.esm.js → flowCompletionService-BFCddN3G.esm.js} +24 -3
  133. package/dist/{flowServices-aJ5kGxBd.esm.js → flowServices-NX4ksmS5.esm.js} +374 -13
  134. package/dist/geolocation.d.ts +1 -1
  135. package/dist/geolocation.esm.js +2 -2
  136. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
  137. package/dist/{geolocationManager-BA57nCxj.esm.js → geolocationManager-D1Ga7_lB.esm.js} +5 -3
  138. package/dist/{geolocationStateMachine-3-d1ECCh.esm.js → geolocationStateMachine-oPgI5FIQ.esm.js} +5 -5
  139. package/dist/government-validation.d.ts +1 -1
  140. package/dist/government-validation.esm.js +2 -2
  141. package/dist/{governmentValidationManager-D5HkBqfr.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
  142. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  143. package/dist/{governmentValidationStateMachine-BwMClTqC.esm.js → governmentValidationStateMachine-wBunpfQ9.esm.js} +3 -3
  144. package/dist/home.d.ts +4 -3
  145. package/dist/home.esm.js +4 -2
  146. package/dist/http.esm.js +1 -1
  147. package/dist/id-ocr.d.ts +1 -1
  148. package/dist/id-ocr.esm.js +3 -3
  149. package/dist/id-selfie-flow.d.ts +6 -5
  150. package/dist/id-selfie-flow.esm.js +12 -11
  151. package/dist/id-verification.d.ts +1 -1
  152. package/dist/id-verification.esm.js +2 -2
  153. package/dist/id.d.ts +3 -3
  154. package/dist/id.esm.js +3 -3
  155. package/dist/{idCaptureDefaults-Dszuq9ng.esm.js → idCaptureDefaults-Drh207VJ.esm.js} +3 -3
  156. package/dist/{idCaptureManager-NRGuCVv2.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +12 -11
  157. package/dist/{idCaptureManager-B_TyUA3w.esm.js → idCaptureManager-DjZyIbxc.esm.js} +12 -10
  158. package/dist/{idCaptureServices-C6FUQ76N.esm.js → idCaptureServices-DWs9Fb58.esm.js} +7 -7
  159. package/dist/{idCaptureStateMachine-Cr8WdGyp.esm.js → idCaptureStateMachine-BGMkWF9t.esm.js} +22 -20
  160. package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
  161. package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-DflRx-_u.d.ts} +5 -4
  162. package/dist/{idOcrManager-BMK2oou0.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
  163. package/dist/{idOcrStateMachine-RjNycN07.esm.js → idOcrStateMachine-B832arAl.esm.js} +4 -4
  164. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  165. package/dist/{idVerificationManager-4wY-Ee4j.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
  166. package/dist/{idVerificationStateMachine-Bj00uWvh.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
  167. package/dist/identity-reuse.d.ts +2 -2
  168. package/dist/identity-reuse.esm.js +2 -2
  169. package/dist/identity-search.d.ts +97 -0
  170. package/dist/identity-search.esm.js +97 -0
  171. package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-C40ngKeM.d.ts} +82 -15
  172. package/dist/{identityReuseManager-CCZ-ES2E.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
  173. package/dist/{identityReuseStateMachine-BtpkGpYZ.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
  174. package/dist/{index-DlVDVTcf.d.ts → index-BKOWUhxG.d.ts} +22 -93
  175. package/dist/index-DHuAkTe0.d.ts +1 -0
  176. package/dist/{index-BGnYn_4J.d.ts → index-DxYNO94y.d.ts} +2 -2
  177. package/dist/index.d.ts +1 -1
  178. package/dist/index.esm.js +1 -1
  179. package/dist/{invokeOnCaptureCallback-BkvXSZfa.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
  180. package/dist/kyb-checks.d.ts +1 -1
  181. package/dist/kyb-checks.esm.js +2 -2
  182. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  183. package/dist/{kybChecksManager-x2nBdasv.esm.js → kybChecksManager-eRU3ht0m.esm.js} +3 -2
  184. package/dist/{kybChecksStateMachine-DdWSo3jQ.esm.js → kybChecksStateMachine-CU0oIYDR.esm.js} +8 -7
  185. package/dist/mandatory-consent.d.ts +2 -2
  186. package/dist/mandatory-consent.esm.js +2 -2
  187. package/dist/{mandatoryConsentManager-JNeVXgK8.d.ts → mandatoryConsentManager-C1B2ERZk.d.ts} +6 -5
  188. package/dist/{mandatoryConsentManager-C9JJGENL.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +5 -3
  189. package/dist/{mandatoryConsentStateMachine-DLNIGElA.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +3 -3
  190. package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-g1TwTlhd.esm.js} +20 -3
  191. package/dist/{multipartRecordingService-OmSzHBqh.esm.js → multipartRecordingService-WgK8ieRI.esm.js} +2 -2
  192. package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-pcrrqrPR.esm.js} +1 -1
  193. package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-DFJlH7K3.esm.js} +1 -1
  194. package/dist/phone.d.ts +1 -1
  195. package/dist/phone.esm.js +2 -2
  196. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  197. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  198. package/dist/{phoneManager-BylOWecM.esm.js → phoneManager-rA7updqF.esm.js} +5 -3
  199. package/dist/{phoneServices-Crge7uSV.esm.js → phoneServices-CFXcwCFr.esm.js} +1 -1
  200. package/dist/{phoneStateMachine-CHnhCS-4.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +4 -4
  201. package/dist/{processFaceMatch-BveUAHts.esm.js → processFaceMatch-B_DkDTE5.esm.js} +1 -1
  202. package/dist/qe-signature.d.ts +2 -2
  203. package/dist/qe-signature.esm.js +1 -1
  204. package/dist/{recordingService-BUqAQd8F.esm.js → recordingService-DxiwS8TV.esm.js} +5 -5
  205. package/dist/redirect-to-mobile.d.ts +1 -1
  206. package/dist/redirect-to-mobile.esm.js +2 -2
  207. package/dist/{redirectToMobileManager-DUpLyXsq.esm.js → redirectToMobileManager-DjsEtWLq.esm.js} +6 -4
  208. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
  209. package/dist/{redirectToMobileStateMachine-D0DW4y-f.esm.js → redirectToMobileStateMachine-CMjjUXSu.esm.js} +4 -4
  210. package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
  211. package/dist/{runChildModule-BTMOZdMM.esm.js → runChildModule-CJ_aQO92.esm.js} +8 -6
  212. package/dist/{sdkVersion-CinXzhdk.esm.js → sdkVersion-C9kbIDeX.esm.js} +1 -1
  213. package/dist/selfie.d.ts +4 -4
  214. package/dist/selfie.esm.js +13 -12
  215. package/dist/{selfieErrorUtils-D92PpZGe.esm.js → selfieErrorUtils-DUokfsv4.esm.js} +1 -1
  216. package/dist/{selfieManager-BPOlD-UN.d.ts → selfieManager-DihwheJ6.d.ts} +2 -2
  217. package/dist/{selfieManager-DX9Ejy4x.esm.js → selfieManager-uJtbzEp9.esm.js} +7 -6
  218. package/dist/{selfieStateMachine-BfJ5mJ57.esm.js → selfieStateMachine-CKXAmNkA.esm.js} +5 -5
  219. package/dist/{session-CswNE2eZ.esm.js → session-Bk2K8TEv.esm.js} +4 -4
  220. package/dist/session.d.ts +2 -2
  221. package/dist/session.esm.js +5 -5
  222. package/dist/{sessionInitializer-DFtIRfDh.esm.js → sessionInitializer-CUCBGZ_s.esm.js} +120 -135
  223. package/dist/{setup-Bl3CRduw.esm.js → setup-B3a5KQeI.esm.js} +14 -16
  224. package/dist/{setup-prV5HQCQ.d.ts → setup-DpOr8H_l.d.ts} +2 -2
  225. package/dist/signature.d.ts +1 -1
  226. package/dist/signature.esm.js +2 -2
  227. package/dist/{signatureManager-QlegdTo3.esm.js → signatureManager-BgAja97K.esm.js} +5 -3
  228. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  229. package/dist/{signatureStateMachine-DFbbbFwg.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
  230. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  231. package/dist/{stats-Bv5PiWvo.esm.js → stats-DoByUnTa.esm.js} +1 -1
  232. package/dist/stats.esm.js +1 -1
  233. package/dist/thumbmark.esm-CRc0cYvz.esm.js +1242 -0
  234. package/dist/{tri-BUFivnaE.esm.js → tri-xzRLIIMN.esm.js} +7 -133
  235. package/dist/tri.d.ts +2 -2
  236. package/dist/tri.esm-BIjHhBJ2.esm.js +2620 -0
  237. package/dist/tri.esm.js +2 -2
  238. package/dist/{trueSightService-CDbmG-Mi.esm.js → trueSightService-BnQDjqUu.esm.js} +7 -4
  239. package/dist/trust-graph.d.ts +4 -3
  240. package/dist/trust-graph.esm.js +5 -3
  241. package/dist/{types-BD9sV5oG.d.ts → types-9wlf1-GE.d.ts} +3 -3
  242. package/dist/{types-D9vIGFbl.d.ts → types-B-PIc0en.d.ts} +1 -1
  243. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  244. package/dist/types-CE1jkHw3.d.ts +6 -0
  245. package/dist/{types-BpJ21a4T.d.ts → types-Cpdum4vi.d.ts} +5 -5
  246. package/dist/{types-BaDx6utW.d.ts → types-DEa3taWc.d.ts} +4 -0
  247. package/dist/{types-0Rr7etmf.d.ts → types-DFP7eSle.d.ts} +1 -1
  248. package/dist/{types-LA74KylV.d.ts → types-DJPU3W2M.d.ts} +1 -1
  249. package/dist/{events-kU5WJU4B.esm.js → types-DYYMdAGv.esm.js} +3 -298
  250. package/dist/{types-CquDWYfv.d.ts → types-Ddc4Tr_f.d.ts} +33 -4
  251. package/dist/{urlUtils-B2wagB5v.esm.js → urlUtils-eYiyWjh0.esm.js} +1 -14
  252. package/dist/video-selfie.d.ts +7 -6
  253. package/dist/video-selfie.esm.js +14 -13
  254. package/dist/{videoSelfieCameraWarmer-Dnkiqe0z.esm.js → videoSelfieCameraWarmer-CgqaNI-W.esm.js} +6 -6
  255. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  256. package/dist/{videoSelfieStepDetector-B78BE_x9.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +4 -4
  257. package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
  258. package/dist/{warmup-DtB0DJpl.esm.js → warmup-BZOMg303.esm.js} +46 -4
  259. package/dist/wasm.d.ts +9 -3
  260. package/dist/wasm.esm.js +3 -3
  261. package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-DPK7qGgo.esm.js} +1 -1
  262. package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-CyLCM31e.esm.js} +22 -32
  263. package/dist/watchlist-for-business.d.ts +1 -1
  264. package/dist/watchlist-for-business.esm.js +2 -2
  265. package/dist/watchlist.d.ts +1 -1
  266. package/dist/watchlist.esm.js +2 -2
  267. package/dist/{watchlistForBusinessManager-DOYmIiaj.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +5 -3
  268. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  269. package/dist/{watchlistForBusinessStateMachine-D8qIyL8w.esm.js → watchlistForBusinessStateMachine-BMWm5mcP.esm.js} +4 -4
  270. package/dist/{watchlistManager-BJGLRv-x.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
  271. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  272. package/dist/{watchlistStateMachine-DeLfuGSl.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
  273. package/dist/workflow.d.ts +230 -44
  274. package/dist/workflow.esm.js +166 -68
  275. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  276. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  277. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  278. package/package.json +8 -8
  279. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  280. package/dist/index-DpTj5PFb.d.ts +0 -1
  281. package/dist/nationalIds-B91f_RuB.esm.js +0 -99
  282. package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
  283. package/dist/step-up.d.ts +0 -378
  284. package/dist/step-up.esm.js +0 -639
  285. package/dist/tri.esm-DgtAka_v.esm.js +0 -2145
  286. package/dist/types-B2M1IPZn.d.ts +0 -6
package/dist/flow.esm.js CHANGED
@@ -1,11 +1,13 @@
1
- import { y as addEvent } from "./events-kU5WJU4B.esm.js";
1
+ import { g as screenOpened, m as screenClosed, v as addEvent } from "./types-DYYMdAGv.esm.js";
2
+ import "./events-CP3yOzAl.esm.js";
2
3
  import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
3
- import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, d as resolveFlowModuleConfig, g as mergeDashboardConfig, h as applyModulesConfig, l as loadFlowConfigConverters, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as normalizeFlowModules } from "./flowServices-aJ5kGxBd.esm.js";
4
- import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
- import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DgA2VEq4.esm.js";
7
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BTMOZdMM.esm.js";
8
- import { n as isAdvanceableError } from "./advanceableErrors-k-U-cL5m.esm.js";
4
+ import { S as mergeDashboardConfig, _ as resolveFlowModuleConfig, a as resolveDashboardModuleConfig, c as decideFlowPresets, d as stepsThatMayRunNext, f as enrichFlowModuleConfig, g as normalizeFlowModules, h as loadFlowConfigConverters, l as flowPresetAnalyticsModule, m as getRequiredWasmPipelines, n as getFlow, o as applyFlowPresets, p as getNextRequiredWasmPipelines, r as preloadDashboardFlow, s as armFlowPresets, t as completeDeferredActivation, u as getFirstFlowModuleKey, x as applyModulesConfig } from "./flowServices-NX4ksmS5.esm.js";
5
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
6
+ import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
7
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
8
+ import { a as getTotalScoreStatus, i as getHandoffFinishStatus, n as classifyScoreStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-BFCddN3G.esm.js";
9
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CJ_aQO92.esm.js";
10
+ import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
9
11
  //#region src/modules/flow/noOpFlowModuleMachine.ts
10
12
  const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
11
13
  id: "noOpFlowModule",
@@ -376,6 +378,15 @@ function createModuleLoader(registry) {
376
378
  }
377
379
  //#endregion
378
380
  //#region src/modules/flow/orchestratedFlowStateMachine.ts
381
+ /**
382
+ * Whether only the step's own machine can end it: a host's `completeModule()`,
383
+ * or a continuable `errorModule()`, is dropped while it runs (owner decision
384
+ * 12). Today that is the identity search, whose answer the reuse step after it
385
+ * reads.
386
+ */
387
+ function endsOnlyThroughItsMachine(step) {
388
+ return step === "IDENTITY_SEARCH";
389
+ }
379
390
  function getModuleConfig(module, flow) {
380
391
  if (!module || !flow) return {};
381
392
  return resolveFlowModuleConfig(module, flow);
@@ -397,10 +408,12 @@ function createBaseContext(context, isHomeContinueLoading) {
397
408
  getFinishStatus: context.getFinishStatus,
398
409
  enableHome: context.enableHome,
399
410
  finishStatus: void 0,
411
+ completedOnMobile: false,
400
412
  isHomeContinueLoading,
401
413
  deferActivation: context.deferActivation,
402
414
  activationResolved: false,
403
- skipFaceMatch: false
415
+ skipFaceMatch: false,
416
+ armedPresets: []
404
417
  };
405
418
  }
406
419
  function createInitialContext(input) {
@@ -422,22 +435,41 @@ function createInitialContext(input) {
422
435
  function homeScreenEnabled(context, flow) {
423
436
  return context.enableHome === true && flow?.disableLaunchScreen !== true && context.isHomeContinueLoading !== true;
424
437
  }
438
+ /**
439
+ * Whether a machine is registered for a module key, eagerly or lazily. Reads
440
+ * the registries when it is called: `<incode-flow>` fills its lazy registry
441
+ * inside `getFlow`, so a check made after `getFlow` sees the keys it added.
442
+ */
443
+ function canResolveModule(context, key) {
444
+ return context.registeredModules[key] != null || context.lazyRegisteredModules[key] != null;
445
+ }
425
446
  function shouldEnterHome(context) {
426
447
  if (!homeScreenEnabled(context, context.flow)) return false;
427
448
  const firstRealIndex = context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
428
449
  return context.currentStepIndex === firstRealIndex;
429
450
  }
430
451
  const prefetchedLazyModules = /* @__PURE__ */ new WeakSet();
431
- function prefetchNextLazyModule(context) {
432
- const nextStep = context.steps[context.currentStepIndex + 1];
433
- if (!nextStep) return;
434
- const nextLazyModule = context.lazyRegisteredModules[nextStep];
435
- if (!nextLazyModule || prefetchedLazyModules.has(nextLazyModule)) return;
436
- prefetchedLazyModules.add(nextLazyModule);
437
- nextLazyModule().catch(() => {
438
- prefetchedLazyModules.delete(nextLazyModule);
452
+ /**
453
+ * The steps that can run after the current one: the next step, or, on a
454
+ * step where a preset decides the path, the next step on each path.
455
+ */
456
+ function getStepsThatMayRunNext(context) {
457
+ return stepsThatMayRunNext({
458
+ armedPresets: context.armedPresets,
459
+ steps: context.steps,
460
+ currentStepIndex: context.currentStepIndex
439
461
  });
440
462
  }
463
+ function prefetchNextLazyModules(context) {
464
+ for (const nextStep of getStepsThatMayRunNext(context)) {
465
+ const nextLazyModule = context.lazyRegisteredModules[nextStep];
466
+ if (!nextLazyModule || prefetchedLazyModules.has(nextLazyModule)) continue;
467
+ prefetchedLazyModules.add(nextLazyModule);
468
+ nextLazyModule().catch(() => {
469
+ prefetchedLazyModules.delete(nextLazyModule);
470
+ });
471
+ }
472
+ }
441
473
  const homeContinueOn = { HOME_CONTINUE: { actions: "setHomeContinueLoading" } };
442
474
  const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
443
475
  types: {
@@ -446,10 +478,23 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
446
478
  input: {}
447
479
  },
448
480
  actors: {
481
+ resolveHandoffCompletion: fromPromise(({ signal }) => getHandoffFinishStatus(signal)),
449
482
  fetchFlow: fromPromise(async ({ input, signal }) => {
450
- const flow = await retryAfterReconnect(() => input.getFlow(signal), signal);
483
+ const served = prepareFlowOcrSteps(await retryAfterReconnect(() => input.getFlow(signal), signal));
484
+ const arming = armFlowPresets(served, input.canResolve);
485
+ if (arming.status === "misconfigured") return {
486
+ flow: served,
487
+ arming
488
+ };
489
+ const flow = arming.armedPresets.length > 0 ? {
490
+ ...served,
491
+ flowModules: arming.modules
492
+ } : served;
451
493
  await loadFlowConfigConverters(flow);
452
- return flow;
494
+ return {
495
+ flow,
496
+ arming
497
+ };
453
498
  }),
454
499
  notifyBackend: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFinishStatus(input.flowId, signal), signal)),
455
500
  runChildModule,
@@ -474,7 +519,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
474
519
  setHomeContinueLoading: assign({ isHomeContinueLoading: true }),
475
520
  clearHomeContinueLoading: assign({ isHomeContinueLoading: false }),
476
521
  setFlowData: assign(({ event }) => {
477
- const flow = prepareFlowOcrSteps(event.output);
522
+ const { flow, arming } = event.output;
478
523
  const flowModules = flow.flowModules ?? [];
479
524
  const firstModule = flowModules[0];
480
525
  const config = getModuleConfig(firstModule, flow);
@@ -484,7 +529,84 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
484
529
  currentStepIndex: flowModules.length > 0 ? 0 : -1,
485
530
  currentStep: firstModule?.key,
486
531
  config,
487
- currentModuleMachine: void 0
532
+ currentModuleMachine: void 0,
533
+ armedPresets: arming.status === "armed" ? arming.armedPresets : []
534
+ };
535
+ }),
536
+ setMisconfiguredFlowError: assign(({ event }) => {
537
+ const { arming } = event.output;
538
+ if (arming.status !== "misconfigured") return {};
539
+ return {
540
+ error: arming.message,
541
+ moduleErrorCode: arming.moduleErrorCode
542
+ };
543
+ }),
544
+ reportArmedPresets: ({ event }) => {
545
+ const { flow, arming } = event.output;
546
+ if (arming.status !== "armed") return;
547
+ const steps = flow.flowModules.map((module) => module.key);
548
+ for (const preset of arming.armedPresets) {
549
+ const module = flowPresetAnalyticsModule(preset);
550
+ const screenName = `${module}.started`;
551
+ screenOpened(module, screenName, { steps });
552
+ screenClosed(module, screenName);
553
+ }
554
+ },
555
+ reportMisconfiguredFlow: ({ event }) => {
556
+ const { arming } = event.output;
557
+ if (arming.status !== "misconfigured") return;
558
+ addEvent({
559
+ code: "errorTriggered",
560
+ module: flowPresetAnalyticsModule(arming.preset),
561
+ payload: {
562
+ errorCode: arming.moduleErrorCode,
563
+ advanced: false,
564
+ missing: arming.missing,
565
+ unsupported: arming.unsupported,
566
+ unregistered: arming.unregistered
567
+ }
568
+ });
569
+ },
570
+ reportPresetDecisions: ({ context, event }) => {
571
+ const ending = event;
572
+ const decisions = decideFlowPresets({
573
+ armedPresets: context.armedPresets,
574
+ steps: context.steps,
575
+ currentStepIndex: context.currentStepIndex,
576
+ ending: {
577
+ output: ending.output,
578
+ moduleErrorCode: ending.moduleErrorCode
579
+ }
580
+ });
581
+ for (const decision of decisions) {
582
+ const screenName = `${decision.analyticsModule}.${decision.outcome}`;
583
+ screenOpened(decision.analyticsModule, screenName, {
584
+ decidedAfter: context.currentStep,
585
+ errorCode: ending.moduleErrorCode,
586
+ skippedModules: decision.skipped.map((index) => context.steps[index])
587
+ });
588
+ screenClosed(decision.analyticsModule, screenName);
589
+ }
590
+ },
591
+ removeSkippedPresetMembers: assign(({ context, event }) => {
592
+ const ending = event;
593
+ const removed = applyFlowPresets({
594
+ armedPresets: context.armedPresets,
595
+ steps: context.steps,
596
+ currentStepIndex: context.currentStepIndex,
597
+ ending: {
598
+ output: ending.output,
599
+ moduleErrorCode: ending.moduleErrorCode
600
+ }
601
+ });
602
+ if (removed.length === 0 || !context.flow) return {};
603
+ const kept = (_, index) => !removed.includes(index);
604
+ return {
605
+ steps: context.steps.filter(kept),
606
+ flow: {
607
+ ...context.flow,
608
+ flowModules: context.flow.flowModules.filter(kept)
609
+ }
488
610
  };
489
611
  }),
490
612
  setActivatedFlow: assign(({ context, event }) => {
@@ -537,11 +659,22 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
537
659
  }),
538
660
  setCurrentModuleMachine: assign(({ event }) => ({ currentModuleMachine: event.output })),
539
661
  prefetchNextModule: ({ context }) => {
540
- prefetchNextLazyModule(context);
662
+ prefetchNextLazyModules(context);
541
663
  },
542
664
  setFinishStatus: assign(({ event }) => ({ finishStatus: event.output })),
543
665
  setFinishStatusFailed: assign({ moduleErrorCode: "FINISH_STATUS_FAILED" }),
544
666
  setModuleErrorCode: assign(({ event }) => ({ moduleErrorCode: event.moduleErrorCode })),
667
+ trackFailingModuleError: ({ context, event }) => {
668
+ const { moduleErrorCode } = event;
669
+ addEvent({
670
+ code: "errorTriggered",
671
+ module: context.currentStep,
672
+ payload: moduleErrorCode === void 0 ? { advanced: false } : {
673
+ errorCode: moduleErrorCode,
674
+ advanced: false
675
+ }
676
+ });
677
+ },
545
678
  trackAdvanceableModuleError: ({ context, event }) => {
546
679
  addEvent({
547
680
  code: "errorTriggered",
@@ -555,26 +688,30 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
555
688
  },
556
689
  guards: {
557
690
  isAdvanceableModuleError: ({ event }) => isAdvanceableError(event.moduleErrorCode),
558
- isAdvanceableModuleErrorOnLastStep: ({ context, event }) => isAdvanceableError(event.moduleErrorCode) && context.currentStepIndex >= 0 && context.currentStepIndex === context.steps.length - 1,
691
+ isEarlySearchCompletion: ({ context, event }) => endsOnlyThroughItsMachine(context.currentStep) && event.fromChild !== true,
692
+ isAdvanceableSearchError: ({ context, event }) => endsOnlyThroughItsMachine(context.currentStep) && isAdvanceableError(event.moduleErrorCode),
693
+ isMisconfiguredFlow: ({ event }) => "output" in event && event.output.arming.status === "misconfigured",
559
694
  isLastStep: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex === context.steps.length - 1,
560
695
  canGoNext: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex < context.steps.length - 1,
696
+ isRedirectToMobileStep: ({ context }) => context.currentStep === "REDIRECT_TO_MOBILE",
561
697
  isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
562
698
  shouldEnterHome: ({ context }) => shouldEnterHome(context),
563
699
  needsActivation: ({ context }) => context.deferActivation && !context.activationResolved && context.currentStep !== "REDIRECT_TO_MOBILE",
564
700
  activatesBeforeFirstModule: ({ context, event }) => {
565
701
  if (!("output" in event)) return false;
566
702
  if (!context.deferActivation || context.activationResolved) return false;
567
- const flow = event.output;
703
+ const { flow } = event.output;
568
704
  const firstModuleKey = flow.flowModules?.[0]?.key;
569
705
  if (!firstModuleKey || firstModuleKey === "REDIRECT_TO_MOBILE") return false;
570
- if (!(context.registeredModules[firstModuleKey] != null || context.lazyRegisteredModules[firstModuleKey] != null)) return false;
706
+ if (!canResolveModule(context, firstModuleKey)) return false;
571
707
  return !homeScreenEnabled(context, flow);
572
708
  },
573
709
  hasModule: ({ context, event }) => {
574
710
  if (!("output" in event)) return false;
575
- const firstModuleKey = event.output.flowModules?.[0]?.key;
711
+ const { flow } = event.output;
712
+ const firstModuleKey = flow.flowModules?.[0]?.key;
576
713
  if (!firstModuleKey) return false;
577
- return context.registeredModules[firstModuleKey] != null || context.lazyRegisteredModules[firstModuleKey] != null;
714
+ return canResolveModule(context, firstModuleKey);
578
715
  },
579
716
  hasCurrentModuleMachine: ({ event }) => {
580
717
  if (!("output" in event)) return false;
@@ -597,22 +734,31 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
597
734
  invoke: {
598
735
  id: "fetchFlow",
599
736
  src: "fetchFlow",
600
- input: ({ context }) => ({ getFlow: context.getFlow }),
737
+ input: ({ context }) => ({
738
+ getFlow: context.getFlow,
739
+ canResolve: (key) => canResolveModule(context, key)
740
+ }),
601
741
  onDone: [
742
+ {
743
+ target: "error",
744
+ guard: "isMisconfiguredFlow",
745
+ actions: ["setMisconfiguredFlowError", "reportMisconfiguredFlow"]
746
+ },
602
747
  {
603
748
  target: "resolvingActivation",
604
749
  guard: "activatesBeforeFirstModule",
605
- actions: "setFlowData"
750
+ actions: ["setFlowData", "reportArmedPresets"]
606
751
  },
607
752
  {
608
753
  target: "resolvingModule",
609
754
  guard: "hasModule",
610
- actions: "setFlowData"
755
+ actions: ["setFlowData", "reportArmedPresets"]
611
756
  },
612
757
  {
613
758
  target: "error",
614
759
  actions: assign({ error: ({ event }) => {
615
- const firstModuleKey = event.output.flowModules?.[0]?.key;
760
+ const { flow } = event.output;
761
+ const firstModuleKey = flow.flowModules?.[0]?.key;
616
762
  return firstModuleKey ? `No registered module found for: ${firstModuleKey}` : "No registered module found: flow has no modules";
617
763
  } })
618
764
  }
@@ -721,13 +867,6 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
721
867
  config: context.config
722
868
  };
723
869
  },
724
- onDone: [{
725
- target: "completing",
726
- guard: "isLastStep"
727
- }, {
728
- target: "resolvingModule",
729
- actions: "incrementStep"
730
- }],
731
870
  onError: {
732
871
  target: "error",
733
872
  actions: "setError"
@@ -735,50 +874,78 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
735
874
  },
736
875
  on: {
737
876
  MODULE_COMPLETE: [
877
+ { guard: "isEarlySearchCompletion" },
738
878
  {
739
- target: "finished",
879
+ target: "resolvingHandoffCompletion",
740
880
  guard: "isOnboardingFinishedSignal"
741
881
  },
742
882
  {
743
- target: "completing",
744
- guard: "isLastStep"
745
- },
746
- {
747
- target: "resolvingModule",
748
- actions: ["persistSkipFaceMatch", "incrementStep"]
883
+ target: "advancing",
884
+ actions: [
885
+ "persistSkipFaceMatch",
886
+ "reportPresetDecisions",
887
+ "removeSkippedPresetMembers"
888
+ ]
749
889
  }
750
890
  ],
751
891
  MODULE_ERROR: [
752
- {
753
- guard: "isAdvanceableModuleErrorOnLastStep",
754
- target: "completing",
755
- actions: ["setModuleErrorCode", "trackAdvanceableModuleError"]
756
- },
892
+ { guard: "isAdvanceableSearchError" },
757
893
  {
758
894
  guard: "isAdvanceableModuleError",
759
- target: "resolvingModule",
895
+ target: "advancing",
760
896
  actions: [
761
897
  "setModuleErrorCode",
762
898
  "trackAdvanceableModuleError",
763
- "incrementStep"
899
+ "reportPresetDecisions",
900
+ "removeSkippedPresetMembers"
764
901
  ]
765
902
  },
766
903
  {
767
904
  target: "error",
768
- actions: ["setModuleErrorCode", assign(({ event }) => {
769
- const rawError = event.error;
770
- return { error: rawError === void 0 ? void 0 : String(rawError) };
771
- })]
905
+ actions: [
906
+ "setModuleErrorCode",
907
+ "trackFailingModuleError",
908
+ assign(({ event }) => {
909
+ const rawError = event.error;
910
+ return { error: rawError === void 0 ? void 0 : String(rawError) };
911
+ })
912
+ ]
772
913
  }
773
914
  ],
774
915
  COMPLETE_FLOW: { target: "completing" },
775
- FINISH_FLOW: { target: "finished" },
916
+ FINISH_FLOW: [{
917
+ guard: "isRedirectToMobileStep",
918
+ target: "resolvingHandoffCompletion"
919
+ }, { target: "finished" }],
776
920
  RESET: {
777
921
  target: "idle",
778
922
  actions: "resetContext"
779
923
  }
780
924
  }
781
925
  },
926
+ advancing: { always: [{
927
+ target: "completing",
928
+ guard: "isLastStep"
929
+ }, {
930
+ target: "resolvingModule",
931
+ actions: "incrementStep"
932
+ }] },
933
+ resolvingHandoffCompletion: {
934
+ entry: assign({ completedOnMobile: true }),
935
+ after: { [HANDOFF_COMPLETION_TIMEOUT_MS]: "finished" },
936
+ invoke: {
937
+ src: "resolveHandoffCompletion",
938
+ onDone: {
939
+ target: "finished",
940
+ actions: "setFinishStatus"
941
+ },
942
+ onError: { target: "finished" }
943
+ },
944
+ on: { RESET: {
945
+ target: "idle",
946
+ actions: "resetContext"
947
+ } }
948
+ },
782
949
  completing: {
783
950
  invoke: {
784
951
  id: "notifyBackend",
@@ -819,7 +986,7 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
819
986
  const effectiveEnableHome = enableHome === true && serverDisablesLaunch === false;
820
987
  const isTerminal = mappedStatus === "finished" || mappedStatus === "error";
821
988
  const awaitingOrchestrator = mappedStatus === "idle" || mappedStatus === "loading";
822
- const isCompletingPhase = snapshot.value === "completing";
989
+ const isCompletingPhase = mappedStatus === "completing";
823
990
  const firstRealIndex = snapshot.context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
824
991
  const isAtFirstRealModule = snapshot.context.currentStepIndex === firstRealIndex;
825
992
  const isResolvingHomeAnchor = (snapshot.value === "resolvingModule" || snapshot.value === "resolvingActivation") && effectiveEnableHome && isAtFirstRealModule;
@@ -836,15 +1003,16 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
836
1003
  presentation: {
837
1004
  isAwaitingReady: awaitingOrchestrator,
838
1005
  lazyModuleKey,
839
- shouldPrefetchHome
1006
+ shouldPrefetchHome,
1007
+ prefetchModuleKeys: lazyModuleKey === void 0 ? [] : getStepsThatMayRunNext(snapshot.context)
840
1008
  }
841
1009
  };
842
1010
  }
843
1011
  function getMappedStatus(snapshot) {
844
1012
  const { value } = snapshot;
845
1013
  if (value === "idle") return "idle";
846
- if (value === "completing") return "completing";
847
- if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || typeof value === "object") return "loading";
1014
+ if (value === "completing" || value === "resolvingHandoffCompletion") return "completing";
1015
+ if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || value === "advancing" || typeof value === "object") return "loading";
848
1016
  if (value === "finished") return "finished";
849
1017
  if (value === "error") return "error";
850
1018
  return "ready";
@@ -871,6 +1039,7 @@ function mapOrchestratedFlowState(snapshot, uiOptions) {
871
1039
  if (mappedStatus === "finished") return {
872
1040
  status: "finished",
873
1041
  flow: context.flow ?? {},
1042
+ ...context.completedOnMobile ? { completedOnMobile: true } : {},
874
1043
  finishStatus: context.finishStatus ?? {
875
1044
  redirectionUrl: "",
876
1045
  action: "none",
@@ -940,7 +1109,7 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
940
1109
  function getCanNext() {
941
1110
  const snapshot = getSnapshot();
942
1111
  const { currentStepIndex, steps } = snapshot.context;
943
- return snapshot.value === "runningModule" && currentStepIndex >= 0 && currentStepIndex < steps.length - 1;
1112
+ return snapshot.value === "runningModule" && currentStepIndex >= 0 && currentStepIndex < steps.length - 1 && !endsOnlyThroughItsMachine(snapshot.context.currentStep);
944
1113
  }
945
1114
  function getModuleConfig(moduleKey) {
946
1115
  const snapshot = getSnapshot();
@@ -1038,8 +1207,18 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
1038
1207
  * Prefer using the typed methods (completeModule, errorModule) when possible.
1039
1208
  */
1040
1209
  send(event) {
1210
+ if ("fromChild" in event) {
1211
+ const { fromChild: _fromChild, ...rest } = event;
1212
+ actor.send(rest);
1213
+ return;
1214
+ }
1041
1215
  actor.send(event);
1042
1216
  },
1217
+ /**
1218
+ * True while a step runs that `completeModule()` would move past to
1219
+ * another step. False on the last step, and on a step only its own machine
1220
+ * can end, such as the identity search.
1221
+ */
1043
1222
  get canNext() {
1044
1223
  return getCanNext();
1045
1224
  },
@@ -1105,4 +1284,4 @@ function createOrchestratedFlowManager(options) {
1105
1284
  }), { getInterviewId: options.getInterviewId });
1106
1285
  }
1107
1286
  //#endregion
1108
- export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
1287
+ export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFirstFlowModuleKey, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
@@ -1,5 +1,5 @@
1
- import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
- import { i as toIncodeApiError } from "./apiError-BeWqIYu8.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
+ import { i as toIncodeApiError } from "./apiError-CtArBUt-.esm.js";
3
3
  //#region src/modules/flow/flowCompletionService.ts
4
4
  const getFinishStatus = async (flowId, signal) => {
5
5
  const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
@@ -13,6 +13,27 @@ const getFinishStatus = async (flowId, signal) => {
13
13
  toIncodeApiError(endpoints.finishStatus, error);
14
14
  }
15
15
  };
16
+ const HANDOFF_COMPLETION_TIMEOUT_MS = 1e4;
17
+ /** Mobile already finished the session; read its redirect without finishing again. */
18
+ async function getHandoffFinishStatus(signal) {
19
+ try {
20
+ const data = (await api.get(endpoints.redirectionUrl, {
21
+ signal,
22
+ timeout: HANDOFF_COMPLETION_TIMEOUT_MS
23
+ })).data;
24
+ let redirectionUrl = "";
25
+ if (typeof data === "object" && data !== null && "redirectionUrl" in data && typeof data.redirectionUrl === "string") redirectionUrl = data.redirectionUrl;
26
+ return {
27
+ redirectionUrl,
28
+ action: "none",
29
+ scoreStatus: "UNKNOWN",
30
+ endScreenTitle: null,
31
+ endScreenText: null
32
+ };
33
+ } catch (error) {
34
+ toIncodeApiError(endpoints.redirectionUrl, error);
35
+ }
36
+ }
16
37
  const SCORE_VARIANTS = {
17
38
  OK: "success",
18
39
  WARN: "success",
@@ -36,4 +57,4 @@ async function getTotalScoreStatus(signal) {
36
57
  }
37
58
  }
38
59
  //#endregion
39
- export { getFinishStatus as n, getTotalScoreStatus as r, classifyScoreStatus as t };
60
+ export { getTotalScoreStatus as a, getHandoffFinishStatus as i, classifyScoreStatus as n, getFinishStatus as r, HANDOFF_COMPLETION_TIMEOUT_MS as t };