@incodetech/core 2.4.0 → 2.4.1-agentic.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
  2. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -744
  3. package/dist/{FaceDetectionProvider-DcPOC2gS.esm.js → FaceDetectionProvider-CAY43vSI.esm.js} +28 -64
  4. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  5. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  6. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
  7. package/dist/MultipartRecordingProvider-D9mauUdS.esm.js +146 -0
  8. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  9. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
  10. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  11. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-Dp2V-Uct.esm.js} +75 -22
  12. package/dist/WorkerEncoderRecordingProvider-B1ODYtgN.esm.js +80 -0
  13. package/dist/addressSearch-DzbE9Ogt.esm.js +254 -0
  14. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
  15. package/dist/ae-signature.esm.js +1 -1
  16. package/dist/antifraud.esm.js +2 -2
  17. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-BObuHBjn.esm.js} +2 -2
  18. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-Dfrd2-26.esm.js} +1 -1
  19. package/dist/{api-Cz90EHyu.esm.js → api-CpP4PS4S.esm.js} +8 -5
  20. package/dist/{apiError-DPwFas2f.esm.js → apiError-DH-CH4Nz.esm.js} +1 -1
  21. package/dist/attemptCarry-WOkfvFMw.esm.js +45 -0
  22. package/dist/authentication.d.ts +3 -3
  23. package/dist/authentication.esm.js +2 -2
  24. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-CWmh7aSY.d.ts} +1 -1
  25. package/dist/{authenticationManager-2Lr5V_7p.esm.js → authenticationManager-DjX0XDyH.esm.js} +5 -5
  26. package/dist/{authenticationStateMachine-C99B0GFP.esm.js → authenticationStateMachine-BMbZL8wm.esm.js} +3 -3
  27. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  28. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-DS1oDiUq.esm.js} +12 -107
  29. package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
  30. package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
  31. package/dist/camera.d.ts +2 -2
  32. package/dist/camera.esm.js +1 -1
  33. package/dist/certificate-issuance.esm.js +2 -2
  34. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-C1nETQos.esm.js} +2 -2
  35. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-DThXMDqr.esm.js} +2 -2
  36. package/dist/cnpj-Co1ottYN.esm.js +77 -0
  37. package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
  38. package/dist/consent.d.ts +1 -1
  39. package/dist/consent.esm.js +2 -2
  40. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-DMlSL6Ax.esm.js} +4 -3
  41. package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-bjfVXO7p.d.ts} +9 -2
  42. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-DIYSMxKQ.esm.js} +20 -7
  43. package/dist/cross-document-data-match.esm.js +1 -1
  44. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-BFTdiEDB.esm.js} +2 -2
  45. package/dist/curp-validation.d.ts +1 -1
  46. package/dist/curp-validation.esm.js +2 -2
  47. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-DNpC3wyf.esm.js} +3 -2
  48. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-z8428oCM.d.ts} +1 -1
  49. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-B3iVsDyt.esm.js} +28 -20
  50. package/dist/custom-fields.esm.js +1 -1
  51. package/dist/custom-watchlist.esm.js +2 -2
  52. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-CvI-pDT3.esm.js} +2 -2
  53. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-BuHtUb0y.esm.js} +2 -2
  54. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-CiVD9wyF.esm.js} +1 -1
  55. package/dist/{deepsightService-CKTYDIXD.esm.js → deepsightLoader-B7DEYoyY.esm.js} +40 -74
  56. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BGMtYwk3.esm.js} +177 -40
  57. package/dist/device.esm.js +2 -2
  58. package/dist/document-capture.d.ts +3 -3
  59. package/dist/document-capture.esm.js +2 -2
  60. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-CD5iQiUI.d.ts} +37 -4
  61. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-DLPqruXJ.esm.js} +27 -19
  62. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-DCvWQhFG.esm.js} +105 -56
  63. package/dist/dynamic-forms.d.ts +2 -2
  64. package/dist/dynamic-forms.esm.js +2 -2
  65. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
  66. package/dist/{dynamicFormsManager-DiKYjcF3.esm.js → dynamicFormsManager-DfqCEPg9.esm.js} +2 -2
  67. package/dist/{dynamicFormsStateMachine-DEI45xYW.esm.js → dynamicFormsStateMachine-USQMB-uV.esm.js} +2 -2
  68. package/dist/ekyb.d.ts +4 -4
  69. package/dist/ekyb.esm.js +3 -3
  70. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
  71. package/dist/{ekybManager-8WLkNcqg.esm.js → ekybManager-CR8YSYux.esm.js} +2 -2
  72. package/dist/{ekybStateMachine-BLRT45Ex.esm.js → ekybStateMachine-kHwdz6hm.esm.js} +28 -44
  73. package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
  74. package/dist/ekyc.d.ts +4 -3
  75. package/dist/ekyc.esm.js +3 -3
  76. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-DlGIn9wA.d.ts} +2 -1
  77. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-DymCvmVB.esm.js} +2 -2
  78. package/dist/ekycStateMachine-CoFCUJ2z.esm.js +7578 -0
  79. package/dist/ekycUtils-GRuMELYr.esm.js +1472 -0
  80. package/dist/electronic-signature.esm.js +1 -1
  81. package/dist/{electronicSignatureManager-CcIMOb_Y.esm.js → electronicSignatureManager-BCE3uA3z.esm.js} +4 -4
  82. package/dist/email.esm.js +2 -2
  83. package/dist/{emailManager-ButFktRm.esm.js → emailManager-CGoE3CUe.esm.js} +2 -2
  84. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-KgHfDNvM.esm.js} +32 -20
  85. package/dist/{events-Du2A4-Qr.esm.js → events-ggpBBaZ8.esm.js} +2 -2
  86. package/dist/events.esm.js +1 -1
  87. package/dist/extensibility.d.ts +37 -22
  88. package/dist/extensibility.esm.js +36 -35
  89. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
  90. package/dist/face-match.d.ts +1 -1
  91. package/dist/face-match.esm.js +2 -2
  92. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-DV2ULUYS.d.ts} +71 -66
  93. package/dist/{faceCaptureManagerFactory-BlGvXzXA.esm.js → faceCaptureManagerFactory-Dp90bedH.esm.js} +4 -4
  94. package/dist/{faceCaptureSetup-TY8RXc2N.esm.js → faceCaptureSetup-ZfiWg0fo.esm.js} +84 -457
  95. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-D2xKPjjQ.esm.js} +2 -2
  96. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
  97. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-CUvwiQi9.esm.js} +40 -27
  98. package/dist/{feature-management-B5rR10uS.esm.js → feature-management-BbCIA4og.esm.js} +35 -21
  99. package/dist/feature-management.esm.js +1 -1
  100. package/dist/field-comparison.esm.js +1 -1
  101. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-DgDbEeFZ.esm.js} +2 -2
  102. package/dist/fiscal-qr.esm.js +1 -1
  103. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-BZeklojR.esm.js} +4 -4
  104. package/dist/flow-events.d.ts +1 -1
  105. package/dist/flow.d.ts +10 -10
  106. package/dist/flow.esm.js +10 -9
  107. package/dist/{flowCompletionService-BDI5QpfR.esm.js → flowCompletionService-CcCnPs_T.esm.js} +2 -2
  108. package/dist/{flowServices-roD0oIQL.esm.js → flowServices-Dmnc8Rye.esm.js} +69 -185
  109. package/dist/geolocation.d.ts +1 -1
  110. package/dist/geolocation.esm.js +2 -2
  111. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
  112. package/dist/{geolocationManager-DnONzWL5.esm.js → geolocationManager-BJJ3m_I8.esm.js} +6 -8
  113. package/dist/{geolocationStateMachine-eWy_G4Os.esm.js → geolocationStateMachine-CTI3m4Ie.esm.js} +12 -8
  114. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
  115. package/dist/government-validation.esm.js +2 -2
  116. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CjChjZ3C.esm.js} +2 -2
  117. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-AEbn3Afi.esm.js} +1 -1
  118. package/dist/home.d.ts +1 -1
  119. package/dist/home.esm.js +1 -1
  120. package/dist/http.esm.js +1 -1
  121. package/dist/id-ocr.d.ts +1 -1
  122. package/dist/id-ocr.esm.js +2 -2
  123. package/dist/id-selfie-flow.d.ts +1 -1
  124. package/dist/id-selfie-flow.esm.js +10 -9
  125. package/dist/id-verification.esm.js +2 -2
  126. package/dist/id.d.ts +3 -16
  127. package/dist/id.esm.js +4 -4
  128. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-Dszuq9ng.esm.js} +3 -3
  129. package/dist/{idCaptureManager-BrfYjCm_.esm.js → idCaptureManager-B3oR4RnA.esm.js} +64 -17
  130. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CCA2D1Ah.d.ts} +68 -5
  131. package/dist/{idCaptureServices-BSj6EH2l.esm.js → idCaptureServices-DK0QboqT.esm.js} +29 -198
  132. package/dist/{idCaptureStateMachine-dXKBYHQp.esm.js → idCaptureStateMachine-zzar9MPy.esm.js} +914 -536
  133. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
  134. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-xyEZNOBa.esm.js} +2 -2
  135. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-DNKXh4Rn.esm.js} +2 -2
  136. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-DdnvYfgN.esm.js} +2 -2
  137. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DtIBCa32.esm.js} +1 -1
  138. package/dist/identity-reuse.esm.js +2 -2
  139. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-CcpovlfD.esm.js} +2 -2
  140. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-DxZFWy47.esm.js} +1 -1
  141. package/dist/{index-CKQ9QBZP.d.ts → index-DC0P2Vzw.d.ts} +1 -1
  142. package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
  143. package/dist/index.d.ts +1 -1
  144. package/dist/index.esm.js +1 -1
  145. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-BJ0GVHGr.esm.js} +1 -1
  146. package/dist/kyb-checks.d.ts +3 -0
  147. package/dist/kyb-checks.esm.js +3 -0
  148. package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
  149. package/dist/kybChecksManager-DpGOp4Su.esm.js +89 -0
  150. package/dist/kybChecksStateMachine-B43NAnv7.esm.js +718 -0
  151. package/dist/mandatory-consent.d.ts +2 -2
  152. package/dist/mandatory-consent.esm.js +2 -2
  153. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-B4vCYslr.esm.js} +4 -3
  154. package/dist/{mandatoryConsentManager-BQ43yndC.d.ts → mandatoryConsentManager-B88Sm5nd.d.ts} +10 -3
  155. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-DWslYPA3.esm.js} +20 -7
  156. package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
  157. package/dist/multipartRecordingService-BTqkHGG9.esm.js +407 -0
  158. package/dist/nationalIds-B91f_RuB.esm.js +99 -0
  159. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-DFV-Ws0a.esm.js} +1 -1
  160. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-D190ATGD.esm.js} +11 -9
  161. package/dist/phone-number.d.ts +7 -1
  162. package/dist/phone-number.esm.js +15 -2
  163. package/dist/phone.d.ts +1 -1
  164. package/dist/phone.esm.js +2 -2
  165. package/dist/phoneFormat-JJNaWthV.esm.js +75 -0
  166. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
  167. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-Dy5tODCU.esm.js} +3 -3
  168. package/dist/phoneServices-DJgyOzU2.esm.js +77 -0
  169. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-DnlPhnw7.esm.js} +54 -82
  170. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  171. package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
  172. package/dist/processFaceMatch-Bst83HaS.esm.js +21 -0
  173. package/dist/qe-signature.esm.js +1 -1
  174. package/dist/recordingService-CTko6Cjn.esm.js +397 -0
  175. package/dist/redirect-to-mobile.d.ts +2 -2
  176. package/dist/redirect-to-mobile.esm.js +2 -2
  177. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-CgGaT2NP.esm.js} +5 -4
  178. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
  179. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-CbhN8uVN.esm.js} +65 -26
  180. package/dist/resolveForm-O7-r79VA.esm.js +351 -0
  181. package/dist/{runChildModule-BF_atgNx.esm.js → runChildModule-BffFArwl.esm.js} +3 -3
  182. package/dist/{sdkVersion-CsIbltJF.esm.js → sdkVersion-CDd_gaR7.esm.js} +1 -1
  183. package/dist/selfie.d.ts +4 -4
  184. package/dist/selfie.esm.js +10 -10
  185. package/dist/{selfieErrorUtils-BY0-YbPW.esm.js → selfieErrorUtils-f4MgAG2A.esm.js} +1 -1
  186. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-DmZFzs1-.d.ts} +1 -1
  187. package/dist/{selfieManager-vAAwzsHk.esm.js → selfieManager-hopelYEk.esm.js} +5 -5
  188. package/dist/{selfieStateMachine-BFVp3ElQ.esm.js → selfieStateMachine-DaZIVv3Q.esm.js} +3 -3
  189. package/dist/{session-CpwfoVdH.esm.js → session-CdSX4wsZ.esm.js} +77 -9
  190. package/dist/session.d.ts +96 -10
  191. package/dist/session.esm.js +7 -6
  192. package/dist/{sessionInitializer-BTjYgE-V.esm.js → sessionInitializer-DsL7X2j9.esm.js} +465 -206
  193. package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
  194. package/dist/{setup-BInNAvQw.esm.js → setup-DDahygZs.esm.js} +44 -30
  195. package/dist/signature.esm.js +2 -2
  196. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-CwqjcxPg.esm.js} +2 -2
  197. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-DBVDd1Eu.esm.js} +1 -1
  198. package/dist/{stats-BEvexnKC.esm.js → stats-CatA2dea.esm.js} +1 -1
  199. package/dist/stats.esm.js +1 -1
  200. package/dist/textRules-D4NRinKY.d.ts +41 -0
  201. package/dist/{tri-xzRLIIMN.esm.js → tri-DG6priFa.esm.js} +142 -8
  202. package/dist/tri.d.ts +1 -1
  203. package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
  204. package/dist/tri.esm.js +1 -1
  205. package/dist/{trueSightService-BMT-TubT.esm.js → trueSightService-GuLthUVK.esm.js} +19 -10
  206. package/dist/trust-graph.esm.js +1 -1
  207. package/dist/types-B9C8W01q.d.ts +34 -0
  208. package/dist/{types-yPH8lAH-.d.ts → types-BEVHQbbC.d.ts} +2 -2
  209. package/dist/{types-BAxn7MpY.d.ts → types-BPm1JSu7.d.ts} +123 -48
  210. package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
  211. package/dist/{types-B6HsSzpk.d.ts → types-CRaFu6wS.d.ts} +6 -3
  212. package/dist/types-CTaL0XJz.d.ts +80 -0
  213. package/dist/{types-Ckir_BEs.d.ts → types-Cd0J0F9D.d.ts} +1 -1
  214. package/dist/{types-CK8Jbjkp.d.ts → types-Csh8vzPo.d.ts} +1 -1
  215. package/dist/types-CuMJ2M7D.d.ts +210 -0
  216. package/dist/{types-DUnFZ08M.d.ts → types-CyNndVAT.d.ts} +16 -8
  217. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  218. package/dist/types-J6g6iKe_.d.ts +6 -0
  219. package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
  220. package/dist/video-selfie.d.ts +8 -8
  221. package/dist/video-selfie.esm.js +97 -22
  222. package/dist/{videoSelfieCameraWarmer-D1xA0u8y.esm.js → videoSelfieCameraWarmer-e3irGfcO.esm.js} +18 -21
  223. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-Dv3Mgws-.d.ts} +9 -4
  224. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  225. package/dist/{warmup-BElYWRh7.esm.js → warmup-DtB0DJpl.esm.js} +198 -27
  226. package/dist/wasm.d.ts +2 -2
  227. package/dist/wasm.esm.js +3 -3
  228. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BtiR5pig.esm.js} +1 -1
  229. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
  230. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-BDrax6Eu.esm.js} +55 -26
  231. package/dist/watchlist-for-business.d.ts +2 -1
  232. package/dist/watchlist-for-business.esm.js +2 -2
  233. package/dist/watchlist.esm.js +2 -2
  234. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
  235. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-DqUpAEj_.esm.js} +37 -7
  236. package/dist/watchlistForBusinessStateMachine-DdaPl2PS.esm.js +166 -0
  237. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-CdpXzT4B.esm.js} +2 -2
  238. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-ofHW_lPk.esm.js} +1 -1
  239. package/dist/workflow.d.ts +5 -2
  240. package/dist/workflow.esm.js +60 -50
  241. package/package.json +12 -5
  242. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  243. package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
  244. package/dist/deepsightLoader-DeNvGU3c.esm.js +0 -55
  245. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  246. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  247. package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
  248. package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
  249. package/dist/types-BvLo3U4u.d.ts +0 -134
  250. package/dist/types-zOgZqMni.d.ts +0 -6
  251. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  252. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -1,17 +1,15 @@
1
- import { c as wasmRuntime } from "./warmup-BElYWRh7.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-BInNAvQw.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-BMT-TubT.esm.js";
6
- import "./sessionInitializer-BTjYgE-V.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-DtB0DJpl.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-DDahygZs.esm.js";
3
+ import { r as BaseWasmProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
4
+ import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
5
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-GuLthUVK.esm.js";
6
+ import "./sessionInitializer-DsL7X2j9.esm.js";
7
+ import { t as addDeviceStats } from "./stats-CatA2dea.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-CKTYDIXD.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-Bst83HaS.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-DeNvGU3c.esm.js");
238
+ const { loadDeepsightSession } = await import("./deepsightLoader-B7DEYoyY.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 };
@@ -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,146 @@
1
+ import { n as getMultipartRecorderMimeType } from "./mediaRecorderOptions-B9-IEVtV.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
+ }
41
+ get isRecording() {
42
+ return this._isRecording;
43
+ }
44
+ get hasError() {
45
+ return this._hasError;
46
+ }
47
+ get error() {
48
+ return this._error;
49
+ }
50
+ startRecording(stream, onPart) {
51
+ this.reset();
52
+ this.partNumber = 0;
53
+ this.onPart = onPart;
54
+ try {
55
+ this.mimeType = getMultipartRecorderMimeType();
56
+ const recorder = new MediaRecorder(stream.clone(), {
57
+ mimeType: this.mimeType,
58
+ videoBitsPerSecond: VIDEO_BITS_PER_SECOND
59
+ });
60
+ recorder.ondataavailable = (event) => {
61
+ if (event.data.size > 0 && this.onPart) {
62
+ this.partNumber += 1;
63
+ this.onPart({
64
+ chunk: event.data,
65
+ partNumber: this.partNumber
66
+ });
67
+ }
68
+ };
69
+ recorder.onerror = (event) => {
70
+ const detail = event instanceof ErrorEvent && event.error instanceof Error ? event.error.message : event.type;
71
+ this._error = `Recording error: ${detail}`;
72
+ this._isRecording = false;
73
+ this._hasError = true;
74
+ };
75
+ recorder.start(TIMESLICE_MS);
76
+ this.mediaRecorder = recorder;
77
+ this._isRecording = true;
78
+ this._error = null;
79
+ this._hasError = false;
80
+ } catch (err) {
81
+ const detail = err instanceof Error ? err.message : String(err);
82
+ this._error = `Failed to start recording: ${detail}`;
83
+ this._hasError = true;
84
+ }
85
+ }
86
+ pauseRecording() {
87
+ const recorder = this.mediaRecorder;
88
+ if (!recorder || !this._isRecording || this._hasError) return false;
89
+ if (recorder.state === "paused") return true;
90
+ if (recorder.state !== "recording") return false;
91
+ try {
92
+ recorder.pause();
93
+ return true;
94
+ } catch (err) {
95
+ const detail = err instanceof Error ? err.message : String(err);
96
+ this._error = `Failed to pause recording: ${detail}`;
97
+ this._hasError = true;
98
+ return false;
99
+ }
100
+ }
101
+ resumeRecording() {
102
+ const recorder = this.mediaRecorder;
103
+ if (!recorder || !this._isRecording || this._hasError) return false;
104
+ if (recorder.state === "recording") return true;
105
+ if (recorder.state !== "paused") return false;
106
+ try {
107
+ recorder.resume();
108
+ return true;
109
+ } catch (err) {
110
+ const detail = err instanceof Error ? err.message : String(err);
111
+ this._error = `Failed to resume recording: ${detail}`;
112
+ this._hasError = true;
113
+ return false;
114
+ }
115
+ }
116
+ stopRecording() {
117
+ const recorder = this.mediaRecorder;
118
+ return new Promise((resolve) => {
119
+ if (recorder && this._isRecording) {
120
+ recorder.onstop = () => {
121
+ resolve();
122
+ };
123
+ recorder.stop();
124
+ this._isRecording = false;
125
+ } else resolve();
126
+ recorder?.stream?.getTracks().forEach((track) => track.stop());
127
+ });
128
+ }
129
+ reset() {
130
+ const recorder = this.mediaRecorder;
131
+ if (recorder) {
132
+ recorder.ondataavailable = null;
133
+ recorder.onerror = null;
134
+ recorder.onstop = null;
135
+ if (recorder.state !== "inactive") recorder.stop();
136
+ recorder.stream.getTracks().forEach((track) => track.stop());
137
+ this.mediaRecorder = null;
138
+ }
139
+ this.onPart = null;
140
+ this._isRecording = false;
141
+ this._error = null;
142
+ this._hasError = false;
143
+ }
144
+ };
145
+ //#endregion
146
+ 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
1
  import { y as IncodeCanvas } from "./createFaceAvatar-lYX0VTYs.js";
2
- import "./IWasmUtilCapability-GF2n7sfm.js";
2
+ import "./IWasmUtilCapability-Cqiaxydi.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 };
@@ -1,6 +1,6 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-BjZw_7OB.esm.js";
3
- import { c as wasmRuntime, i as isWasmReady, o as waitForWasm, r as getWasmStatus, s as warmupWasm } from "./warmup-BElYWRh7.esm.js";
2
+ import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-BDrax6Eu.esm.js";
3
+ import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatus, s as warmupWasm } from "./warmup-DtB0DJpl.esm.js";
4
4
  //#region ../infra/src/wasm/utilityWasmApi.ts
5
5
  /**
6
6
  * Utility / metadata domain facade over {@link WasmRuntime}.
@@ -10,7 +10,8 @@ import { c as wasmRuntime, i as isWasmReady, o as waitForWasm, r as getWasmStatu
10
10
  * persist and that must be replayed into it at call time —
11
11
  *
12
12
  * - `dsEnabled_` (deepsight) is passed as an argument on every
13
- * `prc`/`poc`/`rsp`/`ssl` call;
13
+ * `poc`/`rsp`/`ssl` call, and read back through {@link getDsEnabled} by
14
+ * `CameraCycleProvider` for the camera step's `ds` option;
14
15
  * - `inspectorOpened_` is pushed into C++ inside {@link getMetadata}, right
15
16
  * before reading the metadata, because `setInspectorOpened` may legitimately be
16
17
  * called before WASM is initialized.
@@ -21,10 +22,24 @@ import { c as wasmRuntime, i as isWasmReady, o as waitForWasm, r as getWasmStatu
21
22
  * `fpPrefetch_` is a third, derived piece of JS state: the memoized `ppf` poll
22
23
  * that `getFPData` awaits, keyed by the embind handle it was started on.
23
24
  *
24
- * `prc`/`poc`/`rsp` are the only methods here that hold the ML semaphore.
25
+ * `poc`/`rsp` are the only methods here that hold the ML semaphore (the camera
26
+ * step's `cst` holds it from `WasmRuntime`).
25
27
  * `ssl`/`stl`/`osv`/`oev`/`ckvcks`/`sbc`/`ppf` and everything else are unlocked **by design**
26
28
  * (decision D6) — never add locking.
27
29
  *
30
+ * Three members are deprecated native-free shims for bindings ml-wasm-kit
31
+ * deleted: `prc` (v2.14.52) rejects with a fixed error; `setZc` and
32
+ * `setBackgroundMode` (v2.14.54) are no-ops. `WasmUtilProvider` is public
33
+ * (`@incodetech/core/extensibility`) and `major` changesets are forbidden, so
34
+ * they follow the `isVirtualCamera` / `processPhoto` precedent until 3.0.0.
35
+ *
36
+ * `smv` (restored in ml-wasm-kit v2.14.54-pre5; `true` selects v2 since pre6)
37
+ * is guarded like upstream but routes through `WasmRuntime.setMetadataV2Enabled`,
38
+ * which latches the
39
+ * selection and replays it after every `initialize()` — the kit keeps it as
40
+ * realm state (ADR 0009 §6). The SDK-facing unguarded entry is
41
+ * `wasmMetadataVersionSync.ts`.
42
+ *
28
43
  * Method names, argument order and the pre-initialization error strings are
29
44
  * copied verbatim from the mirrored upstream `wasmApi.ts` so a WASM version bump
30
45
  * stays a diff against upstream (`docs/processes/WASM_VERSION_MIGRATION.md`).
@@ -58,8 +73,9 @@ var UtilityWasmApi = class {
58
73
  }
59
74
  /**
60
75
  * @deprecated Native label inspection has been unavailable since
61
- * v2.14.49-post1; scheduled for removal in 3.0.0. Protected PRC/POC owns
62
- * the authoritative decision: use `prc()` followed by `poc()` instead.
76
+ * v2.14.49-post1; scheduled for removal in 3.0.0. The protected camera step
77
+ * (`ICameraCycleCapability.startCameraCycle`) runs the pre-capture checks
78
+ * and the signed capture metadata carries the verdicts.
63
79
  */
64
80
  isVirtualCamera(_label) {
65
81
  return false;
@@ -105,9 +121,12 @@ var UtilityWasmApi = class {
105
121
  setCameraInfo(cameraInfo, overrideExisting = true) {
106
122
  this.runtime.requireUtilityApi("Unable to set camera info, cpp API hasn't been initialized").setCameraInfo(cameraInfo, overrideExisting);
107
123
  }
108
- setZc(zc) {
109
- this.runtime.requireUtilityApi("Unable to set zc, cpp API hasn't been initialized").setZc(zc);
110
- }
124
+ /**
125
+ * @deprecated Native-free no-op. ml-wasm-kit v2.14.54 removed `setZc`: the
126
+ * zoom check is gone and `iad.zc` is the constant `PASS` in the capture
127
+ * metadata. Scheduled for removal in 3.0.0.
128
+ */
129
+ setZc(_zc) {}
111
130
  setMotionStatus(motionStatus) {
112
131
  this.runtime.requireUtilityApi("Unable to set motion status, cpp API hasn't been initialized").setMotionStatus(motionStatus);
113
132
  }
@@ -117,12 +136,19 @@ var UtilityWasmApi = class {
117
136
  getInspectorOpened() {
118
137
  return this.inspectorOpened_;
119
138
  }
120
- setBackgroundMode(backgroundMode) {
121
- this.runtime.requireUtilityApi("Unable to set background mode, cpp API hasn't been initialized").setBackgroundMode(backgroundMode);
122
- }
139
+ /**
140
+ * @deprecated Native-free no-op. ml-wasm-kit v2.14.54 removed
141
+ * `setBackgroundMode`: the kit's own visibility observers record background
142
+ * time. Scheduled for removal in 3.0.0.
143
+ */
144
+ setBackgroundMode(_backgroundMode) {}
123
145
  setDsEnabled(enabled) {
124
146
  this.dsEnabled_ = enabled;
125
147
  }
148
+ /** The JS-side deepsight flag, for callers that replay it into the kit themselves. */
149
+ getDsEnabled() {
150
+ return this.dsEnabled_;
151
+ }
126
152
  getCheck() {
127
153
  const utilityApi = this.runtime.requireUtilityApi("Unable to get check, cpp API hasn't been initialized");
128
154
  noteUnlockedCallStart("getCheck");
@@ -146,6 +172,16 @@ var UtilityWasmApi = class {
146
172
  this.runtime.requireUtilityApi("Unable to sbc, cpp API hasn't been initialized").sbc(enabled);
147
173
  }
148
174
  /**
175
+ * Capture-metadata format selector (`smv`, ml-wasm-kit v2.14.54-pre6):
176
+ * `true` selects the v2 document, `false` the v1 document (the module
177
+ * default). Guarded like upstream; the selection is latched on the runtime
178
+ * so it survives re-initialization (ADR 0009 §6).
179
+ */
180
+ smv(enabled) {
181
+ this.runtime.requireUtilityApi("Unable to smv, cpp API hasn't been initialized");
182
+ this.runtime.setMetadataV2Enabled(enabled);
183
+ }
184
+ /**
149
185
  * Reads one fingerprint signal bucket (see {@link SignalDataType}), encrypted
150
186
  * by the native module. Waits for the one-time async prefetch (`ppf`) first.
151
187
  * An empty string means the bucket has no data.
@@ -184,13 +220,15 @@ var UtilityWasmApi = class {
184
220
  });
185
221
  return promise;
186
222
  }
187
- async prc() {
188
- const message = "Unable to prc, cpp API hasn't been initialized";
189
- this.runtime.requireUtilityApi(message);
190
- await wasmCallWrapper(this.runtime.mlCallSemaphore, () => this.runtime.requireUtilityApi(message).prc(this.dsEnabled_, false), true, {
191
- maxPolls: ML_CALL_MAX_POLLS,
192
- label: "prc"
193
- });
223
+ /**
224
+ * @deprecated Resolves without doing anything. ml-wasm-kit v2.14.52 removed
225
+ * `prc`: the pre-capture check runs inside the protected camera step
226
+ * (`ICameraCycleCapability.startCameraCycle`), which holds the ML semaphore
227
+ * for it, so a caller that still awaits `prc()` before `poc()` loses
228
+ * nothing. Scheduled for removal in 3.0.0.
229
+ */
230
+ prc() {
231
+ return Promise.resolve();
194
232
  }
195
233
  async poc(output) {
196
234
  const message = "Unable to poc, cpp API hasn't been initialized";
@@ -272,6 +310,10 @@ var BaseWasmProvider = class {
272
310
  */
273
311
  async initializeBase(config, pipeline) {
274
312
  if (this._isInitialized) return;
313
+ if (this.pipelineType === void 0 && wasmRuntime.isInitialized()) {
314
+ this._isInitialized = true;
315
+ return;
316
+ }
275
317
  const status = getWasmStatus();
276
318
  if (status.isLoading || isWasmReady() || status.error) {
277
319
  if (!(status.isLoading && status.loadedPipelines.includes(pipeline))) await waitForWasm();
@@ -385,15 +427,21 @@ var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
385
427
  this.ensureInitialized();
386
428
  utilityWasmApi.setMotionStatus(status);
387
429
  }
430
+ /**
431
+ * @deprecated Native-free no-op since ml-wasm-kit v2.14.54; scheduled for
432
+ * removal in 3.0.0. Like the other shims it never requires initialization.
433
+ */
388
434
  setBackgroundMode(backgroundMode) {
389
- this.ensureInitialized();
390
435
  utilityWasmApi.setBackgroundMode(backgroundMode);
391
436
  }
392
437
  setOnDeviceMode(enabled) {
393
438
  wasmRuntime.setOnDeviceMode(enabled);
394
439
  }
440
+ /**
441
+ * @deprecated Native-free no-op since ml-wasm-kit v2.14.54; scheduled for
442
+ * removal in 3.0.0. Like the other shims it never requires initialization.
443
+ */
395
444
  setZc(zc) {
396
- this.ensureInitialized();
397
445
  utilityWasmApi.setZc(zc);
398
446
  }
399
447
  setInspectorOpened(opened) {
@@ -448,8 +496,13 @@ var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
448
496
  isVirtualCamera(label) {
449
497
  return utilityWasmApi.isVirtualCamera(label);
450
498
  }
499
+ /**
500
+ * @deprecated Resolves without doing anything since ml-wasm-kit v2.14.52:
501
+ * the pre-capture check runs inside the protected camera step, so existing
502
+ * `prc()` then `poc()` call sites keep working. Scheduled for removal in
503
+ * 3.0.0.
504
+ */
451
505
  async prc() {
452
- this.ensureInitialized();
453
506
  await utilityWasmApi.prc();
454
507
  }
455
508
  async poc(output) {