@incodetech/core 0.0.0-dev-20261112-a1cd7d99 → 0.0.0-dev-20261113-09b7dcfc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{FaceDetectionProvider-0BW1o-NV.esm.js → FaceDetectionProvider-BZx7aJLX.esm.js} +7 -7
  3. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  4. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  5. package/dist/{addressSearch-B_4JYKa-.esm.js → addressSearch-D55PKLQZ.esm.js} +2 -2
  6. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  7. package/dist/ae-signature.d.ts +2 -2
  8. package/dist/ae-signature.esm.js +1 -1
  9. package/dist/antifraud.d.ts +1 -1
  10. package/dist/antifraud.esm.js +2 -2
  11. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  12. package/dist/{antifraudManager-BWCVkSu2.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
  13. package/dist/{antifraudStateMachine-CX9I2f3s.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
  14. package/dist/{api-BSnbg4HO.esm.js → api-CZpuJuZl.esm.js} +1 -1
  15. package/dist/{apiError-9_pv2vuy.esm.js → apiError-C4LIX1nN.esm.js} +1 -1
  16. package/dist/{attemptCarry-zQH85Elh.esm.js → attemptCarry-BecGGZK8.esm.js} +1 -1
  17. package/dist/authentication.d.ts +3 -3
  18. package/dist/authentication.esm.js +2 -2
  19. package/dist/{authenticationManager-CISxaY6N.d.ts → authenticationManager-aZzFZo6V.d.ts} +2 -2
  20. package/dist/{authenticationManager-umVOJ-jB.esm.js → authenticationManager-iUDnVDfI.esm.js} +6 -5
  21. package/dist/{authenticationStateMachine-BAAsdV_2.esm.js → authenticationStateMachine-OMxG3ZsL.esm.js} +50 -18
  22. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  23. package/dist/certificate-issuance.d.ts +1 -1
  24. package/dist/certificate-issuance.esm.js +2 -2
  25. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  26. package/dist/{certificateIssuanceManager-CQ_jhm2m.esm.js → certificateIssuanceManager-DaUklfNj.esm.js} +5 -3
  27. package/dist/{certificateIssuanceStateMachine-Dxvi20JA.esm.js → certificateIssuanceStateMachine-_EQcjGE3.esm.js} +3 -3
  28. package/dist/consent.d.ts +1 -1
  29. package/dist/consent.esm.js +2 -2
  30. package/dist/{consentManager-DXetSxcx.d.ts → consentManager-B0YKqYtZ.d.ts} +5 -4
  31. package/dist/{consentManager-DFSKQTcR.esm.js → consentManager-BPocwpm2.esm.js} +5 -3
  32. package/dist/{consentStateMachine-4nZIH2O8.esm.js → consentStateMachine-DgiIcT9q.esm.js} +3 -3
  33. package/dist/cross-document-data-match.d.ts +1 -1
  34. package/dist/cross-document-data-match.esm.js +1 -1
  35. package/dist/{crossDocumentDataMatchManager-D7ka2qOC.esm.js → crossDocumentDataMatchManager-BfA29Aji.esm.js} +6 -4
  36. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  37. package/dist/curp-validation.d.ts +1 -1
  38. package/dist/curp-validation.esm.js +2 -2
  39. package/dist/{curpValidationManager-BVTt7IgC.esm.js → curpValidationManager-BNO88CiC.esm.js} +5 -3
  40. package/dist/{curpValidationManager-DEqTUWdu.d.ts → curpValidationManager-BfF2Qa5b.d.ts} +4 -4
  41. package/dist/{curpValidationStateMachine-FB_MRbZQ.esm.js → curpValidationStateMachine-DBhkpzBq.esm.js} +4 -4
  42. package/dist/custom-fields.d.ts +1 -1
  43. package/dist/custom-fields.esm.js +1 -1
  44. package/dist/custom-watchlist.d.ts +1 -1
  45. package/dist/custom-watchlist.esm.js +2 -2
  46. package/dist/{customFieldsManager-gbsq53p6.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
  47. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  48. package/dist/{customWatchlistManager-50APwk4Z.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
  49. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  50. package/dist/{customWatchlistStateMachine-CpEVPzuT.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
  51. package/dist/{deepsightLoader-8DIQsJHb.esm.js → deepsightLoader-DiQZjZv7.esm.js} +3 -3
  52. package/dist/{desktopCameraElection-wRaWOx9n.esm.js → desktopCameraElection-DaMy0Vba.esm.js} +2 -2
  53. package/dist/document-capture.d.ts +1 -1
  54. package/dist/document-capture.esm.js +2 -2
  55. package/dist/{documentCaptureManager-C06k0q05.esm.js → documentCaptureManager-B1Q3MDt8.esm.js} +5 -3
  56. package/dist/{documentCaptureManager-YwPg7gOl.d.ts → documentCaptureManager-BZBmcOKI.d.ts} +9 -8
  57. package/dist/{documentCaptureStateMachine-CWefaHZd.esm.js → documentCaptureStateMachine-DWi3M3oW.esm.js} +4 -4
  58. package/dist/dynamic-forms.d.ts +1 -1
  59. package/dist/dynamic-forms.esm.js +2 -2
  60. package/dist/{dynamicFormsManager-Ohk87opQ.esm.js → dynamicFormsManager-BqclXuKv.esm.js} +5 -3
  61. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  62. package/dist/{dynamicFormsStateMachine-CSCpvMlA.esm.js → dynamicFormsStateMachine-Ct6XYI5x.esm.js} +4 -4
  63. package/dist/ekyb.d.ts +3 -3
  64. package/dist/ekyb.esm.js +2 -2
  65. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  66. package/dist/{ekybManager-DZE4gBFe.esm.js → ekybManager-C_wKhFRD.esm.js} +5 -3
  67. package/dist/{ekybStateMachine-ZvLecmxK.esm.js → ekybStateMachine-BQpqmi7r.esm.js} +7 -6
  68. package/dist/ekyc-prefill.d.ts +1 -1
  69. package/dist/ekyc-prefill.esm.js +2 -2
  70. package/dist/ekyc.d.ts +1 -1
  71. package/dist/ekyc.esm.js +2 -2
  72. package/dist/{ekycManager-C4gkJ1w_.d.ts → ekycManager-BKVQazAb.d.ts} +3 -3
  73. package/dist/{ekycManager-DGAn__vq.esm.js → ekycManager-BojVwTr3.esm.js} +5 -3
  74. package/dist/{ekycPrefillManager-D7aXOSpq.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +5 -4
  75. package/dist/{ekycPrefillManager-Cvroq_y8.esm.js → ekycPrefillManager-CG389N2i.esm.js} +3 -2
  76. package/dist/{ekycPrefillStateMachine-C1p9d30E.esm.js → ekycPrefillStateMachine-wS7GypBD.esm.js} +4 -4
  77. package/dist/{ekycStateMachine-NSnXCfwh.esm.js → ekycStateMachine-BQCS2Ycg.esm.js} +6 -13
  78. package/dist/electronic-signature.d.ts +1 -1
  79. package/dist/electronic-signature.esm.js +1 -1
  80. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  81. package/dist/{electronicSignatureManager-CAFYSLoC.esm.js → electronicSignatureManager-CaGAmlpU.esm.js} +7 -5
  82. package/dist/email.d.ts +1 -1
  83. package/dist/email.esm.js +2 -2
  84. package/dist/{emailManager-CGmKbsBL.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
  85. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  86. package/dist/{emailStateMachine-CGY1UGs2.esm.js → emailStateMachine-CTEaYncs.esm.js} +4 -4
  87. package/dist/events-CP3yOzAl.esm.js +299 -0
  88. package/dist/events.d.ts +3 -1
  89. package/dist/events.esm.js +2 -1
  90. package/dist/extensibility.d.ts +39 -39
  91. package/dist/extensibility.esm.js +37 -37
  92. package/dist/face-match.d.ts +1 -1
  93. package/dist/face-match.esm.js +2 -2
  94. package/dist/{faceCaptureManagerFactory-a-5OwRyb.esm.js → faceCaptureManagerFactory-CV1XzKz3.esm.js} +15 -4
  95. package/dist/{faceCaptureManagerFactory-BVwVGa3z.d.ts → faceCaptureManagerFactory-XkMOX4z5.d.ts} +14 -7
  96. package/dist/{faceCaptureSetup-gL65MYC2.esm.js → faceCaptureSetup-P8D8b1-l.esm.js} +44 -36
  97. package/dist/{faceMatchManager-BZtEw6bB.d.ts → faceMatchManager-C5b5WtcY.d.ts} +3 -2
  98. package/dist/{faceMatchManager-BXC8qPiB.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
  99. package/dist/{faceMatchStateMachine-PADe6f6s.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +4 -4
  100. package/dist/{feature-management-COjdkSnK.esm.js → feature-management-DEmEmIxm.esm.js} +1 -1
  101. package/dist/feature-management.esm.js +1 -1
  102. package/dist/field-comparison.d.ts +1 -1
  103. package/dist/field-comparison.esm.js +1 -1
  104. package/dist/{fieldComparisonManager-DuosZJso.esm.js → fieldComparisonManager-VgCU4X96.esm.js} +6 -4
  105. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  106. package/dist/fiscal-qr.d.ts +1 -1
  107. package/dist/fiscal-qr.esm.js +1 -1
  108. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  109. package/dist/{fiscalQrManager-ji0qDaTW.esm.js → fiscalQrManager-DOLq45ph.esm.js} +6 -4
  110. package/dist/flow-events.d.ts +1 -1
  111. package/dist/flow.d.ts +47 -11
  112. package/dist/flow.esm.js +214 -58
  113. package/dist/{flowCompletionService-Fol1YUkZ.esm.js → flowCompletionService-MUfIimZL.esm.js} +2 -2
  114. package/dist/{flowServices-nJpnEMOe.esm.js → flowServices-Dchn-pEb.esm.js} +372 -11
  115. package/dist/geolocation.d.ts +1 -1
  116. package/dist/geolocation.esm.js +2 -2
  117. package/dist/{geolocationManager-BpkWC8B4.esm.js → geolocationManager-BZFhMFsz.esm.js} +5 -3
  118. package/dist/{geolocationManager-CPhykMow.d.ts → geolocationManager-CENrvxpK.d.ts} +5 -4
  119. package/dist/{geolocationStateMachine-DBZda1g2.esm.js → geolocationStateMachine-Cqj9IAJB.esm.js} +5 -5
  120. package/dist/government-validation.d.ts +1 -1
  121. package/dist/government-validation.esm.js +2 -2
  122. package/dist/{governmentValidationManager-BivVZNVe.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
  123. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  124. package/dist/{governmentValidationStateMachine-CeSDNgha.esm.js → governmentValidationStateMachine-wBunpfQ9.esm.js} +3 -3
  125. package/dist/home.d.ts +4 -3
  126. package/dist/home.esm.js +4 -2
  127. package/dist/http.esm.js +1 -1
  128. package/dist/id-ocr.d.ts +1 -1
  129. package/dist/id-ocr.esm.js +2 -2
  130. package/dist/id-selfie-flow.d.ts +4 -3
  131. package/dist/id-selfie-flow.esm.js +9 -8
  132. package/dist/id-verification.d.ts +1 -1
  133. package/dist/id-verification.esm.js +2 -2
  134. package/dist/id.d.ts +2 -2
  135. package/dist/id.esm.js +3 -3
  136. package/dist/{idCaptureManager-CG8zbAp0.d.ts → idCaptureManager-BRYJflLy.d.ts} +7 -6
  137. package/dist/{idCaptureManager-Dp7BWFYw.esm.js → idCaptureManager-DeQP0_6m.esm.js} +10 -8
  138. package/dist/{idCaptureServices-nlZSMDUN.esm.js → idCaptureServices-BepRI-l9.esm.js} +4 -4
  139. package/dist/{idCaptureStateMachine-DsFPfsep.esm.js → idCaptureStateMachine-BxIDRKpU.esm.js} +17 -15
  140. package/dist/{idOcrManager-DNbVTMIu.esm.js → idOcrManager-BmH5urT2.esm.js} +5 -3
  141. package/dist/{idOcrManager-Bq2S6vYt.d.ts → idOcrManager-DflRx-_u.d.ts} +5 -4
  142. package/dist/{idOcrStateMachine-MAGnpWkb.esm.js → idOcrStateMachine-DE7g_xnk.esm.js} +3 -3
  143. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  144. package/dist/{idVerificationManager-BEAkamNm.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
  145. package/dist/{idVerificationStateMachine-D5mBN2Ye.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
  146. package/dist/identity-reuse.d.ts +2 -2
  147. package/dist/identity-reuse.esm.js +2 -2
  148. package/dist/identity-search.d.ts +97 -0
  149. package/dist/identity-search.esm.js +97 -0
  150. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
  151. package/dist/{identityReuseManager-M8-BTjar.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
  152. package/dist/{identityReuseStateMachine-D5bXgw9h.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
  153. package/dist/{index-CSPOoqah.d.ts → index-B52Rq3En.d.ts} +2 -2
  154. package/dist/index-DHuAkTe0.d.ts +1 -0
  155. package/dist/index.esm.js +1 -1
  156. package/dist/{invokeOnCaptureCallback-C1-j4fsq.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
  157. package/dist/kyb-checks.d.ts +1 -1
  158. package/dist/kyb-checks.esm.js +2 -2
  159. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  160. package/dist/{kybChecksManager-K_glJHur.esm.js → kybChecksManager-KVkpto1E.esm.js} +3 -2
  161. package/dist/{kybChecksStateMachine-CXTNLETU.esm.js → kybChecksStateMachine-CNsiaAGS.esm.js} +4 -4
  162. package/dist/mandatory-consent.d.ts +2 -2
  163. package/dist/mandatory-consent.esm.js +2 -2
  164. package/dist/{mandatoryConsentManager-NBAqxVzC.d.ts → mandatoryConsentManager-B8gtexL8.d.ts} +6 -5
  165. package/dist/{mandatoryConsentManager-LFhUlLvO.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +5 -3
  166. package/dist/{mandatoryConsentStateMachine-DTSyDqQs.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +3 -3
  167. package/dist/{multipartRecordingService-CCiRpByl.esm.js → multipartRecordingService-DNB2iD6-.esm.js} +1 -1
  168. package/dist/phone.d.ts +1 -1
  169. package/dist/phone.esm.js +2 -2
  170. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  171. package/dist/{phoneManager-C-qD3p3N.esm.js → phoneManager-rA7updqF.esm.js} +5 -3
  172. package/dist/{phoneServices-BdR1nmSO.esm.js → phoneServices-CFXcwCFr.esm.js} +1 -1
  173. package/dist/{phoneStateMachine-2FMTdjtJ.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +4 -4
  174. package/dist/{processFaceMatch-B1YnoBer.esm.js → processFaceMatch-B_DkDTE5.esm.js} +1 -1
  175. package/dist/qe-signature.d.ts +2 -2
  176. package/dist/qe-signature.esm.js +1 -1
  177. package/dist/{recordingService-BVSCo0ac.esm.js → recordingService-CxBoYKTo.esm.js} +2 -2
  178. package/dist/redirect-to-mobile.d.ts +1 -1
  179. package/dist/redirect-to-mobile.esm.js +2 -2
  180. package/dist/{redirectToMobileManager-Plfc5twh.esm.js → redirectToMobileManager-DjsEtWLq.esm.js} +6 -4
  181. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
  182. package/dist/{redirectToMobileStateMachine-BEBc1fw8.esm.js → redirectToMobileStateMachine-CMjjUXSu.esm.js} +3 -3
  183. package/dist/{runChildModule-6jMNFF_W.esm.js → runChildModule-D8jzOCFA.esm.js} +8 -6
  184. package/dist/{sdkVersion-CjmRQtlq.esm.js → sdkVersion-BNcFY8ZQ.esm.js} +1 -1
  185. package/dist/selfie.d.ts +3 -3
  186. package/dist/selfie.esm.js +12 -11
  187. package/dist/{selfieErrorUtils-DwO9s-hS.esm.js → selfieErrorUtils-6x6vE4yQ.esm.js} +1 -1
  188. package/dist/{selfieManager-toNRpIKk.esm.js → selfieManager-BmCLNhM7.esm.js} +6 -5
  189. package/dist/{selfieManager-DREuBhXZ.d.ts → selfieManager-KLP66c1d.d.ts} +2 -2
  190. package/dist/{selfieStateMachine-BtPXegQI.esm.js → selfieStateMachine-03r4x2QV.esm.js} +5 -5
  191. package/dist/{session-Ds8k_-Lj.esm.js → session-ygBb3cvv.esm.js} +4 -4
  192. package/dist/session.d.ts +1 -1
  193. package/dist/session.esm.js +5 -5
  194. package/dist/{sessionInitializer-DeiS1bzf.esm.js → sessionInitializer-ygSccs6s.esm.js} +7 -6
  195. package/dist/{setup-BHmqBn1m.esm.js → setup-CwJtE0qQ.esm.js} +8 -7
  196. package/dist/signature.d.ts +1 -1
  197. package/dist/signature.esm.js +2 -2
  198. package/dist/{signatureManager-M9vQBj19.esm.js → signatureManager-BgAja97K.esm.js} +5 -3
  199. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  200. package/dist/{signatureStateMachine-0_frzAN5.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
  201. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  202. package/dist/{stats-C2sigf9p.esm.js → stats-DoByUnTa.esm.js} +1 -1
  203. package/dist/stats.esm.js +1 -1
  204. package/dist/{trueSightService-C42naN4P.esm.js → trueSightService-AsG7-iPZ.esm.js} +6 -3
  205. package/dist/trust-graph.d.ts +4 -3
  206. package/dist/trust-graph.esm.js +5 -3
  207. package/dist/{types-P9LzsfRo.d.ts → types-B4VMIIgN.d.ts} +1 -1
  208. package/dist/types-BBvW20-Z.d.ts +6 -0
  209. package/dist/{types-CgihAhT_.d.ts → types-BsWmnAUf.d.ts} +1 -1
  210. package/dist/{types-TisHEbBg.d.ts → types-C1IvtlAM.d.ts} +27 -0
  211. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  212. package/dist/{types-BqlZSoZ-.d.ts → types-DS_RiYko.d.ts} +1 -1
  213. package/dist/{events-C7h7oaTE.esm.js → types-DYYMdAGv.esm.js} +3 -298
  214. package/dist/{types-Cbm9J2yF.d.ts → types-Xp1E3FVT.d.ts} +1 -1
  215. package/dist/video-selfie.d.ts +5 -4
  216. package/dist/video-selfie.esm.js +11 -10
  217. package/dist/{videoSelfieCameraWarmer-lqDF61zO.esm.js → videoSelfieCameraWarmer-DY0365B_.esm.js} +4 -4
  218. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  219. package/dist/{videoSelfieStepDetector-4XE2QI5q.d.ts → videoSelfieStepDetector-Ret6gbJg.d.ts} +2 -2
  220. package/dist/wasm.esm.js +1 -1
  221. package/dist/watchlist-for-business.d.ts +1 -1
  222. package/dist/watchlist-for-business.esm.js +2 -2
  223. package/dist/watchlist.d.ts +1 -1
  224. package/dist/watchlist.esm.js +2 -2
  225. package/dist/{watchlistForBusinessManager-C1S5y5yj.esm.js → watchlistForBusinessManager-CEOMKI63.esm.js} +5 -3
  226. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  227. package/dist/{watchlistForBusinessStateMachine-Bj_hnoK5.esm.js → watchlistForBusinessStateMachine-CDb2mHbq.esm.js} +3 -3
  228. package/dist/{watchlistManager-BpegtZbc.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
  229. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  230. package/dist/{watchlistStateMachine-Bgkh1gra.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
  231. package/dist/workflow.d.ts +6 -5
  232. package/dist/workflow.esm.js +50 -42
  233. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  234. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  235. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  236. package/package.json +7 -2
  237. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  238. package/dist/index-DpTj5PFb.d.ts +0 -1
  239. package/dist/types-kLsU6Jkt.d.ts +0 -6
@@ -0,0 +1 @@
1
+ import "./xstate.cjs-D6Ur0X1F.js";
@@ -1,15 +1,15 @@
1
1
  import { l as wasmRuntime } from "./warmup-BZOMg303.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-BHmqBn1m.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-CwJtE0qQ.esm.js";
3
3
  import { r as BaseWasmProvider } from "./WasmUtilProvider-E_cX5CfH.esm.js";
4
- import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
5
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-C42naN4P.esm.js";
6
- import "./sessionInitializer-DeiS1bzf.esm.js";
7
- import { t as addDeviceStats } from "./stats-C2sigf9p.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-AsG7-iPZ.esm.js";
6
+ import "./sessionInitializer-ygSccs6s.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-B1YnoBer.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-8DIQsJHb.esm.js");
238
+ const { loadDeepsightSession } = await import("./deepsightLoader-DiQZjZv7.esm.js");
239
239
  return loadDeepsightSession({
240
240
  ds: options.ds,
241
241
  storage: options.storage
@@ -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,6 +1,6 @@
1
- import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
2
  import { 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,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-CAFYSLoC.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-CaGAmlpU.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-CX9I2f3s.esm.js";
2
- import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-BWCVkSu2.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-C7h7oaTE.esm.js";
1
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
2
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as antifraudMachine } from "./antifraudStateMachine-CX9I2f3s.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-BSnbg4HO.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 });
@@ -90,9 +90,9 @@ const endpoints = {
90
90
  qrValidateUuid: "/omni/qr/validate",
91
91
  addSignature: "/omni/add/signature",
92
92
  addSignatureV2: "/omni/add/signature/v2",
93
- identityReuseCandidates: "/omni/identity-reuse/candidates",
94
93
  identityReuseDocuments: "/omni/identity-reuse/documents",
95
94
  identityReuseSubmit: "/omni/identity-reuse/submit",
95
+ identitySearch: "/omni/identity-search",
96
96
  processAntifraud: "/omni/process/antifraud",
97
97
  processGlobalWatchlist: "/omni/process/global-watchlist",
98
98
  processWatchlist: "/omni/process/watchlist",
@@ -1,4 +1,4 @@
1
- import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-C42naN4P.esm.js";
1
+ import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-AsG7-iPZ.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-BSnbg4HO.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-BVwVGa3z.js";
2
- import { t as AuthenticationConfig } from "./types-kLsU6Jkt.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CISxaY6N.js";
1
+ import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-XkMOX4z5.js";
2
+ import { t as AuthenticationConfig } from "./types-BBvW20-Z.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-aZzFZo6V.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-BAAsdV_2.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-umVOJ-jB.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-OMxG3ZsL.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-iUDnVDfI.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -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-BVwVGa3z.js";
3
+ import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-XkMOX4z5.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -1,9 +1,10 @@
1
- import { u as BrowserStorageProvider } from "./setup-BHmqBn1m.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-CwJtE0qQ.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-E_cX5CfH.esm.js";
3
- import { n as eventModuleNames } from "./events-C7h7oaTE.esm.js";
4
- import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-a-5OwRyb.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-BAAsdV_2.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-CV1XzKz3.esm.js";
7
+ import { t as authenticationMachine } from "./authenticationStateMachine-OMxG3ZsL.esm.js";
7
8
  //#region src/modules/authentication/authenticationActor.ts
8
9
  function createAuthenticationActor(options) {
9
10
  const dependencies = options.dependencies ?? {
@@ -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-gL65MYC2.esm.js";
4
- import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-0BW1o-NV.esm.js";
5
- import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-wRaWOx9n.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-P8D8b1-l.esm.js";
4
+ import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-BZx7aJLX.esm.js";
5
+ import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-DaMy0Vba.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
  }
@@ -1,4 +1,4 @@
1
- import { S as Snapshot, a as ActorRefFromLogic, c as AnyEventObject, j as AnyActorSystem, n as ActorLogic, p as EventObject, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
1
+ import { C as Snapshot, M as AnyActorSystem, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, m as EventObject, n as ActorLogic } from "./spawn-COZKetCS.js";
2
2
  //#region ../../node_modules/.pnpm/xstate@5.24.0/node_modules/xstate/dist/declarations/src/actors/callback.d.ts
3
3
  type CallbackSnapshot<TInput> = Snapshot<undefined> & {
4
4
  input: TInput;
@@ -1,4 +1,4 @@
1
- import { a as CertificateIssuanceActor, c as CertificateIssuanceType, d as PasswordValidations, f as MIN_PASSWORD_LENGTH, i as createCertificateIssuanceManagerFromActor, l as IssueCertificateResponse, m as REQUIREMENT_I18N_KEYS, n as CertificateIssuanceState, o as certificateIssuanceMachine, p as PASSWORD_VALIDATION_KEYS, r as createCertificateIssuanceManager, s as CertificateIssuanceConfig, t as CertificateIssuanceManager, u as PasswordValidationKey } from "./certificateIssuanceManager-Dr8A4Lgr.js";
1
+ import { a as CertificateIssuanceActor, c as CertificateIssuanceType, d as PasswordValidations, f as MIN_PASSWORD_LENGTH, i as createCertificateIssuanceManagerFromActor, l as IssueCertificateResponse, m as REQUIREMENT_I18N_KEYS, n as CertificateIssuanceState, o as certificateIssuanceMachine, p as PASSWORD_VALIDATION_KEYS, r as createCertificateIssuanceManager, s as CertificateIssuanceConfig, t as CertificateIssuanceManager, u as PasswordValidationKey } from "./certificateIssuanceManager-BcYhxO63.js";
2
2
  //#region src/modules/certificate-issuance/certificateIssuanceUtils.d.ts
3
3
  declare function emptyPasswordValidations(): PasswordValidations;
4
4
  declare function validatePassword(value: string): PasswordValidations;
@@ -1,3 +1,3 @@
1
- import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Dxvi20JA.esm.js";
2
- import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-CQ_jhm2m.esm.js";
1
+ import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-_EQcjGE3.esm.js";
2
+ import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-DaUklfNj.esm.js";
3
3
  export { MIN_PASSWORD_LENGTH, PASSWORD_VALIDATION_KEYS, REQUIREMENT_I18N_KEYS, certificateIssuanceMachine, createCertificateIssuanceManager, createCertificateIssuanceManagerFromActor, emptyPasswordValidations, isPasswordValid, validatePassword };
@@ -1,6 +1,7 @@
1
- import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-DpTj5PFb.js";
1
+ import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput, T as Values, _ as IsNotNever, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, g as InputFrom, h as GetConcreteByKey, i as ActorRefFrom, j as StateMachine, m as EventObject, o as AnyActorLogic, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, w as StateValue, x as RequiredActorOptions, y as MetaObject } from "./spawn-COZKetCS.js";
2
+ import "./xstate.cjs-D6Ur0X1F.js";
3
+ import { t as Manager } from "./Manager-DufwKlav.js";
4
+ import "./Actor-DqjOqDfU.js";
4
5
  //#region src/modules/certificate-issuance/certificateIssuanceConstants.d.ts
5
6
  declare const MIN_PASSWORD_LENGTH = 8;
6
7
  declare const PASSWORD_VALIDATION_KEYS: readonly ["length", "uppercase", "lowercase", "number"];
@@ -1,6 +1,8 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
2
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { r as isPasswordValid, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Dxvi20JA.esm.js";
1
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
3
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
4
+ import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
5
+ import { r as isPasswordValid, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-_EQcjGE3.esm.js";
4
6
  //#region src/modules/certificate-issuance/certificateIssuanceActor.ts
5
7
  /**
6
8
  * Creates and starts a certificate issuance actor.
@@ -1,6 +1,6 @@
1
- import { n as getApi, r as getToken, u as endpoints } from "./api-BSnbg4HO.esm.js";
2
- import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
1
+ import { n as getApi, r as getToken, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
+ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
3
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
4
4
  import { t as externalFetch } from "./externalFetch-CQY41QT1.esm.js";
5
5
  //#region src/modules/certificate-issuance/certificateIssuanceServices.ts
6
6
  function buildIssueCertificateUrl(baseURL) {
package/dist/consent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-DXetSxcx.js";
1
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-B0YKqYtZ.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -1,3 +1,3 @@
1
- import { t as consentMachine } from "./consentStateMachine-4nZIH2O8.esm.js";
2
- import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-DFSKQTcR.esm.js";
1
+ import { t as consentMachine } from "./consentStateMachine-DgiIcT9q.esm.js";
2
+ import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-BPocwpm2.esm.js";
3
3
  export { consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -1,6 +1,7 @@
1
- import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-DpTj5PFb.js";
1
+ import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput, T as Values, _ as IsNotNever, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, g as InputFrom, h as GetConcreteByKey, i as ActorRefFrom, j as StateMachine, m as EventObject, o as AnyActorLogic, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, w as StateValue, x as RequiredActorOptions, y as MetaObject } from "./spawn-COZKetCS.js";
2
+ import "./xstate.cjs-D6Ur0X1F.js";
3
+ import { t as Manager } from "./Manager-DufwKlav.js";
4
+ import "./Actor-DqjOqDfU.js";
4
5
  //#region src/modules/consent/types.d.ts
5
6
  type ConsentConfig = {
6
7
  combinedConsents?: string;
@@ -101,7 +102,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
101
102
  }>, {
102
103
  type: "canSubmit";
103
104
  params: unknown;
104
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
105
+ }, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
105
106
  readonly id: "consent";
106
107
  readonly initial: "idle";
107
108
  readonly context: ({ input }: {
@@ -1,7 +1,9 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
1
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
2
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as consentMachine } from "./consentStateMachine-4nZIH2O8.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 consentMachine } from "./consentStateMachine-DgiIcT9q.esm.js";
5
7
  //#region src/modules/consent/consentActor.ts
6
8
  function createConsentActor(options) {
7
9
  return createActor(consentMachine, { input: { config: options.config } }).start();
@@ -1,6 +1,6 @@
1
- import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
2
- import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
+ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
3
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
4
4
  //#region src/modules/consent/consentServices.ts
5
5
  async function fetchCombinedConsent(consentId, language, signal) {
6
6
  if (!consentId) throw new Error("Combined consent id is required");
@@ -1,4 +1,4 @@
1
- import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, o as crossDocumentDataMatchMachine, r as createCrossDocumentDataMatchManager, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-yCWCOzcU.js";
1
+ import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, o as crossDocumentDataMatchMachine, r as createCrossDocumentDataMatchManager, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-crZcIUSY.js";
2
2
  //#region src/modules/cross-document-data-match/types.d.ts
3
3
  /**
4
4
  * Configuration for the cross-document data match module.
@@ -1,2 +1,2 @@
1
- import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-D7ka2qOC.esm.js";
1
+ import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-BfA29Aji.esm.js";
2
2
  export { createCrossDocumentDataMatchManager, createCrossDocumentDataMatchManagerFromActor, crossDocumentDataMatchMachine };
@@ -1,7 +1,9 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
2
- import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
3
- import { s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
1
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
3
+ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
4
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
+ import { s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
6
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
5
7
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
6
8
  //#region src/modules/cross-document-data-match/crossDocumentDataMatchServices.ts
7
9
  /** Minimum spinner duration (ms), aligned with SDK v1 `ProcessCrossDocumentData`. */
@@ -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/cross-document-data-match/crossDocumentDataMatchStateMachine.d.ts
5
5
  declare const crossDocumentDataMatchMachine: any;
6
6
  type CrossDocumentDataMatchMachine = typeof crossDocumentDataMatchMachine;