@incodetech/core 2.4.1-agentic.10 → 2.4.1-agentic.12

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 (290) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
  3. package/dist/{FaceDetectionProvider-BSLpXAGx.esm.js → FaceDetectionProvider-WtuJ6QBK.esm.js} +16 -11
  4. package/dist/{IWasmUtilCapability-BRn0wz8v.d.ts → IWasmUtilCapability-XcOtT1TP.d.ts} +5 -4
  5. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  6. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  7. package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
  8. package/dist/{StreamCanvasCapture-ixfy84ys.d.ts → StreamCanvasCapture-BnBfA6fb.d.ts} +24 -2
  9. package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
  10. package/dist/{WasmUtilProvider-C_puwvVn.esm.js → WasmUtilProvider-D5RMElzw.esm.js} +47 -4
  11. package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
  12. package/dist/{addressSearch-B_4JYKa-.esm.js → addressSearch-BzAy6lhp.esm.js} +6 -7
  13. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  14. package/dist/ae-signature.d.ts +2 -2
  15. package/dist/ae-signature.esm.js +1 -1
  16. package/dist/antifraud.d.ts +1 -1
  17. package/dist/antifraud.esm.js +2 -2
  18. package/dist/{antifraudManager-BWCVkSu2.esm.js → antifraudManager-Bw5nw5fh.esm.js} +5 -3
  19. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  20. package/dist/{antifraudStateMachine-CX9I2f3s.esm.js → antifraudStateMachine-kOfsaAuT.esm.js} +4 -6
  21. package/dist/{api-BSnbg4HO.esm.js → api-DSZSaaWr.esm.js} +3 -1
  22. package/dist/{apiError-Bmwy1Fa7.esm.js → apiError-BDuL1wTs.esm.js} +1 -1
  23. package/dist/{attemptCarry-zQH85Elh.esm.js → attemptCarry-QFQkA3na.esm.js} +1 -1
  24. package/dist/authentication.d.ts +3 -3
  25. package/dist/authentication.esm.js +2 -2
  26. package/dist/{authenticationManager-BoiOaB0m.esm.js → authenticationManager-B0SioAdd.esm.js} +7 -6
  27. package/dist/{authenticationManager-CISxaY6N.d.ts → authenticationManager-eYcurNiS.d.ts} +2 -2
  28. package/dist/{authenticationStateMachine-BMD1JLwr.esm.js → authenticationStateMachine-n1OrhPTv.esm.js} +50 -18
  29. package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
  30. package/dist/{browser-pQZA35G2-PIj2uGBm.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
  31. package/dist/calendarDate-DcqGuEht.esm.js +35 -0
  32. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  33. package/dist/camera-9yYDUOsO.d.ts +5 -0
  34. package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
  35. package/dist/camera.d.ts +2 -2
  36. package/dist/camera.esm.js +1 -1
  37. package/dist/certificate-issuance.d.ts +1 -1
  38. package/dist/certificate-issuance.esm.js +2 -2
  39. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  40. package/dist/{certificateIssuanceManager-DzDuQTsK.esm.js → certificateIssuanceManager-DPT8E9zV.esm.js} +5 -3
  41. package/dist/{certificateIssuanceStateMachine-BAOYLACb.esm.js → certificateIssuanceStateMachine-BwDb3ezx.esm.js} +3 -3
  42. package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
  43. package/dist/consent.d.ts +1 -1
  44. package/dist/consent.esm.js +2 -2
  45. package/dist/{consentManager-7aHaehwF.d.ts → consentManager-B0YKqYtZ.d.ts} +9 -8
  46. package/dist/{consentManager-DFSKQTcR.esm.js → consentManager-DRMJ3O4r.esm.js} +5 -3
  47. package/dist/{consentStateMachine-4nZIH2O8.esm.js → consentStateMachine-Br0JbW7k.esm.js} +6 -9
  48. package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
  49. package/dist/cross-document-data-match.d.ts +1 -1
  50. package/dist/cross-document-data-match.esm.js +1 -1
  51. package/dist/{crossDocumentDataMatchManager-D7ka2qOC.esm.js → crossDocumentDataMatchManager-BIQ-SYcR.esm.js} +6 -5
  52. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  53. package/dist/curp-DZGvefg3.esm.js +14 -0
  54. package/dist/curp-validation.d.ts +1 -1
  55. package/dist/curp-validation.esm.js +2 -2
  56. package/dist/{curpValidationManager-BVTt7IgC.esm.js → curpValidationManager-BKUDQ55W.esm.js} +6 -4
  57. package/dist/{curpValidationManager-DEqTUWdu.d.ts → curpValidationManager-DgUZySoq.d.ts} +4 -4
  58. package/dist/{curpValidationStateMachine-FB_MRbZQ.esm.js → curpValidationStateMachine-BwUBkyyi.esm.js} +16 -17
  59. package/dist/custom-fields.d.ts +1 -1
  60. package/dist/custom-fields.esm.js +1 -1
  61. package/dist/custom-watchlist.d.ts +1 -1
  62. package/dist/custom-watchlist.esm.js +2 -2
  63. package/dist/{customFieldsManager-gbsq53p6.esm.js → customFieldsManager-CPhONu5i.esm.js} +15 -17
  64. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  65. package/dist/{customWatchlistManager-50APwk4Z.esm.js → customWatchlistManager-cN57usIW.esm.js} +5 -3
  66. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  67. package/dist/{customWatchlistStateMachine-CpEVPzuT.esm.js → customWatchlistStateMachine-C1Xq1ugl.esm.js} +4 -6
  68. package/dist/{deepsightLoader-BKCT8UT1.esm.js → deepsightLoader-ClCQCdeL.esm.js} +5 -5
  69. package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
  70. package/dist/{desktopCameraElection-Dvvw7PRY.esm.js → desktopCameraElection-btFONYx6.esm.js} +23 -11
  71. package/dist/device.d.ts +3 -3
  72. package/dist/device.esm.js +15 -15
  73. package/dist/document-capture.d.ts +2 -2
  74. package/dist/document-capture.esm.js +2 -2
  75. package/dist/document-signature.d.ts +123 -0
  76. package/dist/document-signature.esm.js +149 -0
  77. package/dist/{documentCaptureManager-BG5TuqJz.esm.js → documentCaptureManager-5I3lKDVW.esm.js} +5 -3
  78. package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-BkaPpoKy.d.ts} +6 -5
  79. package/dist/{documentCaptureStateMachine-C7PW_Ah9.esm.js → documentCaptureStateMachine-jtQHasPA.esm.js} +9 -12
  80. package/dist/documentSignatureStateMachine-DKtU0H-F.esm.js +218 -0
  81. package/dist/dynamic-forms.d.ts +1 -1
  82. package/dist/dynamic-forms.esm.js +2 -2
  83. package/dist/{dynamicFormsManager-B0bpHhhJ.esm.js → dynamicFormsManager-B6Bv32wU.esm.js} +5 -3
  84. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  85. package/dist/{dynamicFormsStateMachine-2ZHyejBc.esm.js → dynamicFormsStateMachine-Kauq2oB-.esm.js} +12 -13
  86. package/dist/ekyb.d.ts +3 -3
  87. package/dist/ekyb.esm.js +2 -2
  88. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  89. package/dist/{ekybManager-P9mC7W9J.esm.js → ekybManager-wi135kG-.esm.js} +5 -3
  90. package/dist/{ekybStateMachine-C7HKaeVr.esm.js → ekybStateMachine-Vjb6_mFt.esm.js} +19 -23
  91. package/dist/ekyc-prefill.d.ts +1 -1
  92. package/dist/ekyc-prefill.esm.js +2 -2
  93. package/dist/ekyc.d.ts +2 -2
  94. package/dist/ekyc.esm.js +3 -3
  95. package/dist/{ekycManager-q1fos6IY.d.ts → ekycManager-BKVQazAb.d.ts} +47 -6
  96. package/dist/{ekycManager-CeeJoRFY.esm.js → ekycManager-DWCL912J.esm.js} +39 -16
  97. package/dist/{ekycPrefillManager-PPGVZbWk.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +4 -3
  98. package/dist/{ekycPrefillManager-C6BFFKxc.esm.js → ekycPrefillManager-C27Cu6rn.esm.js} +3 -2
  99. package/dist/{ekycPrefillStateMachine-Dku90kZL.esm.js → ekycPrefillStateMachine-DqXvupSw.esm.js} +12 -13
  100. package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-1hyjJ6bw.esm.js} +201 -38
  101. package/dist/{ekycStateMachine-DBTczgGE.esm.js → ekycStateMachine-DjiGyQtm.esm.js} +478 -73
  102. package/dist/{ekycUtils-Dcff8BOD.esm.js → ekycUtils-D9ui9Ztp.esm.js} +49 -43
  103. package/dist/electronic-signature.d.ts +1 -1
  104. package/dist/electronic-signature.esm.js +1 -1
  105. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  106. package/dist/{electronicSignatureManager-BKQuhJm_.esm.js → electronicSignatureManager-BHnxFx7u.esm.js} +11 -17
  107. package/dist/email.d.ts +1 -1
  108. package/dist/email.esm.js +2 -2
  109. package/dist/{emailManager-CGmKbsBL.esm.js → emailManager-CfvR6pQN.esm.js} +5 -3
  110. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  111. package/dist/{emailStateMachine-CGY1UGs2.esm.js → emailStateMachine-C4FouMzc.esm.js} +5 -7
  112. package/dist/events-CsPmTidH.esm.js +299 -0
  113. package/dist/events.d.ts +4 -1
  114. package/dist/events.esm.js +2 -1
  115. package/dist/extensibility.d.ts +41 -41
  116. package/dist/extensibility.esm.js +38 -38
  117. package/dist/face-match.d.ts +1 -1
  118. package/dist/face-match.esm.js +2 -2
  119. package/dist/{faceCaptureManagerFactory-ClFsByZc.esm.js → faceCaptureManagerFactory-BjVIUTMM.esm.js} +17 -6
  120. package/dist/{faceCaptureManagerFactory-BVwVGa3z.d.ts → faceCaptureManagerFactory-DhDPxxp-.d.ts} +23 -10
  121. package/dist/{faceCaptureSetup-9hv5GC_H.esm.js → faceCaptureSetup-q33e6ah9.esm.js} +61 -42
  122. package/dist/{faceMatchManager-BZtEw6bB.d.ts → faceMatchManager-C5b5WtcY.d.ts} +3 -2
  123. package/dist/{faceMatchManager-CRe7Nvm6.esm.js → faceMatchManager-CsPFaja4.esm.js} +5 -3
  124. package/dist/{faceMatchStateMachine-EX9QhxFE.esm.js → faceMatchStateMachine-Co2S7iN8.esm.js} +24 -23
  125. package/dist/{feature-management-CmKTG_T5.esm.js → feature-management-BhRKAG--.esm.js} +3 -2
  126. package/dist/feature-management.esm.js +1 -1
  127. package/dist/field-comparison.d.ts +1 -1
  128. package/dist/field-comparison.esm.js +1 -1
  129. package/dist/{fieldComparisonManager-DuosZJso.esm.js → fieldComparisonManager-Chn80m_n.esm.js} +7 -7
  130. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  131. package/dist/fiscal-qr.d.ts +1 -1
  132. package/dist/fiscal-qr.esm.js +1 -1
  133. package/dist/{fiscalQrManager-ji0qDaTW.esm.js → fiscalQrManager-CpX6MOy_.esm.js} +9 -8
  134. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  135. package/dist/flow-events.d.ts +1 -1
  136. package/dist/flow.d.ts +48 -12
  137. package/dist/flow.esm.js +214 -58
  138. package/dist/{flowCompletionService-DvcH16XO.esm.js → flowCompletionService-E_6ChYsV.esm.js} +2 -2
  139. package/dist/{flowServices-Ca2vKNt2.esm.js → flowServices-C23o7MqO.esm.js} +375 -13
  140. package/dist/geolocation.d.ts +1 -1
  141. package/dist/geolocation.esm.js +2 -2
  142. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
  143. package/dist/{geolocationManager-CiG32lIm.esm.js → geolocationManager-dgMVi0ed.esm.js} +5 -3
  144. package/dist/{geolocationStateMachine-5rnTEOuw.esm.js → geolocationStateMachine-CCVd9xGh.esm.js} +8 -10
  145. package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
  146. package/dist/government-validation.d.ts +1 -1
  147. package/dist/government-validation.esm.js +2 -2
  148. package/dist/{governmentValidationManager-BivVZNVe.esm.js → governmentValidationManager-D2KGYDws.esm.js} +5 -3
  149. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  150. package/dist/{governmentValidationStateMachine-CeSDNgha.esm.js → governmentValidationStateMachine-DRG-5jwQ.esm.js} +4 -6
  151. package/dist/home.d.ts +4 -3
  152. package/dist/home.esm.js +4 -2
  153. package/dist/http.esm.js +1 -1
  154. package/dist/id-ocr.d.ts +1 -1
  155. package/dist/id-ocr.esm.js +3 -3
  156. package/dist/id-selfie-flow.d.ts +5 -4
  157. package/dist/id-selfie-flow.esm.js +13 -12
  158. package/dist/id-verification.d.ts +1 -1
  159. package/dist/id-verification.esm.js +2 -2
  160. package/dist/id.d.ts +3 -3
  161. package/dist/id.esm.js +3 -3
  162. package/dist/{idCaptureDefaults-DBnOC28H.esm.js → idCaptureDefaults-BivjtJka.esm.js} +1 -1
  163. package/dist/{idCaptureManager-B5xqok0L.esm.js → idCaptureManager-B_deOVCC.esm.js} +15 -15
  164. package/dist/{idCaptureManager-CG8zbAp0.d.ts → idCaptureManager-DzAMWmRO.d.ts} +17 -9
  165. package/dist/{idCaptureServices-BIF_7rub.esm.js → idCaptureServices-BFCsusKB.esm.js} +17 -25
  166. package/dist/{idCaptureStateMachine-B5cfgKvn.esm.js → idCaptureStateMachine--CMATkG9.esm.js} +52 -57
  167. package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
  168. package/dist/{idOcrManager-DNbVTMIu.esm.js → idOcrManager-C-_bzBSX.esm.js} +5 -3
  169. package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-DflRx-_u.d.ts} +5 -4
  170. package/dist/{idOcrStateMachine-MAGnpWkb.esm.js → idOcrStateMachine-BNtBkAXC.esm.js} +13 -10
  171. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  172. package/dist/{idVerificationManager-BEAkamNm.esm.js → idVerificationManager-CdvGdtg2.esm.js} +5 -3
  173. package/dist/{idVerificationStateMachine-D5mBN2Ye.esm.js → idVerificationStateMachine-mozw0CIg.esm.js} +4 -6
  174. package/dist/identity-reuse.d.ts +2 -2
  175. package/dist/identity-reuse.esm.js +2 -2
  176. package/dist/identity-search.d.ts +97 -0
  177. package/dist/identity-search.esm.js +96 -0
  178. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
  179. package/dist/{identityReuseManager-M8-BTjar.esm.js → identityReuseManager-Z1Re4UGd.esm.js} +9 -4
  180. package/dist/{identityReuseStateMachine-D5bXgw9h.esm.js → identityReuseStateMachine-C_3fSFCw.esm.js} +24 -31
  181. package/dist/{index-CSPOoqah.d.ts → index-C0WIMlJE.d.ts} +2 -2
  182. package/dist/{index-Btj1EhiM.d.ts → index-CNck5TLp.d.ts} +1 -1
  183. package/dist/index-DHuAkTe0.d.ts +1 -0
  184. package/dist/index.d.ts +1 -1
  185. package/dist/index.esm.js +1 -1
  186. package/dist/{invokeOnCaptureCallback-C1-j4fsq.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
  187. package/dist/kyb-checks.d.ts +1 -1
  188. package/dist/kyb-checks.esm.js +2 -2
  189. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  190. package/dist/{kybChecksManager-CnqwgKoV.esm.js → kybChecksManager-D-mVF14T.esm.js} +3 -2
  191. package/dist/{kybChecksStateMachine-Be41K_NS.esm.js → kybChecksStateMachine-BARZh9GN.esm.js} +11 -14
  192. package/dist/mandatory-consent.d.ts +2 -2
  193. package/dist/mandatory-consent.esm.js +2 -2
  194. package/dist/{mandatoryConsentManager-LFhUlLvO.esm.js → mandatoryConsentManager-CKzzbbRe.esm.js} +5 -3
  195. package/dist/{mandatoryConsentManager-CYOJd_IZ.d.ts → mandatoryConsentManager-D6tBmPDy.d.ts} +10 -9
  196. package/dist/{mandatoryConsentStateMachine-DTSyDqQs.esm.js → mandatoryConsentStateMachine-DpK7fg3E.esm.js} +6 -9
  197. package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
  198. package/dist/{multipartRecordingService-CCiRpByl.esm.js → multipartRecordingService-CEtaAPz4.esm.js} +2 -2
  199. package/dist/{permissionGuards-DjQUR1du.esm.js → permissionGuards-BJIaHxvI.esm.js} +1 -1
  200. package/dist/{permissionServices-CZpORUWY.esm.js → permissionServices-6Mdq1hDk.esm.js} +8 -5
  201. package/dist/phone.d.ts +1 -1
  202. package/dist/phone.esm.js +2 -2
  203. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  204. package/dist/{phoneManager-C-qD3p3N.esm.js → phoneManager-D8-l6-0y.esm.js} +5 -3
  205. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  206. package/dist/{phoneServices-BdR1nmSO.esm.js → phoneServices-C9lFIuCM.esm.js} +3 -7
  207. package/dist/{phoneStateMachine-2FMTdjtJ.esm.js → phoneStateMachine-CGLBgJJR.esm.js} +4 -4
  208. package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
  209. package/dist/{processFaceMatch-B1YnoBer.esm.js → processFaceMatch-B1Mhqkep.esm.js} +1 -1
  210. package/dist/qe-signature.d.ts +2 -2
  211. package/dist/qe-signature.esm.js +1 -1
  212. package/dist/{recordingService-BVSCo0ac.esm.js → recordingService-CLGnDCDl.esm.js} +7 -6
  213. package/dist/redirect-to-mobile.d.ts +1 -1
  214. package/dist/redirect-to-mobile.esm.js +2 -2
  215. package/dist/{redirectToMobileManager-CqyDfDxs.esm.js → redirectToMobileManager-Djb_daci.esm.js} +6 -4
  216. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
  217. package/dist/{redirectToMobileStateMachine-CXqfo2Gd.esm.js → redirectToMobileStateMachine-BCyQFlpn.esm.js} +9 -19
  218. package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
  219. package/dist/{runChildModule-BmteMhR7.esm.js → runChildModule-DF2c6TxC.esm.js} +8 -6
  220. package/dist/{sdkVersion-KZROt6l3.esm.js → sdkVersion-B5_kVegT.esm.js} +1 -1
  221. package/dist/selfie.d.ts +5 -5
  222. package/dist/selfie.esm.js +13 -12
  223. package/dist/{selfieErrorUtils-fqxp645p.esm.js → selfieErrorUtils-BVuv5qO7.esm.js} +1 -1
  224. package/dist/{selfieManager-DREuBhXZ.d.ts → selfieManager-C5a6Fw6W.d.ts} +2 -2
  225. package/dist/{selfieManager-A-n3k9Tu.esm.js → selfieManager-Dnb5h3qV.esm.js} +7 -6
  226. package/dist/{selfieStateMachine-48PKdKrw.esm.js → selfieStateMachine-BT69FLFb.esm.js} +5 -5
  227. package/dist/{session-D0DWDKp9.esm.js → session-OCc4b-Iv.esm.js} +4 -4
  228. package/dist/session.d.ts +1 -1
  229. package/dist/session.esm.js +5 -5
  230. package/dist/{sessionInitializer-I92b2dmL.esm.js → sessionInitializer-BUUpdBy6.esm.js} +11 -12
  231. package/dist/{setup-CG6oLkAa.d.ts → setup-BpD7lYSf.d.ts} +5 -4
  232. package/dist/{setup-BpjzWqR1.esm.js → setup-CJMohzTE.esm.js} +10 -9
  233. package/dist/signature.d.ts +1 -1
  234. package/dist/signature.esm.js +2 -2
  235. package/dist/{signatureManager-M9vQBj19.esm.js → signatureManager-B6dRieBV.esm.js} +5 -3
  236. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  237. package/dist/{signatureStateMachine-0_frzAN5.esm.js → signatureStateMachine-DSW5-ZO0.esm.js} +5 -7
  238. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  239. package/dist/{stats-C2sigf9p.esm.js → stats-VqHbD5rn.esm.js} +1 -1
  240. package/dist/stats.esm.js +1 -1
  241. package/dist/step-up.d.ts +3 -2
  242. package/dist/step-up.esm.js +2 -1
  243. package/dist/{tri-DaUNvo-o.esm.js → tri-B5Yh5glk.esm.js} +2 -2
  244. package/dist/tri.d.ts +1 -1
  245. package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
  246. package/dist/tri.esm.js +1 -1
  247. package/dist/{trueSightService-DHYTBCIn.esm.js → trueSightService-D9D2IdEj.esm.js} +8 -6
  248. package/dist/trust-graph.d.ts +4 -3
  249. package/dist/trust-graph.esm.js +5 -3
  250. package/dist/{types-TisHEbBg.d.ts → types-B2DGXHe6.d.ts} +30 -1
  251. package/dist/{types-BqlZSoZ-.d.ts → types-BBHnkH6S.d.ts} +4 -4
  252. package/dist/types-BNkzXOXE.d.ts +45 -0
  253. package/dist/{types-P9LzsfRo.d.ts → types-BkWUNheX.d.ts} +1 -1
  254. package/dist/types-C2uJrJrS.d.ts +6 -0
  255. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  256. package/dist/{events-C7h7oaTE.esm.js → types-CBQN04Rh.esm.js} +5 -299
  257. package/dist/{types-CyNndVAT.d.ts → types-CaVUb1DL.d.ts} +1 -1
  258. package/dist/{types-Cbm9J2yF.d.ts → types-Crg7oL-l.d.ts} +1 -1
  259. package/dist/{types-CgihAhT_.d.ts → types-x5MQKskR.d.ts} +4 -2
  260. package/dist/video-selfie.d.ts +6 -5
  261. package/dist/video-selfie.esm.js +14 -13
  262. package/dist/{videoSelfieCameraWarmer-CTOpqhov.esm.js → videoSelfieCameraWarmer-CYEHPKK6.esm.js} +9 -9
  263. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  264. package/dist/{videoSelfieStepDetector-4XE2QI5q.d.ts → videoSelfieStepDetector-DGXi_TXk.d.ts} +18 -8
  265. package/dist/wasm.d.ts +1 -1
  266. package/dist/wasm.esm.js +1 -1
  267. package/dist/{wasmDsFlagSync-lRIgn5Ic.esm.js → wasmDsFlagSync-BNttW5Sm.esm.js} +1 -1
  268. package/dist/watchlist-for-business.d.ts +1 -1
  269. package/dist/watchlist-for-business.esm.js +2 -2
  270. package/dist/watchlist.d.ts +1 -1
  271. package/dist/watchlist.esm.js +2 -2
  272. package/dist/{watchlistForBusinessManager-C1S5y5yj.esm.js → watchlistForBusinessManager-CfLnsL8p.esm.js} +5 -3
  273. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  274. package/dist/{watchlistForBusinessStateMachine-Bj_hnoK5.esm.js → watchlistForBusinessStateMachine-EzlC_4I4.esm.js} +12 -9
  275. package/dist/{watchlistManager-BpegtZbc.esm.js → watchlistManager-CGXbemnp.esm.js} +5 -3
  276. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  277. package/dist/{watchlistStateMachine-Bgkh1gra.esm.js → watchlistStateMachine-CsNEmiXL.esm.js} +4 -6
  278. package/dist/workflow.d.ts +6 -5
  279. package/dist/workflow.esm.js +53 -43
  280. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  281. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  282. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  283. package/package.json +11 -1
  284. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  285. package/dist/camera-9wWD-pwg.d.ts +0 -4
  286. package/dist/index-DpTj5PFb.d.ts +0 -1
  287. package/dist/nationalIds-B91f_RuB.esm.js +0 -99
  288. package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
  289. package/dist/tri.esm-Df5eKLsY.esm.js +0 -2165
  290. package/dist/types-kLsU6Jkt.d.ts +0 -6
@@ -1,9 +1,10 @@
1
1
  import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
- import { t as api, u as endpoints } from "./api-BSnbg4HO.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";
2
+ import { t as api, u as endpoints } from "./api-DSZSaaWr.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 { n as calendarDateError, t as INVALID_DATE_ERROR_KEY } from "./calendarDate-DcqGuEht.esm.js";
5
6
  import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
6
- import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
7
+ import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
7
8
  //#region src/modules/id-ocr/idOcrUtils.ts
8
9
  const dateFormattingInstance$1 = new DateFormattingProvider();
9
10
  const resolveFullName = (data) => {
@@ -61,16 +62,12 @@ const mapUpdateOcrDataForApi = (params) => {
61
62
  /** Fetch ID OCR data. Throws on failure. */
62
63
  async function getOcrData(signal, isSecondId) {
63
64
  const url = isSecondId ? endpoints.ocrDataSecondId : endpoints.ocrData;
64
- const res = await api.get(url, { signal });
65
- if (!res.ok) throw new Error(`GET ${url} failed: ${res.status} ${res.statusText}`);
66
- return res.data;
65
+ return (await api.get(url, { signal })).data;
67
66
  }
68
67
  /** Updates ID OCR data if OCR data is editable. Throws on failure. */
69
68
  async function updateOcrData(params, signal, isSecondId) {
70
69
  const url = isSecondId ? endpoints.updateEditableOcrDataSecondId : endpoints.updateEditableOcrData;
71
- const res = await api.put(url, mapUpdateOcrDataForApi(params), { signal });
72
- if (!res.ok) throw new Error(`PUT failed: ${url} failed: ${res.status} ${res.statusText}`);
73
- return res.data;
70
+ return (await api.put(url, mapUpdateOcrDataForApi(params), { signal })).data;
74
71
  }
75
72
  //#endregion
76
73
  //#region src/modules/id-ocr/idOcrConsts.ts
@@ -173,6 +170,12 @@ const createValidators = () => {
173
170
  };
174
171
  const normalizeFieldValue = (value) => typeof value === "string" ? value.trim() : String(value ?? "");
175
172
  const validateFieldValue = (value, field, validators) => {
173
+ if (field.type === "date" && value) {
174
+ const hasTime = value.includes("T");
175
+ const dateError = calendarDateError(hasTime ? value.slice(0, 10) : value);
176
+ if (dateError) return dateError;
177
+ if (hasTime && !Number.isFinite(dateFormattingInstance.parseIsoDateStringToEpochMs(value))) return INVALID_DATE_ERROR_KEY;
178
+ }
176
179
  if (!field.validation) return void 0;
177
180
  for (const rule of field.validation) {
178
181
  const error = validators[rule.type](value, rule);
@@ -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-C7h7oaTE.esm.js";
2
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as idVerificationMachine } from "./idVerificationStateMachine-D5mBN2Ye.esm.js";
1
+ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CsPmTidH.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-mozw0CIg.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-BSnbg4HO.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-DSZSaaWr.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`
@@ -14,9 +14,7 @@ async function processId(input = {}, signal) {
14
14
  const endpoint = input.isSecondId ? endpoints.processSecondId : endpoints.processId;
15
15
  const queueName = input.queueName ?? "";
16
16
  const url = `${endpoint}?queueName=${encodeURIComponent(queueName)}`;
17
- const res = await api.post(url, {}, { signal });
18
- if (!res.ok) throw new Error(`POST ${endpoint} failed: ${res.status} ${res.statusText}`);
19
- return { isDocumentExpired: res.data?.isDocumentExpired ?? false };
17
+ return { isDocumentExpired: (await api.post(url, {}, { signal })).data?.isDocumentExpired ?? false };
20
18
  }
21
19
  //#endregion
22
20
  //#region src/modules/id-verification/idVerificationStateMachine.ts
@@ -1,2 +1,2 @@
1
- import { c as identityReuseMachine, d as IdentityReuseConfig, f as ReusableDocument, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as SubmitResponse, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-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-D5bXgw9h.esm.js";
2
- import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-M8-BTjar.esm.js";
1
+ import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-C_3fSFCw.esm.js";
2
+ import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-Z1Re4UGd.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,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-DSZSaaWr.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;
@@ -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-C7h7oaTE.esm.js";
2
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { n as identityReuseMachine } from "./identityReuseStateMachine-D5bXgw9h.esm.js";
1
+ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CsPmTidH.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-C_3fSFCw.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-BSnbg4HO.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-DSZSaaWr.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,5 +1,5 @@
1
- import "./Manager-C9T5amUN.js";
2
- import { n as Flow } from "./types-TisHEbBg.js";
1
+ import "./Manager-DufwKlav.js";
2
+ import { n as Flow } from "./types-B2DGXHe6.js";
3
3
  import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
4
4
  //#region src/internal/flow-events/flowEvents.d.ts
5
5
  type FlowStartedEvent = {
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.6.0-dev-20261112162640-0cc1fcb5184789f8e4473bfd48740731dbeb295a/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
@@ -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-CG6oLkAa.js";
1
+ import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-BpD7lYSf.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-BpjzWqR1.esm.js";
1
+ import { i as reset, r as isConfigured, s as setup } from "./setup-CJMohzTE.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -1,4 +1,4 @@
1
- import { y as addEvent } from "./events-C7h7oaTE.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