@incodetech/core 2.4.1 → 2.5.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
  3. package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
  4. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-ppyMYVoY.esm.js} +7 -744
  5. package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
  6. package/dist/{FaceDetectionProvider-J_-1Cwck.esm.js → FaceDetectionProvider-D0DbKUKC.esm.js} +28 -64
  7. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  8. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  9. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
  10. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +33 -6
  11. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  12. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  13. package/dist/MultipartRecordingProvider-CduV32Qa.esm.js +151 -0
  14. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  15. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-BOwciHDC.d.ts} +20 -4
  16. package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
  17. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  18. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-0xTxgP0R.esm.js} +114 -25
  19. package/dist/WorkerEncoderRecordingProvider-CsDED9UU.esm.js +80 -0
  20. package/dist/addressSearch-Rxm1K67A.esm.js +73 -0
  21. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-CxZyPRyh.esm.js} +4 -2
  22. package/dist/ae-signature.d.ts +2 -2
  23. package/dist/ae-signature.esm.js +1 -1
  24. package/dist/antifraud.d.ts +1 -1
  25. package/dist/antifraud.esm.js +2 -2
  26. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  27. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
  28. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
  29. package/dist/{api-Cz90EHyu.esm.js → api-CZpuJuZl.esm.js} +11 -6
  30. package/dist/{apiError-9Yi8xMeB.esm.js → apiError-DJHHF70K.esm.js} +1 -1
  31. package/dist/attemptCarry-BecGGZK8.esm.js +45 -0
  32. package/dist/authentication.d.ts +3 -3
  33. package/dist/authentication.esm.js +2 -2
  34. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-B0WPJjvz.d.ts} +2 -2
  35. package/dist/{authenticationManager-pKQS4fHT.esm.js → authenticationManager-CkjV81NT.esm.js} +7 -6
  36. package/dist/{authenticationStateMachine-D_DygKtQ.esm.js → authenticationStateMachine-BoPwxHAI.esm.js} +50 -18
  37. package/dist/avatar.d.ts +1 -1
  38. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  39. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-DS1oDiUq.esm.js} +12 -107
  40. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  41. package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
  42. package/dist/camera.d.ts +2 -2
  43. package/dist/camera.esm.js +1 -1
  44. package/dist/certificate-issuance.d.ts +1 -1
  45. package/dist/certificate-issuance.esm.js +2 -2
  46. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  47. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-DaUklfNj.esm.js} +5 -3
  48. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-_EQcjGE3.esm.js} +4 -4
  49. package/dist/cnpj-Bl_olpdX.esm.js +79 -0
  50. package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
  51. package/dist/consent.d.ts +1 -1
  52. package/dist/consent.esm.js +2 -2
  53. package/dist/{consentManager-Ca8FHlC4.d.ts → consentManager-B2F_VeAo.d.ts} +13 -5
  54. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-BPocwpm2.esm.js} +7 -4
  55. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-DgiIcT9q.esm.js} +22 -9
  56. package/dist/cpf-DDXMTLYr.esm.js +37 -0
  57. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
  58. package/dist/cross-document-data-match.d.ts +1 -1
  59. package/dist/cross-document-data-match.esm.js +1 -1
  60. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-BfA29Aji.esm.js} +6 -4
  61. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  62. package/dist/curp-DZGvefg3.esm.js +14 -0
  63. package/dist/curp-validation.d.ts +1 -1
  64. package/dist/curp-validation.esm.js +2 -2
  65. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -3
  66. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
  67. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +30 -22
  68. package/dist/custom-fields.d.ts +1 -1
  69. package/dist/custom-fields.esm.js +1 -1
  70. package/dist/custom-watchlist.d.ts +1 -1
  71. package/dist/custom-watchlist.esm.js +2 -2
  72. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
  73. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  74. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
  75. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  76. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
  77. package/dist/{deepsightService-C3DVBOZd.esm.js → deepsightLoader-ngnhyO6B.esm.js} +39 -69
  78. package/dist/definitionSource-Nw0YCbpe.esm.js +221 -0
  79. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BKFjsQpO.esm.js} +178 -41
  80. package/dist/device.esm.js +2 -2
  81. package/dist/document-capture.d.ts +3 -3
  82. package/dist/document-capture.esm.js +2 -2
  83. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-BKaJVQxg.esm.js} +30 -20
  84. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-BZBmcOKI.d.ts} +41 -7
  85. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BYLb5Azk.esm.js} +107 -58
  86. package/dist/dynamic-forms.d.ts +2 -2
  87. package/dist/dynamic-forms.esm.js +2 -2
  88. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-C45pTncO.d.ts} +4 -4
  89. package/dist/{dynamicFormsManager-DK_oc5Oy.esm.js → dynamicFormsManager-CC3t8bqX.esm.js} +5 -3
  90. package/dist/{dynamicFormsStateMachine-CGlIAWZ6.esm.js → dynamicFormsStateMachine-Vsn6kszV.esm.js} +4 -4
  91. package/dist/ekyb.d.ts +5 -5
  92. package/dist/ekyb.esm.js +3 -3
  93. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-BflWuTe4.d.ts} +5 -5
  94. package/dist/{ekybManager-BLgkiWXw.esm.js → ekybManager-DgNO6c0e.esm.js} +5 -3
  95. package/dist/{ekybStateMachine-BfgOUZMK.esm.js → ekybStateMachine-DHybwePr.esm.js} +40 -56
  96. package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
  97. package/dist/ekyc-prefill.d.ts +17 -0
  98. package/dist/ekyc-prefill.esm.js +3 -0
  99. package/dist/ekyc.d.ts +4 -3
  100. package/dist/ekyc.esm.js +3 -3
  101. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BKVQazAb.d.ts} +49 -7
  102. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
  103. package/dist/ekycPrefillManager-DOTl3Y2w.d.ts +566 -0
  104. package/dist/ekycPrefillManager-Drq_nYJ3.esm.js +103 -0
  105. package/dist/ekycPrefillStateMachine-CycO-K3B.esm.js +687 -0
  106. package/dist/ekycRules-DXP2hqVw.esm.js +479 -0
  107. package/dist/ekycStateMachine-nwJRel2s.esm.js +7897 -0
  108. package/dist/ekycUtils-FcqA6oU4.esm.js +1491 -0
  109. package/dist/electronic-signature.d.ts +1 -1
  110. package/dist/electronic-signature.esm.js +1 -1
  111. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  112. package/dist/{electronicSignatureManager-CjKvJ6E-.esm.js → electronicSignatureManager-hn-_ADP5.esm.js} +8 -6
  113. package/dist/email.d.ts +1 -1
  114. package/dist/email.esm.js +2 -2
  115. package/dist/{emailManager-ButFktRm.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
  116. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  117. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-CTEaYncs.esm.js} +34 -22
  118. package/dist/events-CP3yOzAl.esm.js +299 -0
  119. package/dist/events.d.ts +3 -1
  120. package/dist/events.esm.js +2 -1
  121. package/dist/extensibility.d.ts +43 -41
  122. package/dist/extensibility.esm.js +39 -37
  123. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
  124. package/dist/face-match.d.ts +1 -1
  125. package/dist/face-match.esm.js +2 -2
  126. package/dist/{faceCaptureManagerFactory-BDGhg24q.esm.js → faceCaptureManagerFactory-B2POCGth.esm.js} +17 -6
  127. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-BZjGT392.d.ts} +84 -72
  128. package/dist/{faceCaptureSetup-CvGYG4GZ.esm.js → faceCaptureSetup-DCBK1osx.esm.js} +117 -482
  129. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-C5b5WtcY.d.ts} +23 -7
  130. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
  131. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +68 -29
  132. package/dist/{feature-management-D4ne_hXW.esm.js → feature-management-BFfuXr1M.esm.js} +35 -21
  133. package/dist/feature-management.esm.js +1 -1
  134. package/dist/field-comparison.d.ts +1 -1
  135. package/dist/field-comparison.esm.js +1 -1
  136. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-VgCU4X96.esm.js} +6 -4
  137. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  138. package/dist/fiscal-qr.d.ts +1 -1
  139. package/dist/fiscal-qr.esm.js +1 -1
  140. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-D4G-4xKE.esm.js} +9 -7
  141. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  142. package/dist/flow-events.d.ts +1 -1
  143. package/dist/flow.d.ts +75 -24
  144. package/dist/flow.esm.js +288 -70
  145. package/dist/{flowCompletionService-Cemwaa5b.esm.js → flowCompletionService-Crry_GxY.esm.js} +24 -3
  146. package/dist/{flowServices-X6Rwf_7E.esm.js → flowServices-Cj8SQjQT.esm.js} +447 -183
  147. package/dist/geolocation.d.ts +1 -1
  148. package/dist/geolocation.esm.js +2 -2
  149. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-CENrvxpK.d.ts} +19 -20
  150. package/dist/{geolocationManager-B0dc5rW9.esm.js → geolocationManager-qpTiVlc6.esm.js} +9 -9
  151. package/dist/{geolocationStateMachine-B3rcoODF.esm.js → geolocationStateMachine-Dk10UW9G.esm.js} +14 -10
  152. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
  153. package/dist/government-validation.d.ts +1 -1
  154. package/dist/government-validation.esm.js +2 -2
  155. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
  156. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  157. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-wBunpfQ9.esm.js} +3 -3
  158. package/dist/home.d.ts +4 -3
  159. package/dist/home.esm.js +4 -2
  160. package/dist/http.esm.js +1 -1
  161. package/dist/id-ocr.d.ts +2 -2
  162. package/dist/id-ocr.esm.js +3 -19
  163. package/dist/id-selfie-flow.d.ts +6 -5
  164. package/dist/id-selfie-flow.esm.js +14 -12
  165. package/dist/id-verification.d.ts +1 -1
  166. package/dist/id-verification.esm.js +2 -2
  167. package/dist/id.d.ts +4 -17
  168. package/dist/id.esm.js +4 -4
  169. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-Drh207VJ.esm.js} +3 -3
  170. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-C4Xk02cS.d.ts} +76 -12
  171. package/dist/{idCaptureManager-IouAnrFm.esm.js → idCaptureManager-RrDMn2tS.esm.js} +68 -19
  172. package/dist/{idCaptureServices-VTKIPSpT.esm.js → idCaptureServices-BqDlOnzD.esm.js} +29 -198
  173. package/dist/{idCaptureStateMachine-_Pn2Xkpb.esm.js → idCaptureStateMachine-DFa1GOap.esm.js} +962 -554
  174. package/dist/idOcrCpfUtils-D5Gwskxu.esm.js +18 -0
  175. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-C0C7lFGd.d.ts} +7 -6
  176. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
  177. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B832arAl.esm.js} +11 -10
  178. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  179. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
  180. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
  181. package/dist/identity-reuse.d.ts +2 -2
  182. package/dist/identity-reuse.esm.js +2 -2
  183. package/dist/identity-search.d.ts +97 -0
  184. package/dist/identity-search.esm.js +97 -0
  185. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
  186. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
  187. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
  188. package/dist/index-DHuAkTe0.d.ts +1 -0
  189. package/dist/{index-CKQ9QBZP.d.ts → index-DxYNO94y.d.ts} +2 -2
  190. package/dist/index.d.ts +1 -1
  191. package/dist/index.esm.js +1 -1
  192. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
  193. package/dist/kyb-checks.d.ts +3 -0
  194. package/dist/kyb-checks.esm.js +3 -0
  195. package/dist/kybChecksManager-B7Di9auB.d.ts +95 -0
  196. package/dist/kybChecksManager-CcEXyOlg.esm.js +90 -0
  197. package/dist/kybChecksStateMachine-DEKqDA2G.esm.js +720 -0
  198. package/dist/mandatory-consent.d.ts +2 -2
  199. package/dist/mandatory-consent.esm.js +2 -2
  200. package/dist/{mandatoryConsentManager-qYojnZYg.d.ts → mandatoryConsentManager-Bh1asNJh.d.ts} +28 -11
  201. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +7 -4
  202. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +32 -13
  203. package/dist/mediaRecorderOptions-g1TwTlhd.esm.js +87 -0
  204. package/dist/multipartRecordingService-WgK8ieRI.esm.js +407 -0
  205. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-pcrrqrPR.esm.js} +1 -1
  206. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DFJlH7K3.esm.js} +11 -9
  207. package/dist/phone-number.d.ts +7 -1
  208. package/dist/phone-number.esm.js +15 -2
  209. package/dist/phone.d.ts +1 -1
  210. package/dist/phone.esm.js +2 -2
  211. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  212. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-VO1HEoUZ.d.ts} +8 -3
  213. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-rA7updqF.esm.js} +6 -4
  214. package/dist/phoneServices-CFXcwCFr.esm.js +77 -0
  215. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +56 -84
  216. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  217. package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
  218. package/dist/processFaceMatch-B_DkDTE5.esm.js +21 -0
  219. package/dist/qe-signature.d.ts +2 -2
  220. package/dist/qe-signature.esm.js +1 -1
  221. package/dist/recordingService-DxiwS8TV.esm.js +397 -0
  222. package/dist/redirect-to-mobile.d.ts +2 -2
  223. package/dist/redirect-to-mobile.esm.js +2 -2
  224. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-DjsEtWLq.esm.js} +9 -6
  225. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +6 -4
  226. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-CMjjUXSu.esm.js} +67 -28
  227. package/dist/resolveForm-DaaQSVWp.esm.js +146 -0
  228. package/dist/{runChildModule-DSpP41Hl.esm.js → runChildModule-CJzb91Cf.esm.js} +9 -7
  229. package/dist/{sdkVersion-DKHwWEyH.esm.js → sdkVersion-k-QlBWlU.esm.js} +1 -1
  230. package/dist/selfie.d.ts +4 -4
  231. package/dist/selfie.esm.js +13 -12
  232. package/dist/{selfieErrorUtils-DoN1KFSQ.esm.js → selfieErrorUtils-F449y_PI.esm.js} +1 -1
  233. package/dist/{selfieManager-DtQegA6T.esm.js → selfieManager-Ba2YqjfY.esm.js} +7 -6
  234. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-aPdwxSFt.d.ts} +2 -2
  235. package/dist/{selfieStateMachine-CnCwJZuC.esm.js → selfieStateMachine-CTjb-Qr4.esm.js} +5 -5
  236. package/dist/{session-CNUfjlRc.esm.js → session-DPL5QWRx.esm.js} +77 -9
  237. package/dist/session.d.ts +96 -10
  238. package/dist/session.esm.js +7 -6
  239. package/dist/{sessionInitializer-JM_glXR2.esm.js → sessionInitializer-43LQITNU.esm.js} +359 -115
  240. package/dist/{setup-YPKTUCY5.d.ts → setup-DpOr8H_l.d.ts} +2 -2
  241. package/dist/{setup-C5tfWt6W.esm.js → setup-lcBOfaNE.esm.js} +36 -27
  242. package/dist/signature.d.ts +1 -1
  243. package/dist/signature.esm.js +2 -2
  244. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BgAja97K.esm.js} +5 -3
  245. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  246. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
  247. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  248. package/dist/{stats-BEvexnKC.esm.js → stats-DoByUnTa.esm.js} +1 -1
  249. package/dist/stats.esm.js +1 -1
  250. package/dist/textRules-D4NRinKY.d.ts +41 -0
  251. package/dist/{trueSightService-fLmL_cyg.esm.js → trueSightService-Bs6xqUXD.esm.js} +22 -10
  252. package/dist/trust-graph.d.ts +4 -3
  253. package/dist/trust-graph.esm.js +5 -3
  254. package/dist/{types-yPH8lAH-.d.ts → types-9wlf1-GE.d.ts} +3 -3
  255. package/dist/types-B-PIc0en.d.ts +115 -0
  256. package/dist/types-B9C8W01q.d.ts +34 -0
  257. package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
  258. package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
  259. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  260. package/dist/types-CE1jkHw3.d.ts +6 -0
  261. package/dist/types-CTaL0XJz.d.ts +80 -0
  262. package/dist/{types-DUnFZ08M.d.ts → types-CyNndVAT.d.ts} +16 -8
  263. package/dist/types-DEa3taWc.d.ts +217 -0
  264. package/dist/{types-CK8Jbjkp.d.ts → types-DFP7eSle.d.ts} +1 -1
  265. package/dist/{types-Ckir_BEs.d.ts → types-DJPU3W2M.d.ts} +3 -2
  266. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  267. package/dist/{events-Du2A4-Qr.esm.js → types-DYYMdAGv.esm.js} +4 -299
  268. package/dist/{types-B6HsSzpk.d.ts → types-Ddc4Tr_f.d.ts} +42 -6
  269. package/dist/{types-BAxn7MpY.d.ts → types-YA7ieDOx.d.ts} +125 -50
  270. package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
  271. package/dist/usStates-CwOQ2kAx.esm.js +209 -0
  272. package/dist/video-selfie.d.ts +16 -14
  273. package/dist/video-selfie.esm.js +100 -24
  274. package/dist/{videoSelfieCameraWarmer-BBNKiau1.esm.js → videoSelfieCameraWarmer-a7GBfmEZ.esm.js} +27 -28
  275. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  276. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +10 -5
  277. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  278. package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
  279. package/dist/{warmup-BElYWRh7.esm.js → warmup-BZOMg303.esm.js} +243 -30
  280. package/dist/wasm.d.ts +9 -3
  281. package/dist/wasm.esm.js +3 -3
  282. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-DPK7qGgo.esm.js} +1 -1
  283. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
  284. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-CyLCM31e.esm.js} +45 -26
  285. package/dist/watchlist-for-business.d.ts +2 -1
  286. package/dist/watchlist-for-business.esm.js +2 -2
  287. package/dist/watchlist.d.ts +1 -1
  288. package/dist/watchlist.esm.js +2 -2
  289. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +40 -8
  290. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +57 -21
  291. package/dist/watchlistForBusinessStateMachine-BMWm5mcP.esm.js +166 -0
  292. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
  293. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  294. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
  295. package/dist/workflow.d.ts +234 -45
  296. package/dist/workflow.esm.js +194 -80
  297. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  298. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  299. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  300. package/package.json +24 -7
  301. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  302. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  303. package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
  304. package/dist/cpf-uAZTPUBy.esm.js +0 -61
  305. package/dist/deepsightLoader-sH7920zw.esm.js +0 -55
  306. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  307. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  308. package/dist/index-DpTj5PFb.d.ts +0 -1
  309. package/dist/types-BvLo3U4u.d.ts +0 -134
  310. package/dist/types-zOgZqMni.d.ts +0 -6
  311. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  312. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -0,0 +1,18 @@
1
+ import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
2
+ //#region src/modules/id-ocr/idOcrCpfUtils.ts
3
+ function formatCPF(value) {
4
+ const digits = value.replace(/\D/g, "").slice(0, 11);
5
+ const first = digits.slice(0, 3);
6
+ const second = digits.slice(3, 6);
7
+ const third = digits.slice(6, 9);
8
+ const verifier = digits.slice(9, 11);
9
+ if (digits.length > 9) return `${first}.${second}.${third}-${verifier}`;
10
+ if (digits.length > 6) return `${first}.${second}.${third}`;
11
+ if (digits.length > 3) return `${first}.${second}`;
12
+ return first;
13
+ }
14
+ function isValidCPF(value) {
15
+ return validateCPF(value);
16
+ }
17
+ //#endregion
18
+ export { isValidCPF as n, formatCPF as t };
@@ -1,7 +1,8 @@
1
- import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-DpTj5PFb.js";
4
- import { a as UpdateOcrResponse, i as UpdateOcrDataParams, n as OcrData, t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
1
+ import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput, T as Values, _ as IsNotNever, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, g as InputFrom, h as GetConcreteByKey, i as ActorRefFrom, j as StateMachine, m as EventObject, o as AnyActorLogic, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, w as StateValue, x as RequiredActorOptions, y as MetaObject } from "./spawn-COZKetCS.js";
2
+ import "./xstate.cjs-D6Ur0X1F.js";
3
+ import { t as Manager } from "./Manager-DufwKlav.js";
4
+ import "./Actor-DqjOqDfU.js";
5
+ import { a as UpdateOcrResponse, i as UpdateOcrDataParams, n as OcrData, t as IdOcrConfig } from "./types-Bpo97EOh.js";
5
6
  //#region src/modules/id-ocr/idOcrStateMachine.d.ts
6
7
  type IdOcrOcrDocument = 'first' | 'second';
7
8
  type IdOcrContext = {
@@ -109,7 +110,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
109
110
  type: "shouldProceedWithoutSubmitToSecondId";
110
111
  params: unknown;
111
112
  };
112
- }>, never, "error" | "idle" | "success" | "finished" | "submitting" | "loading" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
113
+ }>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
113
114
  readonly id: "idOcr";
114
115
  readonly initial: "idle";
115
116
  readonly context: ({ input }: {
@@ -210,7 +211,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
210
211
  config: IdOcrConfig;
211
212
  formData: UpdateOcrDataParams;
212
213
  editedFields: {};
213
- activeOcrDocument: IdOcrOcrDocument;
214
+ activeOcrDocument: "second" | "first";
214
215
  };
215
216
  readonly states: {
216
217
  readonly idle: {
@@ -1,6 +1,8 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
2
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as idOcrStateMachine } from "./idOcrStateMachine-DyENX6Ki.esm.js";
1
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
3
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
4
+ import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
5
+ import { t as idOcrStateMachine } from "./idOcrStateMachine-B832arAl.esm.js";
4
6
  //#region src/modules/id-ocr/idOcrActor.ts
5
7
  function createIdOcrActor(options) {
6
8
  return createActor(idOcrStateMachine, { input: { config: options.config } }).start();
@@ -1,8 +1,9 @@
1
- import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
2
- import { t as api, u as endpoints } from "./api-Cz90EHyu.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 { n as DateFormattingProvider, t as validateCPF } from "./cpf-uAZTPUBy.esm.js";
1
+ import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
3
+ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
4
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
5
+ import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
6
+ import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
6
7
  //#region src/modules/id-ocr/idOcrUtils.ts
7
8
  const dateFormattingInstance$1 = new DateFormattingProvider();
8
9
  const resolveFullName = (data) => {
@@ -255,8 +256,8 @@ const idOcrStateMachine = setup({
255
256
  editedFields: {},
256
257
  validationErrors: void 0
257
258
  })),
258
- resetForRetry: assign(() => ({
259
- activeOcrDocument: "first",
259
+ resetForRetry: assign(({ context }) => ({
260
+ activeOcrDocument: context.config.ocrDocument ?? "first",
260
261
  formData: emptyOcrData(),
261
262
  editedFields: {},
262
263
  error: void 0,
@@ -266,10 +267,10 @@ const idOcrStateMachine = setup({
266
267
  },
267
268
  guards: {
268
269
  isOcrEditable: ({ context }) => context.config.editableOcr === true,
269
- shouldLoadSecondOcrAfterFirst: ({ context }) => context.config.secondId === true && context.activeOcrDocument === "first",
270
+ shouldLoadSecondOcrAfterFirst: ({ context }) => context.config.ocrDocument === void 0 && context.config.secondId === true && context.activeOcrDocument === "first",
270
271
  isOcrFormValid: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0,
271
272
  shouldSubmit: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0 && Object.keys(context.editedFields).length > 0,
272
- shouldProceedWithoutSubmitToSecondId: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0 && Object.keys(context.editedFields).length === 0 && context.config.secondId === true && context.activeOcrDocument === "first"
273
+ shouldProceedWithoutSubmitToSecondId: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0 && Object.keys(context.editedFields).length === 0 && context.config.ocrDocument === void 0 && context.config.secondId === true && context.activeOcrDocument === "first"
273
274
  }
274
275
  }).createMachine({
275
276
  id: "idOcr",
@@ -280,7 +281,7 @@ const idOcrStateMachine = setup({
280
281
  config: input.config,
281
282
  formData: data,
282
283
  editedFields: {},
283
- activeOcrDocument: "first"
284
+ activeOcrDocument: input.config.ocrDocument ?? "first"
284
285
  };
285
286
  },
286
287
  states: {
@@ -1,6 +1,7 @@
1
- import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-DpTj5PFb.js";
1
+ import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput, _ as IsNotNever, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, g as InputFrom, h as GetConcreteByKey, i as ActorRefFrom, j as StateMachine, m as EventObject, o as AnyActorLogic, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, w as StateValue, x as RequiredActorOptions, y as MetaObject } from "./spawn-COZKetCS.js";
2
+ import "./xstate.cjs-D6Ur0X1F.js";
3
+ import { t as Manager } from "./Manager-DufwKlav.js";
4
+ import "./Actor-DqjOqDfU.js";
4
5
  //#region src/modules/id-verification/types.d.ts
5
6
  type IdVerificationConfig = {
6
7
  /** When true, verify the second captured ID via `/omni/process/second-id`. */
@@ -1,6 +1,8 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
2
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as idVerificationMachine } from "./idVerificationStateMachine-CL1kUdBe.esm.js";
1
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
3
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
4
+ import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
5
+ import { t as idVerificationMachine } from "./idVerificationStateMachine-DeeugC00.esm.js";
4
6
  //#region src/modules/id-verification/idVerificationActor.ts
5
7
  function createIdVerificationActor(options) {
6
8
  return createActor(idVerificationMachine, { input: { config: options.config } }).start();
@@ -1,6 +1,6 @@
1
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
2
- import { t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
+ import { t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
3
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
4
4
  //#region src/modules/id-verification/idVerificationServices.ts
5
5
  /**
6
6
  * Submits the captured ID for backend verification. Wraps `POST /omni/process/id`
@@ -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-ooAbp6Kc.js";
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
+ import { c as identityReuseMachine, d as IdentityReuseConfig, f as IdentityReuseOutput, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, m as SubmitResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as ReusableDocument, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-CZ-qJ_Aa.js";
2
+ export { type FetchCompanyNameResponse, type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseOutput, 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-CLFjPp13.esm.js";
2
+ import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-CjFZ7WRa.esm.js";
3
3
  export { SCAN_NEW_DOCUMENT, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
@@ -0,0 +1,97 @@
1
+ import { O as PromiseActorLogic, T as Values, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, d as DoneActorEvent, j as StateMachine, m as EventObject, p as ErrorActorEvent, t as ActionFunction, y as MetaObject } from "./spawn-COZKetCS.js";
2
+ import "./xstate.cjs-D6Ur0X1F.js";
3
+ //#region src/modules/identity-search/types.d.ts
4
+ /**
5
+ * Configuration options for the IdentitySearch module. It has none: the
6
+ * backend searches with the session's hint, which is the contact verified
7
+ * earlier in the session or the hint sent when the session started.
8
+ */
9
+ type IdentitySearchConfig = {};
10
+ //#endregion
11
+ //#region src/modules/identity-search/identitySearchStateMachine.d.ts
12
+ type IdentitySearchInput = {
13
+ config: IdentitySearchConfig;
14
+ };
15
+ /**
16
+ * How the search ended: the backend answered, the request failed, or the
17
+ * budget ran out. Each one finishes the step the same way.
18
+ */
19
+ type SearchOutcome = 'answered' | 'failed' | 'timedOut';
20
+ type IdentitySearchContext = {
21
+ outcome: SearchOutcome | undefined;
22
+ };
23
+ /**
24
+ * IDENTITY_SEARCH in a Flow: a step without UI that searches as soon as it
25
+ * starts. The backend keeps what it found on the session, and the reuse step
26
+ * reads it from there, so the step has no output. Nothing sends LOAD to such a
27
+ * step (see `trustGraphMachine`), and the orchestrator moves on only when the
28
+ * machine reaches its final state.
29
+ *
30
+ * It always gets there: when the backend answers, or after an error or the
31
+ * timeout. It never errors, so a failed search can't stop the flow; the reuse
32
+ * step then has nothing to offer.
33
+ */
34
+ declare const identitySearchMachine: StateMachine<IdentitySearchContext, AnyEventObject, {
35
+ [x: string]: ActorRefFromLogic<PromiseActorLogic<void, void, EventObject>> | undefined;
36
+ }, {
37
+ src: "searchIdentity";
38
+ logic: PromiseActorLogic<void, void, EventObject>;
39
+ id: string | undefined;
40
+ }, Values<{
41
+ reportSearchStarted: {
42
+ type: "reportSearchStarted";
43
+ params: unknown;
44
+ };
45
+ reportSearchFinished: {
46
+ type: "reportSearchFinished";
47
+ params: unknown;
48
+ };
49
+ }>, never, "searchTimeout", "finished" | "searching", string, IdentitySearchInput, NonReducibleUnknown, EventObject, MetaObject, {
50
+ readonly id: "identitySearch";
51
+ readonly initial: "searching";
52
+ readonly context: {
53
+ readonly outcome: undefined;
54
+ };
55
+ readonly states: {
56
+ readonly searching: {
57
+ readonly entry: "reportSearchStarted";
58
+ readonly invoke: {
59
+ readonly id: "searchIdentity";
60
+ readonly src: "searchIdentity";
61
+ readonly onDone: {
62
+ readonly target: "finished";
63
+ readonly actions: ActionFunction<IdentitySearchContext, DoneActorEvent<void, string>, AnyEventObject, undefined, {
64
+ src: "searchIdentity";
65
+ logic: PromiseActorLogic<void, void, EventObject>;
66
+ id: string | undefined;
67
+ }, never, never, never, never>;
68
+ };
69
+ readonly onError: {
70
+ readonly target: "finished";
71
+ readonly actions: ActionFunction<IdentitySearchContext, ErrorActorEvent<unknown, string>, AnyEventObject, undefined, {
72
+ src: "searchIdentity";
73
+ logic: PromiseActorLogic<void, void, EventObject>;
74
+ id: string | undefined;
75
+ }, never, never, never, never>;
76
+ };
77
+ };
78
+ readonly after: {
79
+ readonly searchTimeout: {
80
+ readonly target: "finished";
81
+ readonly actions: ActionFunction<IdentitySearchContext, AnyEventObject, AnyEventObject, undefined, {
82
+ src: "searchIdentity";
83
+ logic: PromiseActorLogic<void, void, EventObject>;
84
+ id: string | undefined;
85
+ }, never, never, never, never>;
86
+ };
87
+ };
88
+ };
89
+ readonly finished: {
90
+ readonly type: "final";
91
+ readonly entry: "reportSearchFinished";
92
+ };
93
+ };
94
+ }>;
95
+ type IdentitySearchMachine = typeof identitySearchMachine;
96
+ //#endregion
97
+ export { type IdentitySearchConfig, type IdentitySearchMachine, identitySearchMachine };
@@ -0,0 +1,97 @@
1
+ import { f as moduleClosed, g as screenOpened, m as screenClosed, n as eventModuleNames, p as moduleOpened } from "./types-DYYMdAGv.esm.js";
2
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
3
+ import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
4
+ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
5
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
6
+ //#region src/modules/identity-search/identitySearchServices.ts
7
+ /**
8
+ * Runs the identity search for this session. The backend searches with the
9
+ * session's hint (the contact verified earlier in the session, or the hint
10
+ * sent when the session started) and keeps what it found on the session,
11
+ * where the reuse step reads it. It answers with no result of its own. Throws
12
+ * on failure.
13
+ */
14
+ async function searchIdentity(signal) {
15
+ const res = await api.post(endpoints.identitySearch, {}, { signal });
16
+ if (!res.ok) throw new Error(`POST ${endpoints.identitySearch} failed: ${res.status} ${res.statusText}`);
17
+ }
18
+ //#endregion
19
+ //#region src/modules/identity-search/identitySearchStateMachine.ts
20
+ /**
21
+ * Budget for the whole search, waits for a lost connection included. When it
22
+ * runs out, the step finishes anyway and the flow goes on.
23
+ */
24
+ const SEARCH_TIMEOUT_MS = 1e4;
25
+ /**
26
+ * The step has no UI and no manager, so the machine reports its own
27
+ * lifecycle with the usual codes: `moduleOpened`, then the
28
+ * `IDENTITY_SEARCH.searching` screen while the request runs, then one screen
29
+ * named after the outcome, then `moduleClosed`.
30
+ */
31
+ const ANALYTICS_MODULE = eventModuleNames.identitySearch;
32
+ function analyticsScreen(name) {
33
+ return `${ANALYTICS_MODULE}.${name}`;
34
+ }
35
+ /**
36
+ * IDENTITY_SEARCH in a Flow: a step without UI that searches as soon as it
37
+ * starts. The backend keeps what it found on the session, and the reuse step
38
+ * reads it from there, so the step has no output. Nothing sends LOAD to such a
39
+ * step (see `trustGraphMachine`), and the orchestrator moves on only when the
40
+ * machine reaches its final state.
41
+ *
42
+ * It always gets there: when the backend answers, or after an error or the
43
+ * timeout. It never errors, so a failed search can't stop the flow; the reuse
44
+ * step then has nothing to offer.
45
+ */
46
+ const identitySearchMachine = setup({
47
+ types: {
48
+ context: {},
49
+ input: {}
50
+ },
51
+ actions: {
52
+ reportSearchStarted: () => {
53
+ moduleOpened(ANALYTICS_MODULE);
54
+ screenOpened(ANALYTICS_MODULE, analyticsScreen("searching"));
55
+ },
56
+ reportSearchFinished: ({ context }) => {
57
+ const outcome = analyticsScreen(context.outcome ?? "answered");
58
+ screenClosed(ANALYTICS_MODULE, analyticsScreen("searching"));
59
+ screenOpened(ANALYTICS_MODULE, outcome);
60
+ screenClosed(ANALYTICS_MODULE, outcome);
61
+ moduleClosed(ANALYTICS_MODULE);
62
+ }
63
+ },
64
+ actors: { searchIdentity: fromPromise(({ signal }) => retryAfterReconnect(() => searchIdentity(signal), signal)) },
65
+ delays: { searchTimeout: SEARCH_TIMEOUT_MS }
66
+ }).createMachine({
67
+ id: "identitySearch",
68
+ initial: "searching",
69
+ context: { outcome: void 0 },
70
+ states: {
71
+ searching: {
72
+ entry: "reportSearchStarted",
73
+ invoke: {
74
+ id: "searchIdentity",
75
+ src: "searchIdentity",
76
+ onDone: {
77
+ target: "finished",
78
+ actions: assign({ outcome: "answered" })
79
+ },
80
+ onError: {
81
+ target: "finished",
82
+ actions: assign({ outcome: "failed" })
83
+ }
84
+ },
85
+ after: { searchTimeout: {
86
+ target: "finished",
87
+ actions: assign({ outcome: "timedOut" })
88
+ } }
89
+ },
90
+ finished: {
91
+ type: "final",
92
+ entry: "reportSearchFinished"
93
+ }
94
+ }
95
+ });
96
+ //#endregion
97
+ export { identitySearchMachine };
@@ -1,6 +1,7 @@
1
- import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-DpTj5PFb.js";
1
+ import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput, T as Values, _ as IsNotNever, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, f as DoneStateEvent, g as InputFrom, h as GetConcreteByKey, i as ActorRefFrom, j as StateMachine, m as EventObject, o as AnyActorLogic, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, w as StateValue, x as RequiredActorOptions, y as MetaObject } from "./spawn-COZKetCS.js";
2
+ import "./xstate.cjs-D6Ur0X1F.js";
3
+ import { t as Manager } from "./Manager-DufwKlav.js";
4
+ import "./Actor-DqjOqDfU.js";
4
5
  //#region src/modules/identity-reuse/types.d.ts
5
6
  /**
6
7
  * Configuration options for the IdentityReuse module.
@@ -45,8 +46,9 @@ type ReusableDocument = {
45
46
  type FetchDocumentsResponse = ReusableDocument[];
46
47
  /**
47
48
  * Name of the organization receiving the reused document, as resolved by the
48
- * `fetchCompanyName` actor, or `undefined` when the backend does not provide
49
- * one. Use it to type a `fetchCompanyName` override passed to `.provide()`.
49
+ * `fetchCompanyName` actor. The backend has no route for it, so the default
50
+ * actor resolves `undefined`. Use it to type a `fetchCompanyName` override
51
+ * passed to `.provide()` that supplies the name.
50
52
  */
51
53
  type FetchCompanyNameResponse = string | undefined;
52
54
  /**
@@ -61,8 +63,26 @@ type SubmitParams = {
61
63
  } | {
62
64
  accepted: false;
63
65
  };
64
- /** @internal Response from POST /omni/identity-reuse/submit — shape TBD */
65
- type SubmitResponse = {};
66
+ /**
67
+ * @internal Response from POST /omni/identity-reuse/submit.
68
+ *
69
+ * `identityShared` is true only when the backend imported the accepted
70
+ * document into this session. A backend that doesn't send it counts as no
71
+ * share. Other fields are allowed, so a `.provide()` override written for an
72
+ * earlier version, which returned other fields, still compiles.
73
+ */
74
+ type SubmitResponse = {
75
+ identityShared?: boolean;
76
+ [key: string]: unknown;
77
+ };
78
+ /**
79
+ * Terminal output of the IdentityReuse module. `identityShared` is true only
80
+ * when the backend imported a document the person accepted. Every other way
81
+ * the step ends reports false: a new scan, a skip, or no reusable documents.
82
+ */
83
+ type IdentityReuseOutput = {
84
+ identityShared: boolean;
85
+ };
66
86
  //#endregion
67
87
  //#region src/modules/identity-reuse/identityReuseStateMachine.d.ts
68
88
  /**
@@ -77,6 +97,8 @@ type IdentityReuseContext = {
77
97
  selectedDocumentId: SelectedDocumentId | undefined;
78
98
  companyName: string | undefined;
79
99
  error: string | undefined;
100
+ /** The backend imported the document the person accepted. */
101
+ identityShared: boolean;
80
102
  };
81
103
  type IdentityReuseInput = {
82
104
  config: IdentityReuseConfig;
@@ -132,6 +154,10 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
132
154
  type: "setCompanyName";
133
155
  params: NonReducibleUnknown;
134
156
  };
157
+ setIdentityShared: {
158
+ type: "setIdentityShared";
159
+ params: NonReducibleUnknown;
160
+ };
135
161
  }>, Values<{
136
162
  hasDocuments: {
137
163
  type: "hasDocuments";
@@ -150,7 +176,7 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
150
176
  documents: "done" | "fetching";
151
177
  company: "done" | "fetching" | "check";
152
178
  };
153
- }, string, IdentityReuseInput, NonReducibleUnknown, EventObject, MetaObject, {
179
+ }, string, IdentityReuseInput, IdentityReuseOutput, EventObject, MetaObject, {
154
180
  readonly id: "identityReuse";
155
181
  readonly initial: "idle";
156
182
  readonly context: ({ input }: {
@@ -256,6 +282,38 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
256
282
  selectedDocumentId: undefined;
257
283
  companyName: undefined;
258
284
  error: undefined;
285
+ identityShared: false;
286
+ };
287
+ readonly output: ({ context }: {
288
+ context: IdentityReuseContext;
289
+ event: DoneStateEvent<unknown>;
290
+ self: ActorRef<MachineSnapshot<IdentityReuseContext, {
291
+ type: "LOAD";
292
+ } | {
293
+ type: "DOCUMENT_CHOSEN";
294
+ documentId: SelectedDocumentId;
295
+ } | {
296
+ type: "SUBMIT";
297
+ documentId?: SelectedDocumentId;
298
+ } | {
299
+ type: "SKIP";
300
+ } | {
301
+ type: "RETRY";
302
+ }, Record<string, AnyActorRef>, StateValue, string, unknown, any, any>, {
303
+ type: "LOAD";
304
+ } | {
305
+ type: "DOCUMENT_CHOSEN";
306
+ documentId: SelectedDocumentId;
307
+ } | {
308
+ type: "SUBMIT";
309
+ documentId?: SelectedDocumentId;
310
+ } | {
311
+ type: "SKIP";
312
+ } | {
313
+ type: "RETRY";
314
+ }, AnyEventObject>;
315
+ }) => {
316
+ identityShared: boolean;
259
317
  };
260
318
  readonly states: {
261
319
  readonly idle: {
@@ -357,6 +415,7 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
357
415
  }) => SubmitParams;
358
416
  readonly onDone: {
359
417
  readonly target: "finished";
418
+ readonly actions: "setIdentityShared";
360
419
  };
361
420
  readonly onError: {
362
421
  readonly target: "error";
@@ -401,10 +460,11 @@ type IdentityReuseIdleState = {
401
460
  status: 'idle';
402
461
  };
403
462
  /**
404
- * Fetching reusable documents and, in parallel, the name of the organization
405
- * receiving them. The name lookup is non-fatal and never keeps this state
406
- * longer than one second after loading starts, unless the documents
407
- * themselves take longer.
463
+ * Fetching reusable documents. A host that supplies the receiving
464
+ * organization's name through a `fetchCompanyName` override runs it in
465
+ * parallel; that lookup is non-fatal and never keeps this state longer than
466
+ * one second after loading starts, unless the documents themselves take
467
+ * longer. By default there is no lookup.
408
468
  */
409
469
  type IdentityReuseLoadingState = {
410
470
  status: 'loading';
@@ -419,7 +479,8 @@ type IdentityReuseLoadingState = {
419
479
  * `'scanNew'` if the user picked the scan-new row. Auto-populated to
420
480
  * `documents[0].id` on entry, so a bare `submit()` reuses the best match.
421
481
  * @property companyName - Name of the organization receiving the reused
422
- * document. Absent when the backend does not provide one.
482
+ * document. The backend doesn't provide it, so it is absent unless a host
483
+ * supplies it through a `fetchCompanyName` override.
423
484
  */
424
485
  type IdentityReuseDocumentsFoundState = {
425
486
  status: 'documentsFound';
@@ -431,9 +492,15 @@ type IdentityReuseDocumentsFoundState = {
431
492
  type IdentityReuseSubmittingState = {
432
493
  status: 'submitting';
433
494
  };
434
- /** Module completed successfully */
495
+ /**
496
+ * Module completed successfully
497
+ * @property output - Whether a document was shared (`identityShared`). A flow
498
+ * reads it to skip the ID capture, so forward it with
499
+ * `flowManager.completeModule(output)`.
500
+ */
435
501
  type IdentityReuseFinishedState = {
436
502
  status: 'finished';
503
+ output?: IdentityReuseOutput;
437
504
  };
438
505
  /**
439
506
  * A recoverable error occurred — user can retry or skip
@@ -538,4 +605,4 @@ declare function createIdentityReuseManagerFromActor(actor: IdentityReuseActor):
538
605
  };
539
606
  type IdentityReuseManager = ReturnType<typeof createIdentityReuseManager>;
540
607
  //#endregion
541
- export { IdentityReuseActor as a, identityReuseMachine as c, IdentityReuseConfig as d, ReusableDocument as f, createIdentityReuseManagerFromActor as i, FetchCompanyNameResponse as l, IdentityReuseState as n, SCAN_NEW_DOCUMENT as o, SubmitResponse as p, createIdentityReuseManager as r, SelectedDocumentId as s, IdentityReuseManager as t, FetchDocumentsResponse as u };
608
+ export { IdentityReuseActor as a, identityReuseMachine as c, IdentityReuseConfig as d, IdentityReuseOutput as f, createIdentityReuseManagerFromActor as i, FetchCompanyNameResponse as l, SubmitResponse as m, IdentityReuseState as n, SCAN_NEW_DOCUMENT as o, ReusableDocument as p, createIdentityReuseManager as r, SelectedDocumentId as s, IdentityReuseManager as t, FetchDocumentsResponse as u };
@@ -1,6 +1,8 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
2
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { n as identityReuseMachine } from "./identityReuseStateMachine-DfV81wQC.esm.js";
1
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
3
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
4
+ import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
5
+ import { n as identityReuseMachine } from "./identityReuseStateMachine-CLFjPp13.esm.js";
4
6
  //#region src/modules/identity-reuse/identityReuseActor.ts
5
7
  /**
6
8
  * Creates and starts an IdentityReuse actor.
@@ -23,7 +25,10 @@ function mapState(snapshot) {
23
25
  ...context.companyName !== void 0 && { companyName: context.companyName }
24
26
  };
25
27
  if (snapshot.matches("submitting")) return { status: "submitting" };
26
- if (snapshot.matches("finished")) return { status: "finished" };
28
+ if (snapshot.matches("finished")) return {
29
+ status: "finished",
30
+ output: snapshot.output
31
+ };
27
32
  if (snapshot.matches("error")) return {
28
33
  status: "error",
29
34
  error: context.error ?? "An error occurred"