@incodetech/core 2.4.1-agentic.9 → 2.5.0-agentic

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-CPdofn7R.d.ts} +3 -5
  3. package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
  4. package/dist/{FaceDetectionProvider-CHpscouN.esm.js → FaceDetectionProvider-Dv9iXub0.esm.js} +21 -13
  5. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-CAxToGns.d.ts} +3 -3
  6. package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +7 -6
  7. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  8. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  9. package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-X4_2eBGd.esm.js} +15 -0
  10. package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
  11. package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +25 -3
  12. package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
  13. package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-DVFDFlIL.esm.js} +63 -6
  14. package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
  15. package/dist/{addressSearch-D6cKPWmk.esm.js → addressSearch-BKlynuBr.esm.js} +6 -7
  16. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  17. package/dist/ae-signature.d.ts +2 -2
  18. package/dist/ae-signature.esm.js +1 -1
  19. package/dist/antifraud.d.ts +1 -1
  20. package/dist/antifraud.esm.js +2 -2
  21. package/dist/{antifraudManager-CbIwM35x.esm.js → antifraudManager-BI2zr7YX.esm.js} +5 -3
  22. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  23. package/dist/{antifraudStateMachine-qNNXrlsP.esm.js → antifraudStateMachine-TWUu8wLN.esm.js} +4 -6
  24. package/dist/{api-C_P9YXbL.esm.js → api-BNxrW8xK.esm.js} +4 -1
  25. package/dist/{apiError-BeWqIYu8.esm.js → apiError-BAfdBGxH.esm.js} +1 -1
  26. package/dist/{attemptCarry-BaAXPR_w.esm.js → attemptCarry-DWM8lV9V.esm.js} +1 -1
  27. package/dist/authentication.d.ts +3 -3
  28. package/dist/authentication.esm.js +2 -2
  29. package/dist/{authenticationManager-DKLRA91K.d.ts → authenticationManager-BJElkTsj.d.ts} +2 -2
  30. package/dist/{authenticationManager-CTHFl6dl.esm.js → authenticationManager-DFzByAYo.esm.js} +7 -6
  31. package/dist/{authenticationStateMachine-D-SOzH8C.esm.js → authenticationStateMachine-CKTOhwwc.esm.js} +50 -18
  32. package/dist/avatar.d.ts +1 -1
  33. package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
  34. package/dist/{browser-pQZA35G2-DJEJnmCd.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
  35. package/dist/calendarDate-DcqGuEht.esm.js +35 -0
  36. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  37. package/dist/camera-9yYDUOsO.d.ts +5 -0
  38. package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
  39. package/dist/camera.d.ts +7 -3
  40. package/dist/camera.esm.js +1 -1
  41. package/dist/certificate-issuance.d.ts +1 -1
  42. package/dist/certificate-issuance.esm.js +2 -2
  43. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  44. package/dist/{certificateIssuanceManager-CrF3wjCH.esm.js → certificateIssuanceManager-P44yBRop.esm.js} +5 -3
  45. package/dist/{certificateIssuanceStateMachine-uSD9IkcV.esm.js → certificateIssuanceStateMachine-BPBrILt6.esm.js} +3 -3
  46. package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
  47. package/dist/consent.d.ts +1 -1
  48. package/dist/consent.esm.js +2 -2
  49. package/dist/{consentManager-BD7wwgat.esm.js → consentManager-D43w2ms-.esm.js} +5 -3
  50. package/dist/{consentManager-7aHaehwF.d.ts → consentManager-Duzd8paN.d.ts} +4 -3
  51. package/dist/{consentStateMachine-BAiLDE3D.esm.js → consentStateMachine-CLK8PfM4.esm.js} +6 -9
  52. package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
  53. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.d.ts} +1 -1
  54. package/dist/cross-document-data-match.d.ts +1 -1
  55. package/dist/cross-document-data-match.esm.js +1 -1
  56. package/dist/{crossDocumentDataMatchManager-CUc1uACE.esm.js → crossDocumentDataMatchManager-Cag_bcyW.esm.js} +6 -5
  57. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  58. package/dist/curp-DZGvefg3.esm.js +14 -0
  59. package/dist/curp-validation.d.ts +1 -1
  60. package/dist/curp-validation.esm.js +2 -2
  61. package/dist/{curpValidationManager-DBfZSQbu.esm.js → curpValidationManager-C6WmQToS.esm.js} +6 -4
  62. package/dist/{curpValidationManager-Crz3bnCo.d.ts → curpValidationManager-CmL52FU8.d.ts} +4 -4
  63. package/dist/{curpValidationStateMachine-DyAEyScb.esm.js → curpValidationStateMachine-BbJ4YAzE.esm.js} +16 -17
  64. package/dist/custom-fields.d.ts +1 -1
  65. package/dist/custom-fields.esm.js +1 -1
  66. package/dist/custom-watchlist.d.ts +1 -1
  67. package/dist/custom-watchlist.esm.js +2 -2
  68. package/dist/{customFieldsManager-BZhIPyaY.esm.js → customFieldsManager-BBy6X9nh.esm.js} +15 -17
  69. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  70. package/dist/{customWatchlistManager-B4cmxi__.esm.js → customWatchlistManager-CtBMy2EF.esm.js} +5 -3
  71. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  72. package/dist/{customWatchlistStateMachine-ZZoDGRAZ.esm.js → customWatchlistStateMachine-SS2ssNCg.esm.js} +4 -6
  73. package/dist/deepsightCaptureConfig-Nm_K8twx.esm.js +70 -0
  74. package/dist/{deepsightLoader-je1YxHgT.esm.js → deepsightLoader-BInnND1H.esm.js} +7 -6
  75. package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-B-Z2EgJJ.esm.js} +51 -1
  76. package/dist/{desktopCameraElection-m2dAj6Zu.esm.js → desktopCameraElection-JNBOXqvK.esm.js} +110 -13
  77. package/dist/device.d.ts +3 -3
  78. package/dist/device.esm.js +16 -16
  79. package/dist/document-capture.d.ts +2 -2
  80. package/dist/document-capture.esm.js +2 -2
  81. package/dist/document-signature.d.ts +123 -0
  82. package/dist/document-signature.esm.js +149 -0
  83. package/dist/{documentCaptureManager-v57klTso.esm.js → documentCaptureManager-CGDtkfWj.esm.js} +5 -3
  84. package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +7 -6
  85. package/dist/{documentCaptureStateMachine-CgCtimSa.esm.js → documentCaptureStateMachine-flAt9D4q.esm.js} +11 -13
  86. package/dist/documentSignatureStateMachine-DrRyICFT.esm.js +219 -0
  87. package/dist/dynamic-forms.d.ts +1 -1
  88. package/dist/dynamic-forms.esm.js +2 -2
  89. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  90. package/dist/{dynamicFormsManager-BKWJZfkn.esm.js → dynamicFormsManager-CxLq2KzT.esm.js} +5 -3
  91. package/dist/{dynamicFormsStateMachine-CQN8p1ux.esm.js → dynamicFormsStateMachine-By-maT_4.esm.js} +12 -13
  92. package/dist/ekyb.d.ts +3 -3
  93. package/dist/ekyb.esm.js +3 -3
  94. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  95. package/dist/{ekybManager-BD6HTwFJ.esm.js → ekybManager-CE19Pcdb.esm.js} +5 -3
  96. package/dist/{ekybStateMachine-3kceTymI.esm.js → ekybStateMachine-q7JQ-x9l.esm.js} +1214 -91
  97. package/dist/{ekybUtils-Cw8Ta9Qi.esm.js → ekybUtils-Z9MhFAer.esm.js} +11 -1
  98. package/dist/ekyc-prefill.d.ts +3 -3
  99. package/dist/ekyc-prefill.esm.js +2 -2
  100. package/dist/ekyc.d.ts +3 -3
  101. package/dist/ekyc.esm.js +3 -3
  102. package/dist/{ekycManager-CERRvIfg.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
  103. package/dist/{ekycManager-DawJq3Jo.esm.js → ekycManager-p3uenUEi.esm.js} +39 -16
  104. package/dist/{ekycPrefillManager-DLNmToWT.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +10 -9
  105. package/dist/{ekycPrefillManager-D_8NJzZf.esm.js → ekycPrefillManager-gPX3XE7u.esm.js} +3 -2
  106. package/dist/{ekycPrefillStateMachine-C-JAvkH3.esm.js → ekycPrefillStateMachine-SBnBKPGA.esm.js} +12 -13
  107. package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-BH_Ll_0A.esm.js} +201 -38
  108. package/dist/{ekycStateMachine-qvQ-b4IY.esm.js → ekycStateMachine-D0NAHzS7.esm.js} +1031 -132
  109. package/dist/{ekycUtils-Drx8ImpN.esm.js → ekycUtils-DEvtEyBI.esm.js} +55 -43
  110. package/dist/electronic-signature.d.ts +1 -1
  111. package/dist/electronic-signature.esm.js +1 -1
  112. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  113. package/dist/{electronicSignatureManager-u3UBhWw_.esm.js → electronicSignatureManager-C1M-Yxf2.esm.js} +11 -17
  114. package/dist/email.d.ts +1 -1
  115. package/dist/email.esm.js +2 -2
  116. package/dist/{emailManager-BSaGg1Gl.esm.js → emailManager-DWnhEsUf.esm.js} +5 -3
  117. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  118. package/dist/{emailStateMachine-CaoPZtZN.esm.js → emailStateMachine--T9PHflK.esm.js} +5 -7
  119. package/dist/events-ChMS-UzR.esm.js +299 -0
  120. package/dist/events.d.ts +4 -1
  121. package/dist/events.esm.js +2 -1
  122. package/dist/extensibility.d.ts +42 -42
  123. package/dist/extensibility.esm.js +38 -38
  124. package/dist/face-match.d.ts +1 -1
  125. package/dist/face-match.esm.js +2 -2
  126. package/dist/{faceCaptureManagerFactory-DKJUjsV2.esm.js → faceCaptureManagerFactory-18QW0lmV.esm.js} +29 -12
  127. package/dist/{faceCaptureManagerFactory-ZudYP6Qp.d.ts → faceCaptureManagerFactory-CHqmyOjM.d.ts} +35 -16
  128. package/dist/{faceCaptureSetup-CZzv26ip.esm.js → faceCaptureSetup-CFToXwHy.esm.js} +115 -74
  129. package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
  130. package/dist/{faceMatchManager-qPJsa5Ac.esm.js → faceMatchManager-DIStK4qi.esm.js} +5 -3
  131. package/dist/{faceMatchStateMachine-D90ZHY1r.esm.js → faceMatchStateMachine-DagrRdo2.esm.js} +49 -34
  132. package/dist/{feature-management-BMUPPAzI.esm.js → feature-management-BlscKbeV.esm.js} +3 -2
  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-BLLj_Ey1.esm.js → fieldComparisonManager-BnWBtMN7.esm.js} +7 -7
  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-Bh3rxb7Y.esm.js → fiscalQrManager-BxXaLhin.esm.js} +9 -8
  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 +50 -14
  144. package/dist/flow.esm.js +214 -58
  145. package/dist/{flowCompletionService-DgA2VEq4.esm.js → flowCompletionService-DNLssMAg.esm.js} +2 -2
  146. package/dist/{flowServices-aJ5kGxBd.esm.js → flowServices-Bzq3piUR.esm.js} +378 -18
  147. package/dist/geolocation.d.ts +1 -1
  148. package/dist/geolocation.esm.js +2 -2
  149. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
  150. package/dist/{geolocationManager-BA57nCxj.esm.js → geolocationManager-DoLbpx5e.esm.js} +5 -3
  151. package/dist/{geolocationStateMachine-3-d1ECCh.esm.js → geolocationStateMachine-d5_E7gAm.esm.js} +8 -10
  152. package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.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-D5HkBqfr.esm.js → governmentValidationManager-CaZxyEOO.esm.js} +5 -3
  156. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  157. package/dist/{governmentValidationStateMachine-BwMClTqC.esm.js → governmentValidationStateMachine-DeHHhlcf.esm.js} +4 -6
  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 +1 -1
  162. package/dist/id-ocr.esm.js +3 -3
  163. package/dist/id-selfie-flow.d.ts +7 -6
  164. package/dist/id-selfie-flow.esm.js +14 -13
  165. package/dist/id-verification.d.ts +1 -1
  166. package/dist/id-verification.esm.js +2 -2
  167. package/dist/id.d.ts +5 -5
  168. package/dist/id.esm.js +3 -3
  169. package/dist/{idCaptureDefaults-Dszuq9ng.esm.js → idCaptureDefaults-R3rHuTOE.esm.js} +4 -4
  170. package/dist/{idCaptureManager-NRGuCVv2.d.ts → idCaptureManager-CgkQW3Xc.d.ts} +24 -13
  171. package/dist/{idCaptureManager-B_TyUA3w.esm.js → idCaptureManager-D_YGMeCW.esm.js} +30 -22
  172. package/dist/{idCaptureServices-C6FUQ76N.esm.js → idCaptureServices-CP6AxsFW.esm.js} +17 -25
  173. package/dist/{idCaptureStateMachine-Cr8WdGyp.esm.js → idCaptureStateMachine-BdBtGQZP.esm.js} +114 -96
  174. package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
  175. package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-C0C7lFGd.d.ts} +4 -3
  176. package/dist/{idOcrManager-BMK2oou0.esm.js → idOcrManager-XTbpfHoF.esm.js} +5 -3
  177. package/dist/{idOcrStateMachine-RjNycN07.esm.js → idOcrStateMachine-B-00PgPh.esm.js} +13 -10
  178. package/dist/{idVerificationManager-4wY-Ee4j.esm.js → idVerificationManager-B4NYLlUl.esm.js} +5 -3
  179. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  180. package/dist/{idVerificationStateMachine-Bj00uWvh.esm.js → idVerificationStateMachine-B48Ikl-7.esm.js} +4 -6
  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 +96 -0
  185. package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +84 -17
  186. package/dist/{identityReuseManager-CCZ-ES2E.esm.js → identityReuseManager-tFeYm_So.esm.js} +9 -4
  187. package/dist/{identityReuseStateMachine-BtpkGpYZ.esm.js → identityReuseStateMachine-Ckf39qFu.esm.js} +24 -31
  188. package/dist/{index-DlVDVTcf.d.ts → index-CNck5TLp.d.ts} +1 -1
  189. package/dist/{index-BGnYn_4J.d.ts → index-CoePktWH.d.ts} +2 -2
  190. package/dist/index-DHuAkTe0.d.ts +1 -0
  191. package/dist/index.d.ts +1 -1
  192. package/dist/index.esm.js +1 -1
  193. package/dist/{invokeOnCaptureCallback-BkvXSZfa.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
  194. package/dist/kyb-checks.d.ts +1 -1
  195. package/dist/kyb-checks.esm.js +2 -2
  196. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  197. package/dist/{kybChecksManager-x2nBdasv.esm.js → kybChecksManager-DP76y-Qz.esm.js} +3 -2
  198. package/dist/{kybChecksStateMachine-DdWSo3jQ.esm.js → kybChecksStateMachine-OKLT8Zoc.esm.js} +11 -14
  199. package/dist/mandatory-consent.d.ts +2 -2
  200. package/dist/mandatory-consent.esm.js +2 -2
  201. package/dist/{mandatoryConsentManager-C9JJGENL.esm.js → mandatoryConsentManager-NX1lz6nk.esm.js} +5 -3
  202. package/dist/{mandatoryConsentManager-JNeVXgK8.d.ts → mandatoryConsentManager-kzr5kdc_.d.ts} +5 -4
  203. package/dist/{mandatoryConsentStateMachine-DLNIGElA.esm.js → mandatoryConsentStateMachine-D1J2NQSI.esm.js} +6 -9
  204. package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
  205. package/dist/{multipartRecordingService-OmSzHBqh.esm.js → multipartRecordingService-Cz-cWrpV.esm.js} +2 -2
  206. package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-Cyh71hOt.esm.js} +1 -1
  207. package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-BrtDMB0Z.esm.js} +23 -9
  208. package/dist/phone.d.ts +1 -1
  209. package/dist/phone.esm.js +2 -2
  210. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  211. package/dist/{phoneManager-BylOWecM.esm.js → phoneManager-D1QPNbu0.esm.js} +5 -3
  212. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  213. package/dist/{phoneServices-Crge7uSV.esm.js → phoneServices-DC7AuUed.esm.js} +3 -7
  214. package/dist/{phoneStateMachine-CHnhCS-4.esm.js → phoneStateMachine-CxCPxTIy.esm.js} +4 -4
  215. package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
  216. package/dist/{processFaceMatch-BveUAHts.esm.js → processFaceMatch-BQoiqLVh.esm.js} +1 -1
  217. package/dist/qe-signature.d.ts +2 -2
  218. package/dist/qe-signature.esm.js +1 -1
  219. package/dist/{recordingService-BUqAQd8F.esm.js → recordingService-CSCvD2tB.esm.js} +17 -10
  220. package/dist/redirect-to-mobile.d.ts +1 -1
  221. package/dist/redirect-to-mobile.esm.js +2 -2
  222. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +4 -3
  223. package/dist/{redirectToMobileManager-DUpLyXsq.esm.js → redirectToMobileManager-Dcpg5GfP.esm.js} +7 -4
  224. package/dist/{redirectToMobileStateMachine-D0DW4y-f.esm.js → redirectToMobileStateMachine-BMehrtVP.esm.js} +18 -21
  225. package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
  226. package/dist/{runChildModule-BTMOZdMM.esm.js → runChildModule-DNEmc7of.esm.js} +8 -6
  227. package/dist/{sdkVersion-CinXzhdk.esm.js → sdkVersion-etdZfyCR.esm.js} +1 -1
  228. package/dist/selfie.d.ts +6 -6
  229. package/dist/selfie.esm.js +15 -13
  230. package/dist/{selfieErrorUtils-D92PpZGe.esm.js → selfieErrorUtils-DT-uhK20.esm.js} +1 -1
  231. package/dist/{selfieManager-DX9Ejy4x.esm.js → selfieManager-CdS6a7Q8.esm.js} +7 -6
  232. package/dist/{selfieManager-BPOlD-UN.d.ts → selfieManager-DrBYj5kA.d.ts} +2 -2
  233. package/dist/{selfieStateMachine-BfJ5mJ57.esm.js → selfieStateMachine-ChCl3nyf.esm.js} +5 -5
  234. package/dist/{session-CswNE2eZ.esm.js → session-VXYuRYzb.esm.js} +5 -4
  235. package/dist/session.d.ts +3 -13
  236. package/dist/session.esm.js +5 -5
  237. package/dist/{sessionInitializer-DFtIRfDh.esm.js → sessionInitializer-BT_CmYcX.esm.js} +54 -79
  238. package/dist/{setup-Bl3CRduw.esm.js → setup-BXrgDdfx.esm.js} +14 -12
  239. package/dist/{setup-prV5HQCQ.d.ts → setup-rcXgYUcY.d.ts} +6 -5
  240. package/dist/signature.d.ts +1 -1
  241. package/dist/signature.esm.js +2 -2
  242. package/dist/{signatureManager-QlegdTo3.esm.js → signatureManager-B737Gkvk.esm.js} +5 -3
  243. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  244. package/dist/{signatureStateMachine-DFbbbFwg.esm.js → signatureStateMachine-B-QG7fk0.esm.js} +5 -7
  245. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  246. package/dist/{stats-Bv5PiWvo.esm.js → stats-CrqhpKkP.esm.js} +1 -1
  247. package/dist/stats.esm.js +1 -1
  248. package/dist/step-up.d.ts +3 -2
  249. package/dist/step-up.esm.js +2 -1
  250. package/dist/{tri-BUFivnaE.esm.js → tri-BD9z6z0w.esm.js} +6 -3
  251. package/dist/tri.d.ts +1 -1
  252. package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
  253. package/dist/tri.esm.js +1 -1
  254. package/dist/trueSight-BymJD5cW.esm.js +1 -0
  255. package/dist/{trueSightService-CDbmG-Mi.esm.js → trueSightService-BwyLhIAo.esm.js} +10 -8
  256. package/dist/trust-graph.d.ts +87 -27
  257. package/dist/trust-graph.esm.js +6 -25
  258. package/dist/trustGraphStateMachine-BxvReuo1.esm.js +58 -0
  259. package/dist/{types-CquDWYfv.d.ts → types-4Re9FSOw.d.ts} +68 -6
  260. package/dist/{types-D9vIGFbl.d.ts → types-B-PIc0en.d.ts} +1 -1
  261. package/dist/types-BNkzXOXE.d.ts +45 -0
  262. package/dist/types-BtrJ5fkm.d.ts +6 -0
  263. package/dist/{types-LA74KylV.d.ts → types-C1056-J1.d.ts} +1 -1
  264. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  265. package/dist/{events-kU5WJU4B.esm.js → types-CBQN04Rh.esm.js} +5 -299
  266. package/dist/{types-BD9sV5oG.d.ts → types-CEGG70FK.d.ts} +16 -3
  267. package/dist/types-CXTDuzUJ.d.ts +16 -0
  268. package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
  269. package/dist/{types-CyNndVAT.d.ts → types-Cy6Lx3L6.d.ts} +2 -2
  270. package/dist/{types-BaDx6utW.d.ts → types-DEa3taWc.d.ts} +4 -0
  271. package/dist/{types-0Rr7etmf.d.ts → types-DHpz4Y37.d.ts} +1 -1
  272. package/dist/{types-BpJ21a4T.d.ts → types-b0l9b83G.d.ts} +14 -7
  273. package/dist/video-selfie.d.ts +8 -7
  274. package/dist/video-selfie.esm.js +14 -13
  275. package/dist/{videoSelfieCameraWarmer-Dnkiqe0z.esm.js → videoSelfieCameraWarmer-DgRlU_8q.esm.js} +10 -10
  276. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  277. package/dist/{videoSelfieStepDetector-B78BE_x9.d.ts → videoSelfieStepDetector-DC_Qh7qI.d.ts} +19 -9
  278. package/dist/{warmup-DtB0DJpl.esm.js → warmup-BN8dG2KX.esm.js} +192 -42
  279. package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
  280. package/dist/wasm.d.ts +9 -3
  281. package/dist/wasm.esm.js +3 -3
  282. package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
  283. package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-DwBfTlgB.esm.js} +1 -1
  284. package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-B2P6Vlvv.esm.js} +32 -13
  285. package/dist/watchlist-for-business.d.ts +1 -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-DOYmIiaj.esm.js → watchlistForBusinessManager-DxeSH80T.esm.js} +5 -3
  290. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  291. package/dist/{watchlistForBusinessStateMachine-D8qIyL8w.esm.js → watchlistForBusinessStateMachine-BC9UWLuZ.esm.js} +12 -9
  292. package/dist/{watchlistManager-BJGLRv-x.esm.js → watchlistManager-BHzmC9OC.esm.js} +5 -3
  293. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  294. package/dist/{watchlistStateMachine-DeLfuGSl.esm.js → watchlistStateMachine-Bxzn16iJ.esm.js} +4 -6
  295. package/dist/workflow.d.ts +6 -5
  296. package/dist/workflow.esm.js +68 -49
  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 +13 -3
  301. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  302. package/dist/camera-9wWD-pwg.d.ts +0 -4
  303. package/dist/index-DpTj5PFb.d.ts +0 -1
  304. package/dist/nationalIds-B91f_RuB.esm.js +0 -99
  305. package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
  306. package/dist/tri.esm-DgtAka_v.esm.js +0 -2145
  307. package/dist/types-B2M1IPZn.d.ts +0 -6
  308. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +0 -27
@@ -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,96 @@
1
+ import { f as moduleClosed, g as screenOpened, m as screenClosed, n as eventModuleNames, p as moduleOpened } from "./types-CBQN04Rh.esm.js";
2
+ import { t as api, u as endpoints } from "./api-BNxrW8xK.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
+ await api.post(endpoints.identitySearch, {}, { signal });
16
+ }
17
+ //#endregion
18
+ //#region src/modules/identity-search/identitySearchStateMachine.ts
19
+ /**
20
+ * Budget for the whole search, waits for a lost connection included. When it
21
+ * runs out, the step finishes anyway and the flow goes on.
22
+ */
23
+ const SEARCH_TIMEOUT_MS = 1e4;
24
+ /**
25
+ * The step has no UI and no manager, so the machine reports its own
26
+ * lifecycle with the usual codes: `moduleOpened`, then the
27
+ * `IDENTITY_SEARCH.searching` screen while the request runs, then one screen
28
+ * named after the outcome, then `moduleClosed`.
29
+ */
30
+ const ANALYTICS_MODULE = eventModuleNames.identitySearch;
31
+ function analyticsScreen(name) {
32
+ return `${ANALYTICS_MODULE}.${name}`;
33
+ }
34
+ /**
35
+ * IDENTITY_SEARCH in a Flow: a step without UI that searches as soon as it
36
+ * starts. The backend keeps what it found on the session, and the reuse step
37
+ * reads it from there, so the step has no output. Nothing sends LOAD to such a
38
+ * step (see `trustGraphMachine`), and the orchestrator moves on only when the
39
+ * machine reaches its final state.
40
+ *
41
+ * It always gets there: when the backend answers, or after an error or the
42
+ * timeout. It never errors, so a failed search can't stop the flow; the reuse
43
+ * step then has nothing to offer.
44
+ */
45
+ const identitySearchMachine = setup({
46
+ types: {
47
+ context: {},
48
+ input: {}
49
+ },
50
+ actions: {
51
+ reportSearchStarted: () => {
52
+ moduleOpened(ANALYTICS_MODULE);
53
+ screenOpened(ANALYTICS_MODULE, analyticsScreen("searching"));
54
+ },
55
+ reportSearchFinished: ({ context }) => {
56
+ const outcome = analyticsScreen(context.outcome ?? "answered");
57
+ screenClosed(ANALYTICS_MODULE, analyticsScreen("searching"));
58
+ screenOpened(ANALYTICS_MODULE, outcome);
59
+ screenClosed(ANALYTICS_MODULE, outcome);
60
+ moduleClosed(ANALYTICS_MODULE);
61
+ }
62
+ },
63
+ actors: { searchIdentity: fromPromise(({ signal }) => retryAfterReconnect(() => searchIdentity(signal), signal)) },
64
+ delays: { searchTimeout: SEARCH_TIMEOUT_MS }
65
+ }).createMachine({
66
+ id: "identitySearch",
67
+ initial: "searching",
68
+ context: { outcome: void 0 },
69
+ states: {
70
+ searching: {
71
+ entry: "reportSearchStarted",
72
+ invoke: {
73
+ id: "searchIdentity",
74
+ src: "searchIdentity",
75
+ onDone: {
76
+ target: "finished",
77
+ actions: assign({ outcome: "answered" })
78
+ },
79
+ onError: {
80
+ target: "finished",
81
+ actions: assign({ outcome: "failed" })
82
+ }
83
+ },
84
+ after: { searchTimeout: {
85
+ target: "finished",
86
+ actions: assign({ outcome: "timedOut" })
87
+ } }
88
+ },
89
+ finished: {
90
+ type: "final",
91
+ entry: "reportSearchFinished"
92
+ }
93
+ }
94
+ });
95
+ //#endregion
96
+ 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;
@@ -120,6 +142,10 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
120
142
  type: "setError";
121
143
  params: NonReducibleUnknown;
122
144
  };
145
+ clearError: {
146
+ type: "clearError";
147
+ params: NonReducibleUnknown;
148
+ };
123
149
  setSelectedDocument: {
124
150
  type: "setSelectedDocument";
125
151
  params: NonReducibleUnknown;
@@ -128,8 +154,8 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
128
154
  type: "setCompanyName";
129
155
  params: NonReducibleUnknown;
130
156
  };
131
- clearError: {
132
- type: "clearError";
157
+ setIdentityShared: {
158
+ type: "setIdentityShared";
133
159
  params: NonReducibleUnknown;
134
160
  };
135
161
  }>, Values<{
@@ -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-kU5WJU4B.esm.js";
2
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { n as identityReuseMachine } from "./identityReuseStateMachine-BtpkGpYZ.esm.js";
1
+ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-ChMS-UzR.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-Ckf39qFu.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"
@@ -1,6 +1,6 @@
1
- import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
- import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
2
+ import { i as assign, 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/identity-reuse/identityReuseServices.ts
5
5
  function lowerFirstLetter(value) {
6
6
  if (!value) return value;
@@ -31,27 +31,11 @@ function adaptDocument(doc) {
31
31
  }
32
32
  /** Fetches reusable identity documents. Throws on failure. */
33
33
  async function fetchDocuments(signal) {
34
- const res = await api.get(endpoints.identityReuseDocuments, { signal });
35
- if (!res.ok) throw new Error(`GET ${endpoints.identityReuseDocuments} failed: ${res.status} ${res.statusText} — ${JSON.stringify(res.data)}`);
36
- return (res.data?.documents ?? []).map(adaptDocument);
37
- }
38
- /**
39
- * Fetches the name of the organization receiving the reused document.
40
- * Resolves `undefined` when the name is missing or blank. Throws on failure.
41
- */
42
- async function fetchCompanyName(signal) {
43
- const res = await api.get(endpoints.identityReuseCandidates, { signal });
44
- if (!res.ok) throw new Error(`GET ${endpoints.identityReuseCandidates} failed: ${res.status} ${res.statusText} — ${JSON.stringify(res.data)}`);
45
- const name = res.data?.currentOrganizationName;
46
- if (typeof name !== "string") return void 0;
47
- const trimmed = name.trim();
48
- return trimmed.length > 0 ? trimmed : void 0;
34
+ return ((await api.get(endpoints.identityReuseDocuments, { signal })).data?.documents ?? []).map(adaptDocument);
49
35
  }
50
36
  /** Submits the chosen document (or scan-new) for reuse. Throws on failure. */
51
37
  async function submitDocument(params, signal) {
52
- const res = await api.post(endpoints.identityReuseSubmit, params, { signal });
53
- if (!res.ok) throw new Error(`POST ${endpoints.identityReuseSubmit} failed: ${res.status} ${res.statusText} — ${JSON.stringify(res.data)}`);
54
- return res.data;
38
+ return (await api.post(endpoints.identityReuseSubmit, params, { signal })).data;
55
39
  }
56
40
  //#endregion
57
41
  //#region src/modules/identity-reuse/identityReuseStateMachine.ts
@@ -61,9 +45,10 @@ async function submitDocument(params, signal) {
61
45
  */
62
46
  const SCAN_NEW_DOCUMENT = "scanNew";
63
47
  /**
64
- * Budget for the company-name lookup, counted from the start of loading. The
65
- * name is cosmetic copy: once the budget runs out the picker opens as soon as
66
- * the documents are in and the UI falls back to name-less copy.
48
+ * Budget for a host-provided company-name lookup, counted from the start of
49
+ * loading. The name is cosmetic copy: once the budget runs out the picker
50
+ * opens as soon as the documents are in and the UI falls back to name-less
51
+ * copy. The default lookup answers at once.
67
52
  */
68
53
  const COMPANY_NAME_TIMEOUT_MS = 1e3;
69
54
  function deriveSubmitParams(selectedDocumentId) {
@@ -77,15 +62,14 @@ const identityReuseMachine = setup({
77
62
  types: {
78
63
  context: {},
79
64
  events: {},
80
- input: {}
65
+ input: {},
66
+ output: {}
81
67
  },
82
68
  actors: {
83
69
  fetchDocuments: fromPromise(async ({ signal }) => {
84
70
  return fetchDocuments(signal);
85
71
  }),
86
- fetchCompanyName: fromPromise(async ({ signal }) => {
87
- return fetchCompanyName(signal);
88
- }),
72
+ fetchCompanyName: fromPromise(async () => void 0),
89
73
  submitDocument: fromPromise(async ({ input, signal }) => {
90
74
  return submitDocument(input, signal);
91
75
  })
@@ -103,7 +87,11 @@ const identityReuseMachine = setup({
103
87
  }),
104
88
  setCompanyName: assign(({ event }) => ({ companyName: event.output })),
105
89
  setError: assign(({ event }) => ({ error: String(event.error) })),
106
- clearError: assign({ error: () => void 0 })
90
+ clearError: assign({ error: () => void 0 }),
91
+ setIdentityShared: assign(({ context, event }) => {
92
+ const output = event.output;
93
+ return { identityShared: deriveSubmitParams(context.selectedDocumentId).accepted && output?.identityShared === true };
94
+ })
107
95
  },
108
96
  guards: {
109
97
  hasDocuments: ({ context }) => context.documents.length > 0,
@@ -122,8 +110,10 @@ const identityReuseMachine = setup({
122
110
  documents: [],
123
111
  selectedDocumentId: void 0,
124
112
  companyName: void 0,
125
- error: void 0
113
+ error: void 0,
114
+ identityShared: false
126
115
  }),
116
+ output: ({ context }) => ({ identityShared: context.identityShared }),
127
117
  states: {
128
118
  idle: { on: { LOAD: { target: "loading" } } },
129
119
  loading: {
@@ -191,7 +181,10 @@ const identityReuseMachine = setup({
191
181
  id: "submitDocument",
192
182
  src: "submitDocument",
193
183
  input: ({ context }) => deriveSubmitParams(context.selectedDocumentId),
194
- onDone: { target: "finished" },
184
+ onDone: {
185
+ target: "finished",
186
+ actions: "setIdentityShared"
187
+ },
195
188
  onError: {
196
189
  target: "error",
197
190
  actions: "setError"
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.6.0-dev-20261106194836-3be2f3455028545d5047fdf7a07ac4e7bd6a38a1/node_modules/@incodetech/tri-sdk/dist/index.d.ts
1
+ //#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.6.0-dev-20261118130106-3b5181d76a540a606e9971dfbe3ea37052d775a9/node_modules/@incodetech/tri-sdk/dist/index.d.ts
2
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' | 'fpsignals';
3
3
  /**
4
4
  * The configurable sub-events of each collector key. For a key in
@@ -1,5 +1,5 @@
1
- import "./Manager-C9T5amUN.js";
2
- import { n as Flow } from "./types-CquDWYfv.js";
1
+ import "./Manager-DufwKlav.js";
2
+ import { n as Flow } from "./types-4Re9FSOw.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 = {
@@ -0,0 +1 @@
1
+ import "./Manager-DufwKlav.js";
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-prV5HQCQ.js";
1
+ import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-rcXgYUcY.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-Bl3CRduw.esm.js";
1
+ import { i as reset, r as isConfigured, s as setup } from "./setup-BXrgDdfx.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -1,4 +1,4 @@
1
- import { y as addEvent } from "./events-kU5WJU4B.esm.js";
1
+ import { v as addEvent } from "./types-CBQN04Rh.esm.js";
2
2
  //#region src/internal/captureOnly/invokeOnCaptureCallback.ts
3
3
  /**
4
4
  * Invokes an integrator-provided `onCapture` callback with the assembled
@@ -1,3 +1,3 @@
1
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";
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-B7Di9auB.js";
3
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 };
@@ -1,3 +1,3 @@
1
- import { t as kybChecksMachine } from "./kybChecksStateMachine-DdWSo3jQ.esm.js";
2
- import { t as createKybChecksManager } from "./kybChecksManager-x2nBdasv.esm.js";
1
+ import { t as kybChecksMachine } from "./kybChecksStateMachine-OKLT8Zoc.esm.js";
2
+ import { t as createKybChecksManager } from "./kybChecksManager-DP76y-Qz.esm.js";
3
3
  export { createKybChecksManager, kybChecksMachine };
@@ -1,6 +1,6 @@
1
- import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-DpTj5PFb.js";
1
+ import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
2
+ import { t as Manager } from "./Manager-DufwKlav.js";
3
+ import "./Actor-DqjOqDfU.js";
4
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
5
  //#region src/modules/kyb-checks/kybChecksStateMachine.d.ts
6
6
  declare const kybChecksMachine: any;
@@ -1,5 +1,6 @@
1
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
2
- import { t as kybChecksMachine } from "./kybChecksStateMachine-DdWSo3jQ.esm.js";
1
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
2
+ import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
3
+ import { t as kybChecksMachine } from "./kybChecksStateMachine-OKLT8Zoc.esm.js";
3
4
  //#region src/modules/kyb-checks/kybChecksActor.ts
4
5
  /** Creates and starts a KYB Checks actor, idle until `LOAD`. */
5
6
  function createKybChecksActor(options = {}) {
@@ -1,11 +1,11 @@
1
- import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
- import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-BeWqIYu8.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
2
+ import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-BAfdBGxH.esm.js";
3
3
  import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
4
- import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.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
6
  import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
7
- import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-f9PhUo9j.esm.js";
8
- import { r as hasAllowedCharacters, t as formatPhoneE164 } from "./phoneFormat-DEpESpz2.esm.js";
7
+ import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
8
+ import { n as hasAllowedCharacters, t as formatPhoneE164 } from "./phoneFormat-C3q0Ukh4.esm.js";
9
9
  function isSupportedSchema(form) {
10
10
  return String(form.schemaVersion).split(".")[0] === "1";
11
11
  }
@@ -61,7 +61,8 @@ const KYB_CHECKS_SUPPORTED_IDS = {
61
61
  groupRules: /* @__PURE__ */ new Set(["oneOfRequired"]),
62
62
  optionLists: /* @__PURE__ */ new Set(["US_STATES"]),
63
63
  conditions: /* @__PURE__ */ new Set(),
64
- prefillSources: /* @__PURE__ */ new Set()
64
+ prefillSources: /* @__PURE__ */ new Set(),
65
+ flags: /* @__PURE__ */ new Set(["payload.omitWhenEmpty"])
65
66
  };
66
67
  /** A served regex of the one shape `allowedCharacters` can express: `^[…]{1,n}$` or `^[…]+$`. */
67
68
  const CHARACTER_CLASS_REGEX = /^\^\[([^\]]+)\](?:\{[01],(\d+)\}|\+)\$$/;
@@ -464,12 +465,10 @@ function buildSubmitBody(submit, values) {
464
465
  */
465
466
  async function fetchKybForm(country, signal) {
466
467
  try {
467
- const res = await api.get(endpoints.kybForm, {
468
+ return (await api.get(endpoints.kybForm, {
468
469
  query: { country },
469
470
  signal
470
- });
471
- if (!res.ok) throw res;
472
- return res.data;
471
+ })).data;
473
472
  } catch (error) {
474
473
  throw toIncodeApiError(endpoints.kybForm, error);
475
474
  }
@@ -480,9 +479,7 @@ async function fetchKybForm(country, signal) {
480
479
  */
481
480
  async function submitKyb(body, signal) {
482
481
  try {
483
- const res = await api.post(endpoints.kybSubmit, body, { signal });
484
- if (!res.ok) throw res;
485
- return res.data;
482
+ return (await api.post(endpoints.kybSubmit, body, { signal })).data;
486
483
  } catch (error) {
487
484
  throw toIncodeApiError(endpoints.kybSubmit, error);
488
485
  }
@@ -1,3 +1,3 @@
1
- import { r as MandatoryConsentConfig } from "./types-LA74KylV.js";
2
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-JNeVXgK8.js";
1
+ import { r as MandatoryConsentConfig } from "./types-C1056-J1.js";
2
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-kzr5kdc_.js";
3
3
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };