@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,36 +1,47 @@
1
1
  import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
+ import { n as WatchlistForBusinessValidationErrors, t as WatchlistForBusinessConfig } from "./types-B9C8W01q.js";
4
5
  //#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.d.ts
5
6
  declare const watchlistForBusinessMachine: any;
6
7
  type WatchlistForBusinessMachine = typeof watchlistForBusinessMachine;
7
8
  //#endregion
8
9
  //#region src/modules/watchlist-for-business/watchlistForBusinessActor.d.ts
9
- type WatchlistForBusinessActor = ActorRefFrom<WatchlistForBusinessMachine>;
10
- //#endregion
11
- //#region src/modules/watchlist-for-business/types.d.ts
12
- /**
13
- * Configuration for the watchlist-for-business module.
14
- *
15
- * No server-side configuration is required — the module collects
16
- * country and business name from the user and submits them to the
17
- * business watchlist endpoint.
18
- */
19
- type WatchlistForBusinessConfig = Record<string, never>;
20
- type WatchlistForBusinessValidationErrors = {
21
- businessName?: string;
10
+ type CreateWatchlistForBusinessActorOptions = {
11
+ config?: WatchlistForBusinessConfig;
22
12
  };
13
+ type WatchlistForBusinessActor = ActorRefFrom<WatchlistForBusinessMachine>;
23
14
  //#endregion
24
15
  //#region src/modules/watchlist-for-business/watchlistForBusinessManager.d.ts
25
16
  /** Waiting for `load()` to be called. */
26
17
  type WatchlistForBusinessIdleState = {
27
18
  status: 'idle';
28
19
  };
29
- /** Form is ready — use `setCountry()`, `setBusinessName()`, and `submit()`. */
20
+ /**
21
+ * Form is ready — use `setCountry()`, `setBusinessName()`, `setTaxId()`,
22
+ * `setDateOfIncorporation()`, and `submit()`.
23
+ */
30
24
  type WatchlistForBusinessFormState = {
31
25
  status: 'form';
32
26
  country: string;
33
27
  businessName: string;
28
+ /** Optional. Sent only when `showTaxId` is true and the value is not blank. */
29
+ taxId: string;
30
+ /**
31
+ * Optional, `YYYY-MM-DD`. Sent only when `showDateOfIncorporation` is true
32
+ * and the value is not blank.
33
+ */
34
+ dateOfIncorporation: string;
35
+ /** Whether the module config enables the optional Tax ID input. */
36
+ showTaxId: boolean;
37
+ /** Whether the module config enables the optional date-of-incorporation input. */
38
+ showDateOfIncorporation: boolean;
39
+ /**
40
+ * Latest allowed date of incorporation (`YYYY-MM-DD`): today in the user's
41
+ * local time. Use it as the date input's `max`; a later date fails submit.
42
+ */
43
+ maxDateOfIncorporation: string;
44
+ /** Whether the required business name is filled. Optional fields never affect it. */
34
45
  isValid: boolean;
35
46
  validationErrors?: WatchlistForBusinessValidationErrors;
36
47
  canSubmit: boolean;
@@ -59,6 +70,11 @@ type WatchlistForBusinessState = WatchlistForBusinessIdleState | WatchlistForBus
59
70
  *
60
71
  * On API error the module completes silently (fire-and-forget).
61
72
  *
73
+ * @param options.config - Optional module config. `taxIdEnabled` and
74
+ * `dateOfIncorporationEnabled` turn on the optional Tax ID and date-of-
75
+ * incorporation inputs. Without config only country and business name are
76
+ * collected.
77
+ *
62
78
  * @example Headless usage
63
79
  * ```typescript
64
80
  * import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business';
@@ -74,14 +90,24 @@ type WatchlistForBusinessState = WatchlistForBusinessIdleState | WatchlistForBus
74
90
  * manager.stop();
75
91
  * ```
76
92
  */
77
- declare function createWatchlistForBusinessManager(): Manager<WatchlistForBusinessState> & {
93
+ declare function createWatchlistForBusinessManager(options?: CreateWatchlistForBusinessActorOptions): Manager<WatchlistForBusinessState> & {
78
94
  /** Transitions from `idle` to the form. Must be called before any other method. */
79
95
  load(): void;
80
96
  /** Updates the selected country code (ISO 3166-1 alpha-2). */
81
97
  setCountry(country: string): void;
82
98
  /** Updates the business name field and recomputes validity. */
83
99
  setBusinessName(value: string): void;
84
- /** Submits the form. Only transitions when `isValid` is true. */
100
+ /** Updates the optional Tax ID field. A blank value is not sent. */
101
+ setTaxId(value: string): void;
102
+ /**
103
+ * Updates the optional date of incorporation (`YYYY-MM-DD`). A blank value
104
+ * is not sent; a future date blocks submit.
105
+ */
106
+ setDateOfIncorporation(value: string): void;
107
+ /**
108
+ * Submits the form. Transitions only when the business name is filled and
109
+ * every filled optional field is valid; otherwise sets `validationErrors`.
110
+ */
85
111
  submit(): void;
86
112
  };
87
113
  declare function createWatchlistForBusinessManagerFromActor(actor: WatchlistForBusinessActor): Manager<WatchlistForBusinessState> & {
@@ -91,9 +117,19 @@ declare function createWatchlistForBusinessManagerFromActor(actor: WatchlistForB
91
117
  setCountry(country: string): void;
92
118
  /** Updates the business name field and recomputes validity. */
93
119
  setBusinessName(value: string): void;
94
- /** Submits the form. Only transitions when `isValid` is true. */
120
+ /** Updates the optional Tax ID field. A blank value is not sent. */
121
+ setTaxId(value: string): void;
122
+ /**
123
+ * Updates the optional date of incorporation (`YYYY-MM-DD`). A blank value
124
+ * is not sent; a future date blocks submit.
125
+ */
126
+ setDateOfIncorporation(value: string): void;
127
+ /**
128
+ * Submits the form. Transitions only when the business name is filled and
129
+ * every filled optional field is valid; otherwise sets `validationErrors`.
130
+ */
95
131
  submit(): void;
96
132
  };
97
133
  type WatchlistForBusinessManager = ReturnType<typeof createWatchlistForBusinessManager>;
98
134
  //#endregion
99
- export { createWatchlistForBusinessManager as a, WatchlistForBusinessValidationErrors as c, WatchlistForBusinessState as i, WatchlistForBusinessActor as l, WatchlistForBusinessFormState as n, createWatchlistForBusinessManagerFromActor as o, WatchlistForBusinessManager as r, WatchlistForBusinessConfig as s, WatchlistForBusinessFinishedState as t, watchlistForBusinessMachine as u };
135
+ export { createWatchlistForBusinessManager as a, watchlistForBusinessMachine as c, WatchlistForBusinessState as i, WatchlistForBusinessFormState as n, createWatchlistForBusinessManagerFromActor as o, WatchlistForBusinessManager as r, WatchlistForBusinessActor as s, WatchlistForBusinessFinishedState as t };
@@ -0,0 +1,166 @@
1
+ import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
+ import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
3
+ import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
4
+ import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
+ import { r as validateCNPJ, t as COUNTRIES_WITH_CNPJ_VALIDATION } from "./cnpj-Co1ottYN.esm.js";
6
+ //#region ../infra/src/time/epochMsToLocalIsoDate.ts
7
+ /**
8
+ * Converts an epoch-milliseconds timestamp to the user's local calendar date
9
+ * as `YYYY-MM-DD` — the format of an `<input type="date">` value.
10
+ *
11
+ * Use it to compare a user-entered date with "today" as the user sees it.
12
+ * `DateFormattingProvider.utcToIsoDateString` returns the UTC date, which is a
13
+ * day off near midnight outside UTC. Lives in Infra (L0) because Core cannot
14
+ * touch the `Date` global (`no-browser-api-in-core`); see `epochMsToIsoString`.
15
+ */
16
+ function epochMsToLocalIsoDate(epochMs) {
17
+ const date = new Date(epochMs);
18
+ const month = String(date.getMonth() + 1).padStart(2, "0");
19
+ const day = String(date.getDate()).padStart(2, "0");
20
+ return `${date.getFullYear()}-${month}-${day}`;
21
+ }
22
+ //#endregion
23
+ //#region src/modules/watchlist-for-business/watchlistForBusinessServices.ts
24
+ async function submitWatchlistForBusiness(data, signal) {
25
+ const res = await api.post(endpoints.watchlistForBusinessSubmit, data, { signal });
26
+ if (!res.ok) throw new Error(`POST ${endpoints.watchlistForBusinessSubmit} failed: ${res.status} ${res.statusText}`);
27
+ return res.data;
28
+ }
29
+ //#endregion
30
+ //#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.ts
31
+ const DEFAULT_COUNTRY = "US";
32
+ const BUSINESS_NAME_REQUIRED_ERROR = "dynamicForms.fieldRequired";
33
+ const INVALID_TAX_ID_ERROR = "ekyb.error.invalidTaxId";
34
+ const FUTURE_DATE_OF_INCORPORATION_ERROR = "watchlistForBusiness.dateOfIncorporationFuture";
35
+ /**
36
+ * Country-specific Tax ID format checks, applied only to a filled Tax ID.
37
+ * Countries without an entry accept any value. The CNPJ countries come from
38
+ * the shared list eKYB also uses, so the two modules cannot drift.
39
+ */
40
+ const TAX_ID_VALIDATORS = Object.fromEntries(COUNTRIES_WITH_CNPJ_VALIDATION.map((country) => [country, validateCNPJ]));
41
+ /**
42
+ * Latest allowed date of incorporation: today in the user's local time, as
43
+ * `YYYY-MM-DD`. The single source for both the future-date check and the
44
+ * date picker's `max` (exposed through the manager's `form` state).
45
+ */
46
+ function getMaxDateOfIncorporation() {
47
+ return epochMsToLocalIsoDate(getTimestamp());
48
+ }
49
+ function computeIsValid(businessName) {
50
+ return businessName.trim().length > 0;
51
+ }
52
+ /**
53
+ * Returns the trimmed value of an optional field, or `undefined` when the
54
+ * field is disabled or blank — a blank optional field is never sent.
55
+ */
56
+ function optionalValue(enabled, value) {
57
+ if (!enabled) return void 0;
58
+ const trimmed = value.trim();
59
+ return trimmed.length > 0 ? trimmed : void 0;
60
+ }
61
+ function getTaxId(context) {
62
+ return optionalValue(context.config?.taxIdEnabled, context.taxId);
63
+ }
64
+ function getDateOfIncorporation(context) {
65
+ return optionalValue(context.config?.dateOfIncorporationEnabled, context.dateOfIncorporation);
66
+ }
67
+ function computeValidationErrors(context) {
68
+ const errors = {};
69
+ if (!computeIsValid(context.businessName)) errors.businessName = BUSINESS_NAME_REQUIRED_ERROR;
70
+ const taxId = getTaxId(context);
71
+ const validateTaxId = TAX_ID_VALIDATORS[context.country];
72
+ if (taxId && validateTaxId && !validateTaxId(taxId)) errors.taxId = INVALID_TAX_ID_ERROR;
73
+ const dateOfIncorporation = getDateOfIncorporation(context);
74
+ if (dateOfIncorporation && dateOfIncorporation > getMaxDateOfIncorporation()) errors.dateOfIncorporation = FUTURE_DATE_OF_INCORPORATION_ERROR;
75
+ return Object.keys(errors).length > 0 ? errors : void 0;
76
+ }
77
+ function buildSubmitRequest(context) {
78
+ const request = {
79
+ countryCodes: [context.country],
80
+ businessName: context.businessName.trim()
81
+ };
82
+ const taxId = getTaxId(context);
83
+ if (taxId) request.taxId = taxId;
84
+ const dateOfIncorporation = getDateOfIncorporation(context);
85
+ if (dateOfIncorporation) request.dateOfIncorporation = dateOfIncorporation;
86
+ return request;
87
+ }
88
+ /** Drops one field's error once the user edits what it depends on. */
89
+ function withoutValidationError(context, field) {
90
+ if (!context.validationErrors?.[field]) return {};
91
+ const remaining = { ...context.validationErrors };
92
+ delete remaining[field];
93
+ return { validationErrors: Object.keys(remaining).length > 0 ? remaining : void 0 };
94
+ }
95
+ const watchlistForBusinessMachine = setup({
96
+ types: {
97
+ context: {},
98
+ events: {},
99
+ input: {}
100
+ },
101
+ actors: { submitWatchlistForBusiness: fromPromise(async ({ input, signal }) => {
102
+ await submitWatchlistForBusiness(input, signal);
103
+ }) },
104
+ actions: {
105
+ setCountry: assign(({ event }) => {
106
+ const { country } = event;
107
+ return { country };
108
+ }),
109
+ setBusinessName: assign(({ event }) => {
110
+ const { value } = event;
111
+ return {
112
+ businessName: value,
113
+ isValid: computeIsValid(value)
114
+ };
115
+ }),
116
+ setTaxId: assign(({ event }) => {
117
+ const { value } = event;
118
+ return { taxId: value };
119
+ }),
120
+ setDateOfIncorporation: assign(({ event }) => {
121
+ const { value } = event;
122
+ return { dateOfIncorporation: value };
123
+ }),
124
+ clearBusinessNameValidationError: assign(({ context }) => withoutValidationError(context, "businessName")),
125
+ clearTaxIdValidationError: assign(({ context }) => withoutValidationError(context, "taxId")),
126
+ clearDateOfIncorporationValidationError: assign(({ context }) => withoutValidationError(context, "dateOfIncorporation")),
127
+ setValidationErrors: assign(({ context }) => ({ validationErrors: computeValidationErrors(context) }))
128
+ },
129
+ guards: { canSubmit: ({ context }) => computeValidationErrors(context) === void 0 }
130
+ }).createMachine({
131
+ id: "watchlist-for-business",
132
+ initial: "idle",
133
+ context: ({ input }) => ({
134
+ config: input?.config ?? {},
135
+ country: DEFAULT_COUNTRY,
136
+ businessName: "",
137
+ taxId: "",
138
+ dateOfIncorporation: "",
139
+ isValid: false,
140
+ validationErrors: void 0
141
+ }),
142
+ states: {
143
+ idle: { on: { LOAD: { target: "form" } } },
144
+ form: { on: {
145
+ SET_COUNTRY: { actions: ["setCountry", "clearTaxIdValidationError"] },
146
+ SET_BUSINESS_NAME: { actions: ["setBusinessName", "clearBusinessNameValidationError"] },
147
+ SET_TAX_ID: { actions: ["setTaxId", "clearTaxIdValidationError"] },
148
+ SET_DATE_OF_INCORPORATION: { actions: ["setDateOfIncorporation", "clearDateOfIncorporationValidationError"] },
149
+ SUBMIT: [{
150
+ target: "submitting",
151
+ guard: "canSubmit"
152
+ }, { actions: "setValidationErrors" }]
153
+ } },
154
+ submitting: { invoke: {
155
+ id: "submitWatchlistForBusiness",
156
+ src: "submitWatchlistForBusiness",
157
+ input: ({ context }) => buildSubmitRequest(context),
158
+ onDone: { target: "success" },
159
+ onError: { target: "finished" }
160
+ } },
161
+ success: { after: { 3e3: { target: "finished" } } },
162
+ finished: { type: "final" }
163
+ }
164
+ });
165
+ //#endregion
166
+ export { watchlistForBusinessMachine as n, getMaxDateOfIncorporation as t };
@@ -1,7 +1,7 @@
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 { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as watchlistMachine } from "./watchlistStateMachine-McALifag.esm.js";
4
+ import { t as watchlistMachine } from "./watchlistStateMachine-CSi_ZhtT.esm.js";
5
5
  //#region src/modules/watchlist/watchlistActor.ts
6
6
  function createWatchlistActor() {
7
7
  return createActor(watchlistMachine).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 { 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/watchlist/watchlistServices.ts
@@ -2,7 +2,7 @@ import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorR
2
2
  import { t as CallbackActorLogic } from "./callback-645_omgz.js";
3
3
  import { t as Manager } from "./Manager-C9T5amUN.js";
4
4
  import { a as TotalScore, i as GetTotalScoreStatusFn, n as FinishStatus, r as GetFinishStatusFn } from "./flowCompletionService-BlAHsKyv.js";
5
- import { o as FlowEventSubscribable } from "./index-CKQ9QBZP.js";
5
+ import { o as FlowEventSubscribable } from "./index-DMDAk85K.js";
6
6
  import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-BQA7lRDV.js";
7
7
  //#region src/modules/workflow/types.d.ts
8
8
  /** Possible node types returned by the workflow server. */
@@ -215,6 +215,8 @@ type LoadingResult = {
215
215
  type ProcessNextNodeInput = {
216
216
  isInjectedNode: boolean;
217
217
  firstNode: WorkflowNode | undefined;
218
+ /** The node being left; compared with the server node after a reconnect. */
219
+ currentNodeId: string | undefined;
218
220
  currentNodeModuleKey: string | undefined;
219
221
  workflowConfigId: string | undefined;
220
222
  workflowRedirectDesktopToMobile: boolean;
@@ -889,7 +891,7 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
889
891
  readonly actions: readonly ["setModuleErrorCode", "trackAdvanceableModuleError"];
890
892
  }, {
891
893
  readonly target: "error";
892
- readonly actions: readonly ["setModuleError", "trackTerminalModuleError"];
894
+ readonly actions: readonly ["setModuleError", "setModuleErrorCode", "trackTerminalModuleError"];
893
895
  }];
894
896
  readonly COMPLETE_FLOW: "completing";
895
897
  readonly FINISH_WORKFLOW: readonly [{
@@ -1033,6 +1035,7 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
1033
1035
  }) => {
1034
1036
  isInjectedNode: boolean;
1035
1037
  firstNode: WorkflowNode | undefined;
1038
+ currentNodeId: string | undefined;
1036
1039
  currentNodeModuleKey: string | undefined;
1037
1040
  workflowConfigId: string | undefined;
1038
1041
  workflowRedirectDesktopToMobile: boolean;
@@ -1,43 +1,44 @@
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-BAvhAU7T.esm.js";
4
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-c3CChZts.esm.js";
5
- import { E as updateFeatureManagementUser } from "./feature-management-DCD0I_XZ.esm.js";
6
- import { i as toIncodeApiError } from "./apiError-B_uY7RO6.esm.js";
7
- import { v as toEkybConfig } from "./flowServices-COMEf-WP.esm.js";
8
- import { a as toEkycConfig } from "./ekycUtils-zY8CdKJL.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation, y as addEvent } from "./events-CQteqXfy.esm.js";
2
+ import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
3
+ import { u as trueSightLog } from "./trueSightService-BujtUIW6.esm.js";
4
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CWFT4dfw.esm.js";
5
+ import { E as updateFeatureManagementUser } from "./feature-management-DjAG5lsJ.esm.js";
6
+ import { i as retryAfterReconnect } from "./connectivity-HSl0diCx.esm.js";
7
+ import { i as toIncodeApiError } from "./apiError-CfuIvnUy.esm.js";
8
+ import { v as toEkybConfig } from "./flowServices-g2tVWsJl.esm.js";
9
+ import { c as toEkycConfig } from "./ekycUtils-BFncpC4F.esm.js";
9
10
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
10
11
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
11
- import { r as electronicSignatureMachine } from "./electronicSignatureManager-Btsa7Prh.esm.js";
12
+ import { r as electronicSignatureMachine } from "./electronicSignatureManager-C7pqXsRm.esm.js";
12
13
  import "./ae-signature.esm.js";
13
- import { t as antifraudMachine } from "./antifraudStateMachine-DRl0UVyA.esm.js";
14
- import { t as authenticationMachine } from "./authenticationStateMachine-DrO14KyC.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-Cgk0VPP4.esm.js";
21
- import { t as ekybMachine } from "./ekybStateMachine-DIRBMkaD.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-nWbIRIBD.esm.js";
25
- import { t as idCaptureMachine } from "./idCaptureStateMachine-DWJOHeGn.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-Dbg9jw62.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-xFODSJEq.esm.js";
39
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-C09a9ACV.esm.js";
40
- import { n as isAdvanceableError } from "./advanceableErrors-q_pfU3Cn.esm.js";
14
+ import { t as antifraudMachine } from "./antifraudStateMachine-BcsUTTIr.esm.js";
15
+ import { t as authenticationMachine } from "./authenticationStateMachine-BL2ptOA0.esm.js";
16
+ import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-kksIUOPD.esm.js";
17
+ import { t as consentMachine } from "./consentStateMachine-CpmRAcr2.esm.js";
18
+ import { t as curpValidationMachine } from "./curpValidationStateMachine-Bx9YhVkJ.esm.js";
19
+ import { t as customWatchlistMachine } from "./customWatchlistStateMachine-Sbi6DIcK.esm.js";
20
+ import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BCwD5Rto.esm.js";
21
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-C8Z7k3vo.esm.js";
22
+ import { t as ekybMachine } from "./ekybStateMachine-DBgFuEPK.esm.js";
23
+ import { t as ekycMachine } from "./ekycStateMachine-CuNF7z4O.esm.js";
24
+ import { t as emailMachine } from "./emailStateMachine-Cx-uTaBV.esm.js";
25
+ import { t as selfieMachine } from "./selfieStateMachine-B5m_Kn0O.esm.js";
26
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-B3G6XoDG.esm.js";
27
+ import { t as phoneMachine } from "./phoneStateMachine-T1-drWfG.esm.js";
28
+ import { t as watchlistMachine } from "./watchlistStateMachine-CSi_ZhtT.esm.js";
29
+ import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DA6K5na4.esm.js";
30
+ import { n as identityReuseMachine } from "./identityReuseStateMachine-Bcnkbjf8.esm.js";
31
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CVlgdlnt.esm.js";
32
+ import { t as idOcrStateMachine } from "./idOcrStateMachine-B1aZnobs.esm.js";
33
+ import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-BBMAc2Gb.esm.js";
34
+ import { t as signatureMachine } from "./signatureStateMachine-_1c1vSid.esm.js";
35
+ import { t as geolocationMachine } from "./geolocationStateMachine-CAJVongM.esm.js";
36
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-PTPCP26N.esm.js";
37
+ import { t as idVerificationMachine } from "./idVerificationStateMachine-DQn6c84z.esm.js";
38
+ import { t as faceMatchMachine } from "./faceMatchStateMachine-ByTMQCUC.esm.js";
39
+ import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-ChMU2v79.esm.js";
40
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DPHTqSdF.esm.js";
41
+ import { n as isAdvanceableError } from "./advanceableErrors-k-U-cL5m.esm.js";
41
42
  import "./qe-signature.esm.js";
42
43
  import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
43
44
  //#region src/internal/orchestration/defaultModules.ts
@@ -165,9 +166,9 @@ async function loadWorkflow(input, signal) {
165
166
  signal,
166
167
  preloadFlow: false
167
168
  }).catch(() => void 0);
168
- const workflowConfig = await getWorkflowConfig(signal);
169
+ const workflowConfig = await retryAfterReconnect(() => getWorkflowConfig(signal), signal);
169
170
  await updateFeatureManagementUser({ customIDs: { workflow_id: workflowConfig.id } });
170
- const realNode = await getCurrentNode(signal);
171
+ const realNode = await retryAfterReconnect(() => getCurrentNode(signal), signal);
171
172
  const fingerprintResult = getSessionFingerprintResult();
172
173
  let currentNode = realNode;
173
174
  let firstNode;
@@ -228,8 +229,16 @@ async function processNextNode(input, signal) {
228
229
  isInjectedNode: false
229
230
  };
230
231
  }
232
+ let resync = false;
231
233
  return {
232
- nextNode: await processNode(signal),
234
+ nextNode: await retryAfterReconnect(async () => {
235
+ if (resync) {
236
+ const serverNode = await getCurrentNode(signal);
237
+ if (serverNode.id !== input.currentNodeId) return serverNode;
238
+ }
239
+ resync = true;
240
+ return processNode(signal);
241
+ }, signal),
233
242
  isInjectedNode: false
234
243
  };
235
244
  }
@@ -337,12 +346,8 @@ const workflowMachine = setup({
337
346
  processNextNode: fromPromise(({ input, signal }) => processNextNode(input, signal)),
338
347
  handleCustomModule: fromPromise(({ input, signal }) => handleCustomModule(input, signal)),
339
348
  resolveModule: fromPromise(({ input }) => resolveModule(input)),
340
- notifyBackend: fromPromise(async ({ input, signal }) => {
341
- return input.getFinishStatus(input.workflowId, signal);
342
- }),
343
- resolveScore: fromPromise(async ({ input, signal }) => {
344
- return input.getTotalScoreStatus(signal);
345
- }),
349
+ notifyBackend: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFinishStatus(input.workflowId, signal), signal)),
350
+ resolveScore: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getTotalScoreStatus(signal), signal)),
346
351
  runChildModule
347
352
  },
348
353
  actions: {
@@ -574,7 +579,11 @@ const workflowMachine = setup({
574
579
  actions: ["setModuleErrorCode", "trackAdvanceableModuleError"]
575
580
  }, {
576
581
  target: "error",
577
- actions: ["setModuleError", "trackTerminalModuleError"]
582
+ actions: [
583
+ "setModuleError",
584
+ "setModuleErrorCode",
585
+ "trackTerminalModuleError"
586
+ ]
578
587
  }],
579
588
  COMPLETE_FLOW: "completing",
580
589
  FINISH_WORKFLOW: [{
@@ -619,6 +628,7 @@ const workflowMachine = setup({
619
628
  input: ({ context }) => ({
620
629
  isInjectedNode: context.isInjectedNode,
621
630
  firstNode: context.firstNode,
631
+ currentNodeId: context.currentNode?.id,
622
632
  currentNodeModuleKey: context.currentNode?.moduleKey,
623
633
  workflowConfigId: context.workflowConfig?.id,
624
634
  workflowRedirectDesktopToMobile: context.workflowConfig?.redirectDesktopToMobile ?? false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "2.4.0-rc.4",
3
+ "version": "2.4.1-agentic",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -278,7 +278,7 @@
278
278
  "vitest": "4.1.10",
279
279
  "@incodetech/config": "1.0.2",
280
280
  "@incodetech/form-definitions": "0.0.0",
281
- "@incodetech/infra": "1.4.0"
281
+ "@incodetech/infra": "1.5.0"
282
282
  },
283
283
  "scripts": {
284
284
  "build": "tsdown -c tsdown.config.ts && pnpm check:dist-types",
@@ -286,6 +286,7 @@
286
286
  "build:dev": "tsdown -c tsdown.config.ts",
287
287
  "check:dist-types": "tsgo -p tsconfig.dist-types.json",
288
288
  "test": "vitest run",
289
+ "test:changed": "vitest run --changed origin/main --passWithNoTests",
289
290
  "coverage": "vitest run --coverage",
290
291
  "lint": "eslint .",
291
292
  "lint:fix": "eslint . --fix",
@@ -1,9 +0,0 @@
1
- //#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
2
- function getTimestamp() {
3
- return Date.now();
4
- }
5
- function revokeObjectURL(url) {
6
- URL.revokeObjectURL(url);
7
- }
8
- //#endregion
9
- export { revokeObjectURL as n, getTimestamp as t };