@incodetech/core 2.3.2 → 2.4.0-rc.1

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 (271) hide show
  1. package/THIRD_PARTY_NOTICES.txt +1243 -3
  2. package/dist/Actor-DpTj5PFb.d.ts +1 -0
  3. package/dist/{BaseWasmProvider-Dyi6dKp1.d.ts → BaseWasmProvider-Bq3OHo7P.d.ts} +2 -2
  4. package/dist/BrowserDiagnosticsEnvelopeProvider-BQca6KPG.esm.js +43 -0
  5. package/dist/{FaceDetectionProvider-DtmtCKa9.esm.js → FaceDetectionProvider-BIImDZrc.esm.js} +125 -10
  6. package/dist/HttpRequestError-Bh0pNGSC.esm.js +35 -0
  7. package/dist/{IIdCaptureCapability-RNiFhvXR.d.ts → IIdCaptureCapability-CGcEt2Cw.d.ts} +2 -2
  8. package/dist/{IWasmUtilCapability-CNWRl7jr.d.ts → IWasmUtilCapability-GF2n7sfm.d.ts} +28 -5
  9. package/dist/{Manager-CQQ99QOI.d.ts → Manager-C9T5amUN.d.ts} +7 -1
  10. package/dist/{MotionSensorProvider-DyhbM4Si.esm.js → MotionSensorProvider-DYxh8TjR.esm.js} +1 -1
  11. package/dist/{ekycStateMachine-UeJRO8_p.esm.js → PhoneValidationProvider-SZiOS0jB.esm.js} +232 -827
  12. package/dist/{StreamCanvasCapture-_8gdW5Lk.d.ts → StreamCanvasCapture-7JRf-2ck.d.ts} +2 -2
  13. package/dist/{safeStorage-BdU9_m2E.esm.js → WasmUtilProvider-DtJuBdt-.esm.js} +111 -49
  14. package/dist/{addressSearch-DyHGgeX8.esm.js → addressSearch-DPjIKJrX.esm.js} +142 -4
  15. package/dist/{advanceableErrors-CpF2cBy6.esm.js → advanceableErrors-q_pfU3Cn.esm.js} +5 -4
  16. package/dist/ae-signature.d.ts +2 -2
  17. package/dist/ae-signature.esm.js +1 -1
  18. package/dist/antifraud.d.ts +1 -1
  19. package/dist/antifraud.esm.js +2 -2
  20. package/dist/{antifraudManager-DNkw66oW.esm.js → antifraudManager-CaweCYnY.esm.js} +3 -3
  21. package/dist/{antifraudManager-BY36bS12.d.ts → antifraudManager-DbGCvlJs.d.ts} +2 -2
  22. package/dist/{antifraudStateMachine-DBeq47D2.esm.js → antifraudStateMachine-DRl0UVyA.esm.js} +3 -4
  23. package/dist/{endpoints-B-3Q-LUw.esm.js → api-Cz90EHyu.esm.js} +151 -1
  24. package/dist/{apiError-CmGEmaGU.esm.js → apiError-D5u6HIDG.esm.js} +2 -1
  25. package/dist/authentication.d.ts +3 -3
  26. package/dist/authentication.esm.js +2 -2
  27. package/dist/{authenticationManager-CboRCl_N.d.ts → authenticationManager-BIZC55Bi.d.ts} +2 -8
  28. package/dist/{authenticationManager-BFjSjtQ_.esm.js → authenticationManager-CB3YW6EK.esm.js} +6 -6
  29. package/dist/{authenticationStateMachine-Dfo34ZiI.esm.js → authenticationStateMachine-BJJhLmdH.esm.js} +5 -6
  30. package/dist/avatar.d.ts +1 -1
  31. package/dist/{backCameraStream-B0-YgP_y.esm.js → backCameraStream-CMvXj4X4.esm.js} +1 -1
  32. package/dist/camera.esm.js +1 -1
  33. package/dist/certificate-issuance.d.ts +1 -1
  34. package/dist/certificate-issuance.esm.js +2 -2
  35. package/dist/{certificateIssuanceManager-C3-CI0_s.esm.js → certificateIssuanceManager-BfeMv2PU.esm.js} +3 -3
  36. package/dist/{certificateIssuanceManager-DCgEidHz.d.ts → certificateIssuanceManager-Dr8A4Lgr.d.ts} +2 -3
  37. package/dist/{certificateIssuanceStateMachine-CxqS_nD-.esm.js → certificateIssuanceStateMachine-Frgjbjw8.esm.js} +4 -5
  38. package/dist/consent.d.ts +1 -1
  39. package/dist/consent.esm.js +2 -2
  40. package/dist/{consentManager-B6E1XJDw.esm.js → consentManager-CvEu8h_W.esm.js} +3 -3
  41. package/dist/{consentManager-2h_w6wFc.d.ts → consentManager-Cv_0QKLD.d.ts} +7 -8
  42. package/dist/{consentStateMachine-DTSfdGiW.esm.js → consentStateMachine-DJTgN_-1.esm.js} +3 -4
  43. package/dist/{createCameraCycleOwnership-DnwTl1ad.esm.js → createCameraCycleOwnership-Dj_LHUvN.esm.js} +71 -66
  44. package/dist/{createFaceAvatar-BlcTYgJv.d.ts → createFaceAvatar-lYX0VTYs.d.ts} +1 -1
  45. package/dist/cross-document-data-match.d.ts +1 -1
  46. package/dist/cross-document-data-match.esm.js +1 -1
  47. package/dist/{crossDocumentDataMatchManager-9XhFVZ5S.esm.js → crossDocumentDataMatchManager-Cu141CE8.esm.js} +4 -5
  48. package/dist/{crossDocumentDataMatchManager-Dq8Z3SOg.d.ts → crossDocumentDataMatchManager-yCWCOzcU.d.ts} +2 -2
  49. package/dist/curp-validation.d.ts +1 -1
  50. package/dist/curp-validation.esm.js +2 -2
  51. package/dist/{curpValidationManager-DbIMYFcJ.esm.js → curpValidationManager-B-z9q5V3.esm.js} +15 -22
  52. package/dist/{curpValidationManager-DNuZn9fn.d.ts → curpValidationManager-C9sqoh9n.d.ts} +3 -3
  53. package/dist/{curpValidationStateMachine-g5kMfuLj.esm.js → curpValidationStateMachine-vDEFLMPw.esm.js} +4 -5
  54. package/dist/custom-fields.d.ts +1 -1
  55. package/dist/custom-fields.esm.js +1 -1
  56. package/dist/custom-watchlist.d.ts +1 -1
  57. package/dist/custom-watchlist.esm.js +2 -2
  58. package/dist/{customFieldsManager-8-W2KY4n.d.ts → customFieldsManager-CF-cO8ap.d.ts} +2 -2
  59. package/dist/{customFieldsManager-CzWZTkW-.esm.js → customFieldsManager-D1ex2cFM.esm.js} +4 -5
  60. package/dist/{customWatchlistManager-DWTED5Ur.esm.js → customWatchlistManager-CTI-SGk0.esm.js} +3 -3
  61. package/dist/{customWatchlistManager-PBWHr_oM.d.ts → customWatchlistManager-DolUswyR.d.ts} +2 -2
  62. package/dist/{customWatchlistStateMachine-DOQou6TW.esm.js → customWatchlistStateMachine-hmRd0f2I.esm.js} +3 -4
  63. package/dist/deepsightLoader-DZMdYSl-.esm.js +55 -0
  64. package/dist/{deepsightLoader-v-dLejS-.esm.js → deepsightService-tGP53cSS.esm.js} +51 -56
  65. package/dist/device.esm.js +1 -1
  66. package/dist/document-capture.d.ts +2 -2
  67. package/dist/document-capture.esm.js +2 -2
  68. package/dist/{documentCaptureManager-BRPxqYD2.esm.js → documentCaptureManager-DUJwpKC5.esm.js} +17 -18
  69. package/dist/{documentCaptureManager-lEtCM320.d.ts → documentCaptureManager-DkyDtm3Y.d.ts} +11 -34
  70. package/dist/{documentCaptureStateMachine-D312sSIu.esm.js → documentCaptureStateMachine-B8i7GnLh.esm.js} +55 -59
  71. package/dist/dynamic-forms.d.ts +2 -2
  72. package/dist/dynamic-forms.esm.js +2 -2
  73. package/dist/{dynamicFormsManager-C-9Jhnd3.esm.js → dynamicFormsManager-Bxmv_9PB.esm.js} +3 -3
  74. package/dist/{dynamicFormsManager-D5R_uxLQ.d.ts → dynamicFormsManager-C0dHs1ty.d.ts} +3 -3
  75. package/dist/{dynamicFormsStateMachine-DGI_F2PP.esm.js → dynamicFormsStateMachine-CoOWTzyM.esm.js} +4 -5
  76. package/dist/ekyb.d.ts +5 -5
  77. package/dist/ekyb.esm.js +3 -3
  78. package/dist/{ekybManager-DeoMcZEz.esm.js → ekybManager-BBkdPxUY.esm.js} +23 -27
  79. package/dist/{ekybManager-BwRuGAwt.d.ts → ekybManager-BaZ_7CEu.d.ts} +4 -4
  80. package/dist/{ekybStateMachine-D1IJ1Z72.esm.js → ekybStateMachine-n4Iz9iLc.esm.js} +338 -14
  81. package/dist/ekyc.d.ts +2 -2
  82. package/dist/ekyc.esm.js +3 -3
  83. package/dist/{ekycManager-BX2d46FY.esm.js → ekycManager-BO-Lui3t.esm.js} +29 -36
  84. package/dist/{ekycManager-DLzDuBzI.d.ts → ekycManager-DW-ynodd.d.ts} +3 -3
  85. package/dist/ekycStateMachine-CDnI_NRq.esm.js +1443 -0
  86. package/dist/{ekycUtils-D6wfSpPN.esm.js → ekycUtils-zY8CdKJL.esm.js} +53 -3
  87. package/dist/electronic-signature.d.ts +1 -1
  88. package/dist/electronic-signature.esm.js +1 -1
  89. package/dist/{electronicSignatureManager-yYUc30na.esm.js → electronicSignatureManager-BtWCrz5_.esm.js} +10 -11
  90. package/dist/{electronicSignatureManager-Ds-KEVTq.d.ts → electronicSignatureManager-DTSLOvKR.d.ts} +2 -3
  91. package/dist/email.d.ts +1 -1
  92. package/dist/email.esm.js +2 -2
  93. package/dist/{emailManager-bR1N5rV_.esm.js → emailManager-ButFktRm.esm.js} +20 -26
  94. package/dist/{emailManager-CADXW_9X.d.ts → emailManager-Dy6omJVp.d.ts} +2 -2
  95. package/dist/{emailStateMachine-Bc_6oIYw.esm.js → emailStateMachine-BXtlC0NV.esm.js} +3 -4
  96. package/dist/{events-ijlbX_Wx.esm.js → events-Du2A4-Qr.esm.js} +203 -8
  97. package/dist/events.d.ts +3 -2
  98. package/dist/events.esm.js +1 -1
  99. package/dist/extensibility.d.ts +38 -38
  100. package/dist/extensibility.esm.js +36 -36
  101. package/dist/{externalFetch-BKBThAUC.esm.js → externalFetch-DrR9xshk.esm.js} +3 -2
  102. package/dist/face-match.d.ts +1 -1
  103. package/dist/face-match.esm.js +2 -2
  104. package/dist/{faceCaptureManagerFactory-m-7ae67q.d.ts → faceCaptureManagerFactory-1hzeS_rB.d.ts} +11 -51
  105. package/dist/{faceCaptureManagerFactory-B6i9QcAk.esm.js → faceCaptureManagerFactory-CwZUeYfq.esm.js} +19 -54
  106. package/dist/{faceCaptureSetup-DU1mjRr6.esm.js → faceCaptureSetup-CYbdKNlI.esm.js} +104 -396
  107. package/dist/{faceMatchManager-BnvrZM2F.d.ts → faceMatchManager-DIgG-UFS.d.ts} +1 -2
  108. package/dist/{faceMatchManager-Bmv0HzuY.esm.js → faceMatchManager-DWFUQjMQ.esm.js} +3 -3
  109. package/dist/{faceMatchStateMachine-mRIHQ3dA.esm.js → faceMatchStateMachine-CUCvlydD.esm.js} +6 -5
  110. package/dist/{feature-management-C8CuN0os.esm.js → feature-management-rTfjzdDa.esm.js} +3 -3
  111. package/dist/feature-management.esm.js +1 -1
  112. package/dist/field-comparison.d.ts +2 -2
  113. package/dist/field-comparison.esm.js +1 -1
  114. package/dist/{fieldComparisonManager-CBvEGxFx.d.ts → fieldComparisonManager-CUX4gza2.d.ts} +6 -3
  115. package/dist/{fieldComparisonManager-CC-klG0h.esm.js → fieldComparisonManager-v3knTYV_.esm.js} +35 -18
  116. package/dist/fiscal-qr.d.ts +1 -1
  117. package/dist/fiscal-qr.esm.js +1 -1
  118. package/dist/{fiscalQrManager-B1STmT6z.d.ts → fiscalQrManager-D0Iy7EKR.d.ts} +2 -2
  119. package/dist/fiscalQrManager-Dt9fHG7h.esm.js +6798 -0
  120. package/dist/flow-events.d.ts +1 -1
  121. package/dist/flow.d.ts +14 -13
  122. package/dist/flow.esm.js +14 -14
  123. package/dist/{flowCompletionService-DccgtDnm.esm.js → flowCompletionService-oiK1PjPr.esm.js} +2 -3
  124. package/dist/{flowServices-CdsWsppG.esm.js → flowServices-CTc-zqfN.esm.js} +11 -8
  125. package/dist/geolocation.d.ts +1 -1
  126. package/dist/geolocation.esm.js +2 -2
  127. package/dist/{geolocationManager-CGHBxtMb.esm.js → geolocationManager-BOdtVuR8.esm.js} +6 -7
  128. package/dist/{geolocationManager-Cz744E5S.d.ts → geolocationManager-Dn24g1fl.d.ts} +2 -3
  129. package/dist/{geolocationStateMachine-CdEb1Gn0.esm.js → geolocationStateMachine-BnGuZ3hn.esm.js} +4 -5
  130. package/dist/{getDeviceClass-5NYZg9s6.esm.js → getDeviceClass-bsWdEDxP.esm.js} +1 -1
  131. package/dist/{getParsedUserAgent-B2iFDql1.esm.js → getParsedUserAgent-DhQPeKqw.esm.js} +1 -1
  132. package/dist/government-validation.d.ts +1 -1
  133. package/dist/government-validation.esm.js +2 -2
  134. package/dist/{governmentValidationManager-D02vT4yY.d.ts → governmentValidationManager-B82zOut8.d.ts} +3 -3
  135. package/dist/{governmentValidationManager-CacFOtKO.esm.js → governmentValidationManager-BtXWHICu.esm.js} +3 -3
  136. package/dist/{governmentValidationStateMachine-CoaZOSTP.esm.js → governmentValidationStateMachine-COL-Vs48.esm.js} +3 -4
  137. package/dist/home.d.ts +3 -26
  138. package/dist/home.esm.js +2 -2
  139. package/dist/http.esm.js +1 -1
  140. package/dist/id-ocr.d.ts +1 -1
  141. package/dist/id-ocr.esm.js +2 -2
  142. package/dist/id-selfie-flow.d.ts +6 -9
  143. package/dist/id-selfie-flow.esm.js +23 -28
  144. package/dist/id-verification.d.ts +1 -1
  145. package/dist/id-verification.esm.js +2 -2
  146. package/dist/id.d.ts +4 -4
  147. package/dist/id.esm.js +4 -205
  148. package/dist/{idCaptureDefaults-Dl64Trv5.esm.js → idCaptureDefaults-BGsG2OAs.esm.js} +7 -5
  149. package/dist/{idCaptureManager-BHwL2Z0V.d.ts → idCaptureManager-0M02hSuC.d.ts} +242 -98
  150. package/dist/{idCaptureManager-BNmVJQkd.esm.js → idCaptureManager-BKedt48Y.esm.js} +276 -210
  151. package/dist/{idCaptureServices-dtDG2HXS.esm.js → idCaptureServices-D0p_RFqk.esm.js} +21 -40
  152. package/dist/{idCaptureStateMachine-BbiZD3uf.esm.js → idCaptureStateMachine-CxwoN5ff.esm.js} +992 -872
  153. package/dist/{idOcrManager-ByWuQ4ej.esm.js → idOcrManager-D3-HNMXP.esm.js} +3 -3
  154. package/dist/{idOcrManager-CFlDwUvN.d.ts → idOcrManager-DT3kPIB3.d.ts} +3 -4
  155. package/dist/{idOcrStateMachine-Bt_abXQQ.esm.js → idOcrStateMachine-DyENX6Ki.esm.js} +3 -4
  156. package/dist/{idVerificationManager-BB4Pj_N6.d.ts → idVerificationManager-BJapZfpy.d.ts} +2 -3
  157. package/dist/{idVerificationManager-DT42c77H.esm.js → idVerificationManager-iWz7Avkr.esm.js} +3 -3
  158. package/dist/{idVerificationStateMachine-DbDVIh9t.esm.js → idVerificationStateMachine-CL1kUdBe.esm.js} +3 -4
  159. package/dist/identity-reuse.d.ts +2 -2
  160. package/dist/identity-reuse.esm.js +2 -2
  161. package/dist/{identityReuseManager-BXEBBI3N.d.ts → identityReuseManager-B1birg5X.d.ts} +162 -44
  162. package/dist/{identityReuseManager-yG3acUrQ.esm.js → identityReuseManager-CD1ucp1d.esm.js} +26 -13
  163. package/dist/{identityReuseStateMachine-BhAkuIra.esm.js → identityReuseStateMachine-DfV81wQC.esm.js} +89 -24
  164. package/dist/{index-CeaC32qI.d.ts → index-CKQ9QBZP.d.ts} +2 -2
  165. package/dist/index-DpTj5PFb.d.ts +1 -0
  166. package/dist/index.d.ts +1 -1
  167. package/dist/index.esm.js +1 -1
  168. package/dist/{invokeOnCaptureCallback-BjzPjJ_p.esm.js → invokeOnCaptureCallback-DYrkOXO6.esm.js} +1 -1
  169. package/dist/lamejs-B6TzhU5q.esm.js +10 -0
  170. package/dist/mandatory-consent.d.ts +2 -2
  171. package/dist/mandatory-consent.esm.js +2 -2
  172. package/dist/{mandatoryConsentManager-7dI0D08q.esm.js → mandatoryConsentManager-Cwqx1nK7.esm.js} +3 -3
  173. package/dist/{mandatoryConsentManager-DFVm_i2B.d.ts → mandatoryConsentManager-okPILEru.d.ts} +8 -9
  174. package/dist/{mandatoryConsentStateMachine-DC5Mo6M1.esm.js → mandatoryConsentStateMachine-pXWqAHo_.esm.js} +3 -4
  175. package/dist/{multipartRecordingService-mwKFTlhR.esm.js → multipartRecordingService-CLwrF5wD.esm.js} +1 -2
  176. package/dist/{permissionGuards-D6TfVop2.esm.js → permissionGuards-gcy3U0SL.esm.js} +1 -1
  177. package/dist/{permissionServices-EY3_Vx6c.esm.js → permissionServices-Ca-tSNhT.esm.js} +34 -3
  178. package/dist/phone-number.d.ts +24 -0
  179. package/dist/phone-number.esm.js +1922 -0
  180. package/dist/phone.d.ts +1 -1
  181. package/dist/phone.esm.js +2 -2
  182. package/dist/{phoneManager-BBU8Lq0O.d.ts → phoneManager-BO-LTih5.d.ts} +16 -3
  183. package/dist/{phoneManager-IjhSv5XS.esm.js → phoneManager-KKUq-Vgo.esm.js} +31 -22
  184. package/dist/{phoneStateMachine-CXdXufKg.esm.js → phoneStateMachine-D2QWS2cu.esm.js} +38 -20
  185. package/dist/phoneValidation-DnBcNUNh.esm.js +48 -0
  186. package/dist/qe-signature.d.ts +2 -2
  187. package/dist/qe-signature.esm.js +1 -1
  188. package/dist/redirect-to-mobile.d.ts +1 -1
  189. package/dist/redirect-to-mobile.esm.js +2 -2
  190. package/dist/{redirectToMobileManager-BD2PvT5B.d.ts → redirectToMobileManager-CVsvpVbQ.d.ts} +2 -2
  191. package/dist/{redirectToMobileManager-FLEWJtv8.esm.js → redirectToMobileManager-uHW3dyuQ.esm.js} +4 -4
  192. package/dist/{redirectToMobileStateMachine-CSWWgUTO.esm.js → redirectToMobileStateMachine-b-H-ipGM.esm.js} +4 -5
  193. package/dist/{rolldown-runtime-FDOR9p9I.esm.js → rolldown-runtime-B-1-B7_t.esm.js} +10 -1
  194. package/dist/{runChildModule-B2Y_hlix.esm.js → runChildModule-CPa0i2_C.esm.js} +13 -12
  195. package/dist/safeStorage-UxDrnjwa.esm.js +35 -0
  196. package/dist/{sdkVersion-N1UiyFiY.esm.js → sdkVersion-BtROs6OA.esm.js} +1 -1
  197. package/dist/selfie.d.ts +4 -4
  198. package/dist/selfie.esm.js +12 -12
  199. package/dist/selfieErrorUtils-sMc0MaNh.esm.js +21 -0
  200. package/dist/{selfieManager-BSZG891S.d.ts → selfieManager-BJdNu_nd.d.ts} +2 -8
  201. package/dist/{selfieManager-AS6wfUvZ.esm.js → selfieManager-Ch9xJbWJ.esm.js} +6 -6
  202. package/dist/selfieStateMachine-DT8QCfKR.esm.js +41 -0
  203. package/dist/{session-BESZc05k.esm.js → session-CNNTckUS.esm.js} +5 -6
  204. package/dist/session.d.ts +15 -3
  205. package/dist/session.esm.js +30 -5
  206. package/dist/sessionInitializer-DVWMJh25.esm.js +973 -0
  207. package/dist/{setup-BuPbxpwF.esm.js → setup-B7ehQ-lf.esm.js} +155 -140
  208. package/dist/{setup-Cyko6cAn.d.ts → setup-YPKTUCY5.d.ts} +42 -15
  209. package/dist/signature.d.ts +1 -1
  210. package/dist/signature.esm.js +2 -2
  211. package/dist/{signatureManager-DGBSWz2_.d.ts → signatureManager-BpVt_Jv7.d.ts} +2 -2
  212. package/dist/{signatureManager-B72np4ZO.esm.js → signatureManager-f_dPAGXn.esm.js} +7 -11
  213. package/dist/{signatureStateMachine-ce_XMA3l.esm.js → signatureStateMachine-C-nUq_oq.esm.js} +3 -4
  214. package/dist/splitTrackedName-3zJRd2RD.esm.js +19 -0
  215. package/dist/{src-35ekGRzK.esm.js → src-DJAJjRYQ.esm.js} +1 -1
  216. package/dist/{stats-CZcy2J53.esm.js → stats-BEvexnKC.esm.js} +1 -2
  217. package/dist/stats.esm.js +1 -1
  218. package/dist/{sessionInitializer-CnhAkMUN.esm.js → thumbmark.esm-CRc0cYvz.esm.js} +33 -776
  219. package/dist/{trueSightService-M5VpCo96.esm.js → trueSightService-BzLdXpmJ.esm.js} +1391 -709
  220. package/dist/trust-graph.d.ts +1 -2
  221. package/dist/trust-graph.esm.js +2 -2
  222. package/dist/{types-C0oWGUzg.d.ts → types-0L-eFDmr.d.ts} +1 -1
  223. package/dist/{types-C1g9itHE.d.ts → types-B6HsSzpk.d.ts} +6 -7
  224. package/dist/{types-DEGVXwsk2.d.ts → types-BAxn7MpY.d.ts} +110 -62
  225. package/dist/{types-BfgmV7s7.d.ts → types-BQA7lRDV.d.ts} +1 -1
  226. package/dist/{types-Cx-1zo-i.d.ts → types-BvLo3U4u.d.ts} +1 -1
  227. package/dist/{types-Bx-BWveD.d.ts → types-CK8Jbjkp.d.ts} +1 -1
  228. package/dist/{types-CxGdmzxa.d.ts → types-Ckir_BEs.d.ts} +1 -1
  229. package/dist/{types-BjSly8cp.d.ts → types-DUnFZ08M.d.ts} +1 -1
  230. package/dist/{types-ESdtnHtg.d.ts → types-yPH8lAH-.d.ts} +3 -4
  231. package/dist/types-zOgZqMni.d.ts +6 -0
  232. package/dist/{urlUtils-D6phjq1-.esm.js → urlUtils-6jsE6rKp.esm.js} +9 -1
  233. package/dist/video-selfie.d.ts +6 -9
  234. package/dist/video-selfie.esm.js +1390 -1349
  235. package/dist/{videoSelfieCameraWarmer-q9ZjvXu9.esm.js → videoSelfieCameraWarmer-DWoFBJAn.esm.js} +10 -11
  236. package/dist/{videoSelfieFlowModuleMachine-BUe2uACW.esm.js → videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js} +1 -1
  237. package/dist/{videoSelfieStepDetector-ChYgFM15.d.ts → videoSelfieStepDetector-CGsTltqB.d.ts} +4 -4
  238. package/dist/videoTrimByCopy-BFfAiNpv.esm.js +15901 -0
  239. package/dist/{warmup-ChDwHSel.esm.js → warmup-BElYWRh7.esm.js} +348 -11
  240. package/dist/{warmup-Cis2p6O0.d.ts → warmup-BO57syF6.d.ts} +8 -0
  241. package/dist/wasm.d.ts +2 -2
  242. package/dist/wasm.esm.js +3 -4
  243. package/dist/{wasmDsFlagSync-DYrLUEII.esm.js → wasmDsFlagSync-CYj5LL9z.esm.js} +1 -1
  244. package/dist/{wasmWebClient-B7baE-Wf.esm.js → wasmWebClient-BjZw_7OB.esm.js} +570 -33
  245. package/dist/watchlist-for-business.d.ts +1 -1
  246. package/dist/watchlist-for-business.esm.js +2 -2
  247. package/dist/watchlist.d.ts +1 -1
  248. package/dist/watchlist.esm.js +2 -2
  249. package/dist/{watchlistForBusinessManager-CsnJnG-C.d.ts → watchlistForBusinessManager-B3GDPZrr.d.ts} +2 -2
  250. package/dist/{watchlistForBusinessManager-CIMkpEhu.esm.js → watchlistForBusinessManager-CZZOFkGl.esm.js} +7 -5
  251. package/dist/{watchlistForBusinessStateMachine-CJ-MvUre.esm.js → watchlistForBusinessStateMachine-B66E7jud.esm.js} +3 -4
  252. package/dist/{watchlistManager-DLXef90v.d.ts → watchlistManager-DJQOd8Pw.d.ts} +2 -2
  253. package/dist/{watchlistManager-CixcLNDT.esm.js → watchlistManager-DXtX94SN.esm.js} +3 -3
  254. package/dist/{watchlistStateMachine-CBqk2w-h.esm.js → watchlistStateMachine-McALifag.esm.js} +3 -4
  255. package/dist/workflow.d.ts +34 -5
  256. package/dist/workflow.esm.js +64 -47
  257. package/dist/{xstate-actors.esm-BXeQ-Ucz.esm.js → xstate-actors.esm-8Gzepa_A.esm.js} +1 -1
  258. package/dist/{xstate.esm-BuFLFuzz.esm.js → xstate.esm-DSajW7CJ.esm.js} +24 -10
  259. package/package.json +13 -5
  260. package/dist/Actor-iTq7YY48.d.ts +0 -1
  261. package/dist/BrowserDiagnosticsCryptoProvider-BuzqvbhN.esm.js +0 -77
  262. package/dist/StateMachine-EDpYWy0i.d.ts +0 -6
  263. package/dist/api-Bx3gKW_y.esm.js +0 -129
  264. package/dist/fiscalQrManager-DbCVMIBx.esm.js +0 -34143
  265. package/dist/index-B8weJxmL.d.ts +0 -1
  266. package/dist/selfieErrorUtils-UiQ46EBa.esm.js +0 -116
  267. package/dist/selfieStateMachine-DY7vJVNY.esm.js +0 -71
  268. package/dist/types-BN5RPPIZ.esm.js +0 -34
  269. package/dist/types-Bt9RuRqt.d.ts +0 -6
  270. package/dist/virtualCameraCheck-Cjab7FTI.esm.js +0 -48
  271. /package/dist/{types-BSBzhHRH.d.ts → types-BSBzhHRH2.d.ts} +0 -0
@@ -1,2 +1,2 @@
1
- import { a as createWatchlistForBusinessManager, c as WatchlistForBusinessValidationErrors, i as WatchlistForBusinessState, l as WatchlistForBusinessActor, n as WatchlistForBusinessFormState, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager, s as WatchlistForBusinessConfig, t as WatchlistForBusinessFinishedState, u as watchlistForBusinessMachine } from "./watchlistForBusinessManager-CsnJnG-C.js";
1
+ import { a as createWatchlistForBusinessManager, c as WatchlistForBusinessValidationErrors, i as WatchlistForBusinessState, l as WatchlistForBusinessActor, n as WatchlistForBusinessFormState, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager, s as WatchlistForBusinessConfig, t as WatchlistForBusinessFinishedState, u as watchlistForBusinessMachine } from "./watchlistForBusinessManager-B3GDPZrr.js";
2
2
  export { type WatchlistForBusinessActor, type WatchlistForBusinessConfig, type WatchlistForBusinessFinishedState, type WatchlistForBusinessFormState, type WatchlistForBusinessManager, type WatchlistForBusinessState, type WatchlistForBusinessValidationErrors, createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
@@ -1,3 +1,3 @@
1
- import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-CJ-MvUre.esm.js";
2
- import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-CIMkpEhu.esm.js";
1
+ import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-B66E7jud.esm.js";
2
+ import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-CZZOFkGl.esm.js";
3
3
  export { createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
@@ -1,4 +1,4 @@
1
- import { n as WatchlistState, o as watchlistMachine, r as createWatchlistManager, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
1
+ import { n as WatchlistState, o as watchlistMachine, r as createWatchlistManager, t as WatchlistManager } from "./watchlistManager-DJQOd8Pw.js";
2
2
  //#region src/modules/watchlist/types.d.ts
3
3
  /**
4
4
  * Configuration options for the global watchlist module.
@@ -1,3 +1,3 @@
1
- import { t as watchlistMachine } from "./watchlistStateMachine-CBqk2w-h.esm.js";
2
- import { t as createWatchlistManager } from "./watchlistManager-CixcLNDT.esm.js";
1
+ import { t as watchlistMachine } from "./watchlistStateMachine-McALifag.esm.js";
2
+ import { t as createWatchlistManager } from "./watchlistManager-DXtX94SN.esm.js";
3
3
  export { createWatchlistManager, watchlistMachine };
@@ -1,6 +1,6 @@
1
1
  import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-CQQ99QOI.js";
3
- import "./Actor-iTq7YY48.js";
2
+ import { t as Manager } from "./Manager-C9T5amUN.js";
3
+ import "./Actor-DpTj5PFb.js";
4
4
  //#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.d.ts
5
5
  declare const watchlistForBusinessMachine: any;
6
6
  type WatchlistForBusinessMachine = typeof watchlistForBusinessMachine;
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
4
- import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-CJ-MvUre.esm.js";
3
+ import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
+ import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-B66E7jud.esm.js";
5
5
  //#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
6
6
  function createWatchlistForBusinessActor() {
7
7
  return createActor(watchlistForBusinessMachine).start();
@@ -16,13 +16,15 @@ function createWatchlistForBusinessActor() {
16
16
  * watchlist — each manager keeps its own module token per the
17
17
  * AdSign/QSign precedent.
18
18
  *
19
- * `idle` and `finished` are intentionally unmapped — the Figma canvas does
20
- * not define screens for them; `finished` collapses into `moduleClosed`.
19
+ * `idle` and `finished` have no visible screen. Suppress their raw-state
20
+ * fallback so every screen stays in the approved `watchlist.*` family.
21
21
  */
22
22
  function getWatchlistForBusinessScreenName(snapshot) {
23
23
  const stateName = topLevelStateName(snapshot.value);
24
24
  if (stateName === void 0) return void 0;
25
25
  switch (stateName) {
26
+ case "idle":
27
+ case "finished": return "";
26
28
  case "form": return snapshot.context.isValid ? "watchlist.filled" : "watchlist.default";
27
29
  case "submitting": return "watchlist.processing";
28
30
  case "success": return "watchlist.success";
@@ -1,7 +1,6 @@
1
- import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
3
- import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
1
+ import { t as api, u as endpoints } from "./api-Cz90EHyu.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";
5
4
  //#region src/modules/watchlist-for-business/watchlistForBusinessServices.ts
6
5
  async function submitWatchlistForBusiness(data, signal) {
7
6
  const res = await api.post(endpoints.watchlistForBusinessSubmit, data, { signal });
@@ -1,6 +1,6 @@
1
1
  import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-CQQ99QOI.js";
3
- import "./Actor-iTq7YY48.js";
2
+ import { t as Manager } from "./Manager-C9T5amUN.js";
3
+ import "./Actor-DpTj5PFb.js";
4
4
  //#region src/modules/watchlist/watchlistStateMachine.d.ts
5
5
  type WatchlistResult = 'success' | 'skipped';
6
6
  declare const watchlistMachine: any;
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
4
- import { t as watchlistMachine } from "./watchlistStateMachine-CBqk2w-h.esm.js";
3
+ import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
+ import { t as watchlistMachine } from "./watchlistStateMachine-McALifag.esm.js";
5
5
  //#region src/modules/watchlist/watchlistActor.ts
6
6
  function createWatchlistActor() {
7
7
  return createActor(watchlistMachine).start();
@@ -1,7 +1,6 @@
1
- import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
3
- import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
1
+ import { t as api, u as endpoints } from "./api-Cz90EHyu.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";
5
4
  //#region src/modules/watchlist/watchlistServices.ts
6
5
  async function processWatchlist(signal) {
7
6
  const res = await api.post(endpoints.processGlobalWatchlist, {}, { signal });
@@ -1,10 +1,9 @@
1
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, k as MachineSnapshot, l as AnyStateMachine, 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
2
  import { t as CallbackActorLogic } from "./callback-645_omgz.js";
3
- import "./StateMachine-EDpYWy0i.js";
4
- import { t as Manager } from "./Manager-CQQ99QOI.js";
3
+ import { t as Manager } from "./Manager-C9T5amUN.js";
5
4
  import { a as TotalScore, i as GetTotalScoreStatusFn, n as FinishStatus, r as GetFinishStatusFn } from "./flowCompletionService-BlAHsKyv.js";
6
- import { o as FlowEventSubscribable } from "./index-CeaC32qI.js";
7
- import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-BfgmV7s7.js";
5
+ import { o as FlowEventSubscribable } from "./index-CKQ9QBZP.js";
6
+ import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-BQA7lRDV.js";
8
7
  //#region src/modules/workflow/types.d.ts
9
8
  /** Possible node types returned by the workflow server. */
10
9
  type WorkflowNodeType = 'MODULE' | 'FINISH' | 'ASYNC_RESOLUTION';
@@ -82,6 +81,12 @@ type WorkflowIdleState = {
82
81
  type WorkflowLoadingState = {
83
82
  status: 'loading';
84
83
  homeScreen: WorkflowHomeScreen;
84
+ /**
85
+ * Set once the workflow config has loaded, so the UI can apply server flags
86
+ * (e.g. `disableUnsupportedBrowserScreen`) before the first module, including
87
+ * while the home screen shows.
88
+ */
89
+ workflowConfig?: WorkflowConfig;
85
90
  };
86
91
  type WorkflowCompletingState = {
87
92
  status: 'completing';
@@ -123,6 +128,19 @@ type CreateWorkflowManagerOptions = {
123
128
  interviewId?: string;
124
129
  /** Whether the device is a desktop. Determines desktop-to-mobile redirect injection. Defaults to true. */
125
130
  isDesktop?: boolean;
131
+ /**
132
+ * Set when mounting on the return leg of a full-page redirect a module
133
+ * started, such as the digital-ID bank redirect. Skips the launch screen and
134
+ * the desktop-to-mobile handoff, which the user already went through before
135
+ * leaving, so the workflow resumes on its current node. Defaults to false.
136
+ */
137
+ isReturnLeg?: boolean;
138
+ /**
139
+ * Override for the finish-status fetch. Lets a caller overlay values the
140
+ * `/omni/finish-status` response never carries (e.g. the dashboard-configured
141
+ * `endScreenTitle`/`endScreenText`, only available from `POST /omni/start`).
142
+ */
143
+ getFinishStatus?: GetFinishStatusFn;
126
144
  };
127
145
  /**
128
146
  * Creates a workflow manager for server-driven onboarding flows.
@@ -251,6 +269,8 @@ type WorkflowContext = {
251
269
  isInjectedNode: boolean;
252
270
  isHomeContinueLoading: boolean;
253
271
  hasShownHome: boolean;
272
+ /** See `WorkflowInput.isReturnLeg`. */
273
+ isReturnLeg: boolean;
254
274
  getFinishStatus: GetFinishStatusFn;
255
275
  getTotalScoreStatus: GetTotalScoreStatusFn;
256
276
  };
@@ -269,6 +289,14 @@ type WorkflowInput = {
269
289
  interviewId?: string;
270
290
  /** Whether the device is a desktop. Determines desktop-to-mobile redirect injection. Defaults to true. */
271
291
  isDesktop?: boolean;
292
+ /**
293
+ * The host re-mounted this workflow on the return leg of a full-page
294
+ * redirect a module started (today: the digital-ID bank redirect). The user
295
+ * already went through the pre-node screens before leaving, so the launch
296
+ * screen and the desktop-to-mobile handoff are not shown again and the
297
+ * workflow lands straight on its current node. Defaults to false.
298
+ */
299
+ isReturnLeg?: boolean;
272
300
  };
273
301
  declare const workflowMachine: StateMachine<WorkflowContext, {
274
302
  type: "LOAD";
@@ -662,7 +690,8 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
662
690
  isDesktop: boolean;
663
691
  isInjectedNode: false;
664
692
  isHomeContinueLoading: false;
665
- hasShownHome: false;
693
+ hasShownHome: boolean;
694
+ isReturnLeg: boolean;
666
695
  getFinishStatus: GetFinishStatusFn;
667
696
  getTotalScoreStatus: GetTotalScoreStatusFn;
668
697
  };
@@ -1,46 +1,45 @@
1
- import { l as trueSightLog } from "./trueSightService-M5VpCo96.esm.js";
2
- import { E as updateFeatureManagementUser } from "./feature-management-C8CuN0os.esm.js";
3
- import { t as api } from "./api-Bx3gKW_y.esm.js";
4
- import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-ijlbX_Wx.esm.js";
5
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CnhAkMUN.esm.js";
6
- import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
7
- import { i as toIncodeApiError } from "./apiError-CmGEmaGU.esm.js";
8
- import { v as toEkybConfig } from "./flowServices-CdsWsppG.esm.js";
9
- import { i as toEkycConfig } from "./ekycUtils-D6wfSpPN.esm.js";
10
- import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
11
- import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
12
- import { r as electronicSignatureMachine } from "./electronicSignatureManager-yYUc30na.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation, y as addEvent } from "./events-Du2A4-Qr.esm.js";
2
+ import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
3
+ import { u as trueSightLog } from "./trueSightService-BzLdXpmJ.esm.js";
4
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DVWMJh25.esm.js";
5
+ import { E as updateFeatureManagementUser } from "./feature-management-rTfjzdDa.esm.js";
6
+ import { i as toIncodeApiError } from "./apiError-D5u6HIDG.esm.js";
7
+ import { v as toEkybConfig } from "./flowServices-CTc-zqfN.esm.js";
8
+ import { a as toEkycConfig } from "./ekycUtils-zY8CdKJL.esm.js";
9
+ import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
10
+ import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
11
+ import { r as electronicSignatureMachine } from "./electronicSignatureManager-BtWCrz5_.esm.js";
13
12
  import "./ae-signature.esm.js";
14
- import { t as antifraudMachine } from "./antifraudStateMachine-DBeq47D2.esm.js";
15
- import { t as authenticationMachine } from "./authenticationStateMachine-Dfo34ZiI.esm.js";
16
- import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-CxqS_nD-.esm.js";
17
- import { t as consentMachine } from "./consentStateMachine-DTSfdGiW.esm.js";
18
- import { t as curpValidationMachine } from "./curpValidationStateMachine-g5kMfuLj.esm.js";
19
- import { t as customWatchlistMachine } from "./customWatchlistStateMachine-DOQou6TW.esm.js";
20
- import { t as documentCaptureMachine } from "./documentCaptureStateMachine-D312sSIu.esm.js";
21
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DGI_F2PP.esm.js";
22
- import { t as ekybMachine } from "./ekybStateMachine-D1IJ1Z72.esm.js";
23
- import { t as ekycMachine } from "./ekycStateMachine-UeJRO8_p.esm.js";
24
- import { t as emailMachine } from "./emailStateMachine-Bc_6oIYw.esm.js";
25
- import { t as selfieMachine } from "./selfieStateMachine-DY7vJVNY.esm.js";
26
- import { t as idCaptureMachine } from "./idCaptureStateMachine-BbiZD3uf.esm.js";
27
- import { t as phoneMachine } from "./phoneStateMachine-CXdXufKg.esm.js";
28
- import { t as watchlistMachine } from "./watchlistStateMachine-CBqk2w-h.esm.js";
29
- import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-CJ-MvUre.esm.js";
30
- import { n as identityReuseMachine } from "./identityReuseStateMachine-BhAkuIra.esm.js";
31
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DC5Mo6M1.esm.js";
32
- import { t as idOcrStateMachine } from "./idOcrStateMachine-Bt_abXQQ.esm.js";
33
- import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-CSWWgUTO.esm.js";
34
- import { t as signatureMachine } from "./signatureStateMachine-ce_XMA3l.esm.js";
35
- import { t as geolocationMachine } from "./geolocationStateMachine-CdEb1Gn0.esm.js";
36
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CoaZOSTP.esm.js";
37
- import { t as idVerificationMachine } from "./idVerificationStateMachine-DbDVIh9t.esm.js";
38
- import { t as faceMatchMachine } from "./faceMatchStateMachine-mRIHQ3dA.esm.js";
39
- import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-DccgtDnm.esm.js";
40
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-B2Y_hlix.esm.js";
41
- import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
13
+ import { t as antifraudMachine } from "./antifraudStateMachine-DRl0UVyA.esm.js";
14
+ import { t as authenticationMachine } from "./authenticationStateMachine-BJJhLmdH.esm.js";
15
+ import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Frgjbjw8.esm.js";
16
+ import { t as consentMachine } from "./consentStateMachine-DJTgN_-1.esm.js";
17
+ import { t as curpValidationMachine } from "./curpValidationStateMachine-vDEFLMPw.esm.js";
18
+ import { t as customWatchlistMachine } from "./customWatchlistStateMachine-hmRd0f2I.esm.js";
19
+ import { t as documentCaptureMachine } from "./documentCaptureStateMachine-B8i7GnLh.esm.js";
20
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CoOWTzyM.esm.js";
21
+ import { t as ekybMachine } from "./ekybStateMachine-n4Iz9iLc.esm.js";
22
+ import { t as ekycMachine } from "./ekycStateMachine-CDnI_NRq.esm.js";
23
+ import { t as emailMachine } from "./emailStateMachine-BXtlC0NV.esm.js";
24
+ import { t as selfieMachine } from "./selfieStateMachine-DT8QCfKR.esm.js";
25
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-CxwoN5ff.esm.js";
26
+ import { t as phoneMachine } from "./phoneStateMachine-D2QWS2cu.esm.js";
27
+ import { t as watchlistMachine } from "./watchlistStateMachine-McALifag.esm.js";
28
+ import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-B66E7jud.esm.js";
29
+ import { n as identityReuseMachine } from "./identityReuseStateMachine-DfV81wQC.esm.js";
30
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-pXWqAHo_.esm.js";
31
+ import { t as idOcrStateMachine } from "./idOcrStateMachine-DyENX6Ki.esm.js";
32
+ import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-b-H-ipGM.esm.js";
33
+ import { t as signatureMachine } from "./signatureStateMachine-C-nUq_oq.esm.js";
34
+ import { t as geolocationMachine } from "./geolocationStateMachine-BnGuZ3hn.esm.js";
35
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-COL-Vs48.esm.js";
36
+ import { t as idVerificationMachine } from "./idVerificationStateMachine-CL1kUdBe.esm.js";
37
+ import { t as faceMatchMachine } from "./faceMatchStateMachine-CUCvlydD.esm.js";
38
+ import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-oiK1PjPr.esm.js";
39
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CPa0i2_C.esm.js";
40
+ import { n as isAdvanceableError } from "./advanceableErrors-q_pfU3Cn.esm.js";
42
41
  import "./qe-signature.esm.js";
43
- import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BUe2uACW.esm.js";
42
+ import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
44
43
  //#region src/internal/orchestration/defaultModules.ts
45
44
  /**
46
45
  * Shared default module registry — single source of truth for module key → machine mappings.
@@ -289,6 +288,10 @@ async function resolveModule(input) {
289
288
  * consumers and the UI see the same config.
290
289
  */
291
290
  function applyWorkflowNodeOverlays(moduleKey, config, skipFaceMatch) {
291
+ if (moduleKey === "ID_CAPTURE" || moduleKey === "TUTORIAL_ID") return {
292
+ ...config,
293
+ isSecondId: config.isSecondId === true || config.idRank === "SECOND_ID"
294
+ };
292
295
  if (moduleKey === "SELFIE") return {
293
296
  ...config,
294
297
  skipProcessFace: true
@@ -301,6 +304,14 @@ function applyWorkflowNodeOverlays(moduleKey, config, skipFaceMatch) {
301
304
  }
302
305
  //#endregion
303
306
  //#region src/modules/workflow/workflowStateMachine.ts
307
+ /**
308
+ * Whether the desktop-to-mobile handoff may be injected. It is a pre-node
309
+ * step, so on a return leg the user has already been through it: a desktop
310
+ * return only exists when they chose to continue on desktop.
311
+ */
312
+ function canOfferDeviceHandoff(context) {
313
+ return context.isDesktop && !context.isReturnLeg;
314
+ }
304
315
  function extractErrorInfo(err) {
305
316
  const error = err;
306
317
  return {
@@ -458,7 +469,8 @@ const workflowMachine = setup({
458
469
  isDesktop: input.isDesktop ?? true,
459
470
  isInjectedNode: false,
460
471
  isHomeContinueLoading: false,
461
- hasShownHome: false,
472
+ hasShownHome: input.isReturnLeg ?? false,
473
+ isReturnLeg: input.isReturnLeg ?? false,
462
474
  getFinishStatus: input.getFinishStatus ?? getFinishStatus,
463
475
  getTotalScoreStatus: input.getTotalScoreStatus ?? getTotalScoreStatus
464
476
  }),
@@ -467,7 +479,7 @@ const workflowMachine = setup({
467
479
  loading: { invoke: {
468
480
  id: "loadWorkflow",
469
481
  src: "loadWorkflow",
470
- input: ({ context }) => ({ isDesktop: context.isDesktop }),
482
+ input: ({ context }) => ({ isDesktop: canOfferDeviceHandoff(context) }),
471
483
  onDone: [
472
484
  {
473
485
  target: "home",
@@ -613,7 +625,7 @@ const workflowMachine = setup({
613
625
  workflowDisableSmsOption: context.workflowConfig?.disableSmsOption ?? false,
614
626
  workflowAddContinueToDesktop: context.workflowConfig?.addContinueToDesktop ?? false,
615
627
  workflowQrPhishingResistance: context.workflowConfig?.qrPhishingResistance ?? false,
616
- isDesktop: context.isDesktop
628
+ isDesktop: canOfferDeviceHandoff(context)
617
629
  }),
618
630
  onDone: [
619
631
  {
@@ -683,7 +695,9 @@ function createWorkflowActor(options) {
683
695
  configMappers: options.configMappers,
684
696
  customModuleCallback: options.customModuleCallback,
685
697
  interviewId: options.interviewId,
686
- isDesktop: options.isDesktop
698
+ isDesktop: options.isDesktop,
699
+ isReturnLeg: options.isReturnLeg,
700
+ getFinishStatus: options.getFinishStatus
687
701
  } }).start();
688
702
  }
689
703
  //#endregion
@@ -776,7 +790,8 @@ function mapState(snapshot) {
776
790
  };
777
791
  return {
778
792
  status: "loading",
779
- homeScreen
793
+ homeScreen,
794
+ workflowConfig: context.workflowConfig
780
795
  };
781
796
  }
782
797
  function createApi({ actor, getSnapshot, trackElementClicked }) {
@@ -873,7 +888,9 @@ function createWorkflowManager(options = {}) {
873
888
  configMappers: DEFAULT_MODULE_CONFIG_MAPPERS,
874
889
  customModuleCallback: options.customModuleCallback,
875
890
  interviewId: options.interviewId,
876
- isDesktop: options.isDesktop
891
+ isDesktop: options.isDesktop,
892
+ isReturnLeg: options.isReturnLeg,
893
+ getFinishStatus: options.getFinishStatus
877
894
  }),
878
895
  mapState,
879
896
  createApi,
@@ -1,4 +1,4 @@
1
- import { a as XSTATE_STOP } from "./xstate.esm-BuFLFuzz.esm.js";
1
+ import { a as XSTATE_STOP } from "./xstate.esm-DSajW7CJ.esm.js";
2
2
  const instanceStates = /* #__PURE__ */ new WeakMap();
3
3
  /**
4
4
  * Represents an actor created by `fromCallback`.
@@ -45,20 +45,21 @@ function createManager(options) {
45
45
  return () => subscription.unsubscribe();
46
46
  }
47
47
  let currentScreenName = instrumentation?.getScreenName(getSnapshot());
48
+ let currentStateName = instrumentation?.getStateName?.(getSnapshot());
48
49
  let currentErrorName = instrumentation?.getErrorName(getSnapshot());
49
50
  let currentErrorPayload = instrumentation?.getErrorPayload(getSnapshot());
50
51
  const api = createApi({
51
52
  actor,
52
53
  getSnapshot,
53
54
  trackElementClicked: instrumentation ? (elementName, payload) => {
54
- instrumentation.onElementClicked?.(instrumentation.moduleName, currentScreenName, {
55
+ instrumentation.onElementClicked?.(instrumentation.moduleName, currentStateName ?? currentScreenName, {
55
56
  element: elementName,
56
57
  action: payload?.action,
57
58
  metadata: payload?.metadata
58
59
  });
59
60
  } : void 0,
60
61
  trackCaptureAttemptFinished: instrumentation ? (payload) => {
61
- instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentScreenName, { logs: payload.logs });
62
+ instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentStateName ?? currentScreenName, { logs: payload.logs });
62
63
  } : void 0
63
64
  });
64
65
  instrumentation?.onModuleOpened(instrumentation.moduleName);
@@ -76,7 +77,11 @@ function createManager(options) {
76
77
  const nextScreenName = instrumentation.getScreenName(snapshot);
77
78
  const nextErrorName = instrumentation.getErrorName(snapshot);
78
79
  const nextErrorPayload = instrumentation.getErrorPayload(snapshot);
80
+ const nextStateName = instrumentation.getStateName?.(snapshot);
79
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);
80
85
  if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, currentScreenName, nextErrorPayload);
81
86
  currentErrorName = nextErrorName;
82
87
  currentErrorPayload = nextErrorPayload;
@@ -85,6 +90,7 @@ function createManager(options) {
85
90
  if (currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
86
91
  if (nextScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, nextScreenName);
87
92
  currentScreenName = nextScreenName;
93
+ currentStateName = nextStateName;
88
94
  if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextScreenName, nextErrorPayload);
89
95
  currentErrorName = nextErrorName;
90
96
  currentErrorPayload = nextErrorPayload;
@@ -96,14 +102,22 @@ function createManager(options) {
96
102
  stop() {
97
103
  if (isStopped) return;
98
104
  isStopped = true;
99
- actorSubscription?.unsubscribe();
100
- stopVisibility?.();
101
- if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
102
- currentScreenName = void 0;
103
- currentErrorName = void 0;
104
- currentErrorPayload = void 0;
105
- instrumentation?.onModuleClosed(instrumentation.moduleName);
106
- actor.stop();
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
+ }
107
121
  }
108
122
  }, Object.getOwnPropertyDescriptors(api));
109
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "2.3.2",
3
+ "version": "2.4.0-rc.1",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -60,6 +60,11 @@
60
60
  "types": "./dist/phone.d.ts",
61
61
  "import": "./dist/phone.esm.js"
62
62
  },
63
+ "./phone-number": {
64
+ "source": "./src/modules/phone-number/index.ts",
65
+ "types": "./dist/phone-number.d.ts",
66
+ "import": "./dist/phone-number.esm.js"
67
+ },
63
68
  "./email": {
64
69
  "source": "./src/modules/email/index.ts",
65
70
  "types": "./dist/email.d.ts",
@@ -267,23 +272,26 @@
267
272
  ],
268
273
  "devDependencies": {
269
274
  "@vitest/coverage-v8": "4.1.10",
270
- "@zxing/browser": "0.1.5",
275
+ "@zxing/library": "0.21.3",
271
276
  "tsdown": "^0.22.8",
272
277
  "typescript": "^5.9.3",
273
278
  "vitest": "4.1.10",
274
279
  "@incodetech/config": "1.0.2",
280
+ "@incodetech/form-definitions": "0.0.0",
275
281
  "@incodetech/infra": "1.4.0"
276
282
  },
277
283
  "scripts": {
278
- "build": "tsdown -c tsdown.config.ts",
279
- "build:cdn": "tsdown -c tsdown.config.ts --minify",
284
+ "build": "tsdown -c tsdown.config.ts && pnpm check:dist-types",
285
+ "build:cdn": "tsdown -c tsdown.config.ts --minify && pnpm check:dist-types",
280
286
  "build:dev": "tsdown -c tsdown.config.ts",
287
+ "check:dist-types": "tsgo -p tsconfig.dist-types.json",
281
288
  "test": "vitest run",
282
289
  "coverage": "vitest run --coverage",
283
290
  "lint": "eslint .",
284
291
  "lint:fix": "eslint . --fix",
285
292
  "format": "prettier --write . --ignore-path ../../.prettierignore",
286
293
  "format:check": "prettier --check . --ignore-path ../../.prettierignore",
287
- "typecheck": "tsgo -p tsconfig.json --noEmit"
294
+ "typecheck": "tsgo -p tsconfig.json --noEmit",
295
+ "parity:record": "PARITY_RECORD=1 vitest run __parity__"
288
296
  }
289
297
  }
@@ -1 +0,0 @@
1
- import "./StateMachine-EDpYWy0i.js";
@@ -1,77 +0,0 @@
1
- //#region ../infra/src/crypto/truesightKey.ts
2
- /**
3
- * Legacy TrueSight key helpers. ENG-57951 disconnects the shared-key path;
4
- * ENG-58122 tracks secure encryption and restoration.
5
- */
6
- /** Interim P1 key id — the BE looks up the AES key by this label. */
7
- const TRUESIGHT_KID = "truesight-v1";
8
- /** No distributed shared key while TrueSight is disconnected (ENG-57951). */
9
- function getTruesightKey() {
10
- return null;
11
- }
12
- //#endregion
13
- //#region ../infra/src/providers/browser/BrowserDiagnosticsCryptoProvider.ts
14
- /**
15
- * Browser sealer for TrueSight diagnostics (ENG-48677 plan §1.5): JSON string →
16
- * gzip via native CompressionStream → AES-256-GCM via WebCrypto → contract
17
- * envelope. Designed to be loaded as a LAZY chunk — zero bytes on the host
18
- * page's critical path.
19
- *
20
- * The CryptoKey is imported once (non-extractable) and the raw bytes are zeroed
21
- * immediately after import; `getKeyBytes` must therefore return a fresh copy.
22
- */
23
- var BrowserDiagnosticsCryptoProvider = class {
24
- constructor(getKeyBytes = getTruesightKey, kid = TRUESIGHT_KID) {
25
- this.getKeyBytes = getKeyBytes;
26
- this.kid = kid;
27
- this.keyPromise = null;
28
- }
29
- isSupported() {
30
- return typeof crypto !== "undefined" && typeof crypto.subtle !== "undefined" && typeof crypto.getRandomValues === "function" && typeof CompressionStream !== "undefined";
31
- }
32
- async seal(plaintext) {
33
- const [gz, key] = await Promise.all([gzipUtf8(plaintext), this.importKeyOnce()]);
34
- const iv = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(12));
35
- const additionalData = new TextEncoder().encode(`v1|A256GCM|gzip|${this.kid}`);
36
- const sealed = new Uint8Array(await crypto.subtle.encrypt({
37
- name: "AES-GCM",
38
- iv,
39
- additionalData
40
- }, key, gz));
41
- const tagStart = sealed.length - 16;
42
- return {
43
- version: 1,
44
- alg: "A256GCM",
45
- compression: "gzip",
46
- kid: this.kid,
47
- iv: toBase64Url(iv),
48
- ciphertext: toBase64Url(sealed.subarray(0, tagStart)),
49
- tag: toBase64Url(sealed.subarray(tagStart))
50
- };
51
- }
52
- importKeyOnce() {
53
- this.keyPromise ??= (async () => {
54
- const bytes = this.getKeyBytes();
55
- if (!bytes || bytes.length !== 32) throw new Error("TrueSight diagnostics key unavailable in this build");
56
- const copy = new Uint8Array(bytes);
57
- try {
58
- return await crypto.subtle.importKey("raw", copy, { name: "AES-GCM" }, false, ["encrypt"]);
59
- } finally {
60
- copy.fill(0);
61
- bytes.fill(0);
62
- }
63
- })();
64
- return this.keyPromise;
65
- }
66
- };
67
- async function gzipUtf8(text) {
68
- const stream = new Blob([text]).stream().pipeThrough(new CompressionStream("gzip"));
69
- return new Uint8Array(await new Response(stream).arrayBuffer());
70
- }
71
- function toBase64Url(bytes) {
72
- let binary = "";
73
- for (let i = 0; i < bytes.length; i += 1) binary += String.fromCharCode(bytes[i]);
74
- return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/u, "");
75
- }
76
- //#endregion
77
- export { BrowserDiagnosticsCryptoProvider };
@@ -1,6 +0,0 @@
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
- }