@incodetech/core 2.4.0-rc.4 → 2.4.1-agentic

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/dist/{FaceDetectionProvider-CzQEFzP8.esm.js → FaceDetectionProvider-B83VmClw.esm.js} +29 -64
  2. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  3. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  4. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
  5. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  6. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
  7. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-GTkoJyFY.esm.js} +75 -22
  8. package/dist/{addressSearch-DPjIKJrX.esm.js → addressSearch-41sMcnJk.esm.js} +72 -31
  9. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
  10. package/dist/ae-signature.esm.js +1 -1
  11. package/dist/antifraud.esm.js +2 -2
  12. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-CQ08atTC.esm.js} +2 -2
  13. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BcsUTTIr.esm.js} +1 -1
  14. package/dist/{api-Cz90EHyu.esm.js → api-BO8JA7Pf.esm.js} +6 -5
  15. package/dist/{apiError-B_uY7RO6.esm.js → apiError-CfuIvnUy.esm.js} +1 -1
  16. package/dist/attemptCarry-BjTJ6bMQ.esm.js +45 -0
  17. package/dist/authentication.d.ts +3 -3
  18. package/dist/authentication.esm.js +2 -2
  19. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-C-cOki0Y.d.ts} +1 -1
  20. package/dist/{authenticationManager-CSHZQTlb.esm.js → authenticationManager-DvmklBTE.esm.js} +5 -5
  21. package/dist/{authenticationStateMachine-DrO14KyC.esm.js → authenticationStateMachine-BL2ptOA0.esm.js} +3 -3
  22. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-C5_NNfUN.esm.js} +3 -43
  23. package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
  24. package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
  25. package/dist/camera.esm.js +1 -1
  26. package/dist/certificate-issuance.esm.js +2 -2
  27. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-CM0fuqDC.esm.js} +2 -2
  28. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-kksIUOPD.esm.js} +2 -2
  29. package/dist/cnpj-Co1ottYN.esm.js +77 -0
  30. package/dist/connectivity-HSl0diCx.esm.js +133 -0
  31. package/dist/consent.d.ts +1 -1
  32. package/dist/consent.esm.js +2 -2
  33. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CBwFozhv.esm.js} +4 -3
  34. package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-_q9yJUku.d.ts} +14 -7
  35. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-CpmRAcr2.esm.js} +20 -7
  36. package/dist/cross-document-data-match.esm.js +1 -1
  37. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-64O8t10a.esm.js} +2 -2
  38. package/dist/curp-validation.d.ts +1 -1
  39. package/dist/curp-validation.esm.js +2 -2
  40. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-CLgJQcx0.esm.js} +3 -2
  41. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-CXpFE-Mv.d.ts} +1 -1
  42. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-Bx9YhVkJ.esm.js} +28 -20
  43. package/dist/custom-fields.esm.js +1 -1
  44. package/dist/custom-watchlist.esm.js +2 -2
  45. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-DWt_0YtJ.esm.js} +2 -2
  46. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-D8o-2Nej.esm.js} +2 -2
  47. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-Sbi6DIcK.esm.js} +1 -1
  48. package/dist/{deepsightLoader-DkrG5zbN.esm.js → deepsightLoader-DMxtowCm.esm.js} +6 -28
  49. package/dist/{deepsightService-BrltL1DF.esm.js → deepsightService-twg3bXqY.esm.js} +20 -59
  50. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-kHY2IDJi.esm.js} +177 -40
  51. package/dist/device.esm.js +2 -2
  52. package/dist/document-capture.d.ts +2 -2
  53. package/dist/document-capture.esm.js +2 -2
  54. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-6tnnDkMX.d.ts} +14 -2
  55. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-CMSC_Mhd.esm.js} +26 -19
  56. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BCwD5Rto.esm.js} +43 -35
  57. package/dist/dynamic-forms.d.ts +2 -2
  58. package/dist/dynamic-forms.esm.js +2 -2
  59. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
  60. package/dist/{dynamicFormsManager-D7Xnjm7B.esm.js → dynamicFormsManager-DU6W1e20.esm.js} +2 -2
  61. package/dist/{dynamicFormsStateMachine-Cgk0VPP4.esm.js → dynamicFormsStateMachine-C8Z7k3vo.esm.js} +2 -2
  62. package/dist/ekyb.d.ts +4 -4
  63. package/dist/ekyb.esm.js +3 -3
  64. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-TB6ZG5lX.d.ts} +2 -2
  65. package/dist/{ekybManager-yj_Y36jM.esm.js → ekybManager-TGfqyjuu.esm.js} +2 -2
  66. package/dist/{ekybStateMachine-DIRBMkaD.esm.js → ekybStateMachine-DBgFuEPK.esm.js} +26 -44
  67. package/dist/ekyc.d.ts +3 -3
  68. package/dist/ekyc.esm.js +3 -3
  69. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BSQteIfC.d.ts} +1 -1
  70. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-C2cgG2Pl.esm.js} +2 -2
  71. package/dist/ekycStateMachine-CuNF7z4O.esm.js +7505 -0
  72. package/dist/ekycUtils-BFncpC4F.esm.js +1401 -0
  73. package/dist/electronic-signature.esm.js +1 -1
  74. package/dist/{electronicSignatureManager-Btsa7Prh.esm.js → electronicSignatureManager-C7pqXsRm.esm.js} +4 -4
  75. package/dist/email.esm.js +2 -2
  76. package/dist/{emailManager-ButFktRm.esm.js → emailManager-FH_CP0cT.esm.js} +2 -2
  77. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-Cx-uTaBV.esm.js} +32 -20
  78. package/dist/{events-Du2A4-Qr.esm.js → events-CQteqXfy.esm.js} +2 -2
  79. package/dist/events.esm.js +1 -1
  80. package/dist/extensibility.d.ts +35 -21
  81. package/dist/extensibility.esm.js +34 -34
  82. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
  83. package/dist/face-match.d.ts +1 -1
  84. package/dist/face-match.esm.js +2 -2
  85. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-C-xKdj-d.d.ts} +71 -66
  86. package/dist/{faceCaptureManagerFactory-CdDfnyyb.esm.js → faceCaptureManagerFactory-CBm05KnT.esm.js} +4 -4
  87. package/dist/{faceCaptureSetup-CCucWLdy.esm.js → faceCaptureSetup-BQjCbL51.esm.js} +82 -64
  88. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-B2zp7yP4.esm.js} +2 -2
  89. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
  90. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-ByTMQCUC.esm.js} +40 -27
  91. package/dist/{feature-management-DCD0I_XZ.esm.js → feature-management-DjAG5lsJ.esm.js} +1 -1
  92. package/dist/feature-management.esm.js +1 -1
  93. package/dist/field-comparison.esm.js +1 -1
  94. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-CC0vKmpf.esm.js} +2 -2
  95. package/dist/fiscal-qr.esm.js +1 -1
  96. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-Be-r4oZj.esm.js} +4 -4
  97. package/dist/flow-events.d.ts +1 -1
  98. package/dist/flow.d.ts +10 -10
  99. package/dist/flow.esm.js +8 -11
  100. package/dist/{flowCompletionService-xFODSJEq.esm.js → flowCompletionService-ChMU2v79.esm.js} +2 -2
  101. package/dist/{flowServices-COMEf-WP.esm.js → flowServices-g2tVWsJl.esm.js} +8 -50
  102. package/dist/geolocation.d.ts +1 -1
  103. package/dist/geolocation.esm.js +2 -2
  104. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
  105. package/dist/{geolocationManager-B2C2yfrn.esm.js → geolocationManager-DLbvZwUB.esm.js} +6 -8
  106. package/dist/{geolocationStateMachine-Dbg9jw62.esm.js → geolocationStateMachine-CAJVongM.esm.js} +12 -8
  107. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
  108. package/dist/government-validation.esm.js +2 -2
  109. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CkX9TEkh.esm.js} +2 -2
  110. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-PTPCP26N.esm.js} +1 -1
  111. package/dist/home.d.ts +1 -1
  112. package/dist/home.esm.js +1 -1
  113. package/dist/http.esm.js +1 -1
  114. package/dist/id-ocr.esm.js +2 -2
  115. package/dist/id-selfie-flow.d.ts +1 -1
  116. package/dist/id-selfie-flow.esm.js +9 -9
  117. package/dist/id-verification.esm.js +2 -2
  118. package/dist/id.d.ts +3 -16
  119. package/dist/id.esm.js +3 -3
  120. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-MSQoqScU.esm.js} +3 -3
  121. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-DzTfQ1Am.d.ts} +66 -5
  122. package/dist/{idCaptureManager-DZtgScdd.esm.js → idCaptureManager-zZdTcpG1.esm.js} +63 -17
  123. package/dist/{idCaptureServices-mpibFz4U.esm.js → idCaptureServices-8OHinO0N.esm.js} +9 -9
  124. package/dist/{idCaptureStateMachine-DWJOHeGn.esm.js → idCaptureStateMachine-B3G6XoDG.esm.js} +914 -536
  125. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-B64-fjWg.esm.js} +2 -2
  126. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B1aZnobs.esm.js} +2 -2
  127. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-_Kebv-Ue.esm.js} +2 -2
  128. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DQn6c84z.esm.js} +1 -1
  129. package/dist/identity-reuse.d.ts +1 -1
  130. package/dist/identity-reuse.esm.js +2 -2
  131. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-DDXkNVZi.esm.js} +2 -2
  132. package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +4 -4
  133. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Bcnkbjf8.esm.js} +1 -1
  134. package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
  135. package/dist/{index-CKQ9QBZP.d.ts → index-DMDAk85K.d.ts} +1 -1
  136. package/dist/index.d.ts +1 -1
  137. package/dist/index.esm.js +1 -1
  138. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-CXIBwBeE.esm.js} +1 -1
  139. package/dist/mandatory-consent.d.ts +2 -2
  140. package/dist/mandatory-consent.esm.js +2 -2
  141. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-43W5d_8G.esm.js} +4 -3
  142. package/dist/{mandatoryConsentManager-okPILEru.d.ts → mandatoryConsentManager-xx3mY-xw.d.ts} +13 -6
  143. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CVlgdlnt.esm.js} +20 -7
  144. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → multipartRecordingService-DMBxHKS2.esm.js} +3 -13
  145. package/dist/nationalIds-B91f_RuB.esm.js +99 -0
  146. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-B3OPL8Si.esm.js} +1 -1
  147. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DnBAN_hW.esm.js} +4 -4
  148. package/dist/phone-number.d.ts +7 -1
  149. package/dist/phone-number.esm.js +15 -2
  150. package/dist/phone.d.ts +1 -1
  151. package/dist/phone.esm.js +2 -2
  152. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
  153. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-C6jut_pz.esm.js} +3 -3
  154. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-T1-drWfG.esm.js} +37 -25
  155. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  156. package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
  157. package/dist/processFaceMatch-BWme3kVV.esm.js +21 -0
  158. package/dist/qe-signature.esm.js +1 -1
  159. package/dist/redirect-to-mobile.d.ts +2 -2
  160. package/dist/redirect-to-mobile.esm.js +2 -2
  161. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-BJXC6Kx9.esm.js} +4 -3
  162. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
  163. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-BBMAc2Gb.esm.js} +27 -6
  164. package/dist/{runChildModule-C09a9ACV.esm.js → runChildModule-DPHTqSdF.esm.js} +3 -3
  165. package/dist/{sdkVersion-xE2xE2_9.esm.js → sdkVersion-C3_P-Qbq.esm.js} +1 -1
  166. package/dist/selfie.d.ts +4 -4
  167. package/dist/selfie.esm.js +10 -10
  168. package/dist/{selfieErrorUtils-CoXIxVCy.esm.js → selfieErrorUtils-BL0BLMnp.esm.js} +1 -1
  169. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-BMmpUii2.d.ts} +1 -1
  170. package/dist/{selfieManager-RcVUu1KJ.esm.js → selfieManager-Cbliomv7.esm.js} +5 -5
  171. package/dist/{selfieStateMachine-nWbIRIBD.esm.js → selfieStateMachine-B5m_Kn0O.esm.js} +3 -3
  172. package/dist/{session-Cr4IVgYu.esm.js → session-DAaAewMX.esm.js} +77 -9
  173. package/dist/session.d.ts +96 -10
  174. package/dist/session.esm.js +7 -6
  175. package/dist/{sessionInitializer-c3CChZts.esm.js → sessionInitializer-CWFT4dfw.esm.js} +402 -202
  176. package/dist/{setup-BvKrAlOo.esm.js → setup-CDAKwTr7.esm.js} +32 -19
  177. package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
  178. package/dist/signature.esm.js +2 -2
  179. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BeEVCcsC.esm.js} +2 -2
  180. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-_1c1vSid.esm.js} +1 -1
  181. package/dist/{stats-BEvexnKC.esm.js → stats-BpMz-hTP.esm.js} +1 -1
  182. package/dist/stats.esm.js +1 -1
  183. package/dist/{tri-xzRLIIMN.esm.js → tri-BajQnjbf.esm.js} +142 -8
  184. package/dist/tri.d.ts +1 -1
  185. package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
  186. package/dist/tri.esm.js +1 -1
  187. package/dist/{trueSightService-BAvhAU7T.esm.js → trueSightService-BujtUIW6.esm.js} +19 -10
  188. package/dist/trust-graph.esm.js +1 -1
  189. package/dist/{types-yPH8lAH-.d.ts → types--3HDl2SF.d.ts} +2 -2
  190. package/dist/types-B2FK_wYb.d.ts +249 -0
  191. package/dist/types-B9C8W01q.d.ts +34 -0
  192. package/dist/{types-0L-eFDmr.d.ts → types-C397LhmN.d.ts} +1 -1
  193. package/dist/types-D9r3zRfY.d.ts +6 -0
  194. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  195. package/dist/{types-B6HsSzpk.d.ts → types-DuD8TRJU.d.ts} +3 -2
  196. package/dist/{types-Ckir_BEs.d.ts → types-PTZHRhGX.d.ts} +1 -1
  197. package/dist/{types-DUnFZ08M.d.ts → types-ZTZelfbM.d.ts} +2 -2
  198. package/dist/{types-CK8Jbjkp.d.ts → types-e8fCsvvk.d.ts} +1 -1
  199. package/dist/{types-BAxn7MpY.d.ts → types-xEEWCx1j.d.ts} +123 -48
  200. package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
  201. package/dist/video-selfie.d.ts +8 -8
  202. package/dist/video-selfie.esm.js +95 -22
  203. package/dist/{videoSelfieCameraWarmer-LeE2vbAW.esm.js → videoSelfieCameraWarmer-DjkPpoj_.esm.js} +18 -21
  204. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-RfSmlFFW.d.ts} +9 -4
  205. package/dist/{warmup-BElYWRh7.esm.js → warmup-BkfxQZsC.esm.js} +175 -11
  206. package/dist/wasm.d.ts +2 -2
  207. package/dist/wasm.esm.js +3 -3
  208. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BhU5H2oR.esm.js} +1 -1
  209. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
  210. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-DTj9auyA.esm.js} +43 -17
  211. package/dist/watchlist-for-business.d.ts +2 -1
  212. package/dist/watchlist-for-business.esm.js +2 -2
  213. package/dist/watchlist.esm.js +2 -2
  214. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-CVay6-9A.esm.js} +37 -7
  215. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
  216. package/dist/watchlistForBusinessStateMachine-DA6K5na4.esm.js +166 -0
  217. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-B8gQ_rw3.esm.js} +2 -2
  218. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-CSi_ZhtT.esm.js} +1 -1
  219. package/dist/workflow.d.ts +5 -2
  220. package/dist/workflow.esm.js +57 -47
  221. package/package.json +3 -2
  222. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  223. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  224. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  225. package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
  226. package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
  227. package/dist/types-BvLo3U4u.d.ts +0 -134
  228. package/dist/types-zOgZqMni.d.ts +0 -6
  229. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  230. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as idOcrStateMachine } from "./idOcrStateMachine-DyENX6Ki.esm.js";
3
+ import { t as idOcrStateMachine } from "./idOcrStateMachine-B1aZnobs.esm.js";
4
4
  //#region src/modules/id-ocr/idOcrActor.ts
5
5
  function createIdOcrActor(options) {
6
6
  return createActor(idOcrStateMachine, { input: { config: options.config } }).start();
@@ -1,5 +1,5 @@
1
- import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
2
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
1
+ import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
+ import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
5
  import { n as DateFormattingProvider, t as validateCPF } from "./cpf-uAZTPUBy.esm.js";
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as idVerificationMachine } from "./idVerificationStateMachine-CL1kUdBe.esm.js";
3
+ import { t as idVerificationMachine } from "./idVerificationStateMachine-DQn6c84z.esm.js";
4
4
  //#region src/modules/id-verification/idVerificationActor.ts
5
5
  function createIdVerificationActor(options) {
6
6
  return createActor(idVerificationMachine, { input: { config: options.config } }).start();
@@ -1,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
2
2
  import { t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
4
  //#region src/modules/id-verification/idVerificationServices.ts
@@ -1,2 +1,2 @@
1
- import { c as identityReuseMachine, d as IdentityReuseConfig, f as ReusableDocument, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as SubmitResponse, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-B1birg5X.js";
1
+ import { c as identityReuseMachine, d as IdentityReuseConfig, f as ReusableDocument, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as SubmitResponse, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-ooAbp6Kc.js";
2
2
  export { type FetchCompanyNameResponse, type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
@@ -1,3 +1,3 @@
1
- import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-DfV81wQC.esm.js";
2
- import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-CD1ucp1d.esm.js";
1
+ import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-Bcnkbjf8.esm.js";
2
+ import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-DDXkNVZi.esm.js";
3
3
  export { SCAN_NEW_DOCUMENT, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { n as identityReuseMachine } from "./identityReuseStateMachine-DfV81wQC.esm.js";
3
+ import { n as identityReuseMachine } from "./identityReuseStateMachine-Bcnkbjf8.esm.js";
4
4
  //#region src/modules/identity-reuse/identityReuseActor.ts
5
5
  /**
6
6
  * Creates and starts an IdentityReuse actor.
@@ -120,6 +120,10 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
120
120
  type: "setError";
121
121
  params: NonReducibleUnknown;
122
122
  };
123
+ clearError: {
124
+ type: "clearError";
125
+ params: NonReducibleUnknown;
126
+ };
123
127
  setSelectedDocument: {
124
128
  type: "setSelectedDocument";
125
129
  params: NonReducibleUnknown;
@@ -128,10 +132,6 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
128
132
  type: "setCompanyName";
129
133
  params: NonReducibleUnknown;
130
134
  };
131
- clearError: {
132
- type: "clearError";
133
- params: NonReducibleUnknown;
134
- };
135
135
  }>, Values<{
136
136
  hasDocuments: {
137
137
  type: "hasDocuments";
@@ -1,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
2
2
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
4
  //#region src/modules/identity-reuse/identityReuseServices.ts
@@ -1,5 +1,5 @@
1
- //#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.5.1/node_modules/@incodetech/tri-sdk/dist/index.d.ts
2
- type CollectorKey = 'fingerprint' | 'pointer' | 'pointermove' | 'focus' | 'input' | 'keystroke' | 'clipboard' | 'form' | 'change' | 'selection' | 'tab' | 'visibility' | 'navigation' | 'viewportresize' | 'viewport' | 'scroll' | 'sensors' | 'network-request' | 'networkconnection' | 'screen';
1
+ //#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.6.0-dev-20261102213217-fdf43aaae774e4a47feac9e29a928f023032fafd/node_modules/@incodetech/tri-sdk/dist/index.d.ts
2
+ type CollectorKey = 'pointer' | 'pointermove' | 'focus' | 'input' | 'keystroke' | 'clipboard' | 'form' | 'change' | 'selection' | 'tab' | 'visibility' | 'navigation' | 'viewportresize' | 'viewport' | 'scroll' | 'sensors' | 'network-request' | 'networkconnection' | 'screen' | 'wheel' | 'hover' | 'shinsei' | 'fpsignals';
3
3
  type CollectorEventMap = {
4
4
  /**
5
5
  * Configurable unit keys. `'pointer'` represents the paired pointerdown/pointerup
@@ -7,7 +7,7 @@ type CollectorEventMap = {
7
7
  */
8
8
  pointer: 'pointer' | 'click' | 'dblclick' | 'contextmenu';
9
9
  clipboard: 'paste' | 'cut' | 'copy';
10
- form: 'submit' | 'invalid';
10
+ form: 'submit' | 'invalid' | 'snapshot';
11
11
  tab: 'state' | 'count';
12
12
  viewport: 'orientationchange' | 'devicepixelratiochange';
13
13
  /** All-or-nothing: single events or inseparable pairs — no sub-event config. */
@@ -18,14 +18,17 @@ type CollectorEventMap = {
18
18
  selection: never;
19
19
  visibility: never;
20
20
  pointermove: never;
21
- fingerprint: never;
22
21
  navigation: never;
23
22
  viewportresize: never;
24
23
  scroll: never;
25
24
  sensors: 'motion' | 'orientation' | 'light';
25
+ fpsignals: 'device' | 'pid' | 'behaviour';
26
26
  'network-request': never;
27
27
  networkconnection: never;
28
28
  screen: never;
29
+ wheel: never;
30
+ hover: never;
31
+ shinsei: never;
29
32
  };
30
33
  type Layer = 'session' | 'behavioral' | 'device-fingerprinting';
31
34
  /**
@@ -65,6 +68,14 @@ type CaptureElementLevel = 'all' | 'redact' | 'off';
65
68
  * - `'off'` — text content field is always `null`.
66
69
  */
67
70
  type CaptureContentLevel = 'on' | 'off';
71
+ /**
72
+ * The SDK that embeds TRI, such as `{ platform: 'sdk2', version: '2.4.1' }`.
73
+ * Both fields must be non-empty strings.
74
+ */
75
+ type IncodeTRIHost = {
76
+ platform: string;
77
+ version: string;
78
+ };
68
79
  /**
69
80
  * Public SDK configuration. Both `layers` and `collectors` are optional; pass at
70
81
  * most one. When neither is provided, every collector defaults to enabled (same
@@ -100,6 +111,12 @@ type TRIConfigBase = {
100
111
  * on top of the default or to replace it entirely.
101
112
  */
102
113
  sanitizeUrl?: IncodeSanitizeUrlHook;
114
+ /**
115
+ * The SDK that embeds TRI. The `fpsignals` collector reports it to the
116
+ * fpSignals module, so every result says where it was collected. Defaults
117
+ * to TRI itself: `{ platform: 'tri-web', version: <TRI version> }`.
118
+ */
119
+ host?: IncodeTRIHost;
103
120
  /**
104
121
  * When `true`, the SDK emits diagnostic messages via `logger.warn`,
105
122
  * `logger.error`, and `logger.info`. Defaults to `false`. Has no effect on
@@ -191,9 +208,37 @@ type TransactionalRiskIntelligenceSessionOptions = {
191
208
  //#endregion
192
209
  //#region src/integrations/tri/types.d.ts
193
210
  /**
194
- * Setup-time TRI configuration supplied as `SetupOptions.tri`.
211
+ * `Omit` for each member of a union: a plain `Omit` would merge
212
+ * `IncodeTRIConfig`'s `layers` / `collectors` variants and lose the rule that
213
+ * only one of them may be passed.
214
+ */
215
+ type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
216
+ /**
217
+ * Collectors TRI has removed, kept in `collectors` so existing configs still
218
+ * compile. TRI only reads the collector keys it knows, so these are ignored.
219
+ */
220
+ type RemovedCollectors = {
221
+ /**
222
+ * @deprecated TRI no longer has a FingerprintJS Pro collector. This key is
223
+ * ignored; remove it.
224
+ */
225
+ fingerprint?: {
226
+ enabled?: boolean;
227
+ };
228
+ };
229
+ type WithRemovedCollectors<T> = T extends {
230
+ collectors: infer C;
231
+ } ? Omit<T, 'collectors'> & {
232
+ collectors: C & RemovedCollectors;
233
+ } : T;
234
+ /**
235
+ * Setup-time TRI configuration supplied as `SetupOptions.tri` and to
236
+ * `setupTRI()`.
195
237
  *
196
- * Alias for `TransactionalRiskIntelligenceConfig`. `autostart` is defined on
238
+ * `TransactionalRiskIntelligenceConfig` without `host`: the SDK always reports
239
+ * itself as TRI's host (`{ platform: 'sdk2', version }`), so it is not an
240
+ * option. `collectors.fingerprint` is still accepted but deprecated and
241
+ * ignored. `autostart` is defined on
197
242
  * the base config (`IncodeTRIConfig.autostart`) — when `true` (the default),
198
243
  * `setupTRI()` also starts collection automatically. Pass `autostart: false`
199
244
  * to defer collection to an explicit `startTRI()` call (e.g. after a consent
@@ -202,7 +247,7 @@ type TransactionalRiskIntelligenceSessionOptions = {
202
247
  * `token` and `apiURL` are both required. TRI will not start unless both are
203
248
  * present — omitting either is the implicit opt-out.
204
249
  */
205
- type TransactionalRiskIntelligenceSetupConfig = TransactionalRiskIntelligenceConfig;
250
+ type TransactionalRiskIntelligenceSetupConfig = WithRemovedCollectors<DistributiveOmit<TransactionalRiskIntelligenceConfig, 'host'>>;
206
251
  //#endregion
207
252
  //#region src/integrations/tri/tri.d.ts
208
253
  /**
@@ -232,10 +277,12 @@ declare function createTRISession(apiKey: string, options?: TransactionalRiskInt
232
277
  * default), also calls `start()` internally and returns `'started'` on
233
278
  * success. Pass `autostart: false` to receive `'ready'` and start explicitly.
234
279
  *
280
+ * TRI reports the SDK as its host: `{ platform: 'sdk2', version }`.
281
+ *
235
282
  * @param config - Resolved TRI config (`token` and `apiURL` required).
236
283
  * @returns The resulting {@link TransactionalRiskIntelligenceState}.
237
284
  */
238
- declare function setupTRI(config: TransactionalRiskIntelligenceConfig): Promise<TransactionalRiskIntelligenceState>;
285
+ declare function setupTRI(config: TransactionalRiskIntelligenceSetupConfig): Promise<TransactionalRiskIntelligenceState>;
239
286
  /**
240
287
  * Begins behavioral data collection. Requires a prior successful `setupTRI()`
241
288
  * call with `autostart: false`. Returns `'init-failed'` without starting if
@@ -1,5 +1,5 @@
1
1
  import "./Manager-C9T5amUN.js";
2
- import { n as Flow } from "./types-B6HsSzpk.js";
2
+ import { n as Flow } from "./types-DuD8TRJU.js";
3
3
  import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
4
4
  //#region src/internal/flow-events/flowEvents.d.ts
5
5
  type FlowStartedEvent = {
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-YPKTUCY5.js";
1
+ import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-D9qt8YVU.js";
2
2
  export { type SetupOptions, isConfigured, reset, setup };
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as reset, r as isConfigured, s as setup } from "./setup-BvKrAlOo.esm.js";
1
+ import { i as reset, r as isConfigured, s as setup } from "./setup-CDAKwTr7.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -1,4 +1,4 @@
1
- import { y as addEvent } from "./events-Du2A4-Qr.esm.js";
1
+ import { y as addEvent } from "./events-CQteqXfy.esm.js";
2
2
  //#region src/internal/captureOnly/invokeOnCaptureCallback.ts
3
3
  /**
4
4
  * Invokes an integrator-provided `onCapture` callback with the assembled
@@ -1,3 +1,3 @@
1
- import { r as MandatoryConsentConfig } from "./types-Ckir_BEs.js";
2
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-okPILEru.js";
1
+ import { r as MandatoryConsentConfig } from "./types-PTZHRhGX.js";
2
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-xx3mY-xw.js";
3
3
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -1,3 +1,3 @@
1
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-pXWqAHo_.esm.js";
2
- import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-Cwqx1nK7.esm.js";
1
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CVlgdlnt.esm.js";
2
+ import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-43W5d_8G.esm.js";
3
3
  export { createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-pXWqAHo_.esm.js";
3
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CVlgdlnt.esm.js";
4
4
  //#region src/modules/mandatory-consent/mandatoryConsentActor.ts
5
5
  function createMandatoryConsentActor(options) {
6
6
  return createActor(mandatoryConsentMachine, { input: { config: options.config } }).start();
@@ -32,7 +32,8 @@ function mapState(snapshot) {
32
32
  if (typedSnapshot.matches("closed")) return { status: "closed" };
33
33
  if (typedSnapshot.matches("error")) return {
34
34
  status: "error",
35
- error: context.error ?? "Unknown error"
35
+ error: context.error ?? "Unknown error",
36
+ moduleErrorCode: context.moduleErrorCode
36
37
  };
37
38
  return { status: "idle" };
38
39
  }
@@ -1,13 +1,14 @@
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, 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
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
- import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-Ckir_BEs.js";
4
+ import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-PTZHRhGX.js";
5
5
  //#region src/modules/mandatory-consent/mandatoryConsentStateMachine.d.ts
6
6
  type MandatoryConsentContext = {
7
7
  config: MandatoryConsentConfig;
8
8
  consent: MandatoryConsent | undefined;
9
9
  isSigned: boolean;
10
10
  error: string | undefined;
11
+ moduleErrorCode: string | undefined;
11
12
  };
12
13
  type MandatoryConsentInput = {
13
14
  config: MandatoryConsentConfig;
@@ -56,18 +57,22 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
56
57
  type: "setError";
57
58
  params: NonReducibleUnknown;
58
59
  };
59
- clearError: {
60
- type: "clearError";
60
+ setLoadError: {
61
+ type: "setLoadError";
61
62
  params: NonReducibleUnknown;
62
63
  };
63
- toggleSigned: {
64
- type: "toggleSigned";
64
+ clearError: {
65
+ type: "clearError";
65
66
  params: NonReducibleUnknown;
66
67
  };
67
68
  resetContext: {
68
69
  type: "resetContext";
69
70
  params: NonReducibleUnknown;
70
71
  };
72
+ toggleSigned: {
73
+ type: "toggleSigned";
74
+ params: NonReducibleUnknown;
75
+ };
71
76
  }>, {
72
77
  type: "canSubmit";
73
78
  params: unknown;
@@ -171,6 +176,7 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
171
176
  consent: undefined;
172
177
  isSigned: false;
173
178
  error: undefined;
179
+ moduleErrorCode: undefined;
174
180
  };
175
181
  readonly states: {
176
182
  readonly idle: {
@@ -234,7 +240,7 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
234
240
  };
235
241
  readonly onError: {
236
242
  readonly target: "error";
237
- readonly actions: "setError";
243
+ readonly actions: "setLoadError";
238
244
  };
239
245
  };
240
246
  };
@@ -375,6 +381,7 @@ type MandatoryConsentClosedState = {
375
381
  type MandatoryConsentErrorState = {
376
382
  status: 'error';
377
383
  error: string;
384
+ moduleErrorCode?: string;
378
385
  };
379
386
  type MandatoryConsentState = MandatoryConsentIdleState | MandatoryConsentLoadingState | MandatoryConsentDisplayState | MandatoryConsentSubmittingState | MandatoryConsentFinishedState | MandatoryConsentClosedState | MandatoryConsentErrorState;
380
387
  declare function createMandatoryConsentManager(options: CreateMandatoryConsentActorOptions): Manager<MandatoryConsentState> & {
@@ -1,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
2
2
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
4
  //#region src/modules/mandatory-consent/mandatoryConsentServices.ts
@@ -34,21 +34,33 @@ const mandatoryConsentMachine = setup({
34
34
  }] }, signal))
35
35
  },
36
36
  actions: {
37
+ setLoadError: assign(({ event }) => ({
38
+ error: String(event.error),
39
+ moduleErrorCode: "REGULATORY_CONSENT_LOAD_FAILED"
40
+ })),
37
41
  setConsent: assign(({ event }) => {
38
42
  return {
39
43
  consent: event.output.consents[0],
40
44
  isSigned: false,
41
- error: void 0
45
+ error: void 0,
46
+ moduleErrorCode: void 0
42
47
  };
43
48
  }),
44
49
  toggleSigned: assign(({ context }) => ({ isSigned: !context.isSigned })),
45
- setError: assign(({ event }) => ({ error: String(event.error) })),
46
- clearError: assign({ error: () => void 0 }),
50
+ setError: assign(({ event }) => ({
51
+ error: String(event.error),
52
+ moduleErrorCode: void 0
53
+ })),
54
+ clearError: assign({
55
+ error: () => void 0,
56
+ moduleErrorCode: () => void 0
57
+ }),
47
58
  resetContext: assign(({ context }) => ({
48
59
  config: context.config,
49
60
  consent: void 0,
50
61
  isSigned: false,
51
- error: void 0
62
+ error: void 0,
63
+ moduleErrorCode: void 0
52
64
  }))
53
65
  },
54
66
  guards: { canSubmit: ({ context }) => Boolean(context.consent?.id) && context.isSigned }
@@ -59,7 +71,8 @@ const mandatoryConsentMachine = setup({
59
71
  config: input.config,
60
72
  consent: void 0,
61
73
  isSigned: false,
62
- error: void 0
74
+ error: void 0,
75
+ moduleErrorCode: void 0
63
76
  }),
64
77
  states: {
65
78
  idle: { on: { LOAD: {
@@ -76,7 +89,7 @@ const mandatoryConsentMachine = setup({
76
89
  },
77
90
  onError: {
78
91
  target: "error",
79
- actions: "setError"
92
+ actions: "setLoadError"
80
93
  }
81
94
  } },
82
95
  display: { on: {
@@ -1,6 +1,7 @@
1
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
2
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
- import { a as isIOS } from "./platform-DkcRc9JV.esm.js";
3
+ import { a as isIOS } from "./platform-aPh7gTWh.esm.js";
4
+ import { o as BrowserNetworkStatusProvider } from "./connectivity-HSl0diCx.esm.js";
4
5
  //#region ../infra/src/media/StreamCanvasProcessingSession.ts
5
6
  var StreamCanvasProcessingSession = class {
6
7
  /**
@@ -1353,17 +1354,6 @@ var WorkerEncoderRecordingProvider = class {
1353
1354
  }
1354
1355
  };
1355
1356
  //#endregion
1356
- //#region ../infra/src/providers/browser/BrowserNetworkStatusProvider.ts
1357
- var BrowserNetworkStatusProvider = class {
1358
- onOnline(listener) {
1359
- if (typeof window === "undefined" || typeof window.addEventListener !== "function") return () => {};
1360
- window.addEventListener("online", listener);
1361
- return () => {
1362
- window.removeEventListener("online", listener);
1363
- };
1364
- }
1365
- };
1366
- //#endregion
1367
1357
  //#region src/internal/recordings/videoSelfieUploadService.ts
1368
1358
  /**
1369
1359
  * Opens a scoped multipart video upload session. Idempotent server-side: if
@@ -0,0 +1,99 @@
1
+ //#region src/shared/validators/nationalIds.ts
2
+ /**
3
+ * The national ID rules from `vocabulary.json`: `rut`, `esDni`,
4
+ * `fiPersonalIdentityCode`, `inDrivingLicenseNumber` and `curp`. Each accepts
5
+ * the usual punctuation and either letter case.
6
+ */
7
+ /**
8
+ * Chilean RUT/RUN: a 7- or 8-digit body and a check character, 0-9 or K,
9
+ * computed modulo 11. Dots, a hyphen and spaces are ignored
10
+ * (`12.345.678-5`, `12345678-5`, `123456785`).
11
+ */
12
+ function isValidRut(value) {
13
+ const rut = value.replace(/[.\s-]/g, "").toUpperCase();
14
+ const match = /^([0-9]{7,8})([0-9K])$/.exec(rut);
15
+ if (!match) return false;
16
+ const [, body, check] = match;
17
+ let sum = 0;
18
+ let factor = 2;
19
+ for (let i = body.length - 1; i >= 0; i--) {
20
+ sum += Number(body[i]) * factor;
21
+ factor = factor === 7 ? 2 : factor + 1;
22
+ }
23
+ const rest = 11 - sum % 11;
24
+ return check === (rest === 11 ? "0" : rest === 10 ? "K" : String(rest));
25
+ }
26
+ const DNI_LETTERS = "TRWAGMYFPDXBNJZSQVHLCKE";
27
+ /**
28
+ * Spanish DNI: 8 digits and the check letter for their value modulo 23
29
+ * (`12345678Z`). A space or hyphen before the letter is ignored. NIEs, the
30
+ * foreigners' IDs, are not DNIs and fail.
31
+ */
32
+ function isValidEsDni(value) {
33
+ const dni = value.replace(/[\s-]/g, "").toUpperCase();
34
+ const match = /^([0-9]{8})([A-Z])$/.exec(dni);
35
+ if (!match) return false;
36
+ const [, digits, letter] = match;
37
+ return DNI_LETTERS[Number(digits) % 23] === letter;
38
+ }
39
+ const FI_CHECK_CHARACTERS = "0123456789ABCDEFHJKLMNPRSTUVWXY";
40
+ /** The first year of each century sign; the 2023 reform added Y-U and B-F. */
41
+ const FI_CENTURY = {
42
+ "+": 1800,
43
+ "-": 1900,
44
+ Y: 1900,
45
+ X: 1900,
46
+ W: 1900,
47
+ V: 1900,
48
+ U: 1900,
49
+ A: 2e3,
50
+ B: 2e3,
51
+ C: 2e3,
52
+ D: 2e3,
53
+ E: 2e3,
54
+ F: 2e3
55
+ };
56
+ const isLeapYear = (year) => year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
57
+ const daysInMonth = (year, month) => month === 2 ? isLeapYear(year) ? 29 : 28 : [
58
+ 4,
59
+ 6,
60
+ 9,
61
+ 11
62
+ ].includes(month) ? 30 : 31;
63
+ /**
64
+ * Finnish personal identity code (henkilötunnus): `DDMMYY`, a century sign,
65
+ * a 3-digit individual number and a check character for the 9 digits modulo
66
+ * 31 (`131052-308T`). The date must exist.
67
+ */
68
+ function isValidFiPersonalIdentityCode(value) {
69
+ const match = /^([0-9]{2})([0-9]{2})([0-9]{2})([-+A-FU-Y])([0-9]{3})([0-9A-Y])$/.exec(value.trim().toUpperCase());
70
+ if (!match) return false;
71
+ const [, dd, mm, yy, sign, individual, check] = match;
72
+ const year = FI_CENTURY[sign] + Number(yy);
73
+ const month = Number(mm);
74
+ const day = Number(dd);
75
+ if (month < 1 || month > 12 || day < 1 || day > daysInMonth(year, month)) return false;
76
+ return FI_CHECK_CHARACTERS[Number(`${dd}${mm}${yy}${individual}`) % 31] === check;
77
+ }
78
+ const IN_DRIVING_LICENSE_REGEX = /^[A-Z]{2}[-\s]?[0-9]{2}(?:[0-9]{2})?[-\s]?(?:19|20)[0-9]{2}[-\s]?[0-9]{7}$/i;
79
+ /**
80
+ * Indian driving licence number format, `SS-RR[RR]-YYYY-NNNNNNN`, with or
81
+ * without hyphens (`MH-12-2011-0012345`, `MH1220110012345`). Format only:
82
+ * the number has no check digit.
83
+ */
84
+ function isValidInDrivingLicenseNumber(value) {
85
+ return IN_DRIVING_LICENSE_REGEX.test(value.trim());
86
+ }
87
+ const CURP_PATTERN = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/;
88
+ /**
89
+ * Mexican CURP layout: 4 letters (the second a vowel or X), a YYMMDD birth
90
+ * date, H, M or X for sex, a state code (NE for born abroad), 3 consonants, a
91
+ * letter or digit, and a final digit. Format only: the check digit isn't
92
+ * computed, as in SDK1 (see "Gaps" in the eKYC drafts README for how to add
93
+ * it). The CURP module checks the same layout.
94
+ */
95
+ function isValidCurp(curp) {
96
+ return typeof curp === "string" && curp.length === 18 && CURP_PATTERN.test(curp.toUpperCase());
97
+ }
98
+ //#endregion
99
+ export { isValidRut as a, isValidInDrivingLicenseNumber as i, isValidEsDni as n, isValidFiPersonalIdentityCode as r, isValidCurp as t };
@@ -1,4 +1,4 @@
1
- import { s as isWasmMotionPrimedForModule } from "./permissionServices-Ca-tSNhT.esm.js";
1
+ import { s as isWasmMotionPrimedForModule } from "./permissionServices-DnBAN_hW.esm.js";
2
2
  //#region src/internal/permissions/permissionGuards.ts
3
3
  function resolveStoredPermissionResult(fromEvent, fromContext) {
4
4
  if (fromEvent === "granted" || fromEvent === "denied" || fromEvent === "prompt" || fromEvent === "refresh") return fromEvent;
@@ -1,7 +1,7 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-DtJuBdt-.esm.js";
2
- import { n as isAndroidWebView } from "./platform-DkcRc9JV.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-GTkoJyFY.esm.js";
2
+ import { n as isAndroidWebView } from "./platform-aPh7gTWh.esm.js";
3
3
  import { t as MotionSensorProvider } from "./MotionSensorProvider-DYxh8TjR.esm.js";
4
- import { c as isCameraGrantedInDocument, i as requestCameraAccess, o as stopCameraStream, s as clearCameraGrantedInDocument } from "./camera-sIa9ceW2.esm.js";
4
+ import { a as stopCameraStream, c as isCameraGrantedInDocument, o as clearCameraGrantedInDocument, r as requestCameraAccess } from "./camera-E_Kcre4O.esm.js";
5
5
  //#region ../infra/src/media/permissions.ts
6
6
  async function queryPermission(name) {
7
7
  try {
@@ -170,4 +170,4 @@ async function invokeRequestPermissionActor(input) {
170
170
  return requestPermission({ requestMotion: true });
171
171
  }
172
172
  //#endregion
173
- export { requestPermission as a, resetWasmMotionPrimedForModule as c, requestMotionPermission as i, queryCameraPermission as l, invokeRequestPermissionActor as n, requiresMotionPermissionUserGesture as o, primeMotionFromUserGestureIfNeeded as r, isWasmMotionPrimedForModule as s, checkPermission as t };
173
+ export { requestPermission as a, resetWasmMotionPrimedForModule as c, requestMotionPermission as i, queryCameraPermission as l, invokeRequestPermissionActor as n, requiresMotionPermissionUserGesture as o, primeMotionFromUserGestureIfNeeded as r, isWasmMotionPrimedForModule as s, checkPermission as t, queryPermission as u };
@@ -8,6 +8,12 @@ type CountryCode = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO'
8
8
  declare function getCallingCode(country: CountryCode): string;
9
9
  /** Formats national digits while the user types them, without the calling code. */
10
10
  declare function formatPhoneAsYouType(nationalDigits: string, country: CountryCode): string;
11
+ /**
12
+ * Returns the national significant number in digits typed after the calling
13
+ * code: without a trunk prefix the rules drop, such as `0612345678` in `NL` →
14
+ * `612345678`. Counts the digits the way phone validation does.
15
+ */
16
+ declare function getNationalSignificantNumber(nationalDigits: string, country: CountryCode): string;
11
17
  /** Returns an example mobile number in national format, without a trunk prefix. */
12
18
  declare function formatExamplePhoneNumber(country: CountryCode): string;
13
19
  /**
@@ -21,4 +27,4 @@ declare function parsePhoneNumber(phone: string): {
21
27
  /** Checks a full international number against the rules of `country`. */
22
28
  declare function isValidPhoneNumber(phone: string, country: CountryCode): boolean;
23
29
  //#endregion
24
- export { type CountryCode, formatExamplePhoneNumber, formatPhoneAsYouType, getCallingCode, isValidPhoneNumber, parsePhoneNumber };
30
+ export { type CountryCode, formatExamplePhoneNumber, formatPhoneAsYouType, getCallingCode, getNationalSignificantNumber, isValidPhoneNumber, parsePhoneNumber };
@@ -1,4 +1,4 @@
1
- import { C as metadata_min_json_default, S as withMetadataArgument, _ as VALID_PUNCTUATION, a as PhoneNumber, b as getCountryCallingCode$1, c as applyInternationalSeparatorStyle, d as getCountryByCallingCode, f as getCountryByNationalNumber, g as VALID_DIGITS, h as PLUS_CHARS, i as parseDigits, l as extractCountryCallingCode, m as stripIddPrefix, o as FIRST_GROUP_PATTERN, p as extractNationalNumberFromPossiblyIncompleteNumber, r as parsePhoneNumber$1, s as formatNationalNumberUsingFormat, t as PhoneValidationProvider, u as extractCountryCallingCodeFromInternationalNumberWithoutPlusSign, v as checkNumberLength, x as isObject, y as Metadata } from "./PhoneValidationProvider-SZiOS0jB.esm.js";
1
+ import { C as metadata_min_json_default, S as withMetadataArgument, _ as VALID_PUNCTUATION, a as PhoneNumber, b as getCountryCallingCode$1, c as applyInternationalSeparatorStyle, d as getCountryByCallingCode, f as getCountryByNationalNumber, g as VALID_DIGITS, h as PLUS_CHARS, i as parseDigits, l as extractCountryCallingCode, m as stripIddPrefix, o as FIRST_GROUP_PATTERN, p as extractNationalNumberFromPossiblyIncompleteNumber, r as parsePhoneNumber$1, s as formatNationalNumberUsingFormat, t as PhoneValidationProvider, u as extractCountryCallingCodeFromInternationalNumberWithoutPlusSign, v as checkNumberLength, x as isObject, y as Metadata } from "./PhoneValidationProvider-Co4zk2en.esm.js";
2
2
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/AsYouTypeState.js
3
3
  function _typeof$5(o) {
4
4
  "@babel/helpers - typeof";
@@ -1877,6 +1877,11 @@ var PhoneFormattingProvider = class {
1877
1877
  const callingCode = this.getCallingCode(country);
1878
1878
  return new AsYouType(country).input(`${callingCode}${nationalDigits}`).replace(callingCode, "").trimStart();
1879
1879
  }
1880
+ nationalSignificantNumber(nationalDigits, country) {
1881
+ const asYouType = new AsYouType(country);
1882
+ asYouType.input(`${this.getCallingCode(country)}${nationalDigits}`);
1883
+ return asYouType.getNumber()?.nationalNumber ?? "";
1884
+ }
1880
1885
  formatExampleNumber(country) {
1881
1886
  const example = getExampleNumber(country, examples_mobile_json_default);
1882
1887
  if (!example) return "";
@@ -1903,6 +1908,14 @@ function getCallingCode(country) {
1903
1908
  function formatPhoneAsYouType(nationalDigits, country) {
1904
1909
  return formatting.formatAsYouType(nationalDigits, country);
1905
1910
  }
1911
+ /**
1912
+ * Returns the national significant number in digits typed after the calling
1913
+ * code: without a trunk prefix the rules drop, such as `0612345678` in `NL` →
1914
+ * `612345678`. Counts the digits the way phone validation does.
1915
+ */
1916
+ function getNationalSignificantNumber(nationalDigits, country) {
1917
+ return formatting.nationalSignificantNumber(nationalDigits, country);
1918
+ }
1906
1919
  /** Returns an example mobile number in national format, without a trunk prefix. */
1907
1920
  function formatExamplePhoneNumber(country) {
1908
1921
  return formatting.formatExampleNumber(country);
@@ -1919,4 +1932,4 @@ function isValidPhoneNumber(phone, country) {
1919
1932
  return validation.isValid(phone, country);
1920
1933
  }
1921
1934
  //#endregion
1922
- export { formatExamplePhoneNumber, formatPhoneAsYouType, getCallingCode, isValidPhoneNumber, parsePhoneNumber };
1935
+ export { formatExamplePhoneNumber, formatPhoneAsYouType, getCallingCode, getNationalSignificantNumber, isValidPhoneNumber, parsePhoneNumber };
package/dist/phone.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as PhoneState, o as phoneMachine, r as createPhoneManager, s as PhoneConfig, t as PhoneManager } from "./phoneManager-BO-LTih5.js";
1
+ import { n as PhoneState, o as phoneMachine, r as createPhoneManager, s as PhoneConfig, t as PhoneManager } from "./phoneManager-6nrJkvkG.js";
2
2
  export { type PhoneConfig, type PhoneManager, type PhoneState, createPhoneManager, phoneMachine };
package/dist/phone.esm.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as phoneMachine } from "./phoneStateMachine-D2QWS2cu.esm.js";
2
- import { t as createPhoneManager } from "./phoneManager-KKUq-Vgo.esm.js";
1
+ import { t as phoneMachine } from "./phoneStateMachine-T1-drWfG.esm.js";
2
+ import { t as createPhoneManager } from "./phoneManager-C6jut_pz.esm.js";
3
3
  export { createPhoneManager, phoneMachine };