@incodetech/core 2.4.1 → 2.5.0-rc.0

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 (311) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
  3. package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
  4. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-ppyMYVoY.esm.js} +7 -744
  5. package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
  6. package/dist/{FaceDetectionProvider-J_-1Cwck.esm.js → FaceDetectionProvider-n9u4dEn_.esm.js} +28 -64
  7. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  8. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  9. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
  10. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +33 -6
  11. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  12. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  13. package/dist/MultipartRecordingProvider-CduV32Qa.esm.js +151 -0
  14. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  15. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +13 -4
  16. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  17. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-0xTxgP0R.esm.js} +114 -25
  18. package/dist/WorkerEncoderRecordingProvider-CsDED9UU.esm.js +80 -0
  19. package/dist/addressSearch-Rxm1K67A.esm.js +73 -0
  20. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-CxZyPRyh.esm.js} +4 -2
  21. package/dist/ae-signature.d.ts +2 -2
  22. package/dist/ae-signature.esm.js +1 -1
  23. package/dist/antifraud.d.ts +1 -1
  24. package/dist/antifraud.esm.js +2 -2
  25. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  26. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
  27. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
  28. package/dist/{api-Cz90EHyu.esm.js → api-CZpuJuZl.esm.js} +11 -6
  29. package/dist/{apiError-9Yi8xMeB.esm.js → apiError-CtArBUt-.esm.js} +1 -1
  30. package/dist/attemptCarry-BecGGZK8.esm.js +45 -0
  31. package/dist/authentication.d.ts +3 -3
  32. package/dist/authentication.esm.js +2 -2
  33. package/dist/{authenticationManager-pKQS4fHT.esm.js → authenticationManager-9N3eg3Uh.esm.js} +7 -6
  34. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-DRaugLgH.d.ts} +2 -2
  35. package/dist/{authenticationStateMachine-D_DygKtQ.esm.js → authenticationStateMachine-DoK5RKIS.esm.js} +50 -18
  36. package/dist/avatar.d.ts +1 -1
  37. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  38. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-DS1oDiUq.esm.js} +12 -107
  39. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  40. package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
  41. package/dist/camera.d.ts +2 -2
  42. package/dist/camera.esm.js +1 -1
  43. package/dist/certificate-issuance.d.ts +1 -1
  44. package/dist/certificate-issuance.esm.js +2 -2
  45. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  46. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-DaUklfNj.esm.js} +5 -3
  47. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-_EQcjGE3.esm.js} +4 -4
  48. package/dist/cnpj-Bl_olpdX.esm.js +79 -0
  49. package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
  50. package/dist/consent.d.ts +1 -1
  51. package/dist/consent.esm.js +2 -2
  52. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-BPocwpm2.esm.js} +7 -4
  53. package/dist/{consentManager-Ca8FHlC4.d.ts → consentManager-vI6QHkHU.d.ts} +16 -8
  54. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-DgiIcT9q.esm.js} +22 -9
  55. package/dist/cpf-DDXMTLYr.esm.js +37 -0
  56. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
  57. package/dist/cross-document-data-match.d.ts +1 -1
  58. package/dist/cross-document-data-match.esm.js +1 -1
  59. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-BfA29Aji.esm.js} +6 -4
  60. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  61. package/dist/curp-DZGvefg3.esm.js +14 -0
  62. package/dist/curp-validation.d.ts +1 -1
  63. package/dist/curp-validation.esm.js +2 -2
  64. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -3
  65. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
  66. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +30 -22
  67. package/dist/custom-fields.d.ts +1 -1
  68. package/dist/custom-fields.esm.js +1 -1
  69. package/dist/custom-watchlist.d.ts +1 -1
  70. package/dist/custom-watchlist.esm.js +2 -2
  71. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
  72. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  73. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
  74. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  75. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
  76. package/dist/{deepsightService-C3DVBOZd.esm.js → deepsightLoader-zG373VVx.esm.js} +39 -69
  77. package/dist/definitionSource-Nw0YCbpe.esm.js +221 -0
  78. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BKFjsQpO.esm.js} +178 -41
  79. package/dist/device.esm.js +2 -2
  80. package/dist/document-capture.d.ts +3 -3
  81. package/dist/document-capture.esm.js +2 -2
  82. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-BKaJVQxg.esm.js} +30 -20
  83. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-CoGcEiMK.d.ts} +42 -8
  84. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BYLb5Azk.esm.js} +107 -58
  85. package/dist/dynamic-forms.d.ts +2 -2
  86. package/dist/dynamic-forms.esm.js +2 -2
  87. package/dist/{dynamicFormsManager-DK_oc5Oy.esm.js → dynamicFormsManager-BfQKWG7a.esm.js} +5 -3
  88. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-C45pTncO.d.ts} +4 -4
  89. package/dist/{dynamicFormsStateMachine-CGlIAWZ6.esm.js → dynamicFormsStateMachine-CRq01QNK.esm.js} +4 -4
  90. package/dist/ekyb.d.ts +5 -5
  91. package/dist/ekyb.esm.js +3 -3
  92. package/dist/{ekybManager-BLgkiWXw.esm.js → ekybManager-B489iXyO.esm.js} +5 -3
  93. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-BflWuTe4.d.ts} +5 -5
  94. package/dist/{ekybStateMachine-BfgOUZMK.esm.js → ekybStateMachine-DZxg8T0H.esm.js} +40 -56
  95. package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
  96. package/dist/ekyc-prefill.d.ts +17 -0
  97. package/dist/ekyc-prefill.esm.js +3 -0
  98. package/dist/ekyc.d.ts +4 -3
  99. package/dist/ekyc.esm.js +3 -3
  100. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BKVQazAb.d.ts} +49 -7
  101. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
  102. package/dist/ekycPrefillManager-BXWDF7vT.esm.js +103 -0
  103. package/dist/ekycPrefillManager-DOTl3Y2w.d.ts +566 -0
  104. package/dist/ekycPrefillStateMachine-CuWTVze1.esm.js +687 -0
  105. package/dist/ekycRules-DXP2hqVw.esm.js +479 -0
  106. package/dist/ekycStateMachine-nwJRel2s.esm.js +7897 -0
  107. package/dist/ekycUtils-FcqA6oU4.esm.js +1491 -0
  108. package/dist/electronic-signature.d.ts +1 -1
  109. package/dist/electronic-signature.esm.js +1 -1
  110. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  111. package/dist/{electronicSignatureManager-CjKvJ6E-.esm.js → electronicSignatureManager-BcE0XMrN.esm.js} +8 -6
  112. package/dist/email.d.ts +1 -1
  113. package/dist/email.esm.js +2 -2
  114. package/dist/{emailManager-ButFktRm.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
  115. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  116. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-CTEaYncs.esm.js} +34 -22
  117. package/dist/events-CP3yOzAl.esm.js +299 -0
  118. package/dist/events.d.ts +3 -1
  119. package/dist/events.esm.js +2 -1
  120. package/dist/extensibility.d.ts +43 -41
  121. package/dist/extensibility.esm.js +39 -37
  122. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
  123. package/dist/face-match.d.ts +1 -1
  124. package/dist/face-match.esm.js +2 -2
  125. package/dist/{faceCaptureManagerFactory-BDGhg24q.esm.js → faceCaptureManagerFactory-BBQzNrku.esm.js} +17 -6
  126. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +84 -72
  127. package/dist/{faceCaptureSetup-CvGYG4GZ.esm.js → faceCaptureSetup-D8_ilXFc.esm.js} +117 -482
  128. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-C5b5WtcY.d.ts} +23 -7
  129. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
  130. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +68 -29
  131. package/dist/{feature-management-D4ne_hXW.esm.js → feature-management-SIBmKJs8.esm.js} +35 -21
  132. package/dist/feature-management.esm.js +1 -1
  133. package/dist/field-comparison.d.ts +1 -1
  134. package/dist/field-comparison.esm.js +1 -1
  135. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-VgCU4X96.esm.js} +6 -4
  136. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  137. package/dist/fiscal-qr.d.ts +1 -1
  138. package/dist/fiscal-qr.esm.js +1 -1
  139. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  140. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-DOLq45ph.esm.js} +8 -6
  141. package/dist/flow-events.d.ts +1 -1
  142. package/dist/flow.d.ts +75 -24
  143. package/dist/flow.esm.js +288 -70
  144. package/dist/{flowCompletionService-Cemwaa5b.esm.js → flowCompletionService-BFCddN3G.esm.js} +24 -3
  145. package/dist/{flowServices-X6Rwf_7E.esm.js → flowServices-NX4ksmS5.esm.js} +447 -183
  146. package/dist/geolocation.d.ts +1 -1
  147. package/dist/geolocation.esm.js +2 -2
  148. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-CENrvxpK.d.ts} +19 -20
  149. package/dist/{geolocationManager-B0dc5rW9.esm.js → geolocationManager-D1Ga7_lB.esm.js} +9 -9
  150. package/dist/{geolocationStateMachine-B3rcoODF.esm.js → geolocationStateMachine-oPgI5FIQ.esm.js} +14 -10
  151. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
  152. package/dist/government-validation.d.ts +1 -1
  153. package/dist/government-validation.esm.js +2 -2
  154. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
  155. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  156. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-wBunpfQ9.esm.js} +3 -3
  157. package/dist/home.d.ts +4 -3
  158. package/dist/home.esm.js +4 -2
  159. package/dist/http.esm.js +1 -1
  160. package/dist/id-ocr.d.ts +2 -2
  161. package/dist/id-ocr.esm.js +3 -19
  162. package/dist/id-selfie-flow.d.ts +6 -5
  163. package/dist/id-selfie-flow.esm.js +13 -11
  164. package/dist/id-verification.d.ts +1 -1
  165. package/dist/id-verification.esm.js +2 -2
  166. package/dist/id.d.ts +4 -17
  167. package/dist/id.esm.js +4 -4
  168. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-Drh207VJ.esm.js} +3 -3
  169. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +76 -12
  170. package/dist/{idCaptureManager-IouAnrFm.esm.js → idCaptureManager-DjZyIbxc.esm.js} +68 -19
  171. package/dist/{idCaptureServices-VTKIPSpT.esm.js → idCaptureServices-DWs9Fb58.esm.js} +29 -198
  172. package/dist/{idCaptureStateMachine-_Pn2Xkpb.esm.js → idCaptureStateMachine-BGMkWF9t.esm.js} +961 -553
  173. package/dist/idOcrCpfUtils-D5Gwskxu.esm.js +18 -0
  174. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-DflRx-_u.d.ts} +6 -5
  175. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
  176. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B832arAl.esm.js} +11 -10
  177. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  178. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
  179. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
  180. package/dist/identity-reuse.d.ts +2 -2
  181. package/dist/identity-reuse.esm.js +2 -2
  182. package/dist/identity-search.d.ts +97 -0
  183. package/dist/identity-search.esm.js +97 -0
  184. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-C40ngKeM.d.ts} +86 -19
  185. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
  186. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
  187. package/dist/index-DHuAkTe0.d.ts +1 -0
  188. package/dist/{index-CKQ9QBZP.d.ts → index-DxYNO94y.d.ts} +2 -2
  189. package/dist/index.d.ts +1 -1
  190. package/dist/index.esm.js +1 -1
  191. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
  192. package/dist/kyb-checks.d.ts +3 -0
  193. package/dist/kyb-checks.esm.js +3 -0
  194. package/dist/kybChecksManager-B7Di9auB.d.ts +95 -0
  195. package/dist/kybChecksManager-eRU3ht0m.esm.js +90 -0
  196. package/dist/kybChecksStateMachine-CU0oIYDR.esm.js +720 -0
  197. package/dist/mandatory-consent.d.ts +2 -2
  198. package/dist/mandatory-consent.esm.js +2 -2
  199. package/dist/{mandatoryConsentManager-qYojnZYg.d.ts → mandatoryConsentManager-C1B2ERZk.d.ts} +28 -11
  200. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +7 -4
  201. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +32 -13
  202. package/dist/mediaRecorderOptions-g1TwTlhd.esm.js +87 -0
  203. package/dist/multipartRecordingService-WgK8ieRI.esm.js +407 -0
  204. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-pcrrqrPR.esm.js} +1 -1
  205. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DFJlH7K3.esm.js} +11 -9
  206. package/dist/phone-number.d.ts +7 -1
  207. package/dist/phone-number.esm.js +15 -2
  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-BO-LTih5.d.ts → phoneManager-VO1HEoUZ.d.ts} +8 -3
  212. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-rA7updqF.esm.js} +6 -4
  213. package/dist/phoneServices-CFXcwCFr.esm.js +77 -0
  214. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +56 -84
  215. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  216. package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
  217. package/dist/processFaceMatch-B_DkDTE5.esm.js +21 -0
  218. package/dist/qe-signature.d.ts +2 -2
  219. package/dist/qe-signature.esm.js +1 -1
  220. package/dist/recordingService-DxiwS8TV.esm.js +397 -0
  221. package/dist/redirect-to-mobile.d.ts +2 -2
  222. package/dist/redirect-to-mobile.esm.js +2 -2
  223. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-DjsEtWLq.esm.js} +9 -6
  224. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +6 -4
  225. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-CMjjUXSu.esm.js} +67 -28
  226. package/dist/resolveForm-DaaQSVWp.esm.js +146 -0
  227. package/dist/{runChildModule-DSpP41Hl.esm.js → runChildModule-CJ_aQO92.esm.js} +9 -7
  228. package/dist/{sdkVersion-DKHwWEyH.esm.js → sdkVersion-C9kbIDeX.esm.js} +1 -1
  229. package/dist/selfie.d.ts +4 -4
  230. package/dist/selfie.esm.js +13 -12
  231. package/dist/{selfieErrorUtils-DoN1KFSQ.esm.js → selfieErrorUtils-DUokfsv4.esm.js} +1 -1
  232. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-DihwheJ6.d.ts} +2 -2
  233. package/dist/{selfieManager-DtQegA6T.esm.js → selfieManager-uJtbzEp9.esm.js} +7 -6
  234. package/dist/{selfieStateMachine-CnCwJZuC.esm.js → selfieStateMachine-CKXAmNkA.esm.js} +5 -5
  235. package/dist/{session-CNUfjlRc.esm.js → session-Bk2K8TEv.esm.js} +77 -9
  236. package/dist/session.d.ts +96 -10
  237. package/dist/session.esm.js +7 -6
  238. package/dist/{sessionInitializer-JM_glXR2.esm.js → sessionInitializer-CUCBGZ_s.esm.js} +359 -115
  239. package/dist/{setup-C5tfWt6W.esm.js → setup-B3a5KQeI.esm.js} +36 -27
  240. package/dist/{setup-YPKTUCY5.d.ts → setup-DpOr8H_l.d.ts} +2 -2
  241. package/dist/signature.d.ts +1 -1
  242. package/dist/signature.esm.js +2 -2
  243. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BgAja97K.esm.js} +5 -3
  244. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  245. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
  246. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  247. package/dist/{stats-BEvexnKC.esm.js → stats-DoByUnTa.esm.js} +1 -1
  248. package/dist/stats.esm.js +1 -1
  249. package/dist/textRules-D4NRinKY.d.ts +41 -0
  250. package/dist/{trueSightService-fLmL_cyg.esm.js → trueSightService-BnQDjqUu.esm.js} +22 -10
  251. package/dist/trust-graph.d.ts +4 -3
  252. package/dist/trust-graph.esm.js +5 -3
  253. package/dist/{types-yPH8lAH-.d.ts → types-9wlf1-GE.d.ts} +3 -3
  254. package/dist/types-B-PIc0en.d.ts +115 -0
  255. package/dist/types-B9C8W01q.d.ts +34 -0
  256. package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
  257. package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
  258. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  259. package/dist/types-CE1jkHw3.d.ts +6 -0
  260. package/dist/types-CTaL0XJz.d.ts +80 -0
  261. package/dist/{types-BAxn7MpY.d.ts → types-Cpdum4vi.d.ts} +125 -50
  262. package/dist/{types-DUnFZ08M.d.ts → types-CyNndVAT.d.ts} +16 -8
  263. package/dist/types-DEa3taWc.d.ts +217 -0
  264. package/dist/{types-CK8Jbjkp.d.ts → types-DFP7eSle.d.ts} +1 -1
  265. package/dist/{types-Ckir_BEs.d.ts → types-DJPU3W2M.d.ts} +3 -2
  266. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  267. package/dist/{events-Du2A4-Qr.esm.js → types-DYYMdAGv.esm.js} +4 -299
  268. package/dist/{types-B6HsSzpk.d.ts → types-Ddc4Tr_f.d.ts} +42 -6
  269. package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
  270. package/dist/usStates-CwOQ2kAx.esm.js +209 -0
  271. package/dist/video-selfie.d.ts +16 -14
  272. package/dist/video-selfie.esm.js +100 -24
  273. package/dist/{videoSelfieCameraWarmer-BBNKiau1.esm.js → videoSelfieCameraWarmer-CgqaNI-W.esm.js} +26 -27
  274. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  275. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +10 -5
  276. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  277. package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
  278. package/dist/{warmup-BElYWRh7.esm.js → warmup-BZOMg303.esm.js} +243 -30
  279. package/dist/wasm.d.ts +9 -3
  280. package/dist/wasm.esm.js +3 -3
  281. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-DPK7qGgo.esm.js} +1 -1
  282. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
  283. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-CyLCM31e.esm.js} +45 -26
  284. package/dist/watchlist-for-business.d.ts +2 -1
  285. package/dist/watchlist-for-business.esm.js +2 -2
  286. package/dist/watchlist.d.ts +1 -1
  287. package/dist/watchlist.esm.js +2 -2
  288. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +40 -8
  289. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +57 -21
  290. package/dist/watchlistForBusinessStateMachine-BMWm5mcP.esm.js +166 -0
  291. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
  292. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  293. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
  294. package/dist/workflow.d.ts +234 -45
  295. package/dist/workflow.esm.js +194 -80
  296. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  297. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  298. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  299. package/package.json +22 -5
  300. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  301. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  302. package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
  303. package/dist/cpf-uAZTPUBy.esm.js +0 -61
  304. package/dist/deepsightLoader-sH7920zw.esm.js +0 -55
  305. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  306. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  307. package/dist/index-DpTj5PFb.d.ts +0 -1
  308. package/dist/types-BvLo3U4u.d.ts +0 -134
  309. package/dist/types-zOgZqMni.d.ts +0 -6
  310. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  311. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -0,0 +1,25 @@
1
+ //#region ../infra/src/providers/browser/DateFormattingProvider.ts
2
+ var DateFormattingProvider = class {
3
+ utcToIsoDateString(value) {
4
+ if (value === void 0 || value === null || value === "") return "";
5
+ const date = new Date(value);
6
+ if (Number.isNaN(date.getTime())) return "";
7
+ return `${date.getUTCFullYear()}-${String(date.getUTCMonth() + 1).padStart(2, "0")}-${String(date.getUTCDate()).padStart(2, "0")}`;
8
+ }
9
+ parseIsoDateStringToEpochMs(value) {
10
+ return Date.parse(value);
11
+ }
12
+ getAgeInYears(birthDate, referenceEpochMs) {
13
+ const now = new Date(referenceEpochMs);
14
+ const birth = typeof birthDate === "string" && /^\d{4}-\d{2}-\d{2}$/.test(birthDate) ? (() => {
15
+ const [y, m, d] = birthDate.split("-").map(Number);
16
+ return new Date(y, m - 1, d);
17
+ })() : new Date(birthDate);
18
+ let age = now.getFullYear() - birth.getFullYear();
19
+ const monthDiff = now.getMonth() - birth.getMonth();
20
+ if (monthDiff < 0 || monthDiff === 0 && now.getDate() < birth.getDate()) age--;
21
+ return age;
22
+ }
23
+ };
24
+ //#endregion
25
+ export { DateFormattingProvider as t };
@@ -1,17 +1,15 @@
1
- import { c as wasmRuntime } from "./warmup-BElYWRh7.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-C5tfWt6W.esm.js";
3
- import { r as BaseWasmProvider } from "./WasmUtilProvider-DtJuBdt-.esm.js";
4
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
5
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-fLmL_cyg.esm.js";
6
- import "./sessionInitializer-JM_glXR2.esm.js";
7
- import { t as addDeviceStats } from "./stats-BEvexnKC.esm.js";
8
- import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
9
- import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
1
+ import { l as wasmRuntime } from "./warmup-BZOMg303.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-B3a5KQeI.esm.js";
3
+ import { r as BaseWasmProvider } from "./WasmUtilProvider-0xTxgP0R.esm.js";
4
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
5
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-BnQDjqUu.esm.js";
6
+ import "./sessionInitializer-CUCBGZ_s.esm.js";
7
+ import { t as addDeviceStats } from "./stats-DoByUnTa.esm.js";
10
8
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
11
- import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-CLwrF5wD.esm.js";
12
- import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
13
- import "./deepsightService-C3DVBOZd.esm.js";
14
- import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
9
+ import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
10
+ import { r as hasBackCamera } from "./backCameraStream-DS1oDiUq.esm.js";
11
+ import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
12
+ import { n as saveProcessFaceMatch } from "./processFaceMatch-B_DkDTE5.esm.js";
15
13
  //#region src/internal/faceCapture/onDeviceFaceResults.ts
16
14
  /**
17
15
  * On-device still-face capture is owned by the protected camera-cycle actor.
@@ -126,64 +124,30 @@ const getFaceErrorCodeFromHttpError = (error) => {
126
124
  return getFaceUploadErrorCode(err.status, typeof err.data?.status === "number" ? err.data.status : void 0);
127
125
  };
128
126
  async function processFace(imageType = "selfie", signal) {
129
- return (await api.post(endpoints.processFace, {}, {
127
+ const response = await api.post(endpoints.processFace, {}, {
130
128
  query: { imageType },
131
129
  signal
132
- })).data;
130
+ });
131
+ if (imageType === "selfie") saveProcessFaceMatch(response.data?.success);
132
+ return response.data;
133
133
  }
134
134
  //#endregion
135
135
  //#region src/internal/faceCapture/faceCaptureServices.ts
136
136
  function sendLabelInspectionEvent() {
137
137
  return addDeviceStats({ cameraLabelInspectionStatus: "FAIL" });
138
138
  }
139
- const MOBILE_SELFIE_CONSTRAINTS = {
140
- video: {
141
- facingMode: "user",
142
- height: { ideal: 480 },
143
- width: { ideal: 640 }
144
- },
145
- audio: false
146
- };
147
- const IPHONE14_SELFIE_CONSTRAINTS = {
148
- video: { height: { ideal: 1080 } },
149
- audio: false
150
- };
151
- function buildCameraConstraints(resolution, deviceId) {
152
- if (resolution) return {
153
- video: {
154
- facingMode: "user",
155
- deviceId: deviceId ? { exact: deviceId } : void 0,
156
- height: resolution.height ? { ideal: resolution.height } : void 0,
157
- width: resolution.width ? { ideal: resolution.width } : void 0
158
- },
159
- audio: false
160
- };
161
- if (isIPhone14OrHigher()) return IPHONE14_SELFIE_CONSTRAINTS;
162
- return MOBILE_SELFIE_CONSTRAINTS;
163
- }
164
- function stopStream(stream) {
165
- stopCameraStream(stream);
166
- }
167
- async function getFrontCameraStream(resolution) {
168
- if (isDesktop()) {
169
- if (resolution) return ensureFrontCameraStream((deviceId) => requestCameraAccess(buildCameraConstraints(resolution, deviceId)));
170
- return ensureFrontCameraStream((deviceId) => getDesktopCameraStream(deviceId ? { deviceId } : {}));
171
- }
172
- return requestCameraAccess(resolution ? buildCameraConstraints(resolution) : buildCameraConstraints());
173
- }
174
- async function initializeCamera(params) {
175
- const { config } = params;
139
+ /**
140
+ * Camera-free preparation for one protected face attempt: warms the WASM
141
+ * pipeline the attempt will run and decides which lens to request. Since
142
+ * ml-wasm-kit v2.14.52 the kit acquires the camera itself inside the
143
+ * protected camera step (`ICameraCycleCapability.startCameraCycle`), so no
144
+ * camera opens here. Runs once per
145
+ * attempt — from the tutorial pre-acquire when there is one, otherwise at
146
+ * attempt start.
147
+ */
148
+ async function probeFaceCamera(config) {
176
149
  await ensureWasmPipelines([isOnDeviceMode(config) ? "onDeviceSelfie" : "selfie"]);
177
- const usingBackCamera = config.assistedOnboarding === true && await hasBackCamera();
178
- const backCamera = usingBackCamera ? await getBackCameraStream() : void 0;
179
- const stream = backCamera?.stream ?? await getFrontCameraStream(config.cameraResolution);
180
- const constraints = getCameraReacquisitionConstraints(stream.getVideoTracks()[0], backCamera?.constraints);
181
- return {
182
- stream,
183
- provider: params.provider,
184
- usingBackCamera,
185
- constraints
186
- };
150
+ return { usingBackCamera: config.assistedOnboarding === true && await hasBackCamera() };
187
151
  }
188
152
  /**
189
153
  * Encrypts the provided selfie image using WASM.
@@ -271,7 +235,7 @@ function startDetection(params) {
271
235
  };
272
236
  }
273
237
  async function initializeDeepsightSession(options) {
274
- const { loadDeepsightSession } = await import("./deepsightLoader-sH7920zw.esm.js");
238
+ const { loadDeepsightSession } = await import("./deepsightLoader-zG373VVx.esm.js");
275
239
  return loadDeepsightSession({
276
240
  ds: options.ds,
277
241
  storage: options.storage
@@ -543,4 +507,4 @@ var FaceDetectionProvider = class extends BaseWasmProvider {
543
507
  }
544
508
  };
545
509
  //#endregion
546
- export { sendLabelInspectionEvent as a, processFace as c, FACE_ERROR_CODES as d, isOnDeviceMode as f, initializeDeepsightSession as i, uploadSelfie as l, encryptSelfieImage as n, startDetection as o, initializeCamera as r, stopStream as s, FaceDetectionProvider as t, getFaceUploadErrorCode as u };
510
+ export { sendLabelInspectionEvent as a, uploadSelfie as c, isOnDeviceMode as d, probeFaceCamera as i, getFaceUploadErrorCode as l, encryptSelfieImage as n, startDetection as o, initializeDeepsightSession as r, processFace as s, FaceDetectionProvider as t, FACE_ERROR_CODES as u };
@@ -0,0 +1,16 @@
1
+ //#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
2
+ function getTimestamp() {
3
+ return Date.now();
4
+ }
5
+ /** Today in the user's calendar, as an ISO `YYYY-MM-DD` date. */
6
+ function getLocalIsoDate() {
7
+ const now = /* @__PURE__ */ new Date();
8
+ const month = String(now.getMonth() + 1).padStart(2, "0");
9
+ const day = String(now.getDate()).padStart(2, "0");
10
+ return `${now.getFullYear()}-${month}-${day}`;
11
+ }
12
+ function revokeObjectURL(url) {
13
+ URL.revokeObjectURL(url);
14
+ }
15
+ //#endregion
16
+ export { getTimestamp as n, revokeObjectURL as r, getLocalIsoDate as t };
@@ -0,0 +1,10 @@
1
+ //#region ../infra/src/capabilities/IGeolocationCapability.d.ts
2
+ type GeolocationCoords = {
3
+ latitude: number;
4
+ longitude: number;
5
+ };
6
+ type IGeolocationCapability = {
7
+ getCurrentPosition(): Promise<GeolocationCoords>;
8
+ };
9
+ //#endregion
10
+ export { IGeolocationCapability as n, GeolocationCoords as t };
@@ -1,5 +1,5 @@
1
- import "./warmup-BO57syF6.js";
2
- import { _ as MLProviderConfig, g as IMLProviderCapability, y as IncodeCanvas } from "./createFaceAvatar-lYX0VTYs.js";
1
+ import "./warmup-BNhIuURi.js";
2
+ import { _ as MLProviderConfig, g as IMLProviderCapability, y as IncodeCanvas } from "./createFaceAvatar-BimBTONm.js";
3
3
  //#region ../infra/src/wasm/mlWasmBridgeTypes.d.ts
4
4
  /**
5
5
  * Decoded PDF417 barcode surfaced from the WASM ID-capture pipeline during
@@ -1,5 +1,5 @@
1
- import { c as WasmPipeline } from "./warmup-BO57syF6.js";
2
- import { _ as MLProviderConfig } from "./createFaceAvatar-lYX0VTYs.js";
1
+ import { c as WasmPipeline } from "./warmup-BNhIuURi.js";
2
+ import { _ as MLProviderConfig } from "./createFaceAvatar-BimBTONm.js";
3
3
  //#region ../infra/src/capabilities/IStorageCapability.d.ts
4
4
  /**
5
5
  * Storage capability interface for abstracting storage operations.
@@ -33,6 +33,12 @@ interface IStorageCapability {
33
33
  type WasmUtilConfig = MLProviderConfig & {
34
34
  pipelines?: WasmPipeline[];
35
35
  };
36
+ /**
37
+ * Output object handed to {@link IWasmUtilCapability.poc}. Since ml-wasm-kit
38
+ * v2.14.53 the native check writes nothing into it (`itr` and `skipped` stay
39
+ * as the caller left them): the post-capture verdicts travel only in the
40
+ * signed capture metadata. Kept for the binding's arity.
41
+ */
36
42
  type VirtualCameraCheckOutput = {
37
43
  canvas: HTMLCanvasElement | null;
38
44
  itr: boolean | null;
@@ -66,6 +72,11 @@ type IWasmUtilCapability = {
66
72
  setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
67
73
  setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
68
74
  setMotionStatus(status: string): void;
75
+ /**
76
+ * @deprecated Native-free no-op since ml-wasm-kit v2.14.54, which removed
77
+ * the binding: the kit's own visibility observers record background time.
78
+ * Scheduled for removal in 3.0.0.
79
+ */
69
80
  setBackgroundMode(backgroundMode: boolean): void;
70
81
  /**
71
82
  * @deprecated Compatibility-only no-op since ml-wasm-kit v2.14.49-post1.
@@ -77,6 +88,11 @@ type IWasmUtilCapability = {
77
88
  * for client-side gating.
78
89
  */
79
90
  setOnDeviceMode(enabled: boolean): void;
91
+ /**
92
+ * @deprecated Native-free no-op since ml-wasm-kit v2.14.54, which removed
93
+ * the binding: the zoom check is gone and `iad.zc` is the constant `PASS`.
94
+ * Scheduled for removal in 3.0.0.
95
+ */
80
96
  setZc(zc: string): void;
81
97
  setInspectorOpened(opened: boolean): void;
82
98
  /**
@@ -112,18 +128,29 @@ type IWasmUtilCapability = {
112
128
  getCheck(): string;
113
129
  /**
114
130
  * Gets the current pipeline state. Must be called before setMotionStatus(),
115
- * getCheck(), setBackgroundMode(), and getMetadata() for proper metadata generation.
131
+ * getCheck(), and getMetadata() for proper metadata generation.
116
132
  */
117
133
  getPipelineState(): string;
118
134
  estimatePerformance(): string;
119
135
  /**
120
136
  * @deprecated Returns `false` for compatibility; scheduled for removal in
121
- * 3.0.0. Protected PRC/POC is the authoritative virtual-camera decision
122
- * path: use {@link IWasmUtilCapability.prc} followed by
123
- * {@link IWasmUtilCapability.poc} instead of inspecting the track label.
137
+ * 3.0.0. The protected camera step (`ICameraCycleCapability.startCameraCycle`)
138
+ * runs the pre-capture checks and the signed capture metadata carries the
139
+ * verdicts; nothing is decided from the track label.
124
140
  */
125
141
  isVirtualCamera(label: string | null): boolean;
142
+ /**
143
+ * @deprecated Resolves without doing anything since ml-wasm-kit v2.14.52,
144
+ * which removed the binding: the pre-capture check runs inside the protected
145
+ * camera step (`ICameraCycleCapability.startCameraCycle`), so a `prc()` then
146
+ * `poc()` sequence keeps working. Scheduled for removal in 3.0.0.
147
+ */
126
148
  prc(): Promise<void>;
149
+ /**
150
+ * Runs the native post-capture check. `output` is kept for the binding's
151
+ * arity and is not written since ml-wasm-kit v2.14.53 — see
152
+ * {@link VirtualCameraCheckOutput}.
153
+ */
127
154
  poc(output: VirtualCameraCheckOutput): Promise<void>;
128
155
  rsp(): Promise<void>;
129
156
  ssl(): void;
@@ -0,0 +1,125 @@
1
+ //#region ../infra/src/manager/Manager.ts
2
+ /**
3
+ * Creates a manager that wraps a state machine actor with a clean public API.
4
+ *
5
+ * The manager provides:
6
+ * - `getState()` - Returns the mapped public state
7
+ * - `subscribe()` - Listen to state changes
8
+ * - `stop()` - Stop the actor
9
+ * - Plus any custom API methods from `createApi`
10
+ *
11
+ * @template TMachine - The state machine type
12
+ * @template TMapState - Function type that maps raw snapshot to public state
13
+ * @template TCreateApi - Function type that creates the custom API
14
+ *
15
+ * @param options - Configuration options
16
+ * @param options.actor - The started actor instance
17
+ * @param options.mapState - Function to transform raw snapshot into public state
18
+ * @param options.createApi - Factory function to create custom API methods
19
+ *
20
+ * @returns Combined manager with base methods and custom API
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const manager = createManager({
25
+ * actor: createActor(myMachine).start(),
26
+ * mapState: (snapshot) => ({ status: snapshot.value }),
27
+ * createApi: ({ actor }) => ({
28
+ * doSomething() { actor.send({ type: 'DO_IT' }); }
29
+ * }),
30
+ * });
31
+ * ```
32
+ */
33
+ function createManager(options) {
34
+ const { actor, mapState, createApi, instrumentation } = options;
35
+ function getSnapshot() {
36
+ return actor.getSnapshot();
37
+ }
38
+ function getState() {
39
+ return mapState(getSnapshot());
40
+ }
41
+ function subscribe(listener) {
42
+ const subscription = actor.subscribe(() => {
43
+ listener(getState());
44
+ });
45
+ return () => subscription.unsubscribe();
46
+ }
47
+ let currentScreenName = instrumentation?.getScreenName(getSnapshot());
48
+ let currentStateName = instrumentation?.getStateName?.(getSnapshot());
49
+ let currentErrorName = instrumentation?.getErrorName(getSnapshot());
50
+ let currentErrorPayload = instrumentation?.getErrorPayload(getSnapshot());
51
+ const api = createApi({
52
+ actor,
53
+ getSnapshot,
54
+ trackElementClicked: instrumentation ? (elementName, payload) => {
55
+ instrumentation.onElementClicked?.(instrumentation.moduleName, currentStateName ?? currentScreenName, {
56
+ element: elementName,
57
+ action: payload?.action,
58
+ metadata: payload?.metadata
59
+ });
60
+ } : void 0,
61
+ trackCaptureAttemptFinished: instrumentation ? (payload) => {
62
+ instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentStateName ?? currentScreenName, { logs: payload.logs });
63
+ } : void 0
64
+ });
65
+ instrumentation?.onModuleOpened(instrumentation.moduleName);
66
+ if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, currentScreenName);
67
+ if (instrumentation && currentErrorName !== void 0) instrumentation.onErrorTriggered(instrumentation.moduleName, currentErrorName, currentScreenName, currentErrorPayload);
68
+ let lastVisible = instrumentation?.getInitialVisibility?.();
69
+ if (instrumentation && lastVisible === false) instrumentation.onBackground?.(instrumentation.moduleName, currentScreenName);
70
+ const stopVisibility = instrumentation?.subscribeVisibility?.((visible) => {
71
+ if (visible === lastVisible) return;
72
+ lastVisible = visible;
73
+ if (visible) instrumentation.onForeground?.(instrumentation.moduleName, currentScreenName);
74
+ else instrumentation.onBackground?.(instrumentation.moduleName, currentScreenName);
75
+ });
76
+ const actorSubscription = instrumentation ? actor.subscribe((snapshot) => {
77
+ const nextScreenName = instrumentation.getScreenName(snapshot);
78
+ const nextErrorName = instrumentation.getErrorName(snapshot);
79
+ const nextErrorPayload = instrumentation.getErrorPayload(snapshot);
80
+ const nextStateName = instrumentation.getStateName?.(snapshot);
81
+ if (currentScreenName === nextScreenName) {
82
+ const previousStateName = currentStateName;
83
+ currentStateName = nextStateName;
84
+ if (currentScreenName !== void 0 && nextStateName !== void 0 && nextStateName !== previousStateName) instrumentation.onStateChanged?.(instrumentation.moduleName, currentScreenName, nextStateName);
85
+ if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, currentScreenName, nextErrorPayload);
86
+ currentErrorName = nextErrorName;
87
+ currentErrorPayload = nextErrorPayload;
88
+ return;
89
+ }
90
+ if (currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
91
+ if (nextScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, nextScreenName);
92
+ currentScreenName = nextScreenName;
93
+ currentStateName = nextStateName;
94
+ if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextScreenName, nextErrorPayload);
95
+ currentErrorName = nextErrorName;
96
+ currentErrorPayload = nextErrorPayload;
97
+ }) : void 0;
98
+ let isStopped = false;
99
+ return Object.defineProperties({
100
+ getState,
101
+ subscribe,
102
+ stop() {
103
+ if (isStopped) return;
104
+ isStopped = true;
105
+ try {
106
+ if (actor.getSnapshot().status === "active") options.beforeStop?.();
107
+ } finally {
108
+ try {
109
+ actorSubscription?.unsubscribe();
110
+ stopVisibility?.();
111
+ if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
112
+ currentScreenName = void 0;
113
+ currentStateName = void 0;
114
+ currentErrorName = void 0;
115
+ currentErrorPayload = void 0;
116
+ instrumentation?.onModuleClosed(instrumentation.moduleName);
117
+ } finally {
118
+ actor.stop();
119
+ }
120
+ }
121
+ }
122
+ }, Object.getOwnPropertyDescriptors(api));
123
+ }
124
+ //#endregion
125
+ export { createManager as t };
@@ -1,10 +1,4 @@
1
- //#region ../../node_modules/.pnpm/xstate@5.24.0/node_modules/xstate/dist/declarations/src/index.d.ts
2
- declare global {
3
- interface SymbolConstructor {
4
- readonly observable: symbol;
5
- }
6
- }
7
- //#endregion
1
+ import "./xstate.cjs-D6Ur0X1F.js";
8
2
  //#region ../infra/src/manager/Manager.d.ts
9
3
  /**
10
4
  * Base manager interface providing state access, subscriptions, and lifecycle control.
@@ -0,0 +1,151 @@
1
+ import { n as getMultipartRecorderMimeType } from "./mediaRecorderOptions-g1TwTlhd.esm.js";
2
+ //#region ../infra/src/providers/browser/MultipartRecordingProvider.ts
3
+ /**
4
+ * How often `MediaRecorder` hands us buffered data (incremental blobs).
5
+ * 500 ms keeps each blob — and therefore each upload chunk — small: less
6
+ * tail lost when a session is interrupted, and a smaller first blob (init
7
+ * header + keyframe), which is the largest and most timeout-prone chunk.
8
+ * Not lower: request rate doubles per halving, and browsers stop honoring
9
+ * very small timeslices reliably.
10
+ */
11
+ const TIMESLICE_MS = 500;
12
+ /**
13
+ * Encoder target for the full video-selfie session. Higher than the
14
+ * short-clip liveness path (0.5–1 Mbps) so a multi-minute session keeps
15
+ * usable quality. It's a ceiling — a still scene still encodes well below it.
16
+ */
17
+ const VIDEO_BITS_PER_SECOND = 25e5;
18
+ /**
19
+ * Records a stream and emits every `MediaRecorder` timeslice blob as its own
20
+ * part, in order. Each blob is a whole container fragment (WebM cluster /
21
+ * fMP4 `moof`+`mdat`), which is the property the video-selfie-service's
22
+ * gap-splicing depends on — parts must never cut a fragment at a byte
23
+ * offset. The service stages sub-5 MiB chunks and combines them server-side,
24
+ * so emitting the smallest whole-fragment unit (~0.5 s of video) maximizes
25
+ * what an interrupted session can salvage.
26
+ *
27
+ * Page-lifecycle orchestration lives in Core: it pauses this recorder before a
28
+ * backgrounded camera can stall, restores the camera/compositor, and only then
29
+ * resumes this same media container.
30
+ */
31
+ var MultipartRecordingProvider = class {
32
+ constructor() {
33
+ this.mediaRecorder = null;
34
+ this._isRecording = false;
35
+ this._hasError = false;
36
+ this._error = null;
37
+ this.mimeType = "";
38
+ this.partNumber = 0;
39
+ this.onPart = null;
40
+ this.settleStop = null;
41
+ }
42
+ get isRecording() {
43
+ return this._isRecording;
44
+ }
45
+ get hasError() {
46
+ return this._hasError;
47
+ }
48
+ get error() {
49
+ return this._error;
50
+ }
51
+ startRecording(stream, onPart) {
52
+ this.reset();
53
+ this.partNumber = 0;
54
+ this.onPart = onPart;
55
+ try {
56
+ this.mimeType = getMultipartRecorderMimeType();
57
+ const recorder = new MediaRecorder(stream.clone(), {
58
+ mimeType: this.mimeType,
59
+ videoBitsPerSecond: VIDEO_BITS_PER_SECOND
60
+ });
61
+ recorder.ondataavailable = (event) => {
62
+ if (event.data.size > 0 && this.onPart) {
63
+ this.partNumber += 1;
64
+ this.onPart({
65
+ chunk: event.data,
66
+ partNumber: this.partNumber
67
+ });
68
+ }
69
+ };
70
+ recorder.onerror = (event) => {
71
+ const detail = event instanceof ErrorEvent && event.error instanceof Error ? event.error.message : event.type;
72
+ this._error = `Recording error: ${detail}`;
73
+ this._isRecording = false;
74
+ this._hasError = true;
75
+ };
76
+ recorder.start(TIMESLICE_MS);
77
+ this.mediaRecorder = recorder;
78
+ this._isRecording = true;
79
+ this._error = null;
80
+ this._hasError = false;
81
+ } catch (err) {
82
+ const detail = err instanceof Error ? err.message : String(err);
83
+ this._error = `Failed to start recording: ${detail}`;
84
+ this._hasError = true;
85
+ }
86
+ }
87
+ pauseRecording() {
88
+ const recorder = this.mediaRecorder;
89
+ if (!recorder || !this._isRecording || this._hasError) return false;
90
+ if (recorder.state === "paused") return true;
91
+ if (recorder.state !== "recording") return false;
92
+ try {
93
+ recorder.pause();
94
+ return true;
95
+ } catch (err) {
96
+ const detail = err instanceof Error ? err.message : String(err);
97
+ this._error = `Failed to pause recording: ${detail}`;
98
+ this._hasError = true;
99
+ return false;
100
+ }
101
+ }
102
+ resumeRecording() {
103
+ const recorder = this.mediaRecorder;
104
+ if (!recorder || !this._isRecording || this._hasError) return false;
105
+ if (recorder.state === "recording") return true;
106
+ if (recorder.state !== "paused") return false;
107
+ try {
108
+ recorder.resume();
109
+ return true;
110
+ } catch (err) {
111
+ const detail = err instanceof Error ? err.message : String(err);
112
+ this._error = `Failed to resume recording: ${detail}`;
113
+ this._hasError = true;
114
+ return false;
115
+ }
116
+ }
117
+ stopRecording() {
118
+ const recorder = this.mediaRecorder;
119
+ return new Promise((resolve) => {
120
+ if (recorder && this._isRecording) {
121
+ this.settleStop = resolve;
122
+ recorder.onstop = () => {
123
+ this.settleStop = null;
124
+ resolve();
125
+ };
126
+ recorder.stop();
127
+ this._isRecording = false;
128
+ } else resolve();
129
+ recorder?.stream?.getTracks().forEach((track) => track.stop());
130
+ });
131
+ }
132
+ reset() {
133
+ const recorder = this.mediaRecorder;
134
+ if (recorder) {
135
+ recorder.ondataavailable = null;
136
+ recorder.onerror = null;
137
+ recorder.onstop = null;
138
+ if (recorder.state !== "inactive") recorder.stop();
139
+ recorder.stream.getTracks().forEach((track) => track.stop());
140
+ this.mediaRecorder = null;
141
+ }
142
+ this.settleStop?.();
143
+ this.settleStop = null;
144
+ this.onPart = null;
145
+ this._isRecording = false;
146
+ this._error = null;
147
+ this._hasError = false;
148
+ }
149
+ };
150
+ //#endregion
151
+ export { MultipartRecordingProvider as t };
@@ -9859,6 +9859,13 @@ var PhoneValidationProvider = class {
9859
9859
  } catch {}
9860
9860
  return null;
9861
9861
  }
9862
+ nationalNumber(phone, country) {
9863
+ try {
9864
+ return parsePhoneNumber(phone, country)?.nationalNumber ?? null;
9865
+ } catch {
9866
+ return null;
9867
+ }
9868
+ }
9862
9869
  };
9863
9870
  //#endregion
9864
9871
  export { metadata_min_json_default as C, withMetadataArgument as S, VALID_PUNCTUATION as _, PhoneNumber as a, getCountryCallingCode as b, applyInternationalSeparatorStyle as c, getCountryByCallingCode as d, getCountryByNationalNumber as f, VALID_DIGITS as g, PLUS_CHARS as h, parseDigits as i, extractCountryCallingCode as l, stripIddPrefix as m, PhoneValidationProvider_exports as n, FIRST_GROUP_PATTERN as o, extractNationalNumberFromPossiblyIncompleteNumber as p, parsePhoneNumber as r, formatNationalNumberUsingFormat as s, PhoneValidationProvider as t, extractCountryCallingCodeFromInternationalNumberWithoutPlusSign as u, checkNumberLength as v, isObject as x, Metadata as y };
@@ -1,5 +1,5 @@
1
- import { y as IncodeCanvas } from "./createFaceAvatar-lYX0VTYs.js";
2
- import "./IWasmUtilCapability-GF2n7sfm.js";
1
+ import { y as IncodeCanvas } from "./createFaceAvatar-BimBTONm.js";
2
+ import "./IWasmUtilCapability-BRn0wz8v.js";
3
3
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
4
4
  //#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
5
5
  type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
@@ -12,6 +12,11 @@ type MetadataService = {
12
12
  checkForVirtualCameraByLabel(videoTrack: MediaStreamTrack | null): Promise<boolean>;
13
13
  analyzeFrame(imageData: ImageData): Promise<void>;
14
14
  setMotionStatus(status: string): void;
15
+ /**
16
+ * @deprecated No-op since ml-wasm-kit v2.14.54 removed `setBackgroundMode`:
17
+ * the kit's own visibility observers record background time in the capture
18
+ * metadata. Scheduled for removal in 3.0.0.
19
+ */
15
20
  setBackgroundMode(backgroundMode: boolean): void;
16
21
  estimatePerformance(): string;
17
22
  getMetadata(): string;
@@ -19,7 +24,7 @@ type MetadataService = {
19
24
  getPipelineState(): string;
20
25
  /**
21
26
  * Prepares pipeline state for metadata collection.
22
- * Must be called before setMotionStatus, getCheck, setBackgroundMode, and getMetadata.
27
+ * Must be called before setMotionStatus, getCheck, and getMetadata.
23
28
  */
24
29
  preparePipelineState(): void;
25
30
  };
@@ -53,7 +58,11 @@ type DeepsightService = {
53
58
  checkVirtualCamera(videoTrack: MediaStreamTrack): Promise<boolean>;
54
59
  performVirtualCameraCheck(sessionToken: string | null, source: FrameSource): Promise<void>;
55
60
  /**
56
- * Runs PRC warmup and stores DS flag using infrastructure providers.
61
+ * @deprecated No-op since ml-wasm-kit v2.14.52 removed `prc`: the
62
+ * pre-capture check runs inside the protected camera step
63
+ * (`ICameraCycleCapability.startCameraCycle`) that the protected attempt
64
+ * drives, and there is no stand-alone warm-up any more. Scheduled for
65
+ * removal in 3.0.0.
57
66
  */
58
67
  performPrcCheck(params: DeepsightPrcCheckParams): Promise<void>;
59
68
  analyzeFrame(imageData: ImageData): Promise<void>;
@@ -0,0 +1,42 @@
1
+ //#region ../infra/src/media/StreamCanvasProcessingSession.ts
2
+ var StreamCanvasProcessingSession = class {
3
+ /**
4
+ * Creates a processing session that reacts to `StreamCanvasCapture` frame events
5
+ * and drives a provider's `processFrame()` method with backpressure.
6
+ */
7
+ constructor(params) {
8
+ this.disposed = false;
9
+ this.isProcessing = false;
10
+ this.onFrameEvent = () => {
11
+ if (this.disposed || this.isProcessing) return;
12
+ const frame = this.capturer.getLatestFrame();
13
+ if (!frame) return;
14
+ this.onFrame?.(frame);
15
+ this.isProcessing = true;
16
+ this.provider.processFrame(frame).catch(() => {}).finally(() => {
17
+ this.isProcessing = false;
18
+ });
19
+ };
20
+ this.capturer = params.capturer;
21
+ this.provider = params.provider;
22
+ this.onFrame = params.onFrame;
23
+ this.capturer.addEventListener("frame", this.onFrameEvent);
24
+ }
25
+ /**
26
+ * Unsubscribes from frame events and resets the provider.
27
+ */
28
+ dispose() {
29
+ if (this.disposed) return;
30
+ this.disposed = true;
31
+ this.capturer.removeEventListener("frame", this.onFrameEvent);
32
+ this.provider.reset();
33
+ }
34
+ /**
35
+ * Returns whether the session has been disposed.
36
+ */
37
+ isDisposed() {
38
+ return this.disposed;
39
+ }
40
+ };
41
+ //#endregion
42
+ export { StreamCanvasProcessingSession as t };