@incodetech/core 2.4.0 → 2.4.1-agentic.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
  2. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -744
  3. package/dist/{FaceDetectionProvider-DcPOC2gS.esm.js → FaceDetectionProvider-CAY43vSI.esm.js} +28 -64
  4. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  5. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  6. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
  7. package/dist/MultipartRecordingProvider-D9mauUdS.esm.js +146 -0
  8. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  9. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
  10. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  11. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-Dp2V-Uct.esm.js} +75 -22
  12. package/dist/WorkerEncoderRecordingProvider-B1ODYtgN.esm.js +80 -0
  13. package/dist/addressSearch-DzbE9Ogt.esm.js +254 -0
  14. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
  15. package/dist/ae-signature.esm.js +1 -1
  16. package/dist/antifraud.esm.js +2 -2
  17. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-BObuHBjn.esm.js} +2 -2
  18. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-Dfrd2-26.esm.js} +1 -1
  19. package/dist/{api-Cz90EHyu.esm.js → api-CpP4PS4S.esm.js} +8 -5
  20. package/dist/{apiError-DPwFas2f.esm.js → apiError-DH-CH4Nz.esm.js} +1 -1
  21. package/dist/attemptCarry-WOkfvFMw.esm.js +45 -0
  22. package/dist/authentication.d.ts +3 -3
  23. package/dist/authentication.esm.js +2 -2
  24. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-CWmh7aSY.d.ts} +1 -1
  25. package/dist/{authenticationManager-2Lr5V_7p.esm.js → authenticationManager-DjX0XDyH.esm.js} +5 -5
  26. package/dist/{authenticationStateMachine-C99B0GFP.esm.js → authenticationStateMachine-BMbZL8wm.esm.js} +3 -3
  27. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  28. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-DS1oDiUq.esm.js} +12 -107
  29. package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
  30. package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
  31. package/dist/camera.d.ts +2 -2
  32. package/dist/camera.esm.js +1 -1
  33. package/dist/certificate-issuance.esm.js +2 -2
  34. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-C1nETQos.esm.js} +2 -2
  35. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-DThXMDqr.esm.js} +2 -2
  36. package/dist/cnpj-Co1ottYN.esm.js +77 -0
  37. package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
  38. package/dist/consent.d.ts +1 -1
  39. package/dist/consent.esm.js +2 -2
  40. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-DMlSL6Ax.esm.js} +4 -3
  41. package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-bjfVXO7p.d.ts} +9 -2
  42. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-DIYSMxKQ.esm.js} +20 -7
  43. package/dist/cross-document-data-match.esm.js +1 -1
  44. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-BFTdiEDB.esm.js} +2 -2
  45. package/dist/curp-validation.d.ts +1 -1
  46. package/dist/curp-validation.esm.js +2 -2
  47. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-DNpC3wyf.esm.js} +3 -2
  48. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-z8428oCM.d.ts} +1 -1
  49. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-B3iVsDyt.esm.js} +28 -20
  50. package/dist/custom-fields.esm.js +1 -1
  51. package/dist/custom-watchlist.esm.js +2 -2
  52. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-CvI-pDT3.esm.js} +2 -2
  53. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-BuHtUb0y.esm.js} +2 -2
  54. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-CiVD9wyF.esm.js} +1 -1
  55. package/dist/{deepsightService-CKTYDIXD.esm.js → deepsightLoader-B7DEYoyY.esm.js} +40 -74
  56. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BGMtYwk3.esm.js} +177 -40
  57. package/dist/device.esm.js +2 -2
  58. package/dist/document-capture.d.ts +3 -3
  59. package/dist/document-capture.esm.js +2 -2
  60. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-CD5iQiUI.d.ts} +37 -4
  61. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-DLPqruXJ.esm.js} +27 -19
  62. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-DCvWQhFG.esm.js} +105 -56
  63. package/dist/dynamic-forms.d.ts +2 -2
  64. package/dist/dynamic-forms.esm.js +2 -2
  65. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
  66. package/dist/{dynamicFormsManager-DiKYjcF3.esm.js → dynamicFormsManager-DfqCEPg9.esm.js} +2 -2
  67. package/dist/{dynamicFormsStateMachine-DEI45xYW.esm.js → dynamicFormsStateMachine-USQMB-uV.esm.js} +2 -2
  68. package/dist/ekyb.d.ts +4 -4
  69. package/dist/ekyb.esm.js +3 -3
  70. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
  71. package/dist/{ekybManager-8WLkNcqg.esm.js → ekybManager-CR8YSYux.esm.js} +2 -2
  72. package/dist/{ekybStateMachine-BLRT45Ex.esm.js → ekybStateMachine-kHwdz6hm.esm.js} +28 -44
  73. package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
  74. package/dist/ekyc.d.ts +4 -3
  75. package/dist/ekyc.esm.js +3 -3
  76. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-DlGIn9wA.d.ts} +2 -1
  77. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-DymCvmVB.esm.js} +2 -2
  78. package/dist/ekycStateMachine-CoFCUJ2z.esm.js +7578 -0
  79. package/dist/ekycUtils-GRuMELYr.esm.js +1472 -0
  80. package/dist/electronic-signature.esm.js +1 -1
  81. package/dist/{electronicSignatureManager-CcIMOb_Y.esm.js → electronicSignatureManager-BCE3uA3z.esm.js} +4 -4
  82. package/dist/email.esm.js +2 -2
  83. package/dist/{emailManager-ButFktRm.esm.js → emailManager-CGoE3CUe.esm.js} +2 -2
  84. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-KgHfDNvM.esm.js} +32 -20
  85. package/dist/{events-Du2A4-Qr.esm.js → events-ggpBBaZ8.esm.js} +2 -2
  86. package/dist/events.esm.js +1 -1
  87. package/dist/extensibility.d.ts +37 -22
  88. package/dist/extensibility.esm.js +36 -35
  89. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
  90. package/dist/face-match.d.ts +1 -1
  91. package/dist/face-match.esm.js +2 -2
  92. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-DV2ULUYS.d.ts} +71 -66
  93. package/dist/{faceCaptureManagerFactory-BlGvXzXA.esm.js → faceCaptureManagerFactory-Dp90bedH.esm.js} +4 -4
  94. package/dist/{faceCaptureSetup-TY8RXc2N.esm.js → faceCaptureSetup-ZfiWg0fo.esm.js} +84 -457
  95. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-D2xKPjjQ.esm.js} +2 -2
  96. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
  97. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-CUvwiQi9.esm.js} +40 -27
  98. package/dist/{feature-management-B5rR10uS.esm.js → feature-management-BbCIA4og.esm.js} +35 -21
  99. package/dist/feature-management.esm.js +1 -1
  100. package/dist/field-comparison.esm.js +1 -1
  101. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-DgDbEeFZ.esm.js} +2 -2
  102. package/dist/fiscal-qr.esm.js +1 -1
  103. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-BZeklojR.esm.js} +4 -4
  104. package/dist/flow-events.d.ts +1 -1
  105. package/dist/flow.d.ts +10 -10
  106. package/dist/flow.esm.js +10 -9
  107. package/dist/{flowCompletionService-BDI5QpfR.esm.js → flowCompletionService-CcCnPs_T.esm.js} +2 -2
  108. package/dist/{flowServices-roD0oIQL.esm.js → flowServices-Dmnc8Rye.esm.js} +69 -185
  109. package/dist/geolocation.d.ts +1 -1
  110. package/dist/geolocation.esm.js +2 -2
  111. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
  112. package/dist/{geolocationManager-DnONzWL5.esm.js → geolocationManager-BJJ3m_I8.esm.js} +6 -8
  113. package/dist/{geolocationStateMachine-eWy_G4Os.esm.js → geolocationStateMachine-CTI3m4Ie.esm.js} +12 -8
  114. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
  115. package/dist/government-validation.esm.js +2 -2
  116. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CjChjZ3C.esm.js} +2 -2
  117. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-AEbn3Afi.esm.js} +1 -1
  118. package/dist/home.d.ts +1 -1
  119. package/dist/home.esm.js +1 -1
  120. package/dist/http.esm.js +1 -1
  121. package/dist/id-ocr.d.ts +1 -1
  122. package/dist/id-ocr.esm.js +2 -2
  123. package/dist/id-selfie-flow.d.ts +1 -1
  124. package/dist/id-selfie-flow.esm.js +10 -9
  125. package/dist/id-verification.esm.js +2 -2
  126. package/dist/id.d.ts +3 -16
  127. package/dist/id.esm.js +4 -4
  128. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-Dszuq9ng.esm.js} +3 -3
  129. package/dist/{idCaptureManager-BrfYjCm_.esm.js → idCaptureManager-B3oR4RnA.esm.js} +64 -17
  130. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CCA2D1Ah.d.ts} +68 -5
  131. package/dist/{idCaptureServices-BSj6EH2l.esm.js → idCaptureServices-DK0QboqT.esm.js} +29 -198
  132. package/dist/{idCaptureStateMachine-dXKBYHQp.esm.js → idCaptureStateMachine-zzar9MPy.esm.js} +914 -536
  133. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
  134. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-xyEZNOBa.esm.js} +2 -2
  135. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-DNKXh4Rn.esm.js} +2 -2
  136. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-DdnvYfgN.esm.js} +2 -2
  137. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DtIBCa32.esm.js} +1 -1
  138. package/dist/identity-reuse.esm.js +2 -2
  139. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-CcpovlfD.esm.js} +2 -2
  140. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-DxZFWy47.esm.js} +1 -1
  141. package/dist/{index-CKQ9QBZP.d.ts → index-DC0P2Vzw.d.ts} +1 -1
  142. package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
  143. package/dist/index.d.ts +1 -1
  144. package/dist/index.esm.js +1 -1
  145. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-BJ0GVHGr.esm.js} +1 -1
  146. package/dist/kyb-checks.d.ts +3 -0
  147. package/dist/kyb-checks.esm.js +3 -0
  148. package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
  149. package/dist/kybChecksManager-DpGOp4Su.esm.js +89 -0
  150. package/dist/kybChecksStateMachine-B43NAnv7.esm.js +718 -0
  151. package/dist/mandatory-consent.d.ts +2 -2
  152. package/dist/mandatory-consent.esm.js +2 -2
  153. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-B4vCYslr.esm.js} +4 -3
  154. package/dist/{mandatoryConsentManager-BQ43yndC.d.ts → mandatoryConsentManager-B88Sm5nd.d.ts} +10 -3
  155. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-DWslYPA3.esm.js} +20 -7
  156. package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
  157. package/dist/multipartRecordingService-BTqkHGG9.esm.js +407 -0
  158. package/dist/nationalIds-B91f_RuB.esm.js +99 -0
  159. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-DFV-Ws0a.esm.js} +1 -1
  160. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-D190ATGD.esm.js} +11 -9
  161. package/dist/phone-number.d.ts +7 -1
  162. package/dist/phone-number.esm.js +15 -2
  163. package/dist/phone.d.ts +1 -1
  164. package/dist/phone.esm.js +2 -2
  165. package/dist/phoneFormat-JJNaWthV.esm.js +75 -0
  166. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
  167. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-Dy5tODCU.esm.js} +3 -3
  168. package/dist/phoneServices-DJgyOzU2.esm.js +77 -0
  169. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-DnlPhnw7.esm.js} +54 -82
  170. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  171. package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
  172. package/dist/processFaceMatch-Bst83HaS.esm.js +21 -0
  173. package/dist/qe-signature.esm.js +1 -1
  174. package/dist/recordingService-CTko6Cjn.esm.js +397 -0
  175. package/dist/redirect-to-mobile.d.ts +2 -2
  176. package/dist/redirect-to-mobile.esm.js +2 -2
  177. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-CgGaT2NP.esm.js} +5 -4
  178. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
  179. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-CbhN8uVN.esm.js} +65 -26
  180. package/dist/resolveForm-O7-r79VA.esm.js +351 -0
  181. package/dist/{runChildModule-BF_atgNx.esm.js → runChildModule-BffFArwl.esm.js} +3 -3
  182. package/dist/{sdkVersion-CsIbltJF.esm.js → sdkVersion-CDd_gaR7.esm.js} +1 -1
  183. package/dist/selfie.d.ts +4 -4
  184. package/dist/selfie.esm.js +10 -10
  185. package/dist/{selfieErrorUtils-BY0-YbPW.esm.js → selfieErrorUtils-f4MgAG2A.esm.js} +1 -1
  186. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-DmZFzs1-.d.ts} +1 -1
  187. package/dist/{selfieManager-vAAwzsHk.esm.js → selfieManager-hopelYEk.esm.js} +5 -5
  188. package/dist/{selfieStateMachine-BFVp3ElQ.esm.js → selfieStateMachine-DaZIVv3Q.esm.js} +3 -3
  189. package/dist/{session-CpwfoVdH.esm.js → session-CdSX4wsZ.esm.js} +77 -9
  190. package/dist/session.d.ts +96 -10
  191. package/dist/session.esm.js +7 -6
  192. package/dist/{sessionInitializer-BTjYgE-V.esm.js → sessionInitializer-DsL7X2j9.esm.js} +465 -206
  193. package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
  194. package/dist/{setup-BInNAvQw.esm.js → setup-DDahygZs.esm.js} +44 -30
  195. package/dist/signature.esm.js +2 -2
  196. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-CwqjcxPg.esm.js} +2 -2
  197. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-DBVDd1Eu.esm.js} +1 -1
  198. package/dist/{stats-BEvexnKC.esm.js → stats-CatA2dea.esm.js} +1 -1
  199. package/dist/stats.esm.js +1 -1
  200. package/dist/textRules-D4NRinKY.d.ts +41 -0
  201. package/dist/{tri-xzRLIIMN.esm.js → tri-DG6priFa.esm.js} +142 -8
  202. package/dist/tri.d.ts +1 -1
  203. package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
  204. package/dist/tri.esm.js +1 -1
  205. package/dist/{trueSightService-BMT-TubT.esm.js → trueSightService-GuLthUVK.esm.js} +19 -10
  206. package/dist/trust-graph.esm.js +1 -1
  207. package/dist/types-B9C8W01q.d.ts +34 -0
  208. package/dist/{types-yPH8lAH-.d.ts → types-BEVHQbbC.d.ts} +2 -2
  209. package/dist/{types-BAxn7MpY.d.ts → types-BPm1JSu7.d.ts} +123 -48
  210. package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
  211. package/dist/{types-B6HsSzpk.d.ts → types-CRaFu6wS.d.ts} +6 -3
  212. package/dist/types-CTaL0XJz.d.ts +80 -0
  213. package/dist/{types-Ckir_BEs.d.ts → types-Cd0J0F9D.d.ts} +1 -1
  214. package/dist/{types-CK8Jbjkp.d.ts → types-Csh8vzPo.d.ts} +1 -1
  215. package/dist/types-CuMJ2M7D.d.ts +210 -0
  216. package/dist/{types-DUnFZ08M.d.ts → types-CyNndVAT.d.ts} +16 -8
  217. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  218. package/dist/types-J6g6iKe_.d.ts +6 -0
  219. package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
  220. package/dist/video-selfie.d.ts +8 -8
  221. package/dist/video-selfie.esm.js +97 -22
  222. package/dist/{videoSelfieCameraWarmer-D1xA0u8y.esm.js → videoSelfieCameraWarmer-e3irGfcO.esm.js} +18 -21
  223. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-Dv3Mgws-.d.ts} +9 -4
  224. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  225. package/dist/{warmup-BElYWRh7.esm.js → warmup-DtB0DJpl.esm.js} +198 -27
  226. package/dist/wasm.d.ts +2 -2
  227. package/dist/wasm.esm.js +3 -3
  228. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BtiR5pig.esm.js} +1 -1
  229. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
  230. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-BDrax6Eu.esm.js} +55 -26
  231. package/dist/watchlist-for-business.d.ts +2 -1
  232. package/dist/watchlist-for-business.esm.js +2 -2
  233. package/dist/watchlist.esm.js +2 -2
  234. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
  235. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-DqUpAEj_.esm.js} +37 -7
  236. package/dist/watchlistForBusinessStateMachine-DdaPl2PS.esm.js +166 -0
  237. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-CdpXzT4B.esm.js} +2 -2
  238. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-ofHW_lPk.esm.js} +1 -1
  239. package/dist/workflow.d.ts +5 -2
  240. package/dist/workflow.esm.js +60 -50
  241. package/package.json +12 -5
  242. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  243. package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
  244. package/dist/deepsightLoader-DeNvGU3c.esm.js +0 -55
  245. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  246. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  247. package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
  248. package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
  249. package/dist/types-BvLo3U4u.d.ts +0 -134
  250. package/dist/types-zOgZqMni.d.ts +0 -6
  251. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  252. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -109,7 +109,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
109
109
  type: "shouldProceedWithoutSubmitToSecondId";
110
110
  params: unknown;
111
111
  };
112
- }>, never, "error" | "idle" | "success" | "finished" | "submitting" | "loading" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
112
+ }>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
113
113
  readonly id: "idOcr";
114
114
  readonly initial: "idle";
115
115
  readonly context: ({ input }: {
@@ -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-ggpBBaZ8.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-DNKXh4Rn.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-CpP4PS4S.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-ggpBBaZ8.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-DtIBCa32.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-CpP4PS4S.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,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-DxZFWy47.esm.js";
2
+ import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-CcpovlfD.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-ggpBBaZ8.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-DxZFWy47.esm.js";
4
4
  //#region src/modules/identity-reuse/identityReuseActor.ts
5
5
  /**
6
6
  * Creates and starts an IdentityReuse actor.
@@ -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-CpP4PS4S.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
1
  import "./Manager-C9T5amUN.js";
2
- import { n as Flow } from "./types-B6HsSzpk.js";
2
+ import { n as Flow } from "./types-CRaFu6wS.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 = {
@@ -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
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-BInNAvQw.esm.js";
1
+ import { i as reset, r as isConfigured, s as setup } from "./setup-DDahygZs.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-ggpBBaZ8.esm.js";
2
2
  //#region src/internal/captureOnly/invokeOnCaptureCallback.ts
3
3
  /**
4
4
  * Invokes an integrator-provided `onCapture` callback with the assembled
@@ -0,0 +1,3 @@
1
+ import { a as KybChecksSection, c as KybFieldValue, d as KybText, f as KybUnsupportedModule, i as KybChecksResult, l as KybFieldValues, n as KybChecksConfig, o as KybFieldDef, p as KybValidationRule, r as KybChecksErrorKind, s as KybFieldErrors, t as KybCheckModuleKey, u as KybFormLevelRule } from "./types-CTaL0XJz.js";
2
+ import { a as KybChecksLoadingState, c as KybChecksState, i as KybChecksFormState, l as KybChecksSubmittingState, n as KybChecksErrorState, o as KybChecksManager, p as kybChecksMachine, r as KybChecksFinishedState, s as KybChecksMisconfiguredState, t as KybChecksClosedState, u as createKybChecksManager } from "./kybChecksManager-CblEL97E.js";
3
+ export { type KybCheckModuleKey, type KybChecksClosedState, type KybChecksConfig, type KybChecksErrorKind, type KybChecksErrorState, type KybChecksFinishedState, type KybChecksFormState, type KybChecksLoadingState, type KybChecksManager, type KybChecksMisconfiguredState, type KybChecksResult, type KybChecksSection, type KybChecksState, type KybChecksSubmittingState, type KybFieldDef, type KybFieldErrors, type KybFieldValue, type KybFieldValues, type KybFormLevelRule, type KybText, type KybUnsupportedModule, type KybValidationRule, createKybChecksManager, kybChecksMachine };
@@ -0,0 +1,3 @@
1
+ import { t as kybChecksMachine } from "./kybChecksStateMachine-B43NAnv7.esm.js";
2
+ import { t as createKybChecksManager } from "./kybChecksManager-DpGOp4Su.esm.js";
3
+ export { createKybChecksManager, kybChecksMachine };
@@ -0,0 +1,95 @@
1
+ import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
+ import { t as Manager } from "./Manager-C9T5amUN.js";
3
+ import "./Actor-DpTj5PFb.js";
4
+ import { a as KybChecksSection, c as KybFieldValue, d as KybText, f as KybUnsupportedModule, i as KybChecksResult, l as KybFieldValues, n as KybChecksConfig, r as KybChecksErrorKind, s as KybFieldErrors } from "./types-CTaL0XJz.js";
5
+ //#region src/modules/kyb-checks/kybChecksStateMachine.d.ts
6
+ declare const kybChecksMachine: any;
7
+ type KybChecksMachine = typeof kybChecksMachine;
8
+ //#endregion
9
+ //#region src/modules/kyb-checks/kybChecksActor.d.ts
10
+ type KybChecksActor = ActorRefFrom<KybChecksMachine>;
11
+ type CreateKybChecksActorOptions = {
12
+ config?: KybChecksConfig;
13
+ };
14
+ //#endregion
15
+ //#region src/modules/kyb-checks/kybChecksManager.d.ts
16
+ type KybChecksLoadingState = {
17
+ status: 'loading';
18
+ };
19
+ type KybChecksFormState = {
20
+ status: 'form';
21
+ title: KybText | undefined;
22
+ /** Sections in display order; the first holds the country field. */
23
+ sections: KybChecksSection[];
24
+ values: KybFieldValues;
25
+ errors: KybFieldErrors;
26
+ /** True while the form for a newly chosen country is being fetched. */
27
+ isRefetching: boolean;
28
+ /** False until a country is chosen and its form has loaded, and while a new one loads. */
29
+ canSubmit: boolean;
30
+ /** Selected checks the country can't run. Not meant for the end user. */
31
+ unsupportedModules: KybUnsupportedModule[];
32
+ };
33
+ type KybChecksSubmittingState = {
34
+ status: 'submitting';
35
+ };
36
+ type KybChecksErrorState = {
37
+ status: 'error';
38
+ errorKind: KybChecksErrorKind | undefined;
39
+ errorMessage: string | undefined;
40
+ /**
41
+ * Whether `retry()` is offered. Always after a load error; after a submit
42
+ * error only when the server rejected the request (a 4xx), because the
43
+ * checks may already have run otherwise. Offer `close()` instead.
44
+ */
45
+ canRetry: boolean;
46
+ };
47
+ /** KYB is not in the session's flow, the session is closed, or the form schema is not supported. */
48
+ type KybChecksMisconfiguredState = {
49
+ status: 'misconfigured';
50
+ };
51
+ type KybChecksFinishedState = {
52
+ status: 'finished';
53
+ result: KybChecksResult | undefined;
54
+ };
55
+ type KybChecksClosedState = {
56
+ status: 'closed';
57
+ };
58
+ /** Discriminated union of all KYB Checks manager states. */
59
+ type KybChecksState = KybChecksLoadingState | KybChecksFormState | KybChecksSubmittingState | KybChecksErrorState | KybChecksMisconfiguredState | KybChecksFinishedState | KybChecksClosedState;
60
+ declare function createKybChecksManagerFromActor(actor: KybChecksActor): Manager<KybChecksState> & {
61
+ /** Fetches the first form: the country picker. */
62
+ load(): void;
63
+ /**
64
+ * Sets a field's value and clears its error. Changing the country fetches
65
+ * that country's form. Pass `isValid: false` when the input itself knows
66
+ * the value is malformed (a phone number).
67
+ */
68
+ setField(name: string, value: KybFieldValue, isValid?: boolean): void;
69
+ /** Validates the form and, when it passes, runs the KYB checks. */
70
+ submit(): void;
71
+ /** Repeats the request that failed. */
72
+ retry(): void;
73
+ /** Closes the module. */
74
+ close(): void;
75
+ };
76
+ /** Creates a KYB Checks manager for headless or UI-driven usage. */
77
+ declare function createKybChecksManager(options?: CreateKybChecksActorOptions): Manager<KybChecksState> & {
78
+ /** Fetches the first form: the country picker. */
79
+ load(): void;
80
+ /**
81
+ * Sets a field's value and clears its error. Changing the country fetches
82
+ * that country's form. Pass `isValid: false` when the input itself knows
83
+ * the value is malformed (a phone number).
84
+ */
85
+ setField(name: string, value: KybFieldValue, isValid?: boolean): void;
86
+ /** Validates the form and, when it passes, runs the KYB checks. */
87
+ submit(): void;
88
+ /** Repeats the request that failed. */
89
+ retry(): void;
90
+ /** Closes the module. */
91
+ close(): void;
92
+ };
93
+ type KybChecksManager = ReturnType<typeof createKybChecksManager>;
94
+ //#endregion
95
+ export { KybChecksLoadingState as a, KybChecksState as c, createKybChecksManagerFromActor as d, KybChecksActor as f, KybChecksFormState as i, KybChecksSubmittingState as l, KybChecksErrorState as n, KybChecksManager as o, kybChecksMachine as p, KybChecksFinishedState as r, KybChecksMisconfiguredState as s, KybChecksClosedState as t, createKybChecksManager as u };
@@ -0,0 +1,89 @@
1
+ import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
2
+ import { t as kybChecksMachine } from "./kybChecksStateMachine-B43NAnv7.esm.js";
3
+ //#region src/modules/kyb-checks/kybChecksActor.ts
4
+ /** Creates and starts a KYB Checks actor, idle until `LOAD`. */
5
+ function createKybChecksActor(options = {}) {
6
+ return createActor(kybChecksMachine, { input: { config: options.config } }).start();
7
+ }
8
+ //#endregion
9
+ //#region src/modules/kyb-checks/kybChecksManager.ts
10
+ function mapState(snapshot) {
11
+ const typedSnapshot = snapshot;
12
+ const { context } = typedSnapshot;
13
+ if (typedSnapshot.matches("form")) {
14
+ const isRefetching = typedSnapshot.matches({ form: "refetching" });
15
+ return {
16
+ status: "form",
17
+ title: context.prepared?.title,
18
+ sections: context.prepared?.sections ?? [],
19
+ values: context.values,
20
+ errors: context.errors,
21
+ isRefetching,
22
+ canSubmit: !!context.form?.submit && !isRefetching,
23
+ unsupportedModules: context.form?.context.unsupportedModules ?? []
24
+ };
25
+ }
26
+ if (typedSnapshot.matches("submitting")) return { status: "submitting" };
27
+ if (typedSnapshot.matches("error")) return {
28
+ status: "error",
29
+ errorKind: context.errorKind,
30
+ errorMessage: context.errorMessage,
31
+ canRetry: context.canRetry
32
+ };
33
+ if (typedSnapshot.matches("misconfigured")) return { status: "misconfigured" };
34
+ if (typedSnapshot.matches("finished")) return {
35
+ status: "finished",
36
+ result: context.result
37
+ };
38
+ if (typedSnapshot.matches("closed")) return { status: "closed" };
39
+ return { status: "loading" };
40
+ }
41
+ function createApi({ actor, trackElementClicked }) {
42
+ return {
43
+ /** Fetches the first form: the country picker. */
44
+ load() {
45
+ actor.send({ type: "LOAD" });
46
+ },
47
+ /**
48
+ * Sets a field's value and clears its error. Changing the country fetches
49
+ * that country's form. Pass `isValid: false` when the input itself knows
50
+ * the value is malformed (a phone number).
51
+ */
52
+ setField(name, value, isValid) {
53
+ actor.send({
54
+ type: "SET_FIELD",
55
+ name,
56
+ value,
57
+ isValid
58
+ });
59
+ },
60
+ /** Validates the form and, when it passes, runs the KYB checks. */
61
+ submit() {
62
+ trackElementClicked?.("submit");
63
+ actor.send({ type: "SUBMIT" });
64
+ },
65
+ /** Repeats the request that failed. */
66
+ retry() {
67
+ trackElementClicked?.("retry");
68
+ actor.send({ type: "RETRY" });
69
+ },
70
+ /** Closes the module. */
71
+ close() {
72
+ trackElementClicked?.("close");
73
+ actor.send({ type: "CLOSE" });
74
+ }
75
+ };
76
+ }
77
+ function createKybChecksManagerFromActor(actor) {
78
+ return createManager({
79
+ actor,
80
+ mapState,
81
+ createApi
82
+ });
83
+ }
84
+ /** Creates a KYB Checks manager for headless or UI-driven usage. */
85
+ function createKybChecksManager(options = {}) {
86
+ return createKybChecksManagerFromActor(createKybChecksActor(options));
87
+ }
88
+ //#endregion
89
+ export { createKybChecksManagerFromActor as n, createKybChecksManager as t };