@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
@@ -0,0 +1 @@
1
+ import "./xstate.cjs-D6Ur0X1F.js";
@@ -1,5 +1,5 @@
1
- import { c as WasmPipeline } from "./warmup-BO57syF6.js";
2
- import { _ as MLProviderConfig } from "./createFaceAvatar-lYX0VTYs.js";
1
+ import { c as WasmPipeline } from "./warmup-BNhIuURi.js";
2
+ import { _ as MLProviderConfig } from "./createFaceAvatar-BimBTONm.js";
3
3
  //#region ../infra/src/wasm/WasmPipelineType.d.ts
4
4
  declare enum WasmPipelineType {
5
5
  IdBlurGlarePipeline = 0,
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { r as getWorkerRecordingProfile } from "./mediaRecorderOptions-B9-IEVtV.esm.js";
2
+ import { r as getWorkerRecordingProfile } from "./mediaRecorderOptions-g1TwTlhd.esm.js";
3
3
  //#region ../infra/src/media/cameraCompositorWorker.ts
4
4
  /**
5
5
  * Whether the worker transport is available here. Every probe must hold;
@@ -1,15 +1,15 @@
1
- import { l as wasmRuntime } from "./warmup-DtB0DJpl.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-Bl3CRduw.esm.js";
3
- import { r as BaseWasmProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
4
- import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
5
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-CDbmG-Mi.esm.js";
6
- import "./sessionInitializer-DFtIRfDh.esm.js";
7
- import { t as addDeviceStats } from "./stats-Bv5PiWvo.esm.js";
1
+ import { l as wasmRuntime } from "./warmup-BZOMg303.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-B3a5KQeI.esm.js";
3
+ import { r as BaseWasmProvider } from "./WasmUtilProvider-0xTxgP0R.esm.js";
4
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
5
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-BnQDjqUu.esm.js";
6
+ import "./sessionInitializer-CUCBGZ_s.esm.js";
7
+ import { t as addDeviceStats } from "./stats-DoByUnTa.esm.js";
8
8
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
9
9
  import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
10
10
  import { r as hasBackCamera } from "./backCameraStream-DS1oDiUq.esm.js";
11
11
  import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
12
- import { n as saveProcessFaceMatch } from "./processFaceMatch-BveUAHts.esm.js";
12
+ import { n as saveProcessFaceMatch } from "./processFaceMatch-B_DkDTE5.esm.js";
13
13
  //#region src/internal/faceCapture/onDeviceFaceResults.ts
14
14
  /**
15
15
  * On-device still-face capture is owned by the protected camera-cycle actor.
@@ -235,7 +235,7 @@ function startDetection(params) {
235
235
  };
236
236
  }
237
237
  async function initializeDeepsightSession(options) {
238
- const { loadDeepsightSession } = await import("./deepsightLoader-je1YxHgT.esm.js");
238
+ const { loadDeepsightSession } = await import("./deepsightLoader-zG373VVx.esm.js");
239
239
  return loadDeepsightSession({
240
240
  ds: options.ds,
241
241
  storage: options.storage
@@ -1,5 +1,5 @@
1
- import "./warmup-BO57syF6.js";
2
- import { _ as MLProviderConfig, g as IMLProviderCapability, y as IncodeCanvas } from "./createFaceAvatar-lYX0VTYs.js";
1
+ import "./warmup-BNhIuURi.js";
2
+ import { _ as MLProviderConfig, g as IMLProviderCapability, y as IncodeCanvas } from "./createFaceAvatar-BimBTONm.js";
3
3
  //#region ../infra/src/wasm/mlWasmBridgeTypes.d.ts
4
4
  /**
5
5
  * Decoded PDF417 barcode surfaced from the WASM ID-capture pipeline during
@@ -1,5 +1,5 @@
1
- import { c as WasmPipeline } from "./warmup-BO57syF6.js";
2
- import { _ as MLProviderConfig } from "./createFaceAvatar-lYX0VTYs.js";
1
+ import { c as WasmPipeline } from "./warmup-BNhIuURi.js";
2
+ import { _ as MLProviderConfig } from "./createFaceAvatar-BimBTONm.js";
3
3
  //#region ../infra/src/capabilities/IStorageCapability.d.ts
4
4
  /**
5
5
  * Storage capability interface for abstracting storage operations.
@@ -0,0 +1,125 @@
1
+ //#region ../infra/src/manager/Manager.ts
2
+ /**
3
+ * Creates a manager that wraps a state machine actor with a clean public API.
4
+ *
5
+ * The manager provides:
6
+ * - `getState()` - Returns the mapped public state
7
+ * - `subscribe()` - Listen to state changes
8
+ * - `stop()` - Stop the actor
9
+ * - Plus any custom API methods from `createApi`
10
+ *
11
+ * @template TMachine - The state machine type
12
+ * @template TMapState - Function type that maps raw snapshot to public state
13
+ * @template TCreateApi - Function type that creates the custom API
14
+ *
15
+ * @param options - Configuration options
16
+ * @param options.actor - The started actor instance
17
+ * @param options.mapState - Function to transform raw snapshot into public state
18
+ * @param options.createApi - Factory function to create custom API methods
19
+ *
20
+ * @returns Combined manager with base methods and custom API
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const manager = createManager({
25
+ * actor: createActor(myMachine).start(),
26
+ * mapState: (snapshot) => ({ status: snapshot.value }),
27
+ * createApi: ({ actor }) => ({
28
+ * doSomething() { actor.send({ type: 'DO_IT' }); }
29
+ * }),
30
+ * });
31
+ * ```
32
+ */
33
+ function createManager(options) {
34
+ const { actor, mapState, createApi, instrumentation } = options;
35
+ function getSnapshot() {
36
+ return actor.getSnapshot();
37
+ }
38
+ function getState() {
39
+ return mapState(getSnapshot());
40
+ }
41
+ function subscribe(listener) {
42
+ const subscription = actor.subscribe(() => {
43
+ listener(getState());
44
+ });
45
+ return () => subscription.unsubscribe();
46
+ }
47
+ let currentScreenName = instrumentation?.getScreenName(getSnapshot());
48
+ let currentStateName = instrumentation?.getStateName?.(getSnapshot());
49
+ let currentErrorName = instrumentation?.getErrorName(getSnapshot());
50
+ let currentErrorPayload = instrumentation?.getErrorPayload(getSnapshot());
51
+ const api = createApi({
52
+ actor,
53
+ getSnapshot,
54
+ trackElementClicked: instrumentation ? (elementName, payload) => {
55
+ instrumentation.onElementClicked?.(instrumentation.moduleName, currentStateName ?? currentScreenName, {
56
+ element: elementName,
57
+ action: payload?.action,
58
+ metadata: payload?.metadata
59
+ });
60
+ } : void 0,
61
+ trackCaptureAttemptFinished: instrumentation ? (payload) => {
62
+ instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentStateName ?? currentScreenName, { logs: payload.logs });
63
+ } : void 0
64
+ });
65
+ instrumentation?.onModuleOpened(instrumentation.moduleName);
66
+ if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, currentScreenName);
67
+ if (instrumentation && currentErrorName !== void 0) instrumentation.onErrorTriggered(instrumentation.moduleName, currentErrorName, currentScreenName, currentErrorPayload);
68
+ let lastVisible = instrumentation?.getInitialVisibility?.();
69
+ if (instrumentation && lastVisible === false) instrumentation.onBackground?.(instrumentation.moduleName, currentScreenName);
70
+ const stopVisibility = instrumentation?.subscribeVisibility?.((visible) => {
71
+ if (visible === lastVisible) return;
72
+ lastVisible = visible;
73
+ if (visible) instrumentation.onForeground?.(instrumentation.moduleName, currentScreenName);
74
+ else instrumentation.onBackground?.(instrumentation.moduleName, currentScreenName);
75
+ });
76
+ const actorSubscription = instrumentation ? actor.subscribe((snapshot) => {
77
+ const nextScreenName = instrumentation.getScreenName(snapshot);
78
+ const nextErrorName = instrumentation.getErrorName(snapshot);
79
+ const nextErrorPayload = instrumentation.getErrorPayload(snapshot);
80
+ const nextStateName = instrumentation.getStateName?.(snapshot);
81
+ if (currentScreenName === nextScreenName) {
82
+ const previousStateName = currentStateName;
83
+ currentStateName = nextStateName;
84
+ if (currentScreenName !== void 0 && nextStateName !== void 0 && nextStateName !== previousStateName) instrumentation.onStateChanged?.(instrumentation.moduleName, currentScreenName, nextStateName);
85
+ if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, currentScreenName, nextErrorPayload);
86
+ currentErrorName = nextErrorName;
87
+ currentErrorPayload = nextErrorPayload;
88
+ return;
89
+ }
90
+ if (currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
91
+ if (nextScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, nextScreenName);
92
+ currentScreenName = nextScreenName;
93
+ currentStateName = nextStateName;
94
+ if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextScreenName, nextErrorPayload);
95
+ currentErrorName = nextErrorName;
96
+ currentErrorPayload = nextErrorPayload;
97
+ }) : void 0;
98
+ let isStopped = false;
99
+ return Object.defineProperties({
100
+ getState,
101
+ subscribe,
102
+ stop() {
103
+ if (isStopped) return;
104
+ isStopped = true;
105
+ try {
106
+ if (actor.getSnapshot().status === "active") options.beforeStop?.();
107
+ } finally {
108
+ try {
109
+ actorSubscription?.unsubscribe();
110
+ stopVisibility?.();
111
+ if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
112
+ currentScreenName = void 0;
113
+ currentStateName = void 0;
114
+ currentErrorName = void 0;
115
+ currentErrorPayload = void 0;
116
+ instrumentation?.onModuleClosed(instrumentation.moduleName);
117
+ } finally {
118
+ actor.stop();
119
+ }
120
+ }
121
+ }
122
+ }, Object.getOwnPropertyDescriptors(api));
123
+ }
124
+ //#endregion
125
+ export { createManager as t };
@@ -1,10 +1,4 @@
1
- //#region ../../node_modules/.pnpm/xstate@5.24.0/node_modules/xstate/dist/declarations/src/index.d.ts
2
- declare global {
3
- interface SymbolConstructor {
4
- readonly observable: symbol;
5
- }
6
- }
7
- //#endregion
1
+ import "./xstate.cjs-D6Ur0X1F.js";
8
2
  //#region ../infra/src/manager/Manager.d.ts
9
3
  /**
10
4
  * Base manager interface providing state access, subscriptions, and lifecycle control.
@@ -1,4 +1,4 @@
1
- import { n as getMultipartRecorderMimeType } from "./mediaRecorderOptions-B9-IEVtV.esm.js";
1
+ import { n as getMultipartRecorderMimeType } from "./mediaRecorderOptions-g1TwTlhd.esm.js";
2
2
  //#region ../infra/src/providers/browser/MultipartRecordingProvider.ts
3
3
  /**
4
4
  * How often `MediaRecorder` hands us buffered data (incremental blobs).
@@ -1,5 +1,5 @@
1
- import { y as IncodeCanvas } from "./createFaceAvatar-lYX0VTYs.js";
2
- import "./IWasmUtilCapability-Cqiaxydi.js";
1
+ import { y as IncodeCanvas } from "./createFaceAvatar-BimBTONm.js";
2
+ import "./IWasmUtilCapability-BRn0wz8v.js";
3
3
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
4
4
  //#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
5
5
  type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
@@ -1,6 +1,6 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-BDrax6Eu.esm.js";
3
- import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatus, s as warmupWasm } from "./warmup-DtB0DJpl.esm.js";
2
+ import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-CyLCM31e.esm.js";
3
+ import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatus, s as warmupWasm } from "./warmup-BZOMg303.esm.js";
4
4
  //#region ../infra/src/wasm/utilityWasmApi.ts
5
5
  /**
6
6
  * Utility / metadata domain facade over {@link WasmRuntime}.
@@ -21,10 +21,12 @@ import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatu
21
21
  *
22
22
  * `fpPrefetch_` is a third, derived piece of JS state: the memoized `ppf` poll
23
23
  * that `getFPData` awaits, keyed by the embind handle it was started on.
24
+ * `pidReady_` is a fourth: the memoized `ppi` poll that a PID read races
25
+ * against that prefetch, keyed by the prefetch run it watches.
24
26
  *
25
27
  * `poc`/`rsp` are the only methods here that hold the ML semaphore (the camera
26
28
  * step's `cst` holds it from `WasmRuntime`).
27
- * `ssl`/`stl`/`osv`/`oev`/`ckvcks`/`sbc`/`ppf` and everything else are unlocked **by design**
29
+ * `ssl`/`stl`/`osv`/`oev`/`ckvcks`/`sbc`/`ppf`/`ppi` and everything else are unlocked **by design**
28
30
  * (decision D6) — never add locking.
29
31
  *
30
32
  * Three members are deprecated native-free shims for bindings ml-wasm-kit
@@ -55,7 +57,8 @@ const SignalDataType = {
55
57
  Pid: 3
56
58
  };
57
59
  /**
58
- * Poll bound for the `ppf` fingerprint prefetch. Larger than
60
+ * Poll bound for the `ppf` fingerprint prefetch, and for the `ppi` poll a PID
61
+ * read races against it. Larger than
59
62
  * {@link ML_CALL_MAX_POLLS} because the prefetch waits on async browser APIs
60
63
  * (storage estimate, persistent ID) rather than camera frames, and it is
61
64
  * unlocked, so a stuck poll cannot freeze detection — it only delays signals.
@@ -66,6 +69,7 @@ var UtilityWasmApi = class {
66
69
  this.runtime = runtime;
67
70
  this.inspectorOpened_ = false;
68
71
  this.fpPrefetch_ = null;
72
+ this.pidReady_ = null;
69
73
  this.dsEnabled_ = false;
70
74
  }
71
75
  ens(image) {
@@ -183,7 +187,12 @@ var UtilityWasmApi = class {
183
187
  }
184
188
  /**
185
189
  * Reads one fingerprint signal bucket (see {@link SignalDataType}), encrypted
186
- * by the native module. Waits for the one-time async prefetch (`ppf`) first.
190
+ * by the native module. Device and Behaviour wait for the one-time async
191
+ * prefetch (`ppf`) first. Pid waits only until the persistent-id resolver is
192
+ * done (`ppi`), or the prefetch settles, whichever is first: the prefetch
193
+ * still drives the resolver, and its failure still rejects the read. On a
194
+ * build without `ppi` (the pinned release included) Pid waits for the
195
+ * prefetch like the other buckets.
187
196
  * An empty string means the bucket has no data.
188
197
  *
189
198
  * @throws If the WASM C++ API has not been initialized yet.
@@ -191,7 +200,8 @@ var UtilityWasmApi = class {
191
200
  async getFPData(signalsType = SignalDataType.Device) {
192
201
  const message = "Unable to get fingerprint data, cpp API hasn't been initialized";
193
202
  const handle = this.runtime.requireUtilityApi(message);
194
- await this.prefetchFingerprintData(handle, message);
203
+ const prefetch = this.prefetchFingerprintData(handle, message);
204
+ await (signalsType === SignalDataType.Pid && handle.ppi ? Promise.race([this.persistentIdReady(prefetch, message), prefetch]) : prefetch);
195
205
  return this.runtime.requireUtilityApi(message).getFPData(signalsType);
196
206
  }
197
207
  /**
@@ -221,6 +231,32 @@ var UtilityWasmApi = class {
221
231
  return promise;
222
232
  }
223
233
  /**
234
+ * Polls `ppi` (the persistent-id resolver finished) for one prefetch run.
235
+ * `ppi` only reads the resolver; the `ppf` poll is what moves it, so this poll
236
+ * also stops as soon as that run settles, success or failure.
237
+ */
238
+ persistentIdReady(prefetch, message) {
239
+ if (this.pidReady_?.prefetch === prefetch) return this.pidReady_.promise;
240
+ let prefetchSettled = false;
241
+ const markSettled = () => {
242
+ prefetchSettled = true;
243
+ };
244
+ prefetch.then(markSettled, markSettled);
245
+ const promise = wasmCallWrapper(this.runtime.mlCallSemaphore, () => prefetchSettled || (this.runtime.requireUtilityApi(message).ppi?.() ?? false), false, {
246
+ maxPolls: FP_PREFETCH_MAX_POLLS,
247
+ label: "ppi"
248
+ });
249
+ const entry = {
250
+ prefetch,
251
+ promise
252
+ };
253
+ this.pidReady_ = entry;
254
+ promise.catch(() => {
255
+ if (this.pidReady_ === entry) this.pidReady_ = null;
256
+ });
257
+ return promise;
258
+ }
259
+ /**
224
260
  * @deprecated Resolves without doing anything. ml-wasm-kit v2.14.52 removed
225
261
  * `prc`: the pre-capture check runs inside the protected camera step
226
262
  * (`ICameraCycleCapability.startCameraCycle`), which holds the ML semaphore
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-BfQPSgSO.esm.js";
2
+ import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-CduV32Qa.esm.js";
3
3
  //#region ../infra/src/providers/browser/WorkerEncoderRecordingProvider.ts
4
4
  var WorkerEncoderRecordingProvider_exports = /* @__PURE__ */ __exportAll({ WorkerEncoderRecordingProvider: () => WorkerEncoderRecordingProvider });
5
5
  /**
@@ -1,12 +1,13 @@
1
- import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
- import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
3
+ import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
4
4
  //#region src/internal/formDefinitionsRollout/formDefinitionsRollout.ts
5
5
  /**
6
6
  * The rollout switch for form definitions (ENG-59781): one all-or-nothing
7
7
  * answer to "do eKYC and eKYB build their forms from catalog definitions, or
8
- * with today's builders?". Both module adapters ask it before selecting a
9
- * definition (`selectEkycDefinition`, `selectEkybForm`); the forms kernel
8
+ * with today's builders?". The eKYC and eKYB machines read it once, when
9
+ * they're created, and pass the answer to the module adapters
10
+ * (`selectEkycDefinition`, `selectEkybForm`); the forms kernel
10
11
  * (`internal/forms`) knows nothing about it.
11
12
  *
12
13
  * Off by default, so every source and country keeps today's builder. A
@@ -7,6 +7,9 @@ const VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE = "VIDEO_SELFIE_VALIDATION
7
7
  * "retryable" (the module's own concern): it only decides what the flow does
8
8
  * *after* a terminal error. Note `NO_MORE_ATTEMPTS` subsumes the former
9
9
  * `USER_IS_NOT_RECOGNIZED` entry — see the contract test for the full matrix.
10
+ * In a Flow with identity reuse, face authentication ends with
11
+ * `NO_MORE_ATTEMPTS` only after a not-recognized attempt, and with a code that
12
+ * isn't listed here otherwise, so the flow fails.
10
13
  * The face codes are literals (checked against `FaceErrorCode`), so modules
11
14
  * without face capture do not bundle `FACE_ERROR_CODES`.
12
15
  */
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-C9T5amUN.js";
1
+ import { t as Manager } from "./Manager-DufwKlav.js";
2
2
  import { S as getDefaultConsentChecks, a as ElectronicSignatureConfig, b as areAllConsented, i as ConsentKey, r as ConsentChecks, s as ElectronicSignatureDocument, t as AE_CONSENT_KEYS } from "./types-D0gekt4U.js";
3
- import { n as ElectronicSignatureState, o as electronicSignatureMachine } from "./electronicSignatureManager-DTSLOvKR.js";
3
+ import { n as ElectronicSignatureState, o as electronicSignatureMachine } from "./electronicSignatureManager-5tYz-a4o.js";
4
4
  import "./electronic-signature.js";
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
  type AeSignatureConfig = Omit<ElectronicSignatureConfig, 'variant'>;
@@ -1,4 +1,4 @@
1
- import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-u3UBhWw_.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BcE0XMrN.esm.js";
2
2
  //#region src/modules/ae-signature/index.ts
3
3
  function createAeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,4 +1,4 @@
1
- import { i as createAntifraudManagerFromActor, n as AntifraudState, o as antifraudMachine, r as createAntifraudManager, t as AntifraudManager } from "./antifraudManager-DbGCvlJs.js";
1
+ import { i as createAntifraudManagerFromActor, n as AntifraudState, o as antifraudMachine, r as createAntifraudManager, t as AntifraudManager } from "./antifraudManager-BxfCsyA7.js";
2
2
  //#region src/modules/antifraud/types.d.ts
3
3
  /**
4
4
  * Configuration options for the antifraud module.
@@ -1,3 +1,3 @@
1
- import { t as antifraudMachine } from "./antifraudStateMachine-qNNXrlsP.esm.js";
2
- import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-CbIwM35x.esm.js";
1
+ import { t as antifraudMachine } from "./antifraudStateMachine-BJ6PmCsw.esm.js";
2
+ import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-DKNOi9-z.esm.js";
3
3
  export { antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
@@ -1,6 +1,6 @@
1
- import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-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
4
  //#region src/modules/antifraud/antifraudStateMachine.d.ts
5
5
  declare const antifraudMachine: any;
6
6
  type AntifraudMachine = typeof antifraudMachine;
@@ -1,7 +1,9 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-kU5WJU4B.esm.js";
1
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
2
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as antifraudMachine } from "./antifraudStateMachine-qNNXrlsP.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 antifraudMachine } from "./antifraudStateMachine-BJ6PmCsw.esm.js";
5
7
  //#region src/modules/antifraud/antifraudActor.ts
6
8
  function createAntifraudActor() {
7
9
  return createActor(antifraudMachine).start();
@@ -1,6 +1,6 @@
1
- import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
- import { t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
+ import { 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/antifraud/antifraudServices.ts
5
5
  async function processAntifraud(signal) {
6
6
  const res = await api.get(endpoints.processAntifraud, { signal });
@@ -81,6 +81,7 @@ const endpoints = {
81
81
  documentLegacy: "/omni/add/document",
82
82
  cfdi: "/omni/process/cfdi",
83
83
  finishStatus: "/omni/finish-status",
84
+ redirectionUrl: "/omni/redirection-url",
84
85
  sessionTotalScoreStatus: "/omni/session/total-score-status",
85
86
  updateSession: "/omni/update",
86
87
  onboardingUrl: "/omni/onboarding-url",
@@ -89,9 +90,9 @@ const endpoints = {
89
90
  qrValidateUuid: "/omni/qr/validate",
90
91
  addSignature: "/omni/add/signature",
91
92
  addSignatureV2: "/omni/add/signature/v2",
92
- identityReuseCandidates: "/omni/identity-reuse/candidates",
93
93
  identityReuseDocuments: "/omni/identity-reuse/documents",
94
94
  identityReuseSubmit: "/omni/identity-reuse/submit",
95
+ identitySearch: "/omni/identity-search",
95
96
  processAntifraud: "/omni/process/antifraud",
96
97
  processGlobalWatchlist: "/omni/process/global-watchlist",
97
98
  processWatchlist: "/omni/process/watchlist",
@@ -1,4 +1,4 @@
1
- import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-CDbmG-Mi.esm.js";
1
+ import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-BnQDjqUu.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,4 +1,4 @@
1
- import { r as getToken } from "./api-C_P9YXbL.esm.js";
1
+ import { r as getToken } from "./api-CZpuJuZl.esm.js";
2
2
  import { a as watchConnectivity } from "./connectivity-BCuEoQ-n.esm.js";
3
3
  //#region src/internal/session/attemptCarry.ts
4
4
  const carried = /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-ZudYP6Qp.js";
2
- import { t as AuthenticationConfig } from "./types-B2M1IPZn.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DKLRA91K.js";
1
+ import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-CRGajjZ4.js";
2
+ import { t as AuthenticationConfig } from "./types-CE1jkHw3.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DRaugLgH.js";
4
4
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-D-SOzH8C.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CTHFl6dl.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-DoK5RKIS.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-9N3eg3Uh.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,10 @@
1
- import { u as BrowserStorageProvider } from "./setup-Bl3CRduw.esm.js";
2
- import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
3
- import { n as eventModuleNames } from "./events-kU5WJU4B.esm.js";
4
- import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DKJUjsV2.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-D-SOzH8C.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-B3a5KQeI.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-0xTxgP0R.esm.js";
3
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
4
+ import "./events-CP3yOzAl.esm.js";
5
+ import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BBQzNrku.esm.js";
7
+ import { t as authenticationMachine } from "./authenticationStateMachine-DoK5RKIS.esm.js";
7
8
  //#region src/modules/authentication/authenticationActor.ts
8
9
  function createAuthenticationActor(options) {
9
10
  const dependencies = options.dependencies ?? {
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-C9T5amUN.js";
1
+ import { t as Manager } from "./Manager-DufwKlav.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-ZudYP6Qp.js";
3
+ import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-CRGajjZ4.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -1,8 +1,8 @@
1
- import { i as assign } from "./xstate.esm-DSajW7CJ.esm.js";
2
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
3
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-CZzv26ip.esm.js";
4
- import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-CHpscouN.esm.js";
5
- import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-m2dAj6Zu.esm.js";
1
+ import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
2
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-D8_ilXFc.esm.js";
4
+ import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-n9u4dEn_.esm.js";
5
+ import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-BKFjsQpO.esm.js";
6
6
  //#region src/modules/authentication/authenticationErrorUtils.ts
7
7
  const AUTH_ERROR_MAP = {
8
8
  SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
@@ -26,14 +26,29 @@ const AUTH_ERROR_MAP = {
26
26
  HINT_NOT_PROVIDED: FACE_ERROR_CODES.HINT_NOT_PROVIDED
27
27
  };
28
28
  const NON_RETRYABLE_AUTH_ERROR_CODES = [FACE_ERROR_CODES.NONEXISTENT_CUSTOMER, FACE_ERROR_CODES.HINT_NOT_PROVIDED];
29
+ const IDENTITY_REUSE_NON_RETRYABLE_AUTH_ERROR_CODES = [...NON_RETRYABLE_AUTH_ERROR_CODES, FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED];
30
+ /**
31
+ * The code an authentication ends with once its attempts run out. Today's
32
+ * `NO_MORE_ATTEMPTS`, which a flow advances past. With `identityReuseOutcomes`
33
+ * that code means "not recognized" only: if no attempt came back
34
+ * USER_IS_NOT_RECOGNIZED, the module ends with the last attempt's code, which
35
+ * fails the flow.
36
+ *
37
+ * @param lastAttemptCode - Why the last attempt failed, when known. After a
38
+ * reconnect that carried a spent budget it is lost, and SERVER_ERROR stands in.
39
+ */
40
+ const getExhaustedAuthErrorCode = ({ identityReuseOutcomes, userNotRecognized, lastAttemptCode }) => {
41
+ if (!identityReuseOutcomes || userNotRecognized || lastAttemptCode === FACE_ERROR_CODES.USER_IS_NOT_RECOGNIZED) return FACE_ERROR_CODES.NO_MORE_ATTEMPTS;
42
+ return lastAttemptCode ?? FACE_ERROR_CODES.SERVER;
43
+ };
29
44
  const validateAuthUploadResponse = (response) => {
30
45
  if (!response) return FACE_ERROR_CODES.SERVER;
31
46
  if (response.overallStatus !== "PASS") return AUTH_ERROR_MAP[response.error?.name] ?? FACE_ERROR_CODES.SERVER;
32
47
  };
33
- const isTerminalAuthError = (response, attemptsRemaining) => {
34
- if (!response) return false;
48
+ const isTerminalAuthError = (response, attemptsRemaining, nonRetryableCodes = NON_RETRYABLE_AUTH_ERROR_CODES) => {
49
+ if (!response || response.overallStatus === "PASS") return false;
35
50
  const mappedError = AUTH_ERROR_MAP[response.error?.name];
36
- if (mappedError && NON_RETRYABLE_AUTH_ERROR_CODES.includes(mappedError)) return true;
51
+ if (mappedError && nonRetryableCodes.includes(mappedError)) return true;
37
52
  if (attemptsRemaining <= 0) return true;
38
53
  return false;
39
54
  };
@@ -44,6 +59,11 @@ const isTerminalAuthError = (response, attemptsRemaining) => {
44
59
  * to the auth response shape. Centralizes the one cast the auth variant needs.
45
60
  */
46
61
  const authUploadResponse = (context) => context.uploadResponse;
62
+ /**
63
+ * The step runs in a Flow with identity reuse, whose preset sets this field
64
+ * (see `FlowModuleConfig['AUTHENTICATION'].identityReuseOutcomes`).
65
+ */
66
+ const usesIdentityReuseOutcomes = (context) => context.config.identityReuseOutcomes === true;
47
67
  const authenticationMachine = faceCaptureMachine.provide({
48
68
  actors: {
49
69
  protectedFaceController: createDefaultProtectedFaceControllerActor({
@@ -53,16 +73,28 @@ const authenticationMachine = faceCaptureMachine.provide({
53
73
  processFace: fromPromise(async () => ({}))
54
74
  },
55
75
  actions: {
56
- setUploadErrorFromUploadValidation: assign({ uploadError: ({ context }) => {
57
- if (isOnDeviceMode(context.config)) return;
58
- return validateAuthUploadResponse(authUploadResponse(context)) ?? FACE_ERROR_CODES.SERVER;
59
- } }),
60
- setTerminalError: assign({ error: ({ context }) => {
61
- if (context.attemptsRemaining <= 0) return {
62
- type: "FACE_AUTH_ERROR",
63
- message: "No more attempts remaining",
64
- moduleErrorCode: FACE_ERROR_CODES.NO_MORE_ATTEMPTS
76
+ setUploadErrorFromUploadValidation: assign(({ context }) => {
77
+ if (isOnDeviceMode(context.config)) return { uploadError: void 0 };
78
+ const uploadError = validateAuthUploadResponse(authUploadResponse(context)) ?? FACE_ERROR_CODES.SERVER;
79
+ return {
80
+ uploadError,
81
+ userNotRecognized: context.userNotRecognized === true || uploadError === FACE_ERROR_CODES.USER_IS_NOT_RECOGNIZED
65
82
  };
83
+ }),
84
+ setTerminalError: assign({ error: ({ context }) => {
85
+ if (context.attemptsRemaining <= 0) {
86
+ const resp = authUploadResponse(context);
87
+ const responseCode = resp?.error?.name ? AUTH_ERROR_MAP[resp.error.name] : void 0;
88
+ return {
89
+ type: "FACE_AUTH_ERROR",
90
+ message: "No more attempts remaining",
91
+ moduleErrorCode: getExhaustedAuthErrorCode({
92
+ identityReuseOutcomes: usesIdentityReuseOutcomes(context),
93
+ userNotRecognized: context.userNotRecognized === true,
94
+ lastAttemptCode: context.uploadError ?? responseCode
95
+ })
96
+ };
97
+ }
66
98
  const resp = authUploadResponse(context);
67
99
  return {
68
100
  type: "FACE_AUTH_ERROR",
@@ -78,7 +110,7 @@ const authenticationMachine = faceCaptureMachine.provide({
78
110
  },
79
111
  isTerminalUploadError: ({ context }) => {
80
112
  if (isOnDeviceMode(context.config)) return false;
81
- return isTerminalAuthError(authUploadResponse(context), context.attemptsRemaining);
113
+ return isTerminalAuthError(authUploadResponse(context), context.attemptsRemaining, usesIdentityReuseOutcomes(context) ? IDENTITY_REUSE_NON_RETRYABLE_AUTH_ERROR_CODES : NON_RETRYABLE_AUTH_ERROR_CODES);
82
114
  },
83
115
  isNoAttemptsTerminal: () => true
84
116
  }
package/dist/avatar.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as createFaceAvatar, n as FaceAvatarHandle, o as AvatarFaceState, r as FaceAvatarOptions, t as AvatarId } from "./createFaceAvatar-lYX0VTYs.js";
1
+ import { i as createFaceAvatar, n as FaceAvatarHandle, o as AvatarFaceState, r as FaceAvatarOptions, t as AvatarId } from "./createFaceAvatar-BimBTONm.js";
2
2
  export { type AvatarFaceState, type AvatarId, type FaceAvatarHandle, type FaceAvatarOptions, createFaceAvatar };